]> git.saurik.com Git - wxWidgets.git/blame - configure
Further WinCE mods
[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
c74dc163 314ac_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 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_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_GUI UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG 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_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_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_USE_SOVERSION_1 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 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 315ac_subst_files=''
10f2d63a
VZ
316
317# Initialize some variables set by options.
e6cc62c6
VS
318ac_init_help=
319ac_init_version=false
10f2d63a
VZ
320# The variables have the same names as the options, with
321# dashes changed to underlines.
e6cc62c6 322cache_file=/dev/null
10f2d63a 323exec_prefix=NONE
10f2d63a 324no_create=
10f2d63a
VZ
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
10f2d63a
VZ
333verbose=
334x_includes=NONE
335x_libraries=NONE
e6cc62c6
VS
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
10f2d63a
VZ
355ac_prev=
356for ac_option
357do
10f2d63a
VZ
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
e6cc62c6 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
e6cc62c6 369 case $ac_option in
10f2d63a
VZ
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 374 bindir=$ac_optarg ;;
10f2d63a
VZ
375
376 -build | --build | --buil | --bui | --bu)
e6cc62c6 377 ac_prev=build_alias ;;
10f2d63a 378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 379 build_alias=$ac_optarg ;;
10f2d63a
VZ
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
10f2d63a
VZ
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
e6cc62c6 395 datadir=$ac_optarg ;;
10f2d63a
VZ
396
397 -disable-* | --disable-*)
e6cc62c6 398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 399 # Reject names that are not valid shell variable names.
e6cc62c6
VS
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
405
406 -enable-* | --enable-*)
e6cc62c6 407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 408 # Reject names that are not valid shell variable names.
e6cc62c6
VS
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
415 *) ac_optarg=yes ;;
416 esac
e6cc62c6 417 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
e6cc62c6 426 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
e6cc62c6
VS
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
10f2d63a
VZ
438
439 -host | --host | --hos | --ho)
e6cc62c6 440 ac_prev=host_alias ;;
10f2d63a 441 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 442 host_alias=$ac_optarg ;;
10f2d63a
VZ
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 449 includedir=$ac_optarg ;;
10f2d63a
VZ
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 454 infodir=$ac_optarg ;;
10f2d63a
VZ
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 459 libdir=$ac_optarg ;;
10f2d63a
VZ
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 466 libexecdir=$ac_optarg ;;
10f2d63a
VZ
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 475 localstatedir=$ac_optarg ;;
10f2d63a
VZ
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 480 mandir=$ac_optarg ;;
10f2d63a
VZ
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 487 | --no-cr | --no-c | -n)
10f2d63a
VZ
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 501 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 506 prefix=$ac_optarg ;;
10f2d63a
VZ
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 513 program_prefix=$ac_optarg ;;
10f2d63a
VZ
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 520 program_suffix=$ac_optarg ;;
10f2d63a
VZ
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 537 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
e6cc62c6 547 sbindir=$ac_optarg ;;
10f2d63a
VZ
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
e6cc62c6 558 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
e6cc62c6 563 site=$ac_optarg ;;
10f2d63a
VZ
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 568 srcdir=$ac_optarg ;;
10f2d63a
VZ
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 575 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 578 ac_prev=target_alias ;;
10f2d63a 579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 580 target_alias=$ac_optarg ;;
10f2d63a
VZ
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
e6cc62c6
VS
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
10f2d63a
VZ
587
588 -with-* | --with-*)
e6cc62c6 589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 590 # Reject names that are not valid shell variable names.
e6cc62c6
VS
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
10f2d63a 594 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
597 *) ac_optarg=yes ;;
598 esac
e6cc62c6 599 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
600
601 -without-* | --without-*)
e6cc62c6 602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 603 # Reject names that are not valid shell variable names.
e6cc62c6
VS
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
10f2d63a
VZ
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 619 x_includes=$ac_optarg ;;
10f2d63a
VZ
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 626 x_libraries=$ac_optarg ;;
10f2d63a 627
e6cc62c6
VS
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
10f2d63a
VZ
631 ;;
632
e6cc62c6
VS
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
10f2d63a 643 *)
e6cc62c6
VS
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
e6cc62c6
VS
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
a0b9e27f 658fi
a0b9e27f 659
e6cc62c6
VS
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
8284b0c5 670
e6cc62c6
VS
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 674do
e6cc62c6
VS
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
10f2d63a
VZ
680 esac
681done
682
e6cc62c6
VS
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
247f5006 700
e6cc62c6
VS
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
10f2d63a 705
10f2d63a
VZ
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
e6cc62c6
VS
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
10f2d63a
VZ
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
10f2d63a 734 else
e6cc62c6
VS
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
10f2d63a
VZ
737 fi
738fi
e6cc62c6
VS
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775ac_env_CXX_set=${CXX+set}
776ac_env_CXX_value=$CXX
777ac_cv_env_CXX_set=${CXX+set}
778ac_cv_env_CXX_value=$CXX
779ac_env_CXXFLAGS_set=${CXXFLAGS+set}
780ac_env_CXXFLAGS_value=$CXXFLAGS
781ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_cv_env_CXXFLAGS_value=$CXXFLAGS
783ac_env_CXXCPP_set=${CXXCPP+set}
784ac_env_CXXCPP_value=$CXXCPP
785ac_cv_env_CXXCPP_set=${CXXCPP+set}
786ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 787
e6cc62c6
VS
788#
789# Report the --help message.
790#
791if test "$ac_init_help" = "long"; then
792 # Omit some internal or obsolete options to make the list less imposing.
793 # This message is too long to be a string in the A/UX 3.1 sh.
794 cat <<_ACEOF
795\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 796
e6cc62c6 797Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 798
e6cc62c6
VS
799To assign environment variables (e.g., CC, CFLAGS...), specify them as
800VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 801
e6cc62c6
VS
802Defaults for the options are specified in brackets.
803
804Configuration:
805 -h, --help display this help and exit
806 --help=short display options specific to this package
807 --help=recursive display the short help of all the included packages
808 -V, --version display version information and exit
809 -q, --quiet, --silent do not print \`checking...' messages
810 --cache-file=FILE cache test results in FILE [disabled]
811 -C, --config-cache alias for \`--cache-file=config.cache'
812 -n, --no-create do not create output files
813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814
815_ACEOF
816
817 cat <<_ACEOF
818Installation directories:
819 --prefix=PREFIX install architecture-independent files in PREFIX
820 [$ac_default_prefix]
821 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
822 [PREFIX]
823
824By default, \`make install' will install all the files in
825\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
826an installation prefix other than \`$ac_default_prefix' using \`--prefix',
827for instance \`--prefix=\$HOME'.
828
829For better control, use the options below.
830
831Fine tuning of the installation directories:
832 --bindir=DIR user executables [EPREFIX/bin]
833 --sbindir=DIR system admin executables [EPREFIX/sbin]
834 --libexecdir=DIR program executables [EPREFIX/libexec]
835 --datadir=DIR read-only architecture-independent data [PREFIX/share]
836 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
837 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
838 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
839 --libdir=DIR object code libraries [EPREFIX/lib]
840 --includedir=DIR C header files [PREFIX/include]
841 --oldincludedir=DIR C header files for non-gcc [/usr/include]
842 --infodir=DIR info documentation [PREFIX/info]
843 --mandir=DIR man documentation [PREFIX/man]
844_ACEOF
845
846 cat <<\_ACEOF
847
848X features:
849 --x-includes=DIR X include files are in DIR
850 --x-libraries=DIR X library files are in DIR
851
852System types:
853 --build=BUILD configure for building on BUILD [guessed]
854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
855 --target=TARGET configure for building compilers for TARGET [HOST]
856_ACEOF
857fi
858
859if test -n "$ac_init_help"; then
860 case $ac_init_help in
861 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
862 esac
863 cat <<\_ACEOF
864
865Optional Features:
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-gui use GUI classes
9747f85d 869 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
870 --enable-universal use wxWindows GUI controls instead of native ones
871 --enable-nanox use NanoX
872 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
873 --enable-shared create shared library code
e6cc62c6
VS
874 --enable-optimise create optimised code
875 --enable-debug same as debug_flag and debug_info
df5168c4 876 --enable-stl use STL for containers
e6cc62c6
VS
877 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)
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
1027 --disable-largefile omit support for large files
1028 --disable-gtktest do not try to compile and run a test GTK+ program
1029 --disable-gtktest Do not try to compile and run a test GTK program
1030
1031Optional Packages:
1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1034 --with-gtk use GTK+
1035 --with-motif use Motif/Lesstif
1036 --with-mac use Mac OS X
1037 --with-cocoa use Cocoa
1038 --with-wine use Wine
1039 --with-msw use MS-Windows
1040 --with-pm use OS/2 Presentation Manager
1041 --with-mgl use SciTech MGL
1042 --with-microwin use MicroWindows
1043 --with-x11 use X11
1044 --with-libpng use libpng (PNG image format)
1045 --with-libjpeg use libjpeg (JPEG file format)
1046 --with-libtiff use libtiff (TIFF file format)
1047 --with-opengl use OpenGL (or Mesa)
1048 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1049 --with-regex enable support for wxRegEx class
1050 --with-zlib use zlib for LZW compression
1051 --with-odbc use the IODBC and wxODBC classes
1052 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1053 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1054 --with-x use the X Window System
1055 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1056
1057Some influential environment variables:
1058 CC C compiler command
1059 CFLAGS C compiler flags
1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061 nonstandard directory <lib dir>
1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063 headers in a nonstandard directory <include dir>
1064 CPP C preprocessor
1065 CXX C++ compiler command
1066 CXXFLAGS C++ compiler flags
1067 CXXCPP C++ preprocessor
1068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <wx-dev@lists.wxwindows.org>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107# absolute.
1108ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1109ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1110ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1128 cd $ac_popdir
1129 done
1130fi
8284b0c5 1131
e6cc62c6
VS
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
1135wxWindows configure 2.5.0
1136generated by GNU Autoconf 2.57
10f2d63a 1137
e6cc62c6
VS
1138Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
7c66a493 1144fi
e6cc62c6
VS
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
1149
1150It was created by wxWindows $as_me 2.5.0, which was
1151generated by GNU Autoconf 2.57. Invocation command line was
1152
1153 $ $0 $@
1154
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
1188
1189} >&5
1190
1191cat >&5 <<_ACEOF
1192
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
1209ac_sep=
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
1248done
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
1284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core core.* *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1427echo "$as_me: former value: $ac_old_val" >&2;}
1428 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1429echo "$as_me: current value: $ac_new_val" >&2;}
1430 ac_cache_corrupted=:
1431 fi;;
1432 esac
1433 # Pass precious variables to config.status.
1434 if test "$ac_new_set" = set; then
1435 case $ac_new_val in
1436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 *) ac_arg=$ac_var=$ac_new_val ;;
1439 esac
1440 case " $ac_configure_args " in
1441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1442 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 esac
1444 fi
1445done
1446if $ac_cache_corrupted; then
1447 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451 { (exit 1); exit 1; }; }
1452fi
1453
1454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
698dcdb6 1476
8284b0c5 1477
7c66a493 1478
a0b9e27f
MB
1479
1480
a0b9e27f 1481
a0b9e27f 1482
a0b9e27f 1483
a0b9e27f 1484
a0b9e27f 1485
a0b9e27f 1486
e6cc62c6
VS
1487
1488
1489ac_aux_dir=
1490for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1491 if test -f $ac_dir/install-sh; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/install-sh -c"
1494 break
1495 elif test -f $ac_dir/install.sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install.sh -c"
1498 break
1499 elif test -f $ac_dir/shtool; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 break
1503 fi
1504done
1505if test -z "$ac_aux_dir"; then
1506 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1507echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1511ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1512ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513
1514# Make sure we can run config.sub.
1515$ac_config_sub sun4 >/dev/null 2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520echo "$as_me:$LINENO: checking build system type" >&5
1521echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 ac_cv_build_alias=$build_alias
1526test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias=`$ac_config_guess`
1528test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1536
1537fi
1538echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539echo "${ECHO_T}$ac_cv_build" >&6
1540build=$ac_cv_build
1541build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546echo "$as_me:$LINENO: checking host system type" >&5
1547echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551 ac_cv_host_alias=$host_alias
1552test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias=$ac_cv_build_alias
1554ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1558
1559fi
1560echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561echo "${ECHO_T}$ac_cv_host" >&6
1562host=$ac_cv_host
1563host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566
1567
1568echo "$as_me:$LINENO: checking target system type" >&5
1569echo $ECHO_N "checking target system type... $ECHO_C" >&6
1570if test "${ac_cv_target+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
1573 ac_cv_target_alias=$target_alias
1574test "x$ac_cv_target_alias" = "x" &&
1575 ac_cv_target_alias=$ac_cv_host_alias
1576ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1578echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1580
1581fi
1582echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1583echo "${ECHO_T}$ac_cv_target" >&6
1584target=$ac_cv_target
1585target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590# The aliases save the names the user supplied, while $host etc.
1591# will get canonicalized.
1592test -n "$target_alias" &&
7c66a493
VZ
1593 test "$program_prefix$program_suffix$program_transform_name" = \
1594 NONENONEs,x,x, &&
1595 program_prefix=${target_alias}-
8284b0c5
MB
1596
1597
a0b9e27f 1598
10f2d63a 1599WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1600WX_MINOR_VERSION_NUMBER=5
1601WX_RELEASE_NUMBER=0
10f2d63a 1602
10f2d63a 1603WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1604WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1605
978f1259
RL
1606WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1607
34bed6d9 1608WX_CURRENT=0
6426998c
RL
1609WX_REVISION=0
1610WX_AGE=0
1611
8284b0c5
MB
1612
1613
10f2d63a
VZ
1614USE_UNIX=1
1615USE_WIN32=0
f9bc1684 1616USE_DOS=0
b12915c1 1617USE_BEOS=0
1216f52d 1618USE_MAC=0
b12915c1 1619
10f2d63a 1620USE_AIX=
fe0895cf
VS
1621USE_BSD= USE_DARWIN= USE_FREEBSD=
1622USE_GNU= USE_HPUX=
89e3b3e4 1623USE_LINUX=
f6bcfd97 1624USE_NETBSD=
89e3b3e4 1625USE_OPENBSD=
fe0895cf
VS
1626USE_OSF= USE_SGI=
1627USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1628USE_ULTRIX=
89e3b3e4
VZ
1629USE_UNIXWARE=
1630
1631USE_ALPHA=
10f2d63a 1632
ab9b9eab
VZ
1633NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1634
ac0c4cc3 1635ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1636
ac0c4cc3 1637DEFAULT_wxUSE_COCOA=0
10f2d63a 1638DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1639DEFAULT_wxUSE_MAC=0
1640DEFAULT_wxUSE_MGL=0
1725144d 1641DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1642DEFAULT_wxUSE_MOTIF=0
1643DEFAULT_wxUSE_MSW=0
e07802fc 1644DEFAULT_wxUSE_PM=0
f79bd02d 1645DEFAULT_wxUSE_X11=0
10f2d63a 1646
ac0c4cc3 1647DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1648DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1649DEFAULT_DEFAULT_wxUSE_MAC=0
1650DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1651DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1652DEFAULT_DEFAULT_wxUSE_MOTIF=0
1653DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1654DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1655DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1656
d6a55c4b 1657PROGRAM_EXT=
3a922bb4 1658SO_SUFFIX=so
fe0895cf 1659SAMPLES_RPATH_FLAG=
d6a55c4b 1660
10f2d63a
VZ
1661case "${host}" in
1662 *-hp-hpux* )
1663 USE_HPUX=1
1664 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1665 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1666 SO_SUFFIX=sl
e6cc62c6 1667 cat >>confdefs.h <<\_ACEOF
10f2d63a 1668#define __HPUX__ 1
e6cc62c6 1669_ACEOF
10f2d63a
VZ
1670
1671 ;;
1672 *-*-linux* )
1673 USE_LINUX=1
e6cc62c6 1674 cat >>confdefs.h <<\_ACEOF
10f2d63a 1675#define __LINUX__ 1
e6cc62c6 1676_ACEOF
10f2d63a
VZ
1677
1678 TMP=`uname -m`
1679 if test "x$TMP" = "xalpha"; then
1680 USE_ALPHA=1
e6cc62c6 1681 cat >>confdefs.h <<\_ACEOF
10f2d63a 1682#define __ALPHA__ 1
e6cc62c6 1683_ACEOF
fe0895cf
VS
1684
1685 fi
1686 DEFAULT_DEFAULT_wxUSE_GTK=1
1687 ;;
1688 *-*-gnu* )
1689 USE_GNU=1
e6cc62c6 1690 cat >>confdefs.h <<\_ACEOF
fe0895cf 1691#define __GNU__ 1
e6cc62c6 1692_ACEOF
fe0895cf
VS
1693
1694 TMP=`uname -m`
1695 if test "x$TMP" = "xalpha"; then
1696 USE_ALPHA=1
e6cc62c6 1697 cat >>confdefs.h <<\_ACEOF
fe0895cf 1698#define __ALPHA__ 1
e6cc62c6 1699_ACEOF
10f2d63a
VZ
1700
1701 fi
1702 DEFAULT_DEFAULT_wxUSE_GTK=1
1703 ;;
1704 *-*-irix5* | *-*-irix6* )
1705 USE_SGI=1
1706 USE_SVR4=1
e6cc62c6 1707 cat >>confdefs.h <<\_ACEOF
10f2d63a 1708#define __SGI__ 1
e6cc62c6 1709_ACEOF
10f2d63a 1710
e6cc62c6 1711 cat >>confdefs.h <<\_ACEOF
10f2d63a 1712#define __SVR4__ 1
e6cc62c6 1713_ACEOF
10f2d63a
VZ
1714
1715 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1716 ;;
1717 *-*-solaris2* )
1718 USE_SUN=1
1719 USE_SOLARIS=1
1720 USE_SVR4=1
e6cc62c6 1721 cat >>confdefs.h <<\_ACEOF
10f2d63a 1722#define __SUN__ 1
e6cc62c6 1723_ACEOF
10f2d63a 1724
e6cc62c6 1725 cat >>confdefs.h <<\_ACEOF
10f2d63a 1726#define __SOLARIS__ 1
e6cc62c6 1727_ACEOF
10f2d63a 1728
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
10f2d63a 1730#define __SVR4__ 1
e6cc62c6 1731_ACEOF
10f2d63a
VZ
1732
1733 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1734 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1735 ;;
1736 *-*-sunos4* )
1737 USE_SUN=1
1738 USE_SUNOS=1
1739 USE_BSD=1
e6cc62c6 1740 cat >>confdefs.h <<\_ACEOF
10f2d63a 1741#define __SUN__ 1
e6cc62c6 1742_ACEOF
10f2d63a 1743
e6cc62c6 1744 cat >>confdefs.h <<\_ACEOF
10f2d63a 1745#define __SUNOS__ 1
e6cc62c6 1746_ACEOF
10f2d63a 1747
e6cc62c6 1748 cat >>confdefs.h <<\_ACEOF
10f2d63a 1749#define __BSD__ 1
e6cc62c6 1750_ACEOF
10f2d63a
VZ
1751
1752 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1753 ;;
f6bcfd97 1754 *-*-freebsd*)
10f2d63a
VZ
1755 USE_BSD=1
1756 USE_FREEBSD=1
e6cc62c6 1757 cat >>confdefs.h <<\_ACEOF
10f2d63a 1758#define __FREEBSD__ 1
e6cc62c6 1759_ACEOF
10f2d63a 1760
e6cc62c6 1761 cat >>confdefs.h <<\_ACEOF
10f2d63a 1762#define __BSD__ 1
e6cc62c6 1763_ACEOF
95c8801c
VS
1764
1765 DEFAULT_DEFAULT_wxUSE_GTK=1
1766 ;;
1767 *-*-openbsd*)
1768 USE_BSD=1
1769 USE_OPENBSD=1
e6cc62c6 1770 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1771#define __OPENBSD__ 1
e6cc62c6 1772_ACEOF
95c8801c 1773
e6cc62c6 1774 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1775#define __BSD__ 1
e6cc62c6 1776_ACEOF
f6bcfd97
BP
1777
1778 DEFAULT_DEFAULT_wxUSE_GTK=1
1779 ;;
1780 *-*-netbsd*)
1781 USE_BSD=1
1782 USE_NETBSD=1
e6cc62c6 1783 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1784#define __NETBSD__ 1
e6cc62c6 1785_ACEOF
f6bcfd97 1786
e6cc62c6 1787 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1788#define __BSD__ 1
e6cc62c6 1789_ACEOF
10f2d63a
VZ
1790
1791 DEFAULT_DEFAULT_wxUSE_GTK=1
1792 ;;
1793 *-*-osf* )
1794 USE_ALPHA=1
1795 USE_OSF=1
e6cc62c6 1796 cat >>confdefs.h <<\_ACEOF
10f2d63a 1797#define __ALPHA__ 1
e6cc62c6 1798_ACEOF
10f2d63a 1799
e6cc62c6 1800 cat >>confdefs.h <<\_ACEOF
10f2d63a 1801#define __OSF__ 1
e6cc62c6 1802_ACEOF
10f2d63a
VZ
1803
1804 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1805 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1806 ;;
1807 *-*-dgux5* )
1808 USE_ALPHA=1
1809 USE_SVR4=1
e6cc62c6 1810 cat >>confdefs.h <<\_ACEOF
10f2d63a 1811#define __ALPHA__ 1
e6cc62c6 1812_ACEOF
10f2d63a 1813
e6cc62c6 1814 cat >>confdefs.h <<\_ACEOF
10f2d63a 1815#define __SVR4__ 1
e6cc62c6 1816_ACEOF
10f2d63a
VZ
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819 ;;
1820 *-*-sysv5* )
1821 USE_SYSV=1
1822 USE_SVR4=1
e6cc62c6 1823 cat >>confdefs.h <<\_ACEOF
10f2d63a 1824#define __SYSV__ 1
e6cc62c6 1825_ACEOF
10f2d63a 1826
e6cc62c6 1827 cat >>confdefs.h <<\_ACEOF
10f2d63a 1828#define __SVR4__ 1
e6cc62c6 1829_ACEOF
10f2d63a
VZ
1830
1831 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1832 ;;
1833 *-*-aix* )
1834 USE_AIX=1
1835 USE_SYSV=1
1836 USE_SVR4=1
2b5f62a0 1837 SO_SUFFIX=a
e6cc62c6 1838 cat >>confdefs.h <<\_ACEOF
10f2d63a 1839#define __AIX__ 1
e6cc62c6 1840_ACEOF
10f2d63a 1841
e6cc62c6 1842 cat >>confdefs.h <<\_ACEOF
10f2d63a 1843#define __SYSV__ 1
e6cc62c6 1844_ACEOF
10f2d63a 1845
e6cc62c6 1846 cat >>confdefs.h <<\_ACEOF
10f2d63a 1847#define __SVR4__ 1
e6cc62c6 1848_ACEOF
10f2d63a
VZ
1849
1850 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1851 ;;
1852
89e3b3e4
VZ
1853 *-*-*UnixWare*)
1854 USE_SYSV=1
1855 USE_SVR4=1
1856 USE_UNIXWARE=1
e6cc62c6 1857 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1858#define __UNIXWARE__ 1
e6cc62c6 1859_ACEOF
89e3b3e4
VZ
1860
1861 ;;
1862
1c8183e2 1863 *-*-cygwin* | *-*-mingw32* )
17234b26 1864 SO_SUFFIX=dll
cf27ef00 1865 PROGRAM_EXT=".exe"
7b7a7637 1866 RESCOMP=windres
10f2d63a
VZ
1867 DEFAULT_DEFAULT_wxUSE_MSW=1
1868 ;;
1869
f9bc1684
VS
1870 *-pc-msdosdjgpp )
1871 USE_UNIX=0
1872 USE_DOS=1
e6cc62c6 1873 cat >>confdefs.h <<\_ACEOF
f9bc1684 1874#define __DOS__ 1
e6cc62c6 1875_ACEOF
f9bc1684
VS
1876
1877 PROGRAM_EXT=".exe"
1878 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1879 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1880 ;;
1881
6fa882bd 1882 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1883 cat >>confdefs.h <<\_ACEOF
10f2d63a 1884#define __EMX__ 1
e6cc62c6 1885_ACEOF
10f2d63a 1886
cf27ef00 1887 PROGRAM_EXT=".exe"
e07802fc 1888 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1889 ;;
1890
d08b457b
GD
1891 powerpc-*-darwin* )
1892 USE_BSD=1
f11bdd03 1893 USE_DARWIN=1
3a922bb4 1894 SO_SUFFIX=dylib
e6cc62c6 1895 cat >>confdefs.h <<\_ACEOF
f11bdd03 1896#define __BSD__ 1
e6cc62c6 1897_ACEOF
b4085ce6 1898
e6cc62c6 1899 cat >>confdefs.h <<\_ACEOF
f11bdd03 1900#define __DARWIN__ 1
e6cc62c6 1901_ACEOF
d08b457b 1902
e6cc62c6 1903 cat >>confdefs.h <<\_ACEOF
d08b457b 1904#define __POWERPC__ 1
e6cc62c6 1905_ACEOF
82d43113 1906
e6cc62c6 1907 cat >>confdefs.h <<\_ACEOF
82d43113 1908#define TARGET_CARBON 1
e6cc62c6 1909_ACEOF
b4085ce6
GD
1910
1911 DEFAULT_DEFAULT_wxUSE_MAC=1
1912 ;;
1913
b12915c1
VZ
1914 *-*-beos* )
1915 USE_BEOS=1
e6cc62c6 1916 cat >>confdefs.h <<\_ACEOF
b12915c1 1917#define __BEOS__ 1
e6cc62c6 1918_ACEOF
b12915c1
VZ
1919
1920 ;;
1921
10f2d63a 1922 *)
e6cc62c6
VS
1923 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1924echo "$as_me: error: unknown system type ${host}." >&2;}
1925 { (exit 1); exit 1; }; }
10f2d63a
VZ
1926esac
1927
8284b0c5
MB
1928
1929
1930
1931 wx_arg_cache_file="configarg.cache"
1932 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1933 rm -f ${wx_arg_cache_file}.tmp
1934 touch ${wx_arg_cache_file}.tmp
1935 touch ${wx_arg_cache_file}
e6cc62c6 1936
10f2d63a
VZ
1937
1938DEBUG_CONFIGURE=0
1939if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1940 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1941 DEFAULT_wxUSE_STL=no
1e6feb95 1942
d8356fa3
VZ
1943 DEFAULT_wxUSE_NANOX=no
1944
10f2d63a
VZ
1945 DEFAULT_wxUSE_THREADS=yes
1946
1947 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1948 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1949 DEFAULT_wxUSE_PROFILE=no
1950 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1951 DEFAULT_wxUSE_NO_RTTI=no
1952 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1953 DEFAULT_wxUSE_PERMISSIVE=no
1954 DEFAULT_wxUSE_DEBUG_FLAG=yes
1955 DEFAULT_wxUSE_DEBUG_INFO=yes
1956 DEFAULT_wxUSE_DEBUG_GDB=yes
1957 DEFAULT_wxUSE_MEM_TRACING=no
1958 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1959 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1960 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1961 DEFAULT_wxUSE_APPLE_IEEE=no
1962
1963 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1964 DEFAULT_wxUSE_LOGWINDOW=no
1965 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1966 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1967
1968 DEFAULT_wxUSE_GUI=yes
1e6feb95 1969 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1970
3e44f09d 1971 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1972 DEFAULT_wxUSE_ZLIB=no
1973 DEFAULT_wxUSE_LIBPNG=no
1974 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1975 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1976 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1977 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1978
eb4efbdc 1979 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1980 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1981 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1982 DEFAULT_wxUSE_CMDLINE_PARSER=no
1983 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1984 DEFAULT_wxUSE_TIMER=no
1985 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1986 DEFAULT_wxUSE_FILE=no
1e6feb95 1987 DEFAULT_wxUSE_FFILE=no
a3a584a7 1988 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1989 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1990 DEFAULT_wxUSE_WAVE=no
1991 DEFAULT_wxUSE_INTL=no
1992 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1993 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1994 DEFAULT_wxUSE_STREAMS=no
1995 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1996 DEFAULT_wxUSE_OLE=no
1997 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1998 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1999 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2000 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2001 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2002 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2003 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2004
2005 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2006 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2007 DEFAULT_wxUSE_POSTSCRIPT=no
2008
10f2d63a
VZ
2009 DEFAULT_wxUSE_CLIPBOARD=no
2010 DEFAULT_wxUSE_TOOLTIPS=no
2011 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2012 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2013 DEFAULT_wxUSE_SPLINES=no
2014
2015 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2016 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2017 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2018
10f2d63a
VZ
2019 DEFAULT_wxUSE_RESOURCES=no
2020 DEFAULT_wxUSE_CONSTRAINTS=no
2021 DEFAULT_wxUSE_IPC=no
2022 DEFAULT_wxUSE_HELP=no
29fd3c0c 2023 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2024 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2025 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2026 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2027 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2028 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2029 DEFAULT_wxUSE_PROTOCOL=no
2030 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2031 DEFAULT_wxUSE_PROTOCOL_FTP=no
2032 DEFAULT_wxUSE_PROTOCOL_FILE=no
2033 DEFAULT_wxUSE_URL=no
3bd8fb5f 2034
10f2d63a 2035 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2036 DEFAULT_wxUSE_CHOICEDLG=no
2037 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2038 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2039 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2040 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2041 DEFAULT_wxUSE_FONTDLG=no
2042 DEFAULT_wxUSE_MSGDLG=no
2043 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2044 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2045 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2046 DEFAULT_wxUSE_STARTUP_TIPS=no
2047 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2048 DEFAULT_wxUSE_WIZARDDLG=no
2049
1e6feb95 2050 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2051 DEFAULT_wxUSE_MINIFRAME=no
2052 DEFAULT_wxUSE_HTML=no
24528b0c 2053 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2054 DEFAULT_wxUSE_FS_INET=no
2055 DEFAULT_wxUSE_FS_ZIP=no
2056 DEFAULT_wxUSE_BUSYINFO=no
2057 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2058 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2059
2060 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2061 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2062 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2063 DEFAULT_wxUSE_CALCTRL=no
2064 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2065 DEFAULT_wxUSE_CHECKBOX=no
2066 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2067 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2068 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2069 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2070 DEFAULT_wxUSE_GAUGE=no
2071 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2072 DEFAULT_wxUSE_IMAGLIST=no
2073 DEFAULT_wxUSE_LISTBOX=no
2074 DEFAULT_wxUSE_LISTCTRL=no
2075 DEFAULT_wxUSE_NOTEBOOK=no
2076 DEFAULT_wxUSE_RADIOBOX=no
2077 DEFAULT_wxUSE_RADIOBTN=no
2078 DEFAULT_wxUSE_SASH=no
2079 DEFAULT_wxUSE_SCROLLBAR=no
2080 DEFAULT_wxUSE_SLIDER=no
2081 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2082 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2083 DEFAULT_wxUSE_SPLITTER=no
2084 DEFAULT_wxUSE_STATBMP=no
2085 DEFAULT_wxUSE_STATBOX=no
2086 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2087 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2088 DEFAULT_wxUSE_STATUSBAR=yes
2089 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2090 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2091 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2092 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2093 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2094 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2095 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2096 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2097 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2098
2099 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2100 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2101 DEFAULT_wxUSE_WCSRTOMBS=no
2102
edae8572 2103 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2104 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2105 DEFAULT_wxUSE_GIF=no
2106 DEFAULT_wxUSE_PCX=no
2107 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2108 DEFAULT_wxUSE_IFF=no
0046ff7c 2109 DEFAULT_wxUSE_XPM=no
658974ae 2110 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2111 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2112
2113 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a 2114else
1e6feb95 2115 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2116 DEFAULT_wxUSE_STL=no
1e6feb95 2117
d8356fa3
VZ
2118 DEFAULT_wxUSE_NANOX=no
2119
10f2d63a
VZ
2120 DEFAULT_wxUSE_THREADS=yes
2121
2122 DEFAULT_wxUSE_SHARED=yes
2123 DEFAULT_wxUSE_OPTIMISE=yes
2124 DEFAULT_wxUSE_PROFILE=no
2125 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2126 DEFAULT_wxUSE_NO_RTTI=no
2127 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2128 DEFAULT_wxUSE_PERMISSIVE=no
2129 DEFAULT_wxUSE_DEBUG_FLAG=no
2130 DEFAULT_wxUSE_DEBUG_INFO=no
2131 DEFAULT_wxUSE_DEBUG_GDB=no
2132 DEFAULT_wxUSE_MEM_TRACING=no
2133 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2134 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 2135 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
2136 DEFAULT_wxUSE_APPLE_IEEE=yes
2137
2138 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2139 DEFAULT_wxUSE_LOGWINDOW=yes
2140 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2141 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2142
2143 DEFAULT_wxUSE_GUI=yes
2144
831b3152 2145 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
2146 DEFAULT_wxUSE_ZLIB=yes
2147 DEFAULT_wxUSE_LIBPNG=yes
2148 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2149 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2150 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2151 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2152
eb4efbdc 2153 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2154 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2155 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2156 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2157 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2158 DEFAULT_wxUSE_TIMER=yes
2159 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2160 DEFAULT_wxUSE_FILE=yes
1e6feb95 2161 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2162 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2163 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2164 DEFAULT_wxUSE_WAVE=no
2165 DEFAULT_wxUSE_INTL=yes
2166 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2167 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2168 DEFAULT_wxUSE_STREAMS=yes
2169 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2170 DEFAULT_wxUSE_OLE=yes
2171 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2172 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2173 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2174 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2175 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2176 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2177 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2178
2179 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2180 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2181 DEFAULT_wxUSE_POSTSCRIPT=yes
2182
10f2d63a
VZ
2183 DEFAULT_wxUSE_CLIPBOARD=yes
2184 DEFAULT_wxUSE_TOOLTIPS=yes
2185 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2186 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2187 DEFAULT_wxUSE_SPLINES=yes
2188
2189 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2190 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2191 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2192
2b5f62a0 2193 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2194 DEFAULT_wxUSE_CONSTRAINTS=yes
2195 DEFAULT_wxUSE_IPC=yes
2196 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2197 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2198 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2199 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2200 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2201 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2202 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2203 DEFAULT_wxUSE_PROTOCOL=yes
2204 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2205 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2206 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2207 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2208
2209 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2210 DEFAULT_wxUSE_CHOICEDLG=yes
2211 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2212 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2213 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2214 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2215 DEFAULT_wxUSE_FONTDLG=yes
2216 DEFAULT_wxUSE_MSGDLG=yes
2217 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2218 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2219 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2220 DEFAULT_wxUSE_STARTUP_TIPS=yes
2221 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2222 DEFAULT_wxUSE_WIZARDDLG=yes
2223
1e6feb95 2224 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2225 DEFAULT_wxUSE_MINIFRAME=yes
2226 DEFAULT_wxUSE_HTML=yes
24528b0c 2227 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2228 DEFAULT_wxUSE_FS_INET=yes
2229 DEFAULT_wxUSE_FS_ZIP=yes
2230 DEFAULT_wxUSE_BUSYINFO=yes
2231 DEFAULT_wxUSE_ZIPSTREAM=yes
2232 DEFAULT_wxUSE_VALIDATORS=yes
2233
2234 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2235 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2236 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2237 DEFAULT_wxUSE_CALCTRL=yes
2238 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2239 DEFAULT_wxUSE_CHECKBOX=yes
2240 DEFAULT_wxUSE_CHECKLST=yes
2241 DEFAULT_wxUSE_CHOICE=yes
2242 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2243 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2244 DEFAULT_wxUSE_GAUGE=yes
2245 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2246 DEFAULT_wxUSE_IMAGLIST=yes
2247 DEFAULT_wxUSE_LISTBOX=yes
2248 DEFAULT_wxUSE_LISTCTRL=yes
2249 DEFAULT_wxUSE_NOTEBOOK=yes
2250 DEFAULT_wxUSE_RADIOBOX=yes
2251 DEFAULT_wxUSE_RADIOBTN=yes
2252 DEFAULT_wxUSE_SASH=yes
2253 DEFAULT_wxUSE_SCROLLBAR=yes
2254 DEFAULT_wxUSE_SLIDER=yes
2255 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2256 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2257 DEFAULT_wxUSE_SPLITTER=yes
2258 DEFAULT_wxUSE_STATBMP=yes
2259 DEFAULT_wxUSE_STATBOX=yes
2260 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2261 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2262 DEFAULT_wxUSE_STATUSBAR=yes
2263 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2264 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2265 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2266 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2267 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2268 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2269 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2270 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2271 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2272
2273 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2274 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2275 DEFAULT_wxUSE_WCSRTOMBS=no
2276
edae8572 2277 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2278 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2279 DEFAULT_wxUSE_GIF=yes
2280 DEFAULT_wxUSE_PCX=yes
cc0e8480 2281 DEFAULT_wxUSE_IFF=no
10f2d63a 2282 DEFAULT_wxUSE_PNM=yes
0046ff7c 2283 DEFAULT_wxUSE_XPM=yes
658974ae 2284 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2285 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2286
2287 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a
VZ
2288fi
2289
8284b0c5
MB
2290
2291
10f2d63a 2292for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2293 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2294 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2295 has_toolkit_in_cache=1
2296 eval "DEFAULT_$LINE"
2297 eval "CACHE_$toolkit=1"
2298 fi
2299done
2300
8284b0c5
MB
2301
2302
5005acfe 2303 enablestring=
e6cc62c6
VS
2304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2305echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2306 no_cache=0
2307 # Check whether --enable-gui or --disable-gui was given.
2308if test "${enable_gui+set}" = set; then
2309 enableval="$enable_gui"
e6cc62c6 2310
10f2d63a
VZ
2311 if test "$enableval" = yes; then
2312 ac_cv_use_gui='wxUSE_GUI=yes'
2313 else
2314 ac_cv_use_gui='wxUSE_GUI=no'
2315 fi
e6cc62c6 2316
10f2d63a 2317else
e6cc62c6 2318
10f2d63a
VZ
2319 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2320 if test "x$LINE" != x ; then
2321 eval "DEFAULT_$LINE"
2322 else
2323 no_cache=1
2324 fi
2325
2326 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2327
e6cc62c6 2328fi;
10f2d63a
VZ
2329
2330 eval "$ac_cv_use_gui"
2331 if test "$no_cache" != 1; then
2332 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2333 fi
2334
2335 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2336 echo "$as_me:$LINENO: result: yes" >&5
2337echo "${ECHO_T}yes" >&6
10f2d63a 2338 else
e6cc62c6
VS
2339 echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6
10f2d63a 2341 fi
e6cc62c6 2342
10f2d63a 2343
9747f85d
VS
2344 enablestring=
2345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2346echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2347 no_cache=0
2348 # Check whether --enable-monolithic or --disable-monolithic was given.
2349if test "${enable_monolithic+set}" = set; then
2350 enableval="$enable_monolithic"
2351
2352 if test "$enableval" = yes; then
2353 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2354 else
2355 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2356 fi
2357
2358else
2359
2360 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2361 if test "x$LINE" != x ; then
2362 eval "DEFAULT_$LINE"
2363 else
2364 no_cache=1
2365 fi
2366
2367 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2368
2369fi;
2370
2371 eval "$ac_cv_use_monolithic"
2372 if test "$no_cache" != 1; then
2373 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2374 fi
2375
2376 if test "$wxUSE_MONOLITHIC" = yes; then
2377 echo "$as_me:$LINENO: result: yes" >&5
2378echo "${ECHO_T}yes" >&6
2379 else
2380 echo "$as_me:$LINENO: result: no" >&5
2381echo "${ECHO_T}no" >&6
2382 fi
2383
2384
b12915c1 2385if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2386
8284b0c5 2387
5005acfe 2388 enablestring=
e6cc62c6
VS
2389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2390echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2391 no_cache=0
2392 # Check whether --enable-universal or --disable-universal was given.
2393if test "${enable_universal+set}" = set; then
2394 enableval="$enable_universal"
e6cc62c6 2395
1e6feb95
VZ
2396 if test "$enableval" = yes; then
2397 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2398 else
2399 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2400 fi
e6cc62c6 2401
1e6feb95 2402else
e6cc62c6 2403
1e6feb95
VZ
2404 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2405 if test "x$LINE" != x ; then
2406 eval "DEFAULT_$LINE"
2407 else
2408 no_cache=1
2409 fi
2410
2411 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2412
e6cc62c6 2413fi;
1e6feb95
VZ
2414
2415 eval "$ac_cv_use_universal"
2416 if test "$no_cache" != 1; then
2417 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2418 fi
2419
2420 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2421 echo "$as_me:$LINENO: result: yes" >&5
2422echo "${ECHO_T}yes" >&6
1e6feb95 2423 else
e6cc62c6
VS
2424 echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6
1e6feb95 2426 fi
e6cc62c6
VS
2427
2428
10f2d63a
VZ
2429# Check whether --with-gtk or --without-gtk was given.
2430if test "${with_gtk+set}" = set; then
2431 withval="$with_gtk"
2432 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2433fi;
10f2d63a
VZ
2434
2435# Check whether --with-motif or --without-motif was given.
2436if test "${with_motif+set}" = set; then
2437 withval="$with_motif"
2438 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2439fi;
10f2d63a 2440
b4085ce6
GD
2441# Check whether --with-mac or --without-mac was given.
2442if test "${with_mac+set}" = set; then
2443 withval="$with_mac"
2444 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2445fi;
b4085ce6 2446
ac0c4cc3
DE
2447# Check whether --with-cocoa or --without-cocoa was given.
2448if test "${with_cocoa+set}" = set; then
2449 withval="$with_cocoa"
2450 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2451fi;
ac0c4cc3 2452
10f2d63a
VZ
2453# Check whether --with-wine or --without-wine was given.
2454if test "${with_wine+set}" = set; then
2455 withval="$with_wine"
89e6bf6d 2456 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2457fi;
10f2d63a 2458
77e13408
RL
2459# Check whether --with-msw or --without-msw was given.
2460if test "${with_msw+set}" = set; then
2461 withval="$with_msw"
b4efce5e 2462 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2463fi;
10f2d63a 2464
e07802fc
VZ
2465# Check whether --with-pm or --without-pm was given.
2466if test "${with_pm+set}" = set; then
2467 withval="$with_pm"
2468 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2469fi;
698dcdb6 2470
1e6feb95
VZ
2471# Check whether --with-mgl or --without-mgl was given.
2472if test "${with_mgl+set}" = set; then
2473 withval="$with_mgl"
6c657b52 2474 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2475fi;
1e6feb95 2476
1725144d
RR
2477# Check whether --with-microwin or --without-microwin was given.
2478if test "${with_microwin+set}" = set; then
2479 withval="$with_microwin"
2480 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2481fi;
1725144d 2482
f79bd02d
JS
2483# Check whether --with-x11 or --without-x11 was given.
2484if test "${with_x11+set}" = set; then
2485 withval="$with_x11"
3c011993 2486 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2487fi;
a0b9e27f 2488
5005acfe 2489 enablestring=
e6cc62c6
VS
2490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2491echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2492 no_cache=0
ba875e66
VZ
2493 # Check whether --enable-nanox or --disable-nanox was given.
2494if test "${enable_nanox+set}" = set; then
2495 enableval="$enable_nanox"
e6cc62c6 2496
d8356fa3 2497 if test "$enableval" = yes; then
ba875e66 2498 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2499 else
ba875e66 2500 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2501 fi
e6cc62c6 2502
d8356fa3 2503else
e6cc62c6 2504
d8356fa3
VZ
2505 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
ba875e66 2512 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2513
e6cc62c6 2514fi;
d8356fa3 2515
ba875e66 2516 eval "$ac_cv_use_nanox"
d8356fa3 2517 if test "$no_cache" != 1; then
ba875e66 2518 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2519 fi
2520
2521 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2522 echo "$as_me:$LINENO: result: yes" >&5
2523echo "${ECHO_T}yes" >&6
d8356fa3 2524 else
e6cc62c6
VS
2525 echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6
d8356fa3 2527 fi
e6cc62c6 2528
8284b0c5 2529
d74f4b5a 2530
5005acfe 2531 enablestring=
e6cc62c6
VS
2532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2533echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2534 no_cache=0
2535 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2536if test "${enable_gtk2+set}" = set; then
2537 enableval="$enable_gtk2"
e6cc62c6 2538
d74f4b5a
VZ
2539 if test "$enableval" = yes; then
2540 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2541 else
2542 ac_cv_use_gtk2='wxUSE_GTK2=no'
2543 fi
e6cc62c6 2544
10f2d63a 2545else
e6cc62c6 2546
d74f4b5a
VZ
2547 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2548 if test "x$LINE" != x ; then
2549 eval "DEFAULT_$LINE"
2550 else
2551 no_cache=1
2552 fi
2553
2554 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2555
e6cc62c6 2556fi;
328a083c 2557
d74f4b5a
VZ
2558 eval "$ac_cv_use_gtk2"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2564 echo "$as_me:$LINENO: result: yes" >&5
2565echo "${ECHO_T}yes" >&6
d74f4b5a 2566 else
e6cc62c6
VS
2567 echo "$as_me:$LINENO: result: no" >&5
2568echo "${ECHO_T}no" >&6
d74f4b5a 2569 fi
d74f4b5a 2570
5c6fa7d2 2571
e6cc62c6
VS
2572
2573 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2574echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2575 no_cache=0
e6cc62c6
VS
2576
2577# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2578if test "${with_libpng+set}" = set; then
2579 withval="$with_libpng"
e6cc62c6 2580
10f2d63a 2581 if test "$withval" = yes; then
b12915c1 2582 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2583 elif test "$withval" = no; then
b12915c1 2584 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2585 elif test "$withval" = sys; then
2586 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2587 elif test "$withval" = builtin; then
2588 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2589 else
e6cc62c6
VS
2590 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2591echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2592 { (exit 1); exit 1; }; }
10f2d63a 2593 fi
e6cc62c6 2594
10f2d63a 2595else
e6cc62c6 2596
b12915c1 2597 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2598 if test "x$LINE" != x ; then
2599 eval "DEFAULT_$LINE"
2600 else
2601 no_cache=1
2602 fi
2603
b12915c1 2604 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2605
e6cc62c6 2606fi;
10f2d63a 2607
b12915c1 2608 eval "$ac_cv_use_libpng"
10f2d63a 2609 if test "$no_cache" != 1; then
b12915c1 2610 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2611 fi
2612
b12915c1 2613 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2614 echo "$as_me:$LINENO: result: yes" >&5
2615echo "${ECHO_T}yes" >&6
422107f9 2616 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2617 echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6
422107f9 2619 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2620 echo "$as_me:$LINENO: result: system version" >&5
2621echo "${ECHO_T}system version" >&6
4f14bcd8 2622 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2623 echo "$as_me:$LINENO: result: builtin version" >&5
2624echo "${ECHO_T}builtin version" >&6
422107f9 2625 else
e6cc62c6
VS
2626 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2627echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2628 { (exit 1); exit 1; }; }
10f2d63a 2629 fi
10f2d63a 2630
e6cc62c6
VS
2631
2632 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2633echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2634 no_cache=0
e6cc62c6
VS
2635
2636# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2637if test "${with_libjpeg+set}" = set; then
2638 withval="$with_libjpeg"
e6cc62c6 2639
10f2d63a 2640 if test "$withval" = yes; then
b12915c1 2641 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2642 elif test "$withval" = no; then
b12915c1 2643 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2644 elif test "$withval" = sys; then
2645 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2646 elif test "$withval" = builtin; then
2647 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2648 else
e6cc62c6
VS
2649 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2650echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2651 { (exit 1); exit 1; }; }
10f2d63a 2652 fi
e6cc62c6 2653
10f2d63a 2654else
e6cc62c6 2655
b12915c1 2656 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2657 if test "x$LINE" != x ; then
2658 eval "DEFAULT_$LINE"
2659 else
2660 no_cache=1
2661 fi
2662
b12915c1 2663 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2664
e6cc62c6 2665fi;
10f2d63a 2666
b12915c1 2667 eval "$ac_cv_use_libjpeg"
10f2d63a 2668 if test "$no_cache" != 1; then
b12915c1 2669 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2670 fi
2671
b12915c1 2672 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2673 echo "$as_me:$LINENO: result: yes" >&5
2674echo "${ECHO_T}yes" >&6
422107f9 2675 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2676 echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6
422107f9 2678 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2679 echo "$as_me:$LINENO: result: system version" >&5
2680echo "${ECHO_T}system version" >&6
4f14bcd8 2681 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2682 echo "$as_me:$LINENO: result: builtin version" >&5
2683echo "${ECHO_T}builtin version" >&6
422107f9 2684 else
e6cc62c6
VS
2685 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2686echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2687 { (exit 1); exit 1; }; }
10f2d63a 2688 fi
10f2d63a 2689
e6cc62c6
VS
2690
2691 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2692echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2693 no_cache=0
e6cc62c6
VS
2694
2695# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2696if test "${with_libtiff+set}" = set; then
2697 withval="$with_libtiff"
e6cc62c6 2698
10f2d63a 2699 if test "$withval" = yes; then
b12915c1 2700 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2701 elif test "$withval" = no; then
b12915c1 2702 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2703 elif test "$withval" = sys; then
2704 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2705 elif test "$withval" = builtin; then
2706 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2707 else
e6cc62c6
VS
2708 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2709echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2710 { (exit 1); exit 1; }; }
10f2d63a 2711 fi
e6cc62c6 2712
10f2d63a 2713else
e6cc62c6 2714
b12915c1 2715 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2716 if test "x$LINE" != x ; then
2717 eval "DEFAULT_$LINE"
2718 else
2719 no_cache=1
2720 fi
2721
b12915c1 2722 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2723
e6cc62c6 2724fi;
10f2d63a 2725
b12915c1 2726 eval "$ac_cv_use_libtiff"
10f2d63a 2727 if test "$no_cache" != 1; then
b12915c1 2728 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2729 fi
2730
b12915c1 2731 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2732 echo "$as_me:$LINENO: result: yes" >&5
2733echo "${ECHO_T}yes" >&6
0dcf9893 2734 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2735 echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6
0dcf9893 2737 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2738 echo "$as_me:$LINENO: result: system version" >&5
2739echo "${ECHO_T}system version" >&6
4f14bcd8 2740 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2741 echo "$as_me:$LINENO: result: builtin version" >&5
2742echo "${ECHO_T}builtin version" >&6
0dcf9893 2743 else
e6cc62c6
VS
2744 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2745echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2746 { (exit 1); exit 1; }; }
10f2d63a 2747 fi
10f2d63a 2748
e6cc62c6
VS
2749
2750 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2751echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2752 no_cache=0
e6cc62c6
VS
2753
2754# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2755if test "${with_opengl+set}" = set; then
2756 withval="$with_opengl"
e6cc62c6 2757
10f2d63a 2758 if test "$withval" = yes; then
b12915c1 2759 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2760 else
b12915c1 2761 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2762 fi
e6cc62c6 2763
10f2d63a 2764else
e6cc62c6 2765
b12915c1 2766 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2767 if test "x$LINE" != x ; then
2768 eval "DEFAULT_$LINE"
2769 else
2770 no_cache=1
2771 fi
2772
b12915c1 2773 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2774
e6cc62c6 2775fi;
10f2d63a 2776
b12915c1 2777 eval "$ac_cv_use_opengl"
10f2d63a 2778 if test "$no_cache" != 1; then
b12915c1 2779 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2780 fi
2781
b12915c1 2782 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2783 echo "$as_me:$LINENO: result: yes" >&5
2784echo "${ECHO_T}yes" >&6
10f2d63a 2785 else
e6cc62c6
VS
2786 echo "$as_me:$LINENO: result: no" >&5
2787echo "${ECHO_T}no" >&6
10f2d63a 2788 fi
e6cc62c6 2789
10f2d63a 2790
b12915c1
VZ
2791fi
2792
5c6fa7d2 2793
e6cc62c6
VS
2794 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2795echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2796 no_cache=0
e6cc62c6
VS
2797
2798# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2799if test "${with_dmalloc+set}" = set; then
2800 withval="$with_dmalloc"
e6cc62c6 2801
c7a2bf27 2802 if test "$withval" = yes; then
b12915c1 2803 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2804 else
b12915c1 2805 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2806 fi
e6cc62c6 2807
c7a2bf27 2808else
e6cc62c6 2809
b12915c1 2810 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
b12915c1 2817 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2818
e6cc62c6 2819fi;
c7a2bf27 2820
b12915c1 2821 eval "$ac_cv_use_dmalloc"
c7a2bf27 2822 if test "$no_cache" != 1; then
b12915c1 2823 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2824 fi
2825
b12915c1 2826 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2827 echo "$as_me:$LINENO: result: yes" >&5
2828echo "${ECHO_T}yes" >&6
c7a2bf27 2829 else
e6cc62c6
VS
2830 echo "$as_me:$LINENO: result: no" >&5
2831echo "${ECHO_T}no" >&6
c7a2bf27 2832 fi
c7a2bf27 2833
e6cc62c6
VS
2834
2835 echo "$as_me:$LINENO: checking for --with-regex" >&5
2836echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2837 no_cache=0
e6cc62c6
VS
2838
2839# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2840if test "${with_regex+set}" = set; then
2841 withval="$with_regex"
e6cc62c6 2842
3e44f09d
VZ
2843 if test "$withval" = yes; then
2844 ac_cv_use_regex='wxUSE_REGEX=yes'
2845 elif test "$withval" = no; then
2846 ac_cv_use_regex='wxUSE_REGEX=no'
2847 elif test "$withval" = sys; then
2848 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2849 elif test "$withval" = builtin; then
2850 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2851 else
e6cc62c6
VS
2852 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2853echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2854 { (exit 1); exit 1; }; }
3e44f09d 2855 fi
e6cc62c6 2856
3e44f09d 2857else
e6cc62c6 2858
3e44f09d
VZ
2859 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2860 if test "x$LINE" != x ; then
2861 eval "DEFAULT_$LINE"
2862 else
2863 no_cache=1
2864 fi
2865
2866 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2867
e6cc62c6 2868fi;
3e44f09d
VZ
2869
2870 eval "$ac_cv_use_regex"
2871 if test "$no_cache" != 1; then
2872 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2873 fi
2874
2875 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2876 echo "$as_me:$LINENO: result: yes" >&5
2877echo "${ECHO_T}yes" >&6
3e44f09d 2878 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2879 echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6
3e44f09d 2881 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2882 echo "$as_me:$LINENO: result: system version" >&5
2883echo "${ECHO_T}system version" >&6
4f14bcd8 2884 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2885 echo "$as_me:$LINENO: result: builtin version" >&5
2886echo "${ECHO_T}builtin version" >&6
3e44f09d 2887 else
e6cc62c6
VS
2888 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2889echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2890 { (exit 1); exit 1; }; }
3e44f09d 2891 fi
3e44f09d 2892
e6cc62c6
VS
2893
2894 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2895echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2896 no_cache=0
e6cc62c6
VS
2897
2898# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2899if test "${with_zlib+set}" = set; then
2900 withval="$with_zlib"
e6cc62c6 2901
10f2d63a 2902 if test "$withval" = yes; then
b12915c1 2903 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2904 elif test "$withval" = no; then
b12915c1 2905 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2906 elif test "$withval" = sys; then
2907 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2908 elif test "$withval" = builtin; then
2909 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2910 else
e6cc62c6
VS
2911 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2912echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2913 { (exit 1); exit 1; }; }
10f2d63a 2914 fi
e6cc62c6 2915
10f2d63a 2916else
e6cc62c6 2917
b12915c1 2918 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2919 if test "x$LINE" != x ; then
2920 eval "DEFAULT_$LINE"
2921 else
2922 no_cache=1
2923 fi
2924
b12915c1 2925 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2926
e6cc62c6 2927fi;
10f2d63a 2928
b12915c1 2929 eval "$ac_cv_use_zlib"
10f2d63a 2930 if test "$no_cache" != 1; then
b12915c1 2931 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2932 fi
2933
b12915c1 2934 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2935 echo "$as_me:$LINENO: result: yes" >&5
2936echo "${ECHO_T}yes" >&6
422107f9 2937 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2938 echo "$as_me:$LINENO: result: no" >&5
2939echo "${ECHO_T}no" >&6
422107f9 2940 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2941 echo "$as_me:$LINENO: result: system version" >&5
2942echo "${ECHO_T}system version" >&6
4f14bcd8 2943 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2944 echo "$as_me:$LINENO: result: builtin version" >&5
2945echo "${ECHO_T}builtin version" >&6
422107f9 2946 else
e6cc62c6
VS
2947 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2948echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2949 { (exit 1); exit 1; }; }
10f2d63a 2950 fi
10f2d63a 2951
e6cc62c6
VS
2952
2953 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2954echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2955 no_cache=0
e6cc62c6
VS
2956
2957# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2958if test "${with_odbc+set}" = set; then
2959 withval="$with_odbc"
e6cc62c6 2960
10f2d63a
VZ
2961 if test "$withval" = yes; then
2962 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2963 elif test "$withval" = no; then
10f2d63a 2964 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2965 elif test "$withval" = sys; then
2966 ac_cv_use_odbc='wxUSE_ODBC=sys'
2967 elif test "$withval" = builtin; then
2968 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2969 else
e6cc62c6
VS
2970 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2971echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2972 { (exit 1); exit 1; }; }
10f2d63a 2973 fi
e6cc62c6 2974
10f2d63a 2975else
e6cc62c6 2976
10f2d63a
VZ
2977 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2978 if test "x$LINE" != x ; then
2979 eval "DEFAULT_$LINE"
2980 else
2981 no_cache=1
2982 fi
2983
2984 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2985
e6cc62c6 2986fi;
10f2d63a
VZ
2987
2988 eval "$ac_cv_use_odbc"
2989 if test "$no_cache" != 1; then
2990 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2991 fi
2992
2993 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
2994 echo "$as_me:$LINENO: result: yes" >&5
2995echo "${ECHO_T}yes" >&6
8647bec6 2996 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
2997 echo "$as_me:$LINENO: result: no" >&5
2998echo "${ECHO_T}no" >&6
8647bec6 2999 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3000 echo "$as_me:$LINENO: result: system version" >&5
3001echo "${ECHO_T}system version" >&6
8647bec6 3002 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3003 echo "$as_me:$LINENO: result: builtin version" >&5
3004echo "${ECHO_T}builtin version" >&6
8647bec6 3005 else
e6cc62c6
VS
3006 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3007echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3008 { (exit 1); exit 1; }; }
10f2d63a 3009 fi
e6cc62c6 3010
52127426 3011
8284b0c5
MB
3012
3013
5005acfe 3014 enablestring=
e6cc62c6
VS
3015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3016echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3017 no_cache=0
3018 # Check whether --enable-shared or --disable-shared was given.
3019if test "${enable_shared+set}" = set; then
3020 enableval="$enable_shared"
e6cc62c6 3021
10f2d63a
VZ
3022 if test "$enableval" = yes; then
3023 ac_cv_use_shared='wxUSE_SHARED=yes'
3024 else
3025 ac_cv_use_shared='wxUSE_SHARED=no'
3026 fi
e6cc62c6 3027
10f2d63a 3028else
e6cc62c6 3029
10f2d63a
VZ
3030 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3031 if test "x$LINE" != x ; then
3032 eval "DEFAULT_$LINE"
3033 else
3034 no_cache=1
3035 fi
3036
3037 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3038
e6cc62c6 3039fi;
10f2d63a
VZ
3040
3041 eval "$ac_cv_use_shared"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3047 echo "$as_me:$LINENO: result: yes" >&5
3048echo "${ECHO_T}yes" >&6
10f2d63a 3049 else
e6cc62c6
VS
3050 echo "$as_me:$LINENO: result: no" >&5
3051echo "${ECHO_T}no" >&6
10f2d63a 3052 fi
e6cc62c6 3053
10f2d63a 3054
5005acfe 3055 enablestring=
e6cc62c6
VS
3056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3057echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3058 no_cache=0
3059 # Check whether --enable-optimise or --disable-optimise was given.
3060if test "${enable_optimise+set}" = set; then
3061 enableval="$enable_optimise"
e6cc62c6 3062
10f2d63a
VZ
3063 if test "$enableval" = yes; then
3064 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3065 else
3066 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3067 fi
e6cc62c6 3068
10f2d63a 3069else
e6cc62c6 3070
10f2d63a
VZ
3071 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3072 if test "x$LINE" != x ; then
3073 eval "DEFAULT_$LINE"
3074 else
3075 no_cache=1
3076 fi
3077
3078 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3079
e6cc62c6 3080fi;
10f2d63a
VZ
3081
3082 eval "$ac_cv_use_optimise"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3088 echo "$as_me:$LINENO: result: yes" >&5
3089echo "${ECHO_T}yes" >&6
10f2d63a 3090 else
e6cc62c6
VS
3091 echo "$as_me:$LINENO: result: no" >&5
3092echo "${ECHO_T}no" >&6
10f2d63a 3093 fi
e6cc62c6 3094
10f2d63a 3095
5005acfe 3096 enablestring=
e6cc62c6
VS
3097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3098echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3099 no_cache=0
3100 # Check whether --enable-debug or --disable-debug was given.
3101if test "${enable_debug+set}" = set; then
3102 enableval="$enable_debug"
e6cc62c6 3103
10f2d63a
VZ
3104 if test "$enableval" = yes; then
3105 ac_cv_use_debug='wxUSE_DEBUG=yes'
3106 else
3107 ac_cv_use_debug='wxUSE_DEBUG=no'
3108 fi
e6cc62c6 3109
10f2d63a 3110else
e6cc62c6 3111
10f2d63a
VZ
3112 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3113 if test "x$LINE" != x ; then
3114 eval "DEFAULT_$LINE"
3115 else
3116 no_cache=1
3117 fi
3118
3119 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3120
e6cc62c6 3121fi;
10f2d63a
VZ
3122
3123 eval "$ac_cv_use_debug"
3124 if test "$no_cache" != 1; then
3125 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3126 fi
3127
3128 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3129 echo "$as_me:$LINENO: result: yes" >&5
3130echo "${ECHO_T}yes" >&6
10f2d63a 3131 else
e6cc62c6
VS
3132 echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
10f2d63a 3134 fi
e6cc62c6 3135
52127426 3136
df5168c4
MB
3137 enablestring=
3138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3139echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3140 no_cache=0
3141 # Check whether --enable-stl or --disable-stl was given.
3142if test "${enable_stl+set}" = set; then
3143 enableval="$enable_stl"
3144
3145 if test "$enableval" = yes; then
3146 ac_cv_use_stl='wxUSE_STL=yes'
3147 else
3148 ac_cv_use_stl='wxUSE_STL=no'
3149 fi
3150
3151else
3152
3153 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3154 if test "x$LINE" != x ; then
3155 eval "DEFAULT_$LINE"
3156 else
3157 no_cache=1
3158 fi
3159
3160 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3161
3162fi;
3163
3164 eval "$ac_cv_use_stl"
3165 if test "$no_cache" != 1; then
3166 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3167 fi
3168
3169 if test "$wxUSE_STL" = yes; then
3170 echo "$as_me:$LINENO: result: yes" >&5
3171echo "${ECHO_T}yes" >&6
3172 else
3173 echo "$as_me:$LINENO: result: no" >&5
3174echo "${ECHO_T}no" >&6
3175 fi
3176
3177
8284b0c5 3178
5005acfe 3179 enablestring=
e6cc62c6
VS
3180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-precomp" >&5
3181echo $ECHO_N "checking for --${enablestring:-enable}-precomp... $ECHO_C" >&6
683dccda
GD
3182 no_cache=0
3183 # Check whether --enable-precomp or --disable-precomp was given.
3184if test "${enable_precomp+set}" = set; then
3185 enableval="$enable_precomp"
e6cc62c6 3186
683dccda
GD
3187 if test "$enableval" = yes; then
3188 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
3189 else
3190 ac_cv_use_precomp='wxUSE_PRECOMP=no'
3191 fi
e6cc62c6 3192
683dccda 3193else
e6cc62c6 3194
683dccda
GD
3195 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
3196 if test "x$LINE" != x ; then
3197 eval "DEFAULT_$LINE"
3198 else
3199 no_cache=1
3200 fi
3201
3202 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
683dccda 3203
e6cc62c6 3204fi;
683dccda
GD
3205
3206 eval "$ac_cv_use_precomp"
3207 if test "$no_cache" != 1; then
3208 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
3209 fi
3210
3211 if test "$wxUSE_PRECOMP" = yes; then
e6cc62c6
VS
3212 echo "$as_me:$LINENO: result: yes" >&5
3213echo "${ECHO_T}yes" >&6
683dccda 3214 else
e6cc62c6
VS
3215 echo "$as_me:$LINENO: result: no" >&5
3216echo "${ECHO_T}no" >&6
683dccda 3217 fi
e6cc62c6 3218
683dccda 3219
10f2d63a
VZ
3220if test "$wxUSE_DEBUG" = "yes"; then
3221 DEFAULT_wxUSE_DEBUG_FLAG=yes
3222 DEFAULT_wxUSE_DEBUG_INFO=yes
3223elif test "$wxUSE_DEBUG" = "no"; then
3224 DEFAULT_wxUSE_DEBUG_FLAG=no
3225 DEFAULT_wxUSE_DEBUG_INFO=no
3226fi
3227
8284b0c5 3228
5005acfe 3229 enablestring=
e6cc62c6
VS
3230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3231echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3232 no_cache=0
3233 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3234if test "${enable_debug_flag+set}" = set; then
3235 enableval="$enable_debug_flag"
e6cc62c6 3236
10f2d63a
VZ
3237 if test "$enableval" = yes; then
3238 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3239 else
3240 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3241 fi
e6cc62c6 3242
10f2d63a 3243else
e6cc62c6 3244
10f2d63a
VZ
3245 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3253
e6cc62c6 3254fi;
10f2d63a
VZ
3255
3256 eval "$ac_cv_use_debug_flag"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3262 echo "$as_me:$LINENO: result: yes" >&5
3263echo "${ECHO_T}yes" >&6
10f2d63a 3264 else
e6cc62c6
VS
3265 echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
10f2d63a 3267 fi
e6cc62c6 3268
10f2d63a 3269
5005acfe 3270 enablestring=
e6cc62c6
VS
3271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3272echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3273 no_cache=0
3274 # Check whether --enable-debug_info or --disable-debug_info was given.
3275if test "${enable_debug_info+set}" = set; then
3276 enableval="$enable_debug_info"
e6cc62c6 3277
10f2d63a
VZ
3278 if test "$enableval" = yes; then
3279 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3280 else
3281 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3282 fi
e6cc62c6 3283
10f2d63a 3284else
e6cc62c6 3285
10f2d63a
VZ
3286 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3287 if test "x$LINE" != x ; then
3288 eval "DEFAULT_$LINE"
3289 else
3290 no_cache=1
3291 fi
3292
3293 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3294
e6cc62c6 3295fi;
10f2d63a
VZ
3296
3297 eval "$ac_cv_use_debug_info"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3303 echo "$as_me:$LINENO: result: yes" >&5
3304echo "${ECHO_T}yes" >&6
10f2d63a 3305 else
e6cc62c6
VS
3306 echo "$as_me:$LINENO: result: no" >&5
3307echo "${ECHO_T}no" >&6
10f2d63a 3308 fi
e6cc62c6 3309
10f2d63a 3310
5005acfe 3311 enablestring=
e6cc62c6
VS
3312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3313echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3314 no_cache=0
3315 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3316if test "${enable_debug_gdb+set}" = set; then
3317 enableval="$enable_debug_gdb"
e6cc62c6 3318
10f2d63a
VZ
3319 if test "$enableval" = yes; then
3320 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3321 else
3322 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3323 fi
e6cc62c6 3324
10f2d63a 3325else
e6cc62c6 3326
10f2d63a
VZ
3327 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3335
e6cc62c6 3336fi;
10f2d63a
VZ
3337
3338 eval "$ac_cv_use_debug_gdb"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3344 echo "$as_me:$LINENO: result: yes" >&5
3345echo "${ECHO_T}yes" >&6
10f2d63a 3346 else
e6cc62c6
VS
3347 echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6
10f2d63a 3349 fi
e6cc62c6 3350
10f2d63a 3351
5005acfe 3352 enablestring=
e6cc62c6
VS
3353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3354echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3355 no_cache=0
3356 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3357if test "${enable_debug_cntxt+set}" = set; then
3358 enableval="$enable_debug_cntxt"
e6cc62c6 3359
10f2d63a
VZ
3360 if test "$enableval" = yes; then
3361 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3362 else
3363 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3364 fi
e6cc62c6 3365
10f2d63a 3366else
e6cc62c6 3367
10f2d63a
VZ
3368 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3376
e6cc62c6 3377fi;
10f2d63a
VZ
3378
3379 eval "$ac_cv_use_debug_cntxt"
3380 if test "$no_cache" != 1; then
3381 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3382 fi
3383
3384 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3385 echo "$as_me:$LINENO: result: yes" >&5
3386echo "${ECHO_T}yes" >&6
10f2d63a 3387 else
e6cc62c6
VS
3388 echo "$as_me:$LINENO: result: no" >&5
3389echo "${ECHO_T}no" >&6
10f2d63a 3390 fi
e6cc62c6 3391
10f2d63a 3392
5005acfe 3393 enablestring=
e6cc62c6
VS
3394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3395echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3396 no_cache=0
3397 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3398if test "${enable_mem_tracing+set}" = set; then
3399 enableval="$enable_mem_tracing"
e6cc62c6 3400
10f2d63a
VZ
3401 if test "$enableval" = yes; then
3402 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3403 else
3404 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3405 fi
e6cc62c6 3406
10f2d63a 3407else
e6cc62c6 3408
10f2d63a
VZ
3409 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3417
e6cc62c6 3418fi;
10f2d63a
VZ
3419
3420 eval "$ac_cv_use_mem_tracing"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3426 echo "$as_me:$LINENO: result: yes" >&5
3427echo "${ECHO_T}yes" >&6
10f2d63a 3428 else
e6cc62c6
VS
3429 echo "$as_me:$LINENO: result: no" >&5
3430echo "${ECHO_T}no" >&6
10f2d63a 3431 fi
e6cc62c6 3432
10f2d63a 3433
5005acfe 3434 enablestring=
e6cc62c6
VS
3435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3436echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3437 no_cache=0
3438 # Check whether --enable-profile or --disable-profile was given.
3439if test "${enable_profile+set}" = set; then
3440 enableval="$enable_profile"
e6cc62c6 3441
10f2d63a
VZ
3442 if test "$enableval" = yes; then
3443 ac_cv_use_profile='wxUSE_PROFILE=yes'
3444 else
3445 ac_cv_use_profile='wxUSE_PROFILE=no'
3446 fi
e6cc62c6 3447
10f2d63a 3448else
e6cc62c6 3449
10f2d63a
VZ
3450 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3451 if test "x$LINE" != x ; then
3452 eval "DEFAULT_$LINE"
3453 else
3454 no_cache=1
3455 fi
3456
3457 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3458
e6cc62c6 3459fi;
10f2d63a
VZ
3460
3461 eval "$ac_cv_use_profile"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3467 echo "$as_me:$LINENO: result: yes" >&5
3468echo "${ECHO_T}yes" >&6
10f2d63a 3469 else
e6cc62c6
VS
3470 echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6
10f2d63a 3472 fi
e6cc62c6 3473
10f2d63a 3474
5005acfe 3475 enablestring=
e6cc62c6
VS
3476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3477echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3478 no_cache=0
3479 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3480if test "${enable_no_rtti+set}" = set; then
3481 enableval="$enable_no_rtti"
e6cc62c6 3482
10f2d63a
VZ
3483 if test "$enableval" = yes; then
3484 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3485 else
3486 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3487 fi
e6cc62c6 3488
10f2d63a 3489else
e6cc62c6 3490
10f2d63a
VZ
3491 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3492 if test "x$LINE" != x ; then
3493 eval "DEFAULT_$LINE"
3494 else
3495 no_cache=1
3496 fi
3497
3498 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3499
e6cc62c6 3500fi;
10f2d63a
VZ
3501
3502 eval "$ac_cv_use_no_rtti"
3503 if test "$no_cache" != 1; then
3504 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3505 fi
3506
3507 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3508 echo "$as_me:$LINENO: result: yes" >&5
3509echo "${ECHO_T}yes" >&6
10f2d63a 3510 else
e6cc62c6
VS
3511 echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6
10f2d63a 3513 fi
e6cc62c6 3514
10f2d63a 3515
5005acfe 3516 enablestring=
e6cc62c6
VS
3517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3518echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3519 no_cache=0
3520 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3521if test "${enable_no_exceptions+set}" = set; then
3522 enableval="$enable_no_exceptions"
e6cc62c6 3523
10f2d63a
VZ
3524 if test "$enableval" = yes; then
3525 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3526 else
3527 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3528 fi
e6cc62c6 3529
10f2d63a 3530else
e6cc62c6 3531
10f2d63a
VZ
3532 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3540
e6cc62c6 3541fi;
10f2d63a
VZ
3542
3543 eval "$ac_cv_use_no_exceptions"
3544 if test "$no_cache" != 1; then
3545 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3546 fi
3547
3548 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3549 echo "$as_me:$LINENO: result: yes" >&5
3550echo "${ECHO_T}yes" >&6
10f2d63a 3551 else
e6cc62c6
VS
3552 echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
10f2d63a 3554 fi
e6cc62c6 3555
10f2d63a 3556
5005acfe 3557 enablestring=
e6cc62c6
VS
3558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3559echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3560 no_cache=0
3561 # Check whether --enable-permissive or --disable-permissive was given.
3562if test "${enable_permissive+set}" = set; then
3563 enableval="$enable_permissive"
e6cc62c6 3564
10f2d63a
VZ
3565 if test "$enableval" = yes; then
3566 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3567 else
3568 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3569 fi
e6cc62c6 3570
10f2d63a 3571else
e6cc62c6 3572
10f2d63a
VZ
3573 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3581
e6cc62c6 3582fi;
10f2d63a
VZ
3583
3584 eval "$ac_cv_use_permissive"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3590 echo "$as_me:$LINENO: result: yes" >&5
3591echo "${ECHO_T}yes" >&6
10f2d63a 3592 else
e6cc62c6
VS
3593 echo "$as_me:$LINENO: result: no" >&5
3594echo "${ECHO_T}no" >&6
10f2d63a 3595 fi
e6cc62c6 3596
10f2d63a 3597
5005acfe 3598 enablestring=
e6cc62c6
VS
3599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3600echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3601 no_cache=0
3602 # Check whether --enable-no_deps or --disable-no_deps was given.
3603if test "${enable_no_deps+set}" = set; then
3604 enableval="$enable_no_deps"
e6cc62c6 3605
10f2d63a
VZ
3606 if test "$enableval" = yes; then
3607 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3608 else
3609 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3610 fi
e6cc62c6 3611
10f2d63a 3612else
e6cc62c6 3613
10f2d63a
VZ
3614 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3615 if test "x$LINE" != x ; then
3616 eval "DEFAULT_$LINE"
3617 else
3618 no_cache=1
3619 fi
3620
3621 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3622
e6cc62c6 3623fi;
10f2d63a
VZ
3624
3625 eval "$ac_cv_use_no_deps"
3626 if test "$no_cache" != 1; then
3627 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3628 fi
3629
3630 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3631 echo "$as_me:$LINENO: result: yes" >&5
3632echo "${ECHO_T}yes" >&6
10f2d63a 3633 else
e6cc62c6
VS
3634 echo "$as_me:$LINENO: result: no" >&5
3635echo "${ECHO_T}no" >&6
10f2d63a 3636 fi
e6cc62c6 3637
52127426 3638
8284b0c5 3639
5005acfe 3640 enablestring=
e6cc62c6
VS
3641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3642echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3643 no_cache=0
3644 # Check whether --enable-compat20 or --disable-compat20 was given.
3645if test "${enable_compat20+set}" = set; then
3646 enableval="$enable_compat20"
e6cc62c6 3647
54276ccf
VZ
3648 if test "$enableval" = yes; then
3649 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3650 else
3651 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3652 fi
e6cc62c6 3653
54276ccf 3654else
e6cc62c6 3655
54276ccf
VZ
3656 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3657 if test "x$LINE" != x ; then
3658 eval "DEFAULT_$LINE"
3659 else
3660 no_cache=1
3661 fi
3662
3663 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3664
e6cc62c6 3665fi;
54276ccf
VZ
3666
3667 eval "$ac_cv_use_compat20"
3668 if test "$no_cache" != 1; then
3669 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3670 fi
3671
3672 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3673 echo "$as_me:$LINENO: result: yes" >&5
3674echo "${ECHO_T}yes" >&6
54276ccf 3675 else
e6cc62c6
VS
3676 echo "$as_me:$LINENO: result: no" >&5
3677echo "${ECHO_T}no" >&6
54276ccf 3678 fi
e6cc62c6 3679
54276ccf 3680
65d8ef1e 3681 enablestring=
e6cc62c6
VS
3682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3683echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3684 no_cache=0
3685 # Check whether --enable-compat22 or --disable-compat22 was given.
3686if test "${enable_compat22+set}" = set; then
3687 enableval="$enable_compat22"
e6cc62c6 3688
54276ccf
VZ
3689 if test "$enableval" = yes; then
3690 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3691 else
3692 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3693 fi
e6cc62c6 3694
54276ccf 3695else
e6cc62c6 3696
54276ccf
VZ
3697 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3705
e6cc62c6 3706fi;
54276ccf
VZ
3707
3708 eval "$ac_cv_use_compat22"
3709 if test "$no_cache" != 1; then
3710 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3711 fi
3712
3713 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3714 echo "$as_me:$LINENO: result: yes" >&5
3715echo "${ECHO_T}yes" >&6
54276ccf 3716 else
e6cc62c6
VS
3717 echo "$as_me:$LINENO: result: no" >&5
3718echo "${ECHO_T}no" >&6
54276ccf 3719 fi
e6cc62c6 3720
54276ccf 3721
65d8ef1e 3722 enablestring=disable
e6cc62c6
VS
3723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3724echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3725 no_cache=0
3726 # Check whether --enable-compat24 or --disable-compat24 was given.
3727if test "${enable_compat24+set}" = set; then
3728 enableval="$enable_compat24"
e6cc62c6 3729
65d8ef1e
VS
3730 if test "$enableval" = yes; then
3731 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3732 else
3733 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3734 fi
e6cc62c6 3735
65d8ef1e 3736else
e6cc62c6 3737
65d8ef1e
VS
3738 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3739 if test "x$LINE" != x ; then
3740 eval "DEFAULT_$LINE"
3741 else
3742 no_cache=1
3743 fi
3744
3745 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3746
e6cc62c6 3747fi;
65d8ef1e
VS
3748
3749 eval "$ac_cv_use_compat24"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3755 echo "$as_me:$LINENO: result: yes" >&5
3756echo "${ECHO_T}yes" >&6
65d8ef1e 3757 else
e6cc62c6
VS
3758 echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6
65d8ef1e 3760 fi
e6cc62c6 3761
65d8ef1e 3762
3bd8fb5f
RD
3763# Check whether --enable-rpath or --disable-rpath was given.
3764if test "${enable_rpath+set}" = set; then
3765 enableval="$enable_rpath"
3766 wxRPATH_DIR="$enableval"
e6cc62c6 3767fi;
3bd8fb5f
RD
3768
3769if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3770 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3771fi
3772
8284b0c5
MB
3773
3774
3775
5005acfe 3776 enablestring=
e6cc62c6
VS
3777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3778echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3779 no_cache=0
3780 # Check whether --enable-intl or --disable-intl was given.
3781if test "${enable_intl+set}" = set; then
3782 enableval="$enable_intl"
e6cc62c6 3783
10f2d63a
VZ
3784 if test "$enableval" = yes; then
3785 ac_cv_use_intl='wxUSE_INTL=yes'
3786 else
3787 ac_cv_use_intl='wxUSE_INTL=no'
3788 fi
e6cc62c6 3789
10f2d63a 3790else
e6cc62c6 3791
10f2d63a
VZ
3792 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3793 if test "x$LINE" != x ; then
3794 eval "DEFAULT_$LINE"
3795 else
3796 no_cache=1
3797 fi
3798
3799 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3800
e6cc62c6 3801fi;
10f2d63a
VZ
3802
3803 eval "$ac_cv_use_intl"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3809 echo "$as_me:$LINENO: result: yes" >&5
3810echo "${ECHO_T}yes" >&6
10f2d63a 3811 else
e6cc62c6
VS
3812 echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
10f2d63a 3814 fi
e6cc62c6 3815
10f2d63a 3816
5005acfe 3817 enablestring=
e6cc62c6
VS
3818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3819echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3820 no_cache=0
3821 # Check whether --enable-config or --disable-config was given.
3822if test "${enable_config+set}" = set; then
3823 enableval="$enable_config"
e6cc62c6 3824
10f2d63a
VZ
3825 if test "$enableval" = yes; then
3826 ac_cv_use_config='wxUSE_CONFIG=yes'
3827 else
3828 ac_cv_use_config='wxUSE_CONFIG=no'
3829 fi
e6cc62c6 3830
10f2d63a 3831else
e6cc62c6 3832
10f2d63a
VZ
3833 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3834 if test "x$LINE" != x ; then
3835 eval "DEFAULT_$LINE"
3836 else
3837 no_cache=1
3838 fi
3839
3840 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3841
e6cc62c6 3842fi;
10f2d63a
VZ
3843
3844 eval "$ac_cv_use_config"
3845 if test "$no_cache" != 1; then
3846 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3847 fi
3848
3849 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3850 echo "$as_me:$LINENO: result: yes" >&5
3851echo "${ECHO_T}yes" >&6
10f2d63a 3852 else
e6cc62c6
VS
3853 echo "$as_me:$LINENO: result: no" >&5
3854echo "${ECHO_T}no" >&6
10f2d63a 3855 fi
e6cc62c6 3856
52127426 3857
8284b0c5 3858
5005acfe 3859 enablestring=
e6cc62c6
VS
3860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3861echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3862 no_cache=0
3863 # Check whether --enable-protocols or --disable-protocols was given.
3864if test "${enable_protocols+set}" = set; then
3865 enableval="$enable_protocols"
e6cc62c6 3866
a1622950
VZ
3867 if test "$enableval" = yes; then
3868 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3869 else
3870 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3871 fi
e6cc62c6 3872
a1622950 3873else
e6cc62c6 3874
a1622950
VZ
3875 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3883
e6cc62c6 3884fi;
a1622950
VZ
3885
3886 eval "$ac_cv_use_protocols"
3887 if test "$no_cache" != 1; then
3888 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3889 fi
3890
3891 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3892 echo "$as_me:$LINENO: result: yes" >&5
3893echo "${ECHO_T}yes" >&6
a1622950 3894 else
e6cc62c6
VS
3895 echo "$as_me:$LINENO: result: no" >&5
3896echo "${ECHO_T}no" >&6
a1622950 3897 fi
e6cc62c6 3898
a1622950 3899
5005acfe 3900 enablestring=
e6cc62c6
VS
3901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3902echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3903 no_cache=0
3904 # Check whether --enable-ftp or --disable-ftp was given.
3905if test "${enable_ftp+set}" = set; then
3906 enableval="$enable_ftp"
e6cc62c6 3907
a1622950
VZ
3908 if test "$enableval" = yes; then
3909 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3910 else
3911 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3912 fi
e6cc62c6 3913
a1622950 3914else
e6cc62c6 3915
a1622950
VZ
3916 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3917 if test "x$LINE" != x ; then
3918 eval "DEFAULT_$LINE"
3919 else
3920 no_cache=1
3921 fi
3922
3923 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3924
e6cc62c6 3925fi;
a1622950
VZ
3926
3927 eval "$ac_cv_use_ftp"
3928 if test "$no_cache" != 1; then
3929 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3930 fi
3931
3932 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3933 echo "$as_me:$LINENO: result: yes" >&5
3934echo "${ECHO_T}yes" >&6
a1622950 3935 else
e6cc62c6
VS
3936 echo "$as_me:$LINENO: result: no" >&5
3937echo "${ECHO_T}no" >&6
a1622950 3938 fi
e6cc62c6 3939
a1622950 3940
5005acfe 3941 enablestring=
e6cc62c6
VS
3942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3943echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3944 no_cache=0
3945 # Check whether --enable-http or --disable-http was given.
3946if test "${enable_http+set}" = set; then
3947 enableval="$enable_http"
e6cc62c6 3948
a1622950
VZ
3949 if test "$enableval" = yes; then
3950 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3951 else
3952 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3953 fi
e6cc62c6 3954
a1622950 3955else
e6cc62c6 3956
a1622950
VZ
3957 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3958 if test "x$LINE" != x ; then
3959 eval "DEFAULT_$LINE"
3960 else
3961 no_cache=1
3962 fi
3963
3964 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3965
e6cc62c6 3966fi;
a1622950
VZ
3967
3968 eval "$ac_cv_use_http"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3974 echo "$as_me:$LINENO: result: yes" >&5
3975echo "${ECHO_T}yes" >&6
a1622950 3976 else
e6cc62c6
VS
3977 echo "$as_me:$LINENO: result: no" >&5
3978echo "${ECHO_T}no" >&6
a1622950 3979 fi
e6cc62c6 3980
a1622950 3981
5005acfe 3982 enablestring=
e6cc62c6
VS
3983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3984echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
3985 no_cache=0
3986 # Check whether --enable-fileproto or --disable-fileproto was given.
3987if test "${enable_fileproto+set}" = set; then
3988 enableval="$enable_fileproto"
e6cc62c6 3989
a1622950
VZ
3990 if test "$enableval" = yes; then
3991 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3992 else
3993 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3994 fi
e6cc62c6 3995
a1622950 3996else
e6cc62c6 3997
a1622950
VZ
3998 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4006
e6cc62c6 4007fi;
a1622950
VZ
4008
4009 eval "$ac_cv_use_fileproto"
4010 if test "$no_cache" != 1; then
4011 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4012 fi
4013
4014 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4015 echo "$as_me:$LINENO: result: yes" >&5
4016echo "${ECHO_T}yes" >&6
a1622950 4017 else
e6cc62c6
VS
4018 echo "$as_me:$LINENO: result: no" >&5
4019echo "${ECHO_T}no" >&6
a1622950 4020 fi
e6cc62c6 4021
a1622950 4022
5005acfe 4023 enablestring=
e6cc62c6
VS
4024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4025echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4026 no_cache=0
4027 # Check whether --enable-sockets or --disable-sockets was given.
4028if test "${enable_sockets+set}" = set; then
4029 enableval="$enable_sockets"
e6cc62c6 4030
10f2d63a
VZ
4031 if test "$enableval" = yes; then
4032 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4033 else
4034 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4035 fi
e6cc62c6 4036
10f2d63a 4037else
e6cc62c6 4038
10f2d63a
VZ
4039 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4040 if test "x$LINE" != x ; then
4041 eval "DEFAULT_$LINE"
4042 else
4043 no_cache=1
4044 fi
4045
4046 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4047
e6cc62c6 4048fi;
10f2d63a
VZ
4049
4050 eval "$ac_cv_use_sockets"
4051 if test "$no_cache" != 1; then
4052 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4053 fi
4054
4055 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4056 echo "$as_me:$LINENO: result: yes" >&5
4057echo "${ECHO_T}yes" >&6
10f2d63a 4058 else
e6cc62c6
VS
4059 echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
10f2d63a 4061 fi
e6cc62c6 4062
8284b0c5 4063
5005acfe 4064 enablestring=
e6cc62c6
VS
4065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4066echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4067 no_cache=0
4068 # Check whether --enable-ole or --disable-ole was given.
4069if test "${enable_ole+set}" = set; then
4070 enableval="$enable_ole"
e6cc62c6 4071
3bce6687
JS
4072 if test "$enableval" = yes; then
4073 ac_cv_use_ole='wxUSE_OLE=yes'
4074 else
4075 ac_cv_use_ole='wxUSE_OLE=no'
4076 fi
e6cc62c6 4077
3bce6687 4078else
e6cc62c6 4079
3bce6687
JS
4080 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4088
e6cc62c6 4089fi;
3bce6687
JS
4090
4091 eval "$ac_cv_use_ole"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4097 echo "$as_me:$LINENO: result: yes" >&5
4098echo "${ECHO_T}yes" >&6
3bce6687 4099 else
e6cc62c6
VS
4100 echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
3bce6687 4102 fi
e6cc62c6 4103
3bce6687 4104
5005acfe 4105 enablestring=
e6cc62c6
VS
4106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4107echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4108 no_cache=0
4109 # Check whether --enable-dataobj or --disable-dataobj was given.
4110if test "${enable_dataobj+set}" = set; then
4111 enableval="$enable_dataobj"
e6cc62c6 4112
3bce6687
JS
4113 if test "$enableval" = yes; then
4114 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4115 else
4116 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4117 fi
e6cc62c6 4118
3bce6687 4119else
e6cc62c6 4120
3bce6687
JS
4121 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4122 if test "x$LINE" != x ; then
4123 eval "DEFAULT_$LINE"
4124 else
4125 no_cache=1
4126 fi
4127
4128 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4129
e6cc62c6 4130fi;
3bce6687
JS
4131
4132 eval "$ac_cv_use_dataobj"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4138 echo "$as_me:$LINENO: result: yes" >&5
4139echo "${ECHO_T}yes" >&6
3bce6687 4140 else
e6cc62c6
VS
4141 echo "$as_me:$LINENO: result: no" >&5
4142echo "${ECHO_T}no" >&6
3bce6687 4143 fi
e6cc62c6 4144
3bce6687 4145
52127426 4146
5005acfe 4147 enablestring=
e6cc62c6
VS
4148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4149echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4150 no_cache=0
eb4efbdc
VZ
4151 # Check whether --enable-ipc or --disable-ipc was given.
4152if test "${enable_ipc+set}" = set; then
4153 enableval="$enable_ipc"
e6cc62c6 4154
10f2d63a 4155 if test "$enableval" = yes; then
eb4efbdc 4156 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4157 else
eb4efbdc 4158 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4159 fi
e6cc62c6 4160
10f2d63a 4161else
e6cc62c6 4162
eb4efbdc 4163 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
eb4efbdc 4170 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4171
e6cc62c6 4172fi;
10f2d63a 4173
eb4efbdc 4174 eval "$ac_cv_use_ipc"
10f2d63a 4175 if test "$no_cache" != 1; then
eb4efbdc 4176 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4177 fi
4178
eb4efbdc 4179 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4180 echo "$as_me:$LINENO: result: yes" >&5
4181echo "${ECHO_T}yes" >&6
10f2d63a 4182 else
e6cc62c6
VS
4183 echo "$as_me:$LINENO: result: no" >&5
4184echo "${ECHO_T}no" >&6
10f2d63a 4185 fi
e6cc62c6 4186
52127426 4187
8284b0c5 4188
5005acfe 4189 enablestring=
e6cc62c6
VS
4190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4191echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4192 no_cache=0
4193 # Check whether --enable-cmdline or --disable-cmdline was given.
4194if test "${enable_cmdline+set}" = set; then
4195 enableval="$enable_cmdline"
e6cc62c6 4196
1e6feb95
VZ
4197 if test "$enableval" = yes; then
4198 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4199 else
4200 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4201 fi
e6cc62c6 4202
1e6feb95 4203else
e6cc62c6 4204
1e6feb95
VZ
4205 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4206 if test "x$LINE" != x ; then
4207 eval "DEFAULT_$LINE"
4208 else
4209 no_cache=1
4210 fi
4211
4212 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4213
e6cc62c6 4214fi;
1e6feb95
VZ
4215
4216 eval "$ac_cv_use_cmdline"
4217 if test "$no_cache" != 1; then
4218 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4219 fi
4220
4221 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4222 echo "$as_me:$LINENO: result: yes" >&5
4223echo "${ECHO_T}yes" >&6
1e6feb95 4224 else
e6cc62c6
VS
4225 echo "$as_me:$LINENO: result: no" >&5
4226echo "${ECHO_T}no" >&6
1e6feb95 4227 fi
e6cc62c6 4228
1e6feb95 4229
5005acfe 4230 enablestring=
e6cc62c6
VS
4231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4232echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4233 no_cache=0
4234 # Check whether --enable-datetime or --disable-datetime was given.
4235if test "${enable_datetime+set}" = set; then
4236 enableval="$enable_datetime"
e6cc62c6 4237
1e6feb95
VZ
4238 if test "$enableval" = yes; then
4239 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4240 else
4241 ac_cv_use_datetime='wxUSE_DATETIME=no'
4242 fi
e6cc62c6 4243
1e6feb95 4244else
e6cc62c6 4245
1e6feb95
VZ
4246 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4247 if test "x$LINE" != x ; then
4248 eval "DEFAULT_$LINE"
4249 else
4250 no_cache=1
4251 fi
4252
4253 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4254
e6cc62c6 4255fi;
1e6feb95
VZ
4256
4257 eval "$ac_cv_use_datetime"
4258 if test "$no_cache" != 1; then
4259 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4260 fi
4261
4262 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4263 echo "$as_me:$LINENO: result: yes" >&5
4264echo "${ECHO_T}yes" >&6
1e6feb95 4265 else
e6cc62c6
VS
4266 echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
1e6feb95 4268 fi
e6cc62c6 4269
1e6feb95 4270
5005acfe 4271 enablestring=
e6cc62c6
VS
4272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4273echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4274 no_cache=0
4275 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4276if test "${enable_stopwatch+set}" = set; then
4277 enableval="$enable_stopwatch"
e6cc62c6 4278
1e6feb95
VZ
4279 if test "$enableval" = yes; then
4280 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4281 else
4282 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4283 fi
e6cc62c6 4284
1e6feb95 4285else
e6cc62c6 4286
1e6feb95
VZ
4287 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4295
e6cc62c6 4296fi;
1e6feb95
VZ
4297
4298 eval "$ac_cv_use_stopwatch"
4299 if test "$no_cache" != 1; then
4300 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4301 fi
4302
4303 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4304 echo "$as_me:$LINENO: result: yes" >&5
4305echo "${ECHO_T}yes" >&6
1e6feb95 4306 else
e6cc62c6
VS
4307 echo "$as_me:$LINENO: result: no" >&5
4308echo "${ECHO_T}no" >&6
1e6feb95 4309 fi
e6cc62c6 4310
1e6feb95 4311
5005acfe 4312 enablestring=
e6cc62c6
VS
4313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4314echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4315 no_cache=0
eb4efbdc
VZ
4316 # Check whether --enable-dialupman or --disable-dialupman was given.
4317if test "${enable_dialupman+set}" = set; then
4318 enableval="$enable_dialupman"
e6cc62c6 4319
10f2d63a 4320 if test "$enableval" = yes; then
eb4efbdc 4321 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4322 else
eb4efbdc 4323 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4324 fi
e6cc62c6 4325
10f2d63a 4326else
e6cc62c6 4327
eb4efbdc 4328 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4329 if test "x$LINE" != x ; then
4330 eval "DEFAULT_$LINE"
4331 else
4332 no_cache=1
4333 fi
4334
eb4efbdc 4335 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4336
e6cc62c6 4337fi;
10f2d63a 4338
eb4efbdc 4339 eval "$ac_cv_use_dialupman"
10f2d63a 4340 if test "$no_cache" != 1; then
eb4efbdc 4341 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4342 fi
4343
eb4efbdc 4344 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4345 echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6
10f2d63a 4347 else
e6cc62c6
VS
4348 echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6
10f2d63a 4350 fi
e6cc62c6 4351
10f2d63a 4352
5005acfe 4353 enablestring=
e6cc62c6
VS
4354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4355echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4356 no_cache=0
4357 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4358if test "${enable_apple_ieee+set}" = set; then
4359 enableval="$enable_apple_ieee"
e6cc62c6 4360
10f2d63a
VZ
4361 if test "$enableval" = yes; then
4362 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4363 else
4364 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4365 fi
e6cc62c6 4366
10f2d63a 4367else
e6cc62c6 4368
10f2d63a
VZ
4369 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4370 if test "x$LINE" != x ; then
4371 eval "DEFAULT_$LINE"
4372 else
4373 no_cache=1
4374 fi
4375
4376 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4377
e6cc62c6 4378fi;
10f2d63a
VZ
4379
4380 eval "$ac_cv_use_apple_ieee"
4381 if test "$no_cache" != 1; then
4382 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4383 fi
4384
4385 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4386 echo "$as_me:$LINENO: result: yes" >&5
4387echo "${ECHO_T}yes" >&6
10f2d63a 4388 else
e6cc62c6
VS
4389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
10f2d63a 4391 fi
e6cc62c6 4392
10f2d63a 4393
5005acfe 4394 enablestring=
e6cc62c6
VS
4395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4396echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4397 no_cache=0
1e6feb95
VZ
4398 # Check whether --enable-timer or --disable-timer was given.
4399if test "${enable_timer+set}" = set; then
4400 enableval="$enable_timer"
e6cc62c6 4401
10f2d63a 4402 if test "$enableval" = yes; then
1e6feb95 4403 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4404 else
1e6feb95 4405 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4406 fi
e6cc62c6 4407
10f2d63a 4408else
e6cc62c6 4409
1e6feb95 4410 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4411 if test "x$LINE" != x ; then
4412 eval "DEFAULT_$LINE"
4413 else
4414 no_cache=1
4415 fi
4416
1e6feb95 4417 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4418
e6cc62c6 4419fi;
10f2d63a 4420
1e6feb95 4421 eval "$ac_cv_use_timer"
10f2d63a 4422 if test "$no_cache" != 1; then
1e6feb95 4423 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4424 fi
4425
1e6feb95 4426 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4427 echo "$as_me:$LINENO: result: yes" >&5
4428echo "${ECHO_T}yes" >&6
10f2d63a 4429 else
e6cc62c6
VS
4430 echo "$as_me:$LINENO: result: no" >&5
4431echo "${ECHO_T}no" >&6
10f2d63a 4432 fi
e6cc62c6 4433
10f2d63a 4434
5005acfe 4435 enablestring=
e6cc62c6
VS
4436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4437echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4438 no_cache=0
4439 # Check whether --enable-wave or --disable-wave was given.
4440if test "${enable_wave+set}" = set; then
4441 enableval="$enable_wave"
e6cc62c6 4442
10f2d63a
VZ
4443 if test "$enableval" = yes; then
4444 ac_cv_use_wave='wxUSE_WAVE=yes'
4445 else
4446 ac_cv_use_wave='wxUSE_WAVE=no'
4447 fi
e6cc62c6 4448
10f2d63a 4449else
e6cc62c6 4450
10f2d63a
VZ
4451 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4452 if test "x$LINE" != x ; then
4453 eval "DEFAULT_$LINE"
4454 else
4455 no_cache=1
4456 fi
4457
4458 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4459
e6cc62c6 4460fi;
10f2d63a
VZ
4461
4462 eval "$ac_cv_use_wave"
4463 if test "$no_cache" != 1; then
4464 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4465 fi
4466
4467 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4468 echo "$as_me:$LINENO: result: yes" >&5
4469echo "${ECHO_T}yes" >&6
10f2d63a 4470 else
e6cc62c6
VS
4471 echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6
10f2d63a 4473 fi
e6cc62c6 4474
10f2d63a 4475
5005acfe 4476 enablestring=
e6cc62c6
VS
4477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4478echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4479 no_cache=0
4480 # Check whether --enable-fraction or --disable-fraction was given.
4481if test "${enable_fraction+set}" = set; then
4482 enableval="$enable_fraction"
e6cc62c6 4483
10f2d63a
VZ
4484 if test "$enableval" = yes; then
4485 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4486 else
4487 ac_cv_use_fraction='wxUSE_FRACTION=no'
4488 fi
e6cc62c6 4489
10f2d63a 4490else
e6cc62c6 4491
10f2d63a
VZ
4492 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4493 if test "x$LINE" != x ; then
4494 eval "DEFAULT_$LINE"
4495 else
4496 no_cache=1
4497 fi
4498
4499 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4500
e6cc62c6 4501fi;
10f2d63a
VZ
4502
4503 eval "$ac_cv_use_fraction"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4509 echo "$as_me:$LINENO: result: yes" >&5
4510echo "${ECHO_T}yes" >&6
10f2d63a 4511 else
e6cc62c6
VS
4512 echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6
10f2d63a 4514 fi
e6cc62c6 4515
10f2d63a 4516
5005acfe 4517 enablestring=
e6cc62c6
VS
4518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4519echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4520 no_cache=0
4521 # Check whether --enable-dynlib or --disable-dynlib was given.
4522if test "${enable_dynlib+set}" = set; then
4523 enableval="$enable_dynlib"
e6cc62c6 4524
10f2d63a
VZ
4525 if test "$enableval" = yes; then
4526 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4527 else
4528 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4529 fi
e6cc62c6 4530
10f2d63a 4531else
e6cc62c6 4532
10f2d63a
VZ
4533 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4534 if test "x$LINE" != x ; then
4535 eval "DEFAULT_$LINE"
4536 else
4537 no_cache=1
4538 fi
4539
4540 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4541
e6cc62c6 4542fi;
10f2d63a
VZ
4543
4544 eval "$ac_cv_use_dynlib"
4545 if test "$no_cache" != 1; then
4546 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4547 fi
4548
4549 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4550 echo "$as_me:$LINENO: result: yes" >&5
4551echo "${ECHO_T}yes" >&6
10f2d63a 4552 else
e6cc62c6
VS
4553 echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6
10f2d63a 4555 fi
e6cc62c6 4556
10f2d63a 4557
5005acfe 4558 enablestring=
e6cc62c6
VS
4559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4560echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4561 no_cache=0
4562 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4563if test "${enable_dynamicloader+set}" = set; then
4564 enableval="$enable_dynamicloader"
e6cc62c6 4565
0b9ab0bd
RL
4566 if test "$enableval" = yes; then
4567 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4568 else
4569 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4570 fi
e6cc62c6 4571
0b9ab0bd 4572else
e6cc62c6 4573
0b9ab0bd
RL
4574 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4575 if test "x$LINE" != x ; then
4576 eval "DEFAULT_$LINE"
4577 else
4578 no_cache=1
4579 fi
4580
4581 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4582
e6cc62c6 4583fi;
0b9ab0bd
RL
4584
4585 eval "$ac_cv_use_dynamicloader"
4586 if test "$no_cache" != 1; then
4587 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4588 fi
4589
4590 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4591 echo "$as_me:$LINENO: result: yes" >&5
4592echo "${ECHO_T}yes" >&6
0b9ab0bd 4593 else
e6cc62c6
VS
4594 echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6
0b9ab0bd 4596 fi
e6cc62c6 4597
0b9ab0bd 4598
5005acfe 4599 enablestring=
e6cc62c6
VS
4600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4601echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4602 no_cache=0
4603 # Check whether --enable-longlong or --disable-longlong was given.
4604if test "${enable_longlong+set}" = set; then
4605 enableval="$enable_longlong"
e6cc62c6 4606
10f2d63a
VZ
4607 if test "$enableval" = yes; then
4608 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4609 else
4610 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4611 fi
e6cc62c6 4612
10f2d63a 4613else
e6cc62c6 4614
10f2d63a
VZ
4615 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4616 if test "x$LINE" != x ; then
4617 eval "DEFAULT_$LINE"
4618 else
4619 no_cache=1
4620 fi
4621
4622 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4623
e6cc62c6 4624fi;
10f2d63a
VZ
4625
4626 eval "$ac_cv_use_longlong"
4627 if test "$no_cache" != 1; then
4628 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4629 fi
4630
4631 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4632 echo "$as_me:$LINENO: result: yes" >&5
4633echo "${ECHO_T}yes" >&6
10f2d63a 4634 else
e6cc62c6
VS
4635 echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6
10f2d63a 4637 fi
e6cc62c6 4638
10f2d63a 4639
5005acfe 4640 enablestring=
e6cc62c6
VS
4641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4642echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4643 no_cache=0
4644 # Check whether --enable-geometry or --disable-geometry was given.
4645if test "${enable_geometry+set}" = set; then
4646 enableval="$enable_geometry"
e6cc62c6 4647
e8f65ba6
RR
4648 if test "$enableval" = yes; then
4649 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4650 else
4651 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4652 fi
e6cc62c6 4653
e8f65ba6 4654else
e6cc62c6 4655
e8f65ba6
RR
4656 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
4663 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4664
e6cc62c6 4665fi;
e8f65ba6
RR
4666
4667 eval "$ac_cv_use_geometry"
4668 if test "$no_cache" != 1; then
4669 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4670 fi
4671
4672 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4673 echo "$as_me:$LINENO: result: yes" >&5
4674echo "${ECHO_T}yes" >&6
e8f65ba6 4675 else
e6cc62c6
VS
4676 echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6
e8f65ba6 4678 fi
e6cc62c6 4679
e8f65ba6 4680
5005acfe 4681 enablestring=
e6cc62c6
VS
4682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4683echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4684 no_cache=0
4685 # Check whether --enable-log or --disable-log was given.
4686if test "${enable_log+set}" = set; then
4687 enableval="$enable_log"
e6cc62c6 4688
10f2d63a
VZ
4689 if test "$enableval" = yes; then
4690 ac_cv_use_log='wxUSE_LOG=yes'
4691 else
4692 ac_cv_use_log='wxUSE_LOG=no'
4693 fi
e6cc62c6 4694
10f2d63a 4695else
e6cc62c6 4696
10f2d63a
VZ
4697 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4698 if test "x$LINE" != x ; then
4699 eval "DEFAULT_$LINE"
4700 else
4701 no_cache=1
4702 fi
4703
4704 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4705
e6cc62c6 4706fi;
10f2d63a
VZ
4707
4708 eval "$ac_cv_use_log"
4709 if test "$no_cache" != 1; then
4710 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4711 fi
4712
4713 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4714 echo "$as_me:$LINENO: result: yes" >&5
4715echo "${ECHO_T}yes" >&6
10f2d63a 4716 else
e6cc62c6
VS
4717 echo "$as_me:$LINENO: result: no" >&5
4718echo "${ECHO_T}no" >&6
10f2d63a 4719 fi
e6cc62c6 4720
10f2d63a 4721
5005acfe 4722 enablestring=
e6cc62c6
VS
4723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4724echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4725 no_cache=0
4726 # Check whether --enable-streams or --disable-streams was given.
4727if test "${enable_streams+set}" = set; then
4728 enableval="$enable_streams"
e6cc62c6 4729
10f2d63a
VZ
4730 if test "$enableval" = yes; then
4731 ac_cv_use_streams='wxUSE_STREAMS=yes'
4732 else
4733 ac_cv_use_streams='wxUSE_STREAMS=no'
4734 fi
e6cc62c6 4735
10f2d63a 4736else
e6cc62c6 4737
10f2d63a
VZ
4738 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4746
e6cc62c6 4747fi;
10f2d63a
VZ
4748
4749 eval "$ac_cv_use_streams"
4750 if test "$no_cache" != 1; then
4751 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4752 fi
4753
4754 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4755 echo "$as_me:$LINENO: result: yes" >&5
4756echo "${ECHO_T}yes" >&6
10f2d63a 4757 else
e6cc62c6
VS
4758 echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6
10f2d63a 4760 fi
e6cc62c6 4761
10f2d63a 4762
5005acfe 4763 enablestring=
e6cc62c6
VS
4764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4765echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4766 no_cache=0
4767 # Check whether --enable-file or --disable-file was given.
4768if test "${enable_file+set}" = set; then
4769 enableval="$enable_file"
e6cc62c6 4770
10f2d63a
VZ
4771 if test "$enableval" = yes; then
4772 ac_cv_use_file='wxUSE_FILE=yes'
4773 else
4774 ac_cv_use_file='wxUSE_FILE=no'
4775 fi
e6cc62c6 4776
10f2d63a 4777else
e6cc62c6 4778
10f2d63a
VZ
4779 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4780 if test "x$LINE" != x ; then
4781 eval "DEFAULT_$LINE"
4782 else
4783 no_cache=1
4784 fi
4785
4786 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4787
e6cc62c6 4788fi;
10f2d63a
VZ
4789
4790 eval "$ac_cv_use_file"
4791 if test "$no_cache" != 1; then
4792 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4793 fi
4794
4795 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4796 echo "$as_me:$LINENO: result: yes" >&5
4797echo "${ECHO_T}yes" >&6
10f2d63a 4798 else
e6cc62c6
VS
4799 echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6
10f2d63a 4801 fi
e6cc62c6 4802
10f2d63a 4803
5005acfe 4804 enablestring=
e6cc62c6
VS
4805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4806echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4807 no_cache=0
1e6feb95
VZ
4808 # Check whether --enable-ffile or --disable-ffile was given.
4809if test "${enable_ffile+set}" = set; then
4810 enableval="$enable_ffile"
e6cc62c6 4811
10f2d63a 4812 if test "$enableval" = yes; then
1e6feb95 4813 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4814 else
1e6feb95 4815 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4816 fi
e6cc62c6 4817
10f2d63a 4818else
e6cc62c6 4819
1e6feb95 4820 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
1e6feb95 4827 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4828
e6cc62c6 4829fi;
10f2d63a 4830
1e6feb95 4831 eval "$ac_cv_use_ffile"
10f2d63a 4832 if test "$no_cache" != 1; then
1e6feb95 4833 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4834 fi
4835
1e6feb95 4836 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4837 echo "$as_me:$LINENO: result: yes" >&5
4838echo "${ECHO_T}yes" >&6
10f2d63a 4839 else
e6cc62c6
VS
4840 echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6
10f2d63a 4842 fi
e6cc62c6 4843
10f2d63a 4844
5005acfe 4845 enablestring=
e6cc62c6
VS
4846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4847echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4848 no_cache=0
4849 # Check whether --enable-textbuf or --disable-textbuf was given.
4850if test "${enable_textbuf+set}" = set; then
4851 enableval="$enable_textbuf"
e6cc62c6 4852
a3a584a7
VZ
4853 if test "$enableval" = yes; then
4854 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4855 else
4856 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4857 fi
e6cc62c6 4858
a3a584a7 4859else
e6cc62c6 4860
a3a584a7
VZ
4861 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4862 if test "x$LINE" != x ; then
4863 eval "DEFAULT_$LINE"
4864 else
4865 no_cache=1
4866 fi
4867
4868 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4869
e6cc62c6 4870fi;
a3a584a7
VZ
4871
4872 eval "$ac_cv_use_textbuf"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4878 echo "$as_me:$LINENO: result: yes" >&5
4879echo "${ECHO_T}yes" >&6
a3a584a7 4880 else
e6cc62c6
VS
4881 echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
a3a584a7 4883 fi
e6cc62c6 4884
a3a584a7 4885
5005acfe 4886 enablestring=
e6cc62c6
VS
4887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4888echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4889 no_cache=0
1e6feb95
VZ
4890 # Check whether --enable-textfile or --disable-textfile was given.
4891if test "${enable_textfile+set}" = set; then
4892 enableval="$enable_textfile"
e6cc62c6 4893
10f2d63a 4894 if test "$enableval" = yes; then
1e6feb95 4895 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4896 else
1e6feb95 4897 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4898 fi
e6cc62c6 4899
10f2d63a 4900else
e6cc62c6 4901
1e6feb95 4902 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
1e6feb95 4909 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4910
e6cc62c6 4911fi;
10f2d63a 4912
1e6feb95 4913 eval "$ac_cv_use_textfile"
10f2d63a 4914 if test "$no_cache" != 1; then
1e6feb95 4915 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4916 fi
4917
1e6feb95 4918 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4919 echo "$as_me:$LINENO: result: yes" >&5
4920echo "${ECHO_T}yes" >&6
10f2d63a 4921 else
e6cc62c6
VS
4922 echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
10f2d63a 4924 fi
e6cc62c6 4925
10f2d63a 4926
5005acfe 4927 enablestring=
e6cc62c6
VS
4928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4929echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4930 no_cache=0
1e6feb95
VZ
4931 # Check whether --enable-fontmap or --disable-fontmap was given.
4932if test "${enable_fontmap+set}" = set; then
4933 enableval="$enable_fontmap"
e6cc62c6 4934
10f2d63a 4935 if test "$enableval" = yes; then
1e6feb95 4936 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4937 else
1e6feb95 4938 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4939 fi
e6cc62c6 4940
10f2d63a 4941else
e6cc62c6 4942
1e6feb95 4943 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
1e6feb95 4950 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4951
e6cc62c6 4952fi;
10f2d63a 4953
1e6feb95 4954 eval "$ac_cv_use_fontmap"
10f2d63a 4955 if test "$no_cache" != 1; then
1e6feb95 4956 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4957 fi
4958
1e6feb95 4959 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4960 echo "$as_me:$LINENO: result: yes" >&5
4961echo "${ECHO_T}yes" >&6
10f2d63a 4962 else
e6cc62c6
VS
4963 echo "$as_me:$LINENO: result: no" >&5
4964echo "${ECHO_T}no" >&6
10f2d63a 4965 fi
e6cc62c6 4966
10f2d63a 4967
5005acfe 4968 enablestring=
e6cc62c6
VS
4969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4970echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4971 no_cache=0
1e6feb95
VZ
4972 # Check whether --enable-unicode or --disable-unicode was given.
4973if test "${enable_unicode+set}" = set; then
4974 enableval="$enable_unicode"
e6cc62c6 4975
1e6feb95
VZ
4976 if test "$enableval" = yes; then
4977 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4978 else
4979 ac_cv_use_unicode='wxUSE_UNICODE=no'
4980 fi
e6cc62c6 4981
1e6feb95 4982else
e6cc62c6 4983
1e6feb95
VZ
4984 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
4991 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4992
e6cc62c6 4993fi;
1e6feb95
VZ
4994
4995 eval "$ac_cv_use_unicode"
4996 if test "$no_cache" != 1; then
4997 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4998 fi
4999
5000 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5001 echo "$as_me:$LINENO: result: yes" >&5
5002echo "${ECHO_T}yes" >&6
1e6feb95 5003 else
e6cc62c6
VS
5004 echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
1e6feb95 5006 fi
e6cc62c6 5007
1e6feb95 5008
5005acfe 5009 enablestring=
e6cc62c6
VS
5010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5011echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5012 no_cache=0
5013 # Check whether --enable-mslu or --disable-mslu was given.
5014if test "${enable_mslu+set}" = set; then
5015 enableval="$enable_mslu"
e6cc62c6 5016
a72a4bfa
VS
5017 if test "$enableval" = yes; then
5018 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5019 else
5020 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5021 fi
e6cc62c6 5022
a72a4bfa 5023else
e6cc62c6 5024
a72a4bfa
VS
5025 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5026 if test "x$LINE" != x ; then
5027 eval "DEFAULT_$LINE"
5028 else
5029 no_cache=1
5030 fi
5031
5032 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5033
e6cc62c6 5034fi;
a72a4bfa
VS
5035
5036 eval "$ac_cv_use_mslu"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5042 echo "$as_me:$LINENO: result: yes" >&5
5043echo "${ECHO_T}yes" >&6
a72a4bfa 5044 else
e6cc62c6
VS
5045 echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
a72a4bfa 5047 fi
e6cc62c6 5048
a72a4bfa 5049
5005acfe 5050 enablestring=
e6cc62c6
VS
5051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5052echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5053 no_cache=0
5054 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5055if test "${enable_wxprintfv+set}" = set; then
5056 enableval="$enable_wxprintfv"
e6cc62c6 5057
1e6feb95 5058 if test "$enableval" = yes; then
10f2d63a
VZ
5059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5060 else
5061 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5062 fi
e6cc62c6 5063
10f2d63a 5064else
e6cc62c6 5065
10f2d63a
VZ
5066 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
5073 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5074
e6cc62c6 5075fi;
10f2d63a
VZ
5076
5077 eval "$ac_cv_use_wxprintfv"
5078 if test "$no_cache" != 1; then
5079 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5080 fi
5081
5082 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5083 echo "$as_me:$LINENO: result: yes" >&5
5084echo "${ECHO_T}yes" >&6
10f2d63a 5085 else
e6cc62c6
VS
5086 echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6
10f2d63a 5088 fi
e6cc62c6 5089
10f2d63a 5090
5005acfe 5091 enablestring=
e6cc62c6
VS
5092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5093echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5094 no_cache=0
5095 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5096if test "${enable_std_iostreams+set}" = set; then
5097 enableval="$enable_std_iostreams"
e6cc62c6 5098
10f2d63a
VZ
5099 if test "$enableval" = yes; then
5100 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5101 else
5102 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5103 fi
e6cc62c6 5104
10f2d63a 5105else
e6cc62c6 5106
10f2d63a
VZ
5107 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5115
e6cc62c6 5116fi;
10f2d63a
VZ
5117
5118 eval "$ac_cv_use_std_iostreams"
5119 if test "$no_cache" != 1; then
5120 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5121 fi
5122
5123 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5124 echo "$as_me:$LINENO: result: yes" >&5
5125echo "${ECHO_T}yes" >&6
10f2d63a 5126 else
e6cc62c6
VS
5127 echo "$as_me:$LINENO: result: no" >&5
5128echo "${ECHO_T}no" >&6
10f2d63a 5129 fi
e6cc62c6 5130
10f2d63a 5131
5005acfe 5132 enablestring=
e6cc62c6
VS
5133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5134echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5135 no_cache=0
5136 # Check whether --enable-filesystem or --disable-filesystem was given.
5137if test "${enable_filesystem+set}" = set; then
5138 enableval="$enable_filesystem"
e6cc62c6 5139
24528b0c
VS
5140 if test "$enableval" = yes; then
5141 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5142 else
5143 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5144 fi
e6cc62c6 5145
24528b0c 5146else
e6cc62c6 5147
24528b0c
VS
5148 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5149 if test "x$LINE" != x ; then
5150 eval "DEFAULT_$LINE"
5151 else
5152 no_cache=1
5153 fi
5154
5155 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5156
e6cc62c6 5157fi;
24528b0c
VS
5158
5159 eval "$ac_cv_use_filesystem"
5160 if test "$no_cache" != 1; then
5161 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5162 fi
5163
5164 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5165 echo "$as_me:$LINENO: result: yes" >&5
5166echo "${ECHO_T}yes" >&6
24528b0c 5167 else
e6cc62c6
VS
5168 echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
24528b0c 5170 fi
e6cc62c6 5171
24528b0c 5172
5005acfe 5173 enablestring=
e6cc62c6
VS
5174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5175echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5176 no_cache=0
5177 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5178if test "${enable_fs_inet+set}" = set; then
5179 enableval="$enable_fs_inet"
e6cc62c6 5180
10f2d63a
VZ
5181 if test "$enableval" = yes; then
5182 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5183 else
5184 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5185 fi
e6cc62c6 5186
10f2d63a 5187else
e6cc62c6 5188
10f2d63a
VZ
5189 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5197
e6cc62c6 5198fi;
10f2d63a
VZ
5199
5200 eval "$ac_cv_use_fs_inet"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5206 echo "$as_me:$LINENO: result: yes" >&5
5207echo "${ECHO_T}yes" >&6
10f2d63a 5208 else
e6cc62c6
VS
5209 echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
10f2d63a 5211 fi
e6cc62c6 5212
10f2d63a 5213
5005acfe 5214 enablestring=
e6cc62c6
VS
5215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5216echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5217 no_cache=0
5218 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5219if test "${enable_fs_zip+set}" = set; then
5220 enableval="$enable_fs_zip"
e6cc62c6 5221
10f2d63a
VZ
5222 if test "$enableval" = yes; then
5223 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5224 else
5225 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5226 fi
e6cc62c6 5227
10f2d63a 5228else
e6cc62c6 5229
10f2d63a
VZ
5230 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5238
e6cc62c6 5239fi;
10f2d63a
VZ
5240
5241 eval "$ac_cv_use_fs_zip"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5247 echo "$as_me:$LINENO: result: yes" >&5
5248echo "${ECHO_T}yes" >&6
10f2d63a 5249 else
e6cc62c6
VS
5250 echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6
10f2d63a 5252 fi
e6cc62c6 5253
10f2d63a 5254
5005acfe 5255 enablestring=
e6cc62c6
VS
5256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5257echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5258 no_cache=0
5259 # Check whether --enable-zipstream or --disable-zipstream was given.
5260if test "${enable_zipstream+set}" = set; then
5261 enableval="$enable_zipstream"
e6cc62c6 5262
10f2d63a
VZ
5263 if test "$enableval" = yes; then
5264 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5265 else
5266 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5267 fi
e6cc62c6 5268
10f2d63a 5269else
e6cc62c6 5270
10f2d63a
VZ
5271 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5279
e6cc62c6 5280fi;
10f2d63a
VZ
5281
5282 eval "$ac_cv_use_zipstream"
5283 if test "$no_cache" != 1; then
5284 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5285 fi
5286
5287 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5288 echo "$as_me:$LINENO: result: yes" >&5
5289echo "${ECHO_T}yes" >&6
10f2d63a 5290 else
e6cc62c6
VS
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
10f2d63a 5293 fi
e6cc62c6 5294
8284b0c5 5295
52127426 5296
5005acfe 5297 enablestring=
e6cc62c6
VS
5298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5299echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5300 no_cache=0
5301 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5302if test "${enable_catch_segvs+set}" = set; then
5303 enableval="$enable_catch_segvs"
e6cc62c6 5304
eb4efbdc
VZ
5305 if test "$enableval" = yes; then
5306 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5307 else
5308 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5309 fi
e6cc62c6 5310
eb4efbdc 5311else
e6cc62c6 5312
eb4efbdc
VZ
5313 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5314 if test "x$LINE" != x ; then
5315 eval "DEFAULT_$LINE"
5316 else
5317 no_cache=1
5318 fi
5319
5320 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5321
e6cc62c6 5322fi;
eb4efbdc
VZ
5323
5324 eval "$ac_cv_use_catch_segvs"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5330 echo "$as_me:$LINENO: result: yes" >&5
5331echo "${ECHO_T}yes" >&6
eb4efbdc 5332 else
e6cc62c6
VS
5333 echo "$as_me:$LINENO: result: no" >&5
5334echo "${ECHO_T}no" >&6
eb4efbdc 5335 fi
e6cc62c6 5336
eb4efbdc 5337
5005acfe 5338 enablestring=
e6cc62c6
VS
5339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5340echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5341 no_cache=0
5342 # Check whether --enable-snglinst or --disable-snglinst was given.
5343if test "${enable_snglinst+set}" = set; then
5344 enableval="$enable_snglinst"
e6cc62c6 5345
4f3c5f06
VZ
5346 if test "$enableval" = yes; then
5347 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5348 else
5349 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5350 fi
e6cc62c6 5351
4f3c5f06 5352else
e6cc62c6 5353
4f3c5f06
VZ
5354 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5355 if test "x$LINE" != x ; then
5356 eval "DEFAULT_$LINE"
5357 else
5358 no_cache=1
5359 fi
5360
5361 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5362
e6cc62c6 5363fi;
4f3c5f06
VZ
5364
5365 eval "$ac_cv_use_snglinst"
5366 if test "$no_cache" != 1; then
5367 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5368 fi
5369
5370 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5371 echo "$as_me:$LINENO: result: yes" >&5
5372echo "${ECHO_T}yes" >&6
4f3c5f06 5373 else
e6cc62c6
VS
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
4f3c5f06 5376 fi
e6cc62c6 5377
52127426 5378
8284b0c5 5379
5005acfe 5380 enablestring=
e6cc62c6
VS
5381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5382echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5383 no_cache=0
5384 # Check whether --enable-mimetype or --disable-mimetype was given.
5385if test "${enable_mimetype+set}" = set; then
5386 enableval="$enable_mimetype"
e6cc62c6 5387
1e6feb95
VZ
5388 if test "$enableval" = yes; then
5389 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5390 else
5391 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5392 fi
e6cc62c6 5393
1e6feb95 5394else
e6cc62c6 5395
1e6feb95
VZ
5396 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5397 if test "x$LINE" != x ; then
5398 eval "DEFAULT_$LINE"
5399 else
5400 no_cache=1
5401 fi
5402
5403 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5404
e6cc62c6 5405fi;
1e6feb95
VZ
5406
5407 eval "$ac_cv_use_mimetype"
5408 if test "$no_cache" != 1; then
5409 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5410 fi
5411
5412 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5413 echo "$as_me:$LINENO: result: yes" >&5
5414echo "${ECHO_T}yes" >&6
1e6feb95 5415 else
e6cc62c6
VS
5416 echo "$as_me:$LINENO: result: no" >&5
5417echo "${ECHO_T}no" >&6
1e6feb95 5418 fi
e6cc62c6 5419
1e6feb95 5420
5005acfe 5421 enablestring=
e6cc62c6
VS
5422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5423echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5424 no_cache=0
5425 # Check whether --enable-system_options or --disable-system_options was given.
5426if test "${enable_system_options+set}" = set; then
5427 enableval="$enable_system_options"
e6cc62c6 5428
3e44f09d
VZ
5429 if test "$enableval" = yes; then
5430 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5431 else
5432 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5433 fi
e6cc62c6 5434
3e44f09d 5435else
e6cc62c6 5436
3e44f09d
VZ
5437 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5438 if test "x$LINE" != x ; then
5439 eval "DEFAULT_$LINE"
5440 else
5441 no_cache=1
5442 fi
5443
5444 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5445
e6cc62c6 5446fi;
3e44f09d
VZ
5447
5448 eval "$ac_cv_use_system_options"
5449 if test "$no_cache" != 1; then
5450 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5451 fi
5452
5453 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5454 echo "$as_me:$LINENO: result: yes" >&5
5455echo "${ECHO_T}yes" >&6
3e44f09d 5456 else
e6cc62c6
VS
5457 echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6
3e44f09d 5459 fi
e6cc62c6 5460
8284b0c5 5461
52127426 5462
5005acfe 5463 enablestring=
e6cc62c6
VS
5464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5465echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5466 no_cache=0
5467 # Check whether --enable-url or --disable-url was given.
5468if test "${enable_url+set}" = set; then
5469 enableval="$enable_url"
e6cc62c6 5470
4cdb0ab0
VS
5471 if test "$enableval" = yes; then
5472 ac_cv_use_url='wxUSE_URL=yes'
5473 else
5474 ac_cv_use_url='wxUSE_URL=no'
5475 fi
e6cc62c6 5476
4cdb0ab0 5477else
e6cc62c6 5478
4cdb0ab0
VS
5479 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5480 if test "x$LINE" != x ; then
5481 eval "DEFAULT_$LINE"
5482 else
5483 no_cache=1
5484 fi
5485
5486 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5487
e6cc62c6 5488fi;
4cdb0ab0
VS
5489
5490 eval "$ac_cv_use_url"
5491 if test "$no_cache" != 1; then
5492 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5493 fi
5494
5495 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5496 echo "$as_me:$LINENO: result: yes" >&5
5497echo "${ECHO_T}yes" >&6
4cdb0ab0 5498 else
e6cc62c6
VS
5499 echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
4cdb0ab0 5501 fi
e6cc62c6 5502
4cdb0ab0 5503
5005acfe 5504 enablestring=
e6cc62c6
VS
5505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5506echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5507 no_cache=0
5508 # Check whether --enable-protocol or --disable-protocol was given.
5509if test "${enable_protocol+set}" = set; then
5510 enableval="$enable_protocol"
e6cc62c6 5511
4cdb0ab0
VS
5512 if test "$enableval" = yes; then
5513 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5514 else
5515 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5516 fi
e6cc62c6 5517
4cdb0ab0 5518else
e6cc62c6 5519
4cdb0ab0
VS
5520 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5521 if test "x$LINE" != x ; then
5522 eval "DEFAULT_$LINE"
5523 else
5524 no_cache=1
5525 fi
5526
5527 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5528
e6cc62c6 5529fi;
4cdb0ab0
VS
5530
5531 eval "$ac_cv_use_protocol"
5532 if test "$no_cache" != 1; then
5533 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5534 fi
5535
5536 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5537 echo "$as_me:$LINENO: result: yes" >&5
5538echo "${ECHO_T}yes" >&6
4cdb0ab0 5539 else
e6cc62c6
VS
5540 echo "$as_me:$LINENO: result: no" >&5
5541echo "${ECHO_T}no" >&6
4cdb0ab0 5542 fi
e6cc62c6 5543
4cdb0ab0 5544
5005acfe 5545 enablestring=
e6cc62c6
VS
5546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5547echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5548 no_cache=0
5549 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5550if test "${enable_protocol_http+set}" = set; then
5551 enableval="$enable_protocol_http"
e6cc62c6 5552
4cdb0ab0
VS
5553 if test "$enableval" = yes; then
5554 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5555 else
5556 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5557 fi
e6cc62c6 5558
4cdb0ab0 5559else
e6cc62c6 5560
4cdb0ab0
VS
5561 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5562 if test "x$LINE" != x ; then
5563 eval "DEFAULT_$LINE"
5564 else
5565 no_cache=1
5566 fi
5567
5568 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5569
e6cc62c6 5570fi;
4cdb0ab0
VS
5571
5572 eval "$ac_cv_use_protocol_http"
5573 if test "$no_cache" != 1; then
5574 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5575 fi
5576
5577 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5578 echo "$as_me:$LINENO: result: yes" >&5
5579echo "${ECHO_T}yes" >&6
4cdb0ab0 5580 else
e6cc62c6
VS
5581 echo "$as_me:$LINENO: result: no" >&5
5582echo "${ECHO_T}no" >&6
4cdb0ab0 5583 fi
e6cc62c6 5584
4cdb0ab0 5585
5005acfe 5586 enablestring=
e6cc62c6
VS
5587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5588echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5589 no_cache=0
5590 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5591if test "${enable_protocol_ftp+set}" = set; then
5592 enableval="$enable_protocol_ftp"
e6cc62c6 5593
4cdb0ab0
VS
5594 if test "$enableval" = yes; then
5595 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5596 else
5597 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5598 fi
e6cc62c6 5599
4cdb0ab0 5600else
e6cc62c6 5601
4cdb0ab0
VS
5602 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5603 if test "x$LINE" != x ; then
5604 eval "DEFAULT_$LINE"
5605 else
5606 no_cache=1
5607 fi
5608
5609 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5610
e6cc62c6 5611fi;
4cdb0ab0
VS
5612
5613 eval "$ac_cv_use_protocol_ftp"
5614 if test "$no_cache" != 1; then
5615 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5616 fi
5617
5618 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5619 echo "$as_me:$LINENO: result: yes" >&5
5620echo "${ECHO_T}yes" >&6
4cdb0ab0 5621 else
e6cc62c6
VS
5622 echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6
4cdb0ab0 5624 fi
e6cc62c6 5625
4cdb0ab0 5626
5005acfe 5627 enablestring=
e6cc62c6
VS
5628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5629echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5630 no_cache=0
5631 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5632if test "${enable_protocol_file+set}" = set; then
5633 enableval="$enable_protocol_file"
e6cc62c6 5634
4cdb0ab0
VS
5635 if test "$enableval" = yes; then
5636 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5637 else
5638 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5639 fi
e6cc62c6 5640
4cdb0ab0 5641else
e6cc62c6 5642
4cdb0ab0
VS
5643 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5644 if test "x$LINE" != x ; then
5645 eval "DEFAULT_$LINE"
5646 else
5647 no_cache=1
5648 fi
5649
5650 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5651
e6cc62c6 5652fi;
4cdb0ab0
VS
5653
5654 eval "$ac_cv_use_protocol_file"
5655 if test "$no_cache" != 1; then
5656 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5657 fi
5658
5659 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5660 echo "$as_me:$LINENO: result: yes" >&5
5661echo "${ECHO_T}yes" >&6
4cdb0ab0 5662 else
e6cc62c6
VS
5663 echo "$as_me:$LINENO: result: no" >&5
5664echo "${ECHO_T}no" >&6
4cdb0ab0 5665 fi
e6cc62c6 5666
52127426 5667
8284b0c5
MB
5668
5669
5670
5005acfe 5671 enablestring=
e6cc62c6
VS
5672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5673echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5674 no_cache=0
5675 # Check whether --enable-threads or --disable-threads was given.
5676if test "${enable_threads+set}" = set; then
5677 enableval="$enable_threads"
e6cc62c6 5678
10f2d63a
VZ
5679 if test "$enableval" = yes; then
5680 ac_cv_use_threads='wxUSE_THREADS=yes'
5681 else
5682 ac_cv_use_threads='wxUSE_THREADS=no'
5683 fi
e6cc62c6 5684
10f2d63a 5685else
e6cc62c6 5686
10f2d63a
VZ
5687 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5695
e6cc62c6 5696fi;
10f2d63a
VZ
5697
5698 eval "$ac_cv_use_threads"
5699 if test "$no_cache" != 1; then
5700 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5701 fi
5702
5703 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5704 echo "$as_me:$LINENO: result: yes" >&5
5705echo "${ECHO_T}yes" >&6
10f2d63a 5706 else
e6cc62c6
VS
5707 echo "$as_me:$LINENO: result: no" >&5
5708echo "${ECHO_T}no" >&6
10f2d63a 5709 fi
e6cc62c6 5710
10f2d63a 5711
b12915c1
VZ
5712if test "$wxUSE_GUI" = "yes"; then
5713
8284b0c5
MB
5714
5715
5005acfe 5716 enablestring=
e6cc62c6
VS
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5719 no_cache=0
5720 # Check whether --enable-docview or --disable-docview was given.
5721if test "${enable_docview+set}" = set; then
5722 enableval="$enable_docview"
e6cc62c6 5723
10f2d63a
VZ
5724 if test "$enableval" = yes; then
5725 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5726 else
5727 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5728 fi
e6cc62c6 5729
10f2d63a 5730else
e6cc62c6 5731
10f2d63a
VZ
5732 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5740
e6cc62c6 5741fi;
10f2d63a
VZ
5742
5743 eval "$ac_cv_use_docview"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
10f2d63a 5751 else
e6cc62c6
VS
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
10f2d63a 5754 fi
e6cc62c6 5755
10f2d63a 5756
5005acfe 5757 enablestring=
e6cc62c6
VS
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5760 no_cache=0
5761 # Check whether --enable-help or --disable-help was given.
5762if test "${enable_help+set}" = set; then
5763 enableval="$enable_help"
e6cc62c6 5764
10f2d63a
VZ
5765 if test "$enableval" = yes; then
5766 ac_cv_use_help='wxUSE_HELP=yes'
5767 else
5768 ac_cv_use_help='wxUSE_HELP=no'
5769 fi
e6cc62c6 5770
10f2d63a 5771else
e6cc62c6 5772
10f2d63a
VZ
5773 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5781
e6cc62c6 5782fi;
10f2d63a
VZ
5783
5784 eval "$ac_cv_use_help"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
10f2d63a 5792 else
e6cc62c6
VS
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
10f2d63a 5795 fi
e6cc62c6 5796
10f2d63a 5797
5005acfe 5798 enablestring=
e6cc62c6
VS
5799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5800echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5801 no_cache=0
5802 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5803if test "${enable_mshtmlhelp+set}" = set; then
5804 enableval="$enable_mshtmlhelp"
e6cc62c6 5805
29fd3c0c
VS
5806 if test "$enableval" = yes; then
5807 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5808 else
5809 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5810 fi
e6cc62c6 5811
29fd3c0c 5812else
e6cc62c6 5813
29fd3c0c
VS
5814 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5822
e6cc62c6 5823fi;
29fd3c0c
VS
5824
5825 eval "$ac_cv_use_mshtmlhelp"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5831 echo "$as_me:$LINENO: result: yes" >&5
5832echo "${ECHO_T}yes" >&6
29fd3c0c 5833 else
e6cc62c6
VS
5834 echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
29fd3c0c 5836 fi
e6cc62c6 5837
29fd3c0c 5838
5005acfe 5839 enablestring=
e6cc62c6
VS
5840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5841echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5842 no_cache=0
5843 # Check whether --enable-html or --disable-html was given.
5844if test "${enable_html+set}" = set; then
5845 enableval="$enable_html"
e6cc62c6 5846
3379ed37
VZ
5847 if test "$enableval" = yes; then
5848 ac_cv_use_html='wxUSE_HTML=yes'
5849 else
5850 ac_cv_use_html='wxUSE_HTML=no'
5851 fi
e6cc62c6 5852
3379ed37 5853else
e6cc62c6 5854
3379ed37
VZ
5855 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5863
e6cc62c6 5864fi;
3379ed37
VZ
5865
5866 eval "$ac_cv_use_html"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5872 echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6
3379ed37 5874 else
e6cc62c6
VS
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
3379ed37 5877 fi
e6cc62c6 5878
3379ed37 5879
5005acfe 5880 enablestring=
e6cc62c6
VS
5881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5882echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5883 no_cache=0
5884 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5885if test "${enable_htmlhelp+set}" = set; then
5886 enableval="$enable_htmlhelp"
e6cc62c6 5887
3379ed37
VZ
5888 if test "$enableval" = yes; then
5889 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5890 else
5891 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5892 fi
e6cc62c6 5893
3379ed37 5894else
e6cc62c6 5895
3379ed37
VZ
5896 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5904
e6cc62c6 5905fi;
3379ed37
VZ
5906
5907 eval "$ac_cv_use_htmlhelp"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5913 echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
3379ed37 5915 else
e6cc62c6
VS
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
3379ed37 5918 fi
e6cc62c6 5919
3379ed37 5920
5005acfe 5921 enablestring=
e6cc62c6
VS
5922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5923echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5924 no_cache=0
5925 # Check whether --enable-constraints or --disable-constraints was given.
5926if test "${enable_constraints+set}" = set; then
5927 enableval="$enable_constraints"
e6cc62c6 5928
10f2d63a
VZ
5929 if test "$enableval" = yes; then
5930 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5931 else
5932 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5933 fi
e6cc62c6 5934
10f2d63a 5935else
e6cc62c6 5936
10f2d63a
VZ
5937 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
5944 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5945
e6cc62c6 5946fi;
10f2d63a
VZ
5947
5948 eval "$ac_cv_use_constraints"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5954 echo "$as_me:$LINENO: result: yes" >&5
5955echo "${ECHO_T}yes" >&6
10f2d63a 5956 else
e6cc62c6
VS
5957 echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6
10f2d63a 5959 fi
e6cc62c6 5960
10f2d63a 5961
5005acfe 5962 enablestring=
e6cc62c6
VS
5963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5964echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5965 no_cache=0
5966 # Check whether --enable-printarch or --disable-printarch was given.
5967if test "${enable_printarch+set}" = set; then
5968 enableval="$enable_printarch"
e6cc62c6 5969
10f2d63a
VZ
5970 if test "$enableval" = yes; then
5971 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5972 else
5973 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5974 fi
e6cc62c6 5975
10f2d63a 5976else
e6cc62c6 5977
10f2d63a
VZ
5978 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5979 if test "x$LINE" != x ; then
5980 eval "DEFAULT_$LINE"
5981 else
5982 no_cache=1
5983 fi
5984
5985 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5986
e6cc62c6 5987fi;
10f2d63a
VZ
5988
5989 eval "$ac_cv_use_printarch"
5990 if test "$no_cache" != 1; then
5991 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5992 fi
5993
5994 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
5995 echo "$as_me:$LINENO: result: yes" >&5
5996echo "${ECHO_T}yes" >&6
10f2d63a 5997 else
e6cc62c6
VS
5998 echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6
10f2d63a 6000 fi
e6cc62c6 6001
10f2d63a 6002
5005acfe 6003 enablestring=
e6cc62c6
VS
6004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6005echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6006 no_cache=0
6007 # Check whether --enable-mdi or --disable-mdi was given.
6008if test "${enable_mdi+set}" = set; then
6009 enableval="$enable_mdi"
e6cc62c6 6010
10f2d63a
VZ
6011 if test "$enableval" = yes; then
6012 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6013 else
6014 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6015 fi
e6cc62c6 6016
10f2d63a 6017else
e6cc62c6 6018
10f2d63a
VZ
6019 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6020 if test "x$LINE" != x ; then
6021 eval "DEFAULT_$LINE"
6022 else
6023 no_cache=1
6024 fi
6025
6026 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6027
e6cc62c6 6028fi;
10f2d63a
VZ
6029
6030 eval "$ac_cv_use_mdi"
6031 if test "$no_cache" != 1; then
6032 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6033 fi
6034
6035 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6036 echo "$as_me:$LINENO: result: yes" >&5
6037echo "${ECHO_T}yes" >&6
10f2d63a 6038 else
e6cc62c6
VS
6039 echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6
10f2d63a 6041 fi
e6cc62c6 6042
698dcdb6 6043
5005acfe 6044 enablestring=
e6cc62c6
VS
6045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6046echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6047 no_cache=0
6048 # Check whether --enable-loggui or --disable-loggui was given.
6049if test "${enable_loggui+set}" = set; then
6050 enableval="$enable_loggui"
e6cc62c6 6051
1e6feb95
VZ
6052 if test "$enableval" = yes; then
6053 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6054 else
6055 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6056 fi
e6cc62c6 6057
1e6feb95 6058else
e6cc62c6 6059
1e6feb95
VZ
6060 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6061 if test "x$LINE" != x ; then
6062 eval "DEFAULT_$LINE"
6063 else
6064 no_cache=1
6065 fi
6066
6067 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6068
e6cc62c6 6069fi;
1e6feb95
VZ
6070
6071 eval "$ac_cv_use_loggui"
6072 if test "$no_cache" != 1; then
6073 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6074 fi
6075
6076 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6077 echo "$as_me:$LINENO: result: yes" >&5
6078echo "${ECHO_T}yes" >&6
1e6feb95 6079 else
e6cc62c6
VS
6080 echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
1e6feb95 6082 fi
e6cc62c6 6083
1e6feb95 6084
5005acfe 6085 enablestring=
e6cc62c6
VS
6086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6087echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6088 no_cache=0
6089 # Check whether --enable-logwin or --disable-logwin was given.
6090if test "${enable_logwin+set}" = set; then
6091 enableval="$enable_logwin"
e6cc62c6 6092
1e6feb95
VZ
6093 if test "$enableval" = yes; then
6094 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6095 else
6096 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6097 fi
e6cc62c6 6098
1e6feb95 6099else
e6cc62c6 6100
1e6feb95
VZ
6101 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6102 if test "x$LINE" != x ; then
6103 eval "DEFAULT_$LINE"
6104 else
6105 no_cache=1
6106 fi
6107
6108 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6109
e6cc62c6 6110fi;
1e6feb95
VZ
6111
6112 eval "$ac_cv_use_logwin"
6113 if test "$no_cache" != 1; then
6114 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6115 fi
6116
6117 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6118 echo "$as_me:$LINENO: result: yes" >&5
6119echo "${ECHO_T}yes" >&6
1e6feb95 6120 else
e6cc62c6
VS
6121 echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
1e6feb95 6123 fi
e6cc62c6 6124
1e6feb95 6125
5005acfe 6126 enablestring=
e6cc62c6
VS
6127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6128echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6129 no_cache=0
6130 # Check whether --enable-logdialog or --disable-logdialog was given.
6131if test "${enable_logdialog+set}" = set; then
6132 enableval="$enable_logdialog"
e6cc62c6 6133
69d27ff7
MB
6134 if test "$enableval" = yes; then
6135 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6136 else
6137 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6138 fi
e6cc62c6 6139
69d27ff7 6140else
e6cc62c6 6141
69d27ff7
MB
6142 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6143 if test "x$LINE" != x ; then
6144 eval "DEFAULT_$LINE"
6145 else
6146 no_cache=1
6147 fi
6148
6149 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6150
e6cc62c6 6151fi;
69d27ff7
MB
6152
6153 eval "$ac_cv_use_logdialog"
6154 if test "$no_cache" != 1; then
6155 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6156 fi
6157
6158 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6159 echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6
69d27ff7 6161 else
e6cc62c6
VS
6162 echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
69d27ff7 6164 fi
e6cc62c6 6165
8284b0c5 6166
52127426 6167
5005acfe 6168 enablestring=
e6cc62c6
VS
6169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6170echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6171 no_cache=0
6172 # Check whether --enable-postscript or --disable-postscript was given.
6173if test "${enable_postscript+set}" = set; then
6174 enableval="$enable_postscript"
e6cc62c6 6175
10f2d63a
VZ
6176 if test "$enableval" = yes; then
6177 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6178 else
6179 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6180 fi
e6cc62c6 6181
10f2d63a 6182else
e6cc62c6 6183
10f2d63a
VZ
6184 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6192
e6cc62c6 6193fi;
10f2d63a
VZ
6194
6195 eval "$ac_cv_use_postscript"
6196 if test "$no_cache" != 1; then
6197 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6198 fi
6199
6200 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6201 echo "$as_me:$LINENO: result: yes" >&5
6202echo "${ECHO_T}yes" >&6
10f2d63a 6203 else
e6cc62c6
VS
6204 echo "$as_me:$LINENO: result: no" >&5
6205echo "${ECHO_T}no" >&6
10f2d63a 6206 fi
e6cc62c6 6207
8284b0c5
MB
6208
6209
52127426 6210
8284b0c5 6211
5005acfe 6212 enablestring=
e6cc62c6
VS
6213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6214echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6215 no_cache=0
3c907f20
VZ
6216 # Check whether --enable-prologio or --disable-prologio was given.
6217if test "${enable_prologio+set}" = set; then
6218 enableval="$enable_prologio"
e6cc62c6 6219
10f2d63a 6220 if test "$enableval" = yes; then
3c907f20 6221 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6222 else
3c907f20 6223 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6224 fi
e6cc62c6 6225
10f2d63a 6226else
e6cc62c6 6227
3c907f20 6228 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6229 if test "x$LINE" != x ; then
6230 eval "DEFAULT_$LINE"
6231 else
6232 no_cache=1
6233 fi
6234
3c907f20 6235 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6236
e6cc62c6 6237fi;
10f2d63a 6238
3c907f20 6239 eval "$ac_cv_use_prologio"
10f2d63a 6240 if test "$no_cache" != 1; then
3c907f20 6241 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6242 fi
6243
3c907f20 6244 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6245 echo "$as_me:$LINENO: result: yes" >&5
6246echo "${ECHO_T}yes" >&6
10f2d63a 6247 else
e6cc62c6
VS
6248 echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6
10f2d63a 6250 fi
e6cc62c6 6251
8284b0c5 6252
5005acfe 6253 enablestring=
e6cc62c6
VS
6254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6255echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6256 no_cache=0
3c907f20
VZ
6257 # Check whether --enable-resources or --disable-resources was given.
6258if test "${enable_resources+set}" = set; then
6259 enableval="$enable_resources"
e6cc62c6 6260
10f2d63a 6261 if test "$enableval" = yes; then
3c907f20 6262 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6263 else
3c907f20 6264 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6265 fi
e6cc62c6 6266
10f2d63a 6267else
e6cc62c6 6268
3c907f20 6269 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6270 if test "x$LINE" != x ; then
6271 eval "DEFAULT_$LINE"
6272 else
6273 no_cache=1
6274 fi
6275
3c907f20 6276 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6277
e6cc62c6 6278fi;
10f2d63a 6279
3c907f20 6280 eval "$ac_cv_use_resources"
10f2d63a 6281 if test "$no_cache" != 1; then
3c907f20 6282 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6283 fi
6284
3c907f20 6285 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6286 echo "$as_me:$LINENO: result: yes" >&5
6287echo "${ECHO_T}yes" >&6
10f2d63a 6288 else
e6cc62c6
VS
6289 echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6
10f2d63a 6291 fi
e6cc62c6 6292
8284b0c5
MB
6293
6294
52127426 6295
5005acfe 6296 enablestring=
e6cc62c6
VS
6297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6298echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6299 no_cache=0
6300 # Check whether --enable-clipboard or --disable-clipboard was given.
6301if test "${enable_clipboard+set}" = set; then
6302 enableval="$enable_clipboard"
e6cc62c6 6303
10f2d63a
VZ
6304 if test "$enableval" = yes; then
6305 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6306 else
6307 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6308 fi
e6cc62c6 6309
10f2d63a 6310else
e6cc62c6 6311
10f2d63a
VZ
6312 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6320
e6cc62c6 6321fi;
10f2d63a
VZ
6322
6323 eval "$ac_cv_use_clipboard"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6329 echo "$as_me:$LINENO: result: yes" >&5
6330echo "${ECHO_T}yes" >&6
10f2d63a 6331 else
e6cc62c6
VS
6332 echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6
10f2d63a 6334 fi
e6cc62c6 6335
10f2d63a 6336
5005acfe 6337 enablestring=
e6cc62c6
VS
6338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6339echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6340 no_cache=0
6341 # Check whether --enable-dnd or --disable-dnd was given.
6342if test "${enable_dnd+set}" = set; then
6343 enableval="$enable_dnd"
e6cc62c6 6344
10f2d63a
VZ
6345 if test "$enableval" = yes; then
6346 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6347 else
6348 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6349 fi
e6cc62c6 6350
10f2d63a 6351else
e6cc62c6 6352
10f2d63a
VZ
6353 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6354 if test "x$LINE" != x ; then
6355 eval "DEFAULT_$LINE"
6356 else
6357 no_cache=1
6358 fi
6359
6360 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6361
e6cc62c6 6362fi;
10f2d63a
VZ
6363
6364 eval "$ac_cv_use_dnd"
6365 if test "$no_cache" != 1; then
6366 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6367 fi
6368
6369 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6370 echo "$as_me:$LINENO: result: yes" >&5
6371echo "${ECHO_T}yes" >&6
10f2d63a 6372 else
e6cc62c6
VS
6373 echo "$as_me:$LINENO: result: no" >&5
6374echo "${ECHO_T}no" >&6
10f2d63a 6375 fi
e6cc62c6 6376
10f2d63a 6377
5005acfe 6378 enablestring=
e6cc62c6
VS
6379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6380echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6381 no_cache=0
6382 # Check whether --enable-metafile or --disable-metafile was given.
6383if test "${enable_metafile+set}" = set; then
6384 enableval="$enable_metafile"
e6cc62c6 6385
b64f0a5f
RL
6386 if test "$enableval" = yes; then
6387 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6388 else
6389 ac_cv_use_metafile='wxUSE_METAFILE=no'
6390 fi
e6cc62c6 6391
b64f0a5f 6392else
e6cc62c6 6393
b64f0a5f
RL
6394 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6395 if test "x$LINE" != x ; then
6396 eval "DEFAULT_$LINE"
6397 else
6398 no_cache=1
6399 fi
6400
6401 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6402
e6cc62c6 6403fi;
b64f0a5f
RL
6404
6405 eval "$ac_cv_use_metafile"
6406 if test "$no_cache" != 1; then
6407 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6408 fi
6409
6410 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6411 echo "$as_me:$LINENO: result: yes" >&5
6412echo "${ECHO_T}yes" >&6
b64f0a5f 6413 else
e6cc62c6
VS
6414 echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6
b64f0a5f 6416 fi
e6cc62c6 6417
52127426 6418
8284b0c5 6419
52127426 6420
8284b0c5 6421
5005acfe 6422 enablestring=
e6cc62c6
VS
6423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6424echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6425 no_cache=0
6426 # Check whether --enable-controls or --disable-controls was given.
6427if test "${enable_controls+set}" = set; then
6428 enableval="$enable_controls"
e6cc62c6 6429
10f2d63a
VZ
6430 if test "$enableval" = yes; then
6431 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6432 else
6433 ac_cv_use_controls='wxUSE_CONTROLS=no'
6434 fi
e6cc62c6 6435
10f2d63a 6436else
e6cc62c6 6437
10f2d63a
VZ
6438 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6439 if test "x$LINE" != x ; then
6440 eval "DEFAULT_$LINE"
6441 else
6442 no_cache=1
6443 fi
6444
6445 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6446
e6cc62c6 6447fi;
10f2d63a
VZ
6448
6449 eval "$ac_cv_use_controls"
6450 if test "$no_cache" != 1; then
6451 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6452 fi
6453
6454 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6455 echo "$as_me:$LINENO: result: yes" >&5
6456echo "${ECHO_T}yes" >&6
10f2d63a 6457 else
e6cc62c6
VS
6458 echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6
10f2d63a 6460 fi
e6cc62c6 6461
10f2d63a
VZ
6462
6463if test "$wxUSE_CONTROLS" = "yes"; then
6464 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6465 DEFAULT_wxUSE_BMPBUTTON=yes
6466 DEFAULT_wxUSE_BUTTON=yes
6467 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6468 DEFAULT_wxUSE_CARET=yes
6469 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6470 DEFAULT_wxUSE_CHECKBOX=yes
6471 DEFAULT_wxUSE_CHECKLISTBOX=yes
6472 DEFAULT_wxUSE_CHOICE=yes
6473 DEFAULT_wxUSE_GAUGE=yes
6474 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6475 DEFAULT_wxUSE_IMAGLIST=yes
6476 DEFAULT_wxUSE_LISTBOX=yes
6477 DEFAULT_wxUSE_LISTCTRL=yes
6478 DEFAULT_wxUSE_NOTEBOOK=yes
6479 DEFAULT_wxUSE_RADIOBOX=yes
6480 DEFAULT_wxUSE_RADIOBTN=yes
6481 DEFAULT_wxUSE_SASH=yes
6482 DEFAULT_wxUSE_SCROLLBAR=yes
6483 DEFAULT_wxUSE_SLIDER=yes
6484 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6485 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6486 DEFAULT_wxUSE_SPLITTER=yes
6487 DEFAULT_wxUSE_STATBMP=yes
6488 DEFAULT_wxUSE_STATBOX=yes
6489 DEFAULT_wxUSE_STATLINE=yes
6490 DEFAULT_wxUSE_STATUSBAR=yes
6491 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6492 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6493 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6494 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6495 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6496 DEFAULT_wxUSE_TOOLTIPS=yes
6497 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6498 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6499 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6500elif test "$wxUSE_CONTROLS" = "no"; then
6501 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6502 DEFAULT_wxUSE_BMPBUTTON=no
6503 DEFAULT_wxUSE_BUTTON=no
6504 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6505 DEFAULT_wxUSE_CARET=no
6506 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6507 DEFAULT_wxUSE_CHECKBOX=no
6508 DEFAULT_wxUSE_CHECKLISTBOX=no
6509 DEFAULT_wxUSE_CHOICE=no
6510 DEFAULT_wxUSE_GAUGE=no
6511 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6512 DEFAULT_wxUSE_IMAGLIST=no
6513 DEFAULT_wxUSE_LISTBOX=no
6514 DEFAULT_wxUSE_LISTCTRL=no
6515 DEFAULT_wxUSE_NOTEBOOK=no
6516 DEFAULT_wxUSE_RADIOBOX=no
6517 DEFAULT_wxUSE_RADIOBTN=no
6518 DEFAULT_wxUSE_SASH=no
6519 DEFAULT_wxUSE_SCROLLBAR=no
6520 DEFAULT_wxUSE_SLIDER=no
6521 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6522 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6523 DEFAULT_wxUSE_SPLITTER=no
6524 DEFAULT_wxUSE_STATBMP=no
6525 DEFAULT_wxUSE_STATBOX=no
6526 DEFAULT_wxUSE_STATLINE=no
6527 DEFAULT_wxUSE_STATUSBAR=no
6528 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6529 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6530 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6531 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6532 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6533 DEFAULT_wxUSE_TOOLTIPS=no
6534 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6535 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6536 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6537fi
6538
ac0c4cc3
DE
6539## FIXME: This is a blatant hack
6540if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6541 wxUSE_PRINTING_ARCHITECTURE=no
6542 wxUSE_HELP=no
6543 wxUSE_CLIPBOARD=no
6544 wxUSE_DRAG_AND_DROP=no
6545 wxUSE_DATAOBJ=no
8b389fab
DE
6546 # Generic notebook requires tab dialog
6547 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6548 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3
DE
6549 DEFAULT_wxUSE_GAUGE=no
6550 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3
DE
6551 DEFAULT_wxUSE_COMBOBOX=no
6552 DEFAULT_wxUSE_CALCTRL=no
6553 DEFAULT_wxUSE_SPINBTN=no
6554 DEFAULT_wxUSE_SPINCTRL=no
6555 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3
DE
6556 DEFAULT_wxUSE_DRAGIMAGE=no
6557 DEFAULT_wxUSE_FINDREPLDLG=no
6558 DEFAULT_wxUSE_FONTDLG=no
6559 DEFAULT_wxUSE_GRID=no
ac0c4cc3 6560 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
6561 DEFAULT_wxUSE_SASH=no
6562 DEFAULT_wxUSE_SPLITTER=no
6563 DEFAULT_wxUSE_WIZARDDLG=no
6564 DEFAULT_wxUSE_SPLITTER=no
6565 DEFAULT_wxUSE_STARTUP_TIPS=no
ac0c4cc3
DE
6566fi
6567
8284b0c5 6568
5005acfe 6569 enablestring=
e6cc62c6
VS
6570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6571echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6572 no_cache=0
6573 # Check whether --enable-accel or --disable-accel was given.
6574if test "${enable_accel+set}" = set; then
6575 enableval="$enable_accel"
e6cc62c6 6576
10f2d63a
VZ
6577 if test "$enableval" = yes; then
6578 ac_cv_use_accel='wxUSE_ACCEL=yes'
6579 else
6580 ac_cv_use_accel='wxUSE_ACCEL=no'
6581 fi
e6cc62c6 6582
10f2d63a 6583else
e6cc62c6 6584
10f2d63a
VZ
6585 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6593
e6cc62c6 6594fi;
10f2d63a
VZ
6595
6596 eval "$ac_cv_use_accel"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6602 echo "$as_me:$LINENO: result: yes" >&5
6603echo "${ECHO_T}yes" >&6
10f2d63a 6604 else
e6cc62c6
VS
6605 echo "$as_me:$LINENO: result: no" >&5
6606echo "${ECHO_T}no" >&6
10f2d63a 6607 fi
e6cc62c6 6608
10f2d63a 6609
5005acfe 6610 enablestring=
e6cc62c6
VS
6611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6612echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6613 no_cache=0
1e6feb95
VZ
6614 # Check whether --enable-button or --disable-button was given.
6615if test "${enable_button+set}" = set; then
6616 enableval="$enable_button"
e6cc62c6 6617
10f2d63a 6618 if test "$enableval" = yes; then
1e6feb95 6619 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6620 else
1e6feb95 6621 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6622 fi
e6cc62c6 6623
10f2d63a 6624else
e6cc62c6 6625
1e6feb95 6626 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
1e6feb95 6633 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6634
e6cc62c6 6635fi;
10f2d63a 6636
1e6feb95 6637 eval "$ac_cv_use_button"
10f2d63a 6638 if test "$no_cache" != 1; then
1e6feb95 6639 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6640 fi
6641
1e6feb95 6642 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6643 echo "$as_me:$LINENO: result: yes" >&5
6644echo "${ECHO_T}yes" >&6
10f2d63a 6645 else
e6cc62c6
VS
6646 echo "$as_me:$LINENO: result: no" >&5
6647echo "${ECHO_T}no" >&6
10f2d63a 6648 fi
e6cc62c6 6649
10f2d63a 6650
5005acfe 6651 enablestring=
e6cc62c6
VS
6652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6653echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6654 no_cache=0
6655 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6656if test "${enable_bmpbutton+set}" = set; then
6657 enableval="$enable_bmpbutton"
e6cc62c6 6658
10f2d63a
VZ
6659 if test "$enableval" = yes; then
6660 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6661 else
6662 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6663 fi
e6cc62c6 6664
10f2d63a 6665else
e6cc62c6 6666
10f2d63a
VZ
6667 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6668 if test "x$LINE" != x ; then
6669 eval "DEFAULT_$LINE"
6670 else
6671 no_cache=1
6672 fi
6673
6674 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6675
e6cc62c6 6676fi;
10f2d63a
VZ
6677
6678 eval "$ac_cv_use_bmpbutton"
6679 if test "$no_cache" != 1; then
6680 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6681 fi
6682
6683 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6684 echo "$as_me:$LINENO: result: yes" >&5
6685echo "${ECHO_T}yes" >&6
10f2d63a 6686 else
e6cc62c6
VS
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
10f2d63a 6689 fi
e6cc62c6 6690
10f2d63a 6691
5005acfe 6692 enablestring=
e6cc62c6
VS
6693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6694echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6695 no_cache=0
6696 # Check whether --enable-calendar or --disable-calendar was given.
6697if test "${enable_calendar+set}" = set; then
6698 enableval="$enable_calendar"
e6cc62c6 6699
1e6feb95
VZ
6700 if test "$enableval" = yes; then
6701 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6702 else
6703 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6704 fi
e6cc62c6 6705
1e6feb95 6706else
e6cc62c6 6707
1e6feb95
VZ
6708 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6716
e6cc62c6 6717fi;
1e6feb95
VZ
6718
6719 eval "$ac_cv_use_calendar"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6725 echo "$as_me:$LINENO: result: yes" >&5
6726echo "${ECHO_T}yes" >&6
1e6feb95 6727 else
e6cc62c6
VS
6728 echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6
1e6feb95 6730 fi
e6cc62c6 6731
1e6feb95 6732
5005acfe 6733 enablestring=
e6cc62c6
VS
6734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6735echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6736 no_cache=0
6737 # Check whether --enable-caret or --disable-caret was given.
6738if test "${enable_caret+set}" = set; then
6739 enableval="$enable_caret"
e6cc62c6 6740
1e6feb95
VZ
6741 if test "$enableval" = yes; then
6742 ac_cv_use_caret='wxUSE_CARET=yes'
6743 else
6744 ac_cv_use_caret='wxUSE_CARET=no'
6745 fi
e6cc62c6 6746
1e6feb95 6747else
e6cc62c6 6748
1e6feb95
VZ
6749 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6757
e6cc62c6 6758fi;
1e6feb95
VZ
6759
6760 eval "$ac_cv_use_caret"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6766 echo "$as_me:$LINENO: result: yes" >&5
6767echo "${ECHO_T}yes" >&6
1e6feb95 6768 else
e6cc62c6
VS
6769 echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6
1e6feb95 6771 fi
e6cc62c6 6772
1e6feb95 6773
5005acfe 6774 enablestring=
e6cc62c6
VS
6775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6776echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6777 no_cache=0
6778 # Check whether --enable-checkbox or --disable-checkbox was given.
6779if test "${enable_checkbox+set}" = set; then
6780 enableval="$enable_checkbox"
e6cc62c6 6781
10f2d63a
VZ
6782 if test "$enableval" = yes; then
6783 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6784 else
6785 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6786 fi
e6cc62c6 6787
10f2d63a 6788else
e6cc62c6 6789
10f2d63a
VZ
6790 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6798
e6cc62c6 6799fi;
10f2d63a
VZ
6800
6801 eval "$ac_cv_use_checkbox"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6807 echo "$as_me:$LINENO: result: yes" >&5
6808echo "${ECHO_T}yes" >&6
10f2d63a 6809 else
e6cc62c6
VS
6810 echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6
10f2d63a 6812 fi
e6cc62c6 6813
10f2d63a 6814
5005acfe 6815 enablestring=
e6cc62c6
VS
6816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6817echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6818 no_cache=0
6819 # Check whether --enable-checklst or --disable-checklst was given.
6820if test "${enable_checklst+set}" = set; then
6821 enableval="$enable_checklst"
e6cc62c6 6822
10f2d63a
VZ
6823 if test "$enableval" = yes; then
6824 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6825 else
6826 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6827 fi
e6cc62c6 6828
10f2d63a 6829else
e6cc62c6 6830
10f2d63a
VZ
6831 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6839
e6cc62c6 6840fi;
10f2d63a
VZ
6841
6842 eval "$ac_cv_use_checklst"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6848 echo "$as_me:$LINENO: result: yes" >&5
6849echo "${ECHO_T}yes" >&6
10f2d63a 6850 else
e6cc62c6
VS
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
10f2d63a 6853 fi
e6cc62c6 6854
10f2d63a 6855
5005acfe 6856 enablestring=
e6cc62c6
VS
6857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6858echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6859 no_cache=0
6860 # Check whether --enable-choice or --disable-choice was given.
6861if test "${enable_choice+set}" = set; then
6862 enableval="$enable_choice"
e6cc62c6 6863
10f2d63a
VZ
6864 if test "$enableval" = yes; then
6865 ac_cv_use_choice='wxUSE_CHOICE=yes'
6866 else
6867 ac_cv_use_choice='wxUSE_CHOICE=no'
6868 fi
e6cc62c6 6869
10f2d63a 6870else
e6cc62c6 6871
10f2d63a
VZ
6872 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6880
e6cc62c6 6881fi;
10f2d63a
VZ
6882
6883 eval "$ac_cv_use_choice"
6884 if test "$no_cache" != 1; then
6885 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6886 fi
6887
6888 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6889 echo "$as_me:$LINENO: result: yes" >&5
6890echo "${ECHO_T}yes" >&6
10f2d63a 6891 else
e6cc62c6
VS
6892 echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
10f2d63a 6894 fi
e6cc62c6 6895
10f2d63a 6896
5005acfe 6897 enablestring=
e6cc62c6
VS
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6900 no_cache=0
6901 # Check whether --enable-combobox or --disable-combobox was given.
6902if test "${enable_combobox+set}" = set; then
6903 enableval="$enable_combobox"
e6cc62c6 6904
10f2d63a
VZ
6905 if test "$enableval" = yes; then
6906 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6907 else
6908 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6909 fi
e6cc62c6 6910
10f2d63a 6911else
e6cc62c6 6912
10f2d63a
VZ
6913 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6921
e6cc62c6 6922fi;
10f2d63a
VZ
6923
6924 eval "$ac_cv_use_combobox"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6930 echo "$as_me:$LINENO: result: yes" >&5
6931echo "${ECHO_T}yes" >&6
10f2d63a 6932 else
e6cc62c6
VS
6933 echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6
10f2d63a 6935 fi
e6cc62c6 6936
10f2d63a 6937
da494b40 6938 enablestring=
e6cc62c6
VS
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6941 no_cache=0
6942 # Check whether --enable-display or --disable-display was given.
6943if test "${enable_display+set}" = set; then
6944 enableval="$enable_display"
e6cc62c6 6945
da494b40
MB
6946 if test "$enableval" = yes; then
6947 ac_cv_use_display='wxUSE_DISPLAY=yes'
6948 else
6949 ac_cv_use_display='wxUSE_DISPLAY=no'
6950 fi
e6cc62c6 6951
da494b40 6952else
e6cc62c6 6953
da494b40
MB
6954 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6962
e6cc62c6 6963fi;
da494b40
MB
6964
6965 eval "$ac_cv_use_display"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
da494b40 6973 else
e6cc62c6
VS
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
da494b40 6976 fi
e6cc62c6 6977
da494b40 6978
5005acfe 6979 enablestring=
e6cc62c6
VS
6980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6981echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6982 no_cache=0
6983 # Check whether --enable-gauge or --disable-gauge was given.
6984if test "${enable_gauge+set}" = set; then
6985 enableval="$enable_gauge"
e6cc62c6 6986
10f2d63a
VZ
6987 if test "$enableval" = yes; then
6988 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6989 else
6990 ac_cv_use_gauge='wxUSE_GAUGE=no'
6991 fi
e6cc62c6 6992
10f2d63a 6993else
e6cc62c6 6994
10f2d63a
VZ
6995 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7003
e6cc62c6 7004fi;
10f2d63a
VZ
7005
7006 eval "$ac_cv_use_gauge"
7007 if test "$no_cache" != 1; then
7008 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7009 fi
7010
7011 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6
10f2d63a 7014 else
e6cc62c6
VS
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
10f2d63a 7017 fi
e6cc62c6 7018
10f2d63a 7019
5005acfe 7020 enablestring=
e6cc62c6
VS
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7023 no_cache=0
7024 # Check whether --enable-grid or --disable-grid was given.
7025if test "${enable_grid+set}" = set; then
7026 enableval="$enable_grid"
e6cc62c6 7027
10f2d63a
VZ
7028 if test "$enableval" = yes; then
7029 ac_cv_use_grid='wxUSE_GRID=yes'
7030 else
7031 ac_cv_use_grid='wxUSE_GRID=no'
7032 fi
e6cc62c6 7033
10f2d63a 7034else
e6cc62c6 7035
10f2d63a
VZ
7036 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7044
e6cc62c6 7045fi;
10f2d63a
VZ
7046
7047 eval "$ac_cv_use_grid"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
10f2d63a 7055 else
e6cc62c6
VS
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
10f2d63a 7058 fi
e6cc62c6 7059
10f2d63a 7060
5005acfe 7061 enablestring=
e6cc62c6
VS
7062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7063echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7064 no_cache=0
7065 # Check whether --enable-imaglist or --disable-imaglist was given.
7066if test "${enable_imaglist+set}" = set; then
7067 enableval="$enable_imaglist"
e6cc62c6 7068
10f2d63a
VZ
7069 if test "$enableval" = yes; then
7070 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7071 else
7072 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7073 fi
e6cc62c6 7074
10f2d63a 7075else
e6cc62c6 7076
10f2d63a
VZ
7077 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7085
e6cc62c6 7086fi;
10f2d63a
VZ
7087
7088 eval "$ac_cv_use_imaglist"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7094 echo "$as_me:$LINENO: result: yes" >&5
7095echo "${ECHO_T}yes" >&6
10f2d63a 7096 else
e6cc62c6
VS
7097 echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6
10f2d63a 7099 fi
e6cc62c6 7100
10f2d63a 7101
5005acfe 7102 enablestring=
e6cc62c6
VS
7103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7104echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7105 no_cache=0
7106 # Check whether --enable-listbox or --disable-listbox was given.
7107if test "${enable_listbox+set}" = set; then
7108 enableval="$enable_listbox"
e6cc62c6 7109
10f2d63a
VZ
7110 if test "$enableval" = yes; then
7111 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7112 else
7113 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7114 fi
e6cc62c6 7115
10f2d63a 7116else
e6cc62c6 7117
10f2d63a
VZ
7118 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
7125 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7126
e6cc62c6 7127fi;
10f2d63a
VZ
7128
7129 eval "$ac_cv_use_listbox"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7132 fi
7133
7134 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7135 echo "$as_me:$LINENO: result: yes" >&5
7136echo "${ECHO_T}yes" >&6
10f2d63a 7137 else
e6cc62c6
VS
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
10f2d63a 7140 fi
e6cc62c6 7141
10f2d63a 7142
5005acfe 7143 enablestring=
e6cc62c6
VS
7144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7145echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7146 no_cache=0
7147 # Check whether --enable-listctrl or --disable-listctrl was given.
7148if test "${enable_listctrl+set}" = set; then
7149 enableval="$enable_listctrl"
e6cc62c6 7150
10f2d63a
VZ
7151 if test "$enableval" = yes; then
7152 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7153 else
7154 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7155 fi
e6cc62c6 7156
10f2d63a 7157else
e6cc62c6 7158
10f2d63a
VZ
7159 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7167
e6cc62c6 7168fi;
10f2d63a
VZ
7169
7170 eval "$ac_cv_use_listctrl"
7171 if test "$no_cache" != 1; then
7172 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7173 fi
7174
7175 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7176 echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
10f2d63a 7178 else
e6cc62c6
VS
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
10f2d63a 7181 fi
e6cc62c6 7182
10f2d63a 7183
5005acfe 7184 enablestring=
e6cc62c6
VS
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7187 no_cache=0
7188 # Check whether --enable-notebook or --disable-notebook was given.
7189if test "${enable_notebook+set}" = set; then
7190 enableval="$enable_notebook"
e6cc62c6 7191
10f2d63a
VZ
7192 if test "$enableval" = yes; then
7193 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7194 else
7195 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7196 fi
e6cc62c6 7197
10f2d63a 7198else
e6cc62c6 7199
10f2d63a
VZ
7200 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7208
e6cc62c6 7209fi;
10f2d63a
VZ
7210
7211 eval "$ac_cv_use_notebook"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
10f2d63a 7219 else
e6cc62c6
VS
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
10f2d63a 7222 fi
e6cc62c6 7223
10f2d63a 7224
5005acfe 7225 enablestring=
e6cc62c6
VS
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7228 no_cache=0
7229 # Check whether --enable-radiobox or --disable-radiobox was given.
7230if test "${enable_radiobox+set}" = set; then
7231 enableval="$enable_radiobox"
e6cc62c6 7232
10f2d63a
VZ
7233 if test "$enableval" = yes; then
7234 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7235 else
7236 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7237 fi
e6cc62c6 7238
10f2d63a 7239else
e6cc62c6 7240
10f2d63a
VZ
7241 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7249
e6cc62c6 7250fi;
10f2d63a
VZ
7251
7252 eval "$ac_cv_use_radiobox"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
10f2d63a 7260 else
e6cc62c6
VS
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
10f2d63a 7263 fi
e6cc62c6 7264
10f2d63a 7265
5005acfe 7266 enablestring=
e6cc62c6
VS
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7269 no_cache=0
7270 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7271if test "${enable_radiobtn+set}" = set; then
7272 enableval="$enable_radiobtn"
e6cc62c6 7273
10f2d63a
VZ
7274 if test "$enableval" = yes; then
7275 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7276 else
7277 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7278 fi
e6cc62c6 7279
10f2d63a 7280else
e6cc62c6 7281
10f2d63a
VZ
7282 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7290
e6cc62c6 7291fi;
10f2d63a
VZ
7292
7293 eval "$ac_cv_use_radiobtn"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
10f2d63a 7301 else
e6cc62c6
VS
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
10f2d63a 7304 fi
e6cc62c6 7305
10f2d63a 7306
5005acfe 7307 enablestring=
e6cc62c6
VS
7308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7309echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7310 no_cache=0
7311 # Check whether --enable-sash or --disable-sash was given.
7312if test "${enable_sash+set}" = set; then
7313 enableval="$enable_sash"
e6cc62c6 7314
10f2d63a
VZ
7315 if test "$enableval" = yes; then
7316 ac_cv_use_sash='wxUSE_SASH=yes'
7317 else
7318 ac_cv_use_sash='wxUSE_SASH=no'
7319 fi
e6cc62c6 7320
10f2d63a 7321else
e6cc62c6 7322
10f2d63a
VZ
7323 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7324 if test "x$LINE" != x ; then
7325 eval "DEFAULT_$LINE"
7326 else
7327 no_cache=1
7328 fi
7329
7330 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7331
e6cc62c6 7332fi;
10f2d63a
VZ
7333
7334 eval "$ac_cv_use_sash"
7335 if test "$no_cache" != 1; then
7336 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7337 fi
7338
7339 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7340 echo "$as_me:$LINENO: result: yes" >&5
7341echo "${ECHO_T}yes" >&6
10f2d63a 7342 else
e6cc62c6
VS
7343 echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
10f2d63a 7345 fi
e6cc62c6 7346
10f2d63a 7347
5005acfe 7348 enablestring=
e6cc62c6
VS
7349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7350echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7351 no_cache=0
7352 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7353if test "${enable_scrollbar+set}" = set; then
7354 enableval="$enable_scrollbar"
e6cc62c6 7355
10f2d63a
VZ
7356 if test "$enableval" = yes; then
7357 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7358 else
7359 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7360 fi
e6cc62c6 7361
10f2d63a 7362else
e6cc62c6 7363
10f2d63a
VZ
7364 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7365 if test "x$LINE" != x ; then
7366 eval "DEFAULT_$LINE"
7367 else
7368 no_cache=1
7369 fi
7370
7371 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7372
e6cc62c6 7373fi;
10f2d63a
VZ
7374
7375 eval "$ac_cv_use_scrollbar"
7376 if test "$no_cache" != 1; then
7377 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7378 fi
7379
7380 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7381 echo "$as_me:$LINENO: result: yes" >&5
7382echo "${ECHO_T}yes" >&6
10f2d63a 7383 else
e6cc62c6
VS
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
10f2d63a 7386 fi
e6cc62c6 7387
10f2d63a 7388
5005acfe 7389 enablestring=
e6cc62c6
VS
7390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7391echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7392 no_cache=0
7393 # Check whether --enable-slider or --disable-slider was given.
7394if test "${enable_slider+set}" = set; then
7395 enableval="$enable_slider"
e6cc62c6 7396
10f2d63a
VZ
7397 if test "$enableval" = yes; then
7398 ac_cv_use_slider='wxUSE_SLIDER=yes'
7399 else
7400 ac_cv_use_slider='wxUSE_SLIDER=no'
7401 fi
e6cc62c6 7402
10f2d63a 7403else
e6cc62c6 7404
10f2d63a
VZ
7405 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7406 if test "x$LINE" != x ; then
7407 eval "DEFAULT_$LINE"
7408 else
7409 no_cache=1
7410 fi
7411
7412 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7413
e6cc62c6 7414fi;
10f2d63a
VZ
7415
7416 eval "$ac_cv_use_slider"
7417 if test "$no_cache" != 1; then
7418 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7419 fi
7420
7421 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7422 echo "$as_me:$LINENO: result: yes" >&5
7423echo "${ECHO_T}yes" >&6
10f2d63a 7424 else
e6cc62c6
VS
7425 echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
10f2d63a 7427 fi
e6cc62c6 7428
10f2d63a 7429
5005acfe 7430 enablestring=
e6cc62c6
VS
7431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7432echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7433 no_cache=0
7434 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7435if test "${enable_spinbtn+set}" = set; then
7436 enableval="$enable_spinbtn"
e6cc62c6 7437
10f2d63a
VZ
7438 if test "$enableval" = yes; then
7439 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7440 else
7441 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7442 fi
e6cc62c6 7443
10f2d63a 7444else
e6cc62c6 7445
10f2d63a
VZ
7446 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7447 if test "x$LINE" != x ; then
7448 eval "DEFAULT_$LINE"
7449 else
7450 no_cache=1
7451 fi
7452
7453 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7454
e6cc62c6 7455fi;
10f2d63a
VZ
7456
7457 eval "$ac_cv_use_spinbtn"
7458 if test "$no_cache" != 1; then
7459 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7460 fi
7461
7462 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7463 echo "$as_me:$LINENO: result: yes" >&5
7464echo "${ECHO_T}yes" >&6
10f2d63a 7465 else
e6cc62c6
VS
7466 echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
10f2d63a 7468 fi
e6cc62c6 7469
10f2d63a 7470
5005acfe 7471 enablestring=
e6cc62c6
VS
7472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7473echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7474 no_cache=0
7475 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7476if test "${enable_spinctrl+set}" = set; then
7477 enableval="$enable_spinctrl"
e6cc62c6 7478
56cfaa52
RR
7479 if test "$enableval" = yes; then
7480 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7481 else
7482 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7483 fi
e6cc62c6 7484
56cfaa52 7485else
e6cc62c6 7486
56cfaa52
RR
7487 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7488 if test "x$LINE" != x ; then
7489 eval "DEFAULT_$LINE"
7490 else
7491 no_cache=1
7492 fi
7493
7494 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7495
e6cc62c6 7496fi;
56cfaa52
RR
7497
7498 eval "$ac_cv_use_spinctrl"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7504 echo "$as_me:$LINENO: result: yes" >&5
7505echo "${ECHO_T}yes" >&6
56cfaa52 7506 else
e6cc62c6
VS
7507 echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
56cfaa52 7509 fi
e6cc62c6 7510
56cfaa52 7511
5005acfe 7512 enablestring=
e6cc62c6
VS
7513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7514echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7515 no_cache=0
7516 # Check whether --enable-splitter or --disable-splitter was given.
7517if test "${enable_splitter+set}" = set; then
7518 enableval="$enable_splitter"
e6cc62c6 7519
10f2d63a
VZ
7520 if test "$enableval" = yes; then
7521 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7522 else
7523 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7524 fi
e6cc62c6 7525
10f2d63a 7526else
e6cc62c6 7527
10f2d63a
VZ
7528 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7536
e6cc62c6 7537fi;
10f2d63a
VZ
7538
7539 eval "$ac_cv_use_splitter"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7545 echo "$as_me:$LINENO: result: yes" >&5
7546echo "${ECHO_T}yes" >&6
10f2d63a 7547 else
e6cc62c6
VS
7548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
10f2d63a 7550 fi
e6cc62c6 7551
10f2d63a 7552
5005acfe 7553 enablestring=
e6cc62c6
VS
7554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7555echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7556 no_cache=0
7557 # Check whether --enable-statbmp or --disable-statbmp was given.
7558if test "${enable_statbmp+set}" = set; then
7559 enableval="$enable_statbmp"
e6cc62c6 7560
10f2d63a
VZ
7561 if test "$enableval" = yes; then
7562 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7563 else
7564 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7565 fi
e6cc62c6 7566
10f2d63a 7567else
e6cc62c6 7568
10f2d63a
VZ
7569 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7577
e6cc62c6 7578fi;
10f2d63a
VZ
7579
7580 eval "$ac_cv_use_statbmp"
7581 if test "$no_cache" != 1; then
7582 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7583 fi
7584
7585 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7586 echo "$as_me:$LINENO: result: yes" >&5
7587echo "${ECHO_T}yes" >&6
10f2d63a 7588 else
e6cc62c6
VS
7589 echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6
10f2d63a 7591 fi
e6cc62c6 7592
10f2d63a 7593
5005acfe 7594 enablestring=
e6cc62c6
VS
7595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7596echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7597 no_cache=0
7598 # Check whether --enable-statbox or --disable-statbox was given.
7599if test "${enable_statbox+set}" = set; then
7600 enableval="$enable_statbox"
e6cc62c6 7601
10f2d63a
VZ
7602 if test "$enableval" = yes; then
7603 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7604 else
7605 ac_cv_use_statbox='wxUSE_STATBOX=no'
7606 fi
e6cc62c6 7607
10f2d63a 7608else
e6cc62c6 7609
10f2d63a
VZ
7610 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7611 if test "x$LINE" != x ; then
7612 eval "DEFAULT_$LINE"
7613 else
7614 no_cache=1
7615 fi
7616
7617 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7618
e6cc62c6 7619fi;
10f2d63a
VZ
7620
7621 eval "$ac_cv_use_statbox"
7622 if test "$no_cache" != 1; then
7623 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7624 fi
7625
7626 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7627 echo "$as_me:$LINENO: result: yes" >&5
7628echo "${ECHO_T}yes" >&6
10f2d63a 7629 else
e6cc62c6
VS
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
10f2d63a 7632 fi
e6cc62c6 7633
10f2d63a 7634
5005acfe 7635 enablestring=
e6cc62c6
VS
7636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7637echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7638 no_cache=0
7639 # Check whether --enable-statline or --disable-statline was given.
7640if test "${enable_statline+set}" = set; then
7641 enableval="$enable_statline"
e6cc62c6 7642
10f2d63a
VZ
7643 if test "$enableval" = yes; then
7644 ac_cv_use_statline='wxUSE_STATLINE=yes'
7645 else
7646 ac_cv_use_statline='wxUSE_STATLINE=no'
7647 fi
e6cc62c6 7648
10f2d63a 7649else
e6cc62c6 7650
10f2d63a
VZ
7651 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7652 if test "x$LINE" != x ; then
7653 eval "DEFAULT_$LINE"
7654 else
7655 no_cache=1
7656 fi
7657
7658 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7659
e6cc62c6 7660fi;
10f2d63a
VZ
7661
7662 eval "$ac_cv_use_statline"
7663 if test "$no_cache" != 1; then
7664 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7665 fi
7666
7667 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7668 echo "$as_me:$LINENO: result: yes" >&5
7669echo "${ECHO_T}yes" >&6
10f2d63a 7670 else
e6cc62c6
VS
7671 echo "$as_me:$LINENO: result: no" >&5
7672echo "${ECHO_T}no" >&6
10f2d63a 7673 fi
e6cc62c6 7674
10f2d63a 7675
5005acfe 7676 enablestring=
e6cc62c6
VS
7677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7678echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7679 no_cache=0
7680 # Check whether --enable-stattext or --disable-stattext was given.
7681if test "${enable_stattext+set}" = set; then
7682 enableval="$enable_stattext"
e6cc62c6 7683
1e6feb95
VZ
7684 if test "$enableval" = yes; then
7685 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7686 else
7687 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7688 fi
e6cc62c6 7689
1e6feb95 7690else
e6cc62c6 7691
1e6feb95
VZ
7692 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7693 if test "x$LINE" != x ; then
7694 eval "DEFAULT_$LINE"
7695 else
7696 no_cache=1
7697 fi
7698
7699 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7700
e6cc62c6 7701fi;
1e6feb95
VZ
7702
7703 eval "$ac_cv_use_stattext"
7704 if test "$no_cache" != 1; then
7705 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7706 fi
7707
7708 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7709 echo "$as_me:$LINENO: result: yes" >&5
7710echo "${ECHO_T}yes" >&6
1e6feb95 7711 else
e6cc62c6
VS
7712 echo "$as_me:$LINENO: result: no" >&5
7713echo "${ECHO_T}no" >&6
1e6feb95 7714 fi
e6cc62c6 7715
1e6feb95 7716
5005acfe 7717 enablestring=
e6cc62c6
VS
7718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7719echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7720 no_cache=0
7721 # Check whether --enable-statusbar or --disable-statusbar was given.
7722if test "${enable_statusbar+set}" = set; then
7723 enableval="$enable_statusbar"
e6cc62c6 7724
10f2d63a
VZ
7725 if test "$enableval" = yes; then
7726 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7727 else
7728 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7729 fi
e6cc62c6 7730
10f2d63a 7731else
e6cc62c6 7732
10f2d63a
VZ
7733 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7734 if test "x$LINE" != x ; then
7735 eval "DEFAULT_$LINE"
7736 else
7737 no_cache=1
7738 fi
7739
7740 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7741
e6cc62c6 7742fi;
10f2d63a
VZ
7743
7744 eval "$ac_cv_use_statusbar"
7745 if test "$no_cache" != 1; then
7746 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7747 fi
7748
7749 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7750 echo "$as_me:$LINENO: result: yes" >&5
7751echo "${ECHO_T}yes" >&6
10f2d63a 7752 else
e6cc62c6
VS
7753 echo "$as_me:$LINENO: result: no" >&5
7754echo "${ECHO_T}no" >&6
10f2d63a 7755 fi
e6cc62c6 7756
10f2d63a 7757
5005acfe 7758 enablestring=
e6cc62c6
VS
7759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7760echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7761 no_cache=0
7762 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7763if test "${enable_tabdialog+set}" = set; then
7764 enableval="$enable_tabdialog"
e6cc62c6 7765
10f2d63a
VZ
7766 if test "$enableval" = yes; then
7767 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7768 else
7769 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7770 fi
e6cc62c6 7771
10f2d63a 7772else
e6cc62c6 7773
10f2d63a
VZ
7774 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7782
e6cc62c6 7783fi;
10f2d63a
VZ
7784
7785 eval "$ac_cv_use_tabdialog"
7786 if test "$no_cache" != 1; then
7787 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7788 fi
7789
7790 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7791 echo "$as_me:$LINENO: result: yes" >&5
7792echo "${ECHO_T}yes" >&6
10f2d63a 7793 else
e6cc62c6
VS
7794 echo "$as_me:$LINENO: result: no" >&5
7795echo "${ECHO_T}no" >&6
10f2d63a 7796 fi
e6cc62c6 7797
10f2d63a 7798
5005acfe 7799 enablestring=
e6cc62c6
VS
7800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7801echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7802 no_cache=0
7803 # Check whether --enable-textctrl or --disable-textctrl was given.
7804if test "${enable_textctrl+set}" = set; then
7805 enableval="$enable_textctrl"
e6cc62c6 7806
1e6feb95
VZ
7807 if test "$enableval" = yes; then
7808 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7809 else
7810 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7811 fi
e6cc62c6 7812
1e6feb95 7813else
e6cc62c6 7814
1e6feb95
VZ
7815 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7823
e6cc62c6 7824fi;
1e6feb95
VZ
7825
7826 eval "$ac_cv_use_textctrl"
7827 if test "$no_cache" != 1; then
7828 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7829 fi
7830
7831 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7832 echo "$as_me:$LINENO: result: yes" >&5
7833echo "${ECHO_T}yes" >&6
1e6feb95 7834 else
e6cc62c6
VS
7835 echo "$as_me:$LINENO: result: no" >&5
7836echo "${ECHO_T}no" >&6
1e6feb95 7837 fi
e6cc62c6 7838
1e6feb95 7839
5005acfe 7840 enablestring=
e6cc62c6
VS
7841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7842echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7843 no_cache=0
7844 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7845if test "${enable_togglebtn+set}" = set; then
7846 enableval="$enable_togglebtn"
e6cc62c6 7847
1db8dc4a
VZ
7848 if test "$enableval" = yes; then
7849 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7850 else
7851 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7852 fi
e6cc62c6 7853
1db8dc4a 7854else
e6cc62c6 7855
1db8dc4a
VZ
7856 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7857 if test "x$LINE" != x ; then
7858 eval "DEFAULT_$LINE"
7859 else
7860 no_cache=1
7861 fi
7862
7863 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7864
e6cc62c6 7865fi;
1db8dc4a
VZ
7866
7867 eval "$ac_cv_use_togglebtn"
7868 if test "$no_cache" != 1; then
7869 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7870 fi
7871
7872 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7873 echo "$as_me:$LINENO: result: yes" >&5
7874echo "${ECHO_T}yes" >&6
1db8dc4a 7875 else
e6cc62c6
VS
7876 echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6
1db8dc4a 7878 fi
e6cc62c6 7879
1db8dc4a 7880
5005acfe 7881 enablestring=
e6cc62c6
VS
7882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7883echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7884 no_cache=0
7885 # Check whether --enable-toolbar or --disable-toolbar was given.
7886if test "${enable_toolbar+set}" = set; then
7887 enableval="$enable_toolbar"
e6cc62c6 7888
10f2d63a
VZ
7889 if test "$enableval" = yes; then
7890 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7891 else
7892 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7893 fi
e6cc62c6 7894
10f2d63a 7895else
e6cc62c6 7896
10f2d63a
VZ
7897 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7905
e6cc62c6 7906fi;
10f2d63a
VZ
7907
7908 eval "$ac_cv_use_toolbar"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7914 echo "$as_me:$LINENO: result: yes" >&5
7915echo "${ECHO_T}yes" >&6
10f2d63a 7916 else
e6cc62c6
VS
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
10f2d63a 7919 fi
e6cc62c6 7920
10f2d63a 7921
5005acfe 7922 enablestring=
e6cc62c6
VS
7923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7924echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7925 no_cache=0
7926 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7927if test "${enable_tbarnative+set}" = set; then
7928 enableval="$enable_tbarnative"
e6cc62c6 7929
360d6699
VZ
7930 if test "$enableval" = yes; then
7931 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7932 else
7933 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7934 fi
e6cc62c6 7935
360d6699 7936else
e6cc62c6 7937
360d6699
VZ
7938 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7939 if test "x$LINE" != x ; then
7940 eval "DEFAULT_$LINE"
7941 else
7942 no_cache=1
7943 fi
7944
7945 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7946
e6cc62c6 7947fi;
360d6699
VZ
7948
7949 eval "$ac_cv_use_tbarnative"
7950 if test "$no_cache" != 1; then
7951 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7952 fi
7953
7954 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7955 echo "$as_me:$LINENO: result: yes" >&5
7956echo "${ECHO_T}yes" >&6
360d6699 7957 else
e6cc62c6
VS
7958 echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6
360d6699 7960 fi
e6cc62c6 7961
360d6699 7962
5005acfe 7963 enablestring=
e6cc62c6
VS
7964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7965echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7966 no_cache=0
7967 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7968if test "${enable_tbarsmpl+set}" = set; then
7969 enableval="$enable_tbarsmpl"
e6cc62c6 7970
360d6699
VZ
7971 if test "$enableval" = yes; then
7972 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7973 else
7974 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7975 fi
e6cc62c6 7976
360d6699 7977else
e6cc62c6 7978
360d6699
VZ
7979 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7980 if test "x$LINE" != x ; then
7981 eval "DEFAULT_$LINE"
7982 else
7983 no_cache=1
7984 fi
7985
7986 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7987
e6cc62c6 7988fi;
360d6699
VZ
7989
7990 eval "$ac_cv_use_tbarsmpl"
7991 if test "$no_cache" != 1; then
7992 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7993 fi
7994
7995 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
7996 echo "$as_me:$LINENO: result: yes" >&5
7997echo "${ECHO_T}yes" >&6
360d6699 7998 else
e6cc62c6
VS
7999 echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
360d6699 8001 fi
e6cc62c6 8002
360d6699 8003
5005acfe 8004 enablestring=
e6cc62c6
VS
8005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8006echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8007 no_cache=0
8008 # Check whether --enable-treectrl or --disable-treectrl was given.
8009if test "${enable_treectrl+set}" = set; then
8010 enableval="$enable_treectrl"
e6cc62c6 8011
10f2d63a
VZ
8012 if test "$enableval" = yes; then
8013 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8014 else
8015 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8016 fi
e6cc62c6 8017
10f2d63a 8018else
e6cc62c6 8019
10f2d63a
VZ
8020 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8021 if test "x$LINE" != x ; then
8022 eval "DEFAULT_$LINE"
8023 else
8024 no_cache=1
8025 fi
8026
8027 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8028
e6cc62c6 8029fi;
10f2d63a 8030
1e6feb95
VZ
8031 eval "$ac_cv_use_treectrl"
8032 if test "$no_cache" != 1; then
8033 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8034 fi
8035
8036 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8037 echo "$as_me:$LINENO: result: yes" >&5
8038echo "${ECHO_T}yes" >&6
1e6feb95 8039 else
e6cc62c6
VS
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
1e6feb95 8042 fi
e6cc62c6 8043
1e6feb95 8044
5005acfe 8045 enablestring=
e6cc62c6
VS
8046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8047echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8048 no_cache=0
8049 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8050if test "${enable_tipwindow+set}" = set; then
8051 enableval="$enable_tipwindow"
e6cc62c6 8052
9926e4a4
VZ
8053 if test "$enableval" = yes; then
8054 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8055 else
8056 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8057 fi
e6cc62c6 8058
9926e4a4 8059else
e6cc62c6 8060
9926e4a4
VZ
8061 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8062 if test "x$LINE" != x ; then
8063 eval "DEFAULT_$LINE"
8064 else
8065 no_cache=1
8066 fi
8067
8068 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8069
e6cc62c6 8070fi;
9926e4a4
VZ
8071
8072 eval "$ac_cv_use_tipwindow"
8073 if test "$no_cache" != 1; then
8074 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8075 fi
8076
8077 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8078 echo "$as_me:$LINENO: result: yes" >&5
8079echo "${ECHO_T}yes" >&6
9926e4a4 8080 else
e6cc62c6
VS
8081 echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6
9926e4a4 8083 fi
e6cc62c6 8084
9926e4a4 8085
5005acfe 8086 enablestring=
e6cc62c6
VS
8087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8088echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8089 no_cache=0
8090 # Check whether --enable-popupwin or --disable-popupwin was given.
8091if test "${enable_popupwin+set}" = set; then
8092 enableval="$enable_popupwin"
e6cc62c6 8093
9f41d601
RR
8094 if test "$enableval" = yes; then
8095 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8096 else
8097 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8098 fi
e6cc62c6 8099
9f41d601 8100else
e6cc62c6 8101
9f41d601
RR
8102 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8103 if test "x$LINE" != x ; then
8104 eval "DEFAULT_$LINE"
8105 else
8106 no_cache=1
8107 fi
8108
8109 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8110
e6cc62c6 8111fi;
9f41d601
RR
8112
8113 eval "$ac_cv_use_popupwin"
8114 if test "$no_cache" != 1; then
8115 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8116 fi
8117
8118 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8119 echo "$as_me:$LINENO: result: yes" >&5
8120echo "${ECHO_T}yes" >&6
9f41d601 8121 else
e6cc62c6
VS
8122 echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
9f41d601 8124 fi
e6cc62c6 8125
52127426 8126
8284b0c5
MB
8127
8128
5005acfe 8129 enablestring=
e6cc62c6
VS
8130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8131echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8132 no_cache=0
8133 # Check whether --enable-commondlg or --disable-commondlg was given.
8134if test "${enable_commondlg+set}" = set; then
8135 enableval="$enable_commondlg"
e6cc62c6 8136
1e6feb95
VZ
8137 if test "$enableval" = yes; then
8138 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8139 else
8140 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8141 fi
e6cc62c6 8142
1e6feb95 8143else
e6cc62c6 8144
1e6feb95
VZ
8145 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8146 if test "x$LINE" != x ; then
8147 eval "DEFAULT_$LINE"
8148 else
8149 no_cache=1
8150 fi
8151
8152 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8153
e6cc62c6 8154fi;
1e6feb95
VZ
8155
8156 eval "$ac_cv_use_commondlg"
8157 if test "$no_cache" != 1; then
8158 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8159 fi
8160
8161 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8162 echo "$as_me:$LINENO: result: yes" >&5
8163echo "${ECHO_T}yes" >&6
1e6feb95 8164 else
e6cc62c6
VS
8165 echo "$as_me:$LINENO: result: no" >&5
8166echo "${ECHO_T}no" >&6
1e6feb95 8167 fi
e6cc62c6 8168
1e6feb95 8169
5005acfe 8170 enablestring=
e6cc62c6
VS
8171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8172echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8173 no_cache=0
8174 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8175if test "${enable_choicedlg+set}" = set; then
8176 enableval="$enable_choicedlg"
e6cc62c6 8177
1e6feb95
VZ
8178 if test "$enableval" = yes; then
8179 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8180 else
8181 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8182 fi
e6cc62c6 8183
1e6feb95 8184else
e6cc62c6 8185
1e6feb95
VZ
8186 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8187 if test "x$LINE" != x ; then
8188 eval "DEFAULT_$LINE"
8189 else
8190 no_cache=1
8191 fi
8192
8193 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8194
e6cc62c6 8195fi;
1e6feb95
VZ
8196
8197 eval "$ac_cv_use_choicedlg"
8198 if test "$no_cache" != 1; then
8199 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8200 fi
8201
8202 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8203 echo "$as_me:$LINENO: result: yes" >&5
8204echo "${ECHO_T}yes" >&6
1e6feb95 8205 else
e6cc62c6
VS
8206 echo "$as_me:$LINENO: result: no" >&5
8207echo "${ECHO_T}no" >&6
1e6feb95 8208 fi
e6cc62c6 8209
1e6feb95 8210
5005acfe 8211 enablestring=
e6cc62c6
VS
8212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8213echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8214 no_cache=0
8215 # Check whether --enable-coldlg or --disable-coldlg was given.
8216if test "${enable_coldlg+set}" = set; then
8217 enableval="$enable_coldlg"
e6cc62c6 8218
1e6feb95
VZ
8219 if test "$enableval" = yes; then
8220 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8221 else
8222 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8223 fi
e6cc62c6 8224
1e6feb95 8225else
e6cc62c6 8226
1e6feb95
VZ
8227 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8228 if test "x$LINE" != x ; then
8229 eval "DEFAULT_$LINE"
8230 else
8231 no_cache=1
8232 fi
8233
8234 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8235
e6cc62c6 8236fi;
1e6feb95
VZ
8237
8238 eval "$ac_cv_use_coldlg"
8239 if test "$no_cache" != 1; then
8240 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8241 fi
8242
8243 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8244 echo "$as_me:$LINENO: result: yes" >&5
8245echo "${ECHO_T}yes" >&6
1e6feb95 8246 else
e6cc62c6
VS
8247 echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6
1e6feb95 8249 fi
e6cc62c6 8250
1e6feb95 8251
5005acfe 8252 enablestring=
e6cc62c6
VS
8253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8254echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8255 no_cache=0
8256 # Check whether --enable-filedlg or --disable-filedlg was given.
8257if test "${enable_filedlg+set}" = set; then
8258 enableval="$enable_filedlg"
e6cc62c6 8259
1e6feb95
VZ
8260 if test "$enableval" = yes; then
8261 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8262 else
8263 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8264 fi
e6cc62c6 8265
1e6feb95 8266else
e6cc62c6 8267
1e6feb95
VZ
8268 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8276
e6cc62c6 8277fi;
1e6feb95
VZ
8278
8279 eval "$ac_cv_use_filedlg"
8280 if test "$no_cache" != 1; then
8281 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8282 fi
8283
8284 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8285 echo "$as_me:$LINENO: result: yes" >&5
8286echo "${ECHO_T}yes" >&6
1e6feb95 8287 else
e6cc62c6
VS
8288 echo "$as_me:$LINENO: result: no" >&5
8289echo "${ECHO_T}no" >&6
1e6feb95 8290 fi
e6cc62c6 8291
1e6feb95 8292
5005acfe 8293 enablestring=
e6cc62c6
VS
8294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8295echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8296 no_cache=0
69d27ff7
MB
8297 # Check whether --enable-finddlg or --disable-finddlg was given.
8298if test "${enable_finddlg+set}" = set; then
8299 enableval="$enable_finddlg"
e6cc62c6 8300
8db37e06 8301 if test "$enableval" = yes; then
69d27ff7 8302 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8303 else
69d27ff7 8304 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8305 fi
e6cc62c6 8306
8db37e06 8307else
e6cc62c6 8308
8db37e06
VZ
8309 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
69d27ff7 8316 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8317
e6cc62c6 8318fi;
8db37e06 8319
69d27ff7 8320 eval "$ac_cv_use_finddlg"
8db37e06 8321 if test "$no_cache" != 1; then
69d27ff7 8322 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8323 fi
8324
8325 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8326 echo "$as_me:$LINENO: result: yes" >&5
8327echo "${ECHO_T}yes" >&6
8db37e06 8328 else
e6cc62c6
VS
8329 echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6
8db37e06 8331 fi
e6cc62c6 8332
8db37e06 8333
5005acfe 8334 enablestring=
e6cc62c6
VS
8335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8336echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8337 no_cache=0
8338 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8339if test "${enable_fontdlg+set}" = set; then
8340 enableval="$enable_fontdlg"
e6cc62c6 8341
1e6feb95
VZ
8342 if test "$enableval" = yes; then
8343 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8344 else
8345 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8346 fi
e6cc62c6 8347
1e6feb95 8348else
e6cc62c6 8349
1e6feb95
VZ
8350 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8358
e6cc62c6 8359fi;
1e6feb95
VZ
8360
8361 eval "$ac_cv_use_fontdlg"
8362 if test "$no_cache" != 1; then
8363 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8364 fi
8365
8366 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8367 echo "$as_me:$LINENO: result: yes" >&5
8368echo "${ECHO_T}yes" >&6
1e6feb95 8369 else
e6cc62c6
VS
8370 echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6
1e6feb95 8372 fi
e6cc62c6 8373
1e6feb95 8374
5005acfe 8375 enablestring=
e6cc62c6
VS
8376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8377echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8378 no_cache=0
8379 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8380if test "${enable_dirdlg+set}" = set; then
8381 enableval="$enable_dirdlg"
e6cc62c6 8382
1e6feb95
VZ
8383 if test "$enableval" = yes; then
8384 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8385 else
8386 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8387 fi
e6cc62c6 8388
1e6feb95 8389else
e6cc62c6 8390
1e6feb95
VZ
8391 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
8398 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8399
e6cc62c6 8400fi;
1e6feb95
VZ
8401
8402 eval "$ac_cv_use_dirdlg"
10f2d63a 8403 if test "$no_cache" != 1; then
1e6feb95 8404 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8405 fi
8406
1e6feb95 8407 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8408 echo "$as_me:$LINENO: result: yes" >&5
8409echo "${ECHO_T}yes" >&6
10f2d63a 8410 else
e6cc62c6
VS
8411 echo "$as_me:$LINENO: result: no" >&5
8412echo "${ECHO_T}no" >&6
10f2d63a 8413 fi
e6cc62c6 8414
698dcdb6 8415
5005acfe 8416 enablestring=
e6cc62c6
VS
8417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8418echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8419 no_cache=0
1e6feb95
VZ
8420 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8421if test "${enable_msgdlg+set}" = set; then
8422 enableval="$enable_msgdlg"
e6cc62c6 8423
10f2d63a 8424 if test "$enableval" = yes; then
1e6feb95 8425 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8426 else
1e6feb95 8427 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8428 fi
e6cc62c6 8429
10f2d63a 8430else
e6cc62c6 8431
1e6feb95 8432 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8433 if test "x$LINE" != x ; then
8434 eval "DEFAULT_$LINE"
8435 else
8436 no_cache=1
8437 fi
8438
1e6feb95 8439 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8440
e6cc62c6 8441fi;
10f2d63a 8442
1e6feb95 8443 eval "$ac_cv_use_msgdlg"
10f2d63a 8444 if test "$no_cache" != 1; then
1e6feb95 8445 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8446 fi
8447
1e6feb95 8448 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8449 echo "$as_me:$LINENO: result: yes" >&5
8450echo "${ECHO_T}yes" >&6
10f2d63a 8451 else
e6cc62c6
VS
8452 echo "$as_me:$LINENO: result: no" >&5
8453echo "${ECHO_T}no" >&6
10f2d63a 8454 fi
e6cc62c6 8455
10f2d63a 8456
5005acfe 8457 enablestring=
e6cc62c6
VS
8458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8459echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8460 no_cache=0
1e6feb95
VZ
8461 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8462if test "${enable_numberdlg+set}" = set; then
8463 enableval="$enable_numberdlg"
e6cc62c6 8464
10f2d63a 8465 if test "$enableval" = yes; then
1e6feb95 8466 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8467 else
1e6feb95 8468 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8469 fi
e6cc62c6 8470
10f2d63a 8471else
e6cc62c6 8472
1e6feb95 8473 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8474 if test "x$LINE" != x ; then
8475 eval "DEFAULT_$LINE"
8476 else
8477 no_cache=1
8478 fi
8479
1e6feb95 8480 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8481
e6cc62c6 8482fi;
10f2d63a 8483
1e6feb95 8484 eval "$ac_cv_use_numberdlg"
10f2d63a 8485 if test "$no_cache" != 1; then
1e6feb95 8486 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8487 fi
8488
1e6feb95 8489 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8490 echo "$as_me:$LINENO: result: yes" >&5
8491echo "${ECHO_T}yes" >&6
10f2d63a 8492 else
e6cc62c6
VS
8493 echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6
10f2d63a 8495 fi
e6cc62c6 8496
10f2d63a 8497
5005acfe 8498 enablestring=
e6cc62c6
VS
8499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8500echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8501 no_cache=0
8502 # Check whether --enable-splash or --disable-splash was given.
8503if test "${enable_splash+set}" = set; then
8504 enableval="$enable_splash"
e6cc62c6 8505
cbca9943
VZ
8506 if test "$enableval" = yes; then
8507 ac_cv_use_splash='wxUSE_SPLASH=yes'
8508 else
8509 ac_cv_use_splash='wxUSE_SPLASH=no'
8510 fi
e6cc62c6 8511
cbca9943 8512else
e6cc62c6 8513
cbca9943
VZ
8514 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
8521 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8522
e6cc62c6 8523fi;
cbca9943
VZ
8524
8525 eval "$ac_cv_use_splash"
8526 if test "$no_cache" != 1; then
8527 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8528 fi
8529
8530 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8531 echo "$as_me:$LINENO: result: yes" >&5
8532echo "${ECHO_T}yes" >&6
cbca9943 8533 else
e6cc62c6
VS
8534 echo "$as_me:$LINENO: result: no" >&5
8535echo "${ECHO_T}no" >&6
cbca9943 8536 fi
e6cc62c6 8537
cbca9943 8538
5005acfe 8539 enablestring=
e6cc62c6
VS
8540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8541echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8542 no_cache=0
8543 # Check whether --enable-textdlg or --disable-textdlg was given.
8544if test "${enable_textdlg+set}" = set; then
8545 enableval="$enable_textdlg"
e6cc62c6 8546
10f2d63a
VZ
8547 if test "$enableval" = yes; then
8548 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8549 else
8550 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8551 fi
e6cc62c6 8552
10f2d63a 8553else
e6cc62c6 8554
10f2d63a
VZ
8555 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8556 if test "x$LINE" != x ; then
8557 eval "DEFAULT_$LINE"
8558 else
8559 no_cache=1
8560 fi
8561
8562 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8563
e6cc62c6 8564fi;
10f2d63a
VZ
8565
8566 eval "$ac_cv_use_textdlg"
8567 if test "$no_cache" != 1; then
8568 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8569 fi
8570
8571 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8572 echo "$as_me:$LINENO: result: yes" >&5
8573echo "${ECHO_T}yes" >&6
10f2d63a 8574 else
e6cc62c6
VS
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
10f2d63a 8577 fi
e6cc62c6 8578
10f2d63a 8579
5005acfe 8580 enablestring=
e6cc62c6
VS
8581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8582echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8583 no_cache=0
8584 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8585if test "${enable_tipdlg+set}" = set; then
8586 enableval="$enable_tipdlg"
e6cc62c6 8587
10f2d63a
VZ
8588 if test "$enableval" = yes; then
8589 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8590 else
8591 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8592 fi
e6cc62c6 8593
10f2d63a 8594else
e6cc62c6 8595
10f2d63a
VZ
8596 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8597 if test "x$LINE" != x ; then
8598 eval "DEFAULT_$LINE"
8599 else
8600 no_cache=1
8601 fi
8602
8603 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8604
e6cc62c6 8605fi;
10f2d63a
VZ
8606
8607 eval "$ac_cv_use_tipdlg"
8608 if test "$no_cache" != 1; then
8609 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8610 fi
8611
8612 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8613 echo "$as_me:$LINENO: result: yes" >&5
8614echo "${ECHO_T}yes" >&6
10f2d63a 8615 else
e6cc62c6
VS
8616 echo "$as_me:$LINENO: result: no" >&5
8617echo "${ECHO_T}no" >&6
10f2d63a 8618 fi
e6cc62c6 8619
10f2d63a 8620
5005acfe 8621 enablestring=
e6cc62c6
VS
8622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8623echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8624 no_cache=0
8625 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8626if test "${enable_progressdlg+set}" = set; then
8627 enableval="$enable_progressdlg"
e6cc62c6 8628
10f2d63a
VZ
8629 if test "$enableval" = yes; then
8630 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8631 else
8632 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8633 fi
e6cc62c6 8634
10f2d63a 8635else
e6cc62c6 8636
10f2d63a
VZ
8637 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8638 if test "x$LINE" != x ; then
8639 eval "DEFAULT_$LINE"
8640 else
8641 no_cache=1
8642 fi
8643
8644 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8645
e6cc62c6 8646fi;
10f2d63a
VZ
8647
8648 eval "$ac_cv_use_progressdlg"
8649 if test "$no_cache" != 1; then
8650 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8651 fi
8652
8653 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8654 echo "$as_me:$LINENO: result: yes" >&5
8655echo "${ECHO_T}yes" >&6
10f2d63a 8656 else
e6cc62c6
VS
8657 echo "$as_me:$LINENO: result: no" >&5
8658echo "${ECHO_T}no" >&6
10f2d63a 8659 fi
e6cc62c6 8660
10f2d63a 8661
5005acfe 8662 enablestring=
e6cc62c6
VS
8663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8664echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8665 no_cache=0
8666 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8667if test "${enable_wizarddlg+set}" = set; then
8668 enableval="$enable_wizarddlg"
e6cc62c6 8669
b1f5d087
VZ
8670 if test "$enableval" = yes; then
8671 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8672 else
8673 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8674 fi
e6cc62c6 8675
b1f5d087 8676else
e6cc62c6 8677
b1f5d087
VZ
8678 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8686
e6cc62c6 8687fi;
b1f5d087
VZ
8688
8689 eval "$ac_cv_use_wizarddlg"
8690 if test "$no_cache" != 1; then
8691 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8692 fi
8693
8694 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8695 echo "$as_me:$LINENO: result: yes" >&5
8696echo "${ECHO_T}yes" >&6
b1f5d087 8697 else
e6cc62c6
VS
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
b1f5d087 8700 fi
e6cc62c6 8701
8284b0c5
MB
8702
8703
52127426 8704
5005acfe 8705 enablestring=
e6cc62c6
VS
8706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8707echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8708 no_cache=0
8709 # Check whether --enable-menus or --disable-menus was given.
8710if test "${enable_menus+set}" = set; then
8711 enableval="$enable_menus"
e6cc62c6 8712
1e6feb95
VZ
8713 if test "$enableval" = yes; then
8714 ac_cv_use_menus='wxUSE_MENUS=yes'
8715 else
8716 ac_cv_use_menus='wxUSE_MENUS=no'
8717 fi
e6cc62c6 8718
1e6feb95 8719else
e6cc62c6 8720
1e6feb95
VZ
8721 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8722 if test "x$LINE" != x ; then
8723 eval "DEFAULT_$LINE"
8724 else
8725 no_cache=1
8726 fi
8727
8728 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8729
e6cc62c6 8730fi;
1e6feb95
VZ
8731
8732 eval "$ac_cv_use_menus"
8733 if test "$no_cache" != 1; then
8734 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8735 fi
8736
8737 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8738 echo "$as_me:$LINENO: result: yes" >&5
8739echo "${ECHO_T}yes" >&6
1e6feb95 8740 else
e6cc62c6
VS
8741 echo "$as_me:$LINENO: result: no" >&5
8742echo "${ECHO_T}no" >&6
1e6feb95 8743 fi
e6cc62c6 8744
1e6feb95 8745
5005acfe 8746 enablestring=
e6cc62c6
VS
8747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8748echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8749 no_cache=0
8750 # Check whether --enable-miniframe or --disable-miniframe was given.
8751if test "${enable_miniframe+set}" = set; then
8752 enableval="$enable_miniframe"
e6cc62c6 8753
10f2d63a
VZ
8754 if test "$enableval" = yes; then
8755 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8756 else
8757 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8758 fi
e6cc62c6 8759
10f2d63a 8760else
e6cc62c6 8761
10f2d63a
VZ
8762 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8763 if test "x$LINE" != x ; then
8764 eval "DEFAULT_$LINE"
8765 else
8766 no_cache=1
8767 fi
8768
8769 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8770
e6cc62c6 8771fi;
10f2d63a
VZ
8772
8773 eval "$ac_cv_use_miniframe"
8774 if test "$no_cache" != 1; then
8775 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8776 fi
8777
8778 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8779 echo "$as_me:$LINENO: result: yes" >&5
8780echo "${ECHO_T}yes" >&6
10f2d63a 8781 else
e6cc62c6
VS
8782 echo "$as_me:$LINENO: result: no" >&5
8783echo "${ECHO_T}no" >&6
10f2d63a 8784 fi
e6cc62c6 8785
10f2d63a 8786
5005acfe 8787 enablestring=
e6cc62c6
VS
8788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8789echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8790 no_cache=0
8791 # Check whether --enable-tooltips or --disable-tooltips was given.
8792if test "${enable_tooltips+set}" = set; then
8793 enableval="$enable_tooltips"
e6cc62c6 8794
10f2d63a
VZ
8795 if test "$enableval" = yes; then
8796 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8797 else
8798 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8799 fi
e6cc62c6 8800
10f2d63a 8801else
e6cc62c6 8802
10f2d63a
VZ
8803 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8804 if test "x$LINE" != x ; then
8805 eval "DEFAULT_$LINE"
8806 else
8807 no_cache=1
8808 fi
8809
8810 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8811
e6cc62c6 8812fi;
10f2d63a
VZ
8813
8814 eval "$ac_cv_use_tooltips"
8815 if test "$no_cache" != 1; then
8816 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8817 fi
8818
8819 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8820 echo "$as_me:$LINENO: result: yes" >&5
8821echo "${ECHO_T}yes" >&6
10f2d63a 8822 else
e6cc62c6
VS
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
10f2d63a 8825 fi
e6cc62c6 8826
10f2d63a 8827
5005acfe 8828 enablestring=
e6cc62c6
VS
8829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8830echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8831 no_cache=0
8832 # Check whether --enable-splines or --disable-splines was given.
8833if test "${enable_splines+set}" = set; then
8834 enableval="$enable_splines"
e6cc62c6 8835
10f2d63a
VZ
8836 if test "$enableval" = yes; then
8837 ac_cv_use_splines='wxUSE_SPLINES=yes'
8838 else
8839 ac_cv_use_splines='wxUSE_SPLINES=no'
8840 fi
e6cc62c6 8841
10f2d63a 8842else
e6cc62c6 8843
10f2d63a
VZ
8844 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8845 if test "x$LINE" != x ; then
8846 eval "DEFAULT_$LINE"
8847 else
8848 no_cache=1
8849 fi
8850
8851 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8852
e6cc62c6 8853fi;
10f2d63a
VZ
8854
8855 eval "$ac_cv_use_splines"
8856 if test "$no_cache" != 1; then
8857 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8858 fi
8859
8860 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8861 echo "$as_me:$LINENO: result: yes" >&5
8862echo "${ECHO_T}yes" >&6
10f2d63a 8863 else
e6cc62c6
VS
8864 echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6
10f2d63a 8866 fi
e6cc62c6 8867
10f2d63a 8868
5005acfe 8869 enablestring=
e6cc62c6
VS
8870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8871echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8872 no_cache=0
8873 # Check whether --enable-validators or --disable-validators was given.
8874if test "${enable_validators+set}" = set; then
8875 enableval="$enable_validators"
e6cc62c6 8876
10f2d63a
VZ
8877 if test "$enableval" = yes; then
8878 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8879 else
8880 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8881 fi
e6cc62c6 8882
10f2d63a 8883else
e6cc62c6 8884
10f2d63a
VZ
8885 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8886 if test "x$LINE" != x ; then
8887 eval "DEFAULT_$LINE"
8888 else
8889 no_cache=1
8890 fi
8891
8892 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8893
e6cc62c6 8894fi;
10f2d63a
VZ
8895
8896 eval "$ac_cv_use_validators"
8897 if test "$no_cache" != 1; then
8898 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8899 fi
8900
8901 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8902 echo "$as_me:$LINENO: result: yes" >&5
8903echo "${ECHO_T}yes" >&6
10f2d63a 8904 else
e6cc62c6
VS
8905 echo "$as_me:$LINENO: result: no" >&5
8906echo "${ECHO_T}no" >&6
10f2d63a 8907 fi
e6cc62c6 8908
10f2d63a 8909
5005acfe 8910 enablestring=
e6cc62c6
VS
8911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8912echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8913 no_cache=0
8914 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8915if test "${enable_busyinfo+set}" = set; then
8916 enableval="$enable_busyinfo"
e6cc62c6 8917
10f2d63a
VZ
8918 if test "$enableval" = yes; then
8919 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8920 else
8921 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8922 fi
e6cc62c6 8923
10f2d63a 8924else
e6cc62c6 8925
10f2d63a
VZ
8926 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8927 if test "x$LINE" != x ; then
8928 eval "DEFAULT_$LINE"
8929 else
8930 no_cache=1
8931 fi
8932
8933 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8934
e6cc62c6 8935fi;
10f2d63a
VZ
8936
8937 eval "$ac_cv_use_busyinfo"
8938 if test "$no_cache" != 1; then
8939 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8940 fi
8941
8942 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8943 echo "$as_me:$LINENO: result: yes" >&5
8944echo "${ECHO_T}yes" >&6
10f2d63a 8945 else
e6cc62c6
VS
8946 echo "$as_me:$LINENO: result: no" >&5
8947echo "${ECHO_T}no" >&6
10f2d63a 8948 fi
e6cc62c6 8949
10f2d63a 8950
5005acfe 8951 enablestring=
e6cc62c6
VS
8952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8953echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8954 no_cache=0
8955 # Check whether --enable-joystick or --disable-joystick was given.
8956if test "${enable_joystick+set}" = set; then
8957 enableval="$enable_joystick"
e6cc62c6 8958
f6bcfd97
BP
8959 if test "$enableval" = yes; then
8960 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8961 else
8962 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8963 fi
e6cc62c6 8964
f6bcfd97 8965else
e6cc62c6 8966
f6bcfd97
BP
8967 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8968 if test "x$LINE" != x ; then
8969 eval "DEFAULT_$LINE"
8970 else
8971 no_cache=1
8972 fi
8973
8974 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8975
e6cc62c6 8976fi;
f6bcfd97
BP
8977
8978 eval "$ac_cv_use_joystick"
8979 if test "$no_cache" != 1; then
8980 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8981 fi
8982
8983 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8984 echo "$as_me:$LINENO: result: yes" >&5
8985echo "${ECHO_T}yes" >&6
f6bcfd97 8986 else
e6cc62c6
VS
8987 echo "$as_me:$LINENO: result: no" >&5
8988echo "${ECHO_T}no" >&6
f6bcfd97 8989 fi
e6cc62c6 8990
698dcdb6 8991
5005acfe 8992 enablestring=
e6cc62c6
VS
8993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8994echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
8995 no_cache=0
8996 # Check whether --enable-metafile or --disable-metafile was given.
8997if test "${enable_metafile+set}" = set; then
8998 enableval="$enable_metafile"
e6cc62c6 8999
1e6feb95
VZ
9000 if test "$enableval" = yes; then
9001 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9002 else
9003 ac_cv_use_metafile='wxUSE_METAFILE=no'
9004 fi
e6cc62c6 9005
1e6feb95 9006else
e6cc62c6 9007
1e6feb95
VZ
9008 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9009 if test "x$LINE" != x ; then
9010 eval "DEFAULT_$LINE"
9011 else
9012 no_cache=1
9013 fi
9014
9015 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9016
e6cc62c6 9017fi;
1e6feb95
VZ
9018
9019 eval "$ac_cv_use_metafile"
9020 if test "$no_cache" != 1; then
9021 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9022 fi
9023
9024 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9025 echo "$as_me:$LINENO: result: yes" >&5
9026echo "${ECHO_T}yes" >&6
1e6feb95 9027 else
e6cc62c6
VS
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
1e6feb95 9030 fi
e6cc62c6 9031
1e6feb95 9032
5005acfe 9033 enablestring=
e6cc62c6
VS
9034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9035echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9036 no_cache=0
9037 # Check whether --enable-dragimage or --disable-dragimage was given.
9038if test "${enable_dragimage+set}" = set; then
9039 enableval="$enable_dragimage"
e6cc62c6 9040
24fd6d87
VZ
9041 if test "$enableval" = yes; then
9042 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9043 else
9044 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9045 fi
e6cc62c6 9046
24fd6d87 9047else
e6cc62c6 9048
24fd6d87
VZ
9049 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9050 if test "x$LINE" != x ; then
9051 eval "DEFAULT_$LINE"
9052 else
9053 no_cache=1
9054 fi
9055
9056 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9057
e6cc62c6 9058fi;
24fd6d87
VZ
9059
9060 eval "$ac_cv_use_dragimage"
9061 if test "$no_cache" != 1; then
9062 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9063 fi
9064
9065 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9066 echo "$as_me:$LINENO: result: yes" >&5
9067echo "${ECHO_T}yes" >&6
24fd6d87 9068 else
e6cc62c6
VS
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
24fd6d87 9071 fi
e6cc62c6 9072
52127426 9073
7bb2947d 9074 enablestring=
e6cc62c6
VS
9075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9076echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9077 no_cache=0
9078 # Check whether --enable-accessibility or --disable-accessibility was given.
9079if test "${enable_accessibility+set}" = set; then
9080 enableval="$enable_accessibility"
e6cc62c6 9081
7bb2947d
MB
9082 if test "$enableval" = yes; then
9083 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9084 else
9085 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9086 fi
e6cc62c6 9087
7bb2947d 9088else
e6cc62c6 9089
7bb2947d
MB
9090 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9091 if test "x$LINE" != x ; then
9092 eval "DEFAULT_$LINE"
9093 else
9094 no_cache=1
9095 fi
9096
9097 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9098
e6cc62c6 9099fi;
7bb2947d
MB
9100
9101 eval "$ac_cv_use_accessibility"
9102 if test "$no_cache" != 1; then
9103 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9104 fi
9105
9106 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9107 echo "$as_me:$LINENO: result: yes" >&5
9108echo "${ECHO_T}yes" >&6
7bb2947d 9109 else
e6cc62c6
VS
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
7bb2947d 9112 fi
e6cc62c6 9113
7bb2947d 9114
8284b0c5
MB
9115
9116
5005acfe 9117 enablestring=
e6cc62c6
VS
9118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9119echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9120 no_cache=0
9121 # Check whether --enable-palette or --disable-palette was given.
9122if test "${enable_palette+set}" = set; then
9123 enableval="$enable_palette"
e6cc62c6 9124
edae8572
VZ
9125 if test "$enableval" = yes; then
9126 ac_cv_use_palette='wxUSE_PALETTE=yes'
9127 else
9128 ac_cv_use_palette='wxUSE_PALETTE=no'
9129 fi
e6cc62c6 9130
edae8572 9131else
e6cc62c6 9132
edae8572
VZ
9133 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9134 if test "x$LINE" != x ; then
9135 eval "DEFAULT_$LINE"
9136 else
9137 no_cache=1
9138 fi
9139
9140 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9141
e6cc62c6 9142fi;
edae8572
VZ
9143
9144 eval "$ac_cv_use_palette"
9145 if test "$no_cache" != 1; then
9146 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9147 fi
9148
9149 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9150 echo "$as_me:$LINENO: result: yes" >&5
9151echo "${ECHO_T}yes" >&6
edae8572 9152 else
e6cc62c6
VS
9153 echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6
edae8572 9155 fi
e6cc62c6 9156
edae8572 9157
5005acfe 9158 enablestring=
e6cc62c6
VS
9159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9160echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9161 no_cache=0
9162 # Check whether --enable-image or --disable-image was given.
9163if test "${enable_image+set}" = set; then
9164 enableval="$enable_image"
e6cc62c6 9165
0046ff7c
VS
9166 if test "$enableval" = yes; then
9167 ac_cv_use_image='wxUSE_IMAGE=yes'
9168 else
9169 ac_cv_use_image='wxUSE_IMAGE=no'
9170 fi
e6cc62c6 9171
0046ff7c 9172else
e6cc62c6 9173
0046ff7c
VS
9174 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9175 if test "x$LINE" != x ; then
9176 eval "DEFAULT_$LINE"
9177 else
9178 no_cache=1
9179 fi
9180
9181 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9182
e6cc62c6 9183fi;
0046ff7c
VS
9184
9185 eval "$ac_cv_use_image"
9186 if test "$no_cache" != 1; then
9187 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9188 fi
9189
9190 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9191 echo "$as_me:$LINENO: result: yes" >&5
9192echo "${ECHO_T}yes" >&6
0046ff7c 9193 else
e6cc62c6
VS
9194 echo "$as_me:$LINENO: result: no" >&5
9195echo "${ECHO_T}no" >&6
0046ff7c 9196 fi
e6cc62c6 9197
0046ff7c 9198
5005acfe 9199 enablestring=
e6cc62c6
VS
9200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9201echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9202 no_cache=0
9203 # Check whether --enable-gif or --disable-gif was given.
9204if test "${enable_gif+set}" = set; then
9205 enableval="$enable_gif"
e6cc62c6 9206
10f2d63a
VZ
9207 if test "$enableval" = yes; then
9208 ac_cv_use_gif='wxUSE_GIF=yes'
9209 else
9210 ac_cv_use_gif='wxUSE_GIF=no'
9211 fi
e6cc62c6 9212
10f2d63a 9213else
e6cc62c6 9214
10f2d63a
VZ
9215 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9216 if test "x$LINE" != x ; then
9217 eval "DEFAULT_$LINE"
9218 else
9219 no_cache=1
9220 fi
9221
9222 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9223
e6cc62c6 9224fi;
10f2d63a
VZ
9225
9226 eval "$ac_cv_use_gif"
9227 if test "$no_cache" != 1; then
9228 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9229 fi
9230
9231 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9232 echo "$as_me:$LINENO: result: yes" >&5
9233echo "${ECHO_T}yes" >&6
10f2d63a 9234 else
e6cc62c6
VS
9235 echo "$as_me:$LINENO: result: no" >&5
9236echo "${ECHO_T}no" >&6
10f2d63a 9237 fi
e6cc62c6 9238
10f2d63a 9239
5005acfe 9240 enablestring=
e6cc62c6
VS
9241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9242echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9243 no_cache=0
9244 # Check whether --enable-pcx or --disable-pcx was given.
9245if test "${enable_pcx+set}" = set; then
9246 enableval="$enable_pcx"
e6cc62c6 9247
10f2d63a
VZ
9248 if test "$enableval" = yes; then
9249 ac_cv_use_pcx='wxUSE_PCX=yes'
9250 else
9251 ac_cv_use_pcx='wxUSE_PCX=no'
9252 fi
e6cc62c6 9253
10f2d63a 9254else
e6cc62c6 9255
10f2d63a
VZ
9256 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9257 if test "x$LINE" != x ; then
9258 eval "DEFAULT_$LINE"
9259 else
9260 no_cache=1
9261 fi
9262
9263 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9264
e6cc62c6 9265fi;
10f2d63a
VZ
9266
9267 eval "$ac_cv_use_pcx"
9268 if test "$no_cache" != 1; then
9269 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9270 fi
9271
9272 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9273 echo "$as_me:$LINENO: result: yes" >&5
9274echo "${ECHO_T}yes" >&6
10f2d63a 9275 else
e6cc62c6
VS
9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
10f2d63a 9278 fi
e6cc62c6 9279
10f2d63a 9280
5005acfe 9281 enablestring=
e6cc62c6
VS
9282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9283echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9284 no_cache=0
9285 # Check whether --enable-iff or --disable-iff was given.
9286if test "${enable_iff+set}" = set; then
9287 enableval="$enable_iff"
e6cc62c6 9288
4b6b4dfc
RR
9289 if test "$enableval" = yes; then
9290 ac_cv_use_iff='wxUSE_IFF=yes'
9291 else
9292 ac_cv_use_iff='wxUSE_IFF=no'
9293 fi
e6cc62c6 9294
4b6b4dfc 9295else
e6cc62c6 9296
4b6b4dfc
RR
9297 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9298 if test "x$LINE" != x ; then
9299 eval "DEFAULT_$LINE"
9300 else
9301 no_cache=1
9302 fi
9303
9304 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9305
e6cc62c6 9306fi;
4b6b4dfc
RR
9307
9308 eval "$ac_cv_use_iff"
9309 if test "$no_cache" != 1; then
9310 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9311 fi
9312
9313 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9314 echo "$as_me:$LINENO: result: yes" >&5
9315echo "${ECHO_T}yes" >&6
4b6b4dfc 9316 else
e6cc62c6
VS
9317 echo "$as_me:$LINENO: result: no" >&5
9318echo "${ECHO_T}no" >&6
4b6b4dfc 9319 fi
e6cc62c6 9320
4b6b4dfc 9321
5005acfe 9322 enablestring=
e6cc62c6
VS
9323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9324echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9325 no_cache=0
9326 # Check whether --enable-pnm or --disable-pnm was given.
9327if test "${enable_pnm+set}" = set; then
9328 enableval="$enable_pnm"
e6cc62c6 9329
10f2d63a
VZ
9330 if test "$enableval" = yes; then
9331 ac_cv_use_pnm='wxUSE_PNM=yes'
9332 else
9333 ac_cv_use_pnm='wxUSE_PNM=no'
9334 fi
e6cc62c6 9335
10f2d63a 9336else
e6cc62c6 9337
10f2d63a
VZ
9338 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9339 if test "x$LINE" != x ; then
9340 eval "DEFAULT_$LINE"
9341 else
9342 no_cache=1
9343 fi
9344
9345 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9346
e6cc62c6 9347fi;
10f2d63a
VZ
9348
9349 eval "$ac_cv_use_pnm"
9350 if test "$no_cache" != 1; then
9351 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9352 fi
9353
9354 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9355 echo "$as_me:$LINENO: result: yes" >&5
9356echo "${ECHO_T}yes" >&6
10f2d63a 9357 else
e6cc62c6
VS
9358 echo "$as_me:$LINENO: result: no" >&5
9359echo "${ECHO_T}no" >&6
10f2d63a 9360 fi
e6cc62c6 9361
10f2d63a 9362
5005acfe 9363 enablestring=
e6cc62c6
VS
9364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9365echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9366 no_cache=0
69d27ff7
MB
9367 # Check whether --enable-xpm or --disable-xpm was given.
9368if test "${enable_xpm+set}" = set; then
9369 enableval="$enable_xpm"
e6cc62c6 9370
0046ff7c 9371 if test "$enableval" = yes; then
69d27ff7 9372 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9373 else
69d27ff7 9374 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9375 fi
e6cc62c6 9376
0046ff7c 9377else
e6cc62c6 9378
0046ff7c
VS
9379 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9380 if test "x$LINE" != x ; then
9381 eval "DEFAULT_$LINE"
9382 else
9383 no_cache=1
9384 fi
9385
69d27ff7 9386 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9387
e6cc62c6 9388fi;
0046ff7c 9389
69d27ff7 9390 eval "$ac_cv_use_xpm"
0046ff7c 9391 if test "$no_cache" != 1; then
69d27ff7 9392 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9393 fi
9394
9395 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9396 echo "$as_me:$LINENO: result: yes" >&5
9397echo "${ECHO_T}yes" >&6
0046ff7c 9398 else
e6cc62c6
VS
9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
0046ff7c 9401 fi
e6cc62c6 9402
0046ff7c 9403
5005acfe 9404 enablestring=
e6cc62c6
VS
9405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9406echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9407 no_cache=0
c7206e64
VS
9408 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9409if test "${enable_ico_cur+set}" = set; then
9410 enableval="$enable_ico_cur"
e6cc62c6 9411
658974ae 9412 if test "$enableval" = yes; then
c7206e64 9413 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9414 else
c7206e64 9415 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9416 fi
e6cc62c6 9417
658974ae 9418else
e6cc62c6 9419
658974ae
VS
9420 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9421 if test "x$LINE" != x ; then
9422 eval "DEFAULT_$LINE"
9423 else
9424 no_cache=1
9425 fi
9426
c7206e64 9427 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9428
e6cc62c6 9429fi;
658974ae 9430
c7206e64 9431 eval "$ac_cv_use_ico_cur"
658974ae 9432 if test "$no_cache" != 1; then
c7206e64 9433 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9434 fi
9435
9436 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9437 echo "$as_me:$LINENO: result: yes" >&5
9438echo "${ECHO_T}yes" >&6
658974ae 9439 else
e6cc62c6
VS
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
658974ae 9442 fi
e6cc62c6 9443
658974ae 9444
b12915c1
VZ
9445fi
9446
d558c907
VS
9447case "${host}" in
9448 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9449 PATH_IFS=';'
9450 LEX_STEM="lexyy"
d558c907
VS
9451 ;;
9452 *)
9453 PATH_IFS=':'
9454 LEX_STEM="lex.yy"
9455 ;;
9456esac
9457
8284b0c5
MB
9458
9459
10f2d63a
VZ
9460 echo "saving argument cache $wx_arg_cache_file"
9461 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9462
8284b0c5 9463
e6cc62c6
VS
9464
9465echo "$as_me:$LINENO: checking for toolkit" >&5
9466echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9467
9468# In Wine, we need to default to MSW, not GTK or MOTIF
9469if test "$wxUSE_WINE" = "yes"; then
9470 DEFAULT_DEFAULT_wxUSE_GTK=0
9471 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9472 DEFAULT_DEFAULT_wxUSE_MSW=1
9473fi
10f2d63a
VZ
9474
9475if test "$wxUSE_GUI" = "yes"; then
9476
3a922bb4 9477 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9478 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9479echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9480 { (exit 1); exit 1; }; }
3a922bb4 9481 fi
b12915c1 9482
3a922bb4
RL
9483 if test "$TOOLKIT_GIVEN" = 1; then
9484 for toolkit in `echo $ALL_TOOLKITS`; do
9485 var=wxUSE_$toolkit
9486 eval "value=\$${var}"
9487 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9488 done
10f2d63a 9489 else
3a922bb4
RL
9490 for toolkit in `echo $ALL_TOOLKITS`; do
9491 if test "$has_toolkit_in_cache" != 1; then
9492 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9493 else
9494 var=DEFAULT_wxUSE_$toolkit
9495 fi
9496 eval "wxUSE_$toolkit=\$${var}"
9497 done
10f2d63a 9498 fi
10f2d63a 9499
ac0c4cc3
DE
9500 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9501 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9502 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9503
d558c907 9504 case "${host}" in
6fa882bd 9505 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9506 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9507 esac
10f2d63a 9508
3a922bb4
RL
9509 case "$NUM_TOOLKITS" in
9510 1)
9511 ;;
9512 0)
e6cc62c6
VS
9513 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9514echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9515 { (exit 1); exit 1; }; }
3a922bb4
RL
9516 ;;
9517 *)
e6cc62c6
VS
9518 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9519echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9520 { (exit 1); exit 1; }; }
3a922bb4 9521 esac
10f2d63a 9522
3a922bb4
RL
9523 for toolkit in `echo $ALL_TOOLKITS`; do
9524 var=wxUSE_$toolkit
9525 eval "value=\$${var}"
9526 if test "x$value" != x; then
9527 cache_var=CACHE_$toolkit
9528 eval "cache=\$${cache_var}"
9529 if test "$cache" = 1; then
9530 echo "$var=$value" >> ${wx_arg_cache_file}
9531 fi
9532 if test "$value" = 1; then
9533 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9534 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9535echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9536 fi
9537 fi
9538 done
10f2d63a 9539else
9de9b8f0
VZ
9540 if test "x$host_alias" != "x"; then
9541 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9542echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9543 else
9544 echo "$as_me:$LINENO: result: base only" >&5
9545echo "${ECHO_T}base only" >&6
9546 fi
10f2d63a
VZ
9547fi
9548
43d99b6d
VS
9549wants_win32=0
9550doesnt_want_win32=0
17234b26
MB
9551case "${host}" in
9552 *-*-cygwin*)
9553 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9554 wants_win32=1
9555 else
9556 doesnt_want_win32=1
17234b26
MB
9557 fi
9558 ;;
9559 *-*-mingw*)
43d99b6d 9560 wants_win32=1
17234b26
MB
9561 ;;
9562esac
9563
89e6bf6d
VZ
9564if test "$wxUSE_WINE" = "yes"; then
9565 wants_win32=1
9566 CC=winegcc
9567 CXX=wineg++
9568 RESCOMP=wrc
9569fi
9570
43d99b6d 9571if test "$wants_win32" = 1 ; then
17234b26
MB
9572 USE_UNIX=0
9573 USE_WIN32=1
e6cc62c6 9574 cat >>confdefs.h <<\_ACEOF
17234b26 9575#define __WIN32__ 1
e6cc62c6 9576_ACEOF
17234b26 9577
e6cc62c6 9578 cat >>confdefs.h <<\_ACEOF
17234b26 9579#define __WIN95__ 1
e6cc62c6 9580_ACEOF
17234b26 9581
e6cc62c6 9582 cat >>confdefs.h <<\_ACEOF
17234b26 9583#define __WINDOWS__ 1
e6cc62c6 9584_ACEOF
17234b26 9585
e6cc62c6 9586 cat >>confdefs.h <<\_ACEOF
17234b26 9587#define __GNUWIN32__ 1
e6cc62c6 9588_ACEOF
17234b26 9589
e6cc62c6 9590 cat >>confdefs.h <<\_ACEOF
17234b26 9591#define STRICT 1
e6cc62c6 9592_ACEOF
17234b26 9593
e6cc62c6 9594 cat >>confdefs.h <<\_ACEOF
17234b26 9595#define WINVER 0x0400
e6cc62c6 9596_ACEOF
17234b26 9597
43d99b6d
VS
9598fi
9599if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9600 USE_UNIX=1
9601 USE_WIN32=0
9602fi
9603
9604if test "$USE_UNIX" = 1 ; then
9605 wxUSE_UNIX=yes
e6cc62c6 9606 cat >>confdefs.h <<\_ACEOF
17234b26 9607#define __UNIX__ 1
e6cc62c6 9608_ACEOF
17234b26
MB
9609
9610fi
9611
8284b0c5 9612
e6cc62c6 9613cat >confcache <<\_ACEOF
10f2d63a
VZ
9614# This file is a shell script that caches the results of configure
9615# tests run on this system so they can be shared between configure
e6cc62c6
VS
9616# scripts and configure runs, see configure's option --config-cache.
9617# It is not useful on other systems. If it contains results you don't
9618# want to keep, you may remove or edit it.
10f2d63a 9619#
e6cc62c6
VS
9620# config.status only pays attention to the cache file if you give it
9621# the --recheck option to rerun configure.
10f2d63a 9622#
e6cc62c6
VS
9623# `ac_cv_env_foo' variables (set or unset) will be overridden when
9624# loading this file, other *unset* `ac_cv_foo' will be assigned the
9625# following values.
9626
9627_ACEOF
9628
10f2d63a
VZ
9629# The following way of writing the cache mishandles newlines in values,
9630# but we know of no workaround that is simple, portable, and efficient.
9631# So, don't put newlines in cache variables' values.
9632# Ultrix sh set writes to stderr and can't be redirected directly,
9633# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9634{
9635 (set) 2>&1 |
9636 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9637 *ac_space=\ *)
9638 # `set' does not quote correctly, so add quotes (double-quote
9639 # substitution turns \\\\ into \\, and sed turns \\ into \).
9640 sed -n \
9641 "s/'/'\\\\''/g;
9642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9643 ;;
9644 *)
9645 # `set' quotes correctly as required by POSIX, so do not add quotes.
9646 sed -n \
9647 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9648 ;;
9649 esac;
9650} |
9651 sed '
9652 t clear
9653 : clear
9654 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9655 t end
9656 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9657 : end' >>confcache
9658if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9659 if test -w $cache_file; then
e6cc62c6
VS
9660 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9661 cat confcache >$cache_file
10f2d63a
VZ
9662 else
9663 echo "not updating unwritable cache $cache_file"
9664 fi
9665fi
9666rm -f confcache
9667
e59890c3 9668if test "$build" != "$host" ; then
9d353d4a 9669 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9670 CC=$host_alias-gcc
9671 CXX=$host_alias-c++
9672 AR=$host_alias-ar
9673 RANLIB=$host_alias-ranlib
9674 DLLTOOL=$host_alias-dlltool
9675 RESCOMP=$host_alias-windres
9676 LD=$host_alias-ld
9677 NM=$host_alias-nm
9678 STRIP=$host_alias-strip
9679 else
e6cc62c6
VS
9680 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9681echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9682 { (exit 1); exit 1; }; }
3a922bb4 9683 fi
10f2d63a
VZ
9684fi
9685
ec603395 9686CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9687ac_ext=c
9688ac_cpp='$CPP $CPPFLAGS'
9689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9691ac_compiler_gnu=$ac_cv_c_compiler_gnu
9692if test -n "$ac_tool_prefix"; then
9693 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9694set dummy ${ac_tool_prefix}gcc; ac_word=$2
9695echo "$as_me:$LINENO: checking for $ac_word" >&5
9696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9697if test "${ac_cv_prog_CC+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699else
9700 if test -n "$CC"; then
9701 ac_cv_prog_CC="$CC" # Let the user override the test.
9702else
9703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704for as_dir in $PATH
9705do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9710 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 break 2
9713 fi
9714done
9715done
9716
9717fi
9718fi
9719CC=$ac_cv_prog_CC
9720if test -n "$CC"; then
9721 echo "$as_me:$LINENO: result: $CC" >&5
9722echo "${ECHO_T}$CC" >&6
9723else
9724 echo "$as_me:$LINENO: result: no" >&5
9725echo "${ECHO_T}no" >&6
9726fi
9727
9728fi
9729if test -z "$ac_cv_prog_CC"; then
9730 ac_ct_CC=$CC
9731 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9732set dummy gcc; ac_word=$2
e6cc62c6
VS
9733echo "$as_me:$LINENO: checking for $ac_word" >&5
9734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738 if test -n "$ac_ct_CC"; then
9739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9748 ac_cv_prog_ac_ct_CC="gcc"
9749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752done
9753done
9754
9755fi
9756fi
9757ac_ct_CC=$ac_cv_prog_ac_ct_CC
9758if test -n "$ac_ct_CC"; then
9759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9760echo "${ECHO_T}$ac_ct_CC" >&6
9761else
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
9764fi
9765
9766 CC=$ac_ct_CC
9767else
9768 CC="$ac_cv_prog_CC"
9769fi
9770
9771if test -z "$CC"; then
9772 if test -n "$ac_tool_prefix"; then
9773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9774set dummy ${ac_tool_prefix}cc; ac_word=$2
9775echo "$as_me:$LINENO: checking for $ac_word" >&5
9776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9777if test "${ac_cv_prog_CC+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9779else
9780 if test -n "$CC"; then
9781 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9782else
e6cc62c6
VS
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9790 ac_cv_prog_CC="${ac_tool_prefix}cc"
9791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9793 fi
9794done
9795done
9796
10f2d63a 9797fi
6232543b 9798fi
e6cc62c6 9799CC=$ac_cv_prog_CC
6232543b 9800if test -n "$CC"; then
e6cc62c6
VS
9801 echo "$as_me:$LINENO: result: $CC" >&5
9802echo "${ECHO_T}$CC" >&6
9803else
9804 echo "$as_me:$LINENO: result: no" >&5
9805echo "${ECHO_T}no" >&6
9806fi
9807
9808fi
9809if test -z "$ac_cv_prog_CC"; then
9810 ac_ct_CC=$CC
9811 # Extract the first word of "cc", so it can be a program name with args.
9812set dummy cc; ac_word=$2
9813echo "$as_me:$LINENO: checking for $ac_word" >&5
9814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9815if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818 if test -n "$ac_ct_CC"; then
9819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9820else
9821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822for as_dir in $PATH
9823do
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9828 ac_cv_prog_ac_ct_CC="cc"
9829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9830 break 2
9831 fi
9832done
9833done
9834
9835fi
9836fi
9837ac_ct_CC=$ac_cv_prog_ac_ct_CC
9838if test -n "$ac_ct_CC"; then
9839 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9840echo "${ECHO_T}$ac_ct_CC" >&6
9841else
9842 echo "$as_me:$LINENO: result: no" >&5
9843echo "${ECHO_T}no" >&6
9844fi
9845
9846 CC=$ac_ct_CC
247f5006 9847else
e6cc62c6 9848 CC="$ac_cv_prog_CC"
247f5006
VZ
9849fi
9850
e6cc62c6 9851fi
5c6fa7d2
RR
9852if test -z "$CC"; then
9853 # Extract the first word of "cc", so it can be a program name with args.
9854set dummy cc; ac_word=$2
e6cc62c6
VS
9855echo "$as_me:$LINENO: checking for $ac_word" >&5
9856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9857if test "${ac_cv_prog_CC+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9859else
9860 if test -n "$CC"; then
9861 ac_cv_prog_CC="$CC" # Let the user override the test.
9862else
9863 ac_prog_rejected=no
e6cc62c6
VS
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9872 ac_prog_rejected=yes
9873 continue
9874 fi
9875 ac_cv_prog_CC="cc"
9876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 break 2
9878 fi
9879done
9880done
9881
328a083c
RR
9882if test $ac_prog_rejected = yes; then
9883 # We found a bogon in the path, so make sure we never use it.
9884 set dummy $ac_cv_prog_CC
9885 shift
e6cc62c6 9886 if test $# != 0; then
328a083c 9887 # We chose a different compiler from the bogus one.
1e487827
VS
9888 # However, it has the same basename, so the bogon will be chosen
9889 # first if we set CC to just the basename; use the full file name.
9890 shift
e6cc62c6 9891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9892 fi
1e487827
VS
9893fi
9894fi
9895fi
e6cc62c6 9896CC=$ac_cv_prog_CC
1e487827 9897if test -n "$CC"; then
e6cc62c6
VS
9898 echo "$as_me:$LINENO: result: $CC" >&5
9899echo "${ECHO_T}$CC" >&6
703e0a69 9900else
e6cc62c6
VS
9901 echo "$as_me:$LINENO: result: no" >&5
9902echo "${ECHO_T}no" >&6
703e0a69 9903fi
1e487827 9904
e6cc62c6
VS
9905fi
9906if test -z "$CC"; then
9907 if test -n "$ac_tool_prefix"; then
9908 for ac_prog in cl
9909 do
9910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9912echo "$as_me:$LINENO: checking for $ac_word" >&5
9913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9914if test "${ac_cv_prog_CC+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9916else
9917 if test -n "$CC"; then
9918 ac_cv_prog_CC="$CC" # Let the user override the test.
9919else
e6cc62c6
VS
9920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921for as_dir in $PATH
9922do
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 break 2
9930 fi
9931done
9932done
9933
f09359cf
VS
9934fi
9935fi
e6cc62c6 9936CC=$ac_cv_prog_CC
f09359cf 9937if test -n "$CC"; then
e6cc62c6
VS
9938 echo "$as_me:$LINENO: result: $CC" >&5
9939echo "${ECHO_T}$CC" >&6
f09359cf 9940else
e6cc62c6
VS
9941 echo "$as_me:$LINENO: result: no" >&5
9942echo "${ECHO_T}no" >&6
5c6fa7d2 9943fi
1e487827 9944
e6cc62c6
VS
9945 test -n "$CC" && break
9946 done
9947fi
9948if test -z "$CC"; then
9949 ac_ct_CC=$CC
9950 for ac_prog in cl
9951do
9952 # Extract the first word of "$ac_prog", so it can be a program name with args.
9953set dummy $ac_prog; ac_word=$2
9954echo "$as_me:$LINENO: checking for $ac_word" >&5
9955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9956if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958else
9959 if test -n "$ac_ct_CC"; then
9960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9961else
9962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963for as_dir in $PATH
9964do
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9969 ac_cv_prog_ac_ct_CC="$ac_prog"
9970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 break 2
9972 fi
9973done
9974done
f09359cf 9975
e6cc62c6
VS
9976fi
9977fi
9978ac_ct_CC=$ac_cv_prog_ac_ct_CC
9979if test -n "$ac_ct_CC"; then
9980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9981echo "${ECHO_T}$ac_ct_CC" >&6
9982else
9983 echo "$as_me:$LINENO: result: no" >&5
9984echo "${ECHO_T}no" >&6
9985fi
f09359cf 9986
e6cc62c6
VS
9987 test -n "$ac_ct_CC" && break
9988done
247f5006 9989
e6cc62c6
VS
9990 CC=$ac_ct_CC
9991fi
9992
9993fi
9994
9995
9996test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9997See \`config.log' for more details." >&5
9998echo "$as_me: error: no acceptable C compiler found in \$PATH
9999See \`config.log' for more details." >&2;}
10000 { (exit 1); exit 1; }; }
10001
10002# Provide some information about the compiler.
10003echo "$as_me:$LINENO:" \
10004 "checking for C compiler version" >&5
10005ac_compiler=`set X $ac_compile; echo $2`
10006{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10007 (eval $ac_compiler --version </dev/null >&5) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }
10011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10012 (eval $ac_compiler -v </dev/null >&5) 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }
10016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10017 (eval $ac_compiler -V </dev/null >&5) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }
10021
10022cat >conftest.$ac_ext <<_ACEOF
10023#line $LINENO "configure"
10024/* confdefs.h. */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h. */
10029
10030int
10031main ()
10032{
247f5006 10033
e6cc62c6
VS
10034 ;
10035 return 0;
10036}
10037_ACEOF
10038ac_clean_files_save=$ac_clean_files
10039ac_clean_files="$ac_clean_files a.out a.exe b.out"
10040# Try to create an executable without -o first, disregard a.out.
10041# It will help us diagnose broken compilers, and finding out an intuition
10042# of exeext.
10043echo "$as_me:$LINENO: checking for C compiler default output" >&5
10044echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10045ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10046if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10047 (eval $ac_link_default) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; then
10051 # Find the output, starting from the most likely. This scheme is
10052# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10053# resort.
10054
10055# Be careful to initialize this variable, since it used to be cached.
10056# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10057ac_cv_exeext=
10058# b.out is created by i960 compilers.
10059for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10060do
10061 test -f "$ac_file" || continue
10062 case $ac_file in
10063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10064 ;;
10065 conftest.$ac_ext )
10066 # This is the source file.
10067 ;;
10068 [ab].out )
10069 # We found the default executable, but exeext='' is most
10070 # certainly right.
10071 break;;
10072 *.* )
10073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10074 # FIXME: I believe we export ac_cv_exeext for Libtool,
10075 # but it would be cool to find out if it's true. Does anybody
10076 # maintain Libtool? --akim.
10077 export ac_cv_exeext
10078 break;;
10079 * )
10080 break;;
10081 esac
10082done
10083else
10084 echo "$as_me: failed program was:" >&5
10085sed 's/^/| /' conftest.$ac_ext >&5
10086
10087{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10088See \`config.log' for more details." >&5
10089echo "$as_me: error: C compiler cannot create executables
10090See \`config.log' for more details." >&2;}
10091 { (exit 77); exit 77; }; }
10092fi
10093
10094ac_exeext=$ac_cv_exeext
10095echo "$as_me:$LINENO: result: $ac_file" >&5
10096echo "${ECHO_T}$ac_file" >&6
10097
10098# Check the compiler produces executables we can run. If not, either
10099# the compiler is broken, or we cross compile.
10100echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10101echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10102# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10103# If not cross compiling, check that we can run a simple program.
10104if test "$cross_compiling" != yes; then
10105 if { ac_try='./$ac_file'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 cross_compiling=no
698dcdb6 10112 else
e6cc62c6
VS
10113 if test "$cross_compiling" = maybe; then
10114 cross_compiling=yes
10115 else
10116 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10117If you meant to cross compile, use \`--host'.
10118See \`config.log' for more details." >&5
10119echo "$as_me: error: cannot run C compiled programs.
10120If you meant to cross compile, use \`--host'.
10121See \`config.log' for more details." >&2;}
10122 { (exit 1); exit 1; }; }
10123 fi
698dcdb6 10124 fi
52127426 10125fi
e6cc62c6
VS
10126echo "$as_me:$LINENO: result: yes" >&5
10127echo "${ECHO_T}yes" >&6
10128
10129rm -f a.out a.exe conftest$ac_cv_exeext b.out
10130ac_clean_files=$ac_clean_files_save
10131# Check the compiler produces executables we can run. If not, either
10132# the compiler is broken, or we cross compile.
10133echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10134echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10135echo "$as_me:$LINENO: result: $cross_compiling" >&5
10136echo "${ECHO_T}$cross_compiling" >&6
10137
10138echo "$as_me:$LINENO: checking for suffix of executables" >&5
10139echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10141 (eval $ac_link) 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; then
10145 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10146# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10147# work properly (i.e., refer to `conftest.exe'), while it won't with
10148# `rm'.
10149for ac_file in conftest.exe conftest conftest.*; do
10150 test -f "$ac_file" || continue
10151 case $ac_file in
10152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10154 export ac_cv_exeext
10155 break;;
10156 * ) break;;
10157 esac
10158done
5c6fa7d2 10159else
e6cc62c6
VS
10160 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10161See \`config.log' for more details." >&5
10162echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10163See \`config.log' for more details." >&2;}
10164 { (exit 1); exit 1; }; }
10165fi
10166
10167rm -f conftest$ac_cv_exeext
10168echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10169echo "${ECHO_T}$ac_cv_exeext" >&6
10170
10171rm -f conftest.$ac_ext
10172EXEEXT=$ac_cv_exeext
10173ac_exeext=$EXEEXT
10174echo "$as_me:$LINENO: checking for suffix of object files" >&5
10175echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10176if test "${ac_cv_objext+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178else
10179 cat >conftest.$ac_ext <<_ACEOF
10180#line $LINENO "configure"
10181/* confdefs.h. */
10182_ACEOF
10183cat confdefs.h >>conftest.$ac_ext
10184cat >>conftest.$ac_ext <<_ACEOF
10185/* end confdefs.h. */
10186
10187int
10188main ()
10189{
f09359cf 10190
e6cc62c6
VS
10191 ;
10192 return 0;
10193}
10194_ACEOF
10195rm -f conftest.o conftest.obj
10196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; then
10201 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10202 case $ac_file in
10203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10205 break;;
10206 esac
10207done
a0b9e27f 10208else
e6cc62c6
VS
10209 echo "$as_me: failed program was:" >&5
10210sed 's/^/| /' conftest.$ac_ext >&5
10211
10212{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10213See \`config.log' for more details." >&5
10214echo "$as_me: error: cannot compute suffix of object files: cannot compile
10215See \`config.log' for more details." >&2;}
10216 { (exit 1); exit 1; }; }
a0b9e27f 10217fi
247f5006 10218
e6cc62c6
VS
10219rm -f conftest.$ac_cv_objext conftest.$ac_ext
10220fi
10221echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10222echo "${ECHO_T}$ac_cv_objext" >&6
10223OBJEXT=$ac_cv_objext
10224ac_objext=$OBJEXT
10225echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10226echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10227if test "${ac_cv_c_compiler_gnu+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10229else
e6cc62c6
VS
10230 cat >conftest.$ac_ext <<_ACEOF
10231#line $LINENO "configure"
10232/* confdefs.h. */
10233_ACEOF
10234cat confdefs.h >>conftest.$ac_ext
10235cat >>conftest.$ac_ext <<_ACEOF
10236/* end confdefs.h. */
10237
10238int
10239main ()
10240{
10241#ifndef __GNUC__
10242 choke me
10243#endif
10244
10245 ;
10246 return 0;
10247}
10248_ACEOF
10249rm -f conftest.$ac_objext
10250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_compiler_gnu=yes
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266ac_compiler_gnu=no
10267fi
10268rm -f conftest.$ac_objext conftest.$ac_ext
10269ac_cv_c_compiler_gnu=$ac_compiler_gnu
10270
10271fi
10272echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10273echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10274GCC=`test $ac_compiler_gnu = yes && echo yes`
10275ac_test_CFLAGS=${CFLAGS+set}
10276ac_save_CFLAGS=$CFLAGS
10277CFLAGS="-g"
10278echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10279echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10280if test "${ac_cv_prog_cc_g+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282else
10283 cat >conftest.$ac_ext <<_ACEOF
10284#line $LINENO "configure"
10285/* confdefs.h. */
10286_ACEOF
10287cat confdefs.h >>conftest.$ac_ext
10288cat >>conftest.$ac_ext <<_ACEOF
10289/* end confdefs.h. */
10290
10291int
10292main ()
10293{
10294
10295 ;
10296 return 0;
10297}
10298_ACEOF
10299rm -f conftest.$ac_objext
10300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -s conftest.$ac_objext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10f2d63a
VZ
10311 ac_cv_prog_cc_g=yes
10312else
e6cc62c6
VS
10313 echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10315
e6cc62c6 10316ac_cv_prog_cc_g=no
10f2d63a 10317fi
e6cc62c6
VS
10318rm -f conftest.$ac_objext conftest.$ac_ext
10319fi
10320echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10321echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10322if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10323 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10324elif test $ac_cv_prog_cc_g = yes; then
10325 if test "$GCC" = yes; then
10f2d63a
VZ
10326 CFLAGS="-g -O2"
10327 else
f09359cf 10328 CFLAGS="-g"
10f2d63a 10329 fi
5c0a20c3 10330else
f09359cf
VS
10331 if test "$GCC" = yes; then
10332 CFLAGS="-O2"
10333 else
10334 CFLAGS=
10335 fi
10f2d63a 10336fi
e6cc62c6
VS
10337echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10338echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10339if test "${ac_cv_prog_cc_stdc+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10341else
10342 ac_cv_prog_cc_stdc=no
10343ac_save_CC=$CC
10344cat >conftest.$ac_ext <<_ACEOF
10345#line $LINENO "configure"
10346/* confdefs.h. */
10347_ACEOF
10348cat confdefs.h >>conftest.$ac_ext
10349cat >>conftest.$ac_ext <<_ACEOF
10350/* end confdefs.h. */
10351#include <stdarg.h>
10352#include <stdio.h>
10353#include <sys/types.h>
10354#include <sys/stat.h>
10355/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10356struct buf { int x; };
10357FILE * (*rcsopen) (struct buf *, struct stat *, int);
10358static char *e (p, i)
10359 char **p;
10360 int i;
10361{
10362 return p[i];
10363}
10364static char *f (char * (*g) (char **, int), char **p, ...)
10365{
10366 char *s;
10367 va_list v;
10368 va_start (v,p);
10369 s = g (p, va_arg (v,int));
10370 va_end (v);
10371 return s;
10372}
10373int test (int i, double x);
10374struct s1 {int (*f) (int a);};
10375struct s2 {int (*f) (double a);};
10376int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10377int argc;
10378char **argv;
10379int
10380main ()
10381{
10382return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10383 ;
10384 return 0;
10385}
10386_ACEOF
10387# Don't try gcc -ansi; that turns off useful extensions and
10388# breaks some systems' header files.
10389# AIX -qlanglvl=ansi
10390# Ultrix and OSF/1 -std1
10391# HP-UX 10.20 and later -Ae
10392# HP-UX older versions -Aa -D_HPUX_SOURCE
10393# SVR4 -Xc -D__EXTENSIONS__
10394for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10395do
10396 CC="$ac_save_CC $ac_arg"
10397 rm -f conftest.$ac_objext
10398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -s conftest.$ac_objext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_prog_cc_stdc=$ac_arg
10410break
10411else
10412 echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415fi
10416rm -f conftest.$ac_objext
10417done
10418rm -f conftest.$ac_ext conftest.$ac_objext
10419CC=$ac_save_CC
10420
10421fi
10422
10423case "x$ac_cv_prog_cc_stdc" in
10424 x|xno)
10425 echo "$as_me:$LINENO: result: none needed" >&5
10426echo "${ECHO_T}none needed" >&6 ;;
10427 *)
10428 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10429echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10430 CC="$CC $ac_cv_prog_cc_stdc" ;;
10431esac
10432
10433# Some people use a C++ compiler to compile C. Since we use `exit',
10434# in C++ we need to declare it. In case someone uses the same compiler
10435# for both compiling C and C++ we need to have the C++ compiler decide
10436# the declaration of exit, since it's the most demanding environment.
10437cat >conftest.$ac_ext <<_ACEOF
10438#ifndef __cplusplus
10439 choke me
10440#endif
10441_ACEOF
10442rm -f conftest.$ac_objext
10443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } &&
10448 { ac_try='test -s conftest.$ac_objext'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10454 for ac_declaration in \
6f628073
VS
10455 ''\
10456 '#include <stdlib.h>' \
e6cc62c6
VS
10457 'extern "C" void std::exit (int) throw (); using std::exit;' \
10458 'extern "C" void std::exit (int); using std::exit;' \
10459 'extern "C" void exit (int) throw ();' \
10460 'extern "C" void exit (int);' \
10461 'void exit (int);'
10462do
10463 cat >conftest.$ac_ext <<_ACEOF
10464#line $LINENO "configure"
10465/* confdefs.h. */
10466_ACEOF
10467cat confdefs.h >>conftest.$ac_ext
10468cat >>conftest.$ac_ext <<_ACEOF
10469/* end confdefs.h. */
71e83a03 10470#include <stdlib.h>
6f628073 10471$ac_declaration
e6cc62c6
VS
10472int
10473main ()
10474{
10475exit (42);
10476 ;
10477 return 0;
10478}
10479_ACEOF
10480rm -f conftest.$ac_objext
10481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482 (eval $ac_compile) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -s conftest.$ac_objext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10489 ac_status=$?
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 :
10493else
10494 echo "$as_me: failed program was:" >&5
10495sed 's/^/| /' conftest.$ac_ext >&5
10496
10497continue
10498fi
10499rm -f conftest.$ac_objext conftest.$ac_ext
10500 cat >conftest.$ac_ext <<_ACEOF
10501#line $LINENO "configure"
10502/* confdefs.h. */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h. */
10507$ac_declaration
10508int
10509main ()
10510{
10511exit (42);
10512 ;
10513 return 0;
10514}
10515_ACEOF
10516rm -f conftest.$ac_objext
10517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518 (eval $ac_compile) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -s conftest.$ac_objext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 break
10529else
10530 echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533fi
10534rm -f conftest.$ac_objext conftest.$ac_ext
10535done
10536rm -f conftest*
10537if test -n "$ac_declaration"; then
10538 echo '#ifdef __cplusplus' >>confdefs.h
10539 echo $ac_declaration >>confdefs.h
10540 echo '#endif' >>confdefs.h
10541fi
10542
10543else
10544 echo "$as_me: failed program was:" >&5
10545sed 's/^/| /' conftest.$ac_ext >&5
10546
10547fi
10548rm -f conftest.$ac_objext conftest.$ac_ext
10549ac_ext=c
10550ac_cpp='$CPP $CPPFLAGS'
10551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10553ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10554
10555
e6cc62c6
VS
10556
10557ac_ext=c
10558ac_cpp='$CPP $CPPFLAGS'
10559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10561ac_compiler_gnu=$ac_cv_c_compiler_gnu
10562echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10563echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10564# On Suns, sometimes $CPP names a directory.
10565if test -n "$CPP" && test -d "$CPP"; then
10566 CPP=
10567fi
10568if test -z "$CPP"; then
e6cc62c6
VS
10569 if test "${ac_cv_prog_CPP+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571else
10572 # Double quotes because CPP needs to be expanded
10573 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10574 do
10575 ac_preproc_ok=false
10576for ac_c_preproc_warn_flag in '' yes
10577do
10578 # Use a header file that comes with gcc, so configuring glibc
10579 # with a fresh cross-compiler works.
10580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10581 # <limits.h> exists even on freestanding compilers.
10f2d63a 10582 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10583 # not just through cpp. "Syntax error" is here to catch this case.
10584 cat >conftest.$ac_ext <<_ACEOF
10585#line $LINENO "configure"
10586/* confdefs.h. */
10587_ACEOF
10588cat confdefs.h >>conftest.$ac_ext
10589cat >>conftest.$ac_ext <<_ACEOF
10590/* end confdefs.h. */
10591#ifdef __STDC__
10592# include <limits.h>
10593#else
10594# include <assert.h>
10595#endif
10596 Syntax error
10597_ACEOF
10598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } >/dev/null; then
10606 if test -s conftest.err; then
10607 ac_cpp_err=$ac_c_preproc_warn_flag
10608 else
10609 ac_cpp_err=
10610 fi
10f2d63a 10611else
e6cc62c6
VS
10612 ac_cpp_err=yes
10613fi
10614if test -z "$ac_cpp_err"; then
a0b9e27f 10615 :
247f5006 10616else
e6cc62c6
VS
10617 echo "$as_me: failed program was:" >&5
10618sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 # Broken: fails on valid input.
10621continue
10622fi
10623rm -f conftest.err conftest.$ac_ext
10624
10625 # OK, works on sane cases. Now check whether non-existent headers
10626 # can be detected and how.
10627 cat >conftest.$ac_ext <<_ACEOF
10628#line $LINENO "configure"
10629/* confdefs.h. */
10630_ACEOF
10631cat confdefs.h >>conftest.$ac_ext
10632cat >>conftest.$ac_ext <<_ACEOF
10633/* end confdefs.h. */
10634#include <ac_nonexistent.h>
10635_ACEOF
10636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } >/dev/null; then
10644 if test -s conftest.err; then
10645 ac_cpp_err=$ac_c_preproc_warn_flag
10646 else
10647 ac_cpp_err=
10648 fi
10f2d63a 10649else
e6cc62c6 10650 ac_cpp_err=yes
579d8138 10651fi
e6cc62c6
VS
10652if test -z "$ac_cpp_err"; then
10653 # Broken: success on invalid input.
10654continue
10655else
10656 echo "$as_me: failed program was:" >&5
10657sed 's/^/| /' conftest.$ac_ext >&5
10658
10659 # Passes both tests.
10660ac_preproc_ok=:
10661break
52127426 10662fi
e6cc62c6
VS
10663rm -f conftest.err conftest.$ac_ext
10664
10665done
10666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10667rm -f conftest.err conftest.$ac_ext
10668if $ac_preproc_ok; then
10669 break
8284b0c5 10670fi
e6cc62c6
VS
10671
10672 done
10673 ac_cv_prog_CPP=$CPP
10674
10675fi
10676 CPP=$ac_cv_prog_CPP
10677else
10678 ac_cv_prog_CPP=$CPP
10679fi
10680echo "$as_me:$LINENO: result: $CPP" >&5
10681echo "${ECHO_T}$CPP" >&6
10682ac_preproc_ok=false
10683for ac_c_preproc_warn_flag in '' yes
10684do
10685 # Use a header file that comes with gcc, so configuring glibc
10686 # with a fresh cross-compiler works.
10687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688 # <limits.h> exists even on freestanding compilers.
10689 # On the NeXT, cc -E runs the code through the compiler's parser,
10690 # not just through cpp. "Syntax error" is here to catch this case.
10691 cat >conftest.$ac_ext <<_ACEOF
10692#line $LINENO "configure"
10693/* confdefs.h. */
10694_ACEOF
10695cat confdefs.h >>conftest.$ac_ext
10696cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */
10698#ifdef __STDC__
10699# include <limits.h>
10700#else
10701# include <assert.h>
10702#endif
10703 Syntax error
10704_ACEOF
10705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } >/dev/null; then
10713 if test -s conftest.err; then
10714 ac_cpp_err=$ac_c_preproc_warn_flag
10715 else
10716 ac_cpp_err=
10717 fi
10718else
10719 ac_cpp_err=yes
10720fi
10721if test -z "$ac_cpp_err"; then
10722 :
10723else
10724 echo "$as_me: failed program was:" >&5
10725sed 's/^/| /' conftest.$ac_ext >&5
10726
10727 # Broken: fails on valid input.
10728continue
10729fi
10730rm -f conftest.err conftest.$ac_ext
10731
10732 # OK, works on sane cases. Now check whether non-existent headers
10733 # can be detected and how.
10734 cat >conftest.$ac_ext <<_ACEOF
10735#line $LINENO "configure"
10736/* confdefs.h. */
10737_ACEOF
10738cat confdefs.h >>conftest.$ac_ext
10739cat >>conftest.$ac_ext <<_ACEOF
10740/* end confdefs.h. */
10741#include <ac_nonexistent.h>
10742_ACEOF
10743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } >/dev/null; then
10751 if test -s conftest.err; then
10752 ac_cpp_err=$ac_c_preproc_warn_flag
10753 else
10754 ac_cpp_err=
10755 fi
10756else
10757 ac_cpp_err=yes
10758fi
10759if test -z "$ac_cpp_err"; then
10760 # Broken: success on invalid input.
10761continue
10762else
10763 echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 # Passes both tests.
10767ac_preproc_ok=:
10768break
a0b9e27f 10769fi
e6cc62c6
VS
10770rm -f conftest.err conftest.$ac_ext
10771
10772done
10773# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10774rm -f conftest.err conftest.$ac_ext
10775if $ac_preproc_ok; then
10776 :
10777else
10778 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10779See \`config.log' for more details." >&5
10780echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10781See \`config.log' for more details." >&2;}
10782 { (exit 1); exit 1; }; }
10783fi
10784
10785ac_ext=c
10786ac_cpp='$CPP $CPPFLAGS'
10787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10789ac_compiler_gnu=$ac_cv_c_compiler_gnu
10790
10791
10792echo "$as_me:$LINENO: checking for egrep" >&5
10793echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10794if test "${ac_cv_prog_egrep+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10796else
e6cc62c6
VS
10797 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10798 then ac_cv_prog_egrep='grep -E'
10799 else ac_cv_prog_egrep='egrep'
10800 fi
10f2d63a 10801fi
e6cc62c6
VS
10802echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10803echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10804 EGREP=$ac_cv_prog_egrep
10805
10f2d63a 10806
e6cc62c6
VS
10807if test $ac_cv_c_compiler_gnu = yes; then
10808 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10809echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10810if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10812else
10813 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10814 cat >conftest.$ac_ext <<_ACEOF
10815#line $LINENO "configure"
10816/* confdefs.h. */
10817_ACEOF
10818cat confdefs.h >>conftest.$ac_ext
10819cat >>conftest.$ac_ext <<_ACEOF
10820/* end confdefs.h. */
10f2d63a
VZ
10821#include <sgtty.h>
10822Autoconf TIOCGETP
e6cc62c6 10823_ACEOF
10f2d63a 10824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10825 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10826 ac_cv_prog_gcc_traditional=yes
10827else
10f2d63a
VZ
10828 ac_cv_prog_gcc_traditional=no
10829fi
10830rm -f conftest*
10831
8284b0c5 10832
10f2d63a 10833 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10834 cat >conftest.$ac_ext <<_ACEOF
10835#line $LINENO "configure"
10836/* confdefs.h. */
10837_ACEOF
10838cat confdefs.h >>conftest.$ac_ext
10839cat >>conftest.$ac_ext <<_ACEOF
10840/* end confdefs.h. */
10f2d63a
VZ
10841#include <termio.h>
10842Autoconf TCGETA
e6cc62c6 10843_ACEOF
10f2d63a 10844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10845 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10846 ac_cv_prog_gcc_traditional=yes
10847fi
10848rm -f conftest*
10849
10850 fi
10851fi
e6cc62c6
VS
10852echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10853echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10854 if test $ac_cv_prog_gcc_traditional = yes; then
10855 CC="$CC -traditional"
10856 fi
10857fi
10858
8284b0c5
MB
10859
10860
e6cc62c6
VS
10861
10862ac_ext=cc
1e487827 10863ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10867
698dcdb6 10868
ec603395 10869CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10870ac_ext=cc
10871ac_cpp='$CXXCPP $CPPFLAGS'
10872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10875if test -n "$ac_tool_prefix"; then
10876 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10877 do
10878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10880echo "$as_me:$LINENO: checking for $ac_word" >&5
10881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10882if test "${ac_cv_prog_CXX+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10884else
10885 if test -n "$CXX"; then
10886 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10887else
e6cc62c6
VS
10888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889for as_dir in $PATH
10890do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899done
10900done
10901
10f2d63a
VZ
10902fi
10903fi
e6cc62c6 10904CXX=$ac_cv_prog_CXX
10f2d63a 10905if test -n "$CXX"; then
e6cc62c6
VS
10906 echo "$as_me:$LINENO: result: $CXX" >&5
10907echo "${ECHO_T}$CXX" >&6
10f2d63a 10908else
e6cc62c6
VS
10909 echo "$as_me:$LINENO: result: no" >&5
10910echo "${ECHO_T}no" >&6
10f2d63a
VZ
10911fi
10912
e6cc62c6
VS
10913 test -n "$CXX" && break
10914 done
10915fi
10916if test -z "$CXX"; then
10917 ac_ct_CXX=$CXX
10918 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10919do
10920 # Extract the first word of "$ac_prog", so it can be a program name with args.
10921set dummy $ac_prog; ac_word=$2
10922echo "$as_me:$LINENO: checking for $ac_word" >&5
10923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10924if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926else
10927 if test -n "$ac_ct_CXX"; then
10928 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10929else
10930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $PATH
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10937 ac_cv_prog_ac_ct_CXX="$ac_prog"
10938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10940 fi
10941done
10f2d63a 10942done
a0b9e27f 10943
8284b0c5 10944fi
a0b9e27f 10945fi
e6cc62c6
VS
10946ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10947if test -n "$ac_ct_CXX"; then
10948 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10949echo "${ECHO_T}$ac_ct_CXX" >&6
10950else
10951 echo "$as_me:$LINENO: result: no" >&5
10952echo "${ECHO_T}no" >&6
a0b9e27f 10953fi
10f2d63a 10954
e6cc62c6
VS
10955 test -n "$ac_ct_CXX" && break
10956done
10957test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10958
10959 CXX=$ac_ct_CXX
10960fi
10961
10962
10963# Provide some information about the compiler.
10964echo "$as_me:$LINENO:" \
10965 "checking for C++ compiler version" >&5
10966ac_compiler=`set X $ac_compile; echo $2`
10967{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10968 (eval $ac_compiler --version </dev/null >&5) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }
10972{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10973 (eval $ac_compiler -v </dev/null >&5) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }
10977{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10978 (eval $ac_compiler -V </dev/null >&5) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }
10982
10983echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10984echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10985if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988 cat >conftest.$ac_ext <<_ACEOF
10989#line $LINENO "configure"
10990/* confdefs.h. */
10991_ACEOF
10992cat confdefs.h >>conftest.$ac_ext
10993cat >>conftest.$ac_ext <<_ACEOF
10994/* end confdefs.h. */
10995
10996int
10997main ()
10998{
10999#ifndef __GNUC__
11000 choke me
11001#endif
10f2d63a 11002
e6cc62c6
VS
11003 ;
11004 return 0;
11005}
11006_ACEOF
11007rm -f conftest.$ac_objext
11008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009 (eval $ac_compile) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -s conftest.$ac_objext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_compiler_gnu=yes
11020else
11021 echo "$as_me: failed program was:" >&5
11022sed 's/^/| /' conftest.$ac_ext >&5
11023
11024ac_compiler_gnu=no
11025fi
11026rm -f conftest.$ac_objext conftest.$ac_ext
11027ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11028
11029fi
11030echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11031echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11032GXX=`test $ac_compiler_gnu = yes && echo yes`
11033ac_test_CXXFLAGS=${CXXFLAGS+set}
11034ac_save_CXXFLAGS=$CXXFLAGS
11035CXXFLAGS="-g"
11036echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11037echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11038if test "${ac_cv_prog_cxx_g+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11040else
11041 cat >conftest.$ac_ext <<_ACEOF
11042#line $LINENO "configure"
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048
11049int
11050main ()
11051{
f09359cf 11052
e6cc62c6
VS
11053 ;
11054 return 0;
11055}
11056_ACEOF
11057rm -f conftest.$ac_objext
11058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11059 (eval $ac_compile) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } &&
11063 { ac_try='test -s conftest.$ac_objext'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }; then
10f2d63a
VZ
11069 ac_cv_prog_cxx_g=yes
11070else
e6cc62c6
VS
11071 echo "$as_me: failed program was:" >&5
11072sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11073
e6cc62c6 11074ac_cv_prog_cxx_g=no
10f2d63a 11075fi
e6cc62c6
VS
11076rm -f conftest.$ac_objext conftest.$ac_ext
11077fi
11078echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11079echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11080if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11081 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11082elif test $ac_cv_prog_cxx_g = yes; then
11083 if test "$GXX" = yes; then
10f2d63a
VZ
11084 CXXFLAGS="-g -O2"
11085 else
f09359cf 11086 CXXFLAGS="-g"
10f2d63a 11087 fi
5c0a20c3 11088else
f09359cf
VS
11089 if test "$GXX" = yes; then
11090 CXXFLAGS="-O2"
11091 else
11092 CXXFLAGS=
11093 fi
10f2d63a 11094fi
e6cc62c6 11095for ac_declaration in \
6f628073
VS
11096 ''\
11097 '#include <stdlib.h>' \
e6cc62c6
VS
11098 'extern "C" void std::exit (int) throw (); using std::exit;' \
11099 'extern "C" void std::exit (int); using std::exit;' \
11100 'extern "C" void exit (int) throw ();' \
11101 'extern "C" void exit (int);' \
11102 'void exit (int);'
11103do
11104 cat >conftest.$ac_ext <<_ACEOF
11105#line $LINENO "configure"
11106/* confdefs.h. */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h. */
71e83a03 11111#include <stdlib.h>
6f628073 11112$ac_declaration
e6cc62c6
VS
11113int
11114main ()
11115{
11116exit (42);
11117 ;
11118 return 0;
11119}
11120_ACEOF
11121rm -f conftest.$ac_objext
11122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 (eval $ac_compile) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
11127 { ac_try='test -s conftest.$ac_objext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 :
11134else
11135 echo "$as_me: failed program was:" >&5
11136sed 's/^/| /' conftest.$ac_ext >&5
11137
11138continue
11139fi
11140rm -f conftest.$ac_objext conftest.$ac_ext
11141 cat >conftest.$ac_ext <<_ACEOF
11142#line $LINENO "configure"
11143/* confdefs.h. */
11144_ACEOF
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h. */
11148$ac_declaration
11149int
11150main ()
11151{
11152exit (42);
11153 ;
11154 return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -s conftest.$ac_objext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 break
11170else
11171 echo "$as_me: failed program was:" >&5
11172sed 's/^/| /' conftest.$ac_ext >&5
11173
11174fi
11175rm -f conftest.$ac_objext conftest.$ac_ext
11176done
11177rm -f conftest*
11178if test -n "$ac_declaration"; then
11179 echo '#ifdef __cplusplus' >>confdefs.h
11180 echo $ac_declaration >>confdefs.h
11181 echo '#endif' >>confdefs.h
11182fi
11183
11184ac_ext=cc
11185ac_cpp='$CXXCPP $CPPFLAGS'
11186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11189
11190
10f2d63a 11191ac_ext=c
10f2d63a 11192ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11195ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11196
11197
e6cc62c6
VS
11198if test -n "$ac_tool_prefix"; then
11199 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11200set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11201echo "$as_me:$LINENO: checking for $ac_word" >&5
11202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11203if test "${ac_cv_prog_RANLIB+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11205else
11206 if test -n "$RANLIB"; then
11207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11208else
e6cc62c6
VS
11209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210for as_dir in $PATH
11211do
11212 IFS=$as_save_IFS
11213 test -z "$as_dir" && as_dir=.
11214 for ac_exec_ext in '' $ac_executable_extensions; do
11215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11216 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 break 2
11219 fi
11220done
11221done
11222
10f2d63a
VZ
11223fi
11224fi
e6cc62c6 11225RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11226if test -n "$RANLIB"; then
e6cc62c6
VS
11227 echo "$as_me:$LINENO: result: $RANLIB" >&5
11228echo "${ECHO_T}$RANLIB" >&6
11229else
11230 echo "$as_me:$LINENO: result: no" >&5
11231echo "${ECHO_T}no" >&6
11232fi
11233
11234fi
11235if test -z "$ac_cv_prog_RANLIB"; then
11236 ac_ct_RANLIB=$RANLIB
11237 # Extract the first word of "ranlib", so it can be a program name with args.
11238set dummy ranlib; ac_word=$2
11239echo "$as_me:$LINENO: checking for $ac_word" >&5
11240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11241if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11243else
e6cc62c6
VS
11244 if test -n "$ac_ct_RANLIB"; then
11245 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11246else
11247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248for as_dir in $PATH
11249do
11250 IFS=$as_save_IFS
11251 test -z "$as_dir" && as_dir=.
11252 for ac_exec_ext in '' $ac_executable_extensions; do
11253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11254 ac_cv_prog_ac_ct_RANLIB="ranlib"
11255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 break 2
11257 fi
11258done
11259done
11260
11261 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11262fi
11263fi
11264ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11265if test -n "$ac_ct_RANLIB"; then
11266 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11267echo "${ECHO_T}$ac_ct_RANLIB" >&6
11268else
11269 echo "$as_me:$LINENO: result: no" >&5
11270echo "${ECHO_T}no" >&6
11271fi
11272
11273 RANLIB=$ac_ct_RANLIB
11274else
11275 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11276fi
11277
10f2d63a
VZ
11278
11279# Extract the first word of "ar", so it can be a program name with args.
11280set dummy ar; ac_word=$2
e6cc62c6
VS
11281echo "$as_me:$LINENO: checking for $ac_word" >&5
11282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11283if test "${ac_cv_prog_AR+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11285else
11286 if test -n "$AR"; then
11287 ac_cv_prog_AR="$AR" # Let the user override the test.
11288else
e6cc62c6
VS
11289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $PATH
11291do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11296 ac_cv_prog_AR="ar"
11297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11299 fi
11300done
11301done
11302
10f2d63a
VZ
11303 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11304fi
11305fi
e6cc62c6 11306AR=$ac_cv_prog_AR
10f2d63a 11307if test -n "$AR"; then
e6cc62c6
VS
11308 echo "$as_me:$LINENO: result: $AR" >&5
11309echo "${ECHO_T}$AR" >&6
10f2d63a 11310else
e6cc62c6
VS
11311 echo "$as_me:$LINENO: result: no" >&5
11312echo "${ECHO_T}no" >&6
10f2d63a
VZ
11313fi
11314
8284b0c5 11315
6054113a 11316# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11317# so one script is as good as another. But avoid the broken or
11318# incompatible versions:
11319# SysV /etc/install, /usr/sbin/install
11320# SunOS /usr/etc/install
11321# IRIX /sbin/install
11322# AIX /bin/install
e6cc62c6 11323# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11324# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11325# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11326# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11327# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11328echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11329echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11330if test -z "$INSTALL"; then
e6cc62c6
VS
11331if test "${ac_cv_path_install+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333else
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335for as_dir in $PATH
11336do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 # Account for people who put trailing slashes in PATH elements.
11340case $as_dir/ in
11341 ./ | .// | /cC/* | \
11342 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11343 /usr/ucb/* ) ;;
11344 *)
11345 # OSF1 and SCO ODT 3.0 have their own names for install.
11346 # Don't use installbsd from OSF since it installs stuff as root
11347 # by default.
11348 for ac_prog in ginstall scoinst install; do
11349 for ac_exec_ext in '' $ac_executable_extensions; do
11350 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11351 if test $ac_prog = install &&
11352 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11353 # AIX install. It has an incompatible calling convention.
11354 :
11355 elif test $ac_prog = install &&
11356 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11357 # program-specific install script used by HP pwplus--don't use.
11358 :
11359 else
11360 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11361 break 3
11362 fi
11363 fi
10f2d63a 11364 done
e6cc62c6
VS
11365 done
11366 ;;
11367esac
11368done
11369
10f2d63a
VZ
11370
11371fi
11372 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11373 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11374 else
11375 # As a last resort, use the slow shell script. We don't cache a
11376 # path for INSTALL within a source directory, because that will
11377 # break other packages using the cache if that directory is
11378 # removed, or if the path is relative.
e6cc62c6 11379 INSTALL=$ac_install_sh
10f2d63a
VZ
11380 fi
11381fi
e6cc62c6
VS
11382echo "$as_me:$LINENO: result: $INSTALL" >&5
11383echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11384
11385# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11386# It thinks the first close brace ends the variable substitution.
11387test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11388
e6cc62c6 11389test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11390
10f2d63a
VZ
11391test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11392
8284b0c5 11393
1d1b75ac
VZ
11394case ${INSTALL} in
11395 /* ) # Absolute
11396 ;;
4f5a7f74
VZ
11397 ?:* ) # Drive letter, considered as absolute.
11398 ;;
3bd8fb5f 11399 *)
1d1b75ac
VZ
11400 INSTALL=`pwd`/${INSTALL} ;;
11401esac
11402
4f5a7f74
VZ
11403case ${host} in
11404 *-hp-hpux* )
11405 INSTALL_DIR="mkdir"
11406 ;;
11407
11408 *) INSTALL_DIR="$INSTALL -d"
11409 ;;
11410esac
11411
8284b0c5 11412
6054113a
GD
11413case "${host}" in
11414
b5853384 11415 powerpc-*-darwin* )
eb99ae0b
GD
11416 INSTALL_PROGRAM="cp -fp"
11417 INSTALL_DATA="cp -fp"
6054113a
GD
11418 ;;
11419 *)
11420 ;;
d6853540 11421esac
698dcdb6 11422
10f2d63a
VZ
11423# Extract the first word of "strip", so it can be a program name with args.
11424set dummy strip; ac_word=$2
e6cc62c6
VS
11425echo "$as_me:$LINENO: checking for $ac_word" >&5
11426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11427if test "${ac_cv_prog_STRIP+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11429else
11430 if test -n "$STRIP"; then
11431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11432else
e6cc62c6
VS
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_prog_STRIP="strip"
11441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444done
11445done
11446
10f2d63a
VZ
11447 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11448fi
11449fi
e6cc62c6 11450STRIP=$ac_cv_prog_STRIP
10f2d63a 11451if test -n "$STRIP"; then
e6cc62c6
VS
11452 echo "$as_me:$LINENO: result: $STRIP" >&5
11453echo "${ECHO_T}$STRIP" >&6
10f2d63a 11454else
e6cc62c6
VS
11455 echo "$as_me:$LINENO: result: no" >&5
11456echo "${ECHO_T}no" >&6
10f2d63a
VZ
11457fi
11458
5c6fa7d2 11459
e6cc62c6
VS
11460echo "$as_me:$LINENO: checking if make is GNU make" >&5
11461echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11462if test "${wx_cv_prog_makeisgnu+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11464else
e6cc62c6 11465
414eab6d 11466 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11467 egrep -s GNU > /dev/null); then
414eab6d
VZ
11468 wx_cv_prog_makeisgnu="yes"
11469 else
11470 wx_cv_prog_makeisgnu="no"
11471 fi
11472
11473fi
e6cc62c6
VS
11474echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11475echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11476
11477if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11478 IF_GNU_MAKE=""
11479else
11480 IF_GNU_MAKE="#"
11481fi
11482
8284b0c5
MB
11483
11484
414eab6d 11485if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11486echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11487echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11488if test "${wx_cv_prog_makevpath+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11490else
e6cc62c6 11491
10f2d63a
VZ
11492cat - << EOF > confMake
11493check : file
11494 cp \$? \$@
11495 cp \$? final_file
11496EOF
11497
11498if test ! -d sub ; then
11499 mkdir sub
11500fi
11501echo dummy > sub/file
f6bcfd97 11502${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11503RESULT=$?
11504rm -f sub/file check final_file confMake
11505rmdir sub
11506if test "$RESULT" = 0; then
04e7a216 11507 wx_cv_prog_makevpath="yes"
10f2d63a 11508else
04e7a216
VZ
11509 wx_cv_prog_makevpath="no"
11510fi
11511
11512fi
e6cc62c6
VS
11513echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11514echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11515
11516if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11517{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11518You need a make-utility that is able to use the variable
11519VPATH correctly.
11520If your version of make does not support VPATH correctly,
11521please install GNU-make (possibly as gmake), and start
11522configure with the following command:
11523export MAKE=gmake; ./configure for sh-type shells
11524setenv MAKE gmake; ./configure for csh-type shells
11525Also please do remember to use gmake in this case every time
11526you are trying to compile.
e6cc62c6
VS
11527" >&5
11528echo "$as_me: error:
11529You need a make-utility that is able to use the variable
11530VPATH correctly.
11531If your version of make does not support VPATH correctly,
11532please install GNU-make (possibly as gmake), and start
11533configure with the following command:
11534export MAKE=gmake; ./configure for sh-type shells
11535setenv MAKE gmake; ./configure for csh-type shells
11536Also please do remember to use gmake in this case every time
11537you are trying to compile.
11538" >&2;}
11539 { (exit 1); exit 1; }; }
11540fi fi
10f2d63a
VZ
11541for ac_prog in 'bison -y' byacc
11542do
e6cc62c6 11543 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11544set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11545echo "$as_me:$LINENO: checking for $ac_word" >&5
11546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11547if test "${ac_cv_prog_YACC+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11549else
11550 if test -n "$YACC"; then
11551 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11552else
e6cc62c6
VS
11553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554for as_dir in $PATH
11555do
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560 ac_cv_prog_YACC="$ac_prog"
11561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11563 fi
11564done
11565done
11566
10f2d63a
VZ
11567fi
11568fi
e6cc62c6 11569YACC=$ac_cv_prog_YACC
10f2d63a 11570if test -n "$YACC"; then
e6cc62c6
VS
11571 echo "$as_me:$LINENO: result: $YACC" >&5
11572echo "${ECHO_T}$YACC" >&6
10f2d63a 11573else
e6cc62c6
VS
11574 echo "$as_me:$LINENO: result: no" >&5
11575echo "${ECHO_T}no" >&6
10f2d63a
VZ
11576fi
11577
e6cc62c6 11578 test -n "$YACC" && break
10f2d63a
VZ
11579done
11580test -n "$YACC" || YACC="yacc"
11581
8284b0c5 11582
e6cc62c6
VS
11583for ac_prog in flex lex
11584do
11585 # Extract the first word of "$ac_prog", so it can be a program name with args.
11586set dummy $ac_prog; ac_word=$2
11587echo "$as_me:$LINENO: checking for $ac_word" >&5
11588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11589if test "${ac_cv_prog_LEX+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11591else
11592 if test -n "$LEX"; then
11593 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11594else
e6cc62c6
VS
11595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596for as_dir in $PATH
11597do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 ac_cv_prog_LEX="$ac_prog"
11603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11605 fi
11606done
11607done
11608
10f2d63a
VZ
11609fi
11610fi
e6cc62c6 11611LEX=$ac_cv_prog_LEX
10f2d63a 11612if test -n "$LEX"; then
e6cc62c6
VS
11613 echo "$as_me:$LINENO: result: $LEX" >&5
11614echo "${ECHO_T}$LEX" >&6
10f2d63a 11615else
e6cc62c6
VS
11616 echo "$as_me:$LINENO: result: no" >&5
11617echo "${ECHO_T}no" >&6
10f2d63a
VZ
11618fi
11619
e6cc62c6
VS
11620 test -n "$LEX" && break
11621done
11622test -n "$LEX" || LEX=":"
11623
10f2d63a
VZ
11624if test -z "$LEXLIB"
11625then
e6cc62c6
VS
11626 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11627echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11628if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631 ac_check_lib_save_LIBS=$LIBS
11632LIBS="-lfl $LIBS"
11633cat >conftest.$ac_ext <<_ACEOF
11634#line $LINENO "configure"
11635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
11640
11641/* Override any gcc2 internal prototype to avoid an error. */
11642#ifdef __cplusplus
11643extern "C"
11644#endif
11645/* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11647char yywrap ();
11648int
11649main ()
11650{
11651yywrap ();
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656rm -f conftest.$ac_objext conftest$ac_exeext
11657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_lib_fl_yywrap=yes
11669else
11670 echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673ac_cv_lib_fl_yywrap=no
11674fi
11675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11676LIBS=$ac_check_lib_save_LIBS
11677fi
11678echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11679echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11680if test $ac_cv_lib_fl_yywrap = yes; then
11681 LEXLIB="-lfl"
11682else
11683 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11684echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11685if test "${ac_cv_lib_l_yywrap+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687else
11688 ac_check_lib_save_LIBS=$LIBS
11689LIBS="-ll $LIBS"
11690cat >conftest.$ac_ext <<_ACEOF
11691#line $LINENO "configure"
11692/* confdefs.h. */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */
11697
247f5006 11698/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11699#ifdef __cplusplus
11700extern "C"
11701#endif
247f5006 11702/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11703 builtin and then its argument prototype would still apply. */
11704char yywrap ();
11705int
11706main ()
11707{
11708yywrap ();
11709 ;
11710 return 0;
11711}
11712_ACEOF
11713rm -f conftest.$ac_objext conftest$ac_exeext
11714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11715 (eval $ac_link) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -s conftest$ac_exeext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 ac_cv_lib_l_yywrap=yes
11726else
11727 echo "$as_me: failed program was:" >&5
11728sed 's/^/| /' conftest.$ac_ext >&5
11729
11730ac_cv_lib_l_yywrap=no
11731fi
11732rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11733LIBS=$ac_check_lib_save_LIBS
11734fi
11735echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11736echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11737if test $ac_cv_lib_l_yywrap = yes; then
11738 LEXLIB="-ll"
11739fi
10f2d63a 11740
10f2d63a 11741fi
8284b0c5 11742
10f2d63a 11743fi
e6cc62c6
VS
11744
11745if test "x$LEX" != "x:"; then
11746 echo "$as_me:$LINENO: checking lex output file root" >&5
11747echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11748if test "${ac_cv_prog_lex_root+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750else
11751 # The minimal lex program is just a single line: %%. But some broken lexes
11752# (Solaris, I think it was) want two %% lines, so accommodate them.
11753cat >conftest.l <<_ACEOF
11754%%
11755%%
11756_ACEOF
11757{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11758 (eval $LEX conftest.l) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }
11762if test -f lex.yy.c; then
11763 ac_cv_prog_lex_root=lex.yy
11764elif test -f lexyy.c; then
11765 ac_cv_prog_lex_root=lexyy
8284b0c5 11766else
e6cc62c6
VS
11767 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11768echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11769 { (exit 1); exit 1; }; }
10f2d63a 11770fi
a0b9e27f 11771fi
e6cc62c6
VS
11772echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11773echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11774rm -f conftest.l
11775LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11776
e6cc62c6
VS
11777echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11778echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11779if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11781else
e6cc62c6
VS
11782 # POSIX says lex can declare yytext either as a pointer or an array; the
11783# default is implementation-dependent. Figure out which it is, since
11784# not all implementations provide the %pointer and %array declarations.
11785ac_cv_prog_lex_yytext_pointer=no
11786echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11787ac_save_LIBS=$LIBS
11788LIBS="$LIBS $LEXLIB"
11789cat >conftest.$ac_ext <<_ACEOF
11790`cat $LEX_OUTPUT_ROOT.c`
11791_ACEOF
11792rm -f conftest.$ac_objext conftest$ac_exeext
11793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11794 (eval $ac_link) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -s conftest$ac_exeext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11805else
e6cc62c6
VS
11806 echo "$as_me: failed program was:" >&5
11807sed 's/^/| /' conftest.$ac_ext >&5
11808
10f2d63a 11809fi
e6cc62c6
VS
11810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11811LIBS=$ac_save_LIBS
11812rm -f "${LEX_OUTPUT_ROOT}.c"
11813
11814fi
11815echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11816echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11817if test $ac_cv_prog_lex_yytext_pointer = yes; then
11818
11819cat >>confdefs.h <<\_ACEOF
11820#define YYTEXT_POINTER 1
11821_ACEOF
11822
a0b9e27f 11823fi
e6cc62c6
VS
11824
11825fi
11826
11827echo "$as_me:$LINENO: checking whether ln -s works" >&5
11828echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11829LN_S=$as_ln_s
11830if test "$LN_S" = "ln -s"; then
11831 echo "$as_me:$LINENO: result: yes" >&5
11832echo "${ECHO_T}yes" >&6
10f2d63a 11833else
e6cc62c6
VS
11834 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11835echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11836fi
5c6fa7d2 11837
247f5006 11838
2b5f62a0
VZ
11839case "${host}" in
11840 *-pc-os2_emx | *-pc-os2-emx )
11841 LIBS="$LIBS -lstdcpp"
11842 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11843 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11844echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11845if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11847else
e6cc62c6 11848 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11849LIBS="-lcExt $LIBS"
e6cc62c6
VS
11850cat >conftest.$ac_ext <<_ACEOF
11851#line $LINENO "configure"
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
11857
2b5f62a0 11858/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11859#ifdef __cplusplus
11860extern "C"
11861#endif
2b5f62a0 11862/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11863 builtin and then its argument prototype would still apply. */
11864char drand48 ();
11865int
11866main ()
11867{
11868drand48 ();
11869 ;
11870 return 0;
11871}
11872_ACEOF
11873rm -f conftest.$ac_objext conftest$ac_exeext
11874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11875 (eval $ac_link) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } &&
11879 { ac_try='test -s conftest$ac_exeext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 ac_cv_lib_cExt_drand48=yes
11886else
11887 echo "$as_me: failed program was:" >&5
11888sed 's/^/| /' conftest.$ac_ext >&5
11889
11890ac_cv_lib_cExt_drand48=no
11891fi
11892rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11893LIBS=$ac_check_lib_save_LIBS
11894fi
11895echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11896echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11897if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11898 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11899fi
11900
11901 else
11902 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11903 fi
11904 ;;
11905esac
11906
a0b9e27f 11907
01aa5863
VS
11908if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11909 echo "$as_me:$LINENO: checking for strings.h" >&5
11910echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11911if test "${ac_cv_header_strings_h+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913else
11914 ac_cv_header_strings_h=no
11915fi
11916echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11917echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11918 if test "$ac_cv_header_strings_h" = "no"; then
11919 echo "$as_me:$LINENO: result: forced no into cache" >&5
11920echo "${ECHO_T}forced no into cache" >&6
11921 else
11922 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11923echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11924 fi
11925fi
11926echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11927echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11928if test "${ac_cv_header_stdc+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930else
11931 cat >conftest.$ac_ext <<_ACEOF
11932#line $LINENO "configure"
11933/* confdefs.h. */
11934_ACEOF
11935cat confdefs.h >>conftest.$ac_ext
11936cat >>conftest.$ac_ext <<_ACEOF
11937/* end confdefs.h. */
11938#include <stdlib.h>
11939#include <stdarg.h>
11940#include <string.h>
11941#include <float.h>
247f5006 11942
e6cc62c6
VS
11943int
11944main ()
11945{
90dd450c 11946
e6cc62c6
VS
11947 ;
11948 return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext
11952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -s conftest.$ac_objext'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 ac_cv_header_stdc=yes
8284b0c5 11964else
e6cc62c6
VS
11965 echo "$as_me: failed program was:" >&5
11966sed 's/^/| /' conftest.$ac_ext >&5
11967
11968ac_cv_header_stdc=no
21d1c967 11969fi
e6cc62c6 11970rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11971
e6cc62c6
VS
11972if test $ac_cv_header_stdc = yes; then
11973 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11974 cat >conftest.$ac_ext <<_ACEOF
11975#line $LINENO "configure"
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
11981#include <string.h>
11982
11983_ACEOF
11984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11985 $EGREP "memchr" >/dev/null 2>&1; then
11986 :
11987else
11988 ac_cv_header_stdc=no
3a922bb4 11989fi
a0b9e27f 11990rm -f conftest*
e6cc62c6 11991
90dd450c 11992fi
e6cc62c6
VS
11993
11994if test $ac_cv_header_stdc = yes; then
11995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11996 cat >conftest.$ac_ext <<_ACEOF
11997#line $LINENO "configure"
11998/* confdefs.h. */
11999_ACEOF
12000cat confdefs.h >>conftest.$ac_ext
12001cat >>conftest.$ac_ext <<_ACEOF
12002/* end confdefs.h. */
12003#include <stdlib.h>
12004
12005_ACEOF
12006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12007 $EGREP "free" >/dev/null 2>&1; then
12008 :
a0b9e27f 12009else
e6cc62c6 12010 ac_cv_header_stdc=no
21d1c967 12011fi
e6cc62c6 12012rm -f conftest*
247f5006
VZ
12013
12014fi
e6cc62c6
VS
12015
12016if test $ac_cv_header_stdc = yes; then
12017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12018 if test "$cross_compiling" = yes; then
12019 :
12020else
12021 cat >conftest.$ac_ext <<_ACEOF
12022#line $LINENO "configure"
12023/* confdefs.h. */
12024_ACEOF
12025cat confdefs.h >>conftest.$ac_ext
12026cat >>conftest.$ac_ext <<_ACEOF
12027/* end confdefs.h. */
12028#include <ctype.h>
12029#if ((' ' & 0x0FF) == 0x020)
12030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12032#else
12033# define ISLOWER(c) \
12034 (('a' <= (c) && (c) <= 'i') \
12035 || ('j' <= (c) && (c) <= 'r') \
12036 || ('s' <= (c) && (c) <= 'z'))
12037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12038#endif
12039
12040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12041int
12042main ()
12043{
12044 int i;
12045 for (i = 0; i < 256; i++)
12046 if (XOR (islower (i), ISLOWER (i))
12047 || toupper (i) != TOUPPER (i))
12048 exit(2);
12049 exit (0);
12050}
12051_ACEOF
12052rm -f conftest$ac_exeext
12053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054 (eval $ac_link) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 :
a0b9e27f 12064else
e6cc62c6
VS
12065 echo "$as_me: program exited with status $ac_status" >&5
12066echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
12069( exit $ac_status )
12070ac_cv_header_stdc=no
12071fi
12072rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12073fi
12074fi
12075fi
12076echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12077echo "${ECHO_T}$ac_cv_header_stdc" >&6
12078if test $ac_cv_header_stdc = yes; then
12079
12080cat >>confdefs.h <<\_ACEOF
12081#define STDC_HEADERS 1
12082_ACEOF
12083
a0b9e27f 12084fi
e6cc62c6
VS
12085
12086# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12097 inttypes.h stdint.h unistd.h
12098do
12099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12100echo "$as_me:$LINENO: checking for $ac_header" >&5
12101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12102if eval "test \"\${$as_ac_Header+set}\" = set"; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105 cat >conftest.$ac_ext <<_ACEOF
12106#line $LINENO "configure"
12107/* confdefs.h. */
12108_ACEOF
12109cat confdefs.h >>conftest.$ac_ext
12110cat >>conftest.$ac_ext <<_ACEOF
12111/* end confdefs.h. */
12112$ac_includes_default
12113
12114#include <$ac_header>
12115_ACEOF
12116rm -f conftest.$ac_objext
12117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118 (eval $ac_compile) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -s conftest.$ac_objext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 eval "$as_ac_Header=yes"
12129else
12130 echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133eval "$as_ac_Header=no"
12134fi
12135rm -f conftest.$ac_objext conftest.$ac_ext
12136fi
12137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12139if test `eval echo '${'$as_ac_Header'}'` = yes; then
12140 cat >>confdefs.h <<_ACEOF
12141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12142_ACEOF
12143
12144fi
12145
a0b9e27f 12146done
90dd450c 12147
e6cc62c6
VS
12148
12149
12150for ac_header in strings.h
21d1c967 12151do
e6cc62c6
VS
12152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12153if eval "test \"\${$as_ac_Header+set}\" = set"; then
12154 echo "$as_me:$LINENO: checking for $ac_header" >&5
12155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12156if eval "test \"\${$as_ac_Header+set}\" = set"; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158fi
12159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12161else
12162 # Is the header compilable?
12163echo "$as_me:$LINENO: checking $ac_header usability" >&5
12164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12165cat >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#include <$ac_header>
12174_ACEOF
12175rm -f conftest.$ac_objext
12176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12177 (eval $ac_compile) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -s conftest.$ac_objext'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; }; then
12187 ac_header_compiler=yes
12188else
12189 echo "$as_me: failed program was:" >&5
12190sed 's/^/| /' conftest.$ac_ext >&5
12191
12192ac_header_compiler=no
12193fi
12194rm -f conftest.$ac_objext conftest.$ac_ext
12195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12196echo "${ECHO_T}$ac_header_compiler" >&6
12197
12198# Is the header present?
12199echo "$as_me:$LINENO: checking $ac_header presence" >&5
12200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12201cat >conftest.$ac_ext <<_ACEOF
12202#line $LINENO "configure"
12203/* confdefs.h. */
12204_ACEOF
12205cat confdefs.h >>conftest.$ac_ext
12206cat >>conftest.$ac_ext <<_ACEOF
12207/* end confdefs.h. */
12208#include <$ac_header>
12209_ACEOF
12210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } >/dev/null; then
12218 if test -s conftest.err; then
12219 ac_cpp_err=$ac_c_preproc_warn_flag
12220 else
12221 ac_cpp_err=
12222 fi
12223else
12224 ac_cpp_err=yes
12225fi
12226if test -z "$ac_cpp_err"; then
12227 ac_header_preproc=yes
12228else
12229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 ac_header_preproc=no
12233fi
12234rm -f conftest.err conftest.$ac_ext
12235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12236echo "${ECHO_T}$ac_header_preproc" >&6
12237
12238# So? What about this header?
12239case $ac_header_compiler:$ac_header_preproc in
12240 yes:no )
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12245 (
12246 cat <<\_ASBOX
12247## ------------------------------------ ##
12248## Report this to bug-autoconf@gnu.org. ##
12249## ------------------------------------ ##
12250_ASBOX
12251 ) |
12252 sed "s/^/$as_me: WARNING: /" >&2
12253 ;;
12254 no:yes )
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12256echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12258echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12261 (
12262 cat <<\_ASBOX
12263## ------------------------------------ ##
12264## Report this to bug-autoconf@gnu.org. ##
12265## ------------------------------------ ##
12266_ASBOX
12267 ) |
12268 sed "s/^/$as_me: WARNING: /" >&2
12269 ;;
12270esac
12271echo "$as_me:$LINENO: checking for $ac_header" >&5
12272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12273if eval "test \"\${$as_ac_Header+set}\" = set"; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275else
12276 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12277fi
e6cc62c6
VS
12278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12280
a0b9e27f 12281fi
e6cc62c6
VS
12282if test `eval echo '${'$as_ac_Header'}'` = yes; then
12283 cat >>confdefs.h <<_ACEOF
12284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12285_ACEOF
12286
12287fi
12288
12289done
12290
e6cc62c6
VS
12291
12292
12293for ac_header in stdlib.h
12294do
12295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12296if eval "test \"\${$as_ac_Header+set}\" = set"; then
12297 echo "$as_me:$LINENO: checking for $ac_header" >&5
12298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12299if eval "test \"\${$as_ac_Header+set}\" = set"; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301fi
12302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12304else
12305 # Is the header compilable?
12306echo "$as_me:$LINENO: checking $ac_header usability" >&5
12307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12308cat >conftest.$ac_ext <<_ACEOF
12309#line $LINENO "configure"
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
12315$ac_includes_default
12316#include <$ac_header>
12317_ACEOF
12318rm -f conftest.$ac_objext
12319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320 (eval $ac_compile) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_header_compiler=yes
12331else
12332 echo "$as_me: failed program was:" >&5
12333sed 's/^/| /' conftest.$ac_ext >&5
12334
12335ac_header_compiler=no
12336fi
12337rm -f conftest.$ac_objext conftest.$ac_ext
12338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12339echo "${ECHO_T}$ac_header_compiler" >&6
12340
12341# Is the header present?
12342echo "$as_me:$LINENO: checking $ac_header presence" >&5
12343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12344cat >conftest.$ac_ext <<_ACEOF
12345#line $LINENO "configure"
12346/* confdefs.h. */
12347_ACEOF
12348cat confdefs.h >>conftest.$ac_ext
12349cat >>conftest.$ac_ext <<_ACEOF
12350/* end confdefs.h. */
12351#include <$ac_header>
12352_ACEOF
12353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } >/dev/null; then
12361 if test -s conftest.err; then
12362 ac_cpp_err=$ac_c_preproc_warn_flag
12363 else
12364 ac_cpp_err=
12365 fi
12366else
12367 ac_cpp_err=yes
12368fi
12369if test -z "$ac_cpp_err"; then
12370 ac_header_preproc=yes
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 ac_header_preproc=no
12376fi
12377rm -f conftest.err conftest.$ac_ext
12378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12379echo "${ECHO_T}$ac_header_preproc" >&6
12380
12381# So? What about this header?
12382case $ac_header_compiler:$ac_header_preproc in
12383 yes:no )
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12388 (
12389 cat <<\_ASBOX
12390## ------------------------------------ ##
12391## Report this to bug-autoconf@gnu.org. ##
12392## ------------------------------------ ##
12393_ASBOX
12394 ) |
12395 sed "s/^/$as_me: WARNING: /" >&2
12396 ;;
12397 no:yes )
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12399echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12401echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12404 (
12405 cat <<\_ASBOX
12406## ------------------------------------ ##
12407## Report this to bug-autoconf@gnu.org. ##
12408## ------------------------------------ ##
12409_ASBOX
12410 ) |
12411 sed "s/^/$as_me: WARNING: /" >&2
12412 ;;
12413esac
12414echo "$as_me:$LINENO: checking for $ac_header" >&5
12415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12416if eval "test \"\${$as_ac_Header+set}\" = set"; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12418else
e6cc62c6
VS
12419 eval "$as_ac_Header=$ac_header_preproc"
12420fi
12421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12423
21d1c967 12424fi
e6cc62c6
VS
12425if test `eval echo '${'$as_ac_Header'}'` = yes; then
12426 cat >>confdefs.h <<_ACEOF
12427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12428_ACEOF
12429
12430fi
12431
21d1c967 12432done
4f14bcd8 12433
5c6fa7d2 12434
e6cc62c6 12435for ac_header in malloc.h
21d1c967 12436do
e6cc62c6
VS
12437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12438if eval "test \"\${$as_ac_Header+set}\" = set"; then
12439 echo "$as_me:$LINENO: checking for $ac_header" >&5
12440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12441if eval "test \"\${$as_ac_Header+set}\" = set"; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443fi
12444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12446else
12447 # Is the header compilable?
12448echo "$as_me:$LINENO: checking $ac_header usability" >&5
12449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12450cat >conftest.$ac_ext <<_ACEOF
12451#line $LINENO "configure"
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457$ac_includes_default
12458#include <$ac_header>
12459_ACEOF
12460rm -f conftest.$ac_objext
12461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -s conftest.$ac_objext'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
12472 ac_header_compiler=yes
12473else
12474 echo "$as_me: failed program was:" >&5
12475sed 's/^/| /' conftest.$ac_ext >&5
12476
12477ac_header_compiler=no
12478fi
12479rm -f conftest.$ac_objext conftest.$ac_ext
12480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12481echo "${ECHO_T}$ac_header_compiler" >&6
12482
12483# Is the header present?
12484echo "$as_me:$LINENO: checking $ac_header presence" >&5
12485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12486cat >conftest.$ac_ext <<_ACEOF
12487#line $LINENO "configure"
12488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
12493#include <$ac_header>
12494_ACEOF
12495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } >/dev/null; then
12503 if test -s conftest.err; then
12504 ac_cpp_err=$ac_c_preproc_warn_flag
12505 else
12506 ac_cpp_err=
12507 fi
12508else
12509 ac_cpp_err=yes
12510fi
12511if test -z "$ac_cpp_err"; then
12512 ac_header_preproc=yes
12513else
12514 echo "$as_me: failed program was:" >&5
12515sed 's/^/| /' conftest.$ac_ext >&5
12516
12517 ac_header_preproc=no
12518fi
12519rm -f conftest.err conftest.$ac_ext
12520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12521echo "${ECHO_T}$ac_header_preproc" >&6
12522
12523# So? What about this header?
12524case $ac_header_compiler:$ac_header_preproc in
12525 yes:no )
12526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12530 (
12531 cat <<\_ASBOX
12532## ------------------------------------ ##
12533## Report this to bug-autoconf@gnu.org. ##
12534## ------------------------------------ ##
12535_ASBOX
12536 ) |
12537 sed "s/^/$as_me: WARNING: /" >&2
12538 ;;
12539 no:yes )
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12541echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12543echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12546 (
12547 cat <<\_ASBOX
12548## ------------------------------------ ##
12549## Report this to bug-autoconf@gnu.org. ##
12550## ------------------------------------ ##
12551_ASBOX
12552 ) |
12553 sed "s/^/$as_me: WARNING: /" >&2
12554 ;;
12555esac
12556echo "$as_me:$LINENO: checking for $ac_header" >&5
12557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12558if eval "test \"\${$as_ac_Header+set}\" = set"; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560else
12561 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12562fi
e6cc62c6
VS
12563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12565
21d1c967 12566fi
e6cc62c6
VS
12567if test `eval echo '${'$as_ac_Header'}'` = yes; then
12568 cat >>confdefs.h <<_ACEOF
12569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12570_ACEOF
12571
12572fi
12573
12574done
12575
12576
12577for ac_header in unistd.h
12578do
12579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12580if eval "test \"\${$as_ac_Header+set}\" = set"; then
12581 echo "$as_me:$LINENO: checking for $ac_header" >&5
12582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12583if eval "test \"\${$as_ac_Header+set}\" = set"; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585fi
12586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12588else
12589 # Is the header compilable?
12590echo "$as_me:$LINENO: checking $ac_header usability" >&5
12591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12592cat >conftest.$ac_ext <<_ACEOF
12593#line $LINENO "configure"
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h. */
12599$ac_includes_default
12600#include <$ac_header>
12601_ACEOF
12602rm -f conftest.$ac_objext
12603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 (eval $ac_compile) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_header_compiler=yes
12615else
12616 echo "$as_me: failed program was:" >&5
12617sed 's/^/| /' conftest.$ac_ext >&5
12618
12619ac_header_compiler=no
12620fi
12621rm -f conftest.$ac_objext conftest.$ac_ext
12622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12623echo "${ECHO_T}$ac_header_compiler" >&6
12624
12625# Is the header present?
12626echo "$as_me:$LINENO: checking $ac_header presence" >&5
12627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12628cat >conftest.$ac_ext <<_ACEOF
12629#line $LINENO "configure"
12630/* confdefs.h. */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h. */
12635#include <$ac_header>
12636_ACEOF
12637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } >/dev/null; then
12645 if test -s conftest.err; then
12646 ac_cpp_err=$ac_c_preproc_warn_flag
12647 else
12648 ac_cpp_err=
12649 fi
a0b9e27f 12650else
e6cc62c6
VS
12651 ac_cpp_err=yes
12652fi
12653if test -z "$ac_cpp_err"; then
12654 ac_header_preproc=yes
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 ac_header_preproc=no
12660fi
12661rm -f conftest.err conftest.$ac_ext
12662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663echo "${ECHO_T}$ac_header_preproc" >&6
12664
12665# So? What about this header?
12666case $ac_header_compiler:$ac_header_preproc in
12667 yes:no )
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12672 (
12673 cat <<\_ASBOX
12674## ------------------------------------ ##
12675## Report this to bug-autoconf@gnu.org. ##
12676## ------------------------------------ ##
12677_ASBOX
12678 ) |
12679 sed "s/^/$as_me: WARNING: /" >&2
12680 ;;
12681 no:yes )
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12683echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12685echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12688 (
12689 cat <<\_ASBOX
12690## ------------------------------------ ##
12691## Report this to bug-autoconf@gnu.org. ##
12692## ------------------------------------ ##
12693_ASBOX
12694 ) |
12695 sed "s/^/$as_me: WARNING: /" >&2
12696 ;;
12697esac
12698echo "$as_me:$LINENO: checking for $ac_header" >&5
12699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12700if eval "test \"\${$as_ac_Header+set}\" = set"; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702else
12703 eval "$as_ac_Header=$ac_header_preproc"
12704fi
12705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12707
12708fi
12709if test `eval echo '${'$as_ac_Header'}'` = yes; then
12710 cat >>confdefs.h <<_ACEOF
12711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12712_ACEOF
12713
d4158b5d 12714fi
e6cc62c6 12715
21d1c967 12716done
f6bcfd97 12717
e6cc62c6
VS
12718
12719for ac_header in wchar.h
12720do
12721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12722if eval "test \"\${$as_ac_Header+set}\" = set"; then
12723 echo "$as_me:$LINENO: checking for $ac_header" >&5
12724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12725if eval "test \"\${$as_ac_Header+set}\" = set"; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727fi
12728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12730else
12731 # Is the header compilable?
12732echo "$as_me:$LINENO: checking $ac_header usability" >&5
12733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12734cat >conftest.$ac_ext <<_ACEOF
12735#line $LINENO "configure"
12736/* confdefs.h. */
12737_ACEOF
12738cat confdefs.h >>conftest.$ac_ext
12739cat >>conftest.$ac_ext <<_ACEOF
12740/* end confdefs.h. */
12741$ac_includes_default
12742#include <$ac_header>
12743_ACEOF
12744rm -f conftest.$ac_objext
12745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746 (eval $ac_compile) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -s conftest.$ac_objext'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_header_compiler=yes
12757else
12758 echo "$as_me: failed program was:" >&5
12759sed 's/^/| /' conftest.$ac_ext >&5
12760
12761ac_header_compiler=no
12762fi
12763rm -f conftest.$ac_objext conftest.$ac_ext
12764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12765echo "${ECHO_T}$ac_header_compiler" >&6
12766
12767# Is the header present?
12768echo "$as_me:$LINENO: checking $ac_header presence" >&5
12769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12770cat >conftest.$ac_ext <<_ACEOF
12771#line $LINENO "configure"
12772/* confdefs.h. */
12773_ACEOF
12774cat confdefs.h >>conftest.$ac_ext
12775cat >>conftest.$ac_ext <<_ACEOF
12776/* end confdefs.h. */
12777#include <$ac_header>
12778_ACEOF
12779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } >/dev/null; then
12787 if test -s conftest.err; then
12788 ac_cpp_err=$ac_c_preproc_warn_flag
12789 else
12790 ac_cpp_err=
12791 fi
12792else
12793 ac_cpp_err=yes
12794fi
12795if test -z "$ac_cpp_err"; then
12796 ac_header_preproc=yes
12797else
12798 echo "$as_me: failed program was:" >&5
12799sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 ac_header_preproc=no
12802fi
12803rm -f conftest.err conftest.$ac_ext
12804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12805echo "${ECHO_T}$ac_header_preproc" >&6
12806
12807# So? What about this header?
12808case $ac_header_compiler:$ac_header_preproc in
12809 yes:no )
12810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12814 (
12815 cat <<\_ASBOX
12816## ------------------------------------ ##
12817## Report this to bug-autoconf@gnu.org. ##
12818## ------------------------------------ ##
12819_ASBOX
12820 ) |
12821 sed "s/^/$as_me: WARNING: /" >&2
12822 ;;
12823 no:yes )
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12827echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12830 (
12831 cat <<\_ASBOX
12832## ------------------------------------ ##
12833## Report this to bug-autoconf@gnu.org. ##
12834## ------------------------------------ ##
12835_ASBOX
12836 ) |
12837 sed "s/^/$as_me: WARNING: /" >&2
12838 ;;
12839esac
12840echo "$as_me:$LINENO: checking for $ac_header" >&5
12841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12842if eval "test \"\${$as_ac_Header+set}\" = set"; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844else
12845 eval "$as_ac_Header=$ac_header_preproc"
12846fi
12847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12849
90dd450c 12850fi
e6cc62c6
VS
12851if test `eval echo '${'$as_ac_Header'}'` = yes; then
12852 cat >>confdefs.h <<_ACEOF
12853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12854_ACEOF
12855
12856fi
12857
12858done
90dd450c 12859
e6cc62c6
VS
12860
12861if test "$ac_cv_header_wchar_h" != "yes"; then
12862
12863for ac_header in wcstr.h
21d1c967 12864do
e6cc62c6
VS
12865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12866if eval "test \"\${$as_ac_Header+set}\" = set"; then
12867 echo "$as_me:$LINENO: checking for $ac_header" >&5
12868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12869if eval "test \"\${$as_ac_Header+set}\" = set"; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871fi
12872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12874else
12875 # Is the header compilable?
12876echo "$as_me:$LINENO: checking $ac_header usability" >&5
12877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12878cat >conftest.$ac_ext <<_ACEOF
12879#line $LINENO "configure"
12880/* confdefs.h. */
12881_ACEOF
12882cat confdefs.h >>conftest.$ac_ext
12883cat >>conftest.$ac_ext <<_ACEOF
12884/* end confdefs.h. */
12885$ac_includes_default
12886#include <$ac_header>
12887_ACEOF
12888rm -f conftest.$ac_objext
12889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890 (eval $ac_compile) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -s conftest.$ac_objext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_header_compiler=yes
12901else
12902 echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905ac_header_compiler=no
12906fi
12907rm -f conftest.$ac_objext conftest.$ac_ext
12908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12909echo "${ECHO_T}$ac_header_compiler" >&6
12910
12911# Is the header present?
12912echo "$as_me:$LINENO: checking $ac_header presence" >&5
12913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12914cat >conftest.$ac_ext <<_ACEOF
12915#line $LINENO "configure"
12916/* confdefs.h. */
12917_ACEOF
12918cat confdefs.h >>conftest.$ac_ext
12919cat >>conftest.$ac_ext <<_ACEOF
12920/* end confdefs.h. */
12921#include <$ac_header>
12922_ACEOF
12923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } >/dev/null; then
12931 if test -s conftest.err; then
12932 ac_cpp_err=$ac_c_preproc_warn_flag
12933 else
12934 ac_cpp_err=
12935 fi
12936else
12937 ac_cpp_err=yes
12938fi
12939if test -z "$ac_cpp_err"; then
12940 ac_header_preproc=yes
12941else
12942 echo "$as_me: failed program was:" >&5
12943sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 ac_header_preproc=no
12946fi
12947rm -f conftest.err conftest.$ac_ext
12948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12949echo "${ECHO_T}$ac_header_preproc" >&6
12950
12951# So? What about this header?
12952case $ac_header_compiler:$ac_header_preproc in
12953 yes:no )
12954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12957echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12958 (
12959 cat <<\_ASBOX
12960## ------------------------------------ ##
12961## Report this to bug-autoconf@gnu.org. ##
12962## ------------------------------------ ##
12963_ASBOX
12964 ) |
12965 sed "s/^/$as_me: WARNING: /" >&2
12966 ;;
12967 no:yes )
12968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12969echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12971echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12973echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12974 (
12975 cat <<\_ASBOX
12976## ------------------------------------ ##
12977## Report this to bug-autoconf@gnu.org. ##
12978## ------------------------------------ ##
12979_ASBOX
12980 ) |
12981 sed "s/^/$as_me: WARNING: /" >&2
12982 ;;
12983esac
12984echo "$as_me:$LINENO: checking for $ac_header" >&5
12985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12986if eval "test \"\${$as_ac_Header+set}\" = set"; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988else
12989 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12990fi
e6cc62c6
VS
12991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12993
4f14bcd8 12994fi
e6cc62c6
VS
12995if test `eval echo '${'$as_ac_Header'}'` = yes; then
12996 cat >>confdefs.h <<_ACEOF
12997#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12998_ACEOF
12999
13000fi
13001
13002done
13003
13004fi
13005
13006
13007for ac_header in fnmatch.h
13008do
13009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13010if eval "test \"\${$as_ac_Header+set}\" = set"; then
13011 echo "$as_me:$LINENO: checking for $ac_header" >&5
13012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13013if eval "test \"\${$as_ac_Header+set}\" = set"; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13015fi
13016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13018else
13019 # Is the header compilable?
13020echo "$as_me:$LINENO: checking $ac_header usability" >&5
13021echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13022cat >conftest.$ac_ext <<_ACEOF
13023#line $LINENO "configure"
13024/* confdefs.h. */
13025_ACEOF
13026cat confdefs.h >>conftest.$ac_ext
13027cat >>conftest.$ac_ext <<_ACEOF
13028/* end confdefs.h. */
13029$ac_includes_default
13030#include <$ac_header>
13031_ACEOF
13032rm -f conftest.$ac_objext
13033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_header_compiler=yes
13045else
13046 echo "$as_me: failed program was:" >&5
13047sed 's/^/| /' conftest.$ac_ext >&5
13048
13049ac_header_compiler=no
13050fi
13051rm -f conftest.$ac_objext conftest.$ac_ext
13052echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13053echo "${ECHO_T}$ac_header_compiler" >&6
13054
13055# Is the header present?
13056echo "$as_me:$LINENO: checking $ac_header presence" >&5
13057echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13058cat >conftest.$ac_ext <<_ACEOF
13059#line $LINENO "configure"
13060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065#include <$ac_header>
13066_ACEOF
13067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } >/dev/null; then
13075 if test -s conftest.err; then
13076 ac_cpp_err=$ac_c_preproc_warn_flag
13077 else
13078 ac_cpp_err=
13079 fi
13080else
13081 ac_cpp_err=yes
13082fi
13083if test -z "$ac_cpp_err"; then
13084 ac_header_preproc=yes
13085else
13086 echo "$as_me: failed program was:" >&5
13087sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 ac_header_preproc=no
13090fi
13091rm -f conftest.err conftest.$ac_ext
13092echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13093echo "${ECHO_T}$ac_header_preproc" >&6
13094
13095# So? What about this header?
13096case $ac_header_compiler:$ac_header_preproc in
13097 yes:no )
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13102 (
13103 cat <<\_ASBOX
13104## ------------------------------------ ##
13105## Report this to bug-autoconf@gnu.org. ##
13106## ------------------------------------ ##
13107_ASBOX
13108 ) |
13109 sed "s/^/$as_me: WARNING: /" >&2
13110 ;;
13111 no:yes )
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13115echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13118 (
13119 cat <<\_ASBOX
13120## ------------------------------------ ##
13121## Report this to bug-autoconf@gnu.org. ##
13122## ------------------------------------ ##
13123_ASBOX
13124 ) |
13125 sed "s/^/$as_me: WARNING: /" >&2
13126 ;;
13127esac
13128echo "$as_me:$LINENO: checking for $ac_header" >&5
13129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13130if eval "test \"\${$as_ac_Header+set}\" = set"; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13132else
e6cc62c6
VS
13133 eval "$as_ac_Header=$ac_header_preproc"
13134fi
13135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13137
21d1c967 13138fi
e6cc62c6
VS
13139if test `eval echo '${'$as_ac_Header'}'` = yes; then
13140 cat >>confdefs.h <<_ACEOF
13141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13142_ACEOF
13143
13144fi
13145
21d1c967 13146done
90dd450c 13147
5c6fa7d2 13148
a0b9e27f 13149if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13150
13151for ac_func in fnmatch
21d1c967 13152do
e6cc62c6
VS
13153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13154echo "$as_me:$LINENO: checking for $ac_func" >&5
13155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13156if eval "test \"\${$as_ac_var+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158else
13159 cat >conftest.$ac_ext <<_ACEOF
13160#line $LINENO "configure"
13161/* confdefs.h. */
13162_ACEOF
13163cat confdefs.h >>conftest.$ac_ext
13164cat >>conftest.$ac_ext <<_ACEOF
13165/* end confdefs.h. */
a0b9e27f 13166/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13167 which can conflict with char $ac_func (); below.
13168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13169 <limits.h> exists even on freestanding compilers. */
13170#ifdef __STDC__
13171# include <limits.h>
13172#else
13173# include <assert.h>
13174#endif
a0b9e27f 13175/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13176#ifdef __cplusplus
13177extern "C"
13178{
13179#endif
a0b9e27f 13180/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13181 builtin and then its argument prototype would still apply. */
13182char $ac_func ();
a0b9e27f
MB
13183/* The GNU C library defines this for functions which it implements
13184 to always fail with ENOSYS. Some functions are actually named
13185 something starting with __ and the normal name is an alias. */
13186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13187choke me
13188#else
e6cc62c6
VS
13189char (*f) () = $ac_func;
13190#endif
13191#ifdef __cplusplus
13192}
a0b9e27f
MB
13193#endif
13194
e6cc62c6
VS
13195int
13196main ()
13197{
13198return f != $ac_func;
13199 ;
13200 return 0;
13201}
13202_ACEOF
13203rm -f conftest.$ac_objext conftest$ac_exeext
13204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13205 (eval $ac_link) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -s conftest$ac_exeext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 eval "$as_ac_var=yes"
13216else
13217 echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
13220eval "$as_ac_var=no"
13221fi
13222rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13223fi
13224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13225echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13226if test `eval echo '${'$as_ac_var'}'` = yes; then
13227 cat >>confdefs.h <<_ACEOF
13228#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13229_ACEOF
32832908 13230
21d1c967
GD
13231fi
13232done
90dd450c 13233
a0b9e27f 13234fi
90dd450c 13235
e6cc62c6
VS
13236
13237for ac_header in langinfo.h
21d1c967 13238do
e6cc62c6
VS
13239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13240if eval "test \"\${$as_ac_Header+set}\" = set"; then
13241 echo "$as_me:$LINENO: checking for $ac_header" >&5
13242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13243if eval "test \"\${$as_ac_Header+set}\" = set"; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13245fi
13246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13248else
13249 # Is the header compilable?
13250echo "$as_me:$LINENO: checking $ac_header usability" >&5
13251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13252cat >conftest.$ac_ext <<_ACEOF
13253#line $LINENO "configure"
13254/* confdefs.h. */
13255_ACEOF
13256cat confdefs.h >>conftest.$ac_ext
13257cat >>conftest.$ac_ext <<_ACEOF
13258/* end confdefs.h. */
13259$ac_includes_default
13260#include <$ac_header>
13261_ACEOF
13262rm -f conftest.$ac_objext
13263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13264 (eval $ac_compile) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_header_compiler=yes
13275else
13276 echo "$as_me: failed program was:" >&5
13277sed 's/^/| /' conftest.$ac_ext >&5
13278
13279ac_header_compiler=no
13280fi
13281rm -f conftest.$ac_objext conftest.$ac_ext
13282echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13283echo "${ECHO_T}$ac_header_compiler" >&6
13284
13285# Is the header present?
13286echo "$as_me:$LINENO: checking $ac_header presence" >&5
13287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13288cat >conftest.$ac_ext <<_ACEOF
13289#line $LINENO "configure"
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
13294/* end confdefs.h. */
13295#include <$ac_header>
13296_ACEOF
13297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev/null; then
13305 if test -s conftest.err; then
13306 ac_cpp_err=$ac_c_preproc_warn_flag
13307 else
13308 ac_cpp_err=
13309 fi
13310else
13311 ac_cpp_err=yes
13312fi
13313if test -z "$ac_cpp_err"; then
13314 ac_header_preproc=yes
13315else
13316 echo "$as_me: failed program was:" >&5
13317sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_header_preproc=no
13320fi
13321rm -f conftest.err conftest.$ac_ext
13322echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13323echo "${ECHO_T}$ac_header_preproc" >&6
13324
13325# So? What about this header?
13326case $ac_header_compiler:$ac_header_preproc in
13327 yes:no )
13328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13332 (
13333 cat <<\_ASBOX
13334## ------------------------------------ ##
13335## Report this to bug-autoconf@gnu.org. ##
13336## ------------------------------------ ##
13337_ASBOX
13338 ) |
13339 sed "s/^/$as_me: WARNING: /" >&2
13340 ;;
13341 no:yes )
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13347echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13348 (
13349 cat <<\_ASBOX
13350## ------------------------------------ ##
13351## Report this to bug-autoconf@gnu.org. ##
13352## ------------------------------------ ##
13353_ASBOX
13354 ) |
13355 sed "s/^/$as_me: WARNING: /" >&2
13356 ;;
13357esac
13358echo "$as_me:$LINENO: checking for $ac_header" >&5
13359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13360if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13362else
13363 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13364fi
e6cc62c6
VS
13365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13367
4f14bcd8 13368fi
e6cc62c6
VS
13369if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370 cat >>confdefs.h <<_ACEOF
13371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372_ACEOF
13373
21d1c967 13374fi
e6cc62c6 13375
21d1c967 13376done
3a922bb4 13377
8284b0c5 13378
4f5a7f74
VZ
13379case "${host}" in
13380 *-pc-os2_emx | *-pc-os2-emx )
13381 if test $ac_cv_header_langinfo_h = "yes"; then
13382 LIBS="$LIBS -lintl"
13383 fi
13384 ;;
13385esac
1542ea39 13386
a0b9e27f
MB
13387if test "$wxUSE_GUI" = "yes"; then
13388 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13389
13390for ac_header in X11/XKBlib.h
21d1c967 13391do
e6cc62c6
VS
13392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13393if eval "test \"\${$as_ac_Header+set}\" = set"; then
13394 echo "$as_me:$LINENO: checking for $ac_header" >&5
13395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13396if eval "test \"\${$as_ac_Header+set}\" = set"; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398fi
13399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13401else
13402 # Is the header compilable?
13403echo "$as_me:$LINENO: checking $ac_header usability" >&5
13404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13405cat >conftest.$ac_ext <<_ACEOF
13406#line $LINENO "configure"
13407/* confdefs.h. */
13408_ACEOF
13409cat confdefs.h >>conftest.$ac_ext
13410cat >>conftest.$ac_ext <<_ACEOF
13411/* end confdefs.h. */
13412$ac_includes_default
13413#include <$ac_header>
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13417 (eval $ac_compile) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_header_compiler=yes
13428else
13429 echo "$as_me: failed program was:" >&5
13430sed 's/^/| /' conftest.$ac_ext >&5
13431
13432ac_header_compiler=no
13433fi
13434rm -f conftest.$ac_objext conftest.$ac_ext
13435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13436echo "${ECHO_T}$ac_header_compiler" >&6
13437
13438# Is the header present?
13439echo "$as_me:$LINENO: checking $ac_header presence" >&5
13440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13441cat >conftest.$ac_ext <<_ACEOF
13442#line $LINENO "configure"
13443/* confdefs.h. */
13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
13448#include <$ac_header>
13449_ACEOF
13450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev/null; then
13458 if test -s conftest.err; then
13459 ac_cpp_err=$ac_c_preproc_warn_flag
13460 else
13461 ac_cpp_err=
13462 fi
13463else
13464 ac_cpp_err=yes
13465fi
13466if test -z "$ac_cpp_err"; then
13467 ac_header_preproc=yes
13468else
13469 echo "$as_me: failed program was:" >&5
13470sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 ac_header_preproc=no
13473fi
13474rm -f conftest.err conftest.$ac_ext
13475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13476echo "${ECHO_T}$ac_header_preproc" >&6
13477
13478# So? What about this header?
13479case $ac_header_compiler:$ac_header_preproc in
13480 yes:no )
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13485 (
13486 cat <<\_ASBOX
13487## ------------------------------------ ##
13488## Report this to bug-autoconf@gnu.org. ##
13489## ------------------------------------ ##
13490_ASBOX
13491 ) |
13492 sed "s/^/$as_me: WARNING: /" >&2
13493 ;;
13494 no:yes )
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13501 (
13502 cat <<\_ASBOX
13503## ------------------------------------ ##
13504## Report this to bug-autoconf@gnu.org. ##
13505## ------------------------------------ ##
13506_ASBOX
13507 ) |
13508 sed "s/^/$as_me: WARNING: /" >&2
13509 ;;
13510esac
13511echo "$as_me:$LINENO: checking for $ac_header" >&5
13512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13513if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515else
13516 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13517fi
e6cc62c6
VS
13518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520
90dd450c 13521fi
e6cc62c6
VS
13522if test `eval echo '${'$as_ac_Header'}'` = yes; then
13523 cat >>confdefs.h <<_ACEOF
13524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13525_ACEOF
13526
247f5006 13527fi
e6cc62c6 13528
247f5006
VZ
13529done
13530
a0b9e27f
MB
13531 fi
13532fi
247f5006 13533
247f5006 13534
e6cc62c6
VS
13535echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13536echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13537if test "${ac_cv_c_const+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539else
13540 cat >conftest.$ac_ext <<_ACEOF
13541#line $LINENO "configure"
13542/* confdefs.h. */
13543_ACEOF
13544cat confdefs.h >>conftest.$ac_ext
13545cat >>conftest.$ac_ext <<_ACEOF
13546/* end confdefs.h. */
13547
13548int
13549main ()
13550{
13551/* FIXME: Include the comments suggested by Paul. */
13552#ifndef __cplusplus
13553 /* Ultrix mips cc rejects this. */
13554 typedef int charset[2];
13555 const charset x;
13556 /* SunOS 4.1.1 cc rejects this. */
13557 char const *const *ccp;
13558 char **p;
13559 /* NEC SVR4.0.2 mips cc rejects this. */
13560 struct point {int x, y;};
13561 static struct point const zero = {0,0};
13562 /* AIX XL C 1.02.0.0 rejects this.
13563 It does not let you subtract one const X* pointer from another in
13564 an arm of an if-expression whose if-part is not a constant
13565 expression */
13566 const char *g = "string";
13567 ccp = &g + (g ? g-g : 0);
13568 /* HPUX 7.0 cc rejects these. */
13569 ++ccp;
13570 p = (char**) ccp;
13571 ccp = (char const *const *) p;
13572 { /* SCO 3.2v4 cc rejects this. */
13573 char *t;
13574 char const *s = 0 ? (char *) 0 : (char const *) 0;
13575
13576 *t++ = 0;
13577 }
13578 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13579 int x[] = {25, 17};
13580 const int *foo = &x[0];
13581 ++foo;
13582 }
13583 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13584 typedef const int *iptr;
13585 iptr p = 0;
13586 ++p;
13587 }
13588 { /* AIX XL C 1.02.0.0 rejects this saying
13589 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13590 struct s { int j; const int *ap[3]; };
13591 struct s *b; b->j = 5;
13592 }
13593 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13594 const int foo = 10;
13595 }
13596#endif
13597
13598 ;
13599 return 0;
13600}
13601_ACEOF
13602rm -f conftest.$ac_objext
13603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
a0b9e27f 13614 ac_cv_c_const=yes
247f5006 13615else
e6cc62c6
VS
13616 echo "$as_me: failed program was:" >&5
13617sed 's/^/| /' conftest.$ac_ext >&5
13618
13619ac_cv_c_const=no
247f5006 13620fi
e6cc62c6 13621rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13622fi
e6cc62c6
VS
13623echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13624echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13625if test $ac_cv_c_const = no; then
e6cc62c6
VS
13626
13627cat >>confdefs.h <<\_ACEOF
13628#define const
13629_ACEOF
10f2d63a 13630
90dd450c 13631fi
81809c07 13632
e6cc62c6
VS
13633echo "$as_me:$LINENO: checking for inline" >&5
13634echo $ECHO_N "checking for inline... $ECHO_C" >&6
13635if test "${ac_cv_c_inline+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13637else
a0b9e27f
MB
13638 ac_cv_c_inline=no
13639for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13640 cat >conftest.$ac_ext <<_ACEOF
13641#line $LINENO "configure"
13642/* confdefs.h. */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h. */
13647#ifndef __cplusplus
13648typedef int foo_t;
13649static $ac_kw foo_t static_foo () {return 0; }
13650$ac_kw foo_t foo () {return 0; }
13651#endif
a0b9e27f 13652
e6cc62c6
VS
13653_ACEOF
13654rm -f conftest.$ac_objext
13655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
a0b9e27f 13666 ac_cv_c_inline=$ac_kw; break
247f5006 13667else
e6cc62c6
VS
13668 echo "$as_me: failed program was:" >&5
13669sed 's/^/| /' conftest.$ac_ext >&5
13670
247f5006 13671fi
e6cc62c6 13672rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13673done
247f5006
VZ
13674
13675fi
e6cc62c6
VS
13676echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13677echo "${ECHO_T}$ac_cv_c_inline" >&6
13678case $ac_cv_c_inline in
a0b9e27f 13679 inline | yes) ;;
e6cc62c6
VS
13680 no)
13681cat >>confdefs.h <<\_ACEOF
13682#define inline
13683_ACEOF
a0b9e27f 13684 ;;
e6cc62c6 13685 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13686#define inline $ac_cv_c_inline
e6cc62c6 13687_ACEOF
a0b9e27f
MB
13688 ;;
13689esac
247f5006 13690
247f5006 13691
e6cc62c6
VS
13692echo "$as_me:$LINENO: checking for char" >&5
13693echo $ECHO_N "checking for char... $ECHO_C" >&6
13694if test "${ac_cv_type_char+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696else
13697 cat >conftest.$ac_ext <<_ACEOF
13698#line $LINENO "configure"
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704$ac_includes_default
13705int
13706main ()
13707{
13708if ((char *) 0)
13709 return 0;
13710if (sizeof (char))
13711 return 0;
13712 ;
13713 return 0;
13714}
13715_ACEOF
13716rm -f conftest.$ac_objext
13717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718 (eval $ac_compile) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -s conftest.$ac_objext'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728 ac_cv_type_char=yes
13729else
13730 echo "$as_me: failed program was:" >&5
13731sed 's/^/| /' conftest.$ac_ext >&5
13732
13733ac_cv_type_char=no
13734fi
13735rm -f conftest.$ac_objext conftest.$ac_ext
13736fi
13737echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13738echo "${ECHO_T}$ac_cv_type_char" >&6
13739
13740echo "$as_me:$LINENO: checking size of char" >&5
13741echo $ECHO_N "checking size of char... $ECHO_C" >&6
13742if test "${ac_cv_sizeof_char+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744else
13745 if test "$ac_cv_type_char" = yes; then
13746 # The cast to unsigned long works around a bug in the HP C Compiler
13747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13749 # This bug is HP SR number 8606223364.
a0b9e27f 13750 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13751 # Depending upon the size, compute the lo and hi bounds.
13752cat >conftest.$ac_ext <<_ACEOF
13753#line $LINENO "configure"
13754/* confdefs.h. */
13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h. */
13759$ac_includes_default
13760int
13761main ()
13762{
13763static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13764test_array [0] = 0
13765
13766 ;
13767 return 0;
13768}
13769_ACEOF
13770rm -f conftest.$ac_objext
13771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13772 (eval $ac_compile) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } &&
13776 { ac_try='test -s conftest.$ac_objext'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 ac_lo=0 ac_mid=0
13783 while :; do
13784 cat >conftest.$ac_ext <<_ACEOF
13785#line $LINENO "configure"
13786/* confdefs.h. */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h. */
13791$ac_includes_default
13792int
13793main ()
13794{
13795static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13796test_array [0] = 0
13797
13798 ;
13799 return 0;
13800}
13801_ACEOF
13802rm -f conftest.$ac_objext
13803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804 (eval $ac_compile) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_hi=$ac_mid; break
13815else
13816 echo "$as_me: failed program was:" >&5
13817sed 's/^/| /' conftest.$ac_ext >&5
13818
13819ac_lo=`expr $ac_mid + 1`
13820 if test $ac_lo -le $ac_mid; then
13821 ac_lo= ac_hi=
13822 break
13823 fi
13824 ac_mid=`expr 2 '*' $ac_mid + 1`
13825fi
13826rm -f conftest.$ac_objext conftest.$ac_ext
13827 done
a0b9e27f 13828else
e6cc62c6
VS
13829 echo "$as_me: failed program was:" >&5
13830sed 's/^/| /' conftest.$ac_ext >&5
13831
13832cat >conftest.$ac_ext <<_ACEOF
13833#line $LINENO "configure"
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h. */
13839$ac_includes_default
13840int
13841main ()
13842{
13843static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13844test_array [0] = 0
13845
13846 ;
13847 return 0;
13848}
13849_ACEOF
13850rm -f conftest.$ac_objext
13851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_hi=-1 ac_mid=-1
13863 while :; do
13864 cat >conftest.$ac_ext <<_ACEOF
13865#line $LINENO "configure"
13866/* confdefs.h. */
13867_ACEOF
13868cat confdefs.h >>conftest.$ac_ext
13869cat >>conftest.$ac_ext <<_ACEOF
13870/* end confdefs.h. */
13871$ac_includes_default
13872int
13873main ()
13874{
13875static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13876test_array [0] = 0
13877
13878 ;
13879 return 0;
13880}
13881_ACEOF
13882rm -f conftest.$ac_objext
13883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -s conftest.$ac_objext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_lo=$ac_mid; break
13895else
13896 echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
13899ac_hi=`expr '(' $ac_mid ')' - 1`
13900 if test $ac_mid -le $ac_hi; then
13901 ac_lo= ac_hi=
13902 break
13903 fi
13904 ac_mid=`expr 2 '*' $ac_mid`
13905fi
13906rm -f conftest.$ac_objext conftest.$ac_ext
13907 done
13908else
13909 echo "$as_me: failed program was:" >&5
13910sed 's/^/| /' conftest.$ac_ext >&5
13911
13912ac_lo= ac_hi=
13913fi
13914rm -f conftest.$ac_objext conftest.$ac_ext
13915fi
13916rm -f conftest.$ac_objext conftest.$ac_ext
13917# Binary search between lo and hi bounds.
13918while test "x$ac_lo" != "x$ac_hi"; do
13919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13920 cat >conftest.$ac_ext <<_ACEOF
13921#line $LINENO "configure"
13922/* confdefs.h. */
13923_ACEOF
13924cat confdefs.h >>conftest.$ac_ext
13925cat >>conftest.$ac_ext <<_ACEOF
13926/* end confdefs.h. */
13927$ac_includes_default
13928int
13929main ()
13930{
13931static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13932test_array [0] = 0
13933
13934 ;
13935 return 0;
13936}
13937_ACEOF
13938rm -f conftest.$ac_objext
13939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940 (eval $ac_compile) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try='test -s conftest.$ac_objext'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 ac_hi=$ac_mid
13951else
13952 echo "$as_me: failed program was:" >&5
13953sed 's/^/| /' conftest.$ac_ext >&5
13954
13955ac_lo=`expr '(' $ac_mid ')' + 1`
13956fi
13957rm -f conftest.$ac_objext conftest.$ac_ext
13958done
13959case $ac_lo in
13960?*) ac_cv_sizeof_char=$ac_lo;;
13961'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13962See \`config.log' for more details." >&5
13963echo "$as_me: error: cannot compute sizeof (char), 77
13964See \`config.log' for more details." >&2;}
13965 { (exit 1); exit 1; }; } ;;
13966esac
13967else
13968 if test "$cross_compiling" = yes; then
13969 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13970See \`config.log' for more details." >&5
13971echo "$as_me: error: cannot run test program while cross compiling
13972See \`config.log' for more details." >&2;}
13973 { (exit 1); exit 1; }; }
13974else
13975 cat >conftest.$ac_ext <<_ACEOF
13976#line $LINENO "configure"
13977/* confdefs.h. */
13978_ACEOF
13979cat confdefs.h >>conftest.$ac_ext
13980cat >>conftest.$ac_ext <<_ACEOF
13981/* end confdefs.h. */
13982$ac_includes_default
13983long longval () { return (long) (sizeof (char)); }
13984unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13985#include <stdio.h>
e6cc62c6
VS
13986#include <stdlib.h>
13987int
13988main ()
247f5006 13989{
e6cc62c6
VS
13990
13991 FILE *f = fopen ("conftest.val", "w");
13992 if (! f)
13993 exit (1);
13994 if (((long) (sizeof (char))) < 0)
13995 {
13996 long i = longval ();
13997 if (i != ((long) (sizeof (char))))
13998 exit (1);
13999 fprintf (f, "%ld\n", i);
14000 }
14001 else
14002 {
14003 unsigned long i = ulongval ();
14004 if (i != ((long) (sizeof (char))))
14005 exit (1);
14006 fprintf (f, "%lu\n", i);
14007 }
14008 exit (ferror (f) || fclose (f) != 0);
14009
14010 ;
14011 return 0;
52127426 14012}
e6cc62c6
VS
14013_ACEOF
14014rm -f conftest$ac_exeext
14015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14016 (eval $ac_link) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_cv_sizeof_char=`cat conftest.val`
14026else
14027 echo "$as_me: program exited with status $ac_status" >&5
14028echo "$as_me: failed program was:" >&5
14029sed 's/^/| /' conftest.$ac_ext >&5
14030
14031( exit $ac_status )
14032{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14033See \`config.log' for more details." >&5
14034echo "$as_me: error: cannot compute sizeof (char), 77
14035See \`config.log' for more details." >&2;}
14036 { (exit 1); exit 1; }; }
14037fi
14038rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14039fi
14040fi
14041rm -f conftest.val
247f5006 14042else
a0b9e27f 14043 ac_cv_sizeof_char=0
247f5006 14044fi
247f5006 14045fi
e6cc62c6
VS
14046echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14047echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14048cat >>confdefs.h <<_ACEOF
14049#define SIZEOF_CHAR $ac_cv_sizeof_char
14050_ACEOF
14051
14052
14053echo "$as_me:$LINENO: checking for short" >&5
14054echo $ECHO_N "checking for short... $ECHO_C" >&6
14055if test "${ac_cv_type_short+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14057else
14058 cat >conftest.$ac_ext <<_ACEOF
14059#line $LINENO "configure"
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
14064/* end confdefs.h. */
14065$ac_includes_default
14066int
14067main ()
14068{
14069if ((short *) 0)
14070 return 0;
14071if (sizeof (short))
14072 return 0;
14073 ;
14074 return 0;
14075}
14076_ACEOF
14077rm -f conftest.$ac_objext
14078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14079 (eval $ac_compile) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 ac_cv_type_short=yes
14090else
14091 echo "$as_me: failed program was:" >&5
14092sed 's/^/| /' conftest.$ac_ext >&5
14093
14094ac_cv_type_short=no
14095fi
14096rm -f conftest.$ac_objext conftest.$ac_ext
14097fi
14098echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14099echo "${ECHO_T}$ac_cv_type_short" >&6
14100
14101echo "$as_me:$LINENO: checking size of short" >&5
14102echo $ECHO_N "checking size of short... $ECHO_C" >&6
14103if test "${ac_cv_sizeof_short+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105else
14106 if test "$ac_cv_type_short" = yes; then
14107 # The cast to unsigned long works around a bug in the HP C Compiler
14108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14110 # This bug is HP SR number 8606223364.
14111 if test "$cross_compiling" = yes; then
14112 # Depending upon the size, compute the lo and hi bounds.
14113cat >conftest.$ac_ext <<_ACEOF
14114#line $LINENO "configure"
14115/* confdefs.h. */
14116_ACEOF
14117cat confdefs.h >>conftest.$ac_ext
14118cat >>conftest.$ac_ext <<_ACEOF
14119/* end confdefs.h. */
14120$ac_includes_default
14121int
14122main ()
14123{
14124static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14125test_array [0] = 0
247f5006 14126
e6cc62c6
VS
14127 ;
14128 return 0;
14129}
14130_ACEOF
14131rm -f conftest.$ac_objext
14132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14133 (eval $ac_compile) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -s conftest.$ac_objext'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
14143 ac_lo=0 ac_mid=0
14144 while :; do
14145 cat >conftest.$ac_ext <<_ACEOF
14146#line $LINENO "configure"
14147/* confdefs.h. */
14148_ACEOF
14149cat confdefs.h >>conftest.$ac_ext
14150cat >>conftest.$ac_ext <<_ACEOF
14151/* end confdefs.h. */
14152$ac_includes_default
14153int
14154main ()
14155{
14156static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14157test_array [0] = 0
14158
14159 ;
14160 return 0;
14161}
14162_ACEOF
14163rm -f conftest.$ac_objext
14164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14165 (eval $ac_compile) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -s conftest.$ac_objext'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 ac_hi=$ac_mid; break
14176else
14177 echo "$as_me: failed program was:" >&5
14178sed 's/^/| /' conftest.$ac_ext >&5
14179
14180ac_lo=`expr $ac_mid + 1`
14181 if test $ac_lo -le $ac_mid; then
14182 ac_lo= ac_hi=
14183 break
14184 fi
14185 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14186fi
e6cc62c6
VS
14187rm -f conftest.$ac_objext conftest.$ac_ext
14188 done
14189else
14190 echo "$as_me: failed program was:" >&5
14191sed 's/^/| /' conftest.$ac_ext >&5
14192
14193cat >conftest.$ac_ext <<_ACEOF
14194#line $LINENO "configure"
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
14200$ac_includes_default
14201int
14202main ()
14203{
14204static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14205test_array [0] = 0
247f5006 14206
e6cc62c6
VS
14207 ;
14208 return 0;
14209}
14210_ACEOF
14211rm -f conftest.$ac_objext
14212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213 (eval $ac_compile) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 ac_hi=-1 ac_mid=-1
14224 while :; do
14225 cat >conftest.$ac_ext <<_ACEOF
14226#line $LINENO "configure"
14227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
14232$ac_includes_default
14233int
14234main ()
14235{
14236static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14237test_array [0] = 0
247f5006 14238
e6cc62c6
VS
14239 ;
14240 return 0;
14241}
14242_ACEOF
14243rm -f conftest.$ac_objext
14244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_lo=$ac_mid; break
14256else
14257 echo "$as_me: failed program was:" >&5
14258sed 's/^/| /' conftest.$ac_ext >&5
14259
14260ac_hi=`expr '(' $ac_mid ')' - 1`
14261 if test $ac_mid -le $ac_hi; then
14262 ac_lo= ac_hi=
14263 break
14264 fi
14265 ac_mid=`expr 2 '*' $ac_mid`
14266fi
14267rm -f conftest.$ac_objext conftest.$ac_ext
14268 done
247f5006 14269else
e6cc62c6
VS
14270 echo "$as_me: failed program was:" >&5
14271sed 's/^/| /' conftest.$ac_ext >&5
14272
14273ac_lo= ac_hi=
14274fi
14275rm -f conftest.$ac_objext conftest.$ac_ext
14276fi
14277rm -f conftest.$ac_objext conftest.$ac_ext
14278# Binary search between lo and hi bounds.
14279while test "x$ac_lo" != "x$ac_hi"; do
14280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14281 cat >conftest.$ac_ext <<_ACEOF
14282#line $LINENO "configure"
14283/* confdefs.h. */
14284_ACEOF
14285cat confdefs.h >>conftest.$ac_ext
14286cat >>conftest.$ac_ext <<_ACEOF
14287/* end confdefs.h. */
14288$ac_includes_default
14289int
14290main ()
14291{
14292static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14293test_array [0] = 0
14294
14295 ;
14296 return 0;
14297}
14298_ACEOF
14299rm -f conftest.$ac_objext
14300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301 (eval $ac_compile) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -s conftest.$ac_objext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_hi=$ac_mid
14312else
14313 echo "$as_me: failed program was:" >&5
14314sed 's/^/| /' conftest.$ac_ext >&5
14315
14316ac_lo=`expr '(' $ac_mid ')' + 1`
14317fi
14318rm -f conftest.$ac_objext conftest.$ac_ext
14319done
14320case $ac_lo in
14321?*) ac_cv_sizeof_short=$ac_lo;;
14322'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14323See \`config.log' for more details." >&5
14324echo "$as_me: error: cannot compute sizeof (short), 77
14325See \`config.log' for more details." >&2;}
14326 { (exit 1); exit 1; }; } ;;
14327esac
247f5006 14328else
e6cc62c6
VS
14329 if test "$cross_compiling" = yes; then
14330 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14331See \`config.log' for more details." >&5
14332echo "$as_me: error: cannot run test program while cross compiling
14333See \`config.log' for more details." >&2;}
14334 { (exit 1); exit 1; }; }
14335else
14336 cat >conftest.$ac_ext <<_ACEOF
14337#line $LINENO "configure"
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
14342/* end confdefs.h. */
14343$ac_includes_default
14344long longval () { return (long) (sizeof (short)); }
14345unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14346#include <stdio.h>
e6cc62c6
VS
14347#include <stdlib.h>
14348int
14349main ()
a0b9e27f 14350{
e6cc62c6
VS
14351
14352 FILE *f = fopen ("conftest.val", "w");
14353 if (! f)
14354 exit (1);
14355 if (((long) (sizeof (short))) < 0)
14356 {
14357 long i = longval ();
14358 if (i != ((long) (sizeof (short))))
14359 exit (1);
14360 fprintf (f, "%ld\n", i);
14361 }
14362 else
14363 {
14364 unsigned long i = ulongval ();
14365 if (i != ((long) (sizeof (short))))
14366 exit (1);
14367 fprintf (f, "%lu\n", i);
14368 }
14369 exit (ferror (f) || fclose (f) != 0);
14370
14371 ;
14372 return 0;
a0b9e27f 14373}
e6cc62c6
VS
14374_ACEOF
14375rm -f conftest$ac_exeext
14376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14377 (eval $ac_link) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_cv_sizeof_short=`cat conftest.val`
14387else
14388 echo "$as_me: program exited with status $ac_status" >&5
14389echo "$as_me: failed program was:" >&5
14390sed 's/^/| /' conftest.$ac_ext >&5
14391
14392( exit $ac_status )
14393{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14394See \`config.log' for more details." >&5
14395echo "$as_me: error: cannot compute sizeof (short), 77
14396See \`config.log' for more details." >&2;}
14397 { (exit 1); exit 1; }; }
14398fi
14399rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14400fi
14401fi
14402rm -f conftest.val
247f5006 14403else
a0b9e27f 14404 ac_cv_sizeof_short=0
247f5006 14405fi
247f5006 14406fi
e6cc62c6
VS
14407echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14408echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14409cat >>confdefs.h <<_ACEOF
14410#define SIZEOF_SHORT $ac_cv_sizeof_short
14411_ACEOF
14412
14413
14414echo "$as_me:$LINENO: checking for void *" >&5
14415echo $ECHO_N "checking for void *... $ECHO_C" >&6
14416if test "${ac_cv_type_void_p+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
14419 cat >conftest.$ac_ext <<_ACEOF
14420#line $LINENO "configure"
14421/* confdefs.h. */
14422_ACEOF
14423cat confdefs.h >>conftest.$ac_ext
14424cat >>conftest.$ac_ext <<_ACEOF
14425/* end confdefs.h. */
14426$ac_includes_default
14427int
14428main ()
14429{
14430if ((void * *) 0)
14431 return 0;
14432if (sizeof (void *))
14433 return 0;
14434 ;
14435 return 0;
14436}
14437_ACEOF
14438rm -f conftest.$ac_objext
14439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_cv_type_void_p=yes
14451else
14452 echo "$as_me: failed program was:" >&5
14453sed 's/^/| /' conftest.$ac_ext >&5
14454
14455ac_cv_type_void_p=no
14456fi
14457rm -f conftest.$ac_objext conftest.$ac_ext
14458fi
14459echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14460echo "${ECHO_T}$ac_cv_type_void_p" >&6
14461
14462echo "$as_me:$LINENO: checking size of void *" >&5
14463echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14464if test "${ac_cv_sizeof_void_p+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466else
14467 if test "$ac_cv_type_void_p" = yes; then
14468 # The cast to unsigned long works around a bug in the HP C Compiler
14469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14471 # This bug is HP SR number 8606223364.
14472 if test "$cross_compiling" = yes; then
14473 # Depending upon the size, compute the lo and hi bounds.
14474cat >conftest.$ac_ext <<_ACEOF
14475#line $LINENO "configure"
14476/* confdefs.h. */
14477_ACEOF
14478cat confdefs.h >>conftest.$ac_ext
14479cat >>conftest.$ac_ext <<_ACEOF
14480/* end confdefs.h. */
14481$ac_includes_default
14482int
14483main ()
14484{
14485static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14486test_array [0] = 0
14487
14488 ;
14489 return 0;
14490}
14491_ACEOF
14492rm -f conftest.$ac_objext
14493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14494 (eval $ac_compile) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_lo=0 ac_mid=0
14505 while :; do
14506 cat >conftest.$ac_ext <<_ACEOF
14507#line $LINENO "configure"
14508/* confdefs.h. */
14509_ACEOF
14510cat confdefs.h >>conftest.$ac_ext
14511cat >>conftest.$ac_ext <<_ACEOF
14512/* end confdefs.h. */
14513$ac_includes_default
14514int
14515main ()
14516{
14517static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14518test_array [0] = 0
247f5006 14519
e6cc62c6
VS
14520 ;
14521 return 0;
14522}
14523_ACEOF
14524rm -f conftest.$ac_objext
14525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14526 (eval $ac_compile) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try='test -s conftest.$ac_objext'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 ac_hi=$ac_mid; break
14537else
14538 echo "$as_me: failed program was:" >&5
14539sed 's/^/| /' conftest.$ac_ext >&5
14540
14541ac_lo=`expr $ac_mid + 1`
14542 if test $ac_lo -le $ac_mid; then
14543 ac_lo= ac_hi=
14544 break
14545 fi
14546 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14547fi
e6cc62c6
VS
14548rm -f conftest.$ac_objext conftest.$ac_ext
14549 done
14550else
14551 echo "$as_me: failed program was:" >&5
14552sed 's/^/| /' conftest.$ac_ext >&5
14553
14554cat >conftest.$ac_ext <<_ACEOF
14555#line $LINENO "configure"
14556/* confdefs.h. */
14557_ACEOF
14558cat confdefs.h >>conftest.$ac_ext
14559cat >>conftest.$ac_ext <<_ACEOF
14560/* end confdefs.h. */
14561$ac_includes_default
14562int
14563main ()
14564{
14565static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14566test_array [0] = 0
247f5006 14567
e6cc62c6
VS
14568 ;
14569 return 0;
14570}
14571_ACEOF
14572rm -f conftest.$ac_objext
14573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -s conftest.$ac_objext'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 ac_hi=-1 ac_mid=-1
14585 while :; do
14586 cat >conftest.$ac_ext <<_ACEOF
14587#line $LINENO "configure"
14588/* confdefs.h. */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h. */
14593$ac_includes_default
14594int
14595main ()
14596{
14597static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14598test_array [0] = 0
247f5006 14599
e6cc62c6
VS
14600 ;
14601 return 0;
14602}
14603_ACEOF
14604rm -f conftest.$ac_objext
14605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14606 (eval $ac_compile) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } &&
14610 { ac_try='test -s conftest.$ac_objext'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 ac_lo=$ac_mid; break
14617else
14618 echo "$as_me: failed program was:" >&5
14619sed 's/^/| /' conftest.$ac_ext >&5
14620
14621ac_hi=`expr '(' $ac_mid ')' - 1`
14622 if test $ac_mid -le $ac_hi; then
14623 ac_lo= ac_hi=
14624 break
14625 fi
14626 ac_mid=`expr 2 '*' $ac_mid`
14627fi
14628rm -f conftest.$ac_objext conftest.$ac_ext
14629 done
a0b9e27f 14630else
e6cc62c6
VS
14631 echo "$as_me: failed program was:" >&5
14632sed 's/^/| /' conftest.$ac_ext >&5
14633
14634ac_lo= ac_hi=
14635fi
14636rm -f conftest.$ac_objext conftest.$ac_ext
14637fi
14638rm -f conftest.$ac_objext conftest.$ac_ext
14639# Binary search between lo and hi bounds.
14640while test "x$ac_lo" != "x$ac_hi"; do
14641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14642 cat >conftest.$ac_ext <<_ACEOF
14643#line $LINENO "configure"
14644/* confdefs.h. */
14645_ACEOF
14646cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */
14649$ac_includes_default
14650int
14651main ()
14652{
14653static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14654test_array [0] = 0
14655
14656 ;
14657 return 0;
14658}
14659_ACEOF
14660rm -f conftest.$ac_objext
14661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_hi=$ac_mid
14673else
14674 echo "$as_me: failed program was:" >&5
14675sed 's/^/| /' conftest.$ac_ext >&5
14676
14677ac_lo=`expr '(' $ac_mid ')' + 1`
14678fi
14679rm -f conftest.$ac_objext conftest.$ac_ext
14680done
14681case $ac_lo in
14682?*) ac_cv_sizeof_void_p=$ac_lo;;
14683'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14684See \`config.log' for more details." >&5
14685echo "$as_me: error: cannot compute sizeof (void *), 77
14686See \`config.log' for more details." >&2;}
14687 { (exit 1); exit 1; }; } ;;
14688esac
247f5006 14689else
e6cc62c6
VS
14690 if test "$cross_compiling" = yes; then
14691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14692See \`config.log' for more details." >&5
14693echo "$as_me: error: cannot run test program while cross compiling
14694See \`config.log' for more details." >&2;}
14695 { (exit 1); exit 1; }; }
14696else
14697 cat >conftest.$ac_ext <<_ACEOF
14698#line $LINENO "configure"
14699/* confdefs.h. */
14700_ACEOF
14701cat confdefs.h >>conftest.$ac_ext
14702cat >>conftest.$ac_ext <<_ACEOF
14703/* end confdefs.h. */
14704$ac_includes_default
14705long longval () { return (long) (sizeof (void *)); }
14706unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14707#include <stdio.h>
e6cc62c6
VS
14708#include <stdlib.h>
14709int
14710main ()
247f5006 14711{
e6cc62c6
VS
14712
14713 FILE *f = fopen ("conftest.val", "w");
14714 if (! f)
14715 exit (1);
14716 if (((long) (sizeof (void *))) < 0)
14717 {
14718 long i = longval ();
14719 if (i != ((long) (sizeof (void *))))
14720 exit (1);
14721 fprintf (f, "%ld\n", i);
14722 }
14723 else
14724 {
14725 unsigned long i = ulongval ();
14726 if (i != ((long) (sizeof (void *))))
14727 exit (1);
14728 fprintf (f, "%lu\n", i);
14729 }
14730 exit (ferror (f) || fclose (f) != 0);
14731
14732 ;
14733 return 0;
5c6fa7d2 14734}
e6cc62c6
VS
14735_ACEOF
14736rm -f conftest$ac_exeext
14737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14738 (eval $ac_link) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_cv_sizeof_void_p=`cat conftest.val`
14748else
14749 echo "$as_me: program exited with status $ac_status" >&5
14750echo "$as_me: failed program was:" >&5
14751sed 's/^/| /' conftest.$ac_ext >&5
14752
14753( exit $ac_status )
14754{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14755See \`config.log' for more details." >&5
14756echo "$as_me: error: cannot compute sizeof (void *), 77
14757See \`config.log' for more details." >&2;}
14758 { (exit 1); exit 1; }; }
14759fi
14760rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14761fi
14762fi
14763rm -f conftest.val
a0b9e27f 14764else
a0b9e27f
MB
14765 ac_cv_sizeof_void_p=0
14766fi
a0b9e27f 14767fi
e6cc62c6
VS
14768echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14769echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14770cat >>confdefs.h <<_ACEOF
14771#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14772_ACEOF
14773
14774
14775echo "$as_me:$LINENO: checking for int" >&5
14776echo $ECHO_N "checking for int... $ECHO_C" >&6
14777if test "${ac_cv_type_int+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779else
14780 cat >conftest.$ac_ext <<_ACEOF
14781#line $LINENO "configure"
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h. */
14787$ac_includes_default
14788int
14789main ()
14790{
14791if ((int *) 0)
14792 return 0;
14793if (sizeof (int))
14794 return 0;
14795 ;
14796 return 0;
14797}
14798_ACEOF
14799rm -f conftest.$ac_objext
14800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801 (eval $ac_compile) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } &&
14805 { ac_try='test -s conftest.$ac_objext'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; }; then
14811 ac_cv_type_int=yes
14812else
14813 echo "$as_me: failed program was:" >&5
14814sed 's/^/| /' conftest.$ac_ext >&5
14815
14816ac_cv_type_int=no
14817fi
14818rm -f conftest.$ac_objext conftest.$ac_ext
14819fi
14820echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14821echo "${ECHO_T}$ac_cv_type_int" >&6
14822
14823echo "$as_me:$LINENO: checking size of int" >&5
14824echo $ECHO_N "checking size of int... $ECHO_C" >&6
14825if test "${ac_cv_sizeof_int+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827else
14828 if test "$ac_cv_type_int" = yes; then
14829 # The cast to unsigned long works around a bug in the HP C Compiler
14830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14832 # This bug is HP SR number 8606223364.
14833 if test "$cross_compiling" = yes; then
14834 # Depending upon the size, compute the lo and hi bounds.
14835cat >conftest.$ac_ext <<_ACEOF
14836#line $LINENO "configure"
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h. */
14842$ac_includes_default
14843int
14844main ()
14845{
14846static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14847test_array [0] = 0
8284b0c5 14848
e6cc62c6
VS
14849 ;
14850 return 0;
14851}
14852_ACEOF
14853rm -f conftest.$ac_objext
14854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 (eval $ac_compile) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -s conftest.$ac_objext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_lo=0 ac_mid=0
14866 while :; do
14867 cat >conftest.$ac_ext <<_ACEOF
14868#line $LINENO "configure"
14869/* confdefs.h. */
14870_ACEOF
14871cat confdefs.h >>conftest.$ac_ext
14872cat >>conftest.$ac_ext <<_ACEOF
14873/* end confdefs.h. */
14874$ac_includes_default
14875int
14876main ()
14877{
14878static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14879test_array [0] = 0
14880
14881 ;
14882 return 0;
14883}
14884_ACEOF
14885rm -f conftest.$ac_objext
14886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14887 (eval $ac_compile) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } &&
14891 { ac_try='test -s conftest.$ac_objext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_hi=$ac_mid; break
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902ac_lo=`expr $ac_mid + 1`
14903 if test $ac_lo -le $ac_mid; then
14904 ac_lo= ac_hi=
14905 break
14906 fi
14907 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14908fi
e6cc62c6
VS
14909rm -f conftest.$ac_objext conftest.$ac_ext
14910 done
14911else
14912 echo "$as_me: failed program was:" >&5
14913sed 's/^/| /' conftest.$ac_ext >&5
14914
14915cat >conftest.$ac_ext <<_ACEOF
14916#line $LINENO "configure"
14917/* confdefs.h. */
14918_ACEOF
14919cat confdefs.h >>conftest.$ac_ext
14920cat >>conftest.$ac_ext <<_ACEOF
14921/* end confdefs.h. */
14922$ac_includes_default
14923int
14924main ()
14925{
14926static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14927test_array [0] = 0
247f5006 14928
e6cc62c6
VS
14929 ;
14930 return 0;
14931}
14932_ACEOF
14933rm -f conftest.$ac_objext
14934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try='test -s conftest.$ac_objext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14945 ac_hi=-1 ac_mid=-1
14946 while :; do
14947 cat >conftest.$ac_ext <<_ACEOF
14948#line $LINENO "configure"
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954$ac_includes_default
14955int
14956main ()
14957{
14958static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14959test_array [0] = 0
247f5006 14960
e6cc62c6
VS
14961 ;
14962 return 0;
14963}
14964_ACEOF
14965rm -f conftest.$ac_objext
14966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -s conftest.$ac_objext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 ac_lo=$ac_mid; break
14978else
14979 echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
14982ac_hi=`expr '(' $ac_mid ')' - 1`
14983 if test $ac_mid -le $ac_hi; then
14984 ac_lo= ac_hi=
14985 break
14986 fi
14987 ac_mid=`expr 2 '*' $ac_mid`
14988fi
14989rm -f conftest.$ac_objext conftest.$ac_ext
14990 done
247f5006 14991else
e6cc62c6
VS
14992 echo "$as_me: failed program was:" >&5
14993sed 's/^/| /' conftest.$ac_ext >&5
14994
14995ac_lo= ac_hi=
14996fi
14997rm -f conftest.$ac_objext conftest.$ac_ext
14998fi
14999rm -f conftest.$ac_objext conftest.$ac_ext
15000# Binary search between lo and hi bounds.
15001while test "x$ac_lo" != "x$ac_hi"; do
15002 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15003 cat >conftest.$ac_ext <<_ACEOF
15004#line $LINENO "configure"
15005/* confdefs.h. */
15006_ACEOF
15007cat confdefs.h >>conftest.$ac_ext
15008cat >>conftest.$ac_ext <<_ACEOF
15009/* end confdefs.h. */
15010$ac_includes_default
15011int
15012main ()
15013{
15014static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15015test_array [0] = 0
15016
15017 ;
15018 return 0;
15019}
15020_ACEOF
15021rm -f conftest.$ac_objext
15022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15023 (eval $ac_compile) 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 ac_hi=$ac_mid
15034else
15035 echo "$as_me: failed program was:" >&5
15036sed 's/^/| /' conftest.$ac_ext >&5
15037
15038ac_lo=`expr '(' $ac_mid ')' + 1`
15039fi
15040rm -f conftest.$ac_objext conftest.$ac_ext
15041done
15042case $ac_lo in
15043?*) ac_cv_sizeof_int=$ac_lo;;
15044'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15045See \`config.log' for more details." >&5
15046echo "$as_me: error: cannot compute sizeof (int), 77
15047See \`config.log' for more details." >&2;}
15048 { (exit 1); exit 1; }; } ;;
15049esac
a0b9e27f 15050else
e6cc62c6
VS
15051 if test "$cross_compiling" = yes; then
15052 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15053See \`config.log' for more details." >&5
15054echo "$as_me: error: cannot run test program while cross compiling
15055See \`config.log' for more details." >&2;}
15056 { (exit 1); exit 1; }; }
15057else
15058 cat >conftest.$ac_ext <<_ACEOF
15059#line $LINENO "configure"
15060/* confdefs.h. */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h. */
15065$ac_includes_default
15066long longval () { return (long) (sizeof (int)); }
15067unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15068#include <stdio.h>
e6cc62c6
VS
15069#include <stdlib.h>
15070int
15071main ()
247f5006 15072{
e6cc62c6
VS
15073
15074 FILE *f = fopen ("conftest.val", "w");
15075 if (! f)
15076 exit (1);
15077 if (((long) (sizeof (int))) < 0)
15078 {
15079 long i = longval ();
15080 if (i != ((long) (sizeof (int))))
15081 exit (1);
15082 fprintf (f, "%ld\n", i);
15083 }
15084 else
15085 {
15086 unsigned long i = ulongval ();
15087 if (i != ((long) (sizeof (int))))
15088 exit (1);
15089 fprintf (f, "%lu\n", i);
15090 }
15091 exit (ferror (f) || fclose (f) != 0);
15092
15093 ;
15094 return 0;
247f5006 15095}
e6cc62c6
VS
15096_ACEOF
15097rm -f conftest$ac_exeext
15098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15099 (eval $ac_link) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_cv_sizeof_int=`cat conftest.val`
15109else
15110 echo "$as_me: program exited with status $ac_status" >&5
15111echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114( exit $ac_status )
15115{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15116See \`config.log' for more details." >&5
15117echo "$as_me: error: cannot compute sizeof (int), 77
15118See \`config.log' for more details." >&2;}
15119 { (exit 1); exit 1; }; }
15120fi
15121rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15122fi
15123fi
15124rm -f conftest.val
6f72b082 15125else
a0b9e27f 15126 ac_cv_sizeof_int=0
21d1c967 15127fi
698dcdb6 15128fi
e6cc62c6
VS
15129echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15130echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15131cat >>confdefs.h <<_ACEOF
15132#define SIZEOF_INT $ac_cv_sizeof_int
15133_ACEOF
15134
15135
15136echo "$as_me:$LINENO: checking for long" >&5
15137echo $ECHO_N "checking for long... $ECHO_C" >&6
15138if test "${ac_cv_type_long+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15140else
15141 cat >conftest.$ac_ext <<_ACEOF
15142#line $LINENO "configure"
15143/* confdefs.h. */
15144_ACEOF
15145cat confdefs.h >>conftest.$ac_ext
15146cat >>conftest.$ac_ext <<_ACEOF
15147/* end confdefs.h. */
15148$ac_includes_default
15149int
15150main ()
15151{
15152if ((long *) 0)
15153 return 0;
15154if (sizeof (long))
15155 return 0;
15156 ;
15157 return 0;
15158}
15159_ACEOF
15160rm -f conftest.$ac_objext
15161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162 (eval $ac_compile) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -s conftest.$ac_objext'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_cv_type_long=yes
15173else
15174 echo "$as_me: failed program was:" >&5
15175sed 's/^/| /' conftest.$ac_ext >&5
15176
15177ac_cv_type_long=no
15178fi
15179rm -f conftest.$ac_objext conftest.$ac_ext
15180fi
15181echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15182echo "${ECHO_T}$ac_cv_type_long" >&6
15183
15184echo "$as_me:$LINENO: checking size of long" >&5
15185echo $ECHO_N "checking size of long... $ECHO_C" >&6
15186if test "${ac_cv_sizeof_long+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15188else
15189 if test "$ac_cv_type_long" = yes; then
15190 # The cast to unsigned long works around a bug in the HP C Compiler
15191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15193 # This bug is HP SR number 8606223364.
15194 if test "$cross_compiling" = yes; then
15195 # Depending upon the size, compute the lo and hi bounds.
15196cat >conftest.$ac_ext <<_ACEOF
15197#line $LINENO "configure"
15198/* confdefs.h. */
15199_ACEOF
15200cat confdefs.h >>conftest.$ac_ext
15201cat >>conftest.$ac_ext <<_ACEOF
15202/* end confdefs.h. */
15203$ac_includes_default
15204int
15205main ()
15206{
15207static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15208test_array [0] = 0
15209
15210 ;
15211 return 0;
15212}
15213_ACEOF
15214rm -f conftest.$ac_objext
15215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15216 (eval $ac_compile) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -s conftest.$ac_objext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_lo=0 ac_mid=0
15227 while :; do
15228 cat >conftest.$ac_ext <<_ACEOF
15229#line $LINENO "configure"
15230/* confdefs.h. */
15231_ACEOF
15232cat confdefs.h >>conftest.$ac_ext
15233cat >>conftest.$ac_ext <<_ACEOF
15234/* end confdefs.h. */
15235$ac_includes_default
15236int
15237main ()
15238{
15239static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15240test_array [0] = 0
4f14bcd8 15241
e6cc62c6
VS
15242 ;
15243 return 0;
15244}
15245_ACEOF
15246rm -f conftest.$ac_objext
15247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15248 (eval $ac_compile) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -s conftest.$ac_objext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_hi=$ac_mid; break
15259else
15260 echo "$as_me: failed program was:" >&5
15261sed 's/^/| /' conftest.$ac_ext >&5
15262
15263ac_lo=`expr $ac_mid + 1`
15264 if test $ac_lo -le $ac_mid; then
15265 ac_lo= ac_hi=
15266 break
15267 fi
15268 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15269fi
e6cc62c6
VS
15270rm -f conftest.$ac_objext conftest.$ac_ext
15271 done
15272else
15273 echo "$as_me: failed program was:" >&5
15274sed 's/^/| /' conftest.$ac_ext >&5
15275
15276cat >conftest.$ac_ext <<_ACEOF
15277#line $LINENO "configure"
15278/* confdefs.h. */
15279_ACEOF
15280cat confdefs.h >>conftest.$ac_ext
15281cat >>conftest.$ac_ext <<_ACEOF
15282/* end confdefs.h. */
15283$ac_includes_default
15284int
15285main ()
15286{
15287static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15288test_array [0] = 0
4f14bcd8 15289
e6cc62c6
VS
15290 ;
15291 return 0;
15292}
15293_ACEOF
15294rm -f conftest.$ac_objext
15295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15296 (eval $ac_compile) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try='test -s conftest.$ac_objext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_hi=-1 ac_mid=-1
15307 while :; do
15308 cat >conftest.$ac_ext <<_ACEOF
15309#line $LINENO "configure"
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315$ac_includes_default
15316int
15317main ()
15318{
15319static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15320test_array [0] = 0
5c6fa7d2 15321
e6cc62c6
VS
15322 ;
15323 return 0;
15324}
15325_ACEOF
15326rm -f conftest.$ac_objext
15327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -s conftest.$ac_objext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 ac_lo=$ac_mid; break
15339else
15340 echo "$as_me: failed program was:" >&5
15341sed 's/^/| /' conftest.$ac_ext >&5
15342
15343ac_hi=`expr '(' $ac_mid ')' - 1`
15344 if test $ac_mid -le $ac_hi; then
15345 ac_lo= ac_hi=
15346 break
15347 fi
15348 ac_mid=`expr 2 '*' $ac_mid`
15349fi
15350rm -f conftest.$ac_objext conftest.$ac_ext
15351 done
247f5006 15352else
e6cc62c6
VS
15353 echo "$as_me: failed program was:" >&5
15354sed 's/^/| /' conftest.$ac_ext >&5
15355
15356ac_lo= ac_hi=
15357fi
15358rm -f conftest.$ac_objext conftest.$ac_ext
15359fi
15360rm -f conftest.$ac_objext conftest.$ac_ext
15361# Binary search between lo and hi bounds.
15362while test "x$ac_lo" != "x$ac_hi"; do
15363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15364 cat >conftest.$ac_ext <<_ACEOF
15365#line $LINENO "configure"
15366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
15370/* end confdefs.h. */
15371$ac_includes_default
15372int
15373main ()
15374{
15375static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15376test_array [0] = 0
15377
15378 ;
15379 return 0;
15380}
15381_ACEOF
15382rm -f conftest.$ac_objext
15383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15384 (eval $ac_compile) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }; then
15394 ac_hi=$ac_mid
15395else
15396 echo "$as_me: failed program was:" >&5
15397sed 's/^/| /' conftest.$ac_ext >&5
15398
15399ac_lo=`expr '(' $ac_mid ')' + 1`
15400fi
15401rm -f conftest.$ac_objext conftest.$ac_ext
15402done
15403case $ac_lo in
15404?*) ac_cv_sizeof_long=$ac_lo;;
15405'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15406See \`config.log' for more details." >&5
15407echo "$as_me: error: cannot compute sizeof (long), 77
15408See \`config.log' for more details." >&2;}
15409 { (exit 1); exit 1; }; } ;;
15410esac
247f5006 15411else
e6cc62c6
VS
15412 if test "$cross_compiling" = yes; then
15413 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15414See \`config.log' for more details." >&5
15415echo "$as_me: error: cannot run test program while cross compiling
15416See \`config.log' for more details." >&2;}
15417 { (exit 1); exit 1; }; }
15418else
15419 cat >conftest.$ac_ext <<_ACEOF
15420#line $LINENO "configure"
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426$ac_includes_default
15427long longval () { return (long) (sizeof (long)); }
15428unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15429#include <stdio.h>
e6cc62c6
VS
15430#include <stdlib.h>
15431int
15432main ()
247f5006 15433{
e6cc62c6
VS
15434
15435 FILE *f = fopen ("conftest.val", "w");
15436 if (! f)
15437 exit (1);
15438 if (((long) (sizeof (long))) < 0)
15439 {
15440 long i = longval ();
15441 if (i != ((long) (sizeof (long))))
15442 exit (1);
15443 fprintf (f, "%ld\n", i);
15444 }
15445 else
15446 {
15447 unsigned long i = ulongval ();
15448 if (i != ((long) (sizeof (long))))
15449 exit (1);
15450 fprintf (f, "%lu\n", i);
15451 }
15452 exit (ferror (f) || fclose (f) != 0);
15453
15454 ;
15455 return 0;
247f5006 15456}
e6cc62c6
VS
15457_ACEOF
15458rm -f conftest$ac_exeext
15459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15460 (eval $ac_link) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 ac_cv_sizeof_long=`cat conftest.val`
15470else
15471 echo "$as_me: program exited with status $ac_status" >&5
15472echo "$as_me: failed program was:" >&5
15473sed 's/^/| /' conftest.$ac_ext >&5
15474
15475( exit $ac_status )
15476{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15477See \`config.log' for more details." >&5
15478echo "$as_me: error: cannot compute sizeof (long), 77
15479See \`config.log' for more details." >&2;}
15480 { (exit 1); exit 1; }; }
15481fi
15482rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15483fi
15484fi
15485rm -f conftest.val
247f5006 15486else
a0b9e27f 15487 ac_cv_sizeof_long=0
247f5006 15488fi
247f5006 15489fi
e6cc62c6
VS
15490echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15491echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15492cat >>confdefs.h <<_ACEOF
a0b9e27f 15493#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15494_ACEOF
247f5006 15495
a0b9e27f
MB
15496
15497
15498case "${host}" in
15499 arm-*-linux* )
e6cc62c6
VS
15500 echo "$as_me:$LINENO: checking for long long" >&5
15501echo $ECHO_N "checking for long long... $ECHO_C" >&6
15502if test "${ac_cv_type_long_long+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504else
15505 cat >conftest.$ac_ext <<_ACEOF
15506#line $LINENO "configure"
15507/* confdefs.h. */
15508_ACEOF
15509cat confdefs.h >>conftest.$ac_ext
15510cat >>conftest.$ac_ext <<_ACEOF
15511/* end confdefs.h. */
15512$ac_includes_default
15513int
15514main ()
15515{
15516if ((long long *) 0)
15517 return 0;
15518if (sizeof (long long))
15519 return 0;
15520 ;
15521 return 0;
15522}
15523_ACEOF
15524rm -f conftest.$ac_objext
15525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15526 (eval $ac_compile) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -s conftest.$ac_objext'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_cv_type_long_long=yes
15537else
15538 echo "$as_me: failed program was:" >&5
15539sed 's/^/| /' conftest.$ac_ext >&5
15540
15541ac_cv_type_long_long=no
15542fi
15543rm -f conftest.$ac_objext conftest.$ac_ext
15544fi
15545echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15546echo "${ECHO_T}$ac_cv_type_long_long" >&6
15547
15548echo "$as_me:$LINENO: checking size of long long" >&5
15549echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15550if test "${ac_cv_sizeof_long_long+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552else
15553 if test "$ac_cv_type_long_long" = yes; then
15554 # The cast to unsigned long works around a bug in the HP C Compiler
15555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15557 # This bug is HP SR number 8606223364.
a0b9e27f 15558 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15559 # Depending upon the size, compute the lo and hi bounds.
15560cat >conftest.$ac_ext <<_ACEOF
15561#line $LINENO "configure"
15562/* confdefs.h. */
15563_ACEOF
15564cat confdefs.h >>conftest.$ac_ext
15565cat >>conftest.$ac_ext <<_ACEOF
15566/* end confdefs.h. */
15567$ac_includes_default
15568int
15569main ()
15570{
15571static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15572test_array [0] = 0
15573
15574 ;
15575 return 0;
15576}
15577_ACEOF
15578rm -f conftest.$ac_objext
15579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -s conftest.$ac_objext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_lo=0 ac_mid=0
15591 while :; do
15592 cat >conftest.$ac_ext <<_ACEOF
15593#line $LINENO "configure"
15594/* confdefs.h. */
15595_ACEOF
15596cat confdefs.h >>conftest.$ac_ext
15597cat >>conftest.$ac_ext <<_ACEOF
15598/* end confdefs.h. */
15599$ac_includes_default
15600int
15601main ()
15602{
15603static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15604test_array [0] = 0
15605
15606 ;
15607 return 0;
15608}
15609_ACEOF
15610rm -f conftest.$ac_objext
15611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15612 (eval $ac_compile) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -s conftest.$ac_objext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_hi=$ac_mid; break
15623else
15624 echo "$as_me: failed program was:" >&5
15625sed 's/^/| /' conftest.$ac_ext >&5
15626
15627ac_lo=`expr $ac_mid + 1`
15628 if test $ac_lo -le $ac_mid; then
15629 ac_lo= ac_hi=
15630 break
15631 fi
15632 ac_mid=`expr 2 '*' $ac_mid + 1`
15633fi
15634rm -f conftest.$ac_objext conftest.$ac_ext
15635 done
15636else
15637 echo "$as_me: failed program was:" >&5
15638sed 's/^/| /' conftest.$ac_ext >&5
15639
15640cat >conftest.$ac_ext <<_ACEOF
15641#line $LINENO "configure"
15642/* confdefs.h. */
15643_ACEOF
15644cat confdefs.h >>conftest.$ac_ext
15645cat >>conftest.$ac_ext <<_ACEOF
15646/* end confdefs.h. */
15647$ac_includes_default
15648int
15649main ()
15650{
15651static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15652test_array [0] = 0
15653
15654 ;
15655 return 0;
15656}
15657_ACEOF
15658rm -f conftest.$ac_objext
15659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15660 (eval $ac_compile) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -s conftest.$ac_objext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_hi=-1 ac_mid=-1
15671 while :; do
15672 cat >conftest.$ac_ext <<_ACEOF
15673#line $LINENO "configure"
15674/* confdefs.h. */
15675_ACEOF
15676cat confdefs.h >>conftest.$ac_ext
15677cat >>conftest.$ac_ext <<_ACEOF
15678/* end confdefs.h. */
15679$ac_includes_default
15680int
15681main ()
15682{
15683static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15684test_array [0] = 0
15685
15686 ;
15687 return 0;
15688}
15689_ACEOF
15690rm -f conftest.$ac_objext
15691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15692 (eval $ac_compile) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } &&
15696 { ac_try='test -s conftest.$ac_objext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_lo=$ac_mid; break
15703else
15704 echo "$as_me: failed program was:" >&5
15705sed 's/^/| /' conftest.$ac_ext >&5
15706
15707ac_hi=`expr '(' $ac_mid ')' - 1`
15708 if test $ac_mid -le $ac_hi; then
15709 ac_lo= ac_hi=
15710 break
15711 fi
15712 ac_mid=`expr 2 '*' $ac_mid`
15713fi
15714rm -f conftest.$ac_objext conftest.$ac_ext
15715 done
15716else
15717 echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
15720ac_lo= ac_hi=
15721fi
15722rm -f conftest.$ac_objext conftest.$ac_ext
15723fi
15724rm -f conftest.$ac_objext conftest.$ac_ext
15725# Binary search between lo and hi bounds.
15726while test "x$ac_lo" != "x$ac_hi"; do
15727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15728 cat >conftest.$ac_ext <<_ACEOF
15729#line $LINENO "configure"
15730/* confdefs.h. */
15731_ACEOF
15732cat confdefs.h >>conftest.$ac_ext
15733cat >>conftest.$ac_ext <<_ACEOF
15734/* end confdefs.h. */
15735$ac_includes_default
15736int
15737main ()
15738{
15739static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15740test_array [0] = 0
15741
15742 ;
15743 return 0;
15744}
15745_ACEOF
15746rm -f conftest.$ac_objext
15747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15748 (eval $ac_compile) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } &&
15752 { ac_try='test -s conftest.$ac_objext'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; }; then
15758 ac_hi=$ac_mid
15759else
15760 echo "$as_me: failed program was:" >&5
15761sed 's/^/| /' conftest.$ac_ext >&5
15762
15763ac_lo=`expr '(' $ac_mid ')' + 1`
15764fi
15765rm -f conftest.$ac_objext conftest.$ac_ext
15766done
15767case $ac_lo in
15768?*) ac_cv_sizeof_long_long=$ac_lo;;
15769'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15770See \`config.log' for more details." >&5
15771echo "$as_me: error: cannot compute sizeof (long long), 77
15772See \`config.log' for more details." >&2;}
15773 { (exit 1); exit 1; }; } ;;
15774esac
a0b9e27f 15775else
e6cc62c6
VS
15776 if test "$cross_compiling" = yes; then
15777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15778See \`config.log' for more details." >&5
15779echo "$as_me: error: cannot run test program while cross compiling
15780See \`config.log' for more details." >&2;}
15781 { (exit 1); exit 1; }; }
15782else
15783 cat >conftest.$ac_ext <<_ACEOF
15784#line $LINENO "configure"
15785/* confdefs.h. */
15786_ACEOF
15787cat confdefs.h >>conftest.$ac_ext
15788cat >>conftest.$ac_ext <<_ACEOF
15789/* end confdefs.h. */
15790$ac_includes_default
15791long longval () { return (long) (sizeof (long long)); }
15792unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15793#include <stdio.h>
e6cc62c6
VS
15794#include <stdlib.h>
15795int
15796main ()
247f5006 15797{
e6cc62c6
VS
15798
15799 FILE *f = fopen ("conftest.val", "w");
15800 if (! f)
15801 exit (1);
15802 if (((long) (sizeof (long long))) < 0)
15803 {
15804 long i = longval ();
15805 if (i != ((long) (sizeof (long long))))
15806 exit (1);
15807 fprintf (f, "%ld\n", i);
15808 }
15809 else
15810 {
15811 unsigned long i = ulongval ();
15812 if (i != ((long) (sizeof (long long))))
15813 exit (1);
15814 fprintf (f, "%lu\n", i);
15815 }
15816 exit (ferror (f) || fclose (f) != 0);
15817
15818 ;
15819 return 0;
247f5006 15820}
e6cc62c6
VS
15821_ACEOF
15822rm -f conftest$ac_exeext
15823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15824 (eval $ac_link) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 ac_cv_sizeof_long_long=`cat conftest.val`
15834else
15835 echo "$as_me: program exited with status $ac_status" >&5
15836echo "$as_me: failed program was:" >&5
15837sed 's/^/| /' conftest.$ac_ext >&5
15838
15839( exit $ac_status )
15840{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15841See \`config.log' for more details." >&5
15842echo "$as_me: error: cannot compute sizeof (long long), 77
15843See \`config.log' for more details." >&2;}
15844 { (exit 1); exit 1; }; }
15845fi
15846rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15847fi
15848fi
15849rm -f conftest.val
7b4a847f 15850else
a0b9e27f 15851 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15852fi
15853fi
e6cc62c6
VS
15854echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15855echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15856cat >>confdefs.h <<_ACEOF
15857#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15858_ACEOF
15859
15860
15861 ;;
15862 *-hp-hpux* )
15863 echo "$as_me:$LINENO: checking for long long" >&5
15864echo $ECHO_N "checking for long long... $ECHO_C" >&6
15865if test "${ac_cv_type_long_long+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15867else
15868 cat >conftest.$ac_ext <<_ACEOF
15869#line $LINENO "configure"
15870/* confdefs.h. */
15871_ACEOF
15872cat confdefs.h >>conftest.$ac_ext
15873cat >>conftest.$ac_ext <<_ACEOF
15874/* end confdefs.h. */
15875$ac_includes_default
15876int
15877main ()
15878{
15879if ((long long *) 0)
15880 return 0;
15881if (sizeof (long long))
15882 return 0;
15883 ;
15884 return 0;
15885}
15886_ACEOF
15887rm -f conftest.$ac_objext
15888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_cv_type_long_long=yes
15900else
15901 echo "$as_me: failed program was:" >&5
15902sed 's/^/| /' conftest.$ac_ext >&5
15903
15904ac_cv_type_long_long=no
15905fi
15906rm -f conftest.$ac_objext conftest.$ac_ext
15907fi
15908echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15909echo "${ECHO_T}$ac_cv_type_long_long" >&6
15910
15911echo "$as_me:$LINENO: checking size of long long" >&5
15912echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15913if test "${ac_cv_sizeof_long_long+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15915else
15916 if test "$ac_cv_type_long_long" = yes; then
15917 # The cast to unsigned long works around a bug in the HP C Compiler
15918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15920 # This bug is HP SR number 8606223364.
15921 if test "$cross_compiling" = yes; then
15922 # Depending upon the size, compute the lo and hi bounds.
15923cat >conftest.$ac_ext <<_ACEOF
15924#line $LINENO "configure"
15925/* confdefs.h. */
15926_ACEOF
15927cat confdefs.h >>conftest.$ac_ext
15928cat >>conftest.$ac_ext <<_ACEOF
15929/* end confdefs.h. */
15930$ac_includes_default
15931int
15932main ()
15933{
15934static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15935test_array [0] = 0
15936
15937 ;
15938 return 0;
15939}
15940_ACEOF
15941rm -f conftest.$ac_objext
15942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943 (eval $ac_compile) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try='test -s conftest.$ac_objext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_lo=0 ac_mid=0
15954 while :; do
15955 cat >conftest.$ac_ext <<_ACEOF
15956#line $LINENO "configure"
15957/* confdefs.h. */
15958_ACEOF
15959cat confdefs.h >>conftest.$ac_ext
15960cat >>conftest.$ac_ext <<_ACEOF
15961/* end confdefs.h. */
15962$ac_includes_default
15963int
15964main ()
15965{
15966static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15967test_array [0] = 0
8284b0c5 15968
e6cc62c6
VS
15969 ;
15970 return 0;
15971}
15972_ACEOF
15973rm -f conftest.$ac_objext
15974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15975 (eval $ac_compile) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
15979 { ac_try='test -s conftest.$ac_objext'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_hi=$ac_mid; break
15986else
15987 echo "$as_me: failed program was:" >&5
15988sed 's/^/| /' conftest.$ac_ext >&5
15989
15990ac_lo=`expr $ac_mid + 1`
15991 if test $ac_lo -le $ac_mid; then
15992 ac_lo= ac_hi=
15993 break
15994 fi
15995 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15996fi
e6cc62c6
VS
15997rm -f conftest.$ac_objext conftest.$ac_ext
15998 done
15999else
16000 echo "$as_me: failed program was:" >&5
16001sed 's/^/| /' conftest.$ac_ext >&5
16002
16003cat >conftest.$ac_ext <<_ACEOF
16004#line $LINENO "configure"
16005/* confdefs.h. */
16006_ACEOF
16007cat confdefs.h >>conftest.$ac_ext
16008cat >>conftest.$ac_ext <<_ACEOF
16009/* end confdefs.h. */
16010$ac_includes_default
16011int
16012main ()
16013{
16014static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16015test_array [0] = 0
a0b9e27f 16016
e6cc62c6
VS
16017 ;
16018 return 0;
16019}
16020_ACEOF
16021rm -f conftest.$ac_objext
16022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16023 (eval $ac_compile) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -s conftest.$ac_objext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_hi=-1 ac_mid=-1
16034 while :; do
16035 cat >conftest.$ac_ext <<_ACEOF
16036#line $LINENO "configure"
16037/* confdefs.h. */
16038_ACEOF
16039cat confdefs.h >>conftest.$ac_ext
16040cat >>conftest.$ac_ext <<_ACEOF
16041/* end confdefs.h. */
16042$ac_includes_default
16043int
16044main ()
16045{
16046static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16047test_array [0] = 0
a0b9e27f 16048
e6cc62c6
VS
16049 ;
16050 return 0;
16051}
16052_ACEOF
16053rm -f conftest.$ac_objext
16054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16055 (eval $ac_compile) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -s conftest.$ac_objext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_lo=$ac_mid; break
16066else
16067 echo "$as_me: failed program was:" >&5
16068sed 's/^/| /' conftest.$ac_ext >&5
16069
16070ac_hi=`expr '(' $ac_mid ')' - 1`
16071 if test $ac_mid -le $ac_hi; then
16072 ac_lo= ac_hi=
16073 break
16074 fi
16075 ac_mid=`expr 2 '*' $ac_mid`
16076fi
16077rm -f conftest.$ac_objext conftest.$ac_ext
16078 done
8284b0c5 16079else
e6cc62c6
VS
16080 echo "$as_me: failed program was:" >&5
16081sed 's/^/| /' conftest.$ac_ext >&5
16082
16083ac_lo= ac_hi=
16084fi
16085rm -f conftest.$ac_objext conftest.$ac_ext
16086fi
16087rm -f conftest.$ac_objext conftest.$ac_ext
16088# Binary search between lo and hi bounds.
16089while test "x$ac_lo" != "x$ac_hi"; do
16090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16091 cat >conftest.$ac_ext <<_ACEOF
16092#line $LINENO "configure"
16093/* confdefs.h. */
16094_ACEOF
16095cat confdefs.h >>conftest.$ac_ext
16096cat >>conftest.$ac_ext <<_ACEOF
16097/* end confdefs.h. */
16098$ac_includes_default
16099int
16100main ()
16101{
16102static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16103test_array [0] = 0
16104
16105 ;
16106 return 0;
16107}
16108_ACEOF
16109rm -f conftest.$ac_objext
16110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16111 (eval $ac_compile) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -s conftest.$ac_objext'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_hi=$ac_mid
16122else
16123 echo "$as_me: failed program was:" >&5
16124sed 's/^/| /' conftest.$ac_ext >&5
16125
16126ac_lo=`expr '(' $ac_mid ')' + 1`
16127fi
16128rm -f conftest.$ac_objext conftest.$ac_ext
16129done
16130case $ac_lo in
16131?*) ac_cv_sizeof_long_long=$ac_lo;;
16132'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16133See \`config.log' for more details." >&5
16134echo "$as_me: error: cannot compute sizeof (long long), 77
16135See \`config.log' for more details." >&2;}
16136 { (exit 1); exit 1; }; } ;;
16137esac
8284b0c5 16138else
e6cc62c6
VS
16139 if test "$cross_compiling" = yes; then
16140 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16141See \`config.log' for more details." >&5
16142echo "$as_me: error: cannot run test program while cross compiling
16143See \`config.log' for more details." >&2;}
16144 { (exit 1); exit 1; }; }
16145else
16146 cat >conftest.$ac_ext <<_ACEOF
16147#line $LINENO "configure"
16148/* confdefs.h. */
16149_ACEOF
16150cat confdefs.h >>conftest.$ac_ext
16151cat >>conftest.$ac_ext <<_ACEOF
16152/* end confdefs.h. */
16153$ac_includes_default
16154long longval () { return (long) (sizeof (long long)); }
16155unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16156#include <stdio.h>
e6cc62c6
VS
16157#include <stdlib.h>
16158int
16159main ()
8284b0c5 16160{
e6cc62c6
VS
16161
16162 FILE *f = fopen ("conftest.val", "w");
16163 if (! f)
16164 exit (1);
16165 if (((long) (sizeof (long long))) < 0)
16166 {
16167 long i = longval ();
16168 if (i != ((long) (sizeof (long long))))
16169 exit (1);
16170 fprintf (f, "%ld\n", i);
16171 }
16172 else
16173 {
16174 unsigned long i = ulongval ();
16175 if (i != ((long) (sizeof (long long))))
16176 exit (1);
16177 fprintf (f, "%lu\n", i);
16178 }
16179 exit (ferror (f) || fclose (f) != 0);
16180
16181 ;
16182 return 0;
8284b0c5 16183}
e6cc62c6
VS
16184_ACEOF
16185rm -f conftest$ac_exeext
16186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16187 (eval $ac_link) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_cv_sizeof_long_long=`cat conftest.val`
16197else
16198 echo "$as_me: program exited with status $ac_status" >&5
16199echo "$as_me: failed program was:" >&5
16200sed 's/^/| /' conftest.$ac_ext >&5
16201
16202( exit $ac_status )
16203{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16204See \`config.log' for more details." >&5
16205echo "$as_me: error: cannot compute sizeof (long long), 77
16206See \`config.log' for more details." >&2;}
16207 { (exit 1); exit 1; }; }
16208fi
16209rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16210fi
16211fi
16212rm -f conftest.val
5c6fa7d2
RR
16213else
16214 ac_cv_sizeof_long_long=0
52127426 16215fi
4f57cf11 16216fi
e6cc62c6
VS
16217echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16218echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16219cat >>confdefs.h <<_ACEOF
4f57cf11 16220#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16221_ACEOF
4f57cf11
GD
16222
16223
16224 if test "$ac_cv_sizeof_long_long" != "0"; then
16225 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16226 fi
16227 ;;
16228 * )
e6cc62c6
VS
16229 echo "$as_me:$LINENO: checking for long long" >&5
16230echo $ECHO_N "checking for long long... $ECHO_C" >&6
16231if test "${ac_cv_type_long_long+set}" = set; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16233else
16234 cat >conftest.$ac_ext <<_ACEOF
16235#line $LINENO "configure"
16236/* confdefs.h. */
16237_ACEOF
16238cat confdefs.h >>conftest.$ac_ext
16239cat >>conftest.$ac_ext <<_ACEOF
16240/* end confdefs.h. */
16241$ac_includes_default
16242int
16243main ()
16244{
16245if ((long long *) 0)
16246 return 0;
16247if (sizeof (long long))
16248 return 0;
16249 ;
16250 return 0;
16251}
16252_ACEOF
16253rm -f conftest.$ac_objext
16254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16255 (eval $ac_compile) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } &&
16259 { ac_try='test -s conftest.$ac_objext'
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 ac_cv_type_long_long=yes
16266else
16267 echo "$as_me: failed program was:" >&5
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
16270ac_cv_type_long_long=no
16271fi
16272rm -f conftest.$ac_objext conftest.$ac_ext
16273fi
16274echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16275echo "${ECHO_T}$ac_cv_type_long_long" >&6
16276
16277echo "$as_me:$LINENO: checking size of long long" >&5
16278echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16279if test "${ac_cv_sizeof_long_long+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16281else
16282 if test "$ac_cv_type_long_long" = yes; then
16283 # The cast to unsigned long works around a bug in the HP C Compiler
16284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16286 # This bug is HP SR number 8606223364.
4f57cf11 16287 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16288 # Depending upon the size, compute the lo and hi bounds.
16289cat >conftest.$ac_ext <<_ACEOF
16290#line $LINENO "configure"
16291/* confdefs.h. */
16292_ACEOF
16293cat confdefs.h >>conftest.$ac_ext
16294cat >>conftest.$ac_ext <<_ACEOF
16295/* end confdefs.h. */
16296$ac_includes_default
16297int
16298main ()
16299{
16300static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16301test_array [0] = 0
16302
16303 ;
16304 return 0;
16305}
16306_ACEOF
16307rm -f conftest.$ac_objext
16308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16309 (eval $ac_compile) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
16313 { ac_try='test -s conftest.$ac_objext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_lo=0 ac_mid=0
16320 while :; do
16321 cat >conftest.$ac_ext <<_ACEOF
16322#line $LINENO "configure"
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
16328$ac_includes_default
16329int
16330main ()
16331{
16332static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16333test_array [0] = 0
16334
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339rm -f conftest.$ac_objext
16340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16341 (eval $ac_compile) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -s conftest.$ac_objext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_hi=$ac_mid; break
16352else
16353 echo "$as_me: failed program was:" >&5
16354sed 's/^/| /' conftest.$ac_ext >&5
16355
16356ac_lo=`expr $ac_mid + 1`
16357 if test $ac_lo -le $ac_mid; then
16358 ac_lo= ac_hi=
16359 break
16360 fi
16361 ac_mid=`expr 2 '*' $ac_mid + 1`
16362fi
16363rm -f conftest.$ac_objext conftest.$ac_ext
16364 done
16365else
16366 echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
16369cat >conftest.$ac_ext <<_ACEOF
16370#line $LINENO "configure"
16371/* confdefs.h. */
16372_ACEOF
16373cat confdefs.h >>conftest.$ac_ext
16374cat >>conftest.$ac_ext <<_ACEOF
16375/* end confdefs.h. */
16376$ac_includes_default
16377int
16378main ()
16379{
16380static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16381test_array [0] = 0
16382
16383 ;
16384 return 0;
16385}
16386_ACEOF
16387rm -f conftest.$ac_objext
16388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389 (eval $ac_compile) 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
16393 { ac_try='test -s conftest.$ac_objext'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; }; then
16399 ac_hi=-1 ac_mid=-1
16400 while :; do
16401 cat >conftest.$ac_ext <<_ACEOF
16402#line $LINENO "configure"
16403/* confdefs.h. */
16404_ACEOF
16405cat confdefs.h >>conftest.$ac_ext
16406cat >>conftest.$ac_ext <<_ACEOF
16407/* end confdefs.h. */
16408$ac_includes_default
16409int
16410main ()
16411{
16412static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16413test_array [0] = 0
16414
16415 ;
16416 return 0;
16417}
16418_ACEOF
16419rm -f conftest.$ac_objext
16420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16421 (eval $ac_compile) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
16425 { ac_try='test -s conftest.$ac_objext'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; }; then
16431 ac_lo=$ac_mid; break
16432else
16433 echo "$as_me: failed program was:" >&5
16434sed 's/^/| /' conftest.$ac_ext >&5
16435
16436ac_hi=`expr '(' $ac_mid ')' - 1`
16437 if test $ac_mid -le $ac_hi; then
16438 ac_lo= ac_hi=
16439 break
16440 fi
16441 ac_mid=`expr 2 '*' $ac_mid`
16442fi
16443rm -f conftest.$ac_objext conftest.$ac_ext
16444 done
4f57cf11 16445else
e6cc62c6
VS
16446 echo "$as_me: failed program was:" >&5
16447sed 's/^/| /' conftest.$ac_ext >&5
16448
16449ac_lo= ac_hi=
16450fi
16451rm -f conftest.$ac_objext conftest.$ac_ext
16452fi
16453rm -f conftest.$ac_objext conftest.$ac_ext
16454# Binary search between lo and hi bounds.
16455while test "x$ac_lo" != "x$ac_hi"; do
16456 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16457 cat >conftest.$ac_ext <<_ACEOF
16458#line $LINENO "configure"
16459/* confdefs.h. */
16460_ACEOF
16461cat confdefs.h >>conftest.$ac_ext
16462cat >>conftest.$ac_ext <<_ACEOF
16463/* end confdefs.h. */
16464$ac_includes_default
16465int
16466main ()
16467{
16468static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16469test_array [0] = 0
16470
16471 ;
16472 return 0;
16473}
16474_ACEOF
16475rm -f conftest.$ac_objext
16476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16477 (eval $ac_compile) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_hi=$ac_mid
16488else
16489 echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492ac_lo=`expr '(' $ac_mid ')' + 1`
16493fi
16494rm -f conftest.$ac_objext conftest.$ac_ext
16495done
16496case $ac_lo in
16497?*) ac_cv_sizeof_long_long=$ac_lo;;
16498'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16499See \`config.log' for more details." >&5
16500echo "$as_me: error: cannot compute sizeof (long long), 77
16501See \`config.log' for more details." >&2;}
16502 { (exit 1); exit 1; }; } ;;
16503esac
16504else
16505 if test "$cross_compiling" = yes; then
16506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16507See \`config.log' for more details." >&5
16508echo "$as_me: error: cannot run test program while cross compiling
16509See \`config.log' for more details." >&2;}
16510 { (exit 1); exit 1; }; }
16511else
16512 cat >conftest.$ac_ext <<_ACEOF
16513#line $LINENO "configure"
16514/* confdefs.h. */
16515_ACEOF
16516cat confdefs.h >>conftest.$ac_ext
16517cat >>conftest.$ac_ext <<_ACEOF
16518/* end confdefs.h. */
16519$ac_includes_default
16520long longval () { return (long) (sizeof (long long)); }
16521unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16522#include <stdio.h>
e6cc62c6
VS
16523#include <stdlib.h>
16524int
16525main ()
4f57cf11 16526{
e6cc62c6
VS
16527
16528 FILE *f = fopen ("conftest.val", "w");
16529 if (! f)
16530 exit (1);
16531 if (((long) (sizeof (long long))) < 0)
16532 {
16533 long i = longval ();
16534 if (i != ((long) (sizeof (long long))))
16535 exit (1);
16536 fprintf (f, "%ld\n", i);
16537 }
16538 else
16539 {
16540 unsigned long i = ulongval ();
16541 if (i != ((long) (sizeof (long long))))
16542 exit (1);
16543 fprintf (f, "%lu\n", i);
16544 }
16545 exit (ferror (f) || fclose (f) != 0);
16546
16547 ;
16548 return 0;
4f57cf11 16549}
e6cc62c6
VS
16550_ACEOF
16551rm -f conftest$ac_exeext
16552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16553 (eval $ac_link) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_cv_sizeof_long_long=`cat conftest.val`
16563else
16564 echo "$as_me: program exited with status $ac_status" >&5
16565echo "$as_me: failed program was:" >&5
16566sed 's/^/| /' conftest.$ac_ext >&5
16567
16568( exit $ac_status )
16569{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16570See \`config.log' for more details." >&5
16571echo "$as_me: error: cannot compute sizeof (long long), 77
16572See \`config.log' for more details." >&2;}
16573 { (exit 1); exit 1; }; }
16574fi
16575rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16576fi
16577fi
16578rm -f conftest.val
4f57cf11 16579else
4f57cf11
GD
16580 ac_cv_sizeof_long_long=0
16581fi
7b4a847f 16582fi
e6cc62c6
VS
16583echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16584echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16585cat >>confdefs.h <<_ACEOF
21d1c967 16586#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16587_ACEOF
9e691f46 16588
8284b0c5 16589
21d1c967
GD
16590esac
16591
e6cc62c6
VS
16592echo "$as_me:$LINENO: checking size of wchar_t" >&5
16593echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16594if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16596else
e6cc62c6 16597
21d1c967 16598 if test "$cross_compiling" = yes; then
e6cc62c6 16599
2b5f62a0
VZ
16600 case "${host}" in
16601 *-pc-msdosdjgpp )
16602 wx_cv_sizeof_wchar_t=0
16603 ;;
16604 * )
16605 wx_cv_sizeof_wchar_t=4
16606 ;;
16607 esac
e6cc62c6
VS
16608
16609
6f72b082 16610else
e6cc62c6
VS
16611 cat >conftest.$ac_ext <<_ACEOF
16612#line $LINENO "configure"
16613/* confdefs.h. */
16614_ACEOF
16615cat confdefs.h >>conftest.$ac_ext
16616cat >>conftest.$ac_ext <<_ACEOF
16617/* end confdefs.h. */
21d1c967 16618
2b5f62a0
VZ
16619 /* DJGPP only has fake wchar_t: */
16620 #ifdef __DJGPP__
16621 # error "fake wchar_t"
16622 #endif
21d1c967
GD
16623 #ifdef HAVE_WCHAR_H
16624 # ifdef __CYGWIN__
16625 # include <stddef.h>
16626 # endif
16627 # include <wchar.h>
16628 #endif
16629 #ifdef HAVE_STDLIB_H
16630 # include <stdlib.h>
16631 #endif
16632 #include <stdio.h>
16633 int main()
16634 {
16635 FILE *f=fopen("conftestval", "w");
16636 if (!f) exit(1);
16637 fprintf(f, "%i", sizeof(wchar_t));
16638 exit(0);
16639 }
e6cc62c6
VS
16640
16641_ACEOF
16642rm -f conftest$ac_exeext
16643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16644 (eval $ac_link) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
21d1c967 16653 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16654else
e6cc62c6
VS
16655 echo "$as_me: program exited with status $ac_status" >&5
16656echo "$as_me: failed program was:" >&5
16657sed 's/^/| /' conftest.$ac_ext >&5
16658
16659( exit $ac_status )
16660wx_cv_sizeof_wchar_t=0
6f72b082 16661fi
e6cc62c6 16662rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16663fi
6f72b082 16664
3f345b47 16665fi
e6cc62c6
VS
16666echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16667echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16668
e6cc62c6 16669cat >>confdefs.h <<_ACEOF
21d1c967 16670#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16671_ACEOF
90dd450c 16672
8284b0c5 16673
21d1c967
GD
16674# Check whether --enable-largefile or --disable-largefile was given.
16675if test "${enable_largefile+set}" = set; then
16676 enableval="$enable_largefile"
3f345b47 16677
e6cc62c6 16678fi;
21d1c967
GD
16679if test "$enable_largefile" != no; then
16680 wx_largefile=no
e6cc62c6
VS
16681
16682 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16683echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16684if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16686else
16687
16688 cat >conftest.$ac_ext <<_ACEOF
16689#line $LINENO "configure"
16690/* confdefs.h. */
16691_ACEOF
16692cat confdefs.h >>conftest.$ac_ext
16693cat >>conftest.$ac_ext <<_ACEOF
16694/* end confdefs.h. */
21d1c967
GD
16695#define _FILE_OFFSET_BITS 64
16696 #include <sys/types.h>
e6cc62c6
VS
16697int
16698main ()
16699{
21d1c967
GD
16700typedef struct {
16701 unsigned int field: sizeof(off_t) == 8;
16702} wxlf;
16703
e6cc62c6
VS
16704 ;
16705 return 0;
16706}
16707_ACEOF
16708rm -f conftest.$ac_objext
16709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16710 (eval $ac_compile) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
21d1c967 16720 ac_cv_sys_file_offset_bits=64
f6bcfd97 16721else
e6cc62c6
VS
16722 echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
16725ac_cv_sys_file_offset_bits=no
247f5006 16726fi
e6cc62c6
VS
16727rm -f conftest.$ac_objext conftest.$ac_ext
16728
a0b9e27f 16729
e6cc62c6
VS
16730fi
16731echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16732echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16733
16734 if test "$ac_cv_sys_file_offset_bits" != no; then
16735 wx_largefile=yes
e6cc62c6 16736 cat >>confdefs.h <<_ACEOF
21d1c967 16737#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16738_ACEOF
21d1c967
GD
16739
16740 fi
16741
16742 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16743
16744 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16745echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16746if test "${ac_cv_sys_large_files+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16748else
16749
16750 cat >conftest.$ac_ext <<_ACEOF
16751#line $LINENO "configure"
16752/* confdefs.h. */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
16756/* end confdefs.h. */
21d1c967
GD
16757#define _LARGE_FILES 1
16758 #include <sys/types.h>
e6cc62c6
VS
16759int
16760main ()
16761{
21d1c967
GD
16762typedef struct {
16763 unsigned int field: sizeof(off_t) == 8;
16764} wxlf;
16765
e6cc62c6
VS
16766 ;
16767 return 0;
16768}
16769_ACEOF
16770rm -f conftest.$ac_objext
16771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772 (eval $ac_compile) 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -s conftest.$ac_objext'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
21d1c967 16782 ac_cv_sys_large_files=1
f6bcfd97 16783else
e6cc62c6
VS
16784 echo "$as_me: failed program was:" >&5
16785sed 's/^/| /' conftest.$ac_ext >&5
16786
16787ac_cv_sys_large_files=no
247f5006 16788fi
e6cc62c6 16789rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16790
e6cc62c6
VS
16791
16792fi
16793echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16794echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16795
21d1c967
GD
16796 if test "$ac_cv_sys_large_files" != no; then
16797 wx_largefile=yes
e6cc62c6 16798 cat >>confdefs.h <<_ACEOF
21d1c967 16799#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16800_ACEOF
90dd450c 16801
90dd450c
VZ
16802 fi
16803
90dd450c 16804 fi
90dd450c 16805
e6cc62c6
VS
16806 echo "$as_me:$LINENO: checking if large file support is available" >&5
16807echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16808 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16809 cat >>confdefs.h <<\_ACEOF
21d1c967 16810#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16811_ACEOF
90dd450c 16812
90dd450c 16813 fi
e6cc62c6
VS
16814 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16815echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16816fi
90dd450c 16817
8284b0c5 16818
f02444d0 16819if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16820 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16821 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16822 else
e26c13cf 16823 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16824 fi
e26c13cf 16825 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16826fi
16827
e6cc62c6
VS
16828echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16829echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16830if test "${ac_cv_c_bigendian+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16832else
21d1c967
GD
16833 ac_cv_c_bigendian=unknown
16834# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16835cat >conftest.$ac_ext <<_ACEOF
16836#line $LINENO "configure"
16837/* confdefs.h. */
16838_ACEOF
16839cat confdefs.h >>conftest.$ac_ext
16840cat >>conftest.$ac_ext <<_ACEOF
16841/* end confdefs.h. */
21d1c967
GD
16842#include <sys/types.h>
16843#include <sys/param.h>
e6cc62c6
VS
16844int
16845main ()
16846{
21d1c967
GD
16847
16848#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16849 bogus endian macros
16850#endif
e6cc62c6
VS
16851 ;
16852 return 0;
16853}
16854_ACEOF
16855rm -f conftest.$ac_objext
16856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16857 (eval $ac_compile) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -s conftest.$ac_objext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
21d1c967 16867 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16868cat >conftest.$ac_ext <<_ACEOF
16869#line $LINENO "configure"
16870/* confdefs.h. */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h. */
21d1c967
GD
16875#include <sys/types.h>
16876#include <sys/param.h>
e6cc62c6
VS
16877int
16878main ()
16879{
21d1c967
GD
16880
16881#if BYTE_ORDER != BIG_ENDIAN
16882 not big endian
16883#endif
e6cc62c6
VS
16884 ;
16885 return 0;
16886}
16887_ACEOF
16888rm -f conftest.$ac_objext
16889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16890 (eval $ac_compile) 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -s conftest.$ac_objext'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
21d1c967 16900 ac_cv_c_bigendian=yes
3f345b47 16901else
e6cc62c6
VS
16902 echo "$as_me: failed program was:" >&5
16903sed 's/^/| /' conftest.$ac_ext >&5
16904
16905ac_cv_c_bigendian=no
3f345b47 16906fi
e6cc62c6 16907rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16908else
e6cc62c6
VS
16909 echo "$as_me: failed program was:" >&5
16910sed 's/^/| /' conftest.$ac_ext >&5
16911
3f345b47 16912fi
e6cc62c6 16913rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16914if test $ac_cv_c_bigendian = unknown; then
16915if test "$cross_compiling" = yes; then
16916 ac_cv_c_bigendian=unknown
10f2d63a 16917else
e6cc62c6
VS
16918 cat >conftest.$ac_ext <<_ACEOF
16919#line $LINENO "configure"
16920/* confdefs.h. */
16921_ACEOF
16922cat confdefs.h >>conftest.$ac_ext
16923cat >>conftest.$ac_ext <<_ACEOF
16924/* end confdefs.h. */
21d1c967
GD
16925main () {
16926 /* Are we little or big endian? From Harbison&Steele. */
16927 union
16928 {
16929 long l;
16930 char c[sizeof (long)];
16931 } u;
16932 u.l = 1;
16933 exit (u.c[sizeof (long) - 1] == 1);
16934}
e6cc62c6
VS
16935_ACEOF
16936rm -f conftest$ac_exeext
16937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
21d1c967 16947 ac_cv_c_bigendian=no
3f345b47 16948else
e6cc62c6
VS
16949 echo "$as_me: program exited with status $ac_status" >&5
16950echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
16952
16953( exit $ac_status )
16954ac_cv_c_bigendian=yes
247f5006 16955fi
e6cc62c6 16956rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16957fi
3f345b47 16958fi
8168de4c 16959fi
e6cc62c6
VS
16960echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16961echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16962if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16963 { 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
16964echo "$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
16965fi
16966if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16967 cat >>confdefs.h <<\_ACEOF
247f5006 16968#define WORDS_BIGENDIAN 1
e6cc62c6 16969_ACEOF
247f5006
VZ
16970
16971fi
16972
16973
e6cc62c6
VS
16974
16975ac_ext=cc
16976ac_cpp='$CXXCPP $CPPFLAGS'
16977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16980echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16981echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16982if test -z "$CXXCPP"; then
e6cc62c6
VS
16983 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986 # Double quotes because CXXCPP needs to be expanded
16987 for CXXCPP in "$CXX -E" "/lib/cpp"
16988 do
16989 ac_preproc_ok=false
16990for ac_cxx_preproc_warn_flag in '' yes
16991do
16992 # Use a header file that comes with gcc, so configuring glibc
16993 # with a fresh cross-compiler works.
16994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16995 # <limits.h> exists even on freestanding compilers.
16996 # On the NeXT, cc -E runs the code through the compiler's parser,
16997 # not just through cpp. "Syntax error" is here to catch this case.
16998 cat >conftest.$ac_ext <<_ACEOF
16999#line $LINENO "configure"
17000/* confdefs.h. */
17001_ACEOF
17002cat confdefs.h >>conftest.$ac_ext
17003cat >>conftest.$ac_ext <<_ACEOF
17004/* end confdefs.h. */
17005#ifdef __STDC__
17006# include <limits.h>
17007#else
17008# include <assert.h>
17009#endif
17010 Syntax error
17011_ACEOF
17012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } >/dev/null; then
17020 if test -s conftest.err; then
17021 ac_cpp_err=$ac_cxx_preproc_warn_flag
17022 else
17023 ac_cpp_err=
17024 fi
247f5006 17025else
e6cc62c6
VS
17026 ac_cpp_err=yes
17027fi
17028if test -z "$ac_cpp_err"; then
17029 :
17030else
17031 echo "$as_me: failed program was:" >&5
17032sed 's/^/| /' conftest.$ac_ext >&5
17033
17034 # Broken: fails on valid input.
17035continue
17036fi
17037rm -f conftest.err conftest.$ac_ext
17038
17039 # OK, works on sane cases. Now check whether non-existent headers
17040 # can be detected and how.
17041 cat >conftest.$ac_ext <<_ACEOF
17042#line $LINENO "configure"
17043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
17048#include <ac_nonexistent.h>
17049_ACEOF
17050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17052 ac_status=$?
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } >/dev/null; then
17058 if test -s conftest.err; then
17059 ac_cpp_err=$ac_cxx_preproc_warn_flag
17060 else
17061 ac_cpp_err=
17062 fi
17063else
17064 ac_cpp_err=yes
17065fi
17066if test -z "$ac_cpp_err"; then
17067 # Broken: success on invalid input.
17068continue
17069else
17070 echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
17073 # Passes both tests.
17074ac_preproc_ok=:
17075break
17076fi
17077rm -f conftest.err conftest.$ac_ext
17078
17079done
17080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17081rm -f conftest.err conftest.$ac_ext
17082if $ac_preproc_ok; then
17083 break
17084fi
17085
17086 done
17087 ac_cv_prog_CXXCPP=$CXXCPP
17088
17089fi
17090 CXXCPP=$ac_cv_prog_CXXCPP
17091else
17092 ac_cv_prog_CXXCPP=$CXXCPP
17093fi
17094echo "$as_me:$LINENO: result: $CXXCPP" >&5
17095echo "${ECHO_T}$CXXCPP" >&6
17096ac_preproc_ok=false
17097for ac_cxx_preproc_warn_flag in '' yes
17098do
17099 # Use a header file that comes with gcc, so configuring glibc
17100 # with a fresh cross-compiler works.
17101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17102 # <limits.h> exists even on freestanding compilers.
17103 # On the NeXT, cc -E runs the code through the compiler's parser,
17104 # not just through cpp. "Syntax error" is here to catch this case.
17105 cat >conftest.$ac_ext <<_ACEOF
17106#line $LINENO "configure"
17107/* confdefs.h. */
17108_ACEOF
17109cat confdefs.h >>conftest.$ac_ext
17110cat >>conftest.$ac_ext <<_ACEOF
17111/* end confdefs.h. */
17112#ifdef __STDC__
17113# include <limits.h>
17114#else
17115# include <assert.h>
17116#endif
17117 Syntax error
17118_ACEOF
17119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } >/dev/null; then
17127 if test -s conftest.err; then
17128 ac_cpp_err=$ac_cxx_preproc_warn_flag
17129 else
17130 ac_cpp_err=
17131 fi
17132else
17133 ac_cpp_err=yes
17134fi
17135if test -z "$ac_cpp_err"; then
21d1c967 17136 :
698dcdb6 17137else
e6cc62c6
VS
17138 echo "$as_me: failed program was:" >&5
17139sed 's/^/| /' conftest.$ac_ext >&5
17140
17141 # Broken: fails on valid input.
17142continue
17143fi
17144rm -f conftest.err conftest.$ac_ext
17145
17146 # OK, works on sane cases. Now check whether non-existent headers
17147 # can be detected and how.
17148 cat >conftest.$ac_ext <<_ACEOF
17149#line $LINENO "configure"
17150/* confdefs.h. */
17151_ACEOF
17152cat confdefs.h >>conftest.$ac_ext
17153cat >>conftest.$ac_ext <<_ACEOF
17154/* end confdefs.h. */
17155#include <ac_nonexistent.h>
17156_ACEOF
17157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } >/dev/null; then
17165 if test -s conftest.err; then
17166 ac_cpp_err=$ac_cxx_preproc_warn_flag
17167 else
17168 ac_cpp_err=
17169 fi
17170else
17171 ac_cpp_err=yes
247f5006 17172fi
e6cc62c6
VS
17173if test -z "$ac_cpp_err"; then
17174 # Broken: success on invalid input.
17175continue
17176else
17177 echo "$as_me: failed program was:" >&5
17178sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 # Passes both tests.
17181ac_preproc_ok=:
17182break
328a083c 17183fi
e6cc62c6
VS
17184rm -f conftest.err conftest.$ac_ext
17185
17186done
17187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17188rm -f conftest.err conftest.$ac_ext
17189if $ac_preproc_ok; then
17190 :
17191else
17192 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17193See \`config.log' for more details." >&5
17194echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17195See \`config.log' for more details." >&2;}
17196 { (exit 1); exit 1; }; }
90dd450c 17197fi
e6cc62c6
VS
17198
17199ac_ext=cc
17200ac_cpp='$CXXCPP $CPPFLAGS'
17201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17204
1e6feb95 17205
1725144d 17206
21d1c967 17207 if test "$cross_compiling" = "yes"; then
e6cc62c6 17208 cat >>confdefs.h <<\_ACEOF
21d1c967 17209#define wxUSE_IOSTREAMH 1
e6cc62c6 17210_ACEOF
ab9b9eab 17211
21d1c967 17212 else
e6cc62c6
VS
17213
17214
17215 ac_ext=cc
5c6fa7d2 17216ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17220
52127426 17221
247f5006 17222
e6cc62c6 17223for ac_header in iostream
21d1c967 17224do
e6cc62c6
VS
17225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17226if eval "test \"\${$as_ac_Header+set}\" = set"; then
17227 echo "$as_me:$LINENO: checking for $ac_header" >&5
17228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17229if eval "test \"\${$as_ac_Header+set}\" = set"; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17231fi
17232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17234else
17235 # Is the header compilable?
17236echo "$as_me:$LINENO: checking $ac_header usability" >&5
17237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17238cat >conftest.$ac_ext <<_ACEOF
17239#line $LINENO "configure"
17240/* confdefs.h. */
17241_ACEOF
17242cat confdefs.h >>conftest.$ac_ext
17243cat >>conftest.$ac_ext <<_ACEOF
17244/* end confdefs.h. */
17245$ac_includes_default
17246#include <$ac_header>
17247_ACEOF
17248rm -f conftest.$ac_objext
17249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17250 (eval $ac_compile) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -s conftest.$ac_objext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 ac_header_compiler=yes
17261else
17262 echo "$as_me: failed program was:" >&5
17263sed 's/^/| /' conftest.$ac_ext >&5
17264
17265ac_header_compiler=no
17266fi
17267rm -f conftest.$ac_objext conftest.$ac_ext
17268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17269echo "${ECHO_T}$ac_header_compiler" >&6
17270
17271# Is the header present?
17272echo "$as_me:$LINENO: checking $ac_header presence" >&5
17273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17274cat >conftest.$ac_ext <<_ACEOF
17275#line $LINENO "configure"
17276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
17281#include <$ac_header>
17282_ACEOF
17283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17285 ac_status=$?
17286 grep -v '^ *+' conftest.er1 >conftest.err
17287 rm -f conftest.er1
17288 cat conftest.err >&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } >/dev/null; then
17291 if test -s conftest.err; then
17292 ac_cpp_err=$ac_cxx_preproc_warn_flag
17293 else
17294 ac_cpp_err=
17295 fi
17296else
17297 ac_cpp_err=yes
17298fi
17299if test -z "$ac_cpp_err"; then
17300 ac_header_preproc=yes
17301else
17302 echo "$as_me: failed program was:" >&5
17303sed 's/^/| /' conftest.$ac_ext >&5
17304
17305 ac_header_preproc=no
17306fi
17307rm -f conftest.err conftest.$ac_ext
17308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17309echo "${ECHO_T}$ac_header_preproc" >&6
17310
17311# So? What about this header?
17312case $ac_header_compiler:$ac_header_preproc in
17313 yes:no )
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17318 (
17319 cat <<\_ASBOX
17320## ------------------------------------ ##
17321## Report this to bug-autoconf@gnu.org. ##
17322## ------------------------------------ ##
17323_ASBOX
17324 ) |
17325 sed "s/^/$as_me: WARNING: /" >&2
17326 ;;
17327 no:yes )
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17329echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17331echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17334 (
17335 cat <<\_ASBOX
17336## ------------------------------------ ##
17337## Report this to bug-autoconf@gnu.org. ##
17338## ------------------------------------ ##
17339_ASBOX
17340 ) |
17341 sed "s/^/$as_me: WARNING: /" >&2
17342 ;;
17343esac
17344echo "$as_me:$LINENO: checking for $ac_header" >&5
17345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17346if eval "test \"\${$as_ac_Header+set}\" = set"; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17348else
17349 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17350fi
e6cc62c6
VS
17351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17353
90dd450c 17354fi
e6cc62c6
VS
17355if test `eval echo '${'$as_ac_Header'}'` = yes; then
17356 cat >>confdefs.h <<_ACEOF
17357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17358_ACEOF
17359
90dd450c 17360fi
e6cc62c6 17361
21d1c967 17362done
10f2d63a 17363
8284b0c5 17364
21d1c967
GD
17365 if test "$ac_cv_header_iostream" = "yes" ; then
17366 :
17367 else
e6cc62c6 17368 cat >>confdefs.h <<\_ACEOF
21d1c967 17369#define wxUSE_IOSTREAMH 1
e6cc62c6 17370_ACEOF
788deba1 17371
90dd450c 17372 fi
ab9b9eab 17373
21d1c967 17374 ac_ext=c
21d1c967 17375ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17378ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17379
21d1c967 17380 fi
ab9b9eab 17381
52127426 17382
8284b0c5 17383
e6cc62c6
VS
17384 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17385echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17386if test "${wx_cv_cpp_bool+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17388else
e6cc62c6
VS
17389
17390
17391
17392 ac_ext=cc
5c6fa7d2 17393ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17397
8284b0c5 17398
e6cc62c6
VS
17399 cat >conftest.$ac_ext <<_ACEOF
17400#line $LINENO "configure"
17401/* confdefs.h. */
17402_ACEOF
17403cat confdefs.h >>conftest.$ac_ext
17404cat >>conftest.$ac_ext <<_ACEOF
17405/* end confdefs.h. */
21d1c967 17406
e6cc62c6
VS
17407
17408int
17409main ()
17410{
21d1c967
GD
17411
17412 bool b = true;
17413
17414 return 0;
e6cc62c6
VS
17415
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest.$ac_objext
17421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17422 (eval $ac_compile) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432
21d1c967 17433 wx_cv_cpp_bool=yes
e6cc62c6 17434
698dcdb6 17435else
e6cc62c6
VS
17436 echo "$as_me: failed program was:" >&5
17437sed 's/^/| /' conftest.$ac_ext >&5
17438
17439
21d1c967 17440 wx_cv_cpp_bool=no
e6cc62c6
VS
17441
17442
698dcdb6 17443fi
e6cc62c6 17444rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17445
17446 ac_ext=c
21d1c967 17447ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17450ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17451
a0b9e27f 17452
e6cc62c6
VS
17453fi
17454echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17455echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17456
17457 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17458 cat >>confdefs.h <<\_ACEOF
21d1c967 17459#define HAVE_BOOL 1
e6cc62c6 17460_ACEOF
ab9b9eab 17461
21d1c967
GD
17462 fi
17463
52127426 17464
8284b0c5 17465
e6cc62c6
VS
17466 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17467echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17468if test "${wx_cv_explicit+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17470else
e6cc62c6
VS
17471
17472
17473
17474 ac_ext=cc
5c6fa7d2 17475ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17479
8284b0c5 17480
e6cc62c6
VS
17481 cat >conftest.$ac_ext <<_ACEOF
17482#line $LINENO "configure"
17483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
986ecc86
VZ
17488
17489 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17490
17491int
17492main ()
17493{
986ecc86
VZ
17494
17495 return 0;
e6cc62c6
VS
17496
17497 ;
17498 return 0;
17499}
17500_ACEOF
17501rm -f conftest.$ac_objext
17502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17503 (eval $ac_compile) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513
17514 cat >conftest.$ac_ext <<_ACEOF
17515#line $LINENO "configure"
17516/* confdefs.h. */
17517_ACEOF
17518cat confdefs.h >>conftest.$ac_ext
17519cat >>conftest.$ac_ext <<_ACEOF
17520/* end confdefs.h. */
986ecc86
VZ
17521
17522 class Foo { public: explicit Foo(int) {} };
17523 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17524
17525int
17526main ()
17527{
986ecc86
VZ
17528
17529 TakeFoo(17);
17530 return 0;
e6cc62c6
VS
17531
17532 ;
17533 return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext
17537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17538 (eval $ac_compile) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
17542 { ac_try='test -s conftest.$ac_objext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
986ecc86
VZ
17548 wx_cv_explicit=no
17549else
e6cc62c6
VS
17550 echo "$as_me: failed program was:" >&5
17551sed 's/^/| /' conftest.$ac_ext >&5
17552
17553wx_cv_explicit=yes
17554
986ecc86 17555fi
e6cc62c6
VS
17556rm -f conftest.$ac_objext conftest.$ac_ext
17557
986ecc86 17558else
e6cc62c6
VS
17559 echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562wx_cv_explicit=no
17563
986ecc86 17564fi
e6cc62c6 17565rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17566
17567 ac_ext=c
986ecc86 17568ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17571ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17572
a0b9e27f 17573
e6cc62c6
VS
17574fi
17575echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17576echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17577
17578 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17579 cat >>confdefs.h <<\_ACEOF
986ecc86 17580#define HAVE_EXPLICIT 1
e6cc62c6 17581_ACEOF
986ecc86
VZ
17582
17583 fi
17584
8284b0c5 17585
e6cc62c6
VS
17586echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17587echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17588if test "${ac_cv_cxx_const_cast+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17590else
521196a2 17591
521196a2 17592
e6cc62c6
VS
17593 ac_ext=cc
17594ac_cpp='$CXXCPP $CPPFLAGS'
17595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17598
17599 cat >conftest.$ac_ext <<_ACEOF
17600#line $LINENO "configure"
17601/* confdefs.h. */
17602_ACEOF
17603cat confdefs.h >>conftest.$ac_ext
17604cat >>conftest.$ac_ext <<_ACEOF
17605/* end confdefs.h. */
17606
17607int
17608main ()
17609{
521196a2 17610int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17611 ;
17612 return 0;
17613}
17614_ACEOF
17615rm -f conftest.$ac_objext
17616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17617 (eval $ac_compile) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -s conftest.$ac_objext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
521196a2
MB
17627 ac_cv_cxx_const_cast=yes
17628else
e6cc62c6
VS
17629 echo "$as_me: failed program was:" >&5
17630sed 's/^/| /' conftest.$ac_ext >&5
17631
17632ac_cv_cxx_const_cast=no
521196a2 17633fi
e6cc62c6 17634rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17635 ac_ext=c
521196a2 17636ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17639ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17640
17641
17642fi
e6cc62c6
VS
17643echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17644echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17645if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17646
17647cat >>confdefs.h <<\_ACEOF
17648#define HAVE_CONST_CAST
17649_ACEOF
521196a2
MB
17650
17651fi
17652
17653
8284b0c5 17654
21d1c967
GD
17655SEARCH_INCLUDE="\
17656 /usr/local/include \
17657 \
17658 /usr/Motif-1.2/include \
17659 /usr/Motif-2.1/include \
17660 \
17661 /usr/include/Motif1.2 \
17662 /opt/xpm/include/X11 \
17663 /opt/GBxpm/include/ \
17664 /opt/GBxpm/X11/include/ \
17665 \
17666 /usr/Motif1.2/include \
17667 /usr/dt/include \
17668 /usr/openwin/include \
17669 \
17670 /usr/include/Xm \
17671 \
17672 /usr/X11R6/include \
17673 /usr/X11R6.4/include \
17674 /usr/X11R5/include \
17675 /usr/X11R4/include \
17676 \
17677 /usr/include/X11R6 \
17678 /usr/include/X11R5 \
17679 /usr/include/X11R4 \
17680 \
17681 /usr/local/X11R6/include \
17682 /usr/local/X11R5/include \
17683 /usr/local/X11R4/include \
17684 \
17685 /usr/local/include/X11R6 \
17686 /usr/local/include/X11R5 \
17687 /usr/local/include/X11R4 \
17688 \
17689 /usr/X11/include \
17690 /usr/include/X11 \
17691 /usr/local/X11/include \
17692 /usr/local/include/X11 \
17693 \
17694 /usr/X386/include \
17695 /usr/x386/include \
17696 /usr/XFree86/include/X11 \
17697 \
17698 X:/XFree86/include \
17699 X:/XFree86/include/X11 \
17700 \
17701 /usr/include/gtk \
17702 /usr/local/include/gtk \
17703 /usr/include/glib \
17704 /usr/local/include/glib \
17705 \
17706 /usr/include/qt \
17707 /usr/local/include/qt \
17708 \
17709 /usr/include/windows \
17710 /usr/include/wine \
17711 /usr/local/include/wine \
17712 \
17713 /usr/unsupported/include \
17714 /usr/athena/include \
17715 /usr/local/x11r5/include \
17716 /usr/lpp/Xamples/include \
17717 \
2b5f62a0 17718 /usr/openwin/share/include"
21d1c967
GD
17719
17720SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17721
8284b0c5 17722
e6cc62c6 17723cat >confcache <<\_ACEOF
21d1c967
GD
17724# This file is a shell script that caches the results of configure
17725# tests run on this system so they can be shared between configure
e6cc62c6
VS
17726# scripts and configure runs, see configure's option --config-cache.
17727# It is not useful on other systems. If it contains results you don't
17728# want to keep, you may remove or edit it.
21d1c967 17729#
e6cc62c6
VS
17730# config.status only pays attention to the cache file if you give it
17731# the --recheck option to rerun configure.
21d1c967 17732#
e6cc62c6
VS
17733# `ac_cv_env_foo' variables (set or unset) will be overridden when
17734# loading this file, other *unset* `ac_cv_foo' will be assigned the
17735# following values.
17736
17737_ACEOF
17738
21d1c967
GD
17739# The following way of writing the cache mishandles newlines in values,
17740# but we know of no workaround that is simple, portable, and efficient.
17741# So, don't put newlines in cache variables' values.
17742# Ultrix sh set writes to stderr and can't be redirected directly,
17743# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17744{
17745 (set) 2>&1 |
17746 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17747 *ac_space=\ *)
17748 # `set' does not quote correctly, so add quotes (double-quote
17749 # substitution turns \\\\ into \\, and sed turns \\ into \).
17750 sed -n \
17751 "s/'/'\\\\''/g;
17752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17753 ;;
17754 *)
17755 # `set' quotes correctly as required by POSIX, so do not add quotes.
17756 sed -n \
17757 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17758 ;;
17759 esac;
17760} |
17761 sed '
17762 t clear
17763 : clear
17764 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17765 t end
17766 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17767 : end' >>confcache
17768if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17769 if test -w $cache_file; then
e6cc62c6
VS
17770 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17771 cat confcache >$cache_file
21d1c967
GD
17772 else
17773 echo "not updating unwritable cache $cache_file"
17774 fi
ab9b9eab 17775fi
21d1c967 17776rm -f confcache
ab9b9eab 17777
fe0895cf 17778if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17779 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17780echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17781if test "${wx_cv_lib_glibc21+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783else
17784
17785 cat >conftest.$ac_ext <<_ACEOF
17786#line $LINENO "configure"
17787/* confdefs.h. */
17788_ACEOF
17789cat confdefs.h >>conftest.$ac_ext
17790cat >>conftest.$ac_ext <<_ACEOF
17791/* end confdefs.h. */
21d1c967 17792#include <features.h>
e6cc62c6
VS
17793int
17794main ()
17795{
ab9b9eab 17796
21d1c967
GD
17797 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17798 #error not glibc2.1
17799 #endif
e6cc62c6
VS
17800
17801 ;
17802 return 0;
17803}
17804_ACEOF
17805rm -f conftest.$ac_objext
17806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -s conftest.$ac_objext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17817
21d1c967 17818 wx_cv_lib_glibc21=yes
e6cc62c6 17819
698dcdb6 17820else
e6cc62c6
VS
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824
21d1c967 17825 wx_cv_lib_glibc21=no
e6cc62c6
VS
17826
17827
247f5006 17828fi
e6cc62c6 17829rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17830
e6cc62c6
VS
17831fi
17832echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17833echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17834 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17835 cat >>confdefs.h <<\_ACEOF
21d1c967 17836#define wxHAVE_GLIBC2 1
e6cc62c6 17837_ACEOF
1e487827 17838
90dd450c 17839 fi
ab9b9eab
VZ
17840fi
17841
5c0a20c3
VZ
17842if test "x$wx_cv_lib_glibc21" = "xyes"; then
17843 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17844 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17845#define _GNU_SOURCE 1
e6cc62c6 17846_ACEOF
5c0a20c3
VZ
17847
17848 fi
17849fi
17850
8284b0c5
MB
17851
17852
21d1c967
GD
17853REGEX_INCLUDE=
17854if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17855 cat >>confdefs.h <<\_ACEOF
21d1c967 17856#define wxUSE_REGEX 1
e6cc62c6 17857_ACEOF
698dcdb6 17858
8284b0c5 17859
21d1c967 17860 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17861 if test "${ac_cv_header_regex_h+set}" = set; then
17862 echo "$as_me:$LINENO: checking for regex.h" >&5
17863echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17864if test "${ac_cv_header_regex_h+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866fi
17867echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17868echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17869else
17870 # Is the header compilable?
17871echo "$as_me:$LINENO: checking regex.h usability" >&5
17872echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17873cat >conftest.$ac_ext <<_ACEOF
17874#line $LINENO "configure"
17875/* confdefs.h. */
17876_ACEOF
17877cat confdefs.h >>conftest.$ac_ext
17878cat >>conftest.$ac_ext <<_ACEOF
17879/* end confdefs.h. */
17880$ac_includes_default
247f5006 17881#include <regex.h>
e6cc62c6
VS
17882_ACEOF
17883rm -f conftest.$ac_objext
17884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17885 (eval $ac_compile) 2>&5
17886 ac_status=$?
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
17889 { ac_try='test -s conftest.$ac_objext'
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; }; then
17895 ac_header_compiler=yes
17896else
17897 echo "$as_me: failed program was:" >&5
17898sed 's/^/| /' conftest.$ac_ext >&5
17899
17900ac_header_compiler=no
17901fi
17902rm -f conftest.$ac_objext conftest.$ac_ext
17903echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17904echo "${ECHO_T}$ac_header_compiler" >&6
17905
17906# Is the header present?
17907echo "$as_me:$LINENO: checking regex.h presence" >&5
17908echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17909cat >conftest.$ac_ext <<_ACEOF
17910#line $LINENO "configure"
17911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
17916#include <regex.h>
17917_ACEOF
17918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } >/dev/null; then
17926 if test -s conftest.err; then
17927 ac_cpp_err=$ac_c_preproc_warn_flag
17928 else
17929 ac_cpp_err=
17930 fi
17931else
17932 ac_cpp_err=yes
17933fi
17934if test -z "$ac_cpp_err"; then
17935 ac_header_preproc=yes
17936else
17937 echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 ac_header_preproc=no
17941fi
17942rm -f conftest.err conftest.$ac_ext
17943echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17944echo "${ECHO_T}$ac_header_preproc" >&6
17945
17946# So? What about this header?
17947case $ac_header_compiler:$ac_header_preproc in
17948 yes:no )
17949 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17950echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17951 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17952echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17953 (
17954 cat <<\_ASBOX
17955## ------------------------------------ ##
17956## Report this to bug-autoconf@gnu.org. ##
17957## ------------------------------------ ##
17958_ASBOX
17959 ) |
17960 sed "s/^/$as_me: WARNING: /" >&2
17961 ;;
17962 no:yes )
17963 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17964echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17966echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17968echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17969 (
17970 cat <<\_ASBOX
17971## ------------------------------------ ##
17972## Report this to bug-autoconf@gnu.org. ##
17973## ------------------------------------ ##
17974_ASBOX
17975 ) |
17976 sed "s/^/$as_me: WARNING: /" >&2
17977 ;;
17978esac
17979echo "$as_me:$LINENO: checking for regex.h" >&5
17980echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17981if test "${ac_cv_header_regex_h+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17983else
17984 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 17985fi
e6cc62c6
VS
17986echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17987echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17988
698dcdb6 17989fi
e6cc62c6
VS
17990if test $ac_cv_header_regex_h = yes; then
17991
17992for ac_func in regcomp
21d1c967 17993do
e6cc62c6
VS
17994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17995echo "$as_me:$LINENO: checking for $ac_func" >&5
17996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17997if eval "test \"\${$as_ac_var+set}\" = set"; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999else
18000 cat >conftest.$ac_ext <<_ACEOF
18001#line $LINENO "configure"
18002/* confdefs.h. */
18003_ACEOF
18004cat confdefs.h >>conftest.$ac_ext
18005cat >>conftest.$ac_ext <<_ACEOF
18006/* end confdefs.h. */
a0b9e27f 18007/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18008 which can conflict with char $ac_func (); below.
18009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18010 <limits.h> exists even on freestanding compilers. */
18011#ifdef __STDC__
18012# include <limits.h>
18013#else
18014# include <assert.h>
18015#endif
21d1c967 18016/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18017#ifdef __cplusplus
18018extern "C"
18019{
18020#endif
21d1c967 18021/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18022 builtin and then its argument prototype would still apply. */
18023char $ac_func ();
21d1c967
GD
18024/* The GNU C library defines this for functions which it implements
18025 to always fail with ENOSYS. Some functions are actually named
18026 something starting with __ and the normal name is an alias. */
18027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18028choke me
18029#else
e6cc62c6
VS
18030char (*f) () = $ac_func;
18031#endif
18032#ifdef __cplusplus
18033}
21d1c967 18034#endif
90dd450c 18035
e6cc62c6
VS
18036int
18037main ()
18038{
18039return f != $ac_func;
18040 ;
18041 return 0;
18042}
18043_ACEOF
18044rm -f conftest.$ac_objext conftest$ac_exeext
18045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18046 (eval $ac_link) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 eval "$as_ac_var=yes"
18057else
18058 echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061eval "$as_ac_var=no"
18062fi
18063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18064fi
18065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18067if test `eval echo '${'$as_ac_var'}'` = yes; then
18068 cat >>confdefs.h <<_ACEOF
18069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18070_ACEOF
5c6fa7d2 18071
698dcdb6 18072fi
21d1c967
GD
18073done
18074
ab9b9eab
VZ
18075fi
18076
8284b0c5 18077
e6cc62c6 18078
21d1c967
GD
18079 if test "x$ac_cv_func_regcomp" != "xyes"; then
18080 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18081 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18082echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18083 { (exit 1); exit 1; }; }
21d1c967 18084 else
e6cc62c6
VS
18085 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18086echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18087 wxUSE_REGEX=builtin
18088 fi
18089 else
18090 wxUSE_REGEX=sys
18091 fi
ab9b9eab 18092 fi
90dd450c 18093
21d1c967
GD
18094 if test "$wxUSE_REGEX" = "builtin" ; then
18095 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18096 fi
21d1c967 18097fi
90dd450c 18098
8284b0c5 18099
21d1c967
GD
18100ZLIB_INCLUDE=
18101ZLIB_LINK=
18102if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18103 cat >>confdefs.h <<\_ACEOF
21d1c967 18104#define wxUSE_ZLIB 1
e6cc62c6 18105_ACEOF
21d1c967 18106
8284b0c5 18107
21d1c967 18108 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18109 if test "$USE_DARWIN" = 1; then
18110 system_zlib_h_ok="yes"
18111 else
e6cc62c6
VS
18112 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18113echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18114if test "${ac_cv_header_zlib_h+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18116else
18117 if test "$cross_compiling" = yes; then
89e6bf6d 18118 unset ac_cv_header_zlib_h
e6cc62c6 18119
d643b80e 18120else
e6cc62c6
VS
18121 cat >conftest.$ac_ext <<_ACEOF
18122#line $LINENO "configure"
18123/* confdefs.h. */
18124_ACEOF
18125cat confdefs.h >>conftest.$ac_ext
18126cat >>conftest.$ac_ext <<_ACEOF
18127/* end confdefs.h. */
18128
ef33c576 18129 #include <zlib.h>
d775acfa 18130 #include <stdio.h>
d643b80e 18131
d775acfa
VZ
18132 int main()
18133 {
18134 FILE *f=fopen("conftestval", "w");
18135 if (!f) exit(1);
18136 fprintf(f, "%s",
18137 ZLIB_VERSION[0] == '1' &&
18138 (ZLIB_VERSION[2] > '1' ||
18139 (ZLIB_VERSION[2] == '1' &&
18140 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18141 exit(0);
18142 }
e6cc62c6
VS
18143
18144_ACEOF
18145rm -f conftest$ac_exeext
18146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18147 (eval $ac_link) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
d643b80e
VZ
18156 ac_cv_header_zlib_h=`cat conftestval`
18157else
e6cc62c6
VS
18158 echo "$as_me: program exited with status $ac_status" >&5
18159echo "$as_me: failed program was:" >&5
18160sed 's/^/| /' conftest.$ac_ext >&5
18161
18162( exit $ac_status )
18163ac_cv_header_zlib_h=no
d643b80e 18164fi
e6cc62c6 18165rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18166fi
18167
d643b80e 18168fi
e6cc62c6
VS
18169echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18170echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18171 if test "${ac_cv_header_zlib_h+set}" = set; then
18172 echo "$as_me:$LINENO: checking for zlib.h" >&5
18173echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18174if test "${ac_cv_header_zlib_h+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18176fi
18177echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18178echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18179else
e6cc62c6
VS
18180 # Is the header compilable?
18181echo "$as_me:$LINENO: checking zlib.h usability" >&5
18182echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18183cat >conftest.$ac_ext <<_ACEOF
18184#line $LINENO "configure"
18185/* confdefs.h. */
18186_ACEOF
18187cat confdefs.h >>conftest.$ac_ext
18188cat >>conftest.$ac_ext <<_ACEOF
18189/* end confdefs.h. */
18190$ac_includes_default
89e6bf6d 18191#include <zlib.h>
e6cc62c6
VS
18192_ACEOF
18193rm -f conftest.$ac_objext
18194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18195 (eval $ac_compile) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try='test -s conftest.$ac_objext'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_header_compiler=yes
18206else
18207 echo "$as_me: failed program was:" >&5
18208sed 's/^/| /' conftest.$ac_ext >&5
18209
18210ac_header_compiler=no
18211fi
18212rm -f conftest.$ac_objext conftest.$ac_ext
18213echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18214echo "${ECHO_T}$ac_header_compiler" >&6
18215
18216# Is the header present?
18217echo "$as_me:$LINENO: checking zlib.h presence" >&5
18218echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18219cat >conftest.$ac_ext <<_ACEOF
18220#line $LINENO "configure"
18221/* confdefs.h. */
18222_ACEOF
18223cat confdefs.h >>conftest.$ac_ext
18224cat >>conftest.$ac_ext <<_ACEOF
18225/* end confdefs.h. */
18226#include <zlib.h>
18227_ACEOF
18228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18230 ac_status=$?
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } >/dev/null; then
18236 if test -s conftest.err; then
18237 ac_cpp_err=$ac_c_preproc_warn_flag
18238 else
18239 ac_cpp_err=
18240 fi
18241else
18242 ac_cpp_err=yes
18243fi
18244if test -z "$ac_cpp_err"; then
18245 ac_header_preproc=yes
18246else
18247 echo "$as_me: failed program was:" >&5
18248sed 's/^/| /' conftest.$ac_ext >&5
18249
18250 ac_header_preproc=no
18251fi
18252rm -f conftest.err conftest.$ac_ext
18253echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18254echo "${ECHO_T}$ac_header_preproc" >&6
18255
18256# So? What about this header?
18257case $ac_header_compiler:$ac_header_preproc in
18258 yes:no )
18259 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18260echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18261 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18262echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18263 (
18264 cat <<\_ASBOX
18265## ------------------------------------ ##
18266## Report this to bug-autoconf@gnu.org. ##
18267## ------------------------------------ ##
18268_ASBOX
18269 ) |
18270 sed "s/^/$as_me: WARNING: /" >&2
18271 ;;
18272 no:yes )
18273 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18274echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18275 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18276echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18278echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18279 (
18280 cat <<\_ASBOX
18281## ------------------------------------ ##
18282## Report this to bug-autoconf@gnu.org. ##
18283## ------------------------------------ ##
18284_ASBOX
18285 ) |
18286 sed "s/^/$as_me: WARNING: /" >&2
18287 ;;
18288esac
18289echo "$as_me:$LINENO: checking for zlib.h" >&5
18290echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18291if test "${ac_cv_header_zlib_h+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18293else
e6cc62c6
VS
18294 ac_cv_header_zlib_h=$ac_header_preproc
18295fi
18296echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18297echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18298
89e6bf6d
VZ
18299fi
18300
d643b80e 18301
e6cc62c6 18302
d775acfa
VZ
18303 system_zlib_h_ok=$ac_cv_header_zlib_h
18304 fi
18305
18306 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18307 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18308echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18309if test "${ac_cv_lib_z_deflate+set}" = set; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18311else
e6cc62c6 18312 ac_check_lib_save_LIBS=$LIBS
21d1c967 18313LIBS="-lz $LIBS"
e6cc62c6
VS
18314cat >conftest.$ac_ext <<_ACEOF
18315#line $LINENO "configure"
18316/* confdefs.h. */
18317_ACEOF
18318cat confdefs.h >>conftest.$ac_ext
18319cat >>conftest.$ac_ext <<_ACEOF
18320/* end confdefs.h. */
18321
21d1c967 18322/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18323#ifdef __cplusplus
18324extern "C"
18325#endif
21d1c967 18326/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18327 builtin and then its argument prototype would still apply. */
18328char deflate ();
18329int
18330main ()
18331{
18332deflate ();
18333 ;
18334 return 0;
18335}
18336_ACEOF
18337rm -f conftest.$ac_objext conftest$ac_exeext
18338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18339 (eval $ac_link) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349 ac_cv_lib_z_deflate=yes
18350else
18351 echo "$as_me: failed program was:" >&5
18352sed 's/^/| /' conftest.$ac_ext >&5
18353
18354ac_cv_lib_z_deflate=no
18355fi
18356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18357LIBS=$ac_check_lib_save_LIBS
18358fi
18359echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18360echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18361if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18362 ZLIB_LINK=" -lz"
a0b9e27f 18363fi
698dcdb6 18364
d643b80e 18365 fi
247f5006 18366
21d1c967
GD
18367 if test "x$ZLIB_LINK" = "x" ; then
18368 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18369 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18370echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18371 { (exit 1); exit 1; }; }
21d1c967 18372 else
e6cc62c6
VS
18373 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18374echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18375 wxUSE_ZLIB=builtin
18376 fi
18377 else
18378 wxUSE_ZLIB=sys
18379 fi
18380 fi
18381
18382 if test "$wxUSE_ZLIB" = "builtin" ; then
18383 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18384 fi
ab9b9eab
VZ
18385fi
18386
8284b0c5 18387
21d1c967
GD
18388PNG_INCLUDE=
18389PNG_LINK=
18390if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18391 cat >>confdefs.h <<\_ACEOF
21d1c967 18392#define wxUSE_LIBPNG 1
e6cc62c6 18393_ACEOF
90dd450c 18394
8284b0c5 18395
21d1c967 18396 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18397 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18398echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18399 wxUSE_LIBPNG=sys
18400 fi
90dd450c 18401
21d1c967 18402 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18403 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18404echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18405 wxUSE_LIBPNG=builtin
18406 fi
18407
18408 if test "$wxUSE_MGL" != 1 ; then
18409 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18410 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18411echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18412if test "${ac_cv_header_png_h+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18414else
18415 if test "$cross_compiling" = yes; then
89e6bf6d 18416 unset ac_cv_header_png_h
e6cc62c6 18417
5d3f766d 18418else
e6cc62c6
VS
18419 cat >conftest.$ac_ext <<_ACEOF
18420#line $LINENO "configure"
18421/* confdefs.h. */
18422_ACEOF
18423cat confdefs.h >>conftest.$ac_ext
18424cat >>conftest.$ac_ext <<_ACEOF
18425/* end confdefs.h. */
18426
ef33c576 18427 #include <png.h>
5d3f766d
VZ
18428 #include <stdio.h>
18429
18430 int main()
18431 {
18432 FILE *f=fopen("conftestval", "w");
18433 if (!f) exit(1);
18434 fprintf(f, "%s",
18435 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18436 exit(0);
18437 }
e6cc62c6
VS
18438
18439_ACEOF
18440rm -f conftest$ac_exeext
18441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18442 (eval $ac_link) 2>&5
18443 ac_status=$?
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
5d3f766d
VZ
18451 ac_cv_header_png_h=`cat conftestval`
18452else
e6cc62c6
VS
18453 echo "$as_me: program exited with status $ac_status" >&5
18454echo "$as_me: failed program was:" >&5
18455sed 's/^/| /' conftest.$ac_ext >&5
18456
18457( exit $ac_status )
18458ac_cv_header_png_h=no
5d3f766d 18459fi
e6cc62c6 18460rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18461fi
18462
5d3f766d 18463fi
e6cc62c6
VS
18464echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18465echo "${ECHO_T}$ac_cv_header_png_h" >&6
18466 if test "${ac_cv_header_png_h+set}" = set; then
18467 echo "$as_me:$LINENO: checking for png.h" >&5
18468echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18469if test "${ac_cv_header_png_h+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18471fi
18472echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18473echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18474else
e6cc62c6
VS
18475 # Is the header compilable?
18476echo "$as_me:$LINENO: checking png.h usability" >&5
18477echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18478cat >conftest.$ac_ext <<_ACEOF
18479#line $LINENO "configure"
18480/* confdefs.h. */
18481_ACEOF
18482cat confdefs.h >>conftest.$ac_ext
18483cat >>conftest.$ac_ext <<_ACEOF
18484/* end confdefs.h. */
18485$ac_includes_default
89e6bf6d 18486#include <png.h>
e6cc62c6
VS
18487_ACEOF
18488rm -f conftest.$ac_objext
18489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18490 (eval $ac_compile) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
18494 { ac_try='test -s conftest.$ac_objext'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; }; then
18500 ac_header_compiler=yes
18501else
18502 echo "$as_me: failed program was:" >&5
18503sed 's/^/| /' conftest.$ac_ext >&5
18504
18505ac_header_compiler=no
18506fi
18507rm -f conftest.$ac_objext conftest.$ac_ext
18508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18509echo "${ECHO_T}$ac_header_compiler" >&6
18510
18511# Is the header present?
18512echo "$as_me:$LINENO: checking png.h presence" >&5
18513echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18514cat >conftest.$ac_ext <<_ACEOF
18515#line $LINENO "configure"
18516/* confdefs.h. */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h. */
18521#include <png.h>
18522_ACEOF
18523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } >/dev/null; then
18531 if test -s conftest.err; then
18532 ac_cpp_err=$ac_c_preproc_warn_flag
18533 else
18534 ac_cpp_err=
18535 fi
18536else
18537 ac_cpp_err=yes
18538fi
18539if test -z "$ac_cpp_err"; then
18540 ac_header_preproc=yes
18541else
18542 echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545 ac_header_preproc=no
18546fi
18547rm -f conftest.err conftest.$ac_ext
18548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18549echo "${ECHO_T}$ac_header_preproc" >&6
18550
18551# So? What about this header?
18552case $ac_header_compiler:$ac_header_preproc in
18553 yes:no )
18554 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18555echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18556 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18557echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18558 (
18559 cat <<\_ASBOX
18560## ------------------------------------ ##
18561## Report this to bug-autoconf@gnu.org. ##
18562## ------------------------------------ ##
18563_ASBOX
18564 ) |
18565 sed "s/^/$as_me: WARNING: /" >&2
18566 ;;
18567 no:yes )
18568 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18569echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18570 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18571echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18572 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18573echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18574 (
18575 cat <<\_ASBOX
18576## ------------------------------------ ##
18577## Report this to bug-autoconf@gnu.org. ##
18578## ------------------------------------ ##
18579_ASBOX
18580 ) |
18581 sed "s/^/$as_me: WARNING: /" >&2
18582 ;;
18583esac
18584echo "$as_me:$LINENO: checking for png.h" >&5
18585echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18586if test "${ac_cv_header_png_h+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18588else
e6cc62c6
VS
18589 ac_cv_header_png_h=$ac_header_preproc
18590fi
18591echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18592echo "${ECHO_T}$ac_cv_header_png_h" >&6
18593
89e6bf6d
VZ
18594fi
18595
5d3f766d 18596
e6cc62c6 18597
5d3f766d 18598 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18599 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18600echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18601if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18603else
e6cc62c6 18604 ac_check_lib_save_LIBS=$LIBS
21d1c967 18605LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18606cat >conftest.$ac_ext <<_ACEOF
18607#line $LINENO "configure"
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613
21d1c967 18614/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18615#ifdef __cplusplus
18616extern "C"
18617#endif
21d1c967 18618/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18619 builtin and then its argument prototype would still apply. */
18620char png_check_sig ();
18621int
18622main ()
18623{
18624png_check_sig ();
18625 ;
18626 return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext conftest$ac_exeext
18630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18631 (eval $ac_link) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } &&
18635 { ac_try='test -s conftest$ac_exeext'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_cv_lib_png_png_check_sig=yes
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646ac_cv_lib_png_png_check_sig=no
18647fi
18648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18649LIBS=$ac_check_lib_save_LIBS
18650fi
18651echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18652echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18653if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18654 PNG_LINK=" -lpng"
a0b9e27f 18655fi
90dd450c 18656
5d3f766d 18657 fi
247f5006 18658
21d1c967
GD
18659 if test "x$PNG_LINK" = "x" ; then
18660 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18661 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18662echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18663 { (exit 1); exit 1; }; }
21d1c967 18664 else
e6cc62c6
VS
18665 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18666echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18667 wxUSE_LIBPNG=builtin
18668 fi
18669 else
2b5f62a0 18670 wxUSE_LIBPNG=sys
21d1c967
GD
18671 fi
18672 fi
18673 fi
90dd450c 18674
21d1c967
GD
18675 if test "$wxUSE_LIBPNG" = "builtin" ; then
18676 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18677 fi
90dd450c 18678
21d1c967 18679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18680fi
18681
8284b0c5 18682
21d1c967
GD
18683JPEG_INCLUDE=
18684JPEG_LINK=
18685if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18686 cat >>confdefs.h <<\_ACEOF
21d1c967 18687#define wxUSE_LIBJPEG 1
e6cc62c6 18688_ACEOF
90dd450c 18689
8284b0c5 18690
21d1c967 18691 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18692 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18693echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18694 wxUSE_LIBJPEG=sys
18695 fi
90dd450c 18696
21d1c967
GD
18697 if test "$wxUSE_MGL" != 1 ; then
18698 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18699 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18700echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18701 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703else
18704 cat >conftest.$ac_ext <<_ACEOF
18705#line $LINENO "configure"
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
90dd450c 18711
21d1c967
GD
18712 #undef HAVE_STDLIB_H
18713 #include <stdio.h>
18714 #include <jpeglib.h>
90dd450c 18715
e6cc62c6
VS
18716int
18717main ()
18718{
18719
18720
18721 ;
18722 return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext
18726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18727 (eval $ac_compile) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -s conftest.$ac_objext'
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
21d1c967 18737 ac_cv_header_jpeglib_h=yes
90dd450c 18738else
e6cc62c6
VS
18739 echo "$as_me: failed program was:" >&5
18740sed 's/^/| /' conftest.$ac_ext >&5
18741
18742ac_cv_header_jpeglib_h=no
18743
90dd450c 18744fi
e6cc62c6
VS
18745rm -f conftest.$ac_objext conftest.$ac_ext
18746
90dd450c
VZ
18747fi
18748
e6cc62c6
VS
18749 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18750echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18751
21d1c967 18752 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18753 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18754echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18755if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18757else
e6cc62c6 18758 ac_check_lib_save_LIBS=$LIBS
21d1c967 18759LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18760cat >conftest.$ac_ext <<_ACEOF
18761#line $LINENO "configure"
18762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
18767
21d1c967 18768/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18769#ifdef __cplusplus
18770extern "C"
18771#endif
21d1c967 18772/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18773 builtin and then its argument prototype would still apply. */
18774char jpeg_read_header ();
18775int
18776main ()
18777{
18778jpeg_read_header ();
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext conftest$ac_exeext
18784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18785 (eval $ac_link) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
18789 { ac_try='test -s conftest$ac_exeext'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795 ac_cv_lib_jpeg_jpeg_read_header=yes
18796else
18797 echo "$as_me: failed program was:" >&5
18798sed 's/^/| /' conftest.$ac_ext >&5
18799
18800ac_cv_lib_jpeg_jpeg_read_header=no
18801fi
18802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18803LIBS=$ac_check_lib_save_LIBS
18804fi
18805echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18806echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18807if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18808 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18809fi
18810
21d1c967 18811 fi
90dd450c 18812
21d1c967
GD
18813 if test "x$JPEG_LINK" = "x" ; then
18814 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18815 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18816echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18817 { (exit 1); exit 1; }; }
21d1c967 18818 else
e6cc62c6
VS
18819 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18820echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18821 wxUSE_LIBJPEG=builtin
18822 fi
18823 else
18824 wxUSE_LIBJPEG=sys
18825 fi
18826 fi
18827 fi
90dd450c 18828
21d1c967
GD
18829 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18830 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18831 fi
18832fi
90dd450c 18833
8284b0c5 18834
21d1c967
GD
18835TIFF_INCLUDE=
18836TIFF_LINK=
2b5f62a0 18837TIFF_PREREQ_LINKS=-lm
21d1c967 18838if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18839 cat >>confdefs.h <<\_ACEOF
21d1c967 18840#define wxUSE_LIBTIFF 1
e6cc62c6 18841_ACEOF
21d1c967 18842
8284b0c5 18843
21d1c967 18844 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18845 if test "$wxUSE_LIBJPEG" = "sys"; then
18846 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18847 fi
18848 if test "$wxUSE_ZLIB" = "sys"; then
18849 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18850 fi
e6cc62c6
VS
18851 if test "${ac_cv_header_tiffio_h+set}" = set; then
18852 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18853echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18854if test "${ac_cv_header_tiffio_h+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18856fi
18857echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18858echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18859else
18860 # Is the header compilable?
18861echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18862echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18863cat >conftest.$ac_ext <<_ACEOF
18864#line $LINENO "configure"
18865/* confdefs.h. */
18866_ACEOF
18867cat confdefs.h >>conftest.$ac_ext
18868cat >>conftest.$ac_ext <<_ACEOF
18869/* end confdefs.h. */
18870$ac_includes_default
247f5006 18871#include <tiffio.h>
e6cc62c6
VS
18872_ACEOF
18873rm -f conftest.$ac_objext
18874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18875 (eval $ac_compile) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try='test -s conftest.$ac_objext'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885 ac_header_compiler=yes
18886else
18887 echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890ac_header_compiler=no
18891fi
18892rm -f conftest.$ac_objext conftest.$ac_ext
18893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18894echo "${ECHO_T}$ac_header_compiler" >&6
18895
18896# Is the header present?
18897echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18898echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18899cat >conftest.$ac_ext <<_ACEOF
18900#line $LINENO "configure"
18901/* confdefs.h. */
18902_ACEOF
18903cat confdefs.h >>conftest.$ac_ext
18904cat >>conftest.$ac_ext <<_ACEOF
18905/* end confdefs.h. */
18906#include <tiffio.h>
18907_ACEOF
18908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } >/dev/null; then
18916 if test -s conftest.err; then
18917 ac_cpp_err=$ac_c_preproc_warn_flag
18918 else
18919 ac_cpp_err=
18920 fi
18921else
18922 ac_cpp_err=yes
18923fi
18924if test -z "$ac_cpp_err"; then
18925 ac_header_preproc=yes
18926else
18927 echo "$as_me: failed program was:" >&5
18928sed 's/^/| /' conftest.$ac_ext >&5
18929
18930 ac_header_preproc=no
18931fi
18932rm -f conftest.err conftest.$ac_ext
18933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18934echo "${ECHO_T}$ac_header_preproc" >&6
18935
18936# So? What about this header?
18937case $ac_header_compiler:$ac_header_preproc in
18938 yes:no )
18939 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18940echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18941 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18942echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18943 (
18944 cat <<\_ASBOX
18945## ------------------------------------ ##
18946## Report this to bug-autoconf@gnu.org. ##
18947## ------------------------------------ ##
18948_ASBOX
18949 ) |
18950 sed "s/^/$as_me: WARNING: /" >&2
18951 ;;
18952 no:yes )
18953 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18954echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18955 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18956echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18957 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18958echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18959 (
18960 cat <<\_ASBOX
18961## ------------------------------------ ##
18962## Report this to bug-autoconf@gnu.org. ##
18963## ------------------------------------ ##
18964_ASBOX
18965 ) |
18966 sed "s/^/$as_me: WARNING: /" >&2
18967 ;;
18968esac
18969echo "$as_me:$LINENO: checking for tiffio.h" >&5
18970echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18971if test "${ac_cv_header_tiffio_h+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973else
18974 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 18975fi
e6cc62c6
VS
18976echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18977echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18978
21d1c967 18979fi
e6cc62c6
VS
18980if test $ac_cv_header_tiffio_h = yes; then
18981 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18982echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18983if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 18985else
e6cc62c6 18986 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 18987LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
18988cat >conftest.$ac_ext <<_ACEOF
18989#line $LINENO "configure"
18990/* confdefs.h. */
18991_ACEOF
18992cat confdefs.h >>conftest.$ac_ext
18993cat >>conftest.$ac_ext <<_ACEOF
18994/* end confdefs.h. */
18995
ab9b9eab 18996/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18997#ifdef __cplusplus
18998extern "C"
18999#endif
ab9b9eab 19000/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19001 builtin and then its argument prototype would still apply. */
19002char TIFFError ();
19003int
19004main ()
19005{
19006TIFFError ();
19007 ;
19008 return 0;
19009}
19010_ACEOF
19011rm -f conftest.$ac_objext conftest$ac_exeext
19012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19013 (eval $ac_link) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -s conftest$ac_exeext'
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 ac_cv_lib_tiff_TIFFError=yes
19024else
19025 echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028ac_cv_lib_tiff_TIFFError=no
19029fi
19030rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19031LIBS=$ac_check_lib_save_LIBS
19032fi
19033echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19034echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19035if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19036 TIFF_LINK=" -ltiff"
a0b9e27f 19037fi
cd6d6d5b 19038
e6cc62c6 19039
a0b9e27f 19040fi
8284b0c5 19041
247f5006 19042
e6cc62c6 19043
21d1c967
GD
19044 if test "x$TIFF_LINK" = "x" ; then
19045 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19046 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19047echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19048 { (exit 1); exit 1; }; }
90dd450c 19049 else
e6cc62c6
VS
19050 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19051echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19052 wxUSE_LIBTIFF=builtin
d8356fa3 19053 fi
d8356fa3 19054 else
21d1c967 19055 wxUSE_LIBTIFF=sys
d8356fa3 19056 fi
21d1c967 19057 fi
d8356fa3 19058
21d1c967
GD
19059 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19060 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19061 fi
21d1c967 19062fi
10f2d63a 19063
8284b0c5 19064
21d1c967 19065AFMINSTALL=
2b5f62a0 19066WIN32INSTALL=
90dd450c 19067
21d1c967
GD
19068TOOLKIT=
19069TOOLKIT_INCLUDE=
19070WIDGET_SET=
19071
19072if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19073
19074for ac_header in w32api.h
21d1c967 19075do
e6cc62c6
VS
19076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19077if eval "test \"\${$as_ac_Header+set}\" = set"; then
19078 echo "$as_me:$LINENO: checking for $ac_header" >&5
19079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19080if eval "test \"\${$as_ac_Header+set}\" = set"; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082fi
19083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19085else
19086 # Is the header compilable?
19087echo "$as_me:$LINENO: checking $ac_header usability" >&5
19088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19089cat >conftest.$ac_ext <<_ACEOF
19090#line $LINENO "configure"
19091/* confdefs.h. */
19092_ACEOF
19093cat confdefs.h >>conftest.$ac_ext
19094cat >>conftest.$ac_ext <<_ACEOF
19095/* end confdefs.h. */
19096$ac_includes_default
19097#include <$ac_header>
19098_ACEOF
19099rm -f conftest.$ac_objext
19100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19101 (eval $ac_compile) 2>&5
19102 ac_status=$?
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } &&
19105 { ac_try='test -s conftest.$ac_objext'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_header_compiler=yes
19112else
19113 echo "$as_me: failed program was:" >&5
19114sed 's/^/| /' conftest.$ac_ext >&5
19115
19116ac_header_compiler=no
19117fi
19118rm -f conftest.$ac_objext conftest.$ac_ext
19119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19120echo "${ECHO_T}$ac_header_compiler" >&6
19121
19122# Is the header present?
19123echo "$as_me:$LINENO: checking $ac_header presence" >&5
19124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19125cat >conftest.$ac_ext <<_ACEOF
19126#line $LINENO "configure"
19127/* confdefs.h. */
19128_ACEOF
19129cat confdefs.h >>conftest.$ac_ext
19130cat >>conftest.$ac_ext <<_ACEOF
19131/* end confdefs.h. */
19132#include <$ac_header>
19133_ACEOF
19134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } >/dev/null; then
19142 if test -s conftest.err; then
19143 ac_cpp_err=$ac_c_preproc_warn_flag
19144 else
19145 ac_cpp_err=
19146 fi
19147else
19148 ac_cpp_err=yes
19149fi
19150if test -z "$ac_cpp_err"; then
19151 ac_header_preproc=yes
19152else
19153 echo "$as_me: failed program was:" >&5
19154sed 's/^/| /' conftest.$ac_ext >&5
19155
19156 ac_header_preproc=no
19157fi
19158rm -f conftest.err conftest.$ac_ext
19159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19160echo "${ECHO_T}$ac_header_preproc" >&6
19161
19162# So? What about this header?
19163case $ac_header_compiler:$ac_header_preproc in
19164 yes:no )
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19169 (
19170 cat <<\_ASBOX
19171## ------------------------------------ ##
19172## Report this to bug-autoconf@gnu.org. ##
19173## ------------------------------------ ##
19174_ASBOX
19175 ) |
19176 sed "s/^/$as_me: WARNING: /" >&2
19177 ;;
19178 no:yes )
19179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19185 (
19186 cat <<\_ASBOX
19187## ------------------------------------ ##
19188## Report this to bug-autoconf@gnu.org. ##
19189## ------------------------------------ ##
19190_ASBOX
19191 ) |
19192 sed "s/^/$as_me: WARNING: /" >&2
19193 ;;
19194esac
19195echo "$as_me:$LINENO: checking for $ac_header" >&5
19196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19197if eval "test \"\${$as_ac_Header+set}\" = set"; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199else
19200 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19201fi
e6cc62c6
VS
19202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19204
21d1c967 19205fi
e6cc62c6
VS
19206if test `eval echo '${'$as_ac_Header'}'` = yes; then
19207 cat >>confdefs.h <<_ACEOF
19208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19209_ACEOF
19210
21d1c967 19211fi
e6cc62c6 19212
21d1c967 19213done
f79bd02d 19214
e6cc62c6
VS
19215 if test "${ac_cv_header_windows_h+set}" = set; then
19216 echo "$as_me:$LINENO: checking for windows.h" >&5
19217echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19218if test "${ac_cv_header_windows_h+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19220fi
19221echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19222echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19223else
19224 # Is the header compilable?
19225echo "$as_me:$LINENO: checking windows.h usability" >&5
19226echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19227cat >conftest.$ac_ext <<_ACEOF
19228#line $LINENO "configure"
19229/* confdefs.h. */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h. */
19234$ac_includes_default
247f5006 19235#include <windows.h>
e6cc62c6
VS
19236_ACEOF
19237rm -f conftest.$ac_objext
19238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19239 (eval $ac_compile) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
19243 { ac_try='test -s conftest.$ac_objext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_header_compiler=yes
19250else
19251 echo "$as_me: failed program was:" >&5
19252sed 's/^/| /' conftest.$ac_ext >&5
19253
19254ac_header_compiler=no
19255fi
19256rm -f conftest.$ac_objext conftest.$ac_ext
19257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19258echo "${ECHO_T}$ac_header_compiler" >&6
19259
19260# Is the header present?
19261echo "$as_me:$LINENO: checking windows.h presence" >&5
19262echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19263cat >conftest.$ac_ext <<_ACEOF
19264#line $LINENO "configure"
19265/* confdefs.h. */
19266_ACEOF
19267cat confdefs.h >>conftest.$ac_ext
19268cat >>conftest.$ac_ext <<_ACEOF
19269/* end confdefs.h. */
19270#include <windows.h>
19271_ACEOF
19272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } >/dev/null; then
19280 if test -s conftest.err; then
19281 ac_cpp_err=$ac_c_preproc_warn_flag
19282 else
19283 ac_cpp_err=
19284 fi
19285else
19286 ac_cpp_err=yes
19287fi
19288if test -z "$ac_cpp_err"; then
19289 ac_header_preproc=yes
19290else
19291 echo "$as_me: failed program was:" >&5
19292sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 ac_header_preproc=no
19295fi
19296rm -f conftest.err conftest.$ac_ext
19297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19298echo "${ECHO_T}$ac_header_preproc" >&6
19299
19300# So? What about this header?
19301case $ac_header_compiler:$ac_header_preproc in
19302 yes:no )
19303 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19304echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19306echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19307 (
19308 cat <<\_ASBOX
19309## ------------------------------------ ##
19310## Report this to bug-autoconf@gnu.org. ##
19311## ------------------------------------ ##
19312_ASBOX
19313 ) |
19314 sed "s/^/$as_me: WARNING: /" >&2
19315 ;;
19316 no:yes )
19317 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19318echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19319 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19320echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19321 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19322echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19323 (
19324 cat <<\_ASBOX
19325## ------------------------------------ ##
19326## Report this to bug-autoconf@gnu.org. ##
19327## ------------------------------------ ##
19328_ASBOX
19329 ) |
19330 sed "s/^/$as_me: WARNING: /" >&2
19331 ;;
19332esac
19333echo "$as_me:$LINENO: checking for windows.h" >&5
19334echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19335if test "${ac_cv_header_windows_h+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19337else
19338 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19339fi
e6cc62c6
VS
19340echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19341echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19342
90dd450c 19343fi
e6cc62c6 19344if test $ac_cv_header_windows_h = yes; then
21d1c967 19345 :
90dd450c 19346else
21d1c967 19347
e6cc62c6
VS
19348 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19349echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19350 { (exit 1); exit 1; }; }
19351
5c6fa7d2 19352fi
7b4a847f 19353
5c6fa7d2 19354
e6cc62c6
VS
19355
19356 echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5
19357echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6
19358if test "${wx_cv_w32api_win32_ie+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 19360else
e6cc62c6
VS
19361
19362 cat >conftest.$ac_ext <<_ACEOF
19363#line $LINENO "configure"
19364/* confdefs.h. */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h. */
21d1c967 19369#include <w32api.h>
e6cc62c6
VS
19370int
19371main ()
19372{
f79bd02d 19373
21d1c967
GD
19374 #define wxCHECK_W32API_VERSION( major, minor ) \
19375 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
19376 && ( ( __W32API_MAJOR_VERSION > (major) ) \
19377 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
19378
19379 #if !wxCHECK_W32API_VERSION(1,1)
19380 #error You need w32api 1.1 or newer
19381 #endif
e6cc62c6
VS
19382
19383 ;
19384 return 0;
19385}
19386_ACEOF
19387rm -f conftest.$ac_objext
19388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19389 (eval $ac_compile) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
19393 { ac_try='test -s conftest.$ac_objext'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
19399
21d1c967 19400 wx_cv_w32api_win32_ie=yes
e6cc62c6 19401
f79bd02d 19402else
e6cc62c6
VS
19403 echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
19406
21d1c967 19407 wx_cv_w32api_win32_ie=no
e6cc62c6 19408
247f5006 19409fi
e6cc62c6 19410rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 19411
e6cc62c6
VS
19412fi
19413echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5
19414echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6
21d1c967
GD
19415 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
19416 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
19417 fi
f79bd02d 19418
b3dfbbc9 19419 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19420
7bb2947d
MB
19421 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19422 LIBS="$LIBS -loleacc"
19423 fi
19424
21d1c967
GD
19425 case "${host}" in
19426 *-*-cygwin* )
b3dfbbc9 19427 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19428 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19429 esac
f79bd02d 19430
8647bec6
RG
19431 if test "$wxUSE_ODBC" = "sys" ; then
19432 wxUSE_ODBC = "yes"
21d1c967 19433 fi
8647bec6
RG
19434 if test "$wxUSE_ODBC" = "yes" ; then
19435 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19436 cat >>confdefs.h <<\_ACEOF
8647bec6 19437#define wxUSE_ODBC 1
e6cc62c6 19438_ACEOF
f79bd02d 19439
8647bec6 19440 fi
e6cc62c6 19441
21d1c967
GD
19442 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19443 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19444
19445 WIN32INSTALL=win32install
f79bd02d 19446fi
f79bd02d 19447
b2fee376 19448if test "$USE_DARWIN" = 1; then
50bcbd3d 19449 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
19450 CPPFLAGS="$CPPFLAGS -cpp-precomp"
19451 else
19452 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
19453 fi
19454fi
19455
21d1c967
GD
19456if test "$wxUSE_GUI" = "yes"; then
19457 USE_GUI=1
f79bd02d 19458
21d1c967 19459 GUI_TK_LIBRARY=
f79bd02d 19460
21d1c967
GD
19461 WXGTK12=
19462 WXGTK127=
19463 WXGTK20=
f79bd02d 19464
21d1c967
GD
19465 if test "$wxUSE_MSW" = 1 ; then
19466 TOOLKIT=MSW
19467 GUIDIST=MSW_DIST
f79bd02d
JS
19468 fi
19469
21d1c967 19470 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19471 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19472echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19473
19474 gtk_version_cached=1
e6cc62c6
VS
19475 if test "${wx_cv_lib_gtk+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19477else
e6cc62c6 19478
21d1c967 19479 gtk_version_cached=0
e6cc62c6
VS
19480 echo "$as_me:$LINENO: result: " >&5
19481echo "${ECHO_T}" >&6
f79bd02d 19482
21d1c967
GD
19483 GTK_MODULES=
19484 if test "$wxUSE_THREADS" = "yes"; then
19485 GTK_MODULES=gthread
19486 fi
f79bd02d 19487
2b5f62a0 19488 wx_cv_lib_gtk=
21d1c967
GD
19489 if test "x$wxUSE_GTK2" = "xyes"; then
19490 # Check whether --enable-gtktest or --disable-gtktest was given.
19491if test "${enable_gtktest+set}" = set; then
19492 enableval="$enable_gtktest"
e6cc62c6 19493
f79bd02d 19494else
21d1c967 19495 enable_gtktest=yes
e6cc62c6 19496fi;
f79bd02d 19497
21d1c967
GD
19498 pkg_config_args=gtk+-2.0
19499 for module in . $GTK_MODULES
19500 do
19501 case "$module" in
e6cc62c6 19502 gthread)
21d1c967
GD
19503 pkg_config_args="$pkg_config_args gthread-2.0"
19504 ;;
19505 esac
19506 done
19507
19508 no_gtk=""
f79bd02d 19509
21d1c967
GD
19510 # Extract the first word of "pkg-config", so it can be a program name with args.
19511set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19512echo "$as_me:$LINENO: checking for $ac_word" >&5
19513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19514if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19516else
e6cc62c6
VS
19517 case $PKG_CONFIG in
19518 [\\/]* | ?:[\\/]*)
21d1c967
GD
19519 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19520 ;;
21d1c967 19521 *)
e6cc62c6
VS
19522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19523for as_dir in $PATH
19524do
19525 IFS=$as_save_IFS
19526 test -z "$as_dir" && as_dir=.
19527 for ac_exec_ext in '' $ac_executable_extensions; do
19528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19529 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19531 break 2
19532 fi
19533done
19534done
19535
21d1c967
GD
19536 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19537 ;;
19538esac
f79bd02d 19539fi
e6cc62c6
VS
19540PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19541
21d1c967 19542if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19543 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19544echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19545else
e6cc62c6
VS
19546 echo "$as_me:$LINENO: result: no" >&5
19547echo "${ECHO_T}no" >&6
f79bd02d
JS
19548fi
19549
8284b0c5 19550
21d1c967
GD
19551 if test x$PKG_CONFIG != xno ; then
19552 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19553 :
19554 else
19555 echo *** pkg-config too old; version 0.7 or better required.
19556 no_gtk=yes
19557 PKG_CONFIG=no
19558 fi
19559 else
19560 no_gtk=yes
19561 fi
f79bd02d 19562
21d1c967 19563 min_gtk_version=2.0.0
e6cc62c6
VS
19564 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19565echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19566
21d1c967
GD
19567 if test x$PKG_CONFIG != xno ; then
19568 ## don't try to run the test against uninstalled libtool libs
19569 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19570 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19571 enable_gtktest=no
19572 fi
f79bd02d 19573
21d1c967
GD
19574 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19575 :
19576 else
19577 no_gtk=yes
19578 fi
19579 fi
f79bd02d 19580
21d1c967
GD
19581 if test x"$no_gtk" = x ; then
19582 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19583 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19584 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19585 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19586 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19587 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19588 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19589 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19590 if test "x$enable_gtktest" = "xyes" ; then
19591 ac_save_CFLAGS="$CFLAGS"
19592 ac_save_LIBS="$LIBS"
19593 CFLAGS="$CFLAGS $GTK_CFLAGS"
19594 LIBS="$GTK_LIBS $LIBS"
19595 rm -f conf.gtktest
19596 if test "$cross_compiling" = yes; then
19597 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19598else
e6cc62c6
VS
19599 cat >conftest.$ac_ext <<_ACEOF
19600#line $LINENO "configure"
19601/* confdefs.h. */
19602_ACEOF
19603cat confdefs.h >>conftest.$ac_ext
19604cat >>conftest.$ac_ext <<_ACEOF
19605/* end confdefs.h. */
f79bd02d 19606
21d1c967
GD
19607#include <gtk/gtk.h>
19608#include <stdio.h>
19609#include <stdlib.h>
f79bd02d 19610
e6cc62c6 19611int
21d1c967
GD
19612main ()
19613{
19614 int major, minor, micro;
19615 char *tmp_version;
f79bd02d 19616
21d1c967 19617 system ("touch conf.gtktest");
f79bd02d 19618
21d1c967
GD
19619 /* HP/UX 9 (%@#!) writes to sscanf strings */
19620 tmp_version = g_strdup("$min_gtk_version");
19621 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19622 printf("%s, bad version string\n", "$min_gtk_version");
19623 exit(1);
19624 }
f79bd02d 19625
21d1c967
GD
19626 if ((gtk_major_version != $gtk_config_major_version) ||
19627 (gtk_minor_version != $gtk_config_minor_version) ||
19628 (gtk_micro_version != $gtk_config_micro_version))
19629 {
e6cc62c6 19630 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19631 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19632 gtk_major_version, gtk_minor_version, gtk_micro_version);
19633 printf ("*** was found! If pkg-config was correct, then it is best\n");
19634 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19635 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19636 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19637 printf("*** required on your system.\n");
19638 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19639 printf("*** to point to the correct configuration files\n");
e6cc62c6 19640 }
21d1c967
GD
19641 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19642 (gtk_minor_version != GTK_MINOR_VERSION) ||
19643 (gtk_micro_version != GTK_MICRO_VERSION))
19644 {
19645 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19646 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19647 printf("*** library (version %d.%d.%d)\n",
19648 gtk_major_version, gtk_minor_version, gtk_micro_version);
19649 }
19650 else
19651 {
19652 if ((gtk_major_version > major) ||
19653 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19654 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19655 {
19656 return 0;
19657 }
19658 else
19659 {
19660 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19661 gtk_major_version, gtk_minor_version, gtk_micro_version);
19662 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19663 major, minor, micro);
19664 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19665 printf("***\n");
19666 printf("*** If you have already installed a sufficiently new version, this error\n");
19667 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19668 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19669 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19670 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19671 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19672 printf("*** so that the correct libraries are found at run-time))\n");
19673 }
19674 }
19675 return 1;
19676}
f79bd02d 19677
e6cc62c6
VS
19678_ACEOF
19679rm -f conftest$ac_exeext
19680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681 (eval $ac_link) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
21d1c967 19690 :
f79bd02d 19691else
e6cc62c6
VS
19692 echo "$as_me: program exited with status $ac_status" >&5
19693echo "$as_me: failed program was:" >&5
19694sed 's/^/| /' conftest.$ac_ext >&5
19695
19696( exit $ac_status )
19697no_gtk=yes
f79bd02d 19698fi
e6cc62c6 19699rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 19700fi
21d1c967
GD
19701 CFLAGS="$ac_save_CFLAGS"
19702 LIBS="$ac_save_LIBS"
19703 fi
19704 fi
19705 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19706 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19707echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19708 wx_cv_lib_gtk=2.0
21d1c967 19709 else
e6cc62c6
VS
19710 echo "$as_me:$LINENO: result: no" >&5
19711echo "${ECHO_T}no" >&6
21d1c967
GD
19712 if test "$PKG_CONFIG" = "no" ; then
19713 echo "*** A new enough version of pkg-config was not found."
19714 echo "*** See http://pkgconfig.sourceforge.net"
19715 else
19716 if test -f conf.gtktest ; then
19717 :
19718 else
19719 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
19720 ac_save_CFLAGS="$CFLAGS"
19721 ac_save_LIBS="$LIBS"
21d1c967
GD
19722 CFLAGS="$CFLAGS $GTK_CFLAGS"
19723 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19724 cat >conftest.$ac_ext <<_ACEOF
19725#line $LINENO "configure"
19726/* confdefs.h. */
19727_ACEOF
19728cat confdefs.h >>conftest.$ac_ext
19729cat >>conftest.$ac_ext <<_ACEOF
19730/* end confdefs.h. */
21d1c967
GD
19731
19732#include <gtk/gtk.h>
19733#include <stdio.h>
f79bd02d 19734
e6cc62c6
VS
19735int
19736main ()
19737{
19738 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19739 ;
19740 return 0;
19741}
19742_ACEOF
19743rm -f conftest.$ac_objext conftest$ac_exeext
19744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19745 (eval $ac_link) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -s conftest$ac_exeext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
21d1c967
GD
19755 echo "*** The test program compiled, but did not run. This usually means"
19756 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19757 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19758 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19759 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19760 echo "*** is required on your system"
19761 echo "***"
19762 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 19763 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 19764else
e6cc62c6
VS
19765 echo "$as_me: failed program was:" >&5
19766sed 's/^/| /' conftest.$ac_ext >&5
19767
19768 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 19769 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 19770fi
e6cc62c6 19771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
19772 CFLAGS="$ac_save_CFLAGS"
19773 LIBS="$ac_save_LIBS"
19774 fi
19775 fi
19776 GTK_CFLAGS=""
19777 GTK_LIBS=""
19778 :
19779 fi
e6cc62c6
VS
19780
19781
21d1c967 19782 rm -f conf.gtktest
f79bd02d 19783
2b5f62a0 19784 else
e6cc62c6
VS
19785
19786# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
19787if test "${with_gtk_prefix+set}" = set; then
19788 withval="$with_gtk_prefix"
19789 gtk_config_prefix="$withval"
19790else
19791 gtk_config_prefix=""
e6cc62c6 19792fi;
f79bd02d 19793
21d1c967
GD
19794# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19795if test "${with_gtk_exec_prefix+set}" = set; then
19796 withval="$with_gtk_exec_prefix"
19797 gtk_config_exec_prefix="$withval"
19798else
19799 gtk_config_exec_prefix=""
e6cc62c6 19800fi;
21d1c967
GD
19801# Check whether --enable-gtktest or --disable-gtktest was given.
19802if test "${enable_gtktest+set}" = set; then
19803 enableval="$enable_gtktest"
e6cc62c6 19804
21d1c967
GD
19805else
19806 enable_gtktest=yes
e6cc62c6 19807fi;
21d1c967
GD
19808
19809 for module in . $GTK_MODULES
19810 do
19811 case "$module" in
e6cc62c6 19812 gthread)
21d1c967
GD
19813 gtk_config_args="$gtk_config_args gthread"
19814 ;;
19815 esac
19816 done
19817
19818 if test x$gtk_config_exec_prefix != x ; then
19819 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19820 if test x${GTK_CONFIG+set} != xset ; then
19821 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19822 fi
19823 fi
19824 if test x$gtk_config_prefix != x ; then
19825 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
19826 if test x${GTK_CONFIG+set} != xset ; then
19827 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
19828 fi
19829 fi
19830
19831 # Extract the first word of "gtk-config", so it can be a program name with args.
19832set dummy gtk-config; ac_word=$2
e6cc62c6
VS
19833echo "$as_me:$LINENO: checking for $ac_word" >&5
19834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19835if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19837else
e6cc62c6
VS
19838 case $GTK_CONFIG in
19839 [\\/]* | ?:[\\/]*)
21d1c967
GD
19840 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
19841 ;;
21d1c967 19842 *)
e6cc62c6
VS
19843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19844for as_dir in $PATH
19845do
19846 IFS=$as_save_IFS
19847 test -z "$as_dir" && as_dir=.
19848 for ac_exec_ext in '' $ac_executable_extensions; do
19849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19850 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19852 break 2
19853 fi
19854done
19855done
19856
21d1c967
GD
19857 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
19858 ;;
19859esac
19860fi
e6cc62c6
VS
19861GTK_CONFIG=$ac_cv_path_GTK_CONFIG
19862
21d1c967 19863if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
19864 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
19865echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 19866else
e6cc62c6
VS
19867 echo "$as_me:$LINENO: result: no" >&5
19868echo "${ECHO_T}no" >&6
21d1c967
GD
19869fi
19870
19871 min_gtk_version=1.2.7
e6cc62c6
VS
19872 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
19873echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
19874 no_gtk=""
19875 if test "$GTK_CONFIG" = "no" ; then
19876 no_gtk=yes
19877 else
19878 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
19879 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
19880 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
19881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19882 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
19883 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19884 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
19885 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19886 if test "x$enable_gtktest" = "xyes" ; then
19887 ac_save_CFLAGS="$CFLAGS"
19888 ac_save_LIBS="$LIBS"
19889 CFLAGS="$CFLAGS $GTK_CFLAGS"
19890 LIBS="$GTK_LIBS $LIBS"
19891 rm -f conf.gtktest
19892 if test "$cross_compiling" = yes; then
19893 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19894else
e6cc62c6
VS
19895 cat >conftest.$ac_ext <<_ACEOF
19896#line $LINENO "configure"
19897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
f79bd02d 19902
21d1c967
GD
19903#include <gtk/gtk.h>
19904#include <stdio.h>
19905#include <stdlib.h>
f79bd02d 19906
e6cc62c6 19907int
21d1c967
GD
19908main ()
19909{
19910 int major, minor, micro;
19911 char *tmp_version;
19912
19913 system ("touch conf.gtktest");
19914
19915 /* HP/UX 9 (%@#!) writes to sscanf strings */
19916 tmp_version = g_strdup("$min_gtk_version");
19917 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19918 printf("%s, bad version string\n", "$min_gtk_version");
19919 exit(1);
19920 }
90dd450c 19921
21d1c967
GD
19922 if ((gtk_major_version != $gtk_config_major_version) ||
19923 (gtk_minor_version != $gtk_config_minor_version) ||
19924 (gtk_micro_version != $gtk_config_micro_version))
19925 {
e6cc62c6 19926 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19927 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19928 gtk_major_version, gtk_minor_version, gtk_micro_version);
19929 printf ("*** was found! If gtk-config was correct, then it is best\n");
19930 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19931 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19932 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19933 printf("*** required on your system.\n");
19934 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19935 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19936 printf("*** before re-running configure\n");
e6cc62c6 19937 }
21d1c967
GD
19938#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19939 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19940 (gtk_minor_version != GTK_MINOR_VERSION) ||
19941 (gtk_micro_version != GTK_MICRO_VERSION))
19942 {
19943 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19944 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19945 printf("*** library (version %d.%d.%d)\n",
19946 gtk_major_version, gtk_minor_version, gtk_micro_version);
19947 }
19948#endif /* defined (GTK_MAJOR_VERSION) ... */
19949 else
19950 {
19951 if ((gtk_major_version > major) ||
19952 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19953 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19954 {
19955 return 0;
19956 }
19957 else
19958 {
19959 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19960 gtk_major_version, gtk_minor_version, gtk_micro_version);
19961 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19962 major, minor, micro);
19963 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19964 printf("***\n");
19965 printf("*** If you have already installed a sufficiently new version, this error\n");
19966 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19967 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19968 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19969 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19970 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19971 printf("*** so that the correct libraries are found at run-time))\n");
19972 }
19973 }
19974 return 1;
19975}
19976
e6cc62c6
VS
19977_ACEOF
19978rm -f conftest$ac_exeext
19979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19980 (eval $ac_link) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
21d1c967
GD
19989 :
19990else
e6cc62c6
VS
19991 echo "$as_me: program exited with status $ac_status" >&5
19992echo "$as_me: failed program was:" >&5
19993sed 's/^/| /' conftest.$ac_ext >&5
19994
19995( exit $ac_status )
19996no_gtk=yes
21d1c967 19997fi
e6cc62c6 19998rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 19999fi
21d1c967
GD
20000 CFLAGS="$ac_save_CFLAGS"
20001 LIBS="$ac_save_LIBS"
20002 fi
20003 fi
20004 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20005 echo "$as_me:$LINENO: result: yes" >&5
20006echo "${ECHO_T}yes" >&6
20007 wx_cv_lib_gtk=1.2.7
21d1c967 20008 else
e6cc62c6
VS
20009 echo "$as_me:$LINENO: result: no" >&5
20010echo "${ECHO_T}no" >&6
21d1c967
GD
20011 if test "$GTK_CONFIG" = "no" ; then
20012 echo "*** The gtk-config script installed by GTK could not be found"
20013 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20014 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20015 echo "*** full path to gtk-config."
20016 else
20017 if test -f conf.gtktest ; then
20018 :
20019 else
20020 echo "*** Could not run GTK test program, checking why..."
20021 CFLAGS="$CFLAGS $GTK_CFLAGS"
20022 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20023 cat >conftest.$ac_ext <<_ACEOF
20024#line $LINENO "configure"
20025/* confdefs.h. */
20026_ACEOF
20027cat confdefs.h >>conftest.$ac_ext
20028cat >>conftest.$ac_ext <<_ACEOF
20029/* end confdefs.h. */
21d1c967
GD
20030
20031#include <gtk/gtk.h>
20032#include <stdio.h>
20033
e6cc62c6
VS
20034int
20035main ()
20036{
20037 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20038 ;
20039 return 0;
20040}
20041_ACEOF
20042rm -f conftest.$ac_objext conftest$ac_exeext
20043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20044 (eval $ac_link) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -s conftest$ac_exeext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
21d1c967
GD
20054 echo "*** The test program compiled, but did not run. This usually means"
20055 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20056 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20057 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20058 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20059 echo "*** is required on your system"
20060 echo "***"
20061 echo "*** If you have an old version installed, it is best to remove it, although"
20062 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20063 echo "***"
20064 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20065 echo "*** came with the system with the command"
20066 echo "***"
e6cc62c6 20067 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20068else
e6cc62c6
VS
20069 echo "$as_me: failed program was:" >&5
20070sed 's/^/| /' conftest.$ac_ext >&5
20071
20072 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20073 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20074 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20075 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20076fi
e6cc62c6 20077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20078 CFLAGS="$ac_save_CFLAGS"
20079 LIBS="$ac_save_LIBS"
20080 fi
20081 fi
20082 GTK_CFLAGS=""
20083 GTK_LIBS=""
20084 :
20085 fi
e6cc62c6
VS
20086
20087
21d1c967
GD
20088 rm -f conf.gtktest
20089
21d1c967 20090
2b5f62a0 20091 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20092
20093# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20094if test "${with_gtk_prefix+set}" = set; then
20095 withval="$with_gtk_prefix"
20096 gtk_config_prefix="$withval"
20097else
20098 gtk_config_prefix=""
e6cc62c6 20099fi;
f79bd02d 20100
21d1c967
GD
20101# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20102if test "${with_gtk_exec_prefix+set}" = set; then
20103 withval="$with_gtk_exec_prefix"
20104 gtk_config_exec_prefix="$withval"
20105else
20106 gtk_config_exec_prefix=""
e6cc62c6 20107fi;
21d1c967
GD
20108# Check whether --enable-gtktest or --disable-gtktest was given.
20109if test "${enable_gtktest+set}" = set; then
20110 enableval="$enable_gtktest"
e6cc62c6 20111
90dd450c 20112else
21d1c967 20113 enable_gtktest=yes
e6cc62c6 20114fi;
21d1c967
GD
20115
20116 for module in . $GTK_MODULES
20117 do
20118 case "$module" in
e6cc62c6 20119 gthread)
21d1c967
GD
20120 gtk_config_args="$gtk_config_args gthread"
20121 ;;
20122 esac
20123 done
20124
20125 if test x$gtk_config_exec_prefix != x ; then
20126 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20127 if test x${GTK_CONFIG+set} != xset ; then
20128 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20129 fi
20130 fi
20131 if test x$gtk_config_prefix != x ; then
20132 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20133 if test x${GTK_CONFIG+set} != xset ; then
20134 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20135 fi
20136 fi
20137
20138 # Extract the first word of "gtk-config", so it can be a program name with args.
20139set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20140echo "$as_me:$LINENO: checking for $ac_word" >&5
20141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20142if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20144else
e6cc62c6
VS
20145 case $GTK_CONFIG in
20146 [\\/]* | ?:[\\/]*)
21d1c967
GD
20147 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20148 ;;
21d1c967 20149 *)
e6cc62c6
VS
20150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20151for as_dir in $PATH
20152do
20153 IFS=$as_save_IFS
20154 test -z "$as_dir" && as_dir=.
20155 for ac_exec_ext in '' $ac_executable_extensions; do
20156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20157 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20159 break 2
20160 fi
20161done
20162done
20163
21d1c967
GD
20164 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20165 ;;
20166esac
20167fi
e6cc62c6
VS
20168GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20169
21d1c967 20170if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20171 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20172echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20173else
e6cc62c6
VS
20174 echo "$as_me:$LINENO: result: no" >&5
20175echo "${ECHO_T}no" >&6
21d1c967
GD
20176fi
20177
20178 min_gtk_version=1.2.3
e6cc62c6
VS
20179 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20180echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20181 no_gtk=""
20182 if test "$GTK_CONFIG" = "no" ; then
20183 no_gtk=yes
20184 else
20185 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20186 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20187 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20188 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20189 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20190 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20191 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20192 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20193 if test "x$enable_gtktest" = "xyes" ; then
20194 ac_save_CFLAGS="$CFLAGS"
20195 ac_save_LIBS="$LIBS"
20196 CFLAGS="$CFLAGS $GTK_CFLAGS"
20197 LIBS="$GTK_LIBS $LIBS"
20198 rm -f conf.gtktest
20199 if test "$cross_compiling" = yes; then
20200 echo $ac_n "cross compiling; assumed OK... $ac_c"
20201else
e6cc62c6
VS
20202 cat >conftest.$ac_ext <<_ACEOF
20203#line $LINENO "configure"
20204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
20208/* end confdefs.h. */
21d1c967
GD
20209
20210#include <gtk/gtk.h>
20211#include <stdio.h>
20212#include <stdlib.h>
20213
e6cc62c6 20214int
21d1c967
GD
20215main ()
20216{
20217 int major, minor, micro;
20218 char *tmp_version;
20219
20220 system ("touch conf.gtktest");
20221
20222 /* HP/UX 9 (%@#!) writes to sscanf strings */
20223 tmp_version = g_strdup("$min_gtk_version");
20224 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20225 printf("%s, bad version string\n", "$min_gtk_version");
20226 exit(1);
20227 }
20228
20229 if ((gtk_major_version != $gtk_config_major_version) ||
20230 (gtk_minor_version != $gtk_config_minor_version) ||
20231 (gtk_micro_version != $gtk_config_micro_version))
20232 {
e6cc62c6 20233 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20234 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20235 gtk_major_version, gtk_minor_version, gtk_micro_version);
20236 printf ("*** was found! If gtk-config was correct, then it is best\n");
20237 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20238 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20239 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20240 printf("*** required on your system.\n");
20241 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20242 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20243 printf("*** before re-running configure\n");
e6cc62c6 20244 }
21d1c967
GD
20245#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20246 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20247 (gtk_minor_version != GTK_MINOR_VERSION) ||
20248 (gtk_micro_version != GTK_MICRO_VERSION))
20249 {
20250 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20251 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20252 printf("*** library (version %d.%d.%d)\n",
20253 gtk_major_version, gtk_minor_version, gtk_micro_version);
20254 }
20255#endif /* defined (GTK_MAJOR_VERSION) ... */
20256 else
20257 {
20258 if ((gtk_major_version > major) ||
20259 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20260 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20261 {
20262 return 0;
20263 }
20264 else
20265 {
20266 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20267 gtk_major_version, gtk_minor_version, gtk_micro_version);
20268 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20269 major, minor, micro);
20270 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20271 printf("***\n");
20272 printf("*** If you have already installed a sufficiently new version, this error\n");
20273 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20274 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20275 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20276 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20277 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20278 printf("*** so that the correct libraries are found at run-time))\n");
20279 }
20280 }
20281 return 1;
20282}
20283
e6cc62c6
VS
20284_ACEOF
20285rm -f conftest$ac_exeext
20286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20287 (eval $ac_link) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; }; then
21d1c967
GD
20296 :
20297else
e6cc62c6
VS
20298 echo "$as_me: program exited with status $ac_status" >&5
20299echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
20302( exit $ac_status )
20303no_gtk=yes
21d1c967 20304fi
e6cc62c6 20305rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20306fi
21d1c967
GD
20307 CFLAGS="$ac_save_CFLAGS"
20308 LIBS="$ac_save_LIBS"
20309 fi
20310 fi
20311 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20312 echo "$as_me:$LINENO: result: yes" >&5
20313echo "${ECHO_T}yes" >&6
20314 wx_cv_lib_gtk=1.2.3
21d1c967 20315 else
e6cc62c6
VS
20316 echo "$as_me:$LINENO: result: no" >&5
20317echo "${ECHO_T}no" >&6
21d1c967
GD
20318 if test "$GTK_CONFIG" = "no" ; then
20319 echo "*** The gtk-config script installed by GTK could not be found"
20320 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20321 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20322 echo "*** full path to gtk-config."
20323 else
20324 if test -f conf.gtktest ; then
20325 :
20326 else
20327 echo "*** Could not run GTK test program, checking why..."
20328 CFLAGS="$CFLAGS $GTK_CFLAGS"
20329 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20330 cat >conftest.$ac_ext <<_ACEOF
20331#line $LINENO "configure"
20332/* confdefs.h. */
20333_ACEOF
20334cat confdefs.h >>conftest.$ac_ext
20335cat >>conftest.$ac_ext <<_ACEOF
20336/* end confdefs.h. */
21d1c967
GD
20337
20338#include <gtk/gtk.h>
20339#include <stdio.h>
f79bd02d 20340
e6cc62c6
VS
20341int
20342main ()
20343{
20344 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20345 ;
20346 return 0;
20347}
20348_ACEOF
20349rm -f conftest.$ac_objext conftest$ac_exeext
20350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20351 (eval $ac_link) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } &&
20355 { ac_try='test -s conftest$ac_exeext'
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20358 ac_status=$?
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; }; then
21d1c967
GD
20361 echo "*** The test program compiled, but did not run. This usually means"
20362 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20363 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20364 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20365 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20366 echo "*** is required on your system"
20367 echo "***"
20368 echo "*** If you have an old version installed, it is best to remove it, although"
20369 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20370 echo "***"
20371 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20372 echo "*** came with the system with the command"
20373 echo "***"
e6cc62c6 20374 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20375else
e6cc62c6
VS
20376 echo "$as_me: failed program was:" >&5
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
20379 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20380 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20381 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20382 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20383fi
e6cc62c6 20384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20385 CFLAGS="$ac_save_CFLAGS"
20386 LIBS="$ac_save_LIBS"
20387 fi
20388 fi
20389 GTK_CFLAGS=""
20390 GTK_LIBS=""
20391 :
20392 fi
e6cc62c6
VS
20393
20394
21d1c967 20395 rm -f conf.gtktest
f79bd02d 20396
2b5f62a0 20397 fi
21d1c967
GD
20398 fi
20399
20400 if test -z "$wx_cv_lib_gtk"; then
20401 wx_cv_lib_gtk=none
20402 else
20403 wx_cv_cflags_gtk=$GTK_CFLAGS
20404 wx_cv_libs_gtk=$GTK_LIBS
20405 fi
e6cc62c6
VS
20406
20407
5c6fa7d2 20408fi
52127426 20409
8284b0c5 20410
21d1c967 20411 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20412 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20413echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20414 fi
20415
20416 case "$wx_cv_lib_gtk" in
20417 2.0) WXGTK20=1
2b5f62a0 20418 TOOLKIT_VERSION=2
21d1c967
GD
20419 ;;
20420 1.2.7) WXGTK127=1
20421 WXGTK12=1
20422 ;;
20423 1.2.3) WXGTK12=1
20424 ;;
e6cc62c6
VS
20425 *) { { echo "$as_me:$LINENO: error:
20426Please check that gtk-config is in path, the directory
20427where GTK+ libraries are installed (returned by
20428'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20429equivalent variable and GTK+ is version 1.2.3 or above.
20430 " >&5
20431echo "$as_me: error:
247f5006
VZ
20432Please check that gtk-config is in path, the directory
20433where GTK+ libraries are installed (returned by
20434'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20435equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20436 " >&2;}
20437 { (exit 1); exit 1; }; }
21d1c967
GD
20438 ;;
20439 esac
20440
b13cd66e
VZ
20441 if test "$WXGTK20" = 1; then
20442 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20443
f09359cf
VS
20444 succeeded=no
20445
20446 if test -z "$PKG_CONFIG"; then
20447 # Extract the first word of "pkg-config", so it can be a program name with args.
20448set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20449echo "$as_me:$LINENO: checking for $ac_word" >&5
20450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20451if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20453else
e6cc62c6
VS
20454 case $PKG_CONFIG in
20455 [\\/]* | ?:[\\/]*)
f09359cf
VS
20456 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20457 ;;
f09359cf 20458 *)
e6cc62c6
VS
20459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20460for as_dir in $PATH
20461do
20462 IFS=$as_save_IFS
20463 test -z "$as_dir" && as_dir=.
20464 for ac_exec_ext in '' $ac_executable_extensions; do
20465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20466 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20468 break 2
20469 fi
20470done
20471done
20472
f09359cf
VS
20473 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20474 ;;
20475esac
20476fi
e6cc62c6
VS
20477PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20478
f09359cf 20479if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20480 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20481echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20482else
e6cc62c6
VS
20483 echo "$as_me:$LINENO: result: no" >&5
20484echo "${ECHO_T}no" >&6
f09359cf
VS
20485fi
20486
20487 fi
20488
20489 if test "$PKG_CONFIG" = "no" ; then
20490 echo "*** The pkg-config script could not be found. Make sure it is"
20491 echo "*** in your path, or set the PKG_CONFIG environment variable"
20492 echo "*** to the full path to pkg-config."
20493 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20494 else
20495 PKG_CONFIG_MIN_VERSION=0.9.0
20496 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20497 echo "$as_me:$LINENO: checking for pangoft2" >&5
20498echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20499
20500 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20501 echo "$as_me:$LINENO: result: yes" >&5
20502echo "${ECHO_T}yes" >&6
f09359cf
VS
20503 succeeded=yes
20504
e6cc62c6
VS
20505 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20506echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20507 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20508 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20509echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20510
e6cc62c6
VS
20511 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20512echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20513 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20514 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20515echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20516 else
20517 PANGOFT2_CFLAGS=""
20518 PANGOFT2_LIBS=""
e6cc62c6 20519 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20520 ## do set a variable so people can do so.
20521 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20522
f09359cf
VS
20523 fi
20524
e6cc62c6
VS
20525
20526
f09359cf
VS
20527 else
20528 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20529 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20530 fi
20531 fi
20532
20533 if test $succeeded = yes; then
e6cc62c6 20534
b13cd66e 20535 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20536 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20537
f09359cf 20538 else
e6cc62c6
VS
20539
20540 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20541echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20542 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20543
20544
f09359cf
VS
20545 fi
20546
b13cd66e 20547 fi
2b5f62a0
VZ
20548 else
20549 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20550 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20551echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20552 wxUSE_UNICODE=no
20553 fi
20554 fi
20555
20556 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20557
20558for ac_func in poll
2b5f62a0 20559do
e6cc62c6
VS
20560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20561echo "$as_me:$LINENO: checking for $ac_func" >&5
20562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20563if eval "test \"\${$as_ac_var+set}\" = set"; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20565else
20566 cat >conftest.$ac_ext <<_ACEOF
20567#line $LINENO "configure"
20568/* confdefs.h. */
20569_ACEOF
20570cat confdefs.h >>conftest.$ac_ext
20571cat >>conftest.$ac_ext <<_ACEOF
20572/* end confdefs.h. */
2b5f62a0 20573/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20574 which can conflict with char $ac_func (); below.
20575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20576 <limits.h> exists even on freestanding compilers. */
20577#ifdef __STDC__
20578# include <limits.h>
20579#else
20580# include <assert.h>
20581#endif
2b5f62a0 20582/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20583#ifdef __cplusplus
20584extern "C"
20585{
20586#endif
2b5f62a0 20587/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20588 builtin and then its argument prototype would still apply. */
20589char $ac_func ();
2b5f62a0
VZ
20590/* The GNU C library defines this for functions which it implements
20591 to always fail with ENOSYS. Some functions are actually named
20592 something starting with __ and the normal name is an alias. */
20593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20594choke me
20595#else
e6cc62c6
VS
20596char (*f) () = $ac_func;
20597#endif
20598#ifdef __cplusplus
20599}
2b5f62a0
VZ
20600#endif
20601
e6cc62c6
VS
20602int
20603main ()
20604{
20605return f != $ac_func;
20606 ;
20607 return 0;
20608}
20609_ACEOF
20610rm -f conftest.$ac_objext conftest$ac_exeext
20611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20612 (eval $ac_link) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -s conftest$ac_exeext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 eval "$as_ac_var=yes"
20623else
20624 echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627eval "$as_ac_var=no"
20628fi
20629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20630fi
20631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20633if test `eval echo '${'$as_ac_var'}'` = yes; then
20634 cat >>confdefs.h <<_ACEOF
20635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20636_ACEOF
2b5f62a0 20637
2b5f62a0
VZ
20638fi
20639done
20640
f09359cf
VS
20641 fi
20642
21d1c967 20643 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 20644 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
20645
20646 AFMINSTALL=afminstall
20647 TOOLKIT=GTK
20648 GUIDIST=GTK_DIST
20649
e6cc62c6
VS
20650 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20651echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20652if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20654else
e6cc62c6 20655 ac_check_lib_save_LIBS=$LIBS
21d1c967 20656LIBS="-lgdk $LIBS"
e6cc62c6
VS
20657cat >conftest.$ac_ext <<_ACEOF
20658#line $LINENO "configure"
20659/* confdefs.h. */
20660_ACEOF
20661cat confdefs.h >>conftest.$ac_ext
20662cat >>conftest.$ac_ext <<_ACEOF
20663/* end confdefs.h. */
20664
5c6fa7d2 20665/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20666#ifdef __cplusplus
20667extern "C"
20668#endif
5c6fa7d2 20669/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20670 builtin and then its argument prototype would still apply. */
20671char gdk_im_open ();
20672int
20673main ()
20674{
20675gdk_im_open ();
20676 ;
20677 return 0;
20678}
20679_ACEOF
20680rm -f conftest.$ac_objext conftest$ac_exeext
20681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20682 (eval $ac_link) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
20686 { ac_try='test -s conftest$ac_exeext'
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
20692 ac_cv_lib_gdk_gdk_im_open=yes
20693else
20694 echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697ac_cv_lib_gdk_gdk_im_open=no
20698fi
20699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20700LIBS=$ac_check_lib_save_LIBS
20701fi
20702echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20703echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20704if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20705 cat >>confdefs.h <<\_ACEOF
21d1c967 20706#define HAVE_XIM 1
e6cc62c6 20707_ACEOF
21d1c967 20708
90dd450c 20709fi
1e6feb95 20710
21d1c967 20711 fi
1e6feb95 20712
21d1c967 20713 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
20714 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20715echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 20716 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
20717 echo "$as_me:$LINENO: result: not found" >&5
20718echo "${ECHO_T}not found" >&6
20719 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20720echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20721 { (exit 1); exit 1; }; }
21d1c967 20722 else
e6cc62c6
VS
20723 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20724echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
20725 fi
20726
e6cc62c6
VS
20727 echo "$as_me:$LINENO: checking for libmgl location" >&5
20728echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
20729 case "${host}" in
20730 *-*-linux* )
63a76696
VS
20731 if test "x$wxUSE_SHARED" = xyes ; then
20732 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20733 else
20734 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20735 fi
21d1c967
GD
20736 ;;
20737 *-pc-msdosdjgpp )
63a76696 20738 mgl_os_candidates="dos32/dj2"
21d1c967
GD
20739 ;;
20740 *)
e6cc62c6
VS
20741 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20742echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20743 { (exit 1); exit 1; }; }
21d1c967 20744 esac
1e6feb95 20745
21d1c967 20746 mgl_lib_type=""
63a76696
VS
20747 mgl_os=""
20748
20749 for mgl_os_i in $mgl_os_candidates ; do
20750 if test "x$mgl_os" = x ; then
20751 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20752 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20753 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20754 mgl_lib_type=debug
20755 mgl_os=$mgl_os_i
20756 fi
20757 fi
20758 if test "x$mgl_lib_type" = x ; then
20759 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20760 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20761 mgl_lib_type=release
20762 mgl_os=$mgl_os_i
20763 fi
20764 fi
21d1c967 20765 fi
63a76696 20766 done
2224580a 20767
63a76696 20768 if test "x$mgl_os" = x ; then
e6cc62c6
VS
20769 echo "$as_me:$LINENO: result: not found" >&5
20770echo "${ECHO_T}not found" >&6
20771 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20772echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20773 { (exit 1); exit 1; }; }
63a76696 20774 fi
e6cc62c6
VS
20775 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20776echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 20777
1d1b75ac
VZ
20778 wxUSE_UNIVERSAL="yes"
20779
21d1c967
GD
20780 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20781 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20782
90dd450c 20783 AFMINSTALL=afminstall
21d1c967
GD
20784 TOOLKIT=MGL
20785 GUIDIST=MGL_DIST
20786 fi
dad6c0ea 20787
21d1c967 20788 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
20789 echo "$as_me:$LINENO: checking for MicroWindows" >&5
20790echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 20791 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
20792 echo "$as_me:$LINENO: result: not found" >&5
20793echo "${ECHO_T}not found" >&6
20794 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20795echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20796 { (exit 1); exit 1; }; }
21d1c967 20797 else
e6cc62c6
VS
20798 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20799echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 20800 fi
f6bcfd97 20801
21d1c967 20802 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
20803 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
20804echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 20805 else
e6cc62c6
VS
20806 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
20807echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
20808 { (exit 1); exit 1; }; }
90dd450c 20809 fi
0b2effe9 20810
21d1c967
GD
20811 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
20812 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
20813
1d1b75ac
VZ
20814 wxUSE_UNIVERSAL="yes"
20815
21d1c967
GD
20816 AFMINSTALL=afminstall
20817 TOOLKIT=MICROWIN
20818 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
20819
20820 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 20821 fi
f6bcfd97 20822
21d1c967 20823 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
20824 echo "$as_me:$LINENO: checking for X" >&5
20825echo $ECHO_N "checking for X... $ECHO_C" >&6
20826
d8356fa3 20827
21d1c967
GD
20828# Check whether --with-x or --without-x was given.
20829if test "${with_x+set}" = set; then
20830 withval="$with_x"
2224580a 20831
e6cc62c6 20832fi;
21d1c967
GD
20833# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20834if test "x$with_x" = xno; then
20835 # The user explicitly disabled X.
20836 have_x=disabled
20837else
20838 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20839 # Both variables are already set.
20840 have_x=yes
20841 else
e6cc62c6
VS
20842 if test "${ac_cv_have_x+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
20844else
20845 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
20846ac_x_includes=no ac_x_libraries=no
20847rm -fr conftest.dir
20848if mkdir conftest.dir; then
20849 cd conftest.dir
21d1c967 20850 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 20851 cat >Imakefile <<'_ACEOF'
21d1c967
GD
20852acfindx:
20853 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 20854_ACEOF
21d1c967
GD
20855 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20856 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20857 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20858 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20859 for ac_extension in a so sl; do
20860 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 20861 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
20862 ac_im_usrlibdir=$ac_im_libdir; break
20863 fi
20864 done
20865 # Screen out bogus values from the imake configuration. They are
20866 # bogus both because they are the default anyway, and because
20867 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 20868 case $ac_im_incroot in
21d1c967 20869 /usr/include) ;;
e6cc62c6 20870 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 20871 esac
e6cc62c6 20872 case $ac_im_usrlibdir in
21d1c967 20873 /usr/lib | /lib) ;;
e6cc62c6 20874 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
20875 esac
20876 fi
20877 cd ..
e6cc62c6 20878 rm -fr conftest.dir
21d1c967 20879fi
10f2d63a 20880
e6cc62c6
VS
20881# Standard set of common directories for X headers.
20882# Check X11 before X11Rn because it is often a symlink to the current release.
20883ac_x_header_dirs='
20884/usr/X11/include
20885/usr/X11R6/include
20886/usr/X11R5/include
20887/usr/X11R4/include
20888
20889/usr/include/X11
20890/usr/include/X11R6
20891/usr/include/X11R5
20892/usr/include/X11R4
20893
20894/usr/local/X11/include
20895/usr/local/X11R6/include
20896/usr/local/X11R5/include
20897/usr/local/X11R4/include
20898
20899/usr/local/include/X11
20900/usr/local/include/X11R6
20901/usr/local/include/X11R5
20902/usr/local/include/X11R4
20903
20904/usr/X386/include
20905/usr/x386/include
20906/usr/XFree86/include/X11
20907
20908/usr/include
20909/usr/local/include
20910/usr/unsupported/include
20911/usr/athena/include
20912/usr/local/x11r5/include
20913/usr/lpp/Xamples/include
20914
20915/usr/openwin/include
20916/usr/openwin/share/include'
20917
20918if test "$ac_x_includes" = no; then
20919 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 20920 # First, try using that file with no special directory specified.
e6cc62c6
VS
20921 cat >conftest.$ac_ext <<_ACEOF
20922#line $LINENO "configure"
20923/* confdefs.h. */
20924_ACEOF
20925cat confdefs.h >>conftest.$ac_ext
20926cat >>conftest.$ac_ext <<_ACEOF
20927/* end confdefs.h. */
20928#include <X11/Intrinsic.h>
20929_ACEOF
20930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20932 ac_status=$?
20933 grep -v '^ *+' conftest.er1 >conftest.err
20934 rm -f conftest.er1
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } >/dev/null; then
20938 if test -s conftest.err; then
20939 ac_cpp_err=$ac_c_preproc_warn_flag
20940 else
20941 ac_cpp_err=
20942 fi
20943else
20944 ac_cpp_err=yes
20945fi
20946if test -z "$ac_cpp_err"; then
21d1c967
GD
20947 # We can compile using X headers with no special include directory.
20948ac_x_includes=
90dd450c 20949else
e6cc62c6
VS
20950 echo "$as_me: failed program was:" >&5
20951sed 's/^/| /' conftest.$ac_ext >&5
20952
20953 for ac_dir in $ac_x_header_dirs; do
20954 if test -r "$ac_dir/X11/Intrinsic.h"; then
20955 ac_x_includes=$ac_dir
20956 break
20957 fi
20958done
3a922bb4 20959fi
e6cc62c6
VS
20960rm -f conftest.err conftest.$ac_ext
20961fi # $ac_x_includes = no
10f2d63a 20962
e6cc62c6 20963if test "$ac_x_libraries" = no; then
21d1c967 20964 # Check for the libraries.
21d1c967
GD
20965 # See if we find them without any special options.
20966 # Don't add to $LIBS permanently.
e6cc62c6
VS
20967 ac_save_LIBS=$LIBS
20968 LIBS="-lXt $LIBS"
20969 cat >conftest.$ac_ext <<_ACEOF
20970#line $LINENO "configure"
20971/* confdefs.h. */
20972_ACEOF
20973cat confdefs.h >>conftest.$ac_ext
20974cat >>conftest.$ac_ext <<_ACEOF
20975/* end confdefs.h. */
20976#include <X11/Intrinsic.h>
20977int
20978main ()
20979{
20980XtMalloc (0)
20981 ;
20982 return 0;
20983}
20984_ACEOF
20985rm -f conftest.$ac_objext conftest$ac_exeext
20986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987 (eval $ac_link) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } &&
20991 { ac_try='test -s conftest$ac_exeext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 LIBS=$ac_save_LIBS
21d1c967
GD
20998# We can link X programs with no special library path.
20999ac_x_libraries=
3a922bb4 21000else
e6cc62c6
VS
21001 echo "$as_me: failed program was:" >&5
21002sed 's/^/| /' conftest.$ac_ext >&5
21003
21004LIBS=$ac_save_LIBS
21005for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21006do
e6cc62c6 21007 # Don't even attempt the hair of trying to link an X program!
21d1c967 21008 for ac_extension in a so sl; do
e6cc62c6 21009 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21010 ac_x_libraries=$ac_dir
21011 break 2
21012 fi
21013 done
21014done
3a922bb4 21015fi
e6cc62c6
VS
21016rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21017fi # $ac_x_libraries = no
90dd450c 21018
e6cc62c6 21019if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21020 # Didn't find X anywhere. Cache the known absence of X.
21021 ac_cv_have_x="have_x=no"
21022else
21023 # Record where we found X for the cache.
21024 ac_cv_have_x="have_x=yes \
21025 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21026fi
21d1c967 21027fi
e6cc62c6 21028
21d1c967
GD
21029 fi
21030 eval "$ac_cv_have_x"
21031fi # $with_x != no
90dd450c 21032
21d1c967 21033if test "$have_x" != yes; then
e6cc62c6
VS
21034 echo "$as_me:$LINENO: result: $have_x" >&5
21035echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21036 no_x=yes
21037else
21038 # If each of the values was on the command line, it overrides each guess.
21039 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21040 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21041 # Update the cache value to reflect the command line values.
21042 ac_cv_have_x="have_x=yes \
21043 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21044 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21045echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21046fi
90dd450c 21047
21d1c967 21048if test "$no_x" = yes; then
90dd450c 21049 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21050
21051cat >>confdefs.h <<\_ACEOF
90dd450c 21052#define X_DISPLAY_MISSING 1
e6cc62c6 21053_ACEOF
90dd450c
VZ
21054
21055 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21056else
21057 if test -n "$x_includes"; then
21058 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21059 fi
3a922bb4 21060
90dd450c
VZ
21061 # It would also be nice to do this for all -L options, not just this one.
21062 if test -n "$x_libraries"; then
21063 X_LIBS="$X_LIBS -L$x_libraries"
21064 # For Solaris; some versions of Sun CC require a space after -R and
21065 # others require no space. Words are not sufficient . . . .
e6cc62c6 21066 case `(uname -sr) 2>/dev/null` in
90dd450c 21067 "SunOS 5"*)
e6cc62c6
VS
21068 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21069echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21070 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21071 cat >conftest.$ac_ext <<_ACEOF
21072#line $LINENO "configure"
21073/* confdefs.h. */
21074_ACEOF
21075cat confdefs.h >>conftest.$ac_ext
21076cat >>conftest.$ac_ext <<_ACEOF
21077/* end confdefs.h. */
21078
21079int
21080main ()
21081{
90dd450c 21082
e6cc62c6
VS
21083 ;
21084 return 0;
21085}
21086_ACEOF
21087rm -f conftest.$ac_objext conftest$ac_exeext
21088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21089 (eval $ac_link) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } &&
21093 { ac_try='test -s conftest$ac_exeext'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
90dd450c 21099 ac_R_nospace=yes
3a922bb4 21100else
e6cc62c6
VS
21101 echo "$as_me: failed program was:" >&5
21102sed 's/^/| /' conftest.$ac_ext >&5
21103
21104ac_R_nospace=no
3a922bb4 21105fi
e6cc62c6 21106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21107 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21108 echo "$as_me:$LINENO: result: no" >&5
21109echo "${ECHO_T}no" >&6
90dd450c
VZ
21110 X_LIBS="$X_LIBS -R$x_libraries"
21111 else
21112 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21113 cat >conftest.$ac_ext <<_ACEOF
21114#line $LINENO "configure"
21115/* confdefs.h. */
21116_ACEOF
21117cat confdefs.h >>conftest.$ac_ext
21118cat >>conftest.$ac_ext <<_ACEOF
21119/* end confdefs.h. */
21120
21121int
21122main ()
21123{
6f754473 21124
e6cc62c6
VS
21125 ;
21126 return 0;
21127}
21128_ACEOF
21129rm -f conftest.$ac_objext conftest$ac_exeext
21130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21131 (eval $ac_link) 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
21135 { ac_try='test -s conftest$ac_exeext'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
90dd450c
VZ
21141 ac_R_space=yes
21142else
e6cc62c6
VS
21143 echo "$as_me: failed program was:" >&5
21144sed 's/^/| /' conftest.$ac_ext >&5
21145
21146ac_R_space=no
90dd450c 21147fi
e6cc62c6 21148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21149 if test $ac_R_space = yes; then
e6cc62c6
VS
21150 echo "$as_me:$LINENO: result: yes" >&5
21151echo "${ECHO_T}yes" >&6
90dd450c
VZ
21152 X_LIBS="$X_LIBS -R $x_libraries"
21153 else
e6cc62c6
VS
21154 echo "$as_me:$LINENO: result: neither works" >&5
21155echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21156 fi
21157 fi
e6cc62c6 21158 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21159 esac
21160 fi
21161
21162 # Check for system-dependent libraries X programs must link with.
21163 # Do this before checking for the system-independent R6 libraries
21164 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21165
90dd450c
VZ
21166 if test "$ISC" = yes; then
21167 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21168 else
e6cc62c6
VS
21169 # Martyn Johnson says this is needed for Ultrix, if the X
21170 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21171 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21172 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21173 cat >conftest.$ac_ext <<_ACEOF
21174#line $LINENO "configure"
21175/* confdefs.h. */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
21179/* end confdefs.h. */
21180
247f5006 21181/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21182#ifdef __cplusplus
21183extern "C"
21184#endif
247f5006 21185/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21186 builtin and then its argument prototype would still apply. */
21187char XOpenDisplay ();
21188int
21189main ()
21190{
21191XOpenDisplay ();
21192 ;
21193 return 0;
21194}
21195_ACEOF
21196rm -f conftest.$ac_objext conftest$ac_exeext
21197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21198 (eval $ac_link) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } &&
21202 { ac_try='test -s conftest$ac_exeext'
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; }; then
21208 :
21209else
21210 echo "$as_me: failed program was:" >&5
21211sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21212
e6cc62c6
VS
21213echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21214echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21215if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21217else
e6cc62c6
VS
21218 ac_check_lib_save_LIBS=$LIBS
21219LIBS="-ldnet $LIBS"
21220cat >conftest.$ac_ext <<_ACEOF
21221#line $LINENO "configure"
21222/* confdefs.h. */
21223_ACEOF
21224cat confdefs.h >>conftest.$ac_ext
21225cat >>conftest.$ac_ext <<_ACEOF
21226/* end confdefs.h. */
a0b9e27f 21227
e6cc62c6
VS
21228/* Override any gcc2 internal prototype to avoid an error. */
21229#ifdef __cplusplus
21230extern "C"
21231#endif
21232/* We use char because int might match the return type of a gcc2
21233 builtin and then its argument prototype would still apply. */
21234char dnet_ntoa ();
21235int
21236main ()
21237{
21238dnet_ntoa ();
21239 ;
21240 return 0;
21241}
21242_ACEOF
21243rm -f conftest.$ac_objext conftest$ac_exeext
21244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21245 (eval $ac_link) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -s conftest$ac_exeext'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 ac_cv_lib_dnet_dnet_ntoa=yes
21256else
21257 echo "$as_me: failed program was:" >&5
21258sed 's/^/| /' conftest.$ac_ext >&5
21259
21260ac_cv_lib_dnet_dnet_ntoa=no
21261fi
21262rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21263LIBS=$ac_check_lib_save_LIBS
21264fi
21265echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21266echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21267if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21268 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21269fi
21270
90dd450c 21271 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21272 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21273echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21274if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21276else
e6cc62c6 21277 ac_check_lib_save_LIBS=$LIBS
90dd450c 21278LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21279cat >conftest.$ac_ext <<_ACEOF
21280#line $LINENO "configure"
21281/* confdefs.h. */
21282_ACEOF
21283cat confdefs.h >>conftest.$ac_ext
21284cat >>conftest.$ac_ext <<_ACEOF
21285/* end confdefs.h. */
21286
90dd450c 21287/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21288#ifdef __cplusplus
21289extern "C"
21290#endif
90dd450c 21291/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21292 builtin and then its argument prototype would still apply. */
21293char dnet_ntoa ();
21294int
21295main ()
21296{
21297dnet_ntoa ();
21298 ;
21299 return 0;
21300}
21301_ACEOF
21302rm -f conftest.$ac_objext conftest$ac_exeext
21303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21304 (eval $ac_link) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try='test -s conftest$ac_exeext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21315else
21316 echo "$as_me: failed program was:" >&5
21317sed 's/^/| /' conftest.$ac_ext >&5
21318
21319ac_cv_lib_dnet_stub_dnet_ntoa=no
21320fi
21321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21322LIBS=$ac_check_lib_save_LIBS
21323fi
21324echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21325echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21326if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21327 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21328fi
21329
90dd450c 21330 fi
e6cc62c6
VS
21331fi
21332rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21333 LIBS="$ac_xsave_LIBS"
978f1259 21334
90dd450c
VZ
21335 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21336 # to get the SysV transport functions.
e6cc62c6 21337 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21338 # needs -lnsl.
21339 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21340 # on Irix 5.2, according to T.E. Dickey.
21341 # The functions gethostbyname, getservbyname, and inet_addr are
21342 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21343 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21344echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21345if test "${ac_cv_func_gethostbyname+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347else
21348 cat >conftest.$ac_ext <<_ACEOF
21349#line $LINENO "configure"
21350/* confdefs.h. */
21351_ACEOF
21352cat confdefs.h >>conftest.$ac_ext
21353cat >>conftest.$ac_ext <<_ACEOF
21354/* end confdefs.h. */
90dd450c 21355/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21356 which can conflict with char gethostbyname (); below.
21357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21358 <limits.h> exists even on freestanding compilers. */
21359#ifdef __STDC__
21360# include <limits.h>
21361#else
21362# include <assert.h>
21363#endif
90dd450c 21364/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21365#ifdef __cplusplus
21366extern "C"
21367{
21368#endif
90dd450c 21369/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21370 builtin and then its argument prototype would still apply. */
21371char gethostbyname ();
90dd450c
VZ
21372/* The GNU C library defines this for functions which it implements
21373 to always fail with ENOSYS. Some functions are actually named
21374 something starting with __ and the normal name is an alias. */
21375#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21376choke me
21377#else
e6cc62c6
VS
21378char (*f) () = gethostbyname;
21379#endif
21380#ifdef __cplusplus
21381}
90dd450c 21382#endif
978f1259 21383
e6cc62c6
VS
21384int
21385main ()
21386{
21387return f != gethostbyname;
21388 ;
21389 return 0;
21390}
21391_ACEOF
21392rm -f conftest.$ac_objext conftest$ac_exeext
21393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21394 (eval $ac_link) 2>&5
21395 ac_status=$?
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } &&
21398 { ac_try='test -s conftest$ac_exeext'
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
21404 ac_cv_func_gethostbyname=yes
21405else
21406 echo "$as_me: failed program was:" >&5
21407sed 's/^/| /' conftest.$ac_ext >&5
21408
21409ac_cv_func_gethostbyname=no
21410fi
21411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21412fi
21413echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21414echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21415
90dd450c 21416 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21417 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21418echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21419if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21421else
e6cc62c6 21422 ac_check_lib_save_LIBS=$LIBS
90dd450c 21423LIBS="-lnsl $LIBS"
e6cc62c6
VS
21424cat >conftest.$ac_ext <<_ACEOF
21425#line $LINENO "configure"
21426/* confdefs.h. */
21427_ACEOF
21428cat confdefs.h >>conftest.$ac_ext
21429cat >>conftest.$ac_ext <<_ACEOF
21430/* end confdefs.h. */
21431
90dd450c 21432/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21433#ifdef __cplusplus
21434extern "C"
21435#endif
90dd450c 21436/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21437 builtin and then its argument prototype would still apply. */
21438char gethostbyname ();
21439int
21440main ()
21441{
21442gethostbyname ();
21443 ;
21444 return 0;
21445}
21446_ACEOF
21447rm -f conftest.$ac_objext conftest$ac_exeext
21448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21449 (eval $ac_link) 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } &&
21453 { ac_try='test -s conftest$ac_exeext'
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; }; then
21459 ac_cv_lib_nsl_gethostbyname=yes
21460else
21461 echo "$as_me: failed program was:" >&5
21462sed 's/^/| /' conftest.$ac_ext >&5
21463
21464ac_cv_lib_nsl_gethostbyname=no
21465fi
21466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21467LIBS=$ac_check_lib_save_LIBS
21468fi
21469echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21470echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21471if test $ac_cv_lib_nsl_gethostbyname = yes; then
21472 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21473fi
247f5006 21474
e6cc62c6
VS
21475 if test $ac_cv_lib_nsl_gethostbyname = no; then
21476 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21477echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21478if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21480else
e6cc62c6
VS
21481 ac_check_lib_save_LIBS=$LIBS
21482LIBS="-lbsd $LIBS"
21483cat >conftest.$ac_ext <<_ACEOF
21484#line $LINENO "configure"
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
21490
21491/* Override any gcc2 internal prototype to avoid an error. */
21492#ifdef __cplusplus
21493extern "C"
21494#endif
21495/* We use char because int might match the return type of a gcc2
21496 builtin and then its argument prototype would still apply. */
21497char gethostbyname ();
21498int
21499main ()
21500{
21501gethostbyname ();
21502 ;
21503 return 0;
21504}
21505_ACEOF
21506rm -f conftest.$ac_objext conftest$ac_exeext
21507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21508 (eval $ac_link) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -s conftest$ac_exeext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21518 ac_cv_lib_bsd_gethostbyname=yes
21519else
21520 echo "$as_me: failed program was:" >&5
21521sed 's/^/| /' conftest.$ac_ext >&5
21522
21523ac_cv_lib_bsd_gethostbyname=no
21524fi
21525rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21526LIBS=$ac_check_lib_save_LIBS
21527fi
21528echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21529echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21530if test $ac_cv_lib_bsd_gethostbyname = yes; then
21531 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21532fi
b12915c1 21533
e6cc62c6 21534 fi
90dd450c
VZ
21535 fi
21536
21537 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21538 # socket/setsockopt and other routines are undefined under SCO ODT
21539 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21540 # on later versions), says Simon Leinen: it contains gethostby*
21541 # variants that don't use the name server (or something). -lsocket
21542 # must be given before -lnsl if both are needed. We assume that
21543 # if connect needs -lnsl, so does gethostbyname.
21544 echo "$as_me:$LINENO: checking for connect" >&5
21545echo $ECHO_N "checking for connect... $ECHO_C" >&6
21546if test "${ac_cv_func_connect+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21548else
21549 cat >conftest.$ac_ext <<_ACEOF
21550#line $LINENO "configure"
21551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
90dd450c 21556/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21557 which can conflict with char connect (); below.
21558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21559 <limits.h> exists even on freestanding compilers. */
21560#ifdef __STDC__
21561# include <limits.h>
21562#else
21563# include <assert.h>
21564#endif
90dd450c 21565/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21566#ifdef __cplusplus
21567extern "C"
21568{
21569#endif
90dd450c 21570/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21571 builtin and then its argument prototype would still apply. */
21572char connect ();
90dd450c
VZ
21573/* The GNU C library defines this for functions which it implements
21574 to always fail with ENOSYS. Some functions are actually named
21575 something starting with __ and the normal name is an alias. */
21576#if defined (__stub_connect) || defined (__stub___connect)
21577choke me
21578#else
e6cc62c6
VS
21579char (*f) () = connect;
21580#endif
21581#ifdef __cplusplus
21582}
90dd450c
VZ
21583#endif
21584
e6cc62c6
VS
21585int
21586main ()
21587{
21588return f != connect;
21589 ;
21590 return 0;
21591}
21592_ACEOF
21593rm -f conftest.$ac_objext conftest$ac_exeext
21594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21595 (eval $ac_link) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } &&
21599 { ac_try='test -s conftest$ac_exeext'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 ac_cv_func_connect=yes
21606else
21607 echo "$as_me: failed program was:" >&5
21608sed 's/^/| /' conftest.$ac_ext >&5
21609
21610ac_cv_func_connect=no
21611fi
21612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21613fi
21614echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21615echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21616
90dd450c 21617 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21618 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21619echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21620if test "${ac_cv_lib_socket_connect+set}" = set; then
21621 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21622else
e6cc62c6 21623 ac_check_lib_save_LIBS=$LIBS
90dd450c 21624LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21625cat >conftest.$ac_ext <<_ACEOF
21626#line $LINENO "configure"
21627/* confdefs.h. */
21628_ACEOF
21629cat confdefs.h >>conftest.$ac_ext
21630cat >>conftest.$ac_ext <<_ACEOF
21631/* end confdefs.h. */
21632
90dd450c 21633/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21634#ifdef __cplusplus
21635extern "C"
21636#endif
90dd450c 21637/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21638 builtin and then its argument prototype would still apply. */
21639char connect ();
21640int
21641main ()
21642{
21643connect ();
21644 ;
21645 return 0;
21646}
21647_ACEOF
21648rm -f conftest.$ac_objext conftest$ac_exeext
21649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21650 (eval $ac_link) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } &&
21654 { ac_try='test -s conftest$ac_exeext'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 ac_cv_lib_socket_connect=yes
21661else
21662 echo "$as_me: failed program was:" >&5
21663sed 's/^/| /' conftest.$ac_ext >&5
21664
21665ac_cv_lib_socket_connect=no
21666fi
21667rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21668LIBS=$ac_check_lib_save_LIBS
21669fi
21670echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21671echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21672if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21673 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21674fi
77e13408 21675
90dd450c 21676 fi
25d0687a 21677
e6cc62c6
VS
21678 # Guillermo Gomez says -lposix is necessary on A/UX.
21679 echo "$as_me:$LINENO: checking for remove" >&5
21680echo $ECHO_N "checking for remove... $ECHO_C" >&6
21681if test "${ac_cv_func_remove+set}" = set; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21683else
21684 cat >conftest.$ac_ext <<_ACEOF
21685#line $LINENO "configure"
21686/* confdefs.h. */
21687_ACEOF
21688cat confdefs.h >>conftest.$ac_ext
21689cat >>conftest.$ac_ext <<_ACEOF
21690/* end confdefs.h. */
90dd450c 21691/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21692 which can conflict with char remove (); below.
21693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21694 <limits.h> exists even on freestanding compilers. */
21695#ifdef __STDC__
21696# include <limits.h>
21697#else
21698# include <assert.h>
21699#endif
90dd450c 21700/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21701#ifdef __cplusplus
21702extern "C"
21703{
21704#endif
90dd450c 21705/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21706 builtin and then its argument prototype would still apply. */
21707char remove ();
90dd450c
VZ
21708/* The GNU C library defines this for functions which it implements
21709 to always fail with ENOSYS. Some functions are actually named
21710 something starting with __ and the normal name is an alias. */
21711#if defined (__stub_remove) || defined (__stub___remove)
21712choke me
21713#else
e6cc62c6
VS
21714char (*f) () = remove;
21715#endif
21716#ifdef __cplusplus
21717}
90dd450c 21718#endif
55e80573 21719
e6cc62c6
VS
21720int
21721main ()
21722{
21723return f != remove;
21724 ;
21725 return 0;
21726}
21727_ACEOF
21728rm -f conftest.$ac_objext conftest$ac_exeext
21729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21730 (eval $ac_link) 2>&5
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } &&
21734 { ac_try='test -s conftest$ac_exeext'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 ac_cv_func_remove=yes
21741else
21742 echo "$as_me: failed program was:" >&5
21743sed 's/^/| /' conftest.$ac_ext >&5
21744
21745ac_cv_func_remove=no
21746fi
21747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21748fi
21749echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21750echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 21751
90dd450c 21752 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
21753 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21754echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21755if test "${ac_cv_lib_posix_remove+set}" = set; then
21756 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21757else
e6cc62c6 21758 ac_check_lib_save_LIBS=$LIBS
90dd450c 21759LIBS="-lposix $LIBS"
e6cc62c6
VS
21760cat >conftest.$ac_ext <<_ACEOF
21761#line $LINENO "configure"
21762/* confdefs.h. */
21763_ACEOF
21764cat confdefs.h >>conftest.$ac_ext
21765cat >>conftest.$ac_ext <<_ACEOF
21766/* end confdefs.h. */
21767
90dd450c 21768/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21769#ifdef __cplusplus
21770extern "C"
21771#endif
90dd450c 21772/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21773 builtin and then its argument prototype would still apply. */
21774char remove ();
21775int
21776main ()
21777{
21778remove ();
21779 ;
21780 return 0;
21781}
21782_ACEOF
21783rm -f conftest.$ac_objext conftest$ac_exeext
21784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21785 (eval $ac_link) 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } &&
21789 { ac_try='test -s conftest$ac_exeext'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21792 ac_status=$?
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 ac_cv_lib_posix_remove=yes
21796else
21797 echo "$as_me: failed program was:" >&5
21798sed 's/^/| /' conftest.$ac_ext >&5
21799
21800ac_cv_lib_posix_remove=no
21801fi
21802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21803LIBS=$ac_check_lib_save_LIBS
21804fi
21805echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21806echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21807if test $ac_cv_lib_posix_remove = yes; then
90dd450c 21808 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 21809fi
f6bcfd97 21810
6fa882bd
RR
21811 fi
21812
90dd450c 21813 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
21814 echo "$as_me:$LINENO: checking for shmat" >&5
21815echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21816if test "${ac_cv_func_shmat+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21818else
21819 cat >conftest.$ac_ext <<_ACEOF
21820#line $LINENO "configure"
21821/* confdefs.h. */
21822_ACEOF
21823cat confdefs.h >>conftest.$ac_ext
21824cat >>conftest.$ac_ext <<_ACEOF
21825/* end confdefs.h. */
90dd450c 21826/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21827 which can conflict with char shmat (); below.
21828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21829 <limits.h> exists even on freestanding compilers. */
21830#ifdef __STDC__
21831# include <limits.h>
21832#else
21833# include <assert.h>
21834#endif
90dd450c 21835/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21836#ifdef __cplusplus
21837extern "C"
21838{
21839#endif
90dd450c 21840/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21841 builtin and then its argument prototype would still apply. */
21842char shmat ();
90dd450c
VZ
21843/* The GNU C library defines this for functions which it implements
21844 to always fail with ENOSYS. Some functions are actually named
21845 something starting with __ and the normal name is an alias. */
21846#if defined (__stub_shmat) || defined (__stub___shmat)
21847choke me
21848#else
e6cc62c6
VS
21849char (*f) () = shmat;
21850#endif
21851#ifdef __cplusplus
21852}
90dd450c 21853#endif
10f2d63a 21854
e6cc62c6
VS
21855int
21856main ()
21857{
21858return f != shmat;
21859 ;
21860 return 0;
21861}
21862_ACEOF
21863rm -f conftest.$ac_objext conftest$ac_exeext
21864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21865 (eval $ac_link) 2>&5
21866 ac_status=$?
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } &&
21869 { ac_try='test -s conftest$ac_exeext'
21870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21872 ac_status=$?
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); }; }; then
21875 ac_cv_func_shmat=yes
21876else
21877 echo "$as_me: failed program was:" >&5
21878sed 's/^/| /' conftest.$ac_ext >&5
21879
21880ac_cv_func_shmat=no
21881fi
21882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21883fi
21884echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21885echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 21886
90dd450c 21887 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
21888 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21889echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21890if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 21892else
e6cc62c6 21893 ac_check_lib_save_LIBS=$LIBS
90dd450c 21894LIBS="-lipc $LIBS"
e6cc62c6
VS
21895cat >conftest.$ac_ext <<_ACEOF
21896#line $LINENO "configure"
21897/* confdefs.h. */
21898_ACEOF
21899cat confdefs.h >>conftest.$ac_ext
21900cat >>conftest.$ac_ext <<_ACEOF
21901/* end confdefs.h. */
21902
8284b0c5 21903/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21904#ifdef __cplusplus
21905extern "C"
21906#endif
90dd450c 21907/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21908 builtin and then its argument prototype would still apply. */
21909char shmat ();
21910int
21911main ()
21912{
21913shmat ();
21914 ;
21915 return 0;
21916}
21917_ACEOF
21918rm -f conftest.$ac_objext conftest$ac_exeext
21919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21920 (eval $ac_link) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } &&
21924 { ac_try='test -s conftest$ac_exeext'
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21927 ac_status=$?
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21930 ac_cv_lib_ipc_shmat=yes
21931else
21932 echo "$as_me: failed program was:" >&5
21933sed 's/^/| /' conftest.$ac_ext >&5
21934
21935ac_cv_lib_ipc_shmat=no
21936fi
21937rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21938LIBS=$ac_check_lib_save_LIBS
21939fi
21940echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21941echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21942if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 21943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
21944fi
21945
d558c907 21946 fi
90dd450c 21947 fi
3a922bb4 21948
90dd450c 21949 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 21950 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
21951 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21952 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21953 # check for ICE first), but we must link in the order -lSM -lICE or
21954 # we get undefined symbols. So assume we have SM if we have ICE.
21955 # These have to be linked with before -lX11, unlike the other
21956 # libraries we check for below, so use a different variable.
e6cc62c6
VS
21957 # John Interrante, Karl Berry
21958 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21959echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21960if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962else
21963 ac_check_lib_save_LIBS=$LIBS
f09359cf 21964LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21965cat >conftest.$ac_ext <<_ACEOF
21966#line $LINENO "configure"
21967/* confdefs.h. */
21968_ACEOF
21969cat confdefs.h >>conftest.$ac_ext
21970cat >>conftest.$ac_ext <<_ACEOF
21971/* end confdefs.h. */
21972
90dd450c 21973/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21974#ifdef __cplusplus
21975extern "C"
21976#endif
90dd450c 21977/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21978 builtin and then its argument prototype would still apply. */
21979char IceConnectionNumber ();
21980int
21981main ()
21982{
21983IceConnectionNumber ();
21984 ;
21985 return 0;
21986}
21987_ACEOF
21988rm -f conftest.$ac_objext conftest$ac_exeext
21989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21990 (eval $ac_link) 2>&5
21991 ac_status=$?
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -s conftest$ac_exeext'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22000 ac_cv_lib_ICE_IceConnectionNumber=yes
22001else
22002 echo "$as_me: failed program was:" >&5
22003sed 's/^/| /' conftest.$ac_ext >&5
22004
22005ac_cv_lib_ICE_IceConnectionNumber=no
22006fi
22007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22008LIBS=$ac_check_lib_save_LIBS
22009fi
22010echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22011echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22012if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22013 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22014fi
10f2d63a 22015
e6cc62c6 22016 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22017
22018fi
22019
8284b0c5 22020
90dd450c 22021 if test "$no_x" = "yes"; then
e6cc62c6
VS
22022 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22023echo "$as_me: error: X11 not found" >&2;}
22024 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22025 fi
22026
22027 GUI_TK_LIBRARY="$X_LIBS"
22028 TOOLKIT_INCLUDE="$X_CFLAGS"
22029 AFMINSTALL=afminstall
22030 COMPILED_X_PROGRAM=0
22031
21d1c967 22032 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22033 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22034echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22035 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22036 echo "$as_me:$LINENO: result: not found" >&5
22037echo "${ECHO_T}not found" >&6
22038 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22039echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22040 { (exit 1); exit 1; }; }
90dd450c 22041 else
e6cc62c6
VS
22042 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22043echo "${ECHO_T}$MICROWIN" >&6
22044 cat >>confdefs.h <<\_ACEOF
21d1c967 22045#define wxUSE_NANOX 1
e6cc62c6 22046_ACEOF
21d1c967 22047
90dd450c
VZ
22048 fi
22049 fi
22050
22051 xpm_link=
e6cc62c6
VS
22052 echo "$as_me:$LINENO: checking for Xpm library" >&5
22053echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22054
90dd450c 22055ac_find_libraries=
2b5f62a0 22056for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22057 do
22058 for ac_extension in a so sl dylib; do
22059 if test -f "$ac_dir/libXpm.$ac_extension"; then
22060 ac_find_libraries=$ac_dir
22061 break 2
22062 fi
22063 done
22064 done
22065
22066 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22067
90dd450c
VZ
22068 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22069 result=$?
22070 if test $result = 0; then
22071 ac_path_to_link=""
22072 else
22073 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22074 fi
90dd450c 22075
21d1c967
GD
22076 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22077 xpm_link=" -lXpm"
e6cc62c6 22078 cat >>confdefs.h <<\_ACEOF
21d1c967 22079#define wxHAVE_LIB_XPM 1
e6cc62c6 22080_ACEOF
90dd450c 22081
e6cc62c6
VS
22082 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22083echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22084 else
e6cc62c6
VS
22085 cat >conftest.$ac_ext <<_ACEOF
22086#line $LINENO "configure"
22087/* confdefs.h. */
22088_ACEOF
22089cat confdefs.h >>conftest.$ac_ext
22090cat >>conftest.$ac_ext <<_ACEOF
22091/* end confdefs.h. */
90dd450c 22092
21d1c967 22093 #include <X11/xpm.h>
e6cc62c6
VS
22094
22095int
22096main ()
22097{
6f72b082 22098
21d1c967
GD
22099 int version;
22100 version = XpmLibraryVersion();
e6cc62c6
VS
22101
22102 ;
22103 return 0;
22104}
22105_ACEOF
22106rm -f conftest.$ac_objext
22107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22108 (eval $ac_compile) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -s conftest.$ac_objext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118
21d1c967 22119 xpm_link=" -lXpm"
e6cc62c6 22120 cat >>confdefs.h <<\_ACEOF
21d1c967 22121#define wxHAVE_LIB_XPM 1
e6cc62c6 22122_ACEOF
90dd450c 22123
e6cc62c6
VS
22124 echo "$as_me:$LINENO: result: found in default search path" >&5
22125echo "${ECHO_T}found in default search path" >&6
21d1c967 22126 COMPILED_X_PROGRAM=0
e6cc62c6 22127
21d1c967 22128else
e6cc62c6
VS
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132
22133 echo "$as_me:$LINENO: result: no" >&5
22134echo "${ECHO_T}no" >&6
22135 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22136echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22137
22138
6f72b082 22139fi
e6cc62c6 22140rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22141 fi
90dd450c 22142
e6cc62c6
VS
22143 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22144echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22145if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22146 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22147else
e6cc62c6 22148 ac_check_lib_save_LIBS=$LIBS
f7f78039 22149LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22150cat >conftest.$ac_ext <<_ACEOF
22151#line $LINENO "configure"
22152/* confdefs.h. */
22153_ACEOF
22154cat confdefs.h >>conftest.$ac_ext
22155cat >>conftest.$ac_ext <<_ACEOF
22156/* end confdefs.h. */
22157
f7f78039 22158/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22159#ifdef __cplusplus
22160extern "C"
22161#endif
f7f78039 22162/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22163 builtin and then its argument prototype would still apply. */
22164char XShapeQueryExtension ();
22165int
22166main ()
22167{
22168XShapeQueryExtension ();
22169 ;
22170 return 0;
22171}
22172_ACEOF
22173rm -f conftest.$ac_objext conftest$ac_exeext
22174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22175 (eval $ac_link) 2>&5
22176 ac_status=$?
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
22179 { ac_try='test -s conftest$ac_exeext'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 ac_cv_lib_Xext_XShapeQueryExtension=yes
22186else
22187 echo "$as_me: failed program was:" >&5
22188sed 's/^/| /' conftest.$ac_ext >&5
22189
22190ac_cv_lib_Xext_XShapeQueryExtension=no
22191fi
22192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22193LIBS=$ac_check_lib_save_LIBS
22194fi
22195echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22196echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22197if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22198
f7f78039
MB
22199 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22200 wxHAVE_XEXT_LIB=1
e6cc62c6 22201
f7f78039
MB
22202fi
22203
22204
2b5f62a0 22205 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22206
2b5f62a0 22207 succeeded=no
90dd450c 22208
2b5f62a0
VZ
22209 if test -z "$PKG_CONFIG"; then
22210 # Extract the first word of "pkg-config", so it can be a program name with args.
22211set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22212echo "$as_me:$LINENO: checking for $ac_word" >&5
22213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22214if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22216else
e6cc62c6
VS
22217 case $PKG_CONFIG in
22218 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22219 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22220 ;;
2b5f62a0 22221 *)
e6cc62c6
VS
22222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22223for as_dir in $PATH
22224do
22225 IFS=$as_save_IFS
22226 test -z "$as_dir" && as_dir=.
22227 for ac_exec_ext in '' $ac_executable_extensions; do
22228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22229 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22231 break 2
22232 fi
22233done
22234done
22235
2b5f62a0
VZ
22236 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22237 ;;
22238esac
22239fi
e6cc62c6
VS
22240PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22241
2b5f62a0 22242if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22243 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22244echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22245else
e6cc62c6
VS
22246 echo "$as_me:$LINENO: result: no" >&5
22247echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22248fi
22249
22250 fi
22251
22252 if test "$PKG_CONFIG" = "no" ; then
22253 echo "*** The pkg-config script could not be found. Make sure it is"
22254 echo "*** in your path, or set the PKG_CONFIG environment variable"
22255 echo "*** to the full path to pkg-config."
22256 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22257 else
22258 PKG_CONFIG_MIN_VERSION=0.9.0
22259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22260 echo "$as_me:$LINENO: checking for pangox" >&5
22261echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22262
22263 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22264 echo "$as_me:$LINENO: result: yes" >&5
22265echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22266 succeeded=yes
22267
e6cc62c6
VS
22268 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22269echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22270 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22271 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22272echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22273
e6cc62c6
VS
22274 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22275echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22276 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22277 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22278echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22279 else
22280 PANGOX_CFLAGS=""
22281 PANGOX_LIBS=""
e6cc62c6 22282 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22283 ## do set a variable so people can do so.
22284 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22285
2b5f62a0
VZ
22286 fi
22287
e6cc62c6
VS
22288
22289
2b5f62a0
VZ
22290 else
22291 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22292 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22293 fi
22294 fi
22295
22296 if test $succeeded = yes; then
e6cc62c6 22297
2b5f62a0 22298 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22299 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22300
2b5f62a0 22301 else
e6cc62c6
VS
22302
22303 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22304echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22305 { (exit 1); exit 1; }; }
22306
22307
2b5f62a0
VZ
22308 fi
22309
e6cc62c6 22310
2b5f62a0
VZ
22311 succeeded=no
22312
22313 if test -z "$PKG_CONFIG"; then
22314 # Extract the first word of "pkg-config", so it can be a program name with args.
22315set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22316echo "$as_me:$LINENO: checking for $ac_word" >&5
22317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22318if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22320else
e6cc62c6
VS
22321 case $PKG_CONFIG in
22322 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22323 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22324 ;;
2b5f62a0 22325 *)
e6cc62c6
VS
22326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22327for as_dir in $PATH
22328do
22329 IFS=$as_save_IFS
22330 test -z "$as_dir" && as_dir=.
22331 for ac_exec_ext in '' $ac_executable_extensions; do
22332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22333 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22335 break 2
22336 fi
22337done
22338done
22339
2b5f62a0
VZ
22340 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22341 ;;
22342esac
22343fi
e6cc62c6
VS
22344PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22345
2b5f62a0 22346if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22347 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22348echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22349else
e6cc62c6
VS
22350 echo "$as_me:$LINENO: result: no" >&5
22351echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22352fi
22353
22354 fi
22355
22356 if test "$PKG_CONFIG" = "no" ; then
22357 echo "*** The pkg-config script could not be found. Make sure it is"
22358 echo "*** in your path, or set the PKG_CONFIG environment variable"
22359 echo "*** to the full path to pkg-config."
22360 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22361 else
22362 PKG_CONFIG_MIN_VERSION=0.9.0
22363 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22364 echo "$as_me:$LINENO: checking for pangoft2" >&5
22365echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22366
22367 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22368 echo "$as_me:$LINENO: result: yes" >&5
22369echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22370 succeeded=yes
22371
e6cc62c6
VS
22372 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22373echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22374 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22375 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22376echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22377
e6cc62c6
VS
22378 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22379echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22380 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22381 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22382echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22383 else
22384 PANGOFT2_CFLAGS=""
22385 PANGOFT2_LIBS=""
e6cc62c6 22386 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22387 ## do set a variable so people can do so.
22388 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22389
2b5f62a0
VZ
22390 fi
22391
e6cc62c6
VS
22392
22393
2b5f62a0
VZ
22394 else
22395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22397 fi
22398 fi
22399
22400 if test $succeeded = yes; then
e6cc62c6 22401
2b5f62a0 22402 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22403 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22404
2b5f62a0 22405 else
e6cc62c6
VS
22406
22407 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22408echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22409 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22410
22411
2b5f62a0
VZ
22412 fi
22413
e6cc62c6 22414
2b5f62a0
VZ
22415 succeeded=no
22416
22417 if test -z "$PKG_CONFIG"; then
22418 # Extract the first word of "pkg-config", so it can be a program name with args.
22419set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22420echo "$as_me:$LINENO: checking for $ac_word" >&5
22421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22422if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22424else
e6cc62c6
VS
22425 case $PKG_CONFIG in
22426 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22427 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22428 ;;
2b5f62a0 22429 *)
e6cc62c6
VS
22430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431for as_dir in $PATH
22432do
22433 IFS=$as_save_IFS
22434 test -z "$as_dir" && as_dir=.
22435 for ac_exec_ext in '' $ac_executable_extensions; do
22436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22437 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22439 break 2
22440 fi
22441done
22442done
22443
2b5f62a0
VZ
22444 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22445 ;;
22446esac
22447fi
e6cc62c6
VS
22448PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22449
2b5f62a0 22450if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22451 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22452echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22453else
e6cc62c6
VS
22454 echo "$as_me:$LINENO: result: no" >&5
22455echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22456fi
22457
22458 fi
22459
22460 if test "$PKG_CONFIG" = "no" ; then
22461 echo "*** The pkg-config script could not be found. Make sure it is"
22462 echo "*** in your path, or set the PKG_CONFIG environment variable"
22463 echo "*** to the full path to pkg-config."
22464 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22465 else
22466 PKG_CONFIG_MIN_VERSION=0.9.0
22467 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22468 echo "$as_me:$LINENO: checking for pangoxft" >&5
22469echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22470
22471 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22472 echo "$as_me:$LINENO: result: yes" >&5
22473echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22474 succeeded=yes
22475
e6cc62c6
VS
22476 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22477echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22478 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22479 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22480echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22481
e6cc62c6
VS
22482 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22483echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22484 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22485 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22486echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22487 else
22488 PANGOXFT_CFLAGS=""
22489 PANGOXFT_LIBS=""
e6cc62c6 22490 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22491 ## do set a variable so people can do so.
22492 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22493
2b5f62a0
VZ
22494 fi
22495
e6cc62c6
VS
22496
22497
2b5f62a0
VZ
22498 else
22499 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22500 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22501 fi
22502 fi
22503
22504 if test $succeeded = yes; then
e6cc62c6 22505
2b5f62a0 22506 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22507 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22508
2b5f62a0 22509 else
e6cc62c6
VS
22510
22511 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22512echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22513
22514
2b5f62a0
VZ
22515 fi
22516
22517 fi
22518
22519 wxUSE_UNIVERSAL="yes"
22520
22521 if test "$wxUSE_NANOX" = "yes"; then
22522 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22523 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
22524 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22525 else
22526 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22527 fi
22528
22529 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22530 TOOLKIT=X11
22531 GUIDIST=X11_DIST
22532 fi
22533
21d1c967
GD
22534 if test "$wxUSE_MOTIF" = 1; then
22535 if test "$no_x" = yes; then
22536 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22537
22538cat >>confdefs.h <<\_ACEOF
21d1c967 22539#define X_DISPLAY_MISSING 1
e6cc62c6 22540_ACEOF
21d1c967
GD
22541
22542 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22543else
22544 if test -n "$x_includes"; then
22545 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22546 fi
22547
21d1c967
GD
22548 # It would also be nice to do this for all -L options, not just this one.
22549 if test -n "$x_libraries"; then
22550 X_LIBS="$X_LIBS -L$x_libraries"
22551 # For Solaris; some versions of Sun CC require a space after -R and
22552 # others require no space. Words are not sufficient . . . .
e6cc62c6 22553 case `(uname -sr) 2>/dev/null` in
21d1c967 22554 "SunOS 5"*)
e6cc62c6
VS
22555 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22556echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22557 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22558 cat >conftest.$ac_ext <<_ACEOF
22559#line $LINENO "configure"
22560/* confdefs.h. */
22561_ACEOF
22562cat confdefs.h >>conftest.$ac_ext
22563cat >>conftest.$ac_ext <<_ACEOF
22564/* end confdefs.h. */
22565
22566int
22567main ()
22568{
21d1c967 22569
e6cc62c6
VS
22570 ;
22571 return 0;
22572}
22573_ACEOF
22574rm -f conftest.$ac_objext conftest$ac_exeext
22575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22576 (eval $ac_link) 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); } &&
22580 { ac_try='test -s conftest$ac_exeext'
22581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582 (eval $ac_try) 2>&5
22583 ac_status=$?
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }; }; then
21d1c967 22586 ac_R_nospace=yes
698dcdb6 22587else
e6cc62c6
VS
22588 echo "$as_me: failed program was:" >&5
22589sed 's/^/| /' conftest.$ac_ext >&5
22590
22591ac_R_nospace=no
10f2d63a 22592fi
e6cc62c6 22593rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22594 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22595 echo "$as_me:$LINENO: result: no" >&5
22596echo "${ECHO_T}no" >&6
21d1c967
GD
22597 X_LIBS="$X_LIBS -R$x_libraries"
22598 else
22599 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22600 cat >conftest.$ac_ext <<_ACEOF
22601#line $LINENO "configure"
22602/* confdefs.h. */
22603_ACEOF
22604cat confdefs.h >>conftest.$ac_ext
22605cat >>conftest.$ac_ext <<_ACEOF
22606/* end confdefs.h. */
22607
22608int
22609main ()
22610{
f0c87536 22611
e6cc62c6
VS
22612 ;
22613 return 0;
22614}
22615_ACEOF
22616rm -f conftest.$ac_objext conftest$ac_exeext
22617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22618 (eval $ac_link) 2>&5
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } &&
22622 { ac_try='test -s conftest$ac_exeext'
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; }; then
21d1c967
GD
22628 ac_R_space=yes
22629else
e6cc62c6
VS
22630 echo "$as_me: failed program was:" >&5
22631sed 's/^/| /' conftest.$ac_ext >&5
22632
22633ac_R_space=no
21d1c967 22634fi
e6cc62c6 22635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22636 if test $ac_R_space = yes; then
e6cc62c6
VS
22637 echo "$as_me:$LINENO: result: yes" >&5
22638echo "${ECHO_T}yes" >&6
21d1c967
GD
22639 X_LIBS="$X_LIBS -R $x_libraries"
22640 else
e6cc62c6
VS
22641 echo "$as_me:$LINENO: result: neither works" >&5
22642echo "${ECHO_T}neither works" >&6
21d1c967
GD
22643 fi
22644 fi
e6cc62c6 22645 LIBS=$ac_xsave_LIBS
21d1c967
GD
22646 esac
22647 fi
90dd450c 22648
21d1c967
GD
22649 # Check for system-dependent libraries X programs must link with.
22650 # Do this before checking for the system-independent R6 libraries
22651 # (-lICE), since we may need -lsocket or whatever for X linking.
22652
22653 if test "$ISC" = yes; then
22654 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22655 else
e6cc62c6
VS
22656 # Martyn Johnson says this is needed for Ultrix, if the X
22657 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22658 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22659 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22660 cat >conftest.$ac_ext <<_ACEOF
22661#line $LINENO "configure"
22662/* confdefs.h. */
22663_ACEOF
22664cat confdefs.h >>conftest.$ac_ext
22665cat >>conftest.$ac_ext <<_ACEOF
22666/* end confdefs.h. */
22667
247f5006 22668/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22669#ifdef __cplusplus
22670extern "C"
22671#endif
247f5006 22672/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22673 builtin and then its argument prototype would still apply. */
22674char XOpenDisplay ();
22675int
22676main ()
22677{
22678XOpenDisplay ();
22679 ;
22680 return 0;
22681}
22682_ACEOF
22683rm -f conftest.$ac_objext conftest$ac_exeext
22684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22685 (eval $ac_link) 2>&5
22686 ac_status=$?
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } &&
22689 { ac_try='test -s conftest$ac_exeext'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22692 ac_status=$?
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 :
22696else
22697 echo "$as_me: failed program was:" >&5
22698sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22699
e6cc62c6
VS
22700echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22701echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22702if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22704else
e6cc62c6
VS
22705 ac_check_lib_save_LIBS=$LIBS
22706LIBS="-ldnet $LIBS"
22707cat >conftest.$ac_ext <<_ACEOF
22708#line $LINENO "configure"
22709/* confdefs.h. */
22710_ACEOF
22711cat confdefs.h >>conftest.$ac_ext
22712cat >>conftest.$ac_ext <<_ACEOF
22713/* end confdefs.h. */
a0b9e27f 22714
e6cc62c6
VS
22715/* Override any gcc2 internal prototype to avoid an error. */
22716#ifdef __cplusplus
22717extern "C"
22718#endif
22719/* We use char because int might match the return type of a gcc2
22720 builtin and then its argument prototype would still apply. */
22721char dnet_ntoa ();
22722int
22723main ()
22724{
22725dnet_ntoa ();
22726 ;
22727 return 0;
22728}
22729_ACEOF
22730rm -f conftest.$ac_objext conftest$ac_exeext
22731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22732 (eval $ac_link) 2>&5
22733 ac_status=$?
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
22736 { ac_try='test -s conftest$ac_exeext'
22737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738 (eval $ac_try) 2>&5
22739 ac_status=$?
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); }; }; then
22742 ac_cv_lib_dnet_dnet_ntoa=yes
22743else
22744 echo "$as_me: failed program was:" >&5
22745sed 's/^/| /' conftest.$ac_ext >&5
22746
22747ac_cv_lib_dnet_dnet_ntoa=no
22748fi
22749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22750LIBS=$ac_check_lib_save_LIBS
22751fi
22752echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22753echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22754if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 22755 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 22756fi
0fb0dd83 22757
21d1c967 22758 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22759 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22760echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22761if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22762 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22763else
e6cc62c6 22764 ac_check_lib_save_LIBS=$LIBS
21d1c967 22765LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
22766cat >conftest.$ac_ext <<_ACEOF
22767#line $LINENO "configure"
22768/* confdefs.h. */
22769_ACEOF
22770cat confdefs.h >>conftest.$ac_ext
22771cat >>conftest.$ac_ext <<_ACEOF
22772/* end confdefs.h. */
22773
21d1c967 22774/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22775#ifdef __cplusplus
22776extern "C"
22777#endif
21d1c967 22778/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22779 builtin and then its argument prototype would still apply. */
22780char dnet_ntoa ();
22781int
22782main ()
22783{
22784dnet_ntoa ();
22785 ;
22786 return 0;
22787}
22788_ACEOF
22789rm -f conftest.$ac_objext conftest$ac_exeext
22790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22791 (eval $ac_link) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } &&
22795 { ac_try='test -s conftest$ac_exeext'
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22798 ac_status=$?
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; }; then
22801 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22802else
22803 echo "$as_me: failed program was:" >&5
22804sed 's/^/| /' conftest.$ac_ext >&5
22805
22806ac_cv_lib_dnet_stub_dnet_ntoa=no
22807fi
22808rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22809LIBS=$ac_check_lib_save_LIBS
22810fi
22811echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22812echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22813if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 22814 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
22815fi
22816
21d1c967 22817 fi
e6cc62c6
VS
22818fi
22819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22820 LIBS="$ac_xsave_LIBS"
90dd450c 22821
21d1c967
GD
22822 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22823 # to get the SysV transport functions.
e6cc62c6 22824 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
22825 # needs -lnsl.
22826 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
22827 # on Irix 5.2, according to T.E. Dickey.
22828 # The functions gethostbyname, getservbyname, and inet_addr are
22829 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22830 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22831echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22832if test "${ac_cv_func_gethostbyname+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22834else
22835 cat >conftest.$ac_ext <<_ACEOF
22836#line $LINENO "configure"
22837/* confdefs.h. */
22838_ACEOF
22839cat confdefs.h >>conftest.$ac_ext
22840cat >>conftest.$ac_ext <<_ACEOF
22841/* end confdefs.h. */
21d1c967 22842/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22843 which can conflict with char gethostbyname (); below.
22844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22845 <limits.h> exists even on freestanding compilers. */
22846#ifdef __STDC__
22847# include <limits.h>
22848#else
22849# include <assert.h>
22850#endif
21d1c967 22851/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22852#ifdef __cplusplus
22853extern "C"
22854{
22855#endif
21d1c967 22856/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22857 builtin and then its argument prototype would still apply. */
22858char gethostbyname ();
21d1c967
GD
22859/* The GNU C library defines this for functions which it implements
22860 to always fail with ENOSYS. Some functions are actually named
22861 something starting with __ and the normal name is an alias. */
22862#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22863choke me
22864#else
e6cc62c6
VS
22865char (*f) () = gethostbyname;
22866#endif
22867#ifdef __cplusplus
22868}
21d1c967 22869#endif
90dd450c 22870
e6cc62c6
VS
22871int
22872main ()
22873{
22874return f != gethostbyname;
22875 ;
22876 return 0;
22877}
22878_ACEOF
22879rm -f conftest.$ac_objext conftest$ac_exeext
22880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22881 (eval $ac_link) 2>&5
22882 ac_status=$?
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } &&
22885 { ac_try='test -s conftest$ac_exeext'
22886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887 (eval $ac_try) 2>&5
22888 ac_status=$?
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); }; }; then
22891 ac_cv_func_gethostbyname=yes
22892else
22893 echo "$as_me: failed program was:" >&5
22894sed 's/^/| /' conftest.$ac_ext >&5
22895
22896ac_cv_func_gethostbyname=no
22897fi
22898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22899fi
22900echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22901echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 22902
21d1c967 22903 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22904 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22905echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22906if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22907 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22908else
e6cc62c6 22909 ac_check_lib_save_LIBS=$LIBS
21d1c967 22910LIBS="-lnsl $LIBS"
e6cc62c6
VS
22911cat >conftest.$ac_ext <<_ACEOF
22912#line $LINENO "configure"
22913/* confdefs.h. */
22914_ACEOF
22915cat confdefs.h >>conftest.$ac_ext
22916cat >>conftest.$ac_ext <<_ACEOF
22917/* end confdefs.h. */
22918
21d1c967 22919/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22920#ifdef __cplusplus
22921extern "C"
22922#endif
21d1c967 22923/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22924 builtin and then its argument prototype would still apply. */
22925char gethostbyname ();
22926int
22927main ()
22928{
22929gethostbyname ();
22930 ;
22931 return 0;
22932}
22933_ACEOF
22934rm -f conftest.$ac_objext conftest$ac_exeext
22935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>&5
22937 ac_status=$?
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } &&
22940 { ac_try='test -s conftest$ac_exeext'
22941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942 (eval $ac_try) 2>&5
22943 ac_status=$?
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); }; }; then
22946 ac_cv_lib_nsl_gethostbyname=yes
22947else
22948 echo "$as_me: failed program was:" >&5
22949sed 's/^/| /' conftest.$ac_ext >&5
22950
22951ac_cv_lib_nsl_gethostbyname=no
22952fi
22953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22954LIBS=$ac_check_lib_save_LIBS
22955fi
22956echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22957echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22958if test $ac_cv_lib_nsl_gethostbyname = yes; then
22959 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22960fi
247f5006 22961
e6cc62c6
VS
22962 if test $ac_cv_lib_nsl_gethostbyname = no; then
22963 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22964echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22965if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22967else
e6cc62c6
VS
22968 ac_check_lib_save_LIBS=$LIBS
22969LIBS="-lbsd $LIBS"
22970cat >conftest.$ac_ext <<_ACEOF
22971#line $LINENO "configure"
22972/* confdefs.h. */
22973_ACEOF
22974cat confdefs.h >>conftest.$ac_ext
22975cat >>conftest.$ac_ext <<_ACEOF
22976/* end confdefs.h. */
22977
22978/* Override any gcc2 internal prototype to avoid an error. */
22979#ifdef __cplusplus
22980extern "C"
22981#endif
22982/* We use char because int might match the return type of a gcc2
22983 builtin and then its argument prototype would still apply. */
22984char gethostbyname ();
22985int
22986main ()
22987{
22988gethostbyname ();
22989 ;
22990 return 0;
22991}
22992_ACEOF
22993rm -f conftest.$ac_objext conftest$ac_exeext
22994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22995 (eval $ac_link) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
22999 { ac_try='test -s conftest$ac_exeext'
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23002 ac_status=$?
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; }; then
23005 ac_cv_lib_bsd_gethostbyname=yes
23006else
23007 echo "$as_me: failed program was:" >&5
23008sed 's/^/| /' conftest.$ac_ext >&5
23009
23010ac_cv_lib_bsd_gethostbyname=no
23011fi
23012rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23013LIBS=$ac_check_lib_save_LIBS
23014fi
23015echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23016echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23017if test $ac_cv_lib_bsd_gethostbyname = yes; then
23018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23019fi
90dd450c 23020
e6cc62c6 23021 fi
90dd450c
VZ
23022 fi
23023
21d1c967
GD
23024 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23025 # socket/setsockopt and other routines are undefined under SCO ODT
23026 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23027 # on later versions), says Simon Leinen: it contains gethostby*
23028 # variants that don't use the name server (or something). -lsocket
23029 # must be given before -lnsl if both are needed. We assume that
23030 # if connect needs -lnsl, so does gethostbyname.
23031 echo "$as_me:$LINENO: checking for connect" >&5
23032echo $ECHO_N "checking for connect... $ECHO_C" >&6
23033if test "${ac_cv_func_connect+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23035else
23036 cat >conftest.$ac_ext <<_ACEOF
23037#line $LINENO "configure"
23038/* confdefs.h. */
23039_ACEOF
23040cat confdefs.h >>conftest.$ac_ext
23041cat >>conftest.$ac_ext <<_ACEOF
23042/* end confdefs.h. */
21d1c967 23043/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23044 which can conflict with char connect (); below.
23045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23046 <limits.h> exists even on freestanding compilers. */
23047#ifdef __STDC__
23048# include <limits.h>
23049#else
23050# include <assert.h>
23051#endif
21d1c967 23052/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23053#ifdef __cplusplus
23054extern "C"
23055{
23056#endif
21d1c967 23057/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23058 builtin and then its argument prototype would still apply. */
23059char connect ();
21d1c967
GD
23060/* The GNU C library defines this for functions which it implements
23061 to always fail with ENOSYS. Some functions are actually named
23062 something starting with __ and the normal name is an alias. */
23063#if defined (__stub_connect) || defined (__stub___connect)
23064choke me
23065#else
e6cc62c6
VS
23066char (*f) () = connect;
23067#endif
23068#ifdef __cplusplus
23069}
21d1c967 23070#endif
90dd450c 23071
e6cc62c6
VS
23072int
23073main ()
23074{
23075return f != connect;
23076 ;
23077 return 0;
23078}
23079_ACEOF
23080rm -f conftest.$ac_objext conftest$ac_exeext
23081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23082 (eval $ac_link) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } &&
23086 { ac_try='test -s conftest$ac_exeext'
23087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23088 (eval $ac_try) 2>&5
23089 ac_status=$?
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); }; }; then
23092 ac_cv_func_connect=yes
23093else
23094 echo "$as_me: failed program was:" >&5
23095sed 's/^/| /' conftest.$ac_ext >&5
23096
23097ac_cv_func_connect=no
23098fi
23099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23100fi
23101echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23102echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23103
21d1c967 23104 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23105 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23106echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23107if test "${ac_cv_lib_socket_connect+set}" = set; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23109else
e6cc62c6 23110 ac_check_lib_save_LIBS=$LIBS
21d1c967 23111LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23112cat >conftest.$ac_ext <<_ACEOF
23113#line $LINENO "configure"
23114/* confdefs.h. */
23115_ACEOF
23116cat confdefs.h >>conftest.$ac_ext
23117cat >>conftest.$ac_ext <<_ACEOF
23118/* end confdefs.h. */
23119
21d1c967 23120/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23121#ifdef __cplusplus
23122extern "C"
23123#endif
21d1c967 23124/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23125 builtin and then its argument prototype would still apply. */
23126char connect ();
23127int
23128main ()
23129{
23130connect ();
23131 ;
23132 return 0;
23133}
23134_ACEOF
23135rm -f conftest.$ac_objext conftest$ac_exeext
23136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23137 (eval $ac_link) 2>&5
23138 ac_status=$?
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } &&
23141 { ac_try='test -s conftest$ac_exeext'
23142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143 (eval $ac_try) 2>&5
23144 ac_status=$?
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; }; then
23147 ac_cv_lib_socket_connect=yes
23148else
23149 echo "$as_me: failed program was:" >&5
23150sed 's/^/| /' conftest.$ac_ext >&5
23151
23152ac_cv_lib_socket_connect=no
23153fi
23154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23155LIBS=$ac_check_lib_save_LIBS
23156fi
23157echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23158echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23159if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23160 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23161fi
90dd450c 23162
21d1c967 23163 fi
90dd450c 23164
e6cc62c6
VS
23165 # Guillermo Gomez says -lposix is necessary on A/UX.
23166 echo "$as_me:$LINENO: checking for remove" >&5
23167echo $ECHO_N "checking for remove... $ECHO_C" >&6
23168if test "${ac_cv_func_remove+set}" = set; then
23169 echo $ECHO_N "(cached) $ECHO_C" >&6
23170else
23171 cat >conftest.$ac_ext <<_ACEOF
23172#line $LINENO "configure"
23173/* confdefs.h. */
23174_ACEOF
23175cat confdefs.h >>conftest.$ac_ext
23176cat >>conftest.$ac_ext <<_ACEOF
23177/* end confdefs.h. */
21d1c967 23178/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23179 which can conflict with char remove (); below.
23180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23181 <limits.h> exists even on freestanding compilers. */
23182#ifdef __STDC__
23183# include <limits.h>
23184#else
23185# include <assert.h>
23186#endif
21d1c967 23187/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23188#ifdef __cplusplus
23189extern "C"
23190{
23191#endif
21d1c967 23192/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23193 builtin and then its argument prototype would still apply. */
23194char remove ();
21d1c967
GD
23195/* The GNU C library defines this for functions which it implements
23196 to always fail with ENOSYS. Some functions are actually named
23197 something starting with __ and the normal name is an alias. */
23198#if defined (__stub_remove) || defined (__stub___remove)
23199choke me
23200#else
e6cc62c6
VS
23201char (*f) () = remove;
23202#endif
23203#ifdef __cplusplus
23204}
21d1c967 23205#endif
90dd450c 23206
e6cc62c6
VS
23207int
23208main ()
23209{
23210return f != remove;
23211 ;
23212 return 0;
23213}
23214_ACEOF
23215rm -f conftest.$ac_objext conftest$ac_exeext
23216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23217 (eval $ac_link) 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
23221 { ac_try='test -s conftest$ac_exeext'
23222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223 (eval $ac_try) 2>&5
23224 ac_status=$?
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; }; then
23227 ac_cv_func_remove=yes
23228else
23229 echo "$as_me: failed program was:" >&5
23230sed 's/^/| /' conftest.$ac_ext >&5
23231
23232ac_cv_func_remove=no
23233fi
23234rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23235fi
23236echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23237echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23238
21d1c967 23239 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23240 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23241echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23242if test "${ac_cv_lib_posix_remove+set}" = set; then
23243 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23244else
e6cc62c6 23245 ac_check_lib_save_LIBS=$LIBS
21d1c967 23246LIBS="-lposix $LIBS"
e6cc62c6
VS
23247cat >conftest.$ac_ext <<_ACEOF
23248#line $LINENO "configure"
23249/* confdefs.h. */
23250_ACEOF
23251cat confdefs.h >>conftest.$ac_ext
23252cat >>conftest.$ac_ext <<_ACEOF
23253/* end confdefs.h. */
23254
21d1c967 23255/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23256#ifdef __cplusplus
23257extern "C"
23258#endif
21d1c967 23259/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23260 builtin and then its argument prototype would still apply. */
23261char remove ();
23262int
23263main ()
23264{
23265remove ();
23266 ;
23267 return 0;
23268}
23269_ACEOF
23270rm -f conftest.$ac_objext conftest$ac_exeext
23271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23272 (eval $ac_link) 2>&5
23273 ac_status=$?
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } &&
23276 { ac_try='test -s conftest$ac_exeext'
23277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278 (eval $ac_try) 2>&5
23279 ac_status=$?
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); }; }; then
23282 ac_cv_lib_posix_remove=yes
23283else
23284 echo "$as_me: failed program was:" >&5
23285sed 's/^/| /' conftest.$ac_ext >&5
23286
23287ac_cv_lib_posix_remove=no
23288fi
23289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23290LIBS=$ac_check_lib_save_LIBS
23291fi
23292echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23293echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23294if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23296fi
19bc6aad 23297
90dd450c 23298 fi
19bc6aad 23299
21d1c967 23300 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23301 echo "$as_me:$LINENO: checking for shmat" >&5
23302echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23303if test "${ac_cv_func_shmat+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23305else
23306 cat >conftest.$ac_ext <<_ACEOF
23307#line $LINENO "configure"
23308/* confdefs.h. */
23309_ACEOF
23310cat confdefs.h >>conftest.$ac_ext
23311cat >>conftest.$ac_ext <<_ACEOF
23312/* end confdefs.h. */
21d1c967 23313/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23314 which can conflict with char shmat (); below.
23315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23316 <limits.h> exists even on freestanding compilers. */
23317#ifdef __STDC__
23318# include <limits.h>
23319#else
23320# include <assert.h>
23321#endif
21d1c967 23322/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23323#ifdef __cplusplus
23324extern "C"
23325{
23326#endif
21d1c967 23327/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23328 builtin and then its argument prototype would still apply. */
23329char shmat ();
21d1c967
GD
23330/* The GNU C library defines this for functions which it implements
23331 to always fail with ENOSYS. Some functions are actually named
23332 something starting with __ and the normal name is an alias. */
23333#if defined (__stub_shmat) || defined (__stub___shmat)
23334choke me
23335#else
e6cc62c6
VS
23336char (*f) () = shmat;
23337#endif
23338#ifdef __cplusplus
23339}
21d1c967 23340#endif
90dd450c 23341
e6cc62c6
VS
23342int
23343main ()
23344{
23345return f != shmat;
23346 ;
23347 return 0;
23348}
23349_ACEOF
23350rm -f conftest.$ac_objext conftest$ac_exeext
23351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23352 (eval $ac_link) 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } &&
23356 { ac_try='test -s conftest$ac_exeext'
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; }; then
23362 ac_cv_func_shmat=yes
23363else
23364 echo "$as_me: failed program was:" >&5
23365sed 's/^/| /' conftest.$ac_ext >&5
23366
23367ac_cv_func_shmat=no
23368fi
23369rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23370fi
23371echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23372echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23373
21d1c967 23374 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23375 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23376echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23377if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23378 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23379else
e6cc62c6 23380 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23381LIBS="-lipc $LIBS"
e6cc62c6
VS
23382cat >conftest.$ac_ext <<_ACEOF
23383#line $LINENO "configure"
23384/* confdefs.h. */
23385_ACEOF
23386cat confdefs.h >>conftest.$ac_ext
23387cat >>conftest.$ac_ext <<_ACEOF
23388/* end confdefs.h. */
23389
5c6fa7d2 23390/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23391#ifdef __cplusplus
23392extern "C"
23393#endif
5c6fa7d2 23394/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23395 builtin and then its argument prototype would still apply. */
23396char shmat ();
23397int
23398main ()
23399{
23400shmat ();
23401 ;
23402 return 0;
23403}
23404_ACEOF
23405rm -f conftest.$ac_objext conftest$ac_exeext
23406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23407 (eval $ac_link) 2>&5
23408 ac_status=$?
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
23411 { ac_try='test -s conftest$ac_exeext'
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23414 ac_status=$?
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; }; then
23417 ac_cv_lib_ipc_shmat=yes
23418else
23419 echo "$as_me: failed program was:" >&5
23420sed 's/^/| /' conftest.$ac_ext >&5
23421
23422ac_cv_lib_ipc_shmat=no
23423fi
23424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23425LIBS=$ac_check_lib_save_LIBS
23426fi
23427echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23428echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23429if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23431fi
90dd450c 23432
90dd450c 23433 fi
21d1c967 23434 fi
10f2d63a 23435
21d1c967 23436 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23437 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23438 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23439 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23440 # check for ICE first), but we must link in the order -lSM -lICE or
23441 # we get undefined symbols. So assume we have SM if we have ICE.
23442 # These have to be linked with before -lX11, unlike the other
23443 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23444 # John Interrante, Karl Berry
23445 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23446echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23447if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23449else
23450 ac_check_lib_save_LIBS=$LIBS
f09359cf 23451LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23452cat >conftest.$ac_ext <<_ACEOF
23453#line $LINENO "configure"
23454/* confdefs.h. */
23455_ACEOF
23456cat confdefs.h >>conftest.$ac_ext
23457cat >>conftest.$ac_ext <<_ACEOF
23458/* end confdefs.h. */
23459
21d1c967 23460/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23461#ifdef __cplusplus
23462extern "C"
23463#endif
21d1c967 23464/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23465 builtin and then its argument prototype would still apply. */
23466char IceConnectionNumber ();
23467int
23468main ()
23469{
23470IceConnectionNumber ();
23471 ;
23472 return 0;
23473}
23474_ACEOF
23475rm -f conftest.$ac_objext conftest$ac_exeext
23476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23477 (eval $ac_link) 2>&5
23478 ac_status=$?
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } &&
23481 { ac_try='test -s conftest$ac_exeext'
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23484 ac_status=$?
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; }; then
23487 ac_cv_lib_ICE_IceConnectionNumber=yes
23488else
23489 echo "$as_me: failed program was:" >&5
23490sed 's/^/| /' conftest.$ac_ext >&5
23491
23492ac_cv_lib_ICE_IceConnectionNumber=no
23493fi
23494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23495LIBS=$ac_check_lib_save_LIBS
23496fi
23497echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23498echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23499if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23500 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23501fi
21d1c967 23502
e6cc62c6 23503 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23504
10f2d63a
VZ
23505fi
23506
8284b0c5 23507
21d1c967 23508 if test "$no_x" = "yes"; then
e6cc62c6
VS
23509 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23510echo "$as_me: error: X11 not found" >&2;}
23511 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23512 fi
23513
2b5f62a0
VZ
23514 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23515 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23516 AFMINSTALL=afminstall
23517 COMPILED_X_PROGRAM=0
23518
e6cc62c6
VS
23519 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23520echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23521
21d1c967 23522ac_find_includes=
2b5f62a0 23523for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23524 do
23525 if test -f "$ac_dir/Xm/Xm.h"; then
23526 ac_find_includes=$ac_dir
23527 break
23528 fi
23529 done
23530
23531 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23532 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23533echo "${ECHO_T}found in $ac_find_includes" >&6
23534
2b5f62a0 23535 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23536 ac_path_to_include=""
23537 else
2b5f62a0
VZ
23538 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23539 result=$?
23540 if test $result = 0; then
23541 ac_path_to_include=""
23542 else
23543 ac_path_to_include=" -I$ac_find_includes"
23544 fi
dd0e4a90
VZ
23545 fi
23546
23547 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23548 else
e6cc62c6
VS
23549 cat >conftest.$ac_ext <<_ACEOF
23550#line $LINENO "configure"
23551/* confdefs.h. */
23552_ACEOF
23553cat confdefs.h >>conftest.$ac_ext
23554cat >>conftest.$ac_ext <<_ACEOF
23555/* end confdefs.h. */
21d1c967
GD
23556
23557 #include <Xm/Xm.h>
e6cc62c6
VS
23558
23559int
23560main ()
23561{
21d1c967
GD
23562
23563 int version;
23564 version = xmUseVersion;
e6cc62c6
VS
23565
23566 ;
23567 return 0;
23568}
23569_ACEOF
23570rm -f conftest.$ac_objext
23571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23572 (eval $ac_compile) 2>&5
23573 ac_status=$?
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } &&
23576 { ac_try='test -s conftest.$ac_objext'
23577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578 (eval $ac_try) 2>&5
23579 ac_status=$?
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582
23583 echo "$as_me:$LINENO: result: found in default search path" >&5
23584echo "${ECHO_T}found in default search path" >&6
21d1c967 23585 COMPILED_X_PROGRAM=1
e6cc62c6 23586
10f2d63a 23587else
e6cc62c6
VS
23588 echo "$as_me: failed program was:" >&5
23589sed 's/^/| /' conftest.$ac_ext >&5
23590
23591
23592 echo "$as_me:$LINENO: result: no" >&5
23593echo "${ECHO_T}no" >&6
23594 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23595echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23596 { (exit 1); exit 1; }; }
23597
23598
10f2d63a 23599fi
e6cc62c6 23600rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23601 fi
10f2d63a 23602
21d1c967 23603 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23604 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23605echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23606
21d1c967 23607ac_find_libraries=
2b5f62a0 23608for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23609 do
23610 for ac_extension in a so sl dylib; do
23611 if test -f "$ac_dir/libXm.$ac_extension"; then
23612 ac_find_libraries=$ac_dir
23613 break 2
23614 fi
23615 done
23616 done
23617
23618 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23619 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23620echo "${ECHO_T}found at $ac_find_libraries" >&6
23621
21d1c967 23622
21d1c967
GD
23623 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23624 result=$?
23625 if test $result = 0; then
23626 ac_path_to_link=""
23627 else
23628 ac_path_to_link=" -L$ac_find_libraries"
23629 fi
23630
21d1c967 23631 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23632 else
dd0e4a90
VZ
23633 save_CFLAGS=$CFLAGS
23634 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23635
e6cc62c6
VS
23636 cat >conftest.$ac_ext <<_ACEOF
23637#line $LINENO "configure"
23638/* confdefs.h. */
23639_ACEOF
23640cat confdefs.h >>conftest.$ac_ext
23641cat >>conftest.$ac_ext <<_ACEOF
23642/* end confdefs.h. */
21d1c967
GD
23643
23644 #include <Xm/Xm.h>
e6cc62c6
VS
23645
23646int
23647main ()
23648{
21d1c967
GD
23649
23650 int version;
23651 version = xmUseVersion;
e6cc62c6
VS
23652
23653 ;
23654 return 0;
23655}
23656_ACEOF
23657rm -f conftest.$ac_objext
23658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23659 (eval $ac_compile) 2>&5
23660 ac_status=$?
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); } &&
23663 { ac_try='test -s conftest.$ac_objext'
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; }; then
23669
23670 echo "$as_me:$LINENO: result: found in default search path" >&5
23671echo "${ECHO_T}found in default search path" >&6
21d1c967 23672 COMPILED_X_PROGRAM=1
e6cc62c6 23673
d836ee96 23674else
e6cc62c6
VS
23675 echo "$as_me: failed program was:" >&5
23676sed 's/^/| /' conftest.$ac_ext >&5
23677
23678
23679 echo "$as_me:$LINENO: result: no" >&5
23680echo "${ECHO_T}no" >&6
23681 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23682echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23683 { (exit 1); exit 1; }; }
23684
23685
d836ee96 23686fi
e6cc62c6 23687rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23688
23689 CFLAGS=$save_CFLAGS
21d1c967
GD
23690 fi
23691 fi
23692
23693 xpm_link=
e6cc62c6
VS
23694 echo "$as_me:$LINENO: checking for Xpm library" >&5
23695echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23696
21d1c967 23697ac_find_libraries=
2b5f62a0 23698for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23699 do
23700 for ac_extension in a so sl dylib; do
23701 if test -f "$ac_dir/libXpm.$ac_extension"; then
23702 ac_find_libraries=$ac_dir
23703 break 2
23704 fi
23705 done
23706 done
23707
23708 if test "$ac_find_libraries" != "" ; then
e6cc62c6 23709
21d1c967
GD
23710 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23711 result=$?
23712 if test $result = 0; then
23713 ac_path_to_link=""
23714 else
23715 ac_path_to_link=" -L$ac_find_libraries"
23716 fi
23717
23718 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 23719
21d1c967 23720 xpm_link=" -lXpm"
e6cc62c6 23721 cat >>confdefs.h <<\_ACEOF
21d1c967 23722#define wxHAVE_LIB_XPM 1
e6cc62c6 23723_ACEOF
90dd450c 23724
e6cc62c6
VS
23725 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23726echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 23727 else
dd0e4a90
VZ
23728 save_CFLAGS=$CFLAGS
23729 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23730
e6cc62c6
VS
23731 cat >conftest.$ac_ext <<_ACEOF
23732#line $LINENO "configure"
23733/* confdefs.h. */
23734_ACEOF
23735cat confdefs.h >>conftest.$ac_ext
23736cat >>conftest.$ac_ext <<_ACEOF
23737/* end confdefs.h. */
21d1c967
GD
23738
23739 #include <X11/xpm.h>
e6cc62c6
VS
23740
23741int
23742main ()
23743{
21d1c967
GD
23744
23745 int version;
23746 version = XpmLibraryVersion();
e6cc62c6
VS
23747
23748 ;
23749 return 0;
23750}
23751_ACEOF
23752rm -f conftest.$ac_objext
23753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23754 (eval $ac_compile) 2>&5
23755 ac_status=$?
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } &&
23758 { ac_try='test -s conftest.$ac_objext'
23759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760 (eval $ac_try) 2>&5
23761 ac_status=$?
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); }; }; then
23764
21d1c967 23765 xpm_link=" -lXpm"
e6cc62c6 23766 cat >>confdefs.h <<\_ACEOF
21d1c967 23767#define wxHAVE_LIB_XPM 1
e6cc62c6 23768_ACEOF
21d1c967 23769
e6cc62c6
VS
23770 echo "$as_me:$LINENO: result: found in default search path" >&5
23771echo "${ECHO_T}found in default search path" >&6
21d1c967 23772 COMPILED_X_PROGRAM=0
e6cc62c6 23773
d836ee96 23774else
e6cc62c6
VS
23775 echo "$as_me: failed program was:" >&5
23776sed 's/^/| /' conftest.$ac_ext >&5
23777
23778
23779 echo "$as_me:$LINENO: result: no" >&5
23780echo "${ECHO_T}no" >&6
23781 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23782echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23783
23784
d836ee96 23785fi
e6cc62c6 23786rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23787
23788 CFLAGS=$save_CFLAGS
21d1c967
GD
23789 fi
23790
e6cc62c6
VS
23791 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23792echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
23793 libp_link=""
23794 libsm_ice_link=""
23795 libs_found=0
23796 for libp in "" " -lXp"; do
23797 if test "$libs_found" = "0"; then
23798 for libsm_ice in " -lSM -lICE"; do
e26c13cf 23799 if test "$libs_found" = "0"; then
6a30f1c8
MB
23800 save_LIBS="$LIBS"
23801 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
23802 save_CFLAGS=$CFLAGS
23803 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23804
e6cc62c6
VS
23805 cat >conftest.$ac_ext <<_ACEOF
23806#line $LINENO "configure"
23807/* confdefs.h. */
23808_ACEOF
23809cat confdefs.h >>conftest.$ac_ext
23810cat >>conftest.$ac_ext <<_ACEOF
23811/* end confdefs.h. */
17234b26 23812
6a30f1c8
MB
23813 #include <Xm/Xm.h>
23814 #include <Xm/List.h>
e6cc62c6
VS
23815
23816int
23817main ()
23818{
6a30f1c8
MB
23819
23820 XmString string = NULL;
23821 Widget w = NULL;
23822 int position = 0;
23823 XmListAddItem(w, string, position);
e6cc62c6
VS
23824
23825 ;
23826 return 0;
23827}
23828_ACEOF
23829rm -f conftest.$ac_objext conftest$ac_exeext
23830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23831 (eval $ac_link) 2>&5
23832 ac_status=$?
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } &&
23835 { ac_try='test -s conftest$ac_exeext'
23836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837 (eval $ac_try) 2>&5
23838 ac_status=$?
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); }; }; then
23841
6a30f1c8
MB
23842 libp_link="$libp"
23843 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
23844 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
23845echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 23846 libs_found=1
e6cc62c6 23847
6a30f1c8 23848else
e6cc62c6
VS
23849 echo "$as_me: failed program was:" >&5
23850sed 's/^/| /' conftest.$ac_ext >&5
23851
23852
23853
6a30f1c8 23854fi
e6cc62c6 23855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 23856
6a30f1c8 23857 LIBS="$save_LIBS"
dd0e4a90 23858 CFLAGS=$save_CFLAGS
6a30f1c8
MB
23859 fi
23860 done
23861 fi
23862 done
23863
23864 if test "$libs_found" = "0"; then
e6cc62c6
VS
23865 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
23866echo "${ECHO_T}can't find the right libraries" >&6
23867 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
23868echo "$as_me: error: can't link a simple motif program" >&2;}
23869 { (exit 1); exit 1; }; }
6a30f1c8
MB
23870 fi
23871
da494b40
MB
23872 save_CFLAGS=$CFLAGS
23873 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
23874 echo "$as_me:$LINENO: checking for Motif 2" >&5
23875echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
23876 cat >conftest.$ac_ext <<_ACEOF
23877#line $LINENO "configure"
23878/* confdefs.h. */
23879_ACEOF
23880cat confdefs.h >>conftest.$ac_ext
23881cat >>conftest.$ac_ext <<_ACEOF
23882/* end confdefs.h. */
da494b40
MB
23883
23884 #include <Xm/Xm.h>
e6cc62c6
VS
23885
23886int
23887main ()
23888{
da494b40
MB
23889
23890 #if XmVersion < 2000
23891 #error "Not Motif 2"
23892 #endif
e6cc62c6
VS
23893
23894 ;
23895 return 0;
23896}
23897_ACEOF
23898rm -f conftest.$ac_objext
23899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23900 (eval $ac_compile) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } &&
23904 { ac_try='test -s conftest.$ac_objext'
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910
23911 cat >>confdefs.h <<\_ACEOF
da494b40 23912#define __WXMOTIF20__ 1
e6cc62c6
VS
23913_ACEOF
23914
23915 echo "$as_me:$LINENO: result: found" >&5
23916echo "${ECHO_T}found" >&6
da494b40 23917
da494b40 23918else
e6cc62c6
VS
23919 echo "$as_me: failed program was:" >&5
23920sed 's/^/| /' conftest.$ac_ext >&5
23921
23922
23923 cat >>confdefs.h <<\_ACEOF
da494b40 23924#define __WXMOTIF20__ 0
e6cc62c6
VS
23925_ACEOF
23926
23927 echo "$as_me:$LINENO: result: not found" >&5
23928echo "${ECHO_T}not found" >&6
da494b40 23929
da494b40 23930fi
e6cc62c6 23931rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
23932 CFLAGS=$save_CFLAGS
23933
6a30f1c8 23934 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 23935 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
23936 TOOLKIT=MOTIF
23937 GUIDIST=MOTIF_DIST
f7f78039
MB
23938 wxHAVE_XEXT_LIB=1
23939 fi
23940
23941 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
23942 test "$wxHAVE_XEXT_LIB" = 1; then
23943 save_CFLAGS="$CFLAGS"
23944 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23945
e6cc62c6
VS
23946 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
23947echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
23948 cat >conftest.$ac_ext <<_ACEOF
23949#line $LINENO "configure"
23950/* confdefs.h. */
23951_ACEOF
23952cat confdefs.h >>conftest.$ac_ext
23953cat >>conftest.$ac_ext <<_ACEOF
23954/* end confdefs.h. */
23955
23956 #include <X11/Xlib.h>
f7f78039 23957 #include <X11/extensions/shape.h>
e6cc62c6
VS
23958
23959int
23960main ()
23961{
f7f78039
MB
23962
23963 int dummy1, dummy2;
23964 XShapeQueryExtension((Display*)NULL,
23965 (int*)NULL, (int*)NULL);
e6cc62c6
VS
23966
23967 ;
23968 return 0;
23969}
23970_ACEOF
23971rm -f conftest.$ac_objext
23972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23973 (eval $ac_compile) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } &&
23977 { ac_try='test -s conftest.$ac_objext'
23978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); }; }; then
23983
23984 cat >>confdefs.h <<\_ACEOF
f7f78039 23985#define HAVE_XSHAPE 1
e6cc62c6
VS
23986_ACEOF
23987
23988 echo "$as_me:$LINENO: result: found" >&5
23989echo "${ECHO_T}found" >&6
f7f78039 23990
f7f78039 23991else
e6cc62c6
VS
23992 echo "$as_me: failed program was:" >&5
23993sed 's/^/| /' conftest.$ac_ext >&5
23994
23995
23996 echo "$as_me:$LINENO: result: not found" >&5
23997echo "${ECHO_T}not found" >&6
23998
f7f78039 23999fi
e6cc62c6 24000rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24001 CFLAGS="$save_CFLAGS"
21d1c967
GD
24002 fi
24003
24004 if test "$wxUSE_MAC" = 1; then
0c98a14e 24005 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24006
0c98a14e 24007 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24008 TOOLKIT=MAC
24009 GUIDIST=MACX_DIST
24010 fi
24011
ac0c4cc3
DE
24012 if test "$wxUSE_COCOA" = 1; then
24013 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24014 TOOLKIT=COCOA
24015 GUIDIST=COCOA_DIST
24016 fi
24017
21d1c967
GD
24018 if test "$wxUSE_PM" = 1; then
24019 TOOLKIT=PM
24020 GUIDIST=GTK_DIST
e6cc62c6
VS
24021 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24022echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24023 wxUSE_THREADS="no"
21d1c967
GD
24024 fi
24025
24026 if test "$TOOLKIT" = "PM" ; then
24027 TOOLKIT_DIR="os2"
24028 else
24029 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24030 fi
24031
24032 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24033
24034 if test "$wxUSE_UNIVERSAL" = "yes"; then
24035 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24036
24037 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24038 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24039
24040 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24041 if test "$wxUSE_X11" = 1; then
24042 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24043 else
24044 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24045 fi
24046 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24047 WIDGET_SET=univ
24048 else
24049 ALL_OBJECTS="\$(GUIOBJS)"
24050 ALL_SOURCES="\$(ALL_SOURCES)"
24051 ALL_HEADERS="\$(ALL_HEADERS)"
24052 fi
24053
24054 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24055
24056 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24057 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24058 fi
24059
24060 if test "$wxUSE_HTML" = "yes"; then
24061 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24062 fi
24063
24064 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24065 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24066 fi
24067 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24068 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24069 fi
24070 if test "$wxUSE_LIBPNG" = "builtin" ; then
24071 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24072 fi
24073
24074 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24075 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24076else
21d1c967
GD
24077 USE_GUI=0
24078
24079 TOOLKIT_DIR="base"
24080
24081 if test "$USE_WIN32" = 1 ; then
24082 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24083 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24084
24085 TOOLKIT="MSW"
24086 else
24087 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24088 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24089 fi
24090
24091 ALL_SOURCES="\$(ALL_SOURCES)"
24092 ALL_HEADERS="\$(ALL_HEADERS)"
24093
24094 PORT_FILES="\${top_srcdir}/src/files.lst"
24095
24096 GUIDIST="BASE_DIST"
24097 DISTDIR="wxBase"
d836ee96
VZ
24098fi
24099
8284b0c5 24100
8647bec6
RG
24101
24102
24103IODBC_C_SRC=""
24104
24105
24106if test "$TOOLKIT" != "MSW" ; then
24107
24108 if test "$wxUSE_ODBC" != "no" ; then
e6cc62c6 24109 cat >>confdefs.h <<\_ACEOF
8647bec6 24110#define wxUSE_ODBC 1
e6cc62c6 24111_ACEOF
8647bec6
RG
24112
24113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
e6cc62c6 24114
8647bec6
RG
24115 WXODBCFLAG="-D_IODBC_"
24116
24117
24118 if test "$wxUSE_ODBC" = "sys" ; then
e6cc62c6
VS
24119
24120 if test "${ac_cv_header_sql_h+set}" = set; then
24121 echo "$as_me:$LINENO: checking for sql.h" >&5
24122echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24123if test "${ac_cv_header_sql_h+set}" = set; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24125fi
24126echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24127echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24128else
24129 # Is the header compilable?
24130echo "$as_me:$LINENO: checking sql.h usability" >&5
24131echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24132cat >conftest.$ac_ext <<_ACEOF
24133#line $LINENO "configure"
24134/* confdefs.h. */
24135_ACEOF
24136cat confdefs.h >>conftest.$ac_ext
24137cat >>conftest.$ac_ext <<_ACEOF
24138/* end confdefs.h. */
24139$ac_includes_default
8647bec6 24140#include <sql.h>
e6cc62c6
VS
24141_ACEOF
24142rm -f conftest.$ac_objext
24143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24144 (eval $ac_compile) 2>&5
24145 ac_status=$?
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } &&
24148 { ac_try='test -s conftest.$ac_objext'
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; }; then
24154 ac_header_compiler=yes
24155else
24156 echo "$as_me: failed program was:" >&5
24157sed 's/^/| /' conftest.$ac_ext >&5
24158
24159ac_header_compiler=no
24160fi
24161rm -f conftest.$ac_objext conftest.$ac_ext
24162echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24163echo "${ECHO_T}$ac_header_compiler" >&6
24164
24165# Is the header present?
24166echo "$as_me:$LINENO: checking sql.h presence" >&5
24167echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24168cat >conftest.$ac_ext <<_ACEOF
24169#line $LINENO "configure"
24170/* confdefs.h. */
24171_ACEOF
24172cat confdefs.h >>conftest.$ac_ext
24173cat >>conftest.$ac_ext <<_ACEOF
24174/* end confdefs.h. */
24175#include <sql.h>
24176_ACEOF
24177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24179 ac_status=$?
24180 grep -v '^ *+' conftest.er1 >conftest.err
24181 rm -f conftest.er1
24182 cat conftest.err >&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } >/dev/null; then
24185 if test -s conftest.err; then
24186 ac_cpp_err=$ac_c_preproc_warn_flag
24187 else
24188 ac_cpp_err=
24189 fi
24190else
24191 ac_cpp_err=yes
24192fi
24193if test -z "$ac_cpp_err"; then
24194 ac_header_preproc=yes
24195else
24196 echo "$as_me: failed program was:" >&5
24197sed 's/^/| /' conftest.$ac_ext >&5
24198
24199 ac_header_preproc=no
24200fi
24201rm -f conftest.err conftest.$ac_ext
24202echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24203echo "${ECHO_T}$ac_header_preproc" >&6
24204
24205# So? What about this header?
24206case $ac_header_compiler:$ac_header_preproc in
24207 yes:no )
24208 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24209echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24210 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24211echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24212 (
24213 cat <<\_ASBOX
24214## ------------------------------------ ##
24215## Report this to bug-autoconf@gnu.org. ##
24216## ------------------------------------ ##
24217_ASBOX
24218 ) |
24219 sed "s/^/$as_me: WARNING: /" >&2
24220 ;;
24221 no:yes )
24222 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24223echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24225echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24227echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24228 (
24229 cat <<\_ASBOX
24230## ------------------------------------ ##
24231## Report this to bug-autoconf@gnu.org. ##
24232## ------------------------------------ ##
24233_ASBOX
24234 ) |
24235 sed "s/^/$as_me: WARNING: /" >&2
24236 ;;
24237esac
24238echo "$as_me:$LINENO: checking for sql.h" >&5
24239echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24240if test "${ac_cv_header_sql_h+set}" = set; then
24241 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24242else
e6cc62c6
VS
24243 ac_cv_header_sql_h=$ac_header_preproc
24244fi
24245echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24246echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24247
8647bec6
RG
24248fi
24249
e6cc62c6
VS
24250
24251 echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24252echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24253if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24254 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24255else
e6cc62c6
VS
24256 ac_func_search_save_LIBS=$LIBS
24257ac_cv_search_SQLAllocEnv=no
24258cat >conftest.$ac_ext <<_ACEOF
24259#line $LINENO "configure"
24260/* confdefs.h. */
24261_ACEOF
24262cat confdefs.h >>conftest.$ac_ext
24263cat >>conftest.$ac_ext <<_ACEOF
24264/* end confdefs.h. */
24265
8647bec6 24266/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24267#ifdef __cplusplus
24268extern "C"
24269#endif
8647bec6 24270/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24271 builtin and then its argument prototype would still apply. */
24272char SQLAllocEnv ();
24273int
24274main ()
24275{
24276SQLAllocEnv ();
24277 ;
24278 return 0;
24279}
24280_ACEOF
24281rm -f conftest.$ac_objext conftest$ac_exeext
24282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24283 (eval $ac_link) 2>&5
24284 ac_status=$?
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); } &&
24287 { ac_try='test -s conftest$ac_exeext'
24288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289 (eval $ac_try) 2>&5
24290 ac_status=$?
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; }; then
8647bec6
RG
24293 ac_cv_search_SQLAllocEnv="none required"
24294else
e6cc62c6
VS
24295 echo "$as_me: failed program was:" >&5
24296sed 's/^/| /' conftest.$ac_ext >&5
24297
8647bec6 24298fi
e6cc62c6
VS
24299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24300if test "$ac_cv_search_SQLAllocEnv" = no; then
24301 for ac_lib in iodbc unixodbc odbc ; do
24302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24303 cat >conftest.$ac_ext <<_ACEOF
24304#line $LINENO "configure"
24305/* confdefs.h. */
24306_ACEOF
24307cat confdefs.h >>conftest.$ac_ext
24308cat >>conftest.$ac_ext <<_ACEOF
24309/* end confdefs.h. */
24310
8647bec6 24311/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24312#ifdef __cplusplus
24313extern "C"
24314#endif
8647bec6 24315/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24316 builtin and then its argument prototype would still apply. */
24317char SQLAllocEnv ();
24318int
24319main ()
24320{
24321SQLAllocEnv ();
24322 ;
24323 return 0;
24324}
24325_ACEOF
24326rm -f conftest.$ac_objext conftest$ac_exeext
24327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24328 (eval $ac_link) 2>&5
24329 ac_status=$?
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); } &&
24332 { ac_try='test -s conftest$ac_exeext'
24333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334 (eval $ac_try) 2>&5
24335 ac_status=$?
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; }; then
24338 ac_cv_search_SQLAllocEnv="-l$ac_lib"
8647bec6
RG
24339break
24340else
e6cc62c6
VS
24341 echo "$as_me: failed program was:" >&5
24342sed 's/^/| /' conftest.$ac_ext >&5
24343
8647bec6 24344fi
e6cc62c6
VS
24345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24346 done
8647bec6 24347fi
e6cc62c6
VS
24348LIBS=$ac_func_search_save_LIBS
24349fi
24350echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24351echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24352if test "$ac_cv_search_SQLAllocEnv" != no; then
8647bec6 24353 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
e6cc62c6
VS
24354
24355else
24356
24357 wxUSE_ODBC=builtin;
24358 { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5
24359echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;}
24360
8647bec6 24361fi
e6cc62c6 24362
fd3d7534
RG
24363 fi
24364 if test "$wxUSE_ODBC" != "sys" ; then
24365 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8647bec6
RG
24366 fi
24367
24368 fi
e6cc62c6 24369
6232543b 24370fi
21d1c967
GD
24371
24372if test "$wxUSE_REGEX" = "builtin" ; then
24373 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24374fi
21d1c967
GD
24375if test "$wxUSE_ZLIB" = "builtin" ; then
24376 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24377fi
24378
8284b0c5 24379
21d1c967 24380if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24381 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24382 OPENGL_LIBS="-framework OpenGL -framework AGL"
24383 elif test "$wxUSE_MSW" = 1; then
24384 OPENGL_LIBS="-lopengl32 -lglu32"
24385 else
01aa5863
VS
24386
24387
24388ac_find_includes=
24389for ac_dir in $SEARCH_INCLUDE /usr/include;
24390 do
24391 if test -f "$ac_dir/GL/gl.h"; then
24392 ac_find_includes=$ac_dir
24393 break
24394 fi
24395 done
24396
24397 if test "$ac_find_includes" != "" ; then
24398 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24399echo "${ECHO_T}found in $ac_find_includes" >&6
24400 set -x
24401
24402 if test "x$ac_find_includes" = "x/usr/include"; then
24403 ac_path_to_include=""
24404 else
24405 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24406 result=$?
24407 if test $result = 0; then
24408 ac_path_to_include=""
24409 else
24410 ac_path_to_include=" -I$ac_find_includes"
24411 fi
24412 fi
24413
24414 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24415 set +x
24416 fi
24417
e6cc62c6
VS
24418 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24419 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24420echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24421if test "${ac_cv_header_GL_gl_h+set}" = set; then
24422 echo $ECHO_N "(cached) $ECHO_C" >&6
24423fi
24424echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24425echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24426else
24427 # Is the header compilable?
24428echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24429echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24430cat >conftest.$ac_ext <<_ACEOF
24431#line $LINENO "configure"
24432/* confdefs.h. */
24433_ACEOF
24434cat confdefs.h >>conftest.$ac_ext
24435cat >>conftest.$ac_ext <<_ACEOF
24436/* end confdefs.h. */
24437$ac_includes_default
21d1c967 24438#include <GL/gl.h>
e6cc62c6
VS
24439_ACEOF
24440rm -f conftest.$ac_objext
24441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24442 (eval $ac_compile) 2>&5
24443 ac_status=$?
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } &&
24446 { ac_try='test -s conftest.$ac_objext'
24447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448 (eval $ac_try) 2>&5
24449 ac_status=$?
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); }; }; then
24452 ac_header_compiler=yes
24453else
24454 echo "$as_me: failed program was:" >&5
24455sed 's/^/| /' conftest.$ac_ext >&5
24456
24457ac_header_compiler=no
24458fi
24459rm -f conftest.$ac_objext conftest.$ac_ext
24460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24461echo "${ECHO_T}$ac_header_compiler" >&6
24462
24463# Is the header present?
24464echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24465echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24466cat >conftest.$ac_ext <<_ACEOF
24467#line $LINENO "configure"
24468/* confdefs.h. */
24469_ACEOF
24470cat confdefs.h >>conftest.$ac_ext
24471cat >>conftest.$ac_ext <<_ACEOF
24472/* end confdefs.h. */
24473#include <GL/gl.h>
24474_ACEOF
24475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24477 ac_status=$?
24478 grep -v '^ *+' conftest.er1 >conftest.err
24479 rm -f conftest.er1
24480 cat conftest.err >&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); } >/dev/null; then
24483 if test -s conftest.err; then
24484 ac_cpp_err=$ac_c_preproc_warn_flag
24485 else
24486 ac_cpp_err=
24487 fi
24488else
24489 ac_cpp_err=yes
24490fi
24491if test -z "$ac_cpp_err"; then
24492 ac_header_preproc=yes
24493else
24494 echo "$as_me: failed program was:" >&5
24495sed 's/^/| /' conftest.$ac_ext >&5
24496
24497 ac_header_preproc=no
24498fi
24499rm -f conftest.err conftest.$ac_ext
24500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24501echo "${ECHO_T}$ac_header_preproc" >&6
24502
24503# So? What about this header?
24504case $ac_header_compiler:$ac_header_preproc in
24505 yes:no )
24506 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24507echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24508 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24509echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24510 (
24511 cat <<\_ASBOX
24512## ------------------------------------ ##
24513## Report this to bug-autoconf@gnu.org. ##
24514## ------------------------------------ ##
24515_ASBOX
24516 ) |
24517 sed "s/^/$as_me: WARNING: /" >&2
24518 ;;
24519 no:yes )
24520 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24521echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24522 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24523echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24524 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24525echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24526 (
24527 cat <<\_ASBOX
24528## ------------------------------------ ##
24529## Report this to bug-autoconf@gnu.org. ##
24530## ------------------------------------ ##
24531_ASBOX
24532 ) |
24533 sed "s/^/$as_me: WARNING: /" >&2
24534 ;;
24535esac
24536echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24537echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24538if test "${ac_cv_header_GL_gl_h+set}" = set; then
24539 echo $ECHO_N "(cached) $ECHO_C" >&6
24540else
24541 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24542fi
e6cc62c6
VS
24543echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24544echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24545
698dcdb6 24546fi
e6cc62c6
VS
24547if test $ac_cv_header_GL_gl_h = yes; then
24548
89e3b3e4
VZ
24549 found_gl=0
24550
e6cc62c6
VS
24551 echo "$as_me:$LINENO: checking for -lGL" >&5
24552echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24553
21d1c967 24554ac_find_libraries=
2b5f62a0 24555for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24556 do
24557 for ac_extension in a so sl dylib; do
24558 if test -f "$ac_dir/libGL.$ac_extension"; then
24559 ac_find_libraries=$ac_dir
24560 break 2
24561 fi
24562 done
24563 done
24564
24565 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24566
21d1c967
GD
24567 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24568 result=$?
24569 if test $result = 0; then
24570 ac_path_to_link=""
24571 else
24572 ac_path_to_link=" -L$ac_find_libraries"
24573 fi
24574
89e3b3e4
VZ
24575 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24576 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24577 fi
89e3b3e4 24578
e6cc62c6 24579
89e3b3e4
VZ
24580ac_find_libraries=
24581for ac_dir in $SEARCH_LIB /usr/lib;
24582 do
24583 for ac_extension in a so sl dylib; do
24584 if test -f "$ac_dir/libGLU.$ac_extension"; then
24585 ac_find_libraries=$ac_dir
24586 break 2
24587 fi
24588 done
24589 done
24590
24591 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24592
89e3b3e4
VZ
24593 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24594 result=$?
24595 if test $result = 0; then
24596 ac_path_to_link=""
24597 else
24598 ac_path_to_link=" -L$ac_find_libraries"
24599 fi
24600
24601 if test "$ac_path_to_link" != " -L/usr/lib" -a \
24602 "$ac_path_to_link" != "$LDFLAGS_GL"; then
24603 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24604 fi
24605
24606 found_gl=1
24607 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
24608 echo "$as_me:$LINENO: result: yes" >&5
24609echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
24610 fi
24611 fi
24612
24613 if "$found_gl" != 1; then
e6cc62c6
VS
24614 echo "$as_me:$LINENO: result: no" >&5
24615echo "${ECHO_T}no" >&6
24616 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24617echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24618
21d1c967 24619ac_find_libraries=
2b5f62a0 24620for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24621 do
24622 for ac_extension in a so sl dylib; do
24623 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24624 ac_find_libraries=$ac_dir
24625 break 2
24626 fi
24627 done
24628 done
24629
24630 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24631
21d1c967
GD
24632 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24633 result=$?
24634 if test $result = 0; then
24635 ac_path_to_link=""
24636 else
24637 ac_path_to_link=" -L$ac_find_libraries"
24638 fi
24639
24640 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24641 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
24642 echo "$as_me:$LINENO: result: yes" >&5
24643echo "${ECHO_T}yes" >&6
21d1c967 24644 else
e6cc62c6
VS
24645 echo "$as_me:$LINENO: result: no" >&5
24646echo "${ECHO_T}no" >&6
21d1c967
GD
24647 fi
24648 fi
e6cc62c6 24649
5c6fa7d2 24650fi
52127426 24651
8284b0c5 24652
e6cc62c6 24653
21d1c967 24654 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
24655 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24656echo "$as_me: error: OpenGL libraries not available" >&2;}
24657 { (exit 1); exit 1; }; }
21d1c967
GD
24658 fi
24659 fi
90dd450c 24660
21d1c967 24661 if test "$wxUSE_OPENGL" = "yes"; then
e6cc62c6 24662 cat >>confdefs.h <<\_ACEOF
21d1c967 24663#define wxUSE_OPENGL 1
e6cc62c6 24664_ACEOF
21d1c967 24665
e6cc62c6 24666 cat >>confdefs.h <<\_ACEOF
21d1c967 24667#define wxUSE_GLCANVAS 1
e6cc62c6 24668_ACEOF
21d1c967
GD
24669
24670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
24671 fi
10f2d63a 24672fi
21d1c967
GD
24673
24674if test -z "$TOOLKIT_VPATH" ; then
24675 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 24676fi
21d1c967
GD
24677
24678if test -n "$TOOLKIT" ; then
24679 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24680fi
24681
fe0895cf 24682UNICODE=0
21d1c967
GD
24683lib_unicode_suffix=
24684if test "$wxUSE_UNICODE" = "yes"; then
24685 lib_unicode_suffix=u
fe0895cf 24686 UNICODE=1
90dd450c 24687fi
698dcdb6 24688
21d1c967 24689lib_debug_suffix=
fe0895cf 24690BUILD=release
21d1c967
GD
24691if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24692 lib_debug_suffix=d
fe0895cf 24693 BUILD=debug
21d1c967 24694fi
698dcdb6 24695
2b5f62a0
VZ
24696WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
24697
24698TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24699TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
24700
24701if test "$cross_compiling" = "yes"; then
24702 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24703 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
24704fi
24705
24706WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24707WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 24708WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
24709
24710WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24711WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24712
24713WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24714WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24715WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24716WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24717
24718case "${host}" in
24719 *-*-cygwin* | *-*-mingw32* )
24720
e6cc62c6
VS
24721
24722
17234b26 24723 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
24724 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24725 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24726 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
24727 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
24728 else
24729 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24730 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24731 fi
24732 ;;
24733
24734 *-*-darwin* )
e6cc62c6 24735
05159a27
GD
24736 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24737 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24738
24739 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
24740 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24741 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
24742 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24743
21d1c967 24744 if test "$wxUSE_MAC" = 1; then
f346733b
GD
24745 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
24746 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
24747 fi
24748 ;;
24749esac
24750
24751WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
24752WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
24753
24754WXCONFIG_LIBS="-l${WX_LIBRARY}"
24755WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
24756
24757if test "$wxUSE_OPENGL" = "yes"; then
24758 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
24759 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
24760fi
24761
8284b0c5
MB
24762
24763
21d1c967
GD
24764if test "$wxUSE_SHARED" = "yes"; then
24765 case "${host}" in
24766 *-pc-os2_emx | *-pc-os2-emx | \
24767 *-pc-msdosdjgpp )
24768 wxUSE_SHARED=no
e6cc62c6
VS
24769 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
24770echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
24771 ;;
24772 esac
24773fi
24774
fe0895cf 24775SHARED=0
2b5f62a0 24776if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 24777 SHARED=1
2b5f62a0 24778
e6cc62c6 24779
2b5f62a0
VZ
24780 found_versioning=no
24781
e6cc62c6 24782
2b5f62a0 24783 if test $found_versioning = no ; then
e6cc62c6
VS
24784 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
24785echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
24786if test "${wx_cv_version_script+set}" = set; then
24787 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24788else
e6cc62c6 24789
2b5f62a0
VZ
24790 echo "VER_1 { *; };" >conftest.sym
24791 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 24792
2b5f62a0
VZ
24793 if { ac_try='
24794 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
24795 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
24796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; } ; then
2b5f62a0
VZ
24801 if test -s conftest.stderr ; then
24802 wx_cv_version_script=no
24803 else
24804 wx_cv_version_script=yes
24805 fi
24806 else
24807 wx_cv_version_script=no
24808 fi
24809 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 24810
e6cc62c6
VS
24811fi
24812echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
24813echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 24814 if test $wx_cv_version_script = yes ; then
e6cc62c6 24815 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
24816 fi
24817 fi
21d1c967 24818
21d1c967 24819
21d1c967 24820 case "${host}" in
fe0895cf 24821 *-*-linux* | *-*-gnu* )
e6cc62c6 24822 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
21d1c967
GD
24823 ;;
24824
24825 *-*-solaris2* )
24826 if test "$GCC" = yes ; then
24827 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
24828
24829 saveLdflags="$LDFLAGS"
24830 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
24831 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
24832echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
24833 cat >conftest.$ac_ext <<_ACEOF
24834#line $LINENO "configure"
24835/* confdefs.h. */
24836_ACEOF
24837cat confdefs.h >>conftest.$ac_ext
24838cat >>conftest.$ac_ext <<_ACEOF
24839/* end confdefs.h. */
24840
24841int
24842main ()
24843{
fe0895cf 24844
e6cc62c6
VS
24845 ;
24846 return 0;
24847}
24848_ACEOF
24849rm -f conftest.$ac_objext conftest$ac_exeext
24850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24851 (eval $ac_link) 2>&5
24852 ac_status=$?
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
24855 { ac_try='test -s conftest$ac_exeext'
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24858 ac_status=$?
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; }; then
24861
24862 echo "$as_me:$LINENO: result: yes" >&5
24863echo "${ECHO_T}yes" >&6
24864 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24865
24866else
24867 echo "$as_me: failed program was:" >&5
24868sed 's/^/| /' conftest.$ac_ext >&5
24869
24870
24871 echo "$as_me:$LINENO: result: no" >&5
24872echo "${ECHO_T}no" >&6
24873 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
24874echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 24875 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
24876 cat >conftest.$ac_ext <<_ACEOF
24877#line $LINENO "configure"
24878/* confdefs.h. */
24879_ACEOF
24880cat confdefs.h >>conftest.$ac_ext
24881cat >>conftest.$ac_ext <<_ACEOF
24882/* end confdefs.h. */
24883
24884int
24885main ()
24886{
24887
24888 ;
24889 return 0;
24890}
24891_ACEOF
24892rm -f conftest.$ac_objext conftest$ac_exeext
24893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24894 (eval $ac_link) 2>&5
24895 ac_status=$?
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } &&
24898 { ac_try='test -s conftest$ac_exeext'
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; }; then
24904
24905 echo "$as_me:$LINENO: result: yes" >&5
24906echo "${ECHO_T}yes" >&6
24907 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
24908else
24909 echo "$as_me: failed program was:" >&5
24910sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 24911
fe0895cf 24912
e6cc62c6
VS
24913 echo "$as_me:$LINENO: result: no" >&5
24914echo "${ECHO_T}no" >&6
24915
fe0895cf 24916fi
e6cc62c6
VS
24917rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24918
24919fi
24920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 24921 LDFLAGS="$saveLdflags"
21d1c967
GD
24922 else
24923 SHARED_LD="${CXX} -G -o"
24924 PIC_FLAG="-KPIC"
e6cc62c6 24925 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
24926 fi
24927 ;;
24928
21d1c967 24929 *-*-cygwin* | *-*-mingw32* )
f657dbe7
MB
24930 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
24931 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
24932
24933 if test "$wxUSE_OPENGL" = "yes"; then
24934 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
24935 fi
24936 ;;
21d1c967
GD
24937 esac
24938
24939 if test "x$WX_TARGET_LIBRARY" = "x"; then
24940 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
24941 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
24942 fi
24943
24944 WX_TARGET_LIBRARY_TYPE="so"
24945 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 24946fi
10f2d63a 24947
21d1c967
GD
24948if test "$wxUSE_SHARED" = "no"; then
24949
24950 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
24951 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
24952 fi
24953
ac0c4cc3 24954 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
24955 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
24956 fi
24957
24958 if test "$wxUSE_OPENGL" = "yes"; then
24959 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
24960 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
24961 else
24962 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
24963 fi
24964
24965 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
24966 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
24967
24968 WX_TARGET_LIBRARY_TYPE="a"
24969 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
24970
24971 STATIC_FLAG="yes"
24972else
24973 STATIC_FLAG="no"
90dd450c 24974fi
1e487827 24975
93fac604
VZ
24976MACRESCOMP="@#"
24977MACSETFILE="@#"
36825681 24978MACRESWXCONFIG="#"
21d1c967 24979if test "$wxUSE_MAC" = 1; then
e6cc62c6 24980 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
24981 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
24982 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
24983 # Extract the first word of "Rez", so it can be a program name with args.
24984set dummy Rez; ac_word=$2
e6cc62c6
VS
24985echo "$as_me:$LINENO: checking for $ac_word" >&5
24986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24987if test "${ac_cv_prog_RESCOMP+set}" = set; then
24988 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 24989else
21d1c967
GD
24990 if test -n "$RESCOMP"; then
24991 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 24992else
e6cc62c6
VS
24993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24994for as_dir in $PATH
24995do
24996 IFS=$as_save_IFS
24997 test -z "$as_dir" && as_dir=.
24998 for ac_exec_ext in '' $ac_executable_extensions; do
24999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25000 ac_cv_prog_RESCOMP="Rez"
25001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25002 break 2
25003 fi
25004done
25005done
25006
21d1c967 25007 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25008fi
b93d0d08 25009fi
e6cc62c6 25010RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25011if test -n "$RESCOMP"; then
e6cc62c6
VS
25012 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25013echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25014else
e6cc62c6
VS
25015 echo "$as_me:$LINENO: result: no" >&5
25016echo "${ECHO_T}no" >&6
90dd450c 25017fi
b93d0d08 25018
21d1c967
GD
25019 # Extract the first word of "DeRez", so it can be a program name with args.
25020set dummy DeRez; ac_word=$2
e6cc62c6
VS
25021echo "$as_me:$LINENO: checking for $ac_word" >&5
25022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25023if test "${ac_cv_prog_DEREZ+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25025else
21d1c967
GD
25026 if test -n "$DEREZ"; then
25027 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25028else
e6cc62c6
VS
25029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25030for as_dir in $PATH
25031do
25032 IFS=$as_save_IFS
25033 test -z "$as_dir" && as_dir=.
25034 for ac_exec_ext in '' $ac_executable_extensions; do
25035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25036 ac_cv_prog_DEREZ="DeRez"
25037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25038 break 2
25039 fi
25040done
25041done
25042
21d1c967 25043 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25044fi
90dd450c 25045fi
e6cc62c6 25046DEREZ=$ac_cv_prog_DEREZ
21d1c967 25047if test -n "$DEREZ"; then
e6cc62c6
VS
25048 echo "$as_me:$LINENO: result: $DEREZ" >&5
25049echo "${ECHO_T}$DEREZ" >&6
90dd450c 25050else
e6cc62c6
VS
25051 echo "$as_me:$LINENO: result: no" >&5
25052echo "${ECHO_T}no" >&6
3a922bb4 25053fi
698dcdb6 25054
36825681
GD
25055 # Extract the first word of "SetFile", so it can be a program name with args.
25056set dummy SetFile; ac_word=$2
e6cc62c6
VS
25057echo "$as_me:$LINENO: checking for $ac_word" >&5
25058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25059if test "${ac_cv_prog_SETFILE+set}" = set; then
25060 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25061else
25062 if test -n "$SETFILE"; then
25063 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25064else
e6cc62c6
VS
25065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25066for as_dir in $PATH
25067do
25068 IFS=$as_save_IFS
25069 test -z "$as_dir" && as_dir=.
25070 for ac_exec_ext in '' $ac_executable_extensions; do
25071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25072 ac_cv_prog_SETFILE="SetFile"
25073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25074 break 2
25075 fi
25076done
25077done
25078
36825681
GD
25079 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25080fi
25081fi
e6cc62c6 25082SETFILE=$ac_cv_prog_SETFILE
36825681 25083if test -n "$SETFILE"; then
e6cc62c6
VS
25084 echo "$as_me:$LINENO: result: $SETFILE" >&5
25085echo "${ECHO_T}$SETFILE" >&6
36825681 25086else
e6cc62c6
VS
25087 echo "$as_me:$LINENO: result: no" >&5
25088echo "${ECHO_T}no" >&6
36825681
GD
25089fi
25090
21d1c967 25091 MACOSX_BUNDLE="bundle"
36825681
GD
25092 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25093 MACSETFILE="\$(SETFILE)"
9711d31e 25094 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25095elif test "$wxUSE_COCOA" = 1; then
25096 # Extract the first word of "Rez", so it can be a program name with args.
25097set dummy Rez; ac_word=$2
e6cc62c6
VS
25098echo "$as_me:$LINENO: checking for $ac_word" >&5
25099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25100if test "${ac_cv_prog_RESCOMP+set}" = set; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25102else
25103 if test -n "$RESCOMP"; then
25104 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25105else
e6cc62c6
VS
25106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25107for as_dir in $PATH
25108do
25109 IFS=$as_save_IFS
25110 test -z "$as_dir" && as_dir=.
25111 for ac_exec_ext in '' $ac_executable_extensions; do
25112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25113 ac_cv_prog_RESCOMP="Rez"
25114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25115 break 2
25116 fi
25117done
25118done
25119
64440d77
DE
25120 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25121fi
25122fi
e6cc62c6 25123RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25124if test -n "$RESCOMP"; then
e6cc62c6
VS
25125 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25126echo "${ECHO_T}$RESCOMP" >&6
64440d77 25127else
e6cc62c6
VS
25128 echo "$as_me:$LINENO: result: no" >&5
25129echo "${ECHO_T}no" >&6
64440d77
DE
25130fi
25131
25132 # Extract the first word of "DeRez", so it can be a program name with args.
25133set dummy DeRez; ac_word=$2
e6cc62c6
VS
25134echo "$as_me:$LINENO: checking for $ac_word" >&5
25135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25136if test "${ac_cv_prog_DEREZ+set}" = set; then
25137 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25138else
25139 if test -n "$DEREZ"; then
25140 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25141else
e6cc62c6
VS
25142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25143for as_dir in $PATH
25144do
25145 IFS=$as_save_IFS
25146 test -z "$as_dir" && as_dir=.
25147 for ac_exec_ext in '' $ac_executable_extensions; do
25148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25149 ac_cv_prog_DEREZ="DeRez"
25150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25151 break 2
25152 fi
25153done
25154done
25155
64440d77
DE
25156 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25157fi
25158fi
e6cc62c6 25159DEREZ=$ac_cv_prog_DEREZ
64440d77 25160if test -n "$DEREZ"; then
e6cc62c6
VS
25161 echo "$as_me:$LINENO: result: $DEREZ" >&5
25162echo "${ECHO_T}$DEREZ" >&6
64440d77 25163else
e6cc62c6
VS
25164 echo "$as_me:$LINENO: result: no" >&5
25165echo "${ECHO_T}no" >&6
64440d77
DE
25166fi
25167
25168 # Extract the first word of "SetFile", so it can be a program name with args.
25169set dummy SetFile; ac_word=$2
e6cc62c6
VS
25170echo "$as_me:$LINENO: checking for $ac_word" >&5
25171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25172if test "${ac_cv_prog_SETFILE+set}" = set; then
25173 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25174else
25175 if test -n "$SETFILE"; then
25176 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25177else
e6cc62c6
VS
25178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25179for as_dir in $PATH
25180do
25181 IFS=$as_save_IFS
25182 test -z "$as_dir" && as_dir=.
25183 for ac_exec_ext in '' $ac_executable_extensions; do
25184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25185 ac_cv_prog_SETFILE="SetFile"
25186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25187 break 2
25188 fi
25189done
25190done
25191
64440d77
DE
25192 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25193fi
25194fi
e6cc62c6 25195SETFILE=$ac_cv_prog_SETFILE
64440d77 25196if test -n "$SETFILE"; then
e6cc62c6
VS
25197 echo "$as_me:$LINENO: result: $SETFILE" >&5
25198echo "${ECHO_T}$SETFILE" >&6
64440d77 25199else
e6cc62c6
VS
25200 echo "$as_me:$LINENO: result: no" >&5
25201echo "${ECHO_T}no" >&6
64440d77
DE
25202fi
25203
25204 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25205 MACSETFILE="\$(SETFILE)"
9711d31e 25206 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25207else
25208 if test "$wxUSE_PM" = 1; then
36825681 25209 MACRESCOMP="emxbind -ep"
90dd450c 25210 fi
4f14bcd8 25211fi
10f2d63a 25212
8284b0c5 25213
e6cc62c6
VS
25214echo "$as_me:$LINENO: checking for mode_t" >&5
25215echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25216if test "${ac_cv_type_mode_t+set}" = set; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25218else
e6cc62c6
VS
25219 cat >conftest.$ac_ext <<_ACEOF
25220#line $LINENO "configure"
25221/* confdefs.h. */
25222_ACEOF
25223cat confdefs.h >>conftest.$ac_ext
25224cat >>conftest.$ac_ext <<_ACEOF
25225/* end confdefs.h. */
25226$ac_includes_default
25227int
25228main ()
25229{
25230if ((mode_t *) 0)
25231 return 0;
25232if (sizeof (mode_t))
25233 return 0;
25234 ;
25235 return 0;
25236}
25237_ACEOF
25238rm -f conftest.$ac_objext
25239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25240 (eval $ac_compile) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); } &&
25244 { ac_try='test -s conftest.$ac_objext'
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25247 ac_status=$?
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; }; then
25250 ac_cv_type_mode_t=yes
a0b9e27f 25251else
e6cc62c6
VS
25252 echo "$as_me: failed program was:" >&5
25253sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25254
e6cc62c6 25255ac_cv_type_mode_t=no
a0b9e27f 25256fi
e6cc62c6 25257rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25258fi
e6cc62c6
VS
25259echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25260echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25261if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25262 :
25263else
a0b9e27f 25264
e6cc62c6
VS
25265cat >>confdefs.h <<_ACEOF
25266#define mode_t int
25267_ACEOF
8284b0c5
MB
25268
25269fi
25270
e6cc62c6
VS
25271echo "$as_me:$LINENO: checking for off_t" >&5
25272echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25273if test "${ac_cv_type_off_t+set}" = set; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25275else
e6cc62c6
VS
25276 cat >conftest.$ac_ext <<_ACEOF
25277#line $LINENO "configure"
25278/* confdefs.h. */
25279_ACEOF
25280cat confdefs.h >>conftest.$ac_ext
25281cat >>conftest.$ac_ext <<_ACEOF
25282/* end confdefs.h. */
25283$ac_includes_default
25284int
25285main ()
25286{
25287if ((off_t *) 0)
25288 return 0;
25289if (sizeof (off_t))
25290 return 0;
25291 ;
25292 return 0;
25293}
25294_ACEOF
25295rm -f conftest.$ac_objext
25296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25297 (eval $ac_compile) 2>&5
25298 ac_status=$?
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); } &&
25301 { ac_try='test -s conftest.$ac_objext'
25302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303 (eval $ac_try) 2>&5
25304 ac_status=$?
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); }; }; then
25307 ac_cv_type_off_t=yes
5c6fa7d2 25308else
e6cc62c6
VS
25309 echo "$as_me: failed program was:" >&5
25310sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25311
e6cc62c6 25312ac_cv_type_off_t=no
8284b0c5 25313fi
e6cc62c6 25314rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25315fi
e6cc62c6
VS
25316echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25317echo "${ECHO_T}$ac_cv_type_off_t" >&6
25318if test $ac_cv_type_off_t = yes; then
25319 :
247f5006
VZ
25320else
25321
e6cc62c6 25322cat >>confdefs.h <<_ACEOF
90dd450c 25323#define off_t long
e6cc62c6 25324_ACEOF
10f2d63a 25325
90dd450c 25326fi
10f2d63a 25327
e6cc62c6
VS
25328echo "$as_me:$LINENO: checking for pid_t" >&5
25329echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25330if test "${ac_cv_type_pid_t+set}" = set; then
25331 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25332else
e6cc62c6
VS
25333 cat >conftest.$ac_ext <<_ACEOF
25334#line $LINENO "configure"
25335/* confdefs.h. */
25336_ACEOF
25337cat confdefs.h >>conftest.$ac_ext
25338cat >>conftest.$ac_ext <<_ACEOF
25339/* end confdefs.h. */
25340$ac_includes_default
25341int
25342main ()
25343{
25344if ((pid_t *) 0)
25345 return 0;
25346if (sizeof (pid_t))
25347 return 0;
25348 ;
25349 return 0;
25350}
25351_ACEOF
25352rm -f conftest.$ac_objext
25353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25354 (eval $ac_compile) 2>&5
25355 ac_status=$?
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } &&
25358 { ac_try='test -s conftest.$ac_objext'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25361 ac_status=$?
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; }; then
90dd450c 25364 ac_cv_type_pid_t=yes
698dcdb6 25365else
e6cc62c6
VS
25366 echo "$as_me: failed program was:" >&5
25367sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25368
e6cc62c6
VS
25369ac_cv_type_pid_t=no
25370fi
25371rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25372fi
e6cc62c6
VS
25373echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25374echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25375if test $ac_cv_type_pid_t = yes; then
25376 :
25377else
25378
25379cat >>confdefs.h <<_ACEOF
90dd450c 25380#define pid_t int
e6cc62c6 25381_ACEOF
10f2d63a 25382
7b4a847f
RR
25383fi
25384
e6cc62c6
VS
25385echo "$as_me:$LINENO: checking for size_t" >&5
25386echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25387if test "${ac_cv_type_size_t+set}" = set; then
25388 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25389else
e6cc62c6
VS
25390 cat >conftest.$ac_ext <<_ACEOF
25391#line $LINENO "configure"
25392/* confdefs.h. */
25393_ACEOF
25394cat confdefs.h >>conftest.$ac_ext
25395cat >>conftest.$ac_ext <<_ACEOF
25396/* end confdefs.h. */
25397$ac_includes_default
25398int
25399main ()
25400{
25401if ((size_t *) 0)
25402 return 0;
25403if (sizeof (size_t))
25404 return 0;
25405 ;
25406 return 0;
25407}
25408_ACEOF
25409rm -f conftest.$ac_objext
25410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25411 (eval $ac_compile) 2>&5
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } &&
25415 { ac_try='test -s conftest.$ac_objext'
25416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25417 (eval $ac_try) 2>&5
25418 ac_status=$?
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); }; }; then
90dd450c 25421 ac_cv_type_size_t=yes
18dbb1f6 25422else
e6cc62c6
VS
25423 echo "$as_me: failed program was:" >&5
25424sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25425
e6cc62c6 25426ac_cv_type_size_t=no
a0b9e27f 25427fi
e6cc62c6
VS
25428rm -f conftest.$ac_objext conftest.$ac_ext
25429fi
25430echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25431echo "${ECHO_T}$ac_cv_type_size_t" >&6
25432if test $ac_cv_type_size_t = yes; then
25433 :
25434else
25435
25436cat >>confdefs.h <<_ACEOF
90dd450c 25437#define size_t unsigned
e6cc62c6 25438_ACEOF
90dd450c
VZ
25439
25440fi
25441
e6cc62c6
VS
25442echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25443echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25444if test "${ac_cv_type_uid_t+set}" = set; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25446else
e6cc62c6
VS
25447 cat >conftest.$ac_ext <<_ACEOF
25448#line $LINENO "configure"
25449/* confdefs.h. */
25450_ACEOF
25451cat confdefs.h >>conftest.$ac_ext
25452cat >>conftest.$ac_ext <<_ACEOF
25453/* end confdefs.h. */
90dd450c 25454#include <sys/types.h>
e6cc62c6
VS
25455
25456_ACEOF
90dd450c 25457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25458 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25459 ac_cv_type_uid_t=yes
b3e8d00a 25460else
90dd450c 25461 ac_cv_type_uid_t=no
b3e8d00a 25462fi
90dd450c 25463rm -f conftest*
b3e8d00a 25464
4f14bcd8 25465fi
e6cc62c6
VS
25466echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25467echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25468if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25469
25470cat >>confdefs.h <<\_ACEOF
90dd450c 25471#define uid_t int
e6cc62c6 25472_ACEOF
247f5006 25473
e6cc62c6
VS
25474
25475cat >>confdefs.h <<\_ACEOF
90dd450c 25476#define gid_t int
e6cc62c6 25477_ACEOF
4f14bcd8 25478
b3e8d00a 25479fi
b3e8d00a 25480
8284b0c5
MB
25481
25482
e6cc62c6
VS
25483
25484ac_ext=cc
4f14bcd8 25485ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25489
25490echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25491echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25492if test "${wx_cv_size_t_is_uint+set}" = set; then
25493 echo $ECHO_N "(cached) $ECHO_C" >&6
25494else
25495
25496 cat >conftest.$ac_ext <<_ACEOF
25497#line $LINENO "configure"
25498/* confdefs.h. */
25499_ACEOF
25500cat confdefs.h >>conftest.$ac_ext
25501cat >>conftest.$ac_ext <<_ACEOF
25502/* end confdefs.h. */
90dd450c 25503#include <stddef.h>
e6cc62c6
VS
25504int
25505main ()
25506{
90dd450c
VZ
25507
25508 return 0; }
25509
25510 struct Foo { void foo(size_t); void foo(unsigned int); };
25511
25512 int bar() {
e6cc62c6
VS
25513
25514 ;
25515 return 0;
25516}
25517_ACEOF
25518rm -f conftest.$ac_objext
25519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25520 (eval $ac_compile) 2>&5
25521 ac_status=$?
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } &&
25524 { ac_try='test -s conftest.$ac_objext'
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; }; then
90dd450c 25530 wx_cv_size_t_is_uint=no
698dcdb6 25531else
e6cc62c6
VS
25532 echo "$as_me: failed program was:" >&5
25533sed 's/^/| /' conftest.$ac_ext >&5
25534
25535wx_cv_size_t_is_uint=yes
8284b0c5 25536
247f5006 25537fi
e6cc62c6
VS
25538rm -f conftest.$ac_objext conftest.$ac_ext
25539
a0b9e27f 25540
e6cc62c6
VS
25541fi
25542echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25543echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25544
90dd450c 25545if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25546 cat >>confdefs.h <<\_ACEOF
90dd450c 25547#define wxSIZE_T_IS_UINT 1
e6cc62c6 25548_ACEOF
698dcdb6 25549
90dd450c 25550else
e6cc62c6
VS
25551 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25552echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25553if test "${wx_cv_size_t_is_ulong+set}" = set; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25555else
e6cc62c6
VS
25556 cat >conftest.$ac_ext <<_ACEOF
25557#line $LINENO "configure"
25558/* confdefs.h. */
25559_ACEOF
25560cat confdefs.h >>conftest.$ac_ext
25561cat >>conftest.$ac_ext <<_ACEOF
25562/* end confdefs.h. */
90dd450c 25563#include <stddef.h>
e6cc62c6
VS
25564int
25565main ()
25566{
90dd450c
VZ
25567
25568 return 0; }
25569
25570 struct Foo { void foo(size_t); void foo(unsigned long); };
25571
25572 int bar() {
e6cc62c6
VS
25573
25574 ;
25575 return 0;
25576}
25577_ACEOF
25578rm -f conftest.$ac_objext
25579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25580 (eval $ac_compile) 2>&5
25581 ac_status=$?
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } &&
25584 { ac_try='test -s conftest.$ac_objext'
25585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; }; then
90dd450c 25590 wx_cv_size_t_is_ulong=no
698dcdb6 25591else
e6cc62c6
VS
25592 echo "$as_me: failed program was:" >&5
25593sed 's/^/| /' conftest.$ac_ext >&5
25594
25595wx_cv_size_t_is_ulong=yes
25596
247f5006 25597fi
e6cc62c6 25598rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25599
e6cc62c6
VS
25600fi
25601echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25602echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 25603
90dd450c 25604 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 25605 cat >>confdefs.h <<\_ACEOF
90dd450c 25606#define wxSIZE_T_IS_ULONG 1
e6cc62c6 25607_ACEOF
4f14bcd8
GD
25608
25609 fi
90dd450c 25610fi
1e487827 25611
90dd450c 25612ac_ext=c
4f14bcd8 25613ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
25614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25616ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 25617
5c6fa7d2 25618
8284b0c5 25619
e6cc62c6
VS
25620echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25621echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25622if test "${wx_cv_struct_pw_gecos+set}" = set; then
25623 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25624else
e6cc62c6
VS
25625
25626 cat >conftest.$ac_ext <<_ACEOF
25627#line $LINENO "configure"
25628/* confdefs.h. */
25629_ACEOF
25630cat confdefs.h >>conftest.$ac_ext
25631cat >>conftest.$ac_ext <<_ACEOF
25632/* end confdefs.h. */
90dd450c 25633#include <pwd.h>
e6cc62c6
VS
25634int
25635main ()
25636{
f6bcfd97 25637
90dd450c
VZ
25638 char *p;
25639 struct passwd *pw;
25640 p = pw->pw_gecos;
e6cc62c6
VS
25641
25642 ;
25643 return 0;
25644}
25645_ACEOF
25646rm -f conftest.$ac_objext
25647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25648 (eval $ac_compile) 2>&5
25649 ac_status=$?
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } &&
25652 { ac_try='test -s conftest.$ac_objext'
25653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25654 (eval $ac_try) 2>&5
25655 ac_status=$?
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); }; }; then
25658
90dd450c 25659 wx_cv_struct_pw_gecos=yes
e6cc62c6 25660
10f2d63a 25661else
e6cc62c6
VS
25662 echo "$as_me: failed program was:" >&5
25663sed 's/^/| /' conftest.$ac_ext >&5
25664
25665
90dd450c 25666 wx_cv_struct_pw_gecos=no
e6cc62c6 25667
247f5006
VZ
25668
25669fi
e6cc62c6 25670rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25671
e6cc62c6
VS
25672
25673fi
25674echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25675echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 25676
90dd450c 25677if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 25678 cat >>confdefs.h <<\_ACEOF
90dd450c 25679#define HAVE_PW_GECOS 1
e6cc62c6 25680_ACEOF
c521c494 25681
90dd450c 25682fi
4f14bcd8 25683
8284b0c5 25684
d29b553b 25685if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 25686 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25687#define wxUSE_WCHAR_T 1
e6cc62c6 25688_ACEOF
d74f4b5a 25689
8284b0c5 25690
d74f4b5a
VZ
25691 WCSLEN_FOUND=0
25692 WCHAR_LINK=
e6cc62c6
VS
25693
25694for ac_func in wcslen
7a30264c 25695do
e6cc62c6
VS
25696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25697echo "$as_me:$LINENO: checking for $ac_func" >&5
25698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25699if eval "test \"\${$as_ac_var+set}\" = set"; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25701else
25702 cat >conftest.$ac_ext <<_ACEOF
25703#line $LINENO "configure"
25704/* confdefs.h. */
25705_ACEOF
25706cat confdefs.h >>conftest.$ac_ext
25707cat >>conftest.$ac_ext <<_ACEOF
25708/* end confdefs.h. */
7a30264c 25709/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25710 which can conflict with char $ac_func (); below.
25711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25712 <limits.h> exists even on freestanding compilers. */
25713#ifdef __STDC__
25714# include <limits.h>
25715#else
25716# include <assert.h>
25717#endif
4f14bcd8 25718/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25719#ifdef __cplusplus
25720extern "C"
25721{
25722#endif
4f14bcd8 25723/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25724 builtin and then its argument prototype would still apply. */
25725char $ac_func ();
7a30264c
VZ
25726/* The GNU C library defines this for functions which it implements
25727 to always fail with ENOSYS. Some functions are actually named
25728 something starting with __ and the normal name is an alias. */
25729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25730choke me
25731#else
e6cc62c6
VS
25732char (*f) () = $ac_func;
25733#endif
25734#ifdef __cplusplus
25735}
7a30264c
VZ
25736#endif
25737
e6cc62c6
VS
25738int
25739main ()
25740{
25741return f != $ac_func;
25742 ;
25743 return 0;
25744}
25745_ACEOF
25746rm -f conftest.$ac_objext conftest$ac_exeext
25747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25748 (eval $ac_link) 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } &&
25752 { ac_try='test -s conftest$ac_exeext'
25753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); }; }; then
25758 eval "$as_ac_var=yes"
25759else
25760 echo "$as_me: failed program was:" >&5
25761sed 's/^/| /' conftest.$ac_ext >&5
25762
25763eval "$as_ac_var=no"
25764fi
25765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25766fi
25767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25768echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25769if test `eval echo '${'$as_ac_var'}'` = yes; then
25770 cat >>confdefs.h <<_ACEOF
25771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25772_ACEOF
d74f4b5a 25773 WCSLEN_FOUND=1
7a30264c
VZ
25774fi
25775done
9d8deca0 25776
8284b0c5 25777
d74f4b5a 25778 if test "$WCSLEN_FOUND" = 0; then
7a30264c 25779 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
25780 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
25781echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
25782if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
25783 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 25784else
e6cc62c6 25785 ac_check_lib_save_LIBS=$LIBS
7a30264c 25786LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
25787cat >conftest.$ac_ext <<_ACEOF
25788#line $LINENO "configure"
25789/* confdefs.h. */
25790_ACEOF
25791cat confdefs.h >>conftest.$ac_ext
25792cat >>conftest.$ac_ext <<_ACEOF
25793/* end confdefs.h. */
25794
4f14bcd8 25795/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25796#ifdef __cplusplus
25797extern "C"
25798#endif
4f14bcd8 25799/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25800 builtin and then its argument prototype would still apply. */
25801char wcslen ();
25802int
25803main ()
25804{
25805wcslen ();
25806 ;
25807 return 0;
25808}
25809_ACEOF
25810rm -f conftest.$ac_objext conftest$ac_exeext
25811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25812 (eval $ac_link) 2>&5
25813 ac_status=$?
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); } &&
25816 { ac_try='test -s conftest$ac_exeext'
25817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818 (eval $ac_try) 2>&5
25819 ac_status=$?
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); }; }; then
25822 ac_cv_lib_msvcrt_wcslen=yes
25823else
25824 echo "$as_me: failed program was:" >&5
25825sed 's/^/| /' conftest.$ac_ext >&5
25826
25827ac_cv_lib_msvcrt_wcslen=no
25828fi
25829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25830LIBS=$ac_check_lib_save_LIBS
25831fi
25832echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
25833echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
25834if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 25835 WCHAR_OK=1
d29b553b 25836fi
698dcdb6 25837
7a30264c 25838 else
e6cc62c6
VS
25839 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
25840echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
25841if test "${ac_cv_lib_w_wcslen+set}" = set; then
25842 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25843else
e6cc62c6 25844 ac_check_lib_save_LIBS=$LIBS
7a30264c 25845LIBS="-lw $LIBS"
e6cc62c6
VS
25846cat >conftest.$ac_ext <<_ACEOF
25847#line $LINENO "configure"
25848/* confdefs.h. */
25849_ACEOF
25850cat confdefs.h >>conftest.$ac_ext
25851cat >>conftest.$ac_ext <<_ACEOF
25852/* end confdefs.h. */
25853
4f14bcd8 25854/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25855#ifdef __cplusplus
25856extern "C"
25857#endif
4f14bcd8 25858/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25859 builtin and then its argument prototype would still apply. */
25860char wcslen ();
25861int
25862main ()
25863{
25864wcslen ();
25865 ;
25866 return 0;
25867}
25868_ACEOF
25869rm -f conftest.$ac_objext conftest$ac_exeext
25870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25871 (eval $ac_link) 2>&5
25872 ac_status=$?
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } &&
25875 { ac_try='test -s conftest$ac_exeext'
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25878 ac_status=$?
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; }; then
25881 ac_cv_lib_w_wcslen=yes
25882else
25883 echo "$as_me: failed program was:" >&5
25884sed 's/^/| /' conftest.$ac_ext >&5
25885
25886ac_cv_lib_w_wcslen=no
25887fi
25888rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25889LIBS=$ac_check_lib_save_LIBS
25890fi
25891echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
25892echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
25893if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 25894
7a30264c 25895 WCHAR_LINK=" -lw"
d74f4b5a 25896 WCSLEN_FOUND=1
e6cc62c6 25897
4f14bcd8 25898fi
10f2d63a 25899
7a30264c 25900 fi
d29b553b 25901 fi
95c8801c 25902
d74f4b5a 25903 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 25904 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25905#define HAVE_WCSLEN 1
e6cc62c6 25906_ACEOF
10f2d63a 25907
d74f4b5a 25908 fi
52127426 25909
e6cc62c6
VS
25910
25911for ac_func in wcsrtombs
eb4efbdc 25912do
e6cc62c6
VS
25913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25914echo "$as_me:$LINENO: checking for $ac_func" >&5
25915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25916if eval "test \"\${$as_ac_var+set}\" = set"; then
25917 echo $ECHO_N "(cached) $ECHO_C" >&6
25918else
25919 cat >conftest.$ac_ext <<_ACEOF
25920#line $LINENO "configure"
25921/* confdefs.h. */
25922_ACEOF
25923cat confdefs.h >>conftest.$ac_ext
25924cat >>conftest.$ac_ext <<_ACEOF
25925/* end confdefs.h. */
eb4efbdc 25926/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25927 which can conflict with char $ac_func (); below.
25928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25929 <limits.h> exists even on freestanding compilers. */
25930#ifdef __STDC__
25931# include <limits.h>
25932#else
25933# include <assert.h>
25934#endif
eb4efbdc 25935/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25936#ifdef __cplusplus
25937extern "C"
25938{
25939#endif
4f14bcd8 25940/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25941 builtin and then its argument prototype would still apply. */
25942char $ac_func ();
10f2d63a
VZ
25943/* The GNU C library defines this for functions which it implements
25944 to always fail with ENOSYS. Some functions are actually named
25945 something starting with __ and the normal name is an alias. */
247f5006 25946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
25947choke me
25948#else
e6cc62c6
VS
25949char (*f) () = $ac_func;
25950#endif
25951#ifdef __cplusplus
25952}
10f2d63a
VZ
25953#endif
25954
e6cc62c6
VS
25955int
25956main ()
25957{
25958return f != $ac_func;
25959 ;
25960 return 0;
25961}
25962_ACEOF
25963rm -f conftest.$ac_objext conftest$ac_exeext
25964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25965 (eval $ac_link) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); } &&
25969 { ac_try='test -s conftest$ac_exeext'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25972 ac_status=$?
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 eval "$as_ac_var=yes"
25976else
25977 echo "$as_me: failed program was:" >&5
25978sed 's/^/| /' conftest.$ac_ext >&5
25979
25980eval "$as_ac_var=no"
25981fi
25982rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25983fi
25984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25986if test `eval echo '${'$as_ac_var'}'` = yes; then
25987 cat >>confdefs.h <<_ACEOF
25988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25989_ACEOF
270a909e 25990
4f14bcd8 25991fi
247f5006 25992done
1e487827 25993
af15babd 25994else
e6cc62c6
VS
25995 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
25996echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 25997fi
52127426 25998
8284b0c5 25999
e6cc62c6
VS
26000
26001ac_ext=cc
247f5006 26002ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26006
af15babd 26007
247f5006
VZ
26008
26009for ac_func in vsnprintf
26010do
e6cc62c6
VS
26011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26012echo "$as_me:$LINENO: checking for $ac_func" >&5
26013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26014if eval "test \"\${$as_ac_var+set}\" = set"; then
26015 echo $ECHO_N "(cached) $ECHO_C" >&6
26016else
26017 cat >conftest.$ac_ext <<_ACEOF
26018#line $LINENO "configure"
26019/* confdefs.h. */
26020_ACEOF
26021cat confdefs.h >>conftest.$ac_ext
26022cat >>conftest.$ac_ext <<_ACEOF
26023/* end confdefs.h. */
247f5006 26024/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26025 which can conflict with char $ac_func (); below.
26026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26027 <limits.h> exists even on freestanding compilers. */
26028#ifdef __STDC__
26029# include <limits.h>
26030#else
26031# include <assert.h>
26032#endif
247f5006
VZ
26033/* Override any gcc2 internal prototype to avoid an error. */
26034#ifdef __cplusplus
26035extern "C"
e6cc62c6 26036{
247f5006
VZ
26037#endif
26038/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26039 builtin and then its argument prototype would still apply. */
26040char $ac_func ();
247f5006
VZ
26041/* The GNU C library defines this for functions which it implements
26042 to always fail with ENOSYS. Some functions are actually named
26043 something starting with __ and the normal name is an alias. */
26044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26045choke me
26046#else
e6cc62c6
VS
26047char (*f) () = $ac_func;
26048#endif
26049#ifdef __cplusplus
26050}
247f5006 26051#endif
af15babd 26052
e6cc62c6
VS
26053int
26054main ()
26055{
26056return f != $ac_func;
26057 ;
26058 return 0;
26059}
26060_ACEOF
26061rm -f conftest.$ac_objext conftest$ac_exeext
26062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26063 (eval $ac_link) 2>&5
26064 ac_status=$?
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } &&
26067 { ac_try='test -s conftest$ac_exeext'
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 eval "$as_ac_var=yes"
26074else
26075 echo "$as_me: failed program was:" >&5
26076sed 's/^/| /' conftest.$ac_ext >&5
26077
26078eval "$as_ac_var=no"
26079fi
26080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26081fi
26082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26084if test `eval echo '${'$as_ac_var'}'` = yes; then
26085 cat >>confdefs.h <<_ACEOF
26086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26087_ACEOF
52127426 26088
5c6fa7d2 26089fi
247f5006 26090done
8284b0c5 26091
4f14bcd8 26092
8d90d2f2 26093if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26094 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26095echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26096if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26097 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26098else
e6cc62c6
VS
26099
26100 cat >conftest.$ac_ext <<_ACEOF
26101#line $LINENO "configure"
26102/* confdefs.h. */
26103_ACEOF
26104cat confdefs.h >>conftest.$ac_ext
26105cat >>conftest.$ac_ext <<_ACEOF
26106/* end confdefs.h. */
8d90d2f2
VZ
26107
26108 #include <stdio.h>
26109 #include <stdarg.h>
e6cc62c6
VS
26110
26111int
26112main ()
26113{
8d90d2f2
VZ
26114
26115 char *buf;
26116 va_list ap;
26117 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26118
26119 ;
26120 return 0;
26121}
26122_ACEOF
26123rm -f conftest.$ac_objext
26124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26125 (eval $ac_compile) 2>&5
26126 ac_status=$?
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); } &&
26129 { ac_try='test -s conftest.$ac_objext'
26130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131 (eval $ac_try) 2>&5
26132 ac_status=$?
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; }; then
8d90d2f2
VZ
26135 wx_cv_func_vsnprintf_decl=yes
26136else
e6cc62c6
VS
26137 echo "$as_me: failed program was:" >&5
26138sed 's/^/| /' conftest.$ac_ext >&5
26139
26140wx_cv_func_vsnprintf_decl=no
26141
8d90d2f2 26142fi
e6cc62c6
VS
26143rm -f conftest.$ac_objext conftest.$ac_ext
26144
8d90d2f2 26145
e6cc62c6
VS
26146fi
26147echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26148echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26149
26150 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26151 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26152#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26153_ACEOF
8d90d2f2
VZ
26154
26155 fi
26156fi
26157
247f5006 26158if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26159
26160
26161
26162for ac_func in fputwc wprintf vswprintf
d74f4b5a 26163do
e6cc62c6
VS
26164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26165echo "$as_me:$LINENO: checking for $ac_func" >&5
26166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26167if eval "test \"\${$as_ac_var+set}\" = set"; then
26168 echo $ECHO_N "(cached) $ECHO_C" >&6
26169else
26170 cat >conftest.$ac_ext <<_ACEOF
26171#line $LINENO "configure"
26172/* confdefs.h. */
26173_ACEOF
26174cat confdefs.h >>conftest.$ac_ext
26175cat >>conftest.$ac_ext <<_ACEOF
26176/* end confdefs.h. */
d74f4b5a 26177/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26178 which can conflict with char $ac_func (); below.
26179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26180 <limits.h> exists even on freestanding compilers. */
26181#ifdef __STDC__
26182# include <limits.h>
26183#else
26184# include <assert.h>
26185#endif
d74f4b5a 26186/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26187#ifdef __cplusplus
26188extern "C"
e6cc62c6 26189{
247f5006 26190#endif
d74f4b5a 26191/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26192 builtin and then its argument prototype would still apply. */
26193char $ac_func ();
d74f4b5a
VZ
26194/* The GNU C library defines this for functions which it implements
26195 to always fail with ENOSYS. Some functions are actually named
26196 something starting with __ and the normal name is an alias. */
26197#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26198choke me
26199#else
e6cc62c6
VS
26200char (*f) () = $ac_func;
26201#endif
26202#ifdef __cplusplus
26203}
d74f4b5a
VZ
26204#endif
26205
e6cc62c6
VS
26206int
26207main ()
26208{
26209return f != $ac_func;
26210 ;
26211 return 0;
26212}
26213_ACEOF
26214rm -f conftest.$ac_objext conftest$ac_exeext
26215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26216 (eval $ac_link) 2>&5
26217 ac_status=$?
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); } &&
26220 { ac_try='test -s conftest$ac_exeext'
26221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222 (eval $ac_try) 2>&5
26223 ac_status=$?
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); }; }; then
26226 eval "$as_ac_var=yes"
26227else
26228 echo "$as_me: failed program was:" >&5
26229sed 's/^/| /' conftest.$ac_ext >&5
26230
26231eval "$as_ac_var=no"
26232fi
26233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26234fi
26235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26236echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26237if test `eval echo '${'$as_ac_var'}'` = yes; then
26238 cat >>confdefs.h <<_ACEOF
26239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26240_ACEOF
d74f4b5a 26241
d74f4b5a
VZ
26242fi
26243done
26244
8d90d2f2 26245
e6cc62c6
VS
26246 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26247echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26248 cat >conftest.$ac_ext <<_ACEOF
26249#line $LINENO "configure"
26250/* confdefs.h. */
26251_ACEOF
26252cat confdefs.h >>conftest.$ac_ext
26253cat >>conftest.$ac_ext <<_ACEOF
26254/* end confdefs.h. */
79668cae 26255#include <wchar.h>
e6cc62c6
VS
26256int
26257main ()
26258{
79668cae 26259&_vsnwprintf;
e6cc62c6
VS
26260 ;
26261 return 0;
26262}
26263_ACEOF
26264rm -f conftest.$ac_objext
26265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26266 (eval $ac_compile) 2>&5
26267 ac_status=$?
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } &&
26270 { ac_try='test -s conftest.$ac_objext'
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; }; then
26276 echo "$as_me:$LINENO: result: yes" >&5
26277echo "${ECHO_T}yes" >&6
26278 cat >>confdefs.h <<\_ACEOF
79668cae 26279#define HAVE__VSNWPRINTF 1
e6cc62c6 26280_ACEOF
79668cae
MB
26281
26282else
e6cc62c6
VS
26283 echo "$as_me: failed program was:" >&5
26284sed 's/^/| /' conftest.$ac_ext >&5
26285
26286echo "$as_me:$LINENO: result: no" >&5
26287echo "${ECHO_T}no" >&6
79668cae 26288fi
e6cc62c6 26289rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26290fi
26291
247f5006
VZ
26292ac_ext=c
26293ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26296ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26297
26298
26299
26300
4f14bcd8 26301if test "$TOOLKIT" != "MSW"; then
af15babd 26302
8284b0c5
MB
26303
26304
e6cc62c6
VS
26305
26306ac_ext=cc
4f14bcd8 26307ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26311
52127426 26312
e6cc62c6
VS
26313
26314
26315# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26316if test "${with_libiconv_prefix+set}" = set; then
26317 withval="$with_libiconv_prefix"
e6cc62c6 26318
b040e242
VS
26319 for dir in `echo "$withval" | tr : ' '`; do
26320 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26321 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26322 done
b040e242 26323
e6cc62c6 26324fi;
b040e242 26325
e6cc62c6
VS
26326 echo "$as_me:$LINENO: checking for iconv" >&5
26327echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26328if test "${am_cv_func_iconv+set}" = set; then
26329 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26330else
e6cc62c6 26331
b040e242
VS
26332 am_cv_func_iconv="no, consider installing GNU libiconv"
26333 am_cv_lib_iconv=no
e6cc62c6
VS
26334 cat >conftest.$ac_ext <<_ACEOF
26335#line $LINENO "configure"
26336/* confdefs.h. */
26337_ACEOF
26338cat confdefs.h >>conftest.$ac_ext
26339cat >>conftest.$ac_ext <<_ACEOF
26340/* end confdefs.h. */
b040e242 26341#include <stdlib.h>
4f14bcd8 26342#include <iconv.h>
e6cc62c6
VS
26343int
26344main ()
26345{
b040e242
VS
26346iconv_t cd = iconv_open("","");
26347 iconv(cd,NULL,NULL,NULL,NULL);
26348 iconv_close(cd);
e6cc62c6
VS
26349 ;
26350 return 0;
26351}
26352_ACEOF
26353rm -f conftest.$ac_objext conftest$ac_exeext
26354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26355 (eval $ac_link) 2>&5
26356 ac_status=$?
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } &&
26359 { ac_try='test -s conftest$ac_exeext'
26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361 (eval $ac_try) 2>&5
26362 ac_status=$?
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; }; then
b040e242 26365 am_cv_func_iconv=yes
af15babd 26366else
e6cc62c6
VS
26367 echo "$as_me: failed program was:" >&5
26368sed 's/^/| /' conftest.$ac_ext >&5
26369
b040e242 26370fi
e6cc62c6 26371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26372 if test "$am_cv_func_iconv" != yes; then
26373 am_save_LIBS="$LIBS"
26374 LIBS="$LIBS -liconv"
e6cc62c6
VS
26375 cat >conftest.$ac_ext <<_ACEOF
26376#line $LINENO "configure"
26377/* confdefs.h. */
26378_ACEOF
26379cat confdefs.h >>conftest.$ac_ext
26380cat >>conftest.$ac_ext <<_ACEOF
26381/* end confdefs.h. */
b040e242
VS
26382#include <stdlib.h>
26383#include <iconv.h>
e6cc62c6
VS
26384int
26385main ()
26386{
b040e242
VS
26387iconv_t cd = iconv_open("","");
26388 iconv(cd,NULL,NULL,NULL,NULL);
26389 iconv_close(cd);
e6cc62c6
VS
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
b040e242
VS
26406 am_cv_lib_iconv=yes
26407 am_cv_func_iconv=yes
26408else
e6cc62c6
VS
26409 echo "$as_me: failed program was:" >&5
26410sed 's/^/| /' conftest.$ac_ext >&5
26411
af15babd 26412fi
e6cc62c6 26413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26414 LIBS="$am_save_LIBS"
26415 fi
247f5006 26416
e6cc62c6
VS
26417fi
26418echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26419echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26420 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26421
26422cat >>confdefs.h <<\_ACEOF
b040e242 26423#define HAVE_ICONV 1
e6cc62c6 26424_ACEOF
b040e242 26425
e6cc62c6
VS
26426 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26427echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26428if test "${wx_cv_func_iconv_const+set}" = set; then
26429 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26430else
e6cc62c6
VS
26431 cat >conftest.$ac_ext <<_ACEOF
26432#line $LINENO "configure"
26433/* confdefs.h. */
26434_ACEOF
26435cat confdefs.h >>conftest.$ac_ext
26436cat >>conftest.$ac_ext <<_ACEOF
26437/* end confdefs.h. */
b040e242
VS
26438
26439#include <stdlib.h>
26440#include <iconv.h>
26441extern
26442#ifdef __cplusplus
26443"C"
26444#endif
26445#if defined(__STDC__) || defined(__cplusplus)
26446size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26447#else
26448size_t iconv();
26449#endif
af15babd 26450
e6cc62c6
VS
26451int
26452main ()
26453{
26454
26455 ;
26456 return 0;
26457}
26458_ACEOF
26459rm -f conftest.$ac_objext
26460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26461 (eval $ac_compile) 2>&5
26462 ac_status=$?
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); } &&
26465 { ac_try='test -s conftest.$ac_objext'
26466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26467 (eval $ac_try) 2>&5
26468 ac_status=$?
26469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470 (exit $ac_status); }; }; then
b7043674 26471 wx_cv_func_iconv_const="no"
b040e242 26472else
e6cc62c6
VS
26473 echo "$as_me: failed program was:" >&5
26474sed 's/^/| /' conftest.$ac_ext >&5
26475
26476wx_cv_func_iconv_const="yes"
26477
247f5006 26478fi
e6cc62c6 26479rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26480
e6cc62c6
VS
26481fi
26482echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26483echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26484
26485 iconv_const=
1c405bb5 26486 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26487 iconv_const="const"
26488 fi
26489
e6cc62c6
VS
26490
26491cat >>confdefs.h <<_ACEOF
f09359cf 26492#define ICONV_CONST $iconv_const
e6cc62c6 26493_ACEOF
b040e242
VS
26494
26495 fi
26496 LIBICONV=
26497 if test "$am_cv_lib_iconv" = yes; then
26498 LIBICONV="-liconv"
26499 fi
e6cc62c6 26500
b040e242
VS
26501
26502LIBS="$LIBICONV $LIBS"
4f14bcd8 26503ac_ext=c
4f14bcd8 26504ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26507ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26508
5c6fa7d2 26509
8284b0c5 26510if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26511
26512for ac_func in sigaction
af15babd 26513do
e6cc62c6
VS
26514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26515echo "$as_me:$LINENO: checking for $ac_func" >&5
26516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26517if eval "test \"\${$as_ac_var+set}\" = set"; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26519else
26520 cat >conftest.$ac_ext <<_ACEOF
26521#line $LINENO "configure"
26522/* confdefs.h. */
26523_ACEOF
26524cat confdefs.h >>conftest.$ac_ext
26525cat >>conftest.$ac_ext <<_ACEOF
26526/* end confdefs.h. */
af15babd 26527/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26528 which can conflict with char $ac_func (); below.
26529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26530 <limits.h> exists even on freestanding compilers. */
26531#ifdef __STDC__
26532# include <limits.h>
26533#else
26534# include <assert.h>
26535#endif
af15babd 26536/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26537#ifdef __cplusplus
26538extern "C"
26539{
26540#endif
af15babd 26541/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26542 builtin and then its argument prototype would still apply. */
26543char $ac_func ();
af15babd
VZ
26544/* The GNU C library defines this for functions which it implements
26545 to always fail with ENOSYS. Some functions are actually named
26546 something starting with __ and the normal name is an alias. */
26547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26548choke me
26549#else
e6cc62c6
VS
26550char (*f) () = $ac_func;
26551#endif
26552#ifdef __cplusplus
26553}
af15babd
VZ
26554#endif
26555
e6cc62c6
VS
26556int
26557main ()
26558{
26559return f != $ac_func;
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext conftest$ac_exeext
26565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26566 (eval $ac_link) 2>&5
26567 ac_status=$?
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); } &&
26570 { ac_try='test -s conftest$ac_exeext'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576 eval "$as_ac_var=yes"
26577else
26578 echo "$as_me: failed program was:" >&5
26579sed 's/^/| /' conftest.$ac_ext >&5
26580
26581eval "$as_ac_var=no"
26582fi
26583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26584fi
26585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26586echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26587if test `eval echo '${'$as_ac_var'}'` = yes; then
26588 cat >>confdefs.h <<_ACEOF
26589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26590_ACEOF
7b4a847f 26591
4f14bcd8
GD
26592fi
26593done
26594
8284b0c5 26595
4f14bcd8 26596 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
26597 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26598echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
26599 wxUSE_ON_FATAL_EXCEPTION=no
26600 fi
26601
26602 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
26603
26604
26605 ac_ext=cc
5c6fa7d2 26606ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 26610
5c6fa7d2 26611
e6cc62c6
VS
26612 echo "$as_me:$LINENO: checking for sa_handler type" >&5
26613echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26614if test "${wx_cv_type_sa_handler+set}" = set; then
26615 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26616else
e6cc62c6
VS
26617
26618 cat >conftest.$ac_ext <<_ACEOF
26619#line $LINENO "configure"
26620/* confdefs.h. */
26621_ACEOF
26622cat confdefs.h >>conftest.$ac_ext
26623cat >>conftest.$ac_ext <<_ACEOF
26624/* end confdefs.h. */
4f14bcd8 26625#include <signal.h>
e6cc62c6
VS
26626int
26627main ()
26628{
4f14bcd8
GD
26629
26630 extern void testSigHandler(int);
26631
26632 struct sigaction sa;
26633 sa.sa_handler = testSigHandler;
e6cc62c6
VS
26634
26635 ;
26636 return 0;
26637}
26638_ACEOF
26639rm -f conftest.$ac_objext
26640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26641 (eval $ac_compile) 2>&5
26642 ac_status=$?
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } &&
26645 { ac_try='test -s conftest.$ac_objext'
26646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; }; then
26651
4f14bcd8 26652 wx_cv_type_sa_handler=int
e6cc62c6 26653
af15babd 26654else
e6cc62c6
VS
26655 echo "$as_me: failed program was:" >&5
26656sed 's/^/| /' conftest.$ac_ext >&5
26657
26658
4f14bcd8 26659 wx_cv_type_sa_handler=void
e6cc62c6 26660
247f5006 26661fi
e6cc62c6 26662rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26663
e6cc62c6
VS
26664fi
26665echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26666echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
26667
26668 ac_ext=c
4f14bcd8 26669ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26672ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 26673
8284b0c5 26674
e6cc62c6 26675 cat >>confdefs.h <<_ACEOF
4f14bcd8 26676#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 26677_ACEOF
af15babd 26678
4f14bcd8
GD
26679 fi
26680fi
af15babd 26681
e6cc62c6
VS
26682
26683
a1d22ad7 26684for ac_func in mkstemp mktemp
af15babd 26685do
e6cc62c6
VS
26686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26687echo "$as_me:$LINENO: checking for $ac_func" >&5
26688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26689if eval "test \"\${$as_ac_var+set}\" = set"; then
26690 echo $ECHO_N "(cached) $ECHO_C" >&6
26691else
26692 cat >conftest.$ac_ext <<_ACEOF
26693#line $LINENO "configure"
26694/* confdefs.h. */
26695_ACEOF
26696cat confdefs.h >>conftest.$ac_ext
26697cat >>conftest.$ac_ext <<_ACEOF
26698/* end confdefs.h. */
af15babd 26699/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26700 which can conflict with char $ac_func (); below.
26701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26702 <limits.h> exists even on freestanding compilers. */
26703#ifdef __STDC__
26704# include <limits.h>
26705#else
26706# include <assert.h>
26707#endif
af15babd 26708/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26709#ifdef __cplusplus
26710extern "C"
26711{
26712#endif
af15babd 26713/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26714 builtin and then its argument prototype would still apply. */
26715char $ac_func ();
af15babd
VZ
26716/* The GNU C library defines this for functions which it implements
26717 to always fail with ENOSYS. Some functions are actually named
26718 something starting with __ and the normal name is an alias. */
26719#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26720choke me
26721#else
e6cc62c6
VS
26722char (*f) () = $ac_func;
26723#endif
26724#ifdef __cplusplus
26725}
af15babd
VZ
26726#endif
26727
e6cc62c6
VS
26728int
26729main ()
26730{
26731return f != $ac_func;
26732 ;
26733 return 0;
26734}
26735_ACEOF
26736rm -f conftest.$ac_objext conftest$ac_exeext
26737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26738 (eval $ac_link) 2>&5
26739 ac_status=$?
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } &&
26742 { ac_try='test -s conftest$ac_exeext'
26743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); }; }; then
26748 eval "$as_ac_var=yes"
26749else
26750 echo "$as_me: failed program was:" >&5
26751sed 's/^/| /' conftest.$ac_ext >&5
26752
26753eval "$as_ac_var=no"
26754fi
26755rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26756fi
26757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26759if test `eval echo '${'$as_ac_var'}'` = yes; then
26760 cat >>confdefs.h <<_ACEOF
26761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26762_ACEOF
ade35f11 26763 break
ade35f11
VZ
26764fi
26765done
26766
8284b0c5 26767
e6cc62c6
VS
26768echo "$as_me:$LINENO: checking for statfs" >&5
26769echo $ECHO_N "checking for statfs... $ECHO_C" >&6
26770if test "${wx_cv_func_statfs+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26772else
e6cc62c6
VS
26773 cat >conftest.$ac_ext <<_ACEOF
26774#line $LINENO "configure"
26775/* confdefs.h. */
26776_ACEOF
26777cat confdefs.h >>conftest.$ac_ext
26778cat >>conftest.$ac_ext <<_ACEOF
26779/* end confdefs.h. */
4f14bcd8
GD
26780
26781 #if defined(__BSD__)
26782 #include <sys/param.h>
26783 #include <sys/mount.h>
26784 #else
26785 #include <sys/vfs.h>
26786 #endif
e6cc62c6
VS
26787
26788int
26789main ()
26790{
4f14bcd8
GD
26791
26792 long l;
26793 struct statfs fs;
26794 statfs("/", &fs);
26795 l = fs.f_bsize;
26796 l += fs.f_blocks;
26797 l += fs.f_bavail;
e6cc62c6
VS
26798
26799 ;
26800 return 0;
26801}
26802_ACEOF
26803rm -f conftest.$ac_objext
26804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26805 (eval $ac_compile) 2>&5
26806 ac_status=$?
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); } &&
26809 { ac_try='test -s conftest.$ac_objext'
26810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 (eval $ac_try) 2>&5
26812 ac_status=$?
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); }; }; then
26815
4f14bcd8 26816 wx_cv_func_statfs=yes
e6cc62c6 26817
4f14bcd8 26818else
e6cc62c6
VS
26819 echo "$as_me: failed program was:" >&5
26820sed 's/^/| /' conftest.$ac_ext >&5
26821
26822
4f14bcd8 26823 wx_cv_func_statfs=no
e6cc62c6 26824
8284b0c5 26825
247f5006 26826fi
e6cc62c6 26827rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26828
e6cc62c6
VS
26829fi
26830echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
26831echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
26832
26833if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 26834 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 26835 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26836#define HAVE_STATFS 1
e6cc62c6 26837_ACEOF
4f14bcd8
GD
26838
26839else
e6cc62c6
VS
26840 echo "$as_me:$LINENO: checking for statvfs" >&5
26841echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
26842if test "${wx_cv_func_statvfs+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26844else
e6cc62c6
VS
26845 cat >conftest.$ac_ext <<_ACEOF
26846#line $LINENO "configure"
26847/* confdefs.h. */
26848_ACEOF
26849cat confdefs.h >>conftest.$ac_ext
26850cat >>conftest.$ac_ext <<_ACEOF
26851/* end confdefs.h. */
af15babd 26852
54ab82b3
VZ
26853 #include <stddef.h>
26854 #include <sys/statvfs.h>
e6cc62c6
VS
26855
26856int
26857main ()
26858{
af15babd 26859
54ab82b3 26860 statvfs("/", NULL);
e6cc62c6
VS
26861
26862 ;
26863 return 0;
26864}
26865_ACEOF
26866rm -f conftest.$ac_objext
26867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26868 (eval $ac_compile) 2>&5
26869 ac_status=$?
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
26872 { ac_try='test -s conftest.$ac_objext'
26873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874 (eval $ac_try) 2>&5
26875 ac_status=$?
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; }; then
54ab82b3 26878 wx_cv_func_statvfs=yes
af15babd 26879else
e6cc62c6
VS
26880 echo "$as_me: failed program was:" >&5
26881sed 's/^/| /' conftest.$ac_ext >&5
26882
26883wx_cv_func_statvfs=no
26884
247f5006 26885fi
e6cc62c6 26886rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26887
e6cc62c6
VS
26888fi
26889echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
26890echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 26891
4f14bcd8 26892 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
26893
26894
26895 ac_ext=cc
54ab82b3 26896ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
26900
26901
e6cc62c6
VS
26902 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
26903echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
26904if test "${wx_cv_type_statvfs_t+set}" = set; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 26906else
e6cc62c6
VS
26907 cat >conftest.$ac_ext <<_ACEOF
26908#line $LINENO "configure"
26909/* confdefs.h. */
26910_ACEOF
26911cat confdefs.h >>conftest.$ac_ext
26912cat >>conftest.$ac_ext <<_ACEOF
26913/* end confdefs.h. */
54ab82b3
VZ
26914
26915 #include <sys/statvfs.h>
e6cc62c6
VS
26916
26917int
26918main ()
26919{
54ab82b3
VZ
26920
26921 long l;
26922 statvfs_t fs;
26923 statvfs("/", &fs);
26924 l = fs.f_bsize;
26925 l += fs.f_blocks;
26926 l += fs.f_bavail;
e6cc62c6
VS
26927
26928 ;
26929 return 0;
26930}
26931_ACEOF
26932rm -f conftest.$ac_objext
26933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26934 (eval $ac_compile) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); } &&
26938 { ac_try='test -s conftest.$ac_objext'
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
54ab82b3
VZ
26944 wx_cv_type_statvfs_t=statvfs_t
26945else
e6cc62c6
VS
26946 echo "$as_me: failed program was:" >&5
26947sed 's/^/| /' conftest.$ac_ext >&5
26948
26949
26950 cat >conftest.$ac_ext <<_ACEOF
26951#line $LINENO "configure"
26952/* confdefs.h. */
26953_ACEOF
26954cat confdefs.h >>conftest.$ac_ext
26955cat >>conftest.$ac_ext <<_ACEOF
26956/* end confdefs.h. */
54ab82b3
VZ
26957
26958 #include <sys/statvfs.h>
e6cc62c6
VS
26959
26960int
26961main ()
26962{
54ab82b3
VZ
26963
26964 long l;
65d8ef1e 26965 struct statvfs fs;
54ab82b3
VZ
26966 statvfs("/", &fs);
26967 l = fs.f_bsize;
26968 l += fs.f_blocks;
26969 l += fs.f_bavail;
e6cc62c6
VS
26970
26971 ;
26972 return 0;
26973}
26974_ACEOF
26975rm -f conftest.$ac_objext
26976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26977 (eval $ac_compile) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -s conftest.$ac_objext'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; }; then
54ab82b3
VZ
26987 wx_cv_type_statvfs_t="struct statvfs"
26988else
e6cc62c6
VS
26989 echo "$as_me: failed program was:" >&5
26990sed 's/^/| /' conftest.$ac_ext >&5
26991
26992wx_cv_type_statvfs_t="unknown"
26993
54ab82b3 26994fi
e6cc62c6
VS
26995rm -f conftest.$ac_objext conftest.$ac_ext
26996
26997
54ab82b3 26998fi
e6cc62c6 26999rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27000
e6cc62c6
VS
27001fi
27002echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27003echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27004
27005 ac_ext=c
54ab82b3 27006ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27009ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27010
27011
27012 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27013 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27014#define HAVE_STATVFS 1
e6cc62c6 27015_ACEOF
af15babd 27016
54ab82b3 27017 fi
4f14bcd8 27018 else
54ab82b3 27019 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27020 fi
27021fi
af15babd 27022
54ab82b3 27023if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27024 cat >>confdefs.h <<_ACEOF
54ab82b3 27025#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27026_ACEOF
54ab82b3
VZ
27027
27028else
e6cc62c6
VS
27029 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27030echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27031fi
27032
4f14bcd8 27033if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27034
27035
27036for ac_func in fcntl flock
af15babd 27037do
e6cc62c6
VS
27038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27039echo "$as_me:$LINENO: checking for $ac_func" >&5
27040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27041if eval "test \"\${$as_ac_var+set}\" = set"; then
27042 echo $ECHO_N "(cached) $ECHO_C" >&6
27043else
27044 cat >conftest.$ac_ext <<_ACEOF
27045#line $LINENO "configure"
27046/* confdefs.h. */
27047_ACEOF
27048cat confdefs.h >>conftest.$ac_ext
27049cat >>conftest.$ac_ext <<_ACEOF
27050/* end confdefs.h. */
af15babd 27051/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27052 which can conflict with char $ac_func (); below.
27053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27054 <limits.h> exists even on freestanding compilers. */
27055#ifdef __STDC__
27056# include <limits.h>
27057#else
27058# include <assert.h>
27059#endif
af15babd 27060/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27061#ifdef __cplusplus
27062extern "C"
27063{
27064#endif
af15babd 27065/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27066 builtin and then its argument prototype would still apply. */
27067char $ac_func ();
af15babd
VZ
27068/* The GNU C library defines this for functions which it implements
27069 to always fail with ENOSYS. Some functions are actually named
27070 something starting with __ and the normal name is an alias. */
27071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27072choke me
27073#else
e6cc62c6
VS
27074char (*f) () = $ac_func;
27075#endif
27076#ifdef __cplusplus
27077}
af15babd
VZ
27078#endif
27079
e6cc62c6
VS
27080int
27081main ()
27082{
27083return f != $ac_func;
27084 ;
27085 return 0;
27086}
27087_ACEOF
27088rm -f conftest.$ac_objext conftest$ac_exeext
27089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27090 (eval $ac_link) 2>&5
27091 ac_status=$?
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } &&
27094 { ac_try='test -s conftest$ac_exeext'
27095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096 (eval $ac_try) 2>&5
27097 ac_status=$?
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); }; }; then
27100 eval "$as_ac_var=yes"
27101else
27102 echo "$as_me: failed program was:" >&5
27103sed 's/^/| /' conftest.$ac_ext >&5
27104
27105eval "$as_ac_var=no"
27106fi
27107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27108fi
27109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27110echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27111if test `eval echo '${'$as_ac_var'}'` = yes; then
27112 cat >>confdefs.h <<_ACEOF
27113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27114_ACEOF
4f14bcd8 27115 break
af15babd
VZ
27116fi
27117done
27118
8284b0c5 27119
4f14bcd8 27120 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27121 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27122echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27123 wxUSE_SNGLINST_CHECKER=no
27124 fi
27125fi
af15babd 27126
e6cc62c6 27127
4f14bcd8 27128for ac_func in timegm
af15babd 27129do
e6cc62c6
VS
27130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27131echo "$as_me:$LINENO: checking for $ac_func" >&5
27132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27133if eval "test \"\${$as_ac_var+set}\" = set"; then
27134 echo $ECHO_N "(cached) $ECHO_C" >&6
27135else
27136 cat >conftest.$ac_ext <<_ACEOF
27137#line $LINENO "configure"
27138/* confdefs.h. */
27139_ACEOF
27140cat confdefs.h >>conftest.$ac_ext
27141cat >>conftest.$ac_ext <<_ACEOF
27142/* end confdefs.h. */
af15babd 27143/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27144 which can conflict with char $ac_func (); below.
27145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27146 <limits.h> exists even on freestanding compilers. */
27147#ifdef __STDC__
27148# include <limits.h>
27149#else
27150# include <assert.h>
27151#endif
af15babd 27152/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27153#ifdef __cplusplus
27154extern "C"
27155{
27156#endif
af15babd 27157/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27158 builtin and then its argument prototype would still apply. */
27159char $ac_func ();
af15babd
VZ
27160/* The GNU C library defines this for functions which it implements
27161 to always fail with ENOSYS. Some functions are actually named
27162 something starting with __ and the normal name is an alias. */
247f5006
VZ
27163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27164choke me
27165#else
e6cc62c6
VS
27166char (*f) () = $ac_func;
27167#endif
27168#ifdef __cplusplus
27169}
247f5006
VZ
27170#endif
27171
e6cc62c6
VS
27172int
27173main ()
27174{
27175return f != $ac_func;
27176 ;
27177 return 0;
27178}
27179_ACEOF
27180rm -f conftest.$ac_objext conftest$ac_exeext
27181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27182 (eval $ac_link) 2>&5
27183 ac_status=$?
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } &&
27186 { ac_try='test -s conftest$ac_exeext'
27187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188 (eval $ac_try) 2>&5
27189 ac_status=$?
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); }; }; then
27192 eval "$as_ac_var=yes"
27193else
27194 echo "$as_me: failed program was:" >&5
27195sed 's/^/| /' conftest.$ac_ext >&5
27196
27197eval "$as_ac_var=no"
27198fi
27199rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27200fi
27201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27203if test `eval echo '${'$as_ac_var'}'` = yes; then
27204 cat >>confdefs.h <<_ACEOF
27205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27206_ACEOF
703e0a69 27207
af15babd
VZ
27208fi
27209done
27210
8284b0c5 27211
e6cc62c6
VS
27212
27213
4f14bcd8 27214for ac_func in putenv setenv
10f2d63a 27215do
e6cc62c6
VS
27216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27217echo "$as_me:$LINENO: checking for $ac_func" >&5
27218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27219if eval "test \"\${$as_ac_var+set}\" = set"; then
27220 echo $ECHO_N "(cached) $ECHO_C" >&6
27221else
27222 cat >conftest.$ac_ext <<_ACEOF
27223#line $LINENO "configure"
27224/* confdefs.h. */
27225_ACEOF
27226cat confdefs.h >>conftest.$ac_ext
27227cat >>conftest.$ac_ext <<_ACEOF
27228/* end confdefs.h. */
af15babd 27229/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27230 which can conflict with char $ac_func (); below.
27231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27232 <limits.h> exists even on freestanding compilers. */
27233#ifdef __STDC__
27234# include <limits.h>
27235#else
27236# include <assert.h>
27237#endif
af15babd 27238/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27239#ifdef __cplusplus
27240extern "C"
27241{
27242#endif
af15babd 27243/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27244 builtin and then its argument prototype would still apply. */
27245char $ac_func ();
af15babd
VZ
27246/* The GNU C library defines this for functions which it implements
27247 to always fail with ENOSYS. Some functions are actually named
27248 something starting with __ and the normal name is an alias. */
27249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27250choke me
27251#else
e6cc62c6
VS
27252char (*f) () = $ac_func;
27253#endif
27254#ifdef __cplusplus
27255}
af15babd
VZ
27256#endif
27257
e6cc62c6
VS
27258int
27259main ()
27260{
27261return f != $ac_func;
27262 ;
27263 return 0;
27264}
27265_ACEOF
27266rm -f conftest.$ac_objext conftest$ac_exeext
27267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27268 (eval $ac_link) 2>&5
27269 ac_status=$?
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } &&
27272 { ac_try='test -s conftest$ac_exeext'
27273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27274 (eval $ac_try) 2>&5
27275 ac_status=$?
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); }; }; then
27278 eval "$as_ac_var=yes"
27279else
27280 echo "$as_me: failed program was:" >&5
27281sed 's/^/| /' conftest.$ac_ext >&5
27282
27283eval "$as_ac_var=no"
27284fi
27285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27286fi
27287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27288echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27289if test `eval echo '${'$as_ac_var'}'` = yes; then
27290 cat >>confdefs.h <<_ACEOF
27291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27292_ACEOF
4f14bcd8 27293 break
af15babd 27294fi
af15babd
VZ
27295done
27296
8284b0c5 27297
4f14bcd8
GD
27298HAVE_SOME_SLEEP_FUNC=0
27299if test "$USE_BEOS" = 1; then
e6cc62c6 27300 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27301#define HAVE_SLEEP 1
e6cc62c6 27302_ACEOF
af15babd 27303
4f14bcd8 27304 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27305fi
27306
4f14bcd8 27307if test "$USE_DARWIN" = 1; then
e6cc62c6 27308 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27309#define HAVE_USLEEP 1
e6cc62c6 27310_ACEOF
10f2d63a 27311
4f14bcd8 27312 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27313fi
27314
4f14bcd8
GD
27315if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27316 POSIX4_LINK=
e6cc62c6
VS
27317
27318for ac_func in nanosleep
4f14bcd8 27319do
e6cc62c6
VS
27320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27321echo "$as_me:$LINENO: checking for $ac_func" >&5
27322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27323if eval "test \"\${$as_ac_var+set}\" = set"; then
27324 echo $ECHO_N "(cached) $ECHO_C" >&6
27325else
27326 cat >conftest.$ac_ext <<_ACEOF
27327#line $LINENO "configure"
27328/* confdefs.h. */
27329_ACEOF
27330cat confdefs.h >>conftest.$ac_ext
27331cat >>conftest.$ac_ext <<_ACEOF
27332/* end confdefs.h. */
4f14bcd8 27333/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27334 which can conflict with char $ac_func (); below.
27335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27336 <limits.h> exists even on freestanding compilers. */
27337#ifdef __STDC__
27338# include <limits.h>
27339#else
27340# include <assert.h>
27341#endif
10f2d63a 27342/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27343#ifdef __cplusplus
27344extern "C"
27345{
27346#endif
10f2d63a 27347/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27348 builtin and then its argument prototype would still apply. */
27349char $ac_func ();
4f14bcd8
GD
27350/* The GNU C library defines this for functions which it implements
27351 to always fail with ENOSYS. Some functions are actually named
27352 something starting with __ and the normal name is an alias. */
27353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27354choke me
27355#else
e6cc62c6
VS
27356char (*f) () = $ac_func;
27357#endif
27358#ifdef __cplusplus
27359}
4f14bcd8
GD
27360#endif
27361
e6cc62c6
VS
27362int
27363main ()
27364{
27365return f != $ac_func;
27366 ;
27367 return 0;
27368}
27369_ACEOF
27370rm -f conftest.$ac_objext conftest$ac_exeext
27371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27372 (eval $ac_link) 2>&5
27373 ac_status=$?
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); } &&
27376 { ac_try='test -s conftest$ac_exeext'
27377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27378 (eval $ac_try) 2>&5
27379 ac_status=$?
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); }; }; then
27382 eval "$as_ac_var=yes"
27383else
27384 echo "$as_me: failed program was:" >&5
27385sed 's/^/| /' conftest.$ac_ext >&5
27386
27387eval "$as_ac_var=no"
27388fi
27389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27390fi
27391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27392echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27393if test `eval echo '${'$as_ac_var'}'` = yes; then
27394 cat >>confdefs.h <<_ACEOF
27395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27396_ACEOF
27397 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27398#define HAVE_NANOSLEEP 1
e6cc62c6 27399_ACEOF
4f14bcd8 27400
10f2d63a 27401else
e6cc62c6
VS
27402
27403 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27404echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27405if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27407else
e6cc62c6 27408 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27409LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27410cat >conftest.$ac_ext <<_ACEOF
27411#line $LINENO "configure"
27412/* confdefs.h. */
27413_ACEOF
27414cat confdefs.h >>conftest.$ac_ext
27415cat >>conftest.$ac_ext <<_ACEOF
27416/* end confdefs.h. */
27417
10f2d63a 27418/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27419#ifdef __cplusplus
27420extern "C"
27421#endif
10f2d63a 27422/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27423 builtin and then its argument prototype would still apply. */
27424char nanosleep ();
27425int
27426main ()
27427{
27428nanosleep ();
27429 ;
27430 return 0;
27431}
27432_ACEOF
27433rm -f conftest.$ac_objext conftest$ac_exeext
27434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27435 (eval $ac_link) 2>&5
27436 ac_status=$?
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); } &&
27439 { ac_try='test -s conftest$ac_exeext'
27440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27441 (eval $ac_try) 2>&5
27442 ac_status=$?
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); }; }; then
27445 ac_cv_lib_posix4_nanosleep=yes
27446else
27447 echo "$as_me: failed program was:" >&5
27448sed 's/^/| /' conftest.$ac_ext >&5
27449
27450ac_cv_lib_posix4_nanosleep=no
27451fi
27452rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27453LIBS=$ac_check_lib_save_LIBS
27454fi
27455echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27456echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27457if test $ac_cv_lib_posix4_nanosleep = yes; then
27458
27459 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27460#define HAVE_NANOSLEEP 1
e6cc62c6 27461_ACEOF
4f14bcd8 27462
3d63bc3a 27463 POSIX4_LINK=" -lposix4"
e6cc62c6 27464
10f2d63a 27465else
10f2d63a 27466
e6cc62c6
VS
27467
27468for ac_func in usleep
4f14bcd8 27469do
e6cc62c6
VS
27470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27471echo "$as_me:$LINENO: checking for $ac_func" >&5
27472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27473if eval "test \"\${$as_ac_var+set}\" = set"; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27475else
27476 cat >conftest.$ac_ext <<_ACEOF
27477#line $LINENO "configure"
27478/* confdefs.h. */
27479_ACEOF
27480cat confdefs.h >>conftest.$ac_ext
27481cat >>conftest.$ac_ext <<_ACEOF
27482/* end confdefs.h. */
4f14bcd8 27483/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27484 which can conflict with char $ac_func (); below.
27485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27486 <limits.h> exists even on freestanding compilers. */
27487#ifdef __STDC__
27488# include <limits.h>
27489#else
27490# include <assert.h>
27491#endif
4f14bcd8 27492/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27493#ifdef __cplusplus
27494extern "C"
27495{
27496#endif
4f14bcd8 27497/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27498 builtin and then its argument prototype would still apply. */
27499char $ac_func ();
4f14bcd8
GD
27500/* The GNU C library defines this for functions which it implements
27501 to always fail with ENOSYS. Some functions are actually named
27502 something starting with __ and the normal name is an alias. */
27503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27504choke me
27505#else
e6cc62c6
VS
27506char (*f) () = $ac_func;
27507#endif
27508#ifdef __cplusplus
27509}
4f14bcd8
GD
27510#endif
27511
e6cc62c6
VS
27512int
27513main ()
27514{
27515return f != $ac_func;
27516 ;
27517 return 0;
27518}
27519_ACEOF
27520rm -f conftest.$ac_objext conftest$ac_exeext
27521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27522 (eval $ac_link) 2>&5
27523 ac_status=$?
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } &&
27526 { ac_try='test -s conftest$ac_exeext'
27527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528 (eval $ac_try) 2>&5
27529 ac_status=$?
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; }; then
27532 eval "$as_ac_var=yes"
27533else
27534 echo "$as_me: failed program was:" >&5
27535sed 's/^/| /' conftest.$ac_ext >&5
27536
27537eval "$as_ac_var=no"
27538fi
27539rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27540fi
27541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27542echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27543if test `eval echo '${'$as_ac_var'}'` = yes; then
27544 cat >>confdefs.h <<_ACEOF
27545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27546_ACEOF
27547 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27548#define HAVE_USLEEP 1
e6cc62c6 27549_ACEOF
4f14bcd8 27550
698dcdb6 27551else
e6cc62c6
VS
27552 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27553echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27554
10f2d63a 27555fi
4f14bcd8 27556done
10f2d63a 27557
e6cc62c6
VS
27558
27559
6232543b 27560fi
10f2d63a 27561
e6cc62c6
VS
27562
27563
1e487827 27564fi
4f14bcd8 27565done
703e0a69 27566
10f2d63a
VZ
27567fi
27568
e6cc62c6
VS
27569
27570
4f14bcd8 27571for ac_func in uname gethostname
70846f0a 27572do
e6cc62c6
VS
27573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27574echo "$as_me:$LINENO: checking for $ac_func" >&5
27575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27576if eval "test \"\${$as_ac_var+set}\" = set"; then
27577 echo $ECHO_N "(cached) $ECHO_C" >&6
27578else
27579 cat >conftest.$ac_ext <<_ACEOF
27580#line $LINENO "configure"
27581/* confdefs.h. */
27582_ACEOF
27583cat confdefs.h >>conftest.$ac_ext
27584cat >>conftest.$ac_ext <<_ACEOF
27585/* end confdefs.h. */
70846f0a 27586/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27587 which can conflict with char $ac_func (); below.
27588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27589 <limits.h> exists even on freestanding compilers. */
27590#ifdef __STDC__
27591# include <limits.h>
27592#else
27593# include <assert.h>
27594#endif
70846f0a 27595/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27596#ifdef __cplusplus
27597extern "C"
27598{
27599#endif
70846f0a 27600/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27601 builtin and then its argument prototype would still apply. */
27602char $ac_func ();
70846f0a
VZ
27603/* The GNU C library defines this for functions which it implements
27604 to always fail with ENOSYS. Some functions are actually named
27605 something starting with __ and the normal name is an alias. */
27606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27607choke me
27608#else
e6cc62c6
VS
27609char (*f) () = $ac_func;
27610#endif
27611#ifdef __cplusplus
27612}
70846f0a
VZ
27613#endif
27614
e6cc62c6
VS
27615int
27616main ()
27617{
27618return f != $ac_func;
27619 ;
27620 return 0;
27621}
27622_ACEOF
27623rm -f conftest.$ac_objext conftest$ac_exeext
27624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27625 (eval $ac_link) 2>&5
27626 ac_status=$?
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); } &&
27629 { ac_try='test -s conftest$ac_exeext'
27630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631 (eval $ac_try) 2>&5
27632 ac_status=$?
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; }; then
27635 eval "$as_ac_var=yes"
27636else
27637 echo "$as_me: failed program was:" >&5
27638sed 's/^/| /' conftest.$ac_ext >&5
27639
27640eval "$as_ac_var=no"
27641fi
27642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27643fi
27644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27646if test `eval echo '${'$as_ac_var'}'` = yes; then
27647 cat >>confdefs.h <<_ACEOF
27648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27649_ACEOF
4f14bcd8 27650 break
70846f0a
VZ
27651fi
27652done
27653
8284b0c5
MB
27654
27655
e6cc62c6
VS
27656
27657ac_ext=cc
4f14bcd8 27658ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27662
8284b0c5 27663
4f14bcd8
GD
27664
27665for ac_func in strtok_r
10f2d63a 27666do
e6cc62c6
VS
27667as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27668echo "$as_me:$LINENO: checking for $ac_func" >&5
27669echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27670if eval "test \"\${$as_ac_var+set}\" = set"; then
27671 echo $ECHO_N "(cached) $ECHO_C" >&6
27672else
27673 cat >conftest.$ac_ext <<_ACEOF
27674#line $LINENO "configure"
27675/* confdefs.h. */
27676_ACEOF
27677cat confdefs.h >>conftest.$ac_ext
27678cat >>conftest.$ac_ext <<_ACEOF
27679/* end confdefs.h. */
4f14bcd8 27680/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27681 which can conflict with char $ac_func (); below.
27682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27683 <limits.h> exists even on freestanding compilers. */
27684#ifdef __STDC__
27685# include <limits.h>
27686#else
27687# include <assert.h>
27688#endif
4f14bcd8
GD
27689/* Override any gcc2 internal prototype to avoid an error. */
27690#ifdef __cplusplus
27691extern "C"
e6cc62c6 27692{
4f14bcd8
GD
27693#endif
27694/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27695 builtin and then its argument prototype would still apply. */
27696char $ac_func ();
4f14bcd8
GD
27697/* The GNU C library defines this for functions which it implements
27698 to always fail with ENOSYS. Some functions are actually named
27699 something starting with __ and the normal name is an alias. */
27700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27701choke me
27702#else
e6cc62c6
VS
27703char (*f) () = $ac_func;
27704#endif
27705#ifdef __cplusplus
27706}
4f14bcd8
GD
27707#endif
27708
e6cc62c6
VS
27709int
27710main ()
27711{
27712return f != $ac_func;
27713 ;
27714 return 0;
27715}
27716_ACEOF
27717rm -f conftest.$ac_objext conftest$ac_exeext
27718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27719 (eval $ac_link) 2>&5
27720 ac_status=$?
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); } &&
27723 { ac_try='test -s conftest$ac_exeext'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27726 ac_status=$?
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; }; then
27729 eval "$as_ac_var=yes"
27730else
27731 echo "$as_me: failed program was:" >&5
27732sed 's/^/| /' conftest.$ac_ext >&5
27733
27734eval "$as_ac_var=no"
27735fi
27736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27737fi
27738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27739echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27740if test `eval echo '${'$as_ac_var'}'` = yes; then
27741 cat >>confdefs.h <<_ACEOF
27742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27743_ACEOF
4f14bcd8 27744
10f2d63a
VZ
27745fi
27746done
27747
8284b0c5 27748
4f14bcd8 27749ac_ext=c
4f14bcd8 27750ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27753ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27754
5c6fa7d2 27755
8284b0c5 27756INET_LINK=
e6cc62c6 27757
4f14bcd8
GD
27758for ac_func in inet_addr
27759do
e6cc62c6
VS
27760as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27761echo "$as_me:$LINENO: checking for $ac_func" >&5
27762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27763if eval "test \"\${$as_ac_var+set}\" = set"; then
27764 echo $ECHO_N "(cached) $ECHO_C" >&6
27765else
27766 cat >conftest.$ac_ext <<_ACEOF
27767#line $LINENO "configure"
27768/* confdefs.h. */
27769_ACEOF
27770cat confdefs.h >>conftest.$ac_ext
27771cat >>conftest.$ac_ext <<_ACEOF
27772/* end confdefs.h. */
4f14bcd8 27773/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27774 which can conflict with char $ac_func (); below.
27775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27776 <limits.h> exists even on freestanding compilers. */
27777#ifdef __STDC__
27778# include <limits.h>
27779#else
27780# include <assert.h>
27781#endif
10f2d63a 27782/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27783#ifdef __cplusplus
27784extern "C"
27785{
27786#endif
10f2d63a 27787/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27788 builtin and then its argument prototype would still apply. */
27789char $ac_func ();
4f14bcd8
GD
27790/* The GNU C library defines this for functions which it implements
27791 to always fail with ENOSYS. Some functions are actually named
27792 something starting with __ and the normal name is an alias. */
27793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27794choke me
27795#else
e6cc62c6
VS
27796char (*f) () = $ac_func;
27797#endif
27798#ifdef __cplusplus
27799}
4f14bcd8
GD
27800#endif
27801
e6cc62c6
VS
27802int
27803main ()
27804{
27805return f != $ac_func;
27806 ;
27807 return 0;
27808}
27809_ACEOF
27810rm -f conftest.$ac_objext conftest$ac_exeext
27811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27812 (eval $ac_link) 2>&5
27813 ac_status=$?
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } &&
27816 { ac_try='test -s conftest$ac_exeext'
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27819 ac_status=$?
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; }; then
27822 eval "$as_ac_var=yes"
27823else
27824 echo "$as_me: failed program was:" >&5
27825sed 's/^/| /' conftest.$ac_ext >&5
27826
27827eval "$as_ac_var=no"
27828fi
27829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27830fi
27831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27833if test `eval echo '${'$as_ac_var'}'` = yes; then
27834 cat >>confdefs.h <<_ACEOF
27835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27836_ACEOF
27837 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27838#define HAVE_INET_ADDR 1
e6cc62c6 27839_ACEOF
10f2d63a
VZ
27840
27841else
e6cc62c6
VS
27842
27843 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
27844echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
27845if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
27846 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27847else
e6cc62c6 27848 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27849LIBS="-lnsl $LIBS"
e6cc62c6
VS
27850cat >conftest.$ac_ext <<_ACEOF
27851#line $LINENO "configure"
27852/* confdefs.h. */
27853_ACEOF
27854cat confdefs.h >>conftest.$ac_ext
27855cat >>conftest.$ac_ext <<_ACEOF
27856/* end confdefs.h. */
27857
10f2d63a 27858/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27859#ifdef __cplusplus
27860extern "C"
27861#endif
10f2d63a 27862/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27863 builtin and then its argument prototype would still apply. */
27864char inet_addr ();
27865int
27866main ()
27867{
27868inet_addr ();
27869 ;
27870 return 0;
27871}
27872_ACEOF
27873rm -f conftest.$ac_objext conftest$ac_exeext
27874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27875 (eval $ac_link) 2>&5
27876 ac_status=$?
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
27879 { ac_try='test -s conftest$ac_exeext'
27880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27881 (eval $ac_try) 2>&5
27882 ac_status=$?
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; }; then
27885 ac_cv_lib_nsl_inet_addr=yes
27886else
27887 echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
27890ac_cv_lib_nsl_inet_addr=no
27891fi
27892rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27893LIBS=$ac_check_lib_save_LIBS
27894fi
27895echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
27896echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
27897if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 27898 INET_LINK="nsl"
10f2d63a 27899else
e6cc62c6
VS
27900 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
27901echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
27902if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
27903 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27904else
e6cc62c6 27905 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27906LIBS="-lresolv $LIBS"
e6cc62c6
VS
27907cat >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. */
27914
5c6fa7d2 27915/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27916#ifdef __cplusplus
27917extern "C"
27918#endif
5c6fa7d2 27919/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27920 builtin and then its argument prototype would still apply. */
27921char inet_addr ();
27922int
27923main ()
27924{
27925inet_addr ();
27926 ;
27927 return 0;
27928}
27929_ACEOF
27930rm -f conftest.$ac_objext conftest$ac_exeext
27931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27932 (eval $ac_link) 2>&5
27933 ac_status=$?
27934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935 (exit $ac_status); } &&
27936 { ac_try='test -s conftest$ac_exeext'
27937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27938 (eval $ac_try) 2>&5
27939 ac_status=$?
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); }; }; then
27942 ac_cv_lib_resolv_inet_addr=yes
27943else
27944 echo "$as_me: failed program was:" >&5
27945sed 's/^/| /' conftest.$ac_ext >&5
27946
27947ac_cv_lib_resolv_inet_addr=no
27948fi
27949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27950LIBS=$ac_check_lib_save_LIBS
27951fi
27952echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
27953echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
27954if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 27955 INET_LINK="resolv"
698dcdb6 27956else
e6cc62c6
VS
27957 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
27958echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
27959if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
27960 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 27961else
e6cc62c6 27962 ac_check_lib_save_LIBS=$LIBS
3c011993 27963LIBS="-lsocket $LIBS"
e6cc62c6
VS
27964cat >conftest.$ac_ext <<_ACEOF
27965#line $LINENO "configure"
27966/* confdefs.h. */
27967_ACEOF
27968cat confdefs.h >>conftest.$ac_ext
27969cat >>conftest.$ac_ext <<_ACEOF
27970/* end confdefs.h. */
27971
3c011993 27972/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27973#ifdef __cplusplus
27974extern "C"
27975#endif
3c011993 27976/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27977 builtin and then its argument prototype would still apply. */
27978char inet_addr ();
27979int
27980main ()
27981{
27982inet_addr ();
27983 ;
27984 return 0;
27985}
27986_ACEOF
27987rm -f conftest.$ac_objext conftest$ac_exeext
27988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27989 (eval $ac_link) 2>&5
27990 ac_status=$?
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); } &&
27993 { ac_try='test -s conftest$ac_exeext'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
27999 ac_cv_lib_socket_inet_addr=yes
28000else
28001 echo "$as_me: failed program was:" >&5
28002sed 's/^/| /' conftest.$ac_ext >&5
28003
28004ac_cv_lib_socket_inet_addr=no
28005fi
28006rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28007LIBS=$ac_check_lib_save_LIBS
28008fi
28009echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28010echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28011if test $ac_cv_lib_socket_inet_addr = yes; then
28012 INET_LINK="socket"
4f14bcd8 28013
8284b0c5 28014fi
e6cc62c6 28015
698dcdb6 28016
7b4a847f 28017fi
e6cc62c6
VS
28018
28019
a0b9e27f 28020fi
579d8138 28021
e6cc62c6
VS
28022
28023
5c6fa7d2 28024fi
e6cc62c6
VS
28025done
28026
28027
28028
28029for ac_func in inet_aton
28030do
28031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28032echo "$as_me:$LINENO: checking for $ac_func" >&5
28033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28034if eval "test \"\${$as_ac_var+set}\" = set"; then
28035 echo $ECHO_N "(cached) $ECHO_C" >&6
28036else
28037 cat >conftest.$ac_ext <<_ACEOF
28038#line $LINENO "configure"
28039/* confdefs.h. */
28040_ACEOF
28041cat confdefs.h >>conftest.$ac_ext
28042cat >>conftest.$ac_ext <<_ACEOF
28043/* end confdefs.h. */
28044/* System header to define __stub macros and hopefully few prototypes,
28045 which can conflict with char $ac_func (); below.
28046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28047 <limits.h> exists even on freestanding compilers. */
28048#ifdef __STDC__
28049# include <limits.h>
28050#else
28051# include <assert.h>
28052#endif
28053/* Override any gcc2 internal prototype to avoid an error. */
28054#ifdef __cplusplus
28055extern "C"
28056{
28057#endif
28058/* We use char because int might match the return type of a gcc2
28059 builtin and then its argument prototype would still apply. */
28060char $ac_func ();
28061/* The GNU C library defines this for functions which it implements
28062 to always fail with ENOSYS. Some functions are actually named
28063 something starting with __ and the normal name is an alias. */
28064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28065choke me
28066#else
28067char (*f) () = $ac_func;
28068#endif
28069#ifdef __cplusplus
28070}
28071#endif
28072
28073int
28074main ()
28075{
28076return f != $ac_func;
28077 ;
28078 return 0;
28079}
28080_ACEOF
28081rm -f conftest.$ac_objext conftest$ac_exeext
28082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28083 (eval $ac_link) 2>&5
28084 ac_status=$?
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); } &&
28087 { ac_try='test -s conftest$ac_exeext'
28088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28090 ac_status=$?
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
28093 eval "$as_ac_var=yes"
28094else
28095 echo "$as_me: failed program was:" >&5
28096sed 's/^/| /' conftest.$ac_ext >&5
28097
28098eval "$as_ac_var=no"
28099fi
28100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28101fi
28102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28103echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28104if test `eval echo '${'$as_ac_var'}'` = yes; then
28105 cat >>confdefs.h <<_ACEOF
28106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28107_ACEOF
28108 cat >>confdefs.h <<\_ACEOF
28109#define HAVE_INET_ATON 1
28110_ACEOF
28111
28112else
28113
28114 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28115echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28116echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28117if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28118 echo $ECHO_N "(cached) $ECHO_C" >&6
28119else
28120 ac_check_lib_save_LIBS=$LIBS
28121LIBS="-l$INET_LINK $LIBS"
28122cat >conftest.$ac_ext <<_ACEOF
28123#line $LINENO "configure"
28124/* confdefs.h. */
28125_ACEOF
28126cat confdefs.h >>conftest.$ac_ext
28127cat >>conftest.$ac_ext <<_ACEOF
28128/* end confdefs.h. */
28129
28130/* Override any gcc2 internal prototype to avoid an error. */
28131#ifdef __cplusplus
28132extern "C"
28133#endif
28134/* We use char because int might match the return type of a gcc2
28135 builtin and then its argument prototype would still apply. */
28136char inet_aton ();
28137int
28138main ()
28139{
28140inet_aton ();
28141 ;
28142 return 0;
28143}
28144_ACEOF
28145rm -f conftest.$ac_objext conftest$ac_exeext
28146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28147 (eval $ac_link) 2>&5
28148 ac_status=$?
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); } &&
28151 { ac_try='test -s conftest$ac_exeext'
28152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28153 (eval $ac_try) 2>&5
28154 ac_status=$?
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); }; }; then
28157 eval "$as_ac_Lib=yes"
28158else
28159 echo "$as_me: failed program was:" >&5
28160sed 's/^/| /' conftest.$ac_ext >&5
28161
28162eval "$as_ac_Lib=no"
28163fi
28164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28165LIBS=$ac_check_lib_save_LIBS
28166fi
28167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28168echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28169if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28170 cat >>confdefs.h <<\_ACEOF
28171#define HAVE_INET_ATON 1
28172_ACEOF
52127426 28173
a0b9e27f 28174fi
247f5006 28175
8284b0c5 28176
698dcdb6 28177fi
4f14bcd8
GD
28178done
28179
8284b0c5 28180
e6cc62c6
VS
28181if test "x$INET_LINK" != "x"; then
28182 cat >>confdefs.h <<\_ACEOF
28183#define HAVE_INET_ADDR 1
28184_ACEOF
28185
28186 INET_LINK=" -l$INET_LINK"
28187fi
28188
28189fi
a0b9e27f 28190
a0b9e27f 28191
4f14bcd8 28192
e6cc62c6
VS
28193ESD_LINK=
28194if test "${ac_cv_header_esd_h+set}" = set; then
28195 echo "$as_me:$LINENO: checking for esd.h" >&5
28196echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28197if test "${ac_cv_header_esd_h+set}" = set; then
28198 echo $ECHO_N "(cached) $ECHO_C" >&6
28199fi
28200echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28201echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28202else
28203 # Is the header compilable?
28204echo "$as_me:$LINENO: checking esd.h usability" >&5
28205echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28206cat >conftest.$ac_ext <<_ACEOF
28207#line $LINENO "configure"
28208/* confdefs.h. */
28209_ACEOF
28210cat confdefs.h >>conftest.$ac_ext
28211cat >>conftest.$ac_ext <<_ACEOF
28212/* end confdefs.h. */
28213$ac_includes_default
28214#include <esd.h>
28215_ACEOF
28216rm -f conftest.$ac_objext
28217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28218 (eval $ac_compile) 2>&5
28219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); } &&
28222 { ac_try='test -s conftest.$ac_objext'
28223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224 (eval $ac_try) 2>&5
28225 ac_status=$?
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; }; then
28228 ac_header_compiler=yes
28229else
28230 echo "$as_me: failed program was:" >&5
28231sed 's/^/| /' conftest.$ac_ext >&5
28232
28233ac_header_compiler=no
28234fi
28235rm -f conftest.$ac_objext conftest.$ac_ext
28236echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28237echo "${ECHO_T}$ac_header_compiler" >&6
28238
28239# Is the header present?
28240echo "$as_me:$LINENO: checking esd.h presence" >&5
28241echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28242cat >conftest.$ac_ext <<_ACEOF
28243#line $LINENO "configure"
28244/* confdefs.h. */
28245_ACEOF
28246cat confdefs.h >>conftest.$ac_ext
28247cat >>conftest.$ac_ext <<_ACEOF
28248/* end confdefs.h. */
28249#include <esd.h>
28250_ACEOF
28251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28253 ac_status=$?
28254 grep -v '^ *+' conftest.er1 >conftest.err
28255 rm -f conftest.er1
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } >/dev/null; then
28259 if test -s conftest.err; then
28260 ac_cpp_err=$ac_c_preproc_warn_flag
28261 else
28262 ac_cpp_err=
28263 fi
a0b9e27f 28264else
e6cc62c6
VS
28265 ac_cpp_err=yes
28266fi
28267if test -z "$ac_cpp_err"; then
28268 ac_header_preproc=yes
28269else
28270 echo "$as_me: failed program was:" >&5
28271sed 's/^/| /' conftest.$ac_ext >&5
28272
28273 ac_header_preproc=no
28274fi
28275rm -f conftest.err conftest.$ac_ext
28276echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28277echo "${ECHO_T}$ac_header_preproc" >&6
28278
28279# So? What about this header?
28280case $ac_header_compiler:$ac_header_preproc in
28281 yes:no )
28282 { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28283echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28284 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28285echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28286 (
28287 cat <<\_ASBOX
28288## ------------------------------------ ##
28289## Report this to bug-autoconf@gnu.org. ##
28290## ------------------------------------ ##
28291_ASBOX
28292 ) |
28293 sed "s/^/$as_me: WARNING: /" >&2
28294 ;;
28295 no:yes )
28296 { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28297echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28298 { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28299echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28300 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28301echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28302 (
28303 cat <<\_ASBOX
28304## ------------------------------------ ##
28305## Report this to bug-autoconf@gnu.org. ##
28306## ------------------------------------ ##
28307_ASBOX
28308 ) |
28309 sed "s/^/$as_me: WARNING: /" >&2
28310 ;;
28311esac
28312echo "$as_me:$LINENO: checking for esd.h" >&5
28313echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28314if test "${ac_cv_header_esd_h+set}" = set; then
28315 echo $ECHO_N "(cached) $ECHO_C" >&6
28316else
28317 ac_cv_header_esd_h=$ac_header_preproc
a0b9e27f 28318fi
e6cc62c6
VS
28319echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28320echo "${ECHO_T}$ac_cv_header_esd_h" >&6
a0b9e27f 28321
e6cc62c6
VS
28322fi
28323if test $ac_cv_header_esd_h = yes; then
4f14bcd8 28324
e6cc62c6
VS
28325 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28326echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28327if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28328 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28329else
e6cc62c6
VS
28330 ac_check_lib_save_LIBS=$LIBS
28331LIBS="-lesd $LIBS"
28332cat >conftest.$ac_ext <<_ACEOF
28333#line $LINENO "configure"
28334/* confdefs.h. */
28335_ACEOF
28336cat confdefs.h >>conftest.$ac_ext
28337cat >>conftest.$ac_ext <<_ACEOF
28338/* end confdefs.h. */
28339
6232543b 28340/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28341#ifdef __cplusplus
28342extern "C"
28343#endif
6232543b 28344/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28345 builtin and then its argument prototype would still apply. */
28346char esd_close ();
28347int
28348main ()
28349{
28350esd_close ();
28351 ;
28352 return 0;
28353}
28354_ACEOF
28355rm -f conftest.$ac_objext conftest$ac_exeext
28356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28357 (eval $ac_link) 2>&5
28358 ac_status=$?
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
28361 { ac_try='test -s conftest$ac_exeext'
28362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28363 (eval $ac_try) 2>&5
28364 ac_status=$?
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; }; then
28367 ac_cv_lib_esd_esd_close=yes
a0b9e27f 28368else
e6cc62c6
VS
28369 echo "$as_me: failed program was:" >&5
28370sed 's/^/| /' conftest.$ac_ext >&5
4f14bcd8 28371
e6cc62c6 28372ac_cv_lib_esd_esd_close=no
10f2d63a 28373fi
e6cc62c6
VS
28374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28375LIBS=$ac_check_lib_save_LIBS
a0b9e27f 28376fi
e6cc62c6
VS
28377echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28378echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28379if test $ac_cv_lib_esd_esd_close = yes; then
247f5006 28380
e6cc62c6 28381 ESD_LINK="-lesd"
10f2d63a 28382
e6cc62c6 28383fi
8284b0c5 28384
4f14bcd8 28385
6232543b 28386fi
10f2d63a 28387
703e0a69 28388
8284b0c5 28389
e6cc62c6
VS
28390
28391
28392cat >confcache <<\_ACEOF
4f14bcd8
GD
28393# This file is a shell script that caches the results of configure
28394# tests run on this system so they can be shared between configure
e6cc62c6
VS
28395# scripts and configure runs, see configure's option --config-cache.
28396# It is not useful on other systems. If it contains results you don't
28397# want to keep, you may remove or edit it.
4f14bcd8 28398#
e6cc62c6
VS
28399# config.status only pays attention to the cache file if you give it
28400# the --recheck option to rerun configure.
4f14bcd8 28401#
e6cc62c6
VS
28402# `ac_cv_env_foo' variables (set or unset) will be overridden when
28403# loading this file, other *unset* `ac_cv_foo' will be assigned the
28404# following values.
28405
28406_ACEOF
28407
4f14bcd8
GD
28408# The following way of writing the cache mishandles newlines in values,
28409# but we know of no workaround that is simple, portable, and efficient.
28410# So, don't put newlines in cache variables' values.
28411# Ultrix sh set writes to stderr and can't be redirected directly,
28412# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28413{
28414 (set) 2>&1 |
28415 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28416 *ac_space=\ *)
28417 # `set' does not quote correctly, so add quotes (double-quote
28418 # substitution turns \\\\ into \\, and sed turns \\ into \).
28419 sed -n \
28420 "s/'/'\\\\''/g;
28421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28422 ;;
28423 *)
28424 # `set' quotes correctly as required by POSIX, so do not add quotes.
28425 sed -n \
28426 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28427 ;;
28428 esac;
28429} |
28430 sed '
28431 t clear
28432 : clear
28433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28434 t end
28435 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28436 : end' >>confcache
28437if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28438 if test -w $cache_file; then
e6cc62c6
VS
28439 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28440 cat confcache >$cache_file
f6bcfd97 28441 else
4f14bcd8 28442 echo "not updating unwritable cache $cache_file"
f6bcfd97 28443 fi
4f14bcd8
GD
28444fi
28445rm -f confcache
f6bcfd97 28446
8284b0c5 28447
009fead0 28448CPP_MT_FLAG=
4f14bcd8
GD
28449if test "$TOOLKIT" != "MSW"; then
28450
e6cc62c6 28451
7274f1c7 28452 THREADS_LINK=
009fead0 28453 THREADS_CFLAGS=
7274f1c7
RL
28454
28455 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28456 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28457 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28458echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28459 wxUSE_THREADS="no"
28460 fi
4f14bcd8 28461 fi
4f14bcd8 28462
7274f1c7 28463 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28464
28465
009fead0
VZ
28466 THREAD_OPTS="-pthread"
28467 case "${host}" in
28468 *-*-solaris2* | *-*-sunos4* )
28469 if test "x$GCC" = "xyes"; then
126be6b4 28470 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28471 else
28472 THREAD_OPTS="-mt $THREAD_OPTS"
28473 fi
28474 ;;
28475 *-*-freebsd*)
28476 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28477 ;;
17234b26
MB
28478 *-*-darwin* | *-*-cygwin* )
28479 THREAD_OPTS=""
4101db81 28480 ;;
8f4a9a10 28481 *-*-aix*)
009fead0
VZ
28482 THREAD_OPTS="pthreads"
28483 ;;
4f5a7f74
VZ
28484 *-hp-hpux* )
28485 if test "x$GCC" != "xyes"; then
28486 THREAD_OPTS=""
28487 fi
89e3b3e4
VZ
28488 ;;
28489
28490 *-*-irix* )
28491 if test "x$GCC" = "xyes"; then
28492 THREAD_OPTS=""
28493 fi
28494 ;;
28495
28496 *-*-*UnixWare*)
28497 if test "x$GCC" != "xyes"; then
28498 THREAD_OPTS="-Ethread"
28499 fi
28500 ;;
009fead0 28501 esac
4f14bcd8 28502
02a1dfba 28503 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28504
009fead0
VZ
28505 THREADS_OK=no
28506 for flag in $THREAD_OPTS; do
28507 case $flag in
28508 none)
e6cc62c6
VS
28509 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28510echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28511 ;;
698dcdb6 28512
009fead0 28513 -*)
e6cc62c6
VS
28514 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28515echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28516 THREADS_CFLAGS="$flag"
28517 ;;
698dcdb6 28518
009fead0 28519 *)
e6cc62c6
VS
28520 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28521echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28522 THREADS_LINK="-l$flag"
28523 ;;
28524 esac
10f2d63a 28525
009fead0
VZ
28526 save_LIBS="$LIBS"
28527 save_CFLAGS="$CFLAGS"
28528 LIBS="$THREADS_LINK $LIBS"
04727afd 28529 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28530
e6cc62c6
VS
28531 cat >conftest.$ac_ext <<_ACEOF
28532#line $LINENO "configure"
28533/* confdefs.h. */
28534_ACEOF
28535cat confdefs.h >>conftest.$ac_ext
28536cat >>conftest.$ac_ext <<_ACEOF
28537/* end confdefs.h. */
009fead0 28538#include <pthread.h>
e6cc62c6
VS
28539int
28540main ()
28541{
009fead0 28542pthread_create(0,0,0,0);
e6cc62c6
VS
28543 ;
28544 return 0;
28545}
28546_ACEOF
28547rm -f conftest.$ac_objext conftest$ac_exeext
28548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28549 (eval $ac_link) 2>&5
28550 ac_status=$?
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); } &&
28553 { ac_try='test -s conftest$ac_exeext'
28554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28555 (eval $ac_try) 2>&5
28556 ac_status=$?
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); }; }; then
009fead0 28559 THREADS_OK=yes
10f2d63a 28560else
e6cc62c6
VS
28561 echo "$as_me: failed program was:" >&5
28562sed 's/^/| /' conftest.$ac_ext >&5
28563
6232543b 28564fi
e6cc62c6 28565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28566
009fead0
VZ
28567 LIBS="$save_LIBS"
28568 CFLAGS="$save_CFLAGS"
d9b9876f 28569
e6cc62c6
VS
28570 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28571echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
28572 if test "x$THREADS_OK" = "xyes"; then
28573 break;
28574 fi
d9b9876f 28575
009fead0
VZ
28576 THREADS_LINK=""
28577 THREADS_CFLAGS=""
28578 done
4f14bcd8 28579
009fead0
VZ
28580 if test "x$THREADS_OK" != "xyes"; then
28581 wxUSE_THREADS=no
e6cc62c6
VS
28582 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28583echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 28584 else
db82f09e
VZ
28585 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28586 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 28587
e6cc62c6
VS
28588 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28589echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
28590 flag=no
28591 case "${host}" in
2b5f62a0
VZ
28592 *-aix*)
28593 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28594 flag="-D_THREAD_SAFE"
28595 ;;
28596 *-freebsd*)
009fead0
VZ
28597 flag="-D_THREAD_SAFE"
28598 ;;
06313569
GD
28599 *-hp-hpux* )
28600 flag="-D_REENTRANT"
4f5a7f74
VZ
28601 if test "x$GCC" != "xyes"; then
28602 flag="$flag -D_RWSTD_MULTI_THREAD"
28603 fi
06313569 28604 ;;
009fead0
VZ
28605 *solaris* | alpha*-osf*)
28606 flag="-D_REENTRANT"
28607 ;;
28608 esac
e6cc62c6
VS
28609 echo "$as_me:$LINENO: result: ${flag}" >&5
28610echo "${ECHO_T}${flag}" >&6
009fead0 28611 if test "x$flag" != xno; then
04727afd 28612 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
28613 fi
28614
009fead0 28615 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 28616 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
28617 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28618 fi
28619 fi
4f14bcd8 28620 fi
4f14bcd8 28621
7274f1c7 28622 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28623
28624for ac_func in thr_setconcurrency
4f14bcd8 28625do
e6cc62c6
VS
28626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28627echo "$as_me:$LINENO: checking for $ac_func" >&5
28628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28629if eval "test \"\${$as_ac_var+set}\" = set"; then
28630 echo $ECHO_N "(cached) $ECHO_C" >&6
28631else
28632 cat >conftest.$ac_ext <<_ACEOF
28633#line $LINENO "configure"
28634/* confdefs.h. */
28635_ACEOF
28636cat confdefs.h >>conftest.$ac_ext
28637cat >>conftest.$ac_ext <<_ACEOF
28638/* end confdefs.h. */
4f14bcd8 28639/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28640 which can conflict with char $ac_func (); below.
28641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28642 <limits.h> exists even on freestanding compilers. */
28643#ifdef __STDC__
28644# include <limits.h>
28645#else
28646# include <assert.h>
28647#endif
4f14bcd8 28648/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28649#ifdef __cplusplus
28650extern "C"
28651{
28652#endif
4f14bcd8 28653/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28654 builtin and then its argument prototype would still apply. */
28655char $ac_func ();
4f14bcd8
GD
28656/* The GNU C library defines this for functions which it implements
28657 to always fail with ENOSYS. Some functions are actually named
28658 something starting with __ and the normal name is an alias. */
28659#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28660choke me
28661#else
e6cc62c6
VS
28662char (*f) () = $ac_func;
28663#endif
28664#ifdef __cplusplus
28665}
4f14bcd8
GD
28666#endif
28667
e6cc62c6
VS
28668int
28669main ()
28670{
28671return f != $ac_func;
28672 ;
28673 return 0;
28674}
28675_ACEOF
28676rm -f conftest.$ac_objext conftest$ac_exeext
28677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28678 (eval $ac_link) 2>&5
28679 ac_status=$?
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); } &&
28682 { ac_try='test -s conftest$ac_exeext'
28683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28684 (eval $ac_try) 2>&5
28685 ac_status=$?
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); }; }; then
28688 eval "$as_ac_var=yes"
28689else
28690 echo "$as_me: failed program was:" >&5
28691sed 's/^/| /' conftest.$ac_ext >&5
28692
28693eval "$as_ac_var=no"
28694fi
28695rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28696fi
28697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28698echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28699if test `eval echo '${'$as_ac_var'}'` = yes; then
28700 cat >>confdefs.h <<_ACEOF
28701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28702_ACEOF
698dcdb6 28703
10f2d63a 28704fi
4f14bcd8 28705done
10f2d63a 28706
8284b0c5 28707
e6cc62c6
VS
28708
28709for ac_header in sched.h
4f14bcd8 28710do
e6cc62c6
VS
28711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28712if eval "test \"\${$as_ac_Header+set}\" = set"; then
28713 echo "$as_me:$LINENO: checking for $ac_header" >&5
28714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28715if eval "test \"\${$as_ac_Header+set}\" = set"; then
28716 echo $ECHO_N "(cached) $ECHO_C" >&6
28717fi
28718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28720else
28721 # Is the header compilable?
28722echo "$as_me:$LINENO: checking $ac_header usability" >&5
28723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28724cat >conftest.$ac_ext <<_ACEOF
28725#line $LINENO "configure"
28726/* confdefs.h. */
28727_ACEOF
28728cat confdefs.h >>conftest.$ac_ext
28729cat >>conftest.$ac_ext <<_ACEOF
28730/* end confdefs.h. */
28731$ac_includes_default
28732#include <$ac_header>
28733_ACEOF
28734rm -f conftest.$ac_objext
28735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28736 (eval $ac_compile) 2>&5
28737 ac_status=$?
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); } &&
28740 { ac_try='test -s conftest.$ac_objext'
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28743 ac_status=$?
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; }; then
28746 ac_header_compiler=yes
28747else
28748 echo "$as_me: failed program was:" >&5
28749sed 's/^/| /' conftest.$ac_ext >&5
28750
28751ac_header_compiler=no
28752fi
28753rm -f conftest.$ac_objext conftest.$ac_ext
28754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28755echo "${ECHO_T}$ac_header_compiler" >&6
28756
28757# Is the header present?
28758echo "$as_me:$LINENO: checking $ac_header presence" >&5
28759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28760cat >conftest.$ac_ext <<_ACEOF
28761#line $LINENO "configure"
28762/* confdefs.h. */
28763_ACEOF
28764cat confdefs.h >>conftest.$ac_ext
28765cat >>conftest.$ac_ext <<_ACEOF
28766/* end confdefs.h. */
28767#include <$ac_header>
28768_ACEOF
28769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28771 ac_status=$?
28772 grep -v '^ *+' conftest.er1 >conftest.err
28773 rm -f conftest.er1
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } >/dev/null; then
28777 if test -s conftest.err; then
28778 ac_cpp_err=$ac_c_preproc_warn_flag
28779 else
28780 ac_cpp_err=
28781 fi
28782else
28783 ac_cpp_err=yes
28784fi
28785if test -z "$ac_cpp_err"; then
28786 ac_header_preproc=yes
28787else
28788 echo "$as_me: failed program was:" >&5
28789sed 's/^/| /' conftest.$ac_ext >&5
28790
28791 ac_header_preproc=no
28792fi
28793rm -f conftest.err conftest.$ac_ext
28794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28795echo "${ECHO_T}$ac_header_preproc" >&6
28796
28797# So? What about this header?
28798case $ac_header_compiler:$ac_header_preproc in
28799 yes:no )
28800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28804 (
28805 cat <<\_ASBOX
28806## ------------------------------------ ##
28807## Report this to bug-autoconf@gnu.org. ##
28808## ------------------------------------ ##
28809_ASBOX
28810 ) |
28811 sed "s/^/$as_me: WARNING: /" >&2
28812 ;;
28813 no:yes )
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28820 (
28821 cat <<\_ASBOX
28822## ------------------------------------ ##
28823## Report this to bug-autoconf@gnu.org. ##
28824## ------------------------------------ ##
28825_ASBOX
28826 ) |
28827 sed "s/^/$as_me: WARNING: /" >&2
28828 ;;
28829esac
28830echo "$as_me:$LINENO: checking for $ac_header" >&5
28831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28832if eval "test \"\${$as_ac_Header+set}\" = set"; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28834else
28835 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 28836fi
e6cc62c6
VS
28837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28839
10f2d63a 28840fi
e6cc62c6
VS
28841if test `eval echo '${'$as_ac_Header'}'` = yes; then
28842 cat >>confdefs.h <<_ACEOF
28843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28844_ACEOF
28845
f6bcfd97 28846fi
e6cc62c6 28847
4f14bcd8 28848done
f6bcfd97 28849
009fead0 28850 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
28851 echo "$as_me:$LINENO: checking for sched_yield" >&5
28852echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
28853if test "${ac_cv_func_sched_yield+set}" = set; then
28854 echo $ECHO_N "(cached) $ECHO_C" >&6
28855else
28856 cat >conftest.$ac_ext <<_ACEOF
28857#line $LINENO "configure"
28858/* confdefs.h. */
28859_ACEOF
28860cat confdefs.h >>conftest.$ac_ext
28861cat >>conftest.$ac_ext <<_ACEOF
28862/* end confdefs.h. */
009fead0 28863/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28864 which can conflict with char sched_yield (); below.
28865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28866 <limits.h> exists even on freestanding compilers. */
28867#ifdef __STDC__
28868# include <limits.h>
28869#else
28870# include <assert.h>
28871#endif
4f14bcd8 28872/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28873#ifdef __cplusplus
28874extern "C"
28875{
28876#endif
4f14bcd8 28877/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28878 builtin and then its argument prototype would still apply. */
28879char sched_yield ();
009fead0
VZ
28880/* The GNU C library defines this for functions which it implements
28881 to always fail with ENOSYS. Some functions are actually named
28882 something starting with __ and the normal name is an alias. */
28883#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
28884choke me
28885#else
e6cc62c6
VS
28886char (*f) () = sched_yield;
28887#endif
28888#ifdef __cplusplus
28889}
009fead0
VZ
28890#endif
28891
e6cc62c6
VS
28892int
28893main ()
28894{
28895return f != sched_yield;
28896 ;
28897 return 0;
28898}
28899_ACEOF
28900rm -f conftest.$ac_objext conftest$ac_exeext
28901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28902 (eval $ac_link) 2>&5
28903 ac_status=$?
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } &&
28906 { ac_try='test -s conftest$ac_exeext'
28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908 (eval $ac_try) 2>&5
28909 ac_status=$?
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; }; then
28912 ac_cv_func_sched_yield=yes
28913else
28914 echo "$as_me: failed program was:" >&5
28915sed 's/^/| /' conftest.$ac_ext >&5
28916
28917ac_cv_func_sched_yield=no
28918fi
28919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28920fi
28921echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
28922echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
28923if test $ac_cv_func_sched_yield = yes; then
28924 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28925#define HAVE_SCHED_YIELD 1
e6cc62c6 28926_ACEOF
10f2d63a 28927
4f14bcd8 28928else
009fead0 28929
e6cc62c6
VS
28930 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
28931echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
28932if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
28933 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 28934else
e6cc62c6 28935 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28936LIBS="-lposix4 $LIBS"
e6cc62c6
VS
28937cat >conftest.$ac_ext <<_ACEOF
28938#line $LINENO "configure"
28939/* confdefs.h. */
28940_ACEOF
28941cat confdefs.h >>conftest.$ac_ext
28942cat >>conftest.$ac_ext <<_ACEOF
28943/* end confdefs.h. */
28944
4f14bcd8 28945/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28946#ifdef __cplusplus
28947extern "C"
28948#endif
4f14bcd8 28949/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28950 builtin and then its argument prototype would still apply. */
28951char sched_yield ();
28952int
28953main ()
28954{
28955sched_yield ();
28956 ;
28957 return 0;
28958}
28959_ACEOF
28960rm -f conftest.$ac_objext conftest$ac_exeext
28961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28962 (eval $ac_link) 2>&5
28963 ac_status=$?
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } &&
28966 { ac_try='test -s conftest$ac_exeext'
28967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968 (eval $ac_try) 2>&5
28969 ac_status=$?
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; }; then
28972 ac_cv_lib_posix4_sched_yield=yes
28973else
28974 echo "$as_me: failed program was:" >&5
28975sed 's/^/| /' conftest.$ac_ext >&5
28976
28977ac_cv_lib_posix4_sched_yield=no
28978fi
28979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28980LIBS=$ac_check_lib_save_LIBS
28981fi
28982echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
28983echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
28984if test $ac_cv_lib_posix4_sched_yield = yes; then
28985 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28986#define HAVE_SCHED_YIELD 1
e6cc62c6 28987_ACEOF
3d63bc3a 28988 POSIX4_LINK=" -lposix4"
4f14bcd8 28989else
e6cc62c6
VS
28990 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
28991echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
28992
54276ccf
VZ
28993fi
28994
e6cc62c6
VS
28995
28996
4f14bcd8 28997fi
698dcdb6 28998
009fead0 28999 fi
10f2d63a 29000
7274f1c7 29001 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29002 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29003echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29004if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29005 echo $ECHO_N "(cached) $ECHO_C" >&6
29006else
29007 cat >conftest.$ac_ext <<_ACEOF
29008#line $LINENO "configure"
29009/* confdefs.h. */
29010_ACEOF
29011cat confdefs.h >>conftest.$ac_ext
29012cat >>conftest.$ac_ext <<_ACEOF
29013/* end confdefs.h. */
009fead0 29014/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29015 which can conflict with char pthread_attr_getschedpolicy (); below.
29016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29017 <limits.h> exists even on freestanding compilers. */
29018#ifdef __STDC__
29019# include <limits.h>
29020#else
29021# include <assert.h>
29022#endif
4f14bcd8 29023/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29024#ifdef __cplusplus
29025extern "C"
29026{
29027#endif
4f14bcd8 29028/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29029 builtin and then its argument prototype would still apply. */
29030char pthread_attr_getschedpolicy ();
009fead0
VZ
29031/* The GNU C library defines this for functions which it implements
29032 to always fail with ENOSYS. Some functions are actually named
29033 something starting with __ and the normal name is an alias. */
29034#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29035choke me
29036#else
e6cc62c6
VS
29037char (*f) () = pthread_attr_getschedpolicy;
29038#endif
29039#ifdef __cplusplus
29040}
009fead0
VZ
29041#endif
29042
e6cc62c6
VS
29043int
29044main ()
29045{
29046return f != pthread_attr_getschedpolicy;
29047 ;
29048 return 0;
29049}
29050_ACEOF
29051rm -f conftest.$ac_objext conftest$ac_exeext
29052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29053 (eval $ac_link) 2>&5
29054 ac_status=$?
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); } &&
29057 { ac_try='test -s conftest$ac_exeext'
29058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29059 (eval $ac_try) 2>&5
29060 ac_status=$?
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); }; }; then
29063 ac_cv_func_pthread_attr_getschedpolicy=yes
29064else
29065 echo "$as_me: failed program was:" >&5
29066sed 's/^/| /' conftest.$ac_ext >&5
29067
29068ac_cv_func_pthread_attr_getschedpolicy=no
29069fi
29070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29071fi
29072echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29073echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29074if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29075 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29076echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29077if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29078 echo $ECHO_N "(cached) $ECHO_C" >&6
29079else
29080 cat >conftest.$ac_ext <<_ACEOF
29081#line $LINENO "configure"
29082/* confdefs.h. */
29083_ACEOF
29084cat confdefs.h >>conftest.$ac_ext
29085cat >>conftest.$ac_ext <<_ACEOF
29086/* end confdefs.h. */
a0b9e27f 29087/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29088 which can conflict with char pthread_attr_setschedparam (); below.
29089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29090 <limits.h> exists even on freestanding compilers. */
29091#ifdef __STDC__
29092# include <limits.h>
29093#else
29094# include <assert.h>
29095#endif
422107f9 29096/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29097#ifdef __cplusplus
29098extern "C"
29099{
29100#endif
422107f9 29101/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29102 builtin and then its argument prototype would still apply. */
29103char pthread_attr_setschedparam ();
009fead0
VZ
29104/* The GNU C library defines this for functions which it implements
29105 to always fail with ENOSYS. Some functions are actually named
29106 something starting with __ and the normal name is an alias. */
29107#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29108choke me
29109#else
e6cc62c6
VS
29110char (*f) () = pthread_attr_setschedparam;
29111#endif
29112#ifdef __cplusplus
29113}
009fead0
VZ
29114#endif
29115
e6cc62c6
VS
29116int
29117main ()
29118{
29119return f != pthread_attr_setschedparam;
29120 ;
29121 return 0;
29122}
29123_ACEOF
29124rm -f conftest.$ac_objext conftest$ac_exeext
29125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29126 (eval $ac_link) 2>&5
29127 ac_status=$?
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); } &&
29130 { ac_try='test -s conftest$ac_exeext'
29131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29132 (eval $ac_try) 2>&5
29133 ac_status=$?
29134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135 (exit $ac_status); }; }; then
29136 ac_cv_func_pthread_attr_setschedparam=yes
29137else
29138 echo "$as_me: failed program was:" >&5
29139sed 's/^/| /' conftest.$ac_ext >&5
29140
29141ac_cv_func_pthread_attr_setschedparam=no
29142fi
29143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29144fi
29145echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29146echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29147if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29148 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29149echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29150if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29151 echo $ECHO_N "(cached) $ECHO_C" >&6
29152else
29153 cat >conftest.$ac_ext <<_ACEOF
29154#line $LINENO "configure"
29155/* confdefs.h. */
29156_ACEOF
29157cat confdefs.h >>conftest.$ac_ext
29158cat >>conftest.$ac_ext <<_ACEOF
29159/* end confdefs.h. */
ef33c576 29160/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29161 which can conflict with char sched_get_priority_max (); below.
29162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29163 <limits.h> exists even on freestanding compilers. */
29164#ifdef __STDC__
29165# include <limits.h>
29166#else
29167# include <assert.h>
29168#endif
4f14bcd8 29169/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29170#ifdef __cplusplus
29171extern "C"
29172{
29173#endif
4f14bcd8 29174/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29175 builtin and then its argument prototype would still apply. */
29176char sched_get_priority_max ();
009fead0
VZ
29177/* The GNU C library defines this for functions which it implements
29178 to always fail with ENOSYS. Some functions are actually named
29179 something starting with __ and the normal name is an alias. */
29180#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29181choke me
29182#else
e6cc62c6
VS
29183char (*f) () = sched_get_priority_max;
29184#endif
29185#ifdef __cplusplus
29186}
009fead0
VZ
29187#endif
29188
e6cc62c6
VS
29189int
29190main ()
29191{
29192return f != sched_get_priority_max;
29193 ;
29194 return 0;
29195}
29196_ACEOF
29197rm -f conftest.$ac_objext conftest$ac_exeext
29198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29199 (eval $ac_link) 2>&5
29200 ac_status=$?
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); } &&
29203 { ac_try='test -s conftest$ac_exeext'
29204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205 (eval $ac_try) 2>&5
29206 ac_status=$?
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); }; }; then
29209 ac_cv_func_sched_get_priority_max=yes
29210else
29211 echo "$as_me: failed program was:" >&5
29212sed 's/^/| /' conftest.$ac_ext >&5
29213
29214ac_cv_func_sched_get_priority_max=no
29215fi
29216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29217fi
29218echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29219echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29220if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29221 HAVE_PRIOR_FUNCS=1
29222else
e6cc62c6
VS
29223 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29224echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29225if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29227else
e6cc62c6 29228 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29229LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29230cat >conftest.$ac_ext <<_ACEOF
29231#line $LINENO "configure"
29232/* confdefs.h. */
29233_ACEOF
29234cat confdefs.h >>conftest.$ac_ext
29235cat >>conftest.$ac_ext <<_ACEOF
29236/* end confdefs.h. */
29237
422107f9 29238/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29239#ifdef __cplusplus
29240extern "C"
29241#endif
422107f9 29242/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29243 builtin and then its argument prototype would still apply. */
29244char sched_get_priority_max ();
29245int
29246main ()
29247{
29248sched_get_priority_max ();
29249 ;
29250 return 0;
29251}
29252_ACEOF
29253rm -f conftest.$ac_objext conftest$ac_exeext
29254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29255 (eval $ac_link) 2>&5
29256 ac_status=$?
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); } &&
29259 { ac_try='test -s conftest$ac_exeext'
29260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29261 (eval $ac_try) 2>&5
29262 ac_status=$?
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; }; then
29265 ac_cv_lib_posix4_sched_get_priority_max=yes
29266else
29267 echo "$as_me: failed program was:" >&5
29268sed 's/^/| /' conftest.$ac_ext >&5
29269
29270ac_cv_lib_posix4_sched_get_priority_max=no
29271fi
29272rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29273LIBS=$ac_check_lib_save_LIBS
29274fi
29275echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29276echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29277if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29278
7274f1c7
RL
29279 HAVE_PRIOR_FUNCS=1
29280 POSIX4_LINK=" -lposix4"
e6cc62c6 29281
4f14bcd8 29282fi
463abc64 29283
e6cc62c6 29284
328a083c 29285fi
463abc64 29286
e6cc62c6 29287
7b4a847f 29288fi
579d8138 29289
e6cc62c6 29290
5c6fa7d2 29291fi
52127426 29292
8284b0c5 29293
7274f1c7 29294 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29295 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29296#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29297_ACEOF
463abc64 29298
7274f1c7 29299 else
e6cc62c6
VS
29300 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29301echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29302 fi
463abc64 29303
e6cc62c6
VS
29304 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29305echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29306if test "${ac_cv_func_pthread_cancel+set}" = set; then
29307 echo $ECHO_N "(cached) $ECHO_C" >&6
29308else
29309 cat >conftest.$ac_ext <<_ACEOF
29310#line $LINENO "configure"
29311/* confdefs.h. */
29312_ACEOF
29313cat confdefs.h >>conftest.$ac_ext
29314cat >>conftest.$ac_ext <<_ACEOF
29315/* end confdefs.h. */
009fead0 29316/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29317 which can conflict with char pthread_cancel (); below.
29318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29319 <limits.h> exists even on freestanding compilers. */
29320#ifdef __STDC__
29321# include <limits.h>
29322#else
29323# include <assert.h>
29324#endif
422107f9 29325/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29326#ifdef __cplusplus
29327extern "C"
29328{
29329#endif
422107f9 29330/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29331 builtin and then its argument prototype would still apply. */
29332char pthread_cancel ();
009fead0
VZ
29333/* The GNU C library defines this for functions which it implements
29334 to always fail with ENOSYS. Some functions are actually named
29335 something starting with __ and the normal name is an alias. */
29336#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29337choke me
29338#else
e6cc62c6
VS
29339char (*f) () = pthread_cancel;
29340#endif
29341#ifdef __cplusplus
29342}
009fead0
VZ
29343#endif
29344
e6cc62c6
VS
29345int
29346main ()
29347{
29348return f != pthread_cancel;
29349 ;
29350 return 0;
29351}
29352_ACEOF
29353rm -f conftest.$ac_objext conftest$ac_exeext
29354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29355 (eval $ac_link) 2>&5
29356 ac_status=$?
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); } &&
29359 { ac_try='test -s conftest$ac_exeext'
29360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29361 (eval $ac_try) 2>&5
29362 ac_status=$?
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); }; }; then
29365 ac_cv_func_pthread_cancel=yes
29366else
29367 echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
29370ac_cv_func_pthread_cancel=no
29371fi
29372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29373fi
29374echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29375echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29376if test $ac_cv_func_pthread_cancel = yes; then
29377 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29378#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29379_ACEOF
4f14bcd8 29380
698dcdb6 29381else
e6cc62c6
VS
29382 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29383echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29384fi
29385
5c6fa7d2 29386
e6cc62c6
VS
29387 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29388echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29389if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29390 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29391else
e6cc62c6
VS
29392
29393 cat >conftest.$ac_ext <<_ACEOF
29394#line $LINENO "configure"
29395/* confdefs.h. */
29396_ACEOF
29397cat confdefs.h >>conftest.$ac_ext
29398cat >>conftest.$ac_ext <<_ACEOF
29399/* end confdefs.h. */
4f14bcd8 29400#include <pthread.h>
e6cc62c6
VS
29401int
29402main ()
29403{
4f14bcd8 29404
7274f1c7
RL
29405 pthread_cleanup_push(NULL, NULL);
29406 pthread_cleanup_pop(0);
e6cc62c6
VS
29407
29408 ;
29409 return 0;
29410}
29411_ACEOF
29412rm -f conftest.$ac_objext
29413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29414 (eval $ac_compile) 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); } &&
29418 { ac_try='test -s conftest.$ac_objext'
29419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420 (eval $ac_try) 2>&5
29421 ac_status=$?
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
29424
7274f1c7 29425 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29426
4f14bcd8 29427else
e6cc62c6
VS
29428 echo "$as_me: failed program was:" >&5
29429sed 's/^/| /' conftest.$ac_ext >&5
29430
29431
7274f1c7 29432 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29433
247f5006 29434fi
e6cc62c6 29435rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29436
e6cc62c6
VS
29437fi
29438echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29439echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29440
7274f1c7 29441 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29442 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29443#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29444_ACEOF
c7a2bf27 29445
7274f1c7 29446 fi
4f14bcd8 29447
e6cc62c6
VS
29448
29449 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29450echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29451if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29453else
e6cc62c6
VS
29454
29455 cat >conftest.$ac_ext <<_ACEOF
29456#line $LINENO "configure"
29457/* confdefs.h. */
29458_ACEOF
29459cat confdefs.h >>conftest.$ac_ext
29460cat >>conftest.$ac_ext <<_ACEOF
29461/* end confdefs.h. */
4f14bcd8 29462#include <pthread.h>
e6cc62c6
VS
29463int
29464main ()
29465{
4f14bcd8 29466
7274f1c7
RL
29467 pthread_mutexattr_t attr;
29468 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29469
29470 ;
29471 return 0;
29472}
29473_ACEOF
29474rm -f conftest.$ac_objext
29475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29476 (eval $ac_compile) 2>&5
29477 ac_status=$?
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
29480 { ac_try='test -s conftest.$ac_objext'
29481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482 (eval $ac_try) 2>&5
29483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
29486
7274f1c7 29487 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29488
3fed1840 29489else
e6cc62c6
VS
29490 echo "$as_me: failed program was:" >&5
29491sed 's/^/| /' conftest.$ac_ext >&5
29492
29493
7274f1c7 29494 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29495
29496
247f5006 29497fi
e6cc62c6 29498rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29499
e6cc62c6
VS
29500fi
29501echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29502echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29503
7274f1c7 29504 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29505 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29506#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29507_ACEOF
4f14bcd8 29508
7274f1c7 29509 else
e6cc62c6
VS
29510 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29511echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29512if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29513 echo $ECHO_N "(cached) $ECHO_C" >&6
29514else
29515
29516 cat >conftest.$ac_ext <<_ACEOF
29517#line $LINENO "configure"
29518/* confdefs.h. */
29519_ACEOF
29520cat confdefs.h >>conftest.$ac_ext
29521cat >>conftest.$ac_ext <<_ACEOF
29522/* end confdefs.h. */
4f14bcd8 29523#include <pthread.h>
e6cc62c6
VS
29524int
29525main ()
29526{
4f14bcd8 29527
7274f1c7 29528 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29529
29530 ;
29531 return 0;
29532}
29533_ACEOF
29534rm -f conftest.$ac_objext
29535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29536 (eval $ac_compile) 2>&5
29537 ac_status=$?
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); } &&
29540 { ac_try='test -s conftest.$ac_objext'
29541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542 (eval $ac_try) 2>&5
29543 ac_status=$?
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; }; then
29546
7274f1c7 29547 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29548
698dcdb6 29549else
e6cc62c6
VS
29550 echo "$as_me: failed program was:" >&5
29551sed 's/^/| /' conftest.$ac_ext >&5
29552
29553
7274f1c7 29554 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29555
29556
247f5006 29557fi
e6cc62c6 29558rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29559
e6cc62c6
VS
29560fi
29561echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29562echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29563 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29564 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29565#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29566_ACEOF
3fed1840 29567
7274f1c7 29568 else
e6cc62c6
VS
29569 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29570echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
29571 fi
29572 fi
7274f1c7 29573 fi
3fed1840 29574
a0b9e27f
MB
29575else
29576 if test "$wxUSE_THREADS" = "yes" ; then
29577 case "${host}" in
29578 *-*-mingw32* )
e6cc62c6
VS
29579 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29580echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29581if test "${wx_cv_cflags_mthread+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 29583else
e6cc62c6 29584
ca8e52b3
VZ
29585 CFLAGS_OLD="$CFLAGS"
29586 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
29587 cat >conftest.$ac_ext <<_ACEOF
29588#line $LINENO "configure"
29589/* confdefs.h. */
29590_ACEOF
29591cat confdefs.h >>conftest.$ac_ext
29592cat >>conftest.$ac_ext <<_ACEOF
29593/* end confdefs.h. */
29594
29595int
29596main ()
29597{
ca8e52b3 29598
e6cc62c6
VS
29599 ;
29600 return 0;
29601}
29602_ACEOF
29603rm -f conftest.$ac_objext
29604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29605 (eval $ac_compile) 2>&5
29606 ac_status=$?
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); } &&
29609 { ac_try='test -s conftest.$ac_objext'
29610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29611 (eval $ac_try) 2>&5
29612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; }; then
ca8e52b3
VZ
29615 wx_cv_cflags_mthread=yes
29616else
e6cc62c6
VS
29617 echo "$as_me: failed program was:" >&5
29618sed 's/^/| /' conftest.$ac_ext >&5
29619
29620wx_cv_cflags_mthread=no
29621
ca8e52b3 29622fi
e6cc62c6
VS
29623rm -f conftest.$ac_objext conftest.$ac_ext
29624
ca8e52b3 29625
e6cc62c6
VS
29626fi
29627echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29628echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
29629
29630 if test "$wx_cv_cflags_mthread" = "yes"; then
29631 CXXFLAGS="$CXXFLAGS -mthreads"
29632 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29633 LDFLAGS="$LDFLAGS -mthreads"
29634 else
29635 CFLAGS="$CFLAGS_OLD"
29636 fi
a0b9e27f
MB
29637 ;;
29638 esac
29639 fi
4f14bcd8
GD
29640fi
29641
29642if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 29643 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29644#define wxUSE_THREADS 1
e6cc62c6 29645_ACEOF
7b6058cd 29646
8284b0c5 29647
4f14bcd8 29648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 29649else
4f14bcd8 29650 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
29651 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29652echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
29653 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29654 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
29655 echo "$as_me:$LINENO: result: yes" >&5
29656echo "${ECHO_T}yes" >&6
4f14bcd8 29657 else
e6cc62c6
VS
29658 echo "$as_me:$LINENO: result: no" >&5
29659echo "${ECHO_T}no" >&6
4f14bcd8
GD
29660 fi
29661 fi
29662fi
29663
29664if test "$WXGTK20" = 1 ; then
e6cc62c6 29665 cat >>confdefs.h <<_ACEOF
4f14bcd8 29666#define __WXGTK20__ $WXGTK20
e6cc62c6 29667_ACEOF
4f14bcd8
GD
29668
29669 WXGTK12=1
10f2d63a 29670fi
4f14bcd8
GD
29671
29672if test "$WXGTK12" = 1 ; then
e6cc62c6 29673 cat >>confdefs.h <<_ACEOF
4f14bcd8 29674#define __WXGTK12__ $WXGTK12
e6cc62c6 29675_ACEOF
4f14bcd8 29676
10f2d63a 29677fi
698dcdb6 29678
4f14bcd8 29679if test "$WXGTK127" = 1 ; then
e6cc62c6 29680 cat >>confdefs.h <<_ACEOF
4f14bcd8 29681#define __WXGTK127__ $WXGTK127
e6cc62c6 29682_ACEOF
4f14bcd8 29683
698dcdb6 29684fi
10f2d63a 29685
4f14bcd8
GD
29686WXDEBUG=
29687
29688if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29689 WXDEBUG="-g"
29690 wxUSE_OPTIMISE=no
698dcdb6 29691fi
4f14bcd8
GD
29692
29693if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29694 wxUSE_DEBUG_INFO=yes
29695 WXDEBUG="-ggdb"
10f2d63a
VZ
29696fi
29697
4f14bcd8 29698if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 29699 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29700#define WXDEBUG 1
e6cc62c6 29701_ACEOF
4f14bcd8
GD
29702
29703 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 29704else
4f14bcd8
GD
29705 if test "$wxUSE_GTK" = 1 ; then
29706 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29707 fi
29708fi
29709
29710if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 29711 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29712#define wxUSE_MEMORY_TRACING 1
e6cc62c6 29713_ACEOF
4f14bcd8 29714
e6cc62c6 29715 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29716#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 29717_ACEOF
4f14bcd8 29718
e6cc62c6 29719 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29720#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 29721_ACEOF
4f14bcd8
GD
29722
29723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
29724fi
29725
29726if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 29727 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
29728fi
29729
29730PROFILE=
29731if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 29732 PROFILE=" -pg"
10f2d63a
VZ
29733fi
29734
009fead0
VZ
29735CODE_GEN_FLAGS=
29736CODE_GEN_FLAGS_CXX=
88e30f2b 29737if test "$GCC" = "yes" ; then
4f14bcd8
GD
29738 if test "$wxUSE_NO_RTTI" = "yes" ; then
29739 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 29740 fi
4f14bcd8
GD
29741 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
29742 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
29743 fi
29744 if test "$wxUSE_PERMISSIVE" = "yes" ; then
29745 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
29746 fi
4f14bcd8
GD
29747 if test "$USE_WIN32" = 1 ; then
29748 # I'm not even really sure what this was ever added to solve,
29749 # but someone added it for mingw native builds, so I guess
29750 # they had a reason, right??
29751 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
29752 fi
1d1b75ac 29753
2b5f62a0 29754 case "${host}" in
1d1b75ac
VZ
29755 powerpc*-*-aix* )
29756 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
29757 ;;
2b5f62a0
VZ
29758 *-hppa* )
29759 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
29760 ;;
1d1b75ac 29761 esac
4f14bcd8
GD
29762fi
29763
af7b5345 29764OPTIMISE=
4f14bcd8 29765if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
29766 if test "$GCC" = yes ; then
29767 OPTIMISE="-O0"
29768 fi
4f14bcd8
GD
29769else
29770 if test "$GCC" = yes ; then
29771 OPTIMISE="-O2"
af7b5345
VZ
29772
29773 case "${host}" in
4f14bcd8
GD
29774 i586-*-*|i686-*-* )
29775 OPTIMISE="${OPTIMISE} "
29776 ;;
29777 esac
29778 else
29779 OPTIMISE="-O"
29780 fi
29781fi
29782
8d90d2f2 29783
4f14bcd8 29784if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 29785 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29786#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 29787_ACEOF
4f14bcd8 29788
8284b0c5 29789
4f14bcd8
GD
29790 WXWIN_COMPATIBILITY_2_2="yes"
29791fi
29792
65d8ef1e 29793if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 29794 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29795#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 29796_ACEOF
4f14bcd8 29797
8d90d2f2
VZ
29798
29799 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
29800fi
29801
65d8ef1e 29802if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 29803 cat >>confdefs.h <<\_ACEOF
65d8ef1e 29804#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 29805_ACEOF
65d8ef1e
VS
29806
29807fi
29808
8284b0c5 29809
10f2d63a 29810if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 29811 cat >>confdefs.h <<\_ACEOF
10f2d63a 29812#define wxUSE_GUI 1
e6cc62c6 29813_ACEOF
10f2d63a 29814
8284b0c5 29815
10f2d63a 29816 else
e6cc62c6 29817 cat >>confdefs.h <<\_ACEOF
10f2d63a 29818#define wxUSE_NOGUI 1
e6cc62c6 29819_ACEOF
10f2d63a
VZ
29820
29821fi
29822
8284b0c5 29823
10f2d63a 29824if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 29825 cat >>confdefs.h <<\_ACEOF
10f2d63a 29826#define wxUSE_UNIX 1
e6cc62c6 29827_ACEOF
10f2d63a
VZ
29828
29829fi
29830
8284b0c5 29831
df5168c4
MB
29832if test "$wxUSE_STL" = "yes"; then
29833 cat >>confdefs.h <<\_ACEOF
29834#define wxUSE_STL 1
29835_ACEOF
29836
29837fi
29838
10f2d63a 29839if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 29840 cat >>confdefs.h <<\_ACEOF
10f2d63a 29841#define wxUSE_APPLE_IEEE 1
e6cc62c6 29842_ACEOF
10f2d63a
VZ
29843
29844fi
29845
1e6feb95 29846if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 29847 cat >>confdefs.h <<\_ACEOF
1e6feb95 29848#define wxUSE_TIMER 1
e6cc62c6 29849_ACEOF
1e6feb95
VZ
29850
29851fi
29852
10f2d63a 29853if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 29854 cat >>confdefs.h <<\_ACEOF
10f2d63a 29855#define wxUSE_WAVE 1
e6cc62c6 29856_ACEOF
10f2d63a
VZ
29857
29858fi
29859
1e6feb95 29860if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 29861 cat >>confdefs.h <<\_ACEOF
1e6feb95 29862#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 29863_ACEOF
1e6feb95
VZ
29864
29865fi
29866
29867if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 29868 cat >>confdefs.h <<\_ACEOF
1e6feb95 29869#define wxUSE_STOPWATCH 1
e6cc62c6 29870_ACEOF
1e6feb95
VZ
29871
29872fi
29873
29874if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 29875 cat >>confdefs.h <<\_ACEOF
1e6feb95 29876#define wxUSE_DATETIME 1
e6cc62c6 29877_ACEOF
1e6feb95
VZ
29878
29879fi
29880
10f2d63a 29881if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 29882 cat >>confdefs.h <<\_ACEOF
10f2d63a 29883#define wxUSE_FILE 1
e6cc62c6 29884_ACEOF
10f2d63a
VZ
29885
29886fi
29887
1e6feb95 29888if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 29889 cat >>confdefs.h <<\_ACEOF
1e6feb95 29890#define wxUSE_FFILE 1
e6cc62c6 29891_ACEOF
1e6feb95
VZ
29892
29893fi
29894
24528b0c 29895if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 29896 cat >>confdefs.h <<\_ACEOF
24528b0c 29897#define wxUSE_FILESYSTEM 1
e6cc62c6 29898_ACEOF
24528b0c
VS
29899
29900fi
29901
10f2d63a 29902if test "$wxUSE_FS_INET" = "yes"; then
e6cc62c6 29903 cat >>confdefs.h <<\_ACEOF
10f2d63a 29904#define wxUSE_FS_INET 1
e6cc62c6 29905_ACEOF
10f2d63a
VZ
29906
29907fi
29908
29909if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 29910 cat >>confdefs.h <<\_ACEOF
10f2d63a 29911#define wxUSE_FS_ZIP 1
e6cc62c6 29912_ACEOF
10f2d63a
VZ
29913
29914fi
29915
29916if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 29917 cat >>confdefs.h <<\_ACEOF
10f2d63a 29918#define wxUSE_ZIPSTREAM 1
e6cc62c6 29919_ACEOF
10f2d63a
VZ
29920
29921fi
29922
eb4efbdc 29923if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 29924 cat >>confdefs.h <<\_ACEOF
eb4efbdc 29925#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 29926_ACEOF
eb4efbdc
VZ
29927
29928fi
29929
4f3c5f06 29930if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 29931 cat >>confdefs.h <<\_ACEOF
4f3c5f06 29932#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 29933_ACEOF
4f3c5f06
VZ
29934
29935fi
29936
10f2d63a 29937if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 29938 cat >>confdefs.h <<\_ACEOF
10f2d63a 29939#define wxUSE_BUSYINFO 1
e6cc62c6 29940_ACEOF
10f2d63a
VZ
29941
29942fi
29943
29944if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 29945 cat >>confdefs.h <<\_ACEOF
10f2d63a 29946#define wxUSE_STD_IOSTREAM 1
e6cc62c6 29947_ACEOF
10f2d63a
VZ
29948
29949fi
29950
a3a584a7 29951if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 29952 cat >>confdefs.h <<\_ACEOF
a3a584a7 29953#define wxUSE_TEXTBUFFER 1
e6cc62c6 29954_ACEOF
a3a584a7
VZ
29955
29956fi
29957
10f2d63a 29958if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 29959 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
29960 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
29961echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 29962 else
e6cc62c6 29963 cat >>confdefs.h <<\_ACEOF
10f2d63a 29964#define wxUSE_TEXTFILE 1
e6cc62c6 29965_ACEOF
10f2d63a
VZ
29966
29967 fi
29968fi
29969
29970if test "$wxUSE_CONFIG" = "yes" ; then
29971 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
29972 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
29973echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 29974 else
e6cc62c6 29975 cat >>confdefs.h <<\_ACEOF
10f2d63a 29976#define wxUSE_CONFIG 1
e6cc62c6 29977_ACEOF
10f2d63a
VZ
29978
29979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
29980 fi
29981fi
29982
29983if test "$wxUSE_INTL" = "yes" ; then
29984 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
29985 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
29986echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 29987 else
e6cc62c6 29988 cat >>confdefs.h <<\_ACEOF
10f2d63a 29989#define wxUSE_INTL 1
e6cc62c6 29990_ACEOF
10f2d63a
VZ
29991
29992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 29993 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
29994 fi
29995fi
29996
29997if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 29998 cat >>confdefs.h <<\_ACEOF
10f2d63a 29999#define wxUSE_LOG 1
e6cc62c6 30000_ACEOF
10f2d63a 30001
8284b0c5 30002
d73be714 30003 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30004 cat >>confdefs.h <<\_ACEOF
d73be714 30005#define wxUSE_LOGGUI 1
e6cc62c6 30006_ACEOF
d73be714
VZ
30007
30008 fi
30009
30010 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30011 cat >>confdefs.h <<\_ACEOF
d73be714 30012#define wxUSE_LOGWINDOW 1
e6cc62c6 30013_ACEOF
69d27ff7
MB
30014
30015 fi
30016
30017 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30018 cat >>confdefs.h <<\_ACEOF
69d27ff7 30019#define wxUSE_LOG_DIALOG 1
e6cc62c6 30020_ACEOF
d73be714
VZ
30021
30022 fi
10f2d63a
VZ
30023fi
30024
30025if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30026 cat >>confdefs.h <<\_ACEOF
10f2d63a 30027#define wxUSE_LONGLONG 1
e6cc62c6 30028_ACEOF
10f2d63a
VZ
30029
30030fi
30031
e8f65ba6 30032if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30033 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30034#define wxUSE_GEOMETRY 1
e6cc62c6 30035_ACEOF
e8f65ba6
RR
30036
30037fi
30038
10f2d63a 30039if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30040 cat >>confdefs.h <<\_ACEOF
10f2d63a 30041#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30042_ACEOF
10f2d63a 30043
70f7a477 30044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30045fi
30046
30047if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30048 cat >>confdefs.h <<\_ACEOF
10f2d63a 30049#define wxUSE_STREAMS 1
e6cc62c6 30050_ACEOF
10f2d63a
VZ
30051
30052fi
30053
5c6fa7d2 30054
8284b0c5 30055if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30056
30057for ac_func in strptime
83307f33 30058do
e6cc62c6
VS
30059as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30060echo "$as_me:$LINENO: checking for $ac_func" >&5
30061echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30062if eval "test \"\${$as_ac_var+set}\" = set"; then
30063 echo $ECHO_N "(cached) $ECHO_C" >&6
30064else
30065 cat >conftest.$ac_ext <<_ACEOF
30066#line $LINENO "configure"
30067/* confdefs.h. */
30068_ACEOF
30069cat confdefs.h >>conftest.$ac_ext
30070cat >>conftest.$ac_ext <<_ACEOF
30071/* end confdefs.h. */
83307f33 30072/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30073 which can conflict with char $ac_func (); below.
30074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30075 <limits.h> exists even on freestanding compilers. */
30076#ifdef __STDC__
30077# include <limits.h>
30078#else
30079# include <assert.h>
30080#endif
83307f33 30081/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30082#ifdef __cplusplus
30083extern "C"
30084{
30085#endif
83307f33 30086/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30087 builtin and then its argument prototype would still apply. */
30088char $ac_func ();
83307f33
VZ
30089/* The GNU C library defines this for functions which it implements
30090 to always fail with ENOSYS. Some functions are actually named
30091 something starting with __ and the normal name is an alias. */
30092#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30093choke me
30094#else
e6cc62c6
VS
30095char (*f) () = $ac_func;
30096#endif
30097#ifdef __cplusplus
30098}
83307f33
VZ
30099#endif
30100
e6cc62c6
VS
30101int
30102main ()
30103{
30104return f != $ac_func;
30105 ;
30106 return 0;
30107}
30108_ACEOF
30109rm -f conftest.$ac_objext conftest$ac_exeext
30110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30111 (eval $ac_link) 2>&5
30112 ac_status=$?
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } &&
30115 { ac_try='test -s conftest$ac_exeext'
30116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30117 (eval $ac_try) 2>&5
30118 ac_status=$?
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); }; }; then
30121 eval "$as_ac_var=yes"
30122else
30123 echo "$as_me: failed program was:" >&5
30124sed 's/^/| /' conftest.$ac_ext >&5
30125
30126eval "$as_ac_var=no"
30127fi
30128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30129fi
30130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30132if test `eval echo '${'$as_ac_var'}'` = yes; then
30133 cat >>confdefs.h <<_ACEOF
30134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30135_ACEOF
83307f33 30136
83307f33
VZ
30137fi
30138done
30139
5c6fa7d2 30140
e6cc62c6
VS
30141 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30142echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30143if test "${wx_cv_var_timezone+set}" = set; then
30144 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30145else
e6cc62c6
VS
30146
30147 cat >conftest.$ac_ext <<_ACEOF
30148#line $LINENO "configure"
30149/* confdefs.h. */
30150_ACEOF
30151cat confdefs.h >>conftest.$ac_ext
30152cat >>conftest.$ac_ext <<_ACEOF
30153/* end confdefs.h. */
360d6699 30154
b4085ce6 30155 #include <time.h>
e6cc62c6
VS
30156
30157int
30158main ()
30159{
360d6699
VZ
30160
30161 int tz;
4f11a343 30162 tz = timezone;
e6cc62c6
VS
30163
30164 ;
30165 return 0;
30166}
30167_ACEOF
30168rm -f conftest.$ac_objext
30169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30170 (eval $ac_compile) 2>&5
30171 ac_status=$?
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } &&
30174 { ac_try='test -s conftest.$ac_objext'
30175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30176 (eval $ac_try) 2>&5
30177 ac_status=$?
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); }; }; then
30180
4f11a343 30181 wx_cv_var_timezone=timezone
e6cc62c6 30182
360d6699 30183else
e6cc62c6
VS
30184 echo "$as_me: failed program was:" >&5
30185sed 's/^/| /' conftest.$ac_ext >&5
30186
30187
30188 cat >conftest.$ac_ext <<_ACEOF
30189#line $LINENO "configure"
30190/* confdefs.h. */
30191_ACEOF
30192cat confdefs.h >>conftest.$ac_ext
30193cat >>conftest.$ac_ext <<_ACEOF
30194/* end confdefs.h. */
360d6699 30195
b4085ce6 30196 #include <time.h>
e6cc62c6
VS
30197
30198int
30199main ()
30200{
360d6699
VZ
30201
30202 int tz;
30203 tz = _timezone;
e6cc62c6
VS
30204
30205 ;
30206 return 0;
30207}
30208_ACEOF
30209rm -f conftest.$ac_objext
30210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30211 (eval $ac_compile) 2>&5
30212 ac_status=$?
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); } &&
30215 { ac_try='test -s conftest.$ac_objext'
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30218 ac_status=$?
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; }; then
30221
360d6699 30222 wx_cv_var_timezone=_timezone
e6cc62c6 30223
5357c8e8 30224else
e6cc62c6
VS
30225 echo "$as_me: failed program was:" >&5
30226sed 's/^/| /' conftest.$ac_ext >&5
30227
30228
30229 cat >conftest.$ac_ext <<_ACEOF
30230#line $LINENO "configure"
30231/* confdefs.h. */
30232_ACEOF
30233cat confdefs.h >>conftest.$ac_ext
30234cat >>conftest.$ac_ext <<_ACEOF
30235/* end confdefs.h. */
5357c8e8 30236
b4085ce6 30237 #include <time.h>
e6cc62c6
VS
30238
30239int
30240main ()
30241{
5357c8e8
VZ
30242
30243 int tz;
4f11a343 30244 tz = __timezone;
e6cc62c6
VS
30245
30246 ;
30247 return 0;
30248}
30249_ACEOF
30250rm -f conftest.$ac_objext
30251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30252 (eval $ac_compile) 2>&5
30253 ac_status=$?
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); } &&
30256 { ac_try='test -s conftest.$ac_objext'
30257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30258 (eval $ac_try) 2>&5
30259 ac_status=$?
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); }; }; then
30262
4f11a343 30263 wx_cv_var_timezone=__timezone
e6cc62c6 30264
360d6699 30265else
e6cc62c6
VS
30266 echo "$as_me: failed program was:" >&5
30267sed 's/^/| /' conftest.$ac_ext >&5
30268
30269
f9bc1684 30270 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30271 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30272echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30273 fi
e6cc62c6
VS
30274
30275
7b4a847f 30276fi
e6cc62c6
VS
30277rm -f conftest.$ac_objext conftest.$ac_ext
30278
30279
5c6fa7d2 30280fi
e6cc62c6
VS
30281rm -f conftest.$ac_objext conftest.$ac_ext
30282
30283
247f5006 30284fi
e6cc62c6 30285rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30286
e6cc62c6
VS
30287
30288fi
30289echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30290echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30291
f9bc1684 30292 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30293 cat >>confdefs.h <<_ACEOF
360d6699 30294#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30295_ACEOF
360d6699 30296
f9bc1684 30297 fi
698dcdb6 30298
e6cc62c6
VS
30299
30300for ac_func in localtime
afc31813 30301do
e6cc62c6
VS
30302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30303echo "$as_me:$LINENO: checking for $ac_func" >&5
30304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30305if eval "test \"\${$as_ac_var+set}\" = set"; then
30306 echo $ECHO_N "(cached) $ECHO_C" >&6
30307else
30308 cat >conftest.$ac_ext <<_ACEOF
30309#line $LINENO "configure"
30310/* confdefs.h. */
30311_ACEOF
30312cat confdefs.h >>conftest.$ac_ext
30313cat >>conftest.$ac_ext <<_ACEOF
30314/* end confdefs.h. */
afc31813 30315/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30316 which can conflict with char $ac_func (); below.
30317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30318 <limits.h> exists even on freestanding compilers. */
30319#ifdef __STDC__
30320# include <limits.h>
30321#else
30322# include <assert.h>
30323#endif
afc31813 30324/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30325#ifdef __cplusplus
30326extern "C"
30327{
30328#endif
afc31813 30329/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30330 builtin and then its argument prototype would still apply. */
30331char $ac_func ();
afc31813
VZ
30332/* The GNU C library defines this for functions which it implements
30333 to always fail with ENOSYS. Some functions are actually named
30334 something starting with __ and the normal name is an alias. */
30335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30336choke me
30337#else
e6cc62c6
VS
30338char (*f) () = $ac_func;
30339#endif
30340#ifdef __cplusplus
30341}
afc31813
VZ
30342#endif
30343
e6cc62c6
VS
30344int
30345main ()
30346{
30347return f != $ac_func;
30348 ;
30349 return 0;
30350}
30351_ACEOF
30352rm -f conftest.$ac_objext conftest$ac_exeext
30353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30354 (eval $ac_link) 2>&5
30355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } &&
30358 { ac_try='test -s conftest$ac_exeext'
30359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30360 (eval $ac_try) 2>&5
30361 ac_status=$?
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); }; }; then
30364 eval "$as_ac_var=yes"
30365else
30366 echo "$as_me: failed program was:" >&5
30367sed 's/^/| /' conftest.$ac_ext >&5
30368
30369eval "$as_ac_var=no"
30370fi
30371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30372fi
30373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30374echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30375if test `eval echo '${'$as_ac_var'}'` = yes; then
30376 cat >>confdefs.h <<_ACEOF
30377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30378_ACEOF
afc31813 30379
afc31813
VZ
30380fi
30381done
30382
5c6fa7d2 30383
8284b0c5 30384 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30385 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30386echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30387if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30389else
e6cc62c6
VS
30390
30391 cat >conftest.$ac_ext <<_ACEOF
30392#line $LINENO "configure"
30393/* confdefs.h. */
30394_ACEOF
30395cat confdefs.h >>conftest.$ac_ext
30396cat >>conftest.$ac_ext <<_ACEOF
30397/* end confdefs.h. */
0470b1e6 30398
b4085ce6 30399 #include <time.h>
e6cc62c6
VS
30400
30401int
30402main ()
30403{
0470b1e6
VZ
30404
30405 struct tm tm;
30406 tm.tm_gmtoff++;
e6cc62c6
VS
30407
30408 ;
30409 return 0;
30410}
30411_ACEOF
30412rm -f conftest.$ac_objext
30413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30414 (eval $ac_compile) 2>&5
30415 ac_status=$?
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); } &&
30418 { ac_try='test -s conftest.$ac_objext'
30419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30420 (eval $ac_try) 2>&5
30421 ac_status=$?
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; }; then
30424
f03a98d8 30425 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30426
0470b1e6 30427else
e6cc62c6
VS
30428 echo "$as_me: failed program was:" >&5
30429sed 's/^/| /' conftest.$ac_ext >&5
30430
30431wx_cv_struct_tm_has_gmtoff=no
30432
247f5006 30433fi
e6cc62c6 30434rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30435
e6cc62c6
VS
30436fi
30437echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30438echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30439 fi
30440
30441 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30442 cat >>confdefs.h <<\_ACEOF
6232543b 30443#define WX_GMTOFF_IN_TM 1
e6cc62c6 30444_ACEOF
0470b1e6 30445
3fcdd07b
VZ
30446 fi
30447
e6cc62c6
VS
30448
30449
30450for ac_func in gettimeofday ftime
3fcdd07b 30451do
e6cc62c6
VS
30452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30453echo "$as_me:$LINENO: checking for $ac_func" >&5
30454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30455if eval "test \"\${$as_ac_var+set}\" = set"; then
30456 echo $ECHO_N "(cached) $ECHO_C" >&6
30457else
30458 cat >conftest.$ac_ext <<_ACEOF
30459#line $LINENO "configure"
30460/* confdefs.h. */
30461_ACEOF
30462cat confdefs.h >>conftest.$ac_ext
30463cat >>conftest.$ac_ext <<_ACEOF
30464/* end confdefs.h. */
3fcdd07b 30465/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30466 which can conflict with char $ac_func (); below.
30467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30468 <limits.h> exists even on freestanding compilers. */
30469#ifdef __STDC__
30470# include <limits.h>
30471#else
30472# include <assert.h>
30473#endif
3fcdd07b 30474/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30475#ifdef __cplusplus
30476extern "C"
30477{
30478#endif
3fcdd07b 30479/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30480 builtin and then its argument prototype would still apply. */
30481char $ac_func ();
3fcdd07b
VZ
30482/* The GNU C library defines this for functions which it implements
30483 to always fail with ENOSYS. Some functions are actually named
30484 something starting with __ and the normal name is an alias. */
30485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30486choke me
30487#else
e6cc62c6
VS
30488char (*f) () = $ac_func;
30489#endif
30490#ifdef __cplusplus
30491}
3fcdd07b
VZ
30492#endif
30493
e6cc62c6
VS
30494int
30495main ()
30496{
30497return f != $ac_func;
30498 ;
30499 return 0;
30500}
30501_ACEOF
30502rm -f conftest.$ac_objext conftest$ac_exeext
30503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30504 (eval $ac_link) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); } &&
30508 { ac_try='test -s conftest$ac_exeext'
30509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30510 (eval $ac_try) 2>&5
30511 ac_status=$?
30512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513 (exit $ac_status); }; }; then
30514 eval "$as_ac_var=yes"
30515else
30516 echo "$as_me: failed program was:" >&5
30517sed 's/^/| /' conftest.$ac_ext >&5
30518
30519eval "$as_ac_var=no"
30520fi
30521rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30522fi
30523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30525if test `eval echo '${'$as_ac_var'}'` = yes; then
30526 cat >>confdefs.h <<_ACEOF
30527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30528_ACEOF
3fcdd07b 30529 break
3fcdd07b
VZ
30530fi
30531done
30532
698dcdb6 30533
8284b0c5 30534 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30535 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30536echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30537if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30538 echo $ECHO_N "(cached) $ECHO_C" >&6
30539else
30540
30541
30542
30543 ac_ext=cc
5c6fa7d2 30544ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30548
8284b0c5 30549
e6cc62c6
VS
30550 cat >conftest.$ac_ext <<_ACEOF
30551#line $LINENO "configure"
30552/* confdefs.h. */
30553_ACEOF
30554cat confdefs.h >>conftest.$ac_ext
30555cat >>conftest.$ac_ext <<_ACEOF
30556/* end confdefs.h. */
afc31813
VZ
30557
30558 #include <sys/time.h>
30559 #include <unistd.h>
e6cc62c6
VS
30560
30561int
30562main ()
30563{
afc31813
VZ
30564
30565 struct timeval tv;
776862b4 30566 gettimeofday(&tv, NULL);
e6cc62c6
VS
30567
30568 ;
30569 return 0;
30570}
30571_ACEOF
30572rm -f conftest.$ac_objext
30573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30574 (eval $ac_compile) 2>&5
30575 ac_status=$?
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); } &&
30578 { ac_try='test -s conftest.$ac_objext'
30579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30580 (eval $ac_try) 2>&5
30581 ac_status=$?
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; }; then
afc31813 30584 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 30585else
e6cc62c6
VS
30586 echo "$as_me: failed program was:" >&5
30587sed 's/^/| /' conftest.$ac_ext >&5
30588
30589cat >conftest.$ac_ext <<_ACEOF
30590#line $LINENO "configure"
30591/* confdefs.h. */
30592_ACEOF
30593cat confdefs.h >>conftest.$ac_ext
30594cat >>conftest.$ac_ext <<_ACEOF
30595/* end confdefs.h. */
afc31813
VZ
30596
30597 #include <sys/time.h>
30598 #include <unistd.h>
e6cc62c6
VS
30599
30600int
30601main ()
30602{
afc31813
VZ
30603
30604 struct timeval tv;
30605 gettimeofday(&tv);
e6cc62c6
VS
30606
30607 ;
30608 return 0;
30609}
30610_ACEOF
30611rm -f conftest.$ac_objext
30612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30613 (eval $ac_compile) 2>&5
30614 ac_status=$?
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } &&
30617 { ac_try='test -s conftest.$ac_objext'
30618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30619 (eval $ac_try) 2>&5
30620 ac_status=$?
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); }; }; then
afc31813 30623 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 30624else
e6cc62c6
VS
30625 echo "$as_me: failed program was:" >&5
30626sed 's/^/| /' conftest.$ac_ext >&5
30627
30628
30629 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30630echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 30631 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
30632
30633
10f2d63a 30634fi
e6cc62c6
VS
30635rm -f conftest.$ac_objext conftest.$ac_ext
30636
10f2d63a 30637fi
e6cc62c6 30638rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 30639 ac_ext=c
10f2d63a 30640ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30643ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 30644
a0b9e27f 30645
e6cc62c6
VS
30646fi
30647echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30648echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 30649
afc31813 30650 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 30651 cat >>confdefs.h <<\_ACEOF
afc31813 30652#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 30653_ACEOF
afc31813
VZ
30654
30655 fi
30656 fi
30657
afc31813
VZ
30658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30659fi
30660
8284b0c5 30661
52127426 30662if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 30663 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
30664 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30665echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
30666 wxUSE_SOCKETS="no"
30667 fi
0feee163 30668fi
b089607b 30669
0feee163
VZ
30670if test "$wxUSE_SOCKETS" = "yes"; then
30671 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30672 echo "$as_me:$LINENO: checking for socket" >&5
30673echo $ECHO_N "checking for socket... $ECHO_C" >&6
30674if test "${ac_cv_func_socket+set}" = set; then
30675 echo $ECHO_N "(cached) $ECHO_C" >&6
30676else
30677 cat >conftest.$ac_ext <<_ACEOF
30678#line $LINENO "configure"
30679/* confdefs.h. */
30680_ACEOF
30681cat confdefs.h >>conftest.$ac_ext
30682cat >>conftest.$ac_ext <<_ACEOF
30683/* end confdefs.h. */
c63c7106 30684/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30685 which can conflict with char socket (); below.
30686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30687 <limits.h> exists even on freestanding compilers. */
30688#ifdef __STDC__
30689# include <limits.h>
30690#else
30691# include <assert.h>
30692#endif
c63c7106 30693/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30694#ifdef __cplusplus
30695extern "C"
30696{
30697#endif
c63c7106 30698/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30699 builtin and then its argument prototype would still apply. */
30700char socket ();
c63c7106
VZ
30701/* The GNU C library defines this for functions which it implements
30702 to always fail with ENOSYS. Some functions are actually named
30703 something starting with __ and the normal name is an alias. */
30704#if defined (__stub_socket) || defined (__stub___socket)
30705choke me
30706#else
e6cc62c6
VS
30707char (*f) () = socket;
30708#endif
30709#ifdef __cplusplus
30710}
c63c7106
VZ
30711#endif
30712
e6cc62c6
VS
30713int
30714main ()
30715{
30716return f != socket;
30717 ;
30718 return 0;
30719}
30720_ACEOF
30721rm -f conftest.$ac_objext conftest$ac_exeext
30722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30723 (eval $ac_link) 2>&5
30724 ac_status=$?
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); } &&
30727 { ac_try='test -s conftest$ac_exeext'
30728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729 (eval $ac_try) 2>&5
30730 ac_status=$?
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; }; then
30733 ac_cv_func_socket=yes
30734else
30735 echo "$as_me: failed program was:" >&5
30736sed 's/^/| /' conftest.$ac_ext >&5
30737
30738ac_cv_func_socket=no
30739fi
30740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30741fi
30742echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
30743echo "${ECHO_T}$ac_cv_func_socket" >&6
30744if test $ac_cv_func_socket = yes; then
c63c7106
VZ
30745 :
30746else
e6cc62c6
VS
30747 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
30748echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
30749if test "${ac_cv_lib_socket_socket+set}" = set; then
30750 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 30751else
e6cc62c6 30752 ac_check_lib_save_LIBS=$LIBS
c63c7106 30753LIBS="-lsocket $LIBS"
e6cc62c6
VS
30754cat >conftest.$ac_ext <<_ACEOF
30755#line $LINENO "configure"
30756/* confdefs.h. */
30757_ACEOF
30758cat confdefs.h >>conftest.$ac_ext
30759cat >>conftest.$ac_ext <<_ACEOF
30760/* end confdefs.h. */
30761
c63c7106 30762/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30763#ifdef __cplusplus
30764extern "C"
30765#endif
c63c7106 30766/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30767 builtin and then its argument prototype would still apply. */
30768char socket ();
30769int
30770main ()
30771{
30772socket ();
30773 ;
30774 return 0;
30775}
30776_ACEOF
30777rm -f conftest.$ac_objext conftest$ac_exeext
30778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30779 (eval $ac_link) 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); } &&
30783 { ac_try='test -s conftest$ac_exeext'
30784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30785 (eval $ac_try) 2>&5
30786 ac_status=$?
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); }; }; then
30789 ac_cv_lib_socket_socket=yes
30790else
30791 echo "$as_me: failed program was:" >&5
30792sed 's/^/| /' conftest.$ac_ext >&5
30793
30794ac_cv_lib_socket_socket=no
30795fi
30796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30797LIBS=$ac_check_lib_save_LIBS
30798fi
30799echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
30800echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
30801if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
30802 if test "$INET_LINK" != " -lsocket"; then
30803 INET_LINK="$INET_LINK -lsocket"
30804 fi
c63c7106 30805else
afc31813 30806
e6cc62c6
VS
30807 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
30808echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 30809 wxUSE_SOCKETS=no
e6cc62c6
VS
30810
30811
6232543b 30812fi
b089607b 30813
e6cc62c6 30814
1e487827 30815fi
afc31813 30816
3a922bb4 30817 fi
0feee163 30818fi
51a9faba 30819
0feee163
VZ
30820if test "$wxUSE_SOCKETS" = "yes" ; then
30821 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30822 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
30823echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
30824if test "${wx_cv_type_getsockname3+set}" = set; then
30825 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30826else
e6cc62c6
VS
30827
30828 cat >conftest.$ac_ext <<_ACEOF
30829#line $LINENO "configure"
30830/* confdefs.h. */
30831_ACEOF
30832cat confdefs.h >>conftest.$ac_ext
30833cat >>conftest.$ac_ext <<_ACEOF
30834/* end confdefs.h. */
51a9faba 30835
3a922bb4
RL
30836 #include <sys/types.h>
30837 #include <sys/socket.h>
e6cc62c6
VS
30838
30839int
30840main ()
30841{
51a9faba 30842
3a922bb4
RL
30843 socklen_t len;
30844 getsockname(0, 0, &len);
e6cc62c6
VS
30845
30846 ;
30847 return 0;
30848}
30849_ACEOF
30850rm -f conftest.$ac_objext
30851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30852 (eval $ac_compile) 2>&5
30853 ac_status=$?
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); } &&
30856 { ac_try='test -s conftest.$ac_objext'
30857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30858 (eval $ac_try) 2>&5
30859 ac_status=$?
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; }; then
51a9faba 30862 wx_cv_type_getsockname3=socklen_t
afc31813 30863else
e6cc62c6
VS
30864 echo "$as_me: failed program was:" >&5
30865sed 's/^/| /' conftest.$ac_ext >&5
30866
30867
9711d31e
GD
30868 CFLAGS_OLD="$CFLAGS"
30869 if test "$GCC" = yes ; then
30870 CFLAGS="$CFLAGS -Werror"
30871 fi
30872
e6cc62c6
VS
30873 cat >conftest.$ac_ext <<_ACEOF
30874#line $LINENO "configure"
30875/* confdefs.h. */
30876_ACEOF
30877cat confdefs.h >>conftest.$ac_ext
30878cat >>conftest.$ac_ext <<_ACEOF
30879/* end confdefs.h. */
51a9faba 30880
9711d31e
GD
30881 #include <sys/types.h>
30882 #include <sys/socket.h>
e6cc62c6
VS
30883
30884int
30885main ()
30886{
51a9faba 30887
9711d31e
GD
30888 size_t len;
30889 getsockname(0, 0, &len);
e6cc62c6
VS
30890
30891 ;
30892 return 0;
30893}
30894_ACEOF
30895rm -f conftest.$ac_objext
30896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30897 (eval $ac_compile) 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); } &&
30901 { ac_try='test -s conftest.$ac_objext'
30902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903 (eval $ac_try) 2>&5
30904 ac_status=$?
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
51a9faba 30907 wx_cv_type_getsockname3=size_t
afc31813 30908else
e6cc62c6
VS
30909 echo "$as_me: failed program was:" >&5
30910sed 's/^/| /' conftest.$ac_ext >&5
30911
30912cat >conftest.$ac_ext <<_ACEOF
30913#line $LINENO "configure"
30914/* confdefs.h. */
30915_ACEOF
30916cat confdefs.h >>conftest.$ac_ext
30917cat >>conftest.$ac_ext <<_ACEOF
30918/* end confdefs.h. */
51a9faba 30919
9711d31e
GD
30920 #include <sys/types.h>
30921 #include <sys/socket.h>
e6cc62c6
VS
30922
30923int
30924main ()
30925{
51a9faba 30926
9711d31e
GD
30927 int len;
30928 getsockname(0, 0, &len);
e6cc62c6
VS
30929
30930 ;
30931 return 0;
30932}
30933_ACEOF
30934rm -f conftest.$ac_objext
30935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30936 (eval $ac_compile) 2>&5
30937 ac_status=$?
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); } &&
30940 { ac_try='test -s conftest.$ac_objext'
30941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30942 (eval $ac_try) 2>&5
30943 ac_status=$?
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; }; then
51a9faba 30946 wx_cv_type_getsockname3=int
afc31813 30947else
e6cc62c6
VS
30948 echo "$as_me: failed program was:" >&5
30949sed 's/^/| /' conftest.$ac_ext >&5
30950
30951wx_cv_type_getsockname3=unknown
30952
afc31813 30953fi
e6cc62c6
VS
30954rm -f conftest.$ac_objext conftest.$ac_ext
30955
afc31813 30956fi
e6cc62c6 30957rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
30958
30959 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
30960
30961
247f5006 30962fi
e6cc62c6 30963rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30964
e6cc62c6
VS
30965fi
30966echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
30967echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 30968
3a922bb4
RL
30969 if test "$wx_cv_type_getsockname3" = "unknown"; then
30970 wxUSE_SOCKETS=no
e6cc62c6
VS
30971 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
30972echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 30973 else
e6cc62c6 30974 cat >>confdefs.h <<_ACEOF
51a9faba 30975#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 30976_ACEOF
51a9faba 30977
3a922bb4 30978 fi
51a9faba
VZ
30979 fi
30980fi
afc31813 30981
51a9faba 30982if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 30983 cat >>confdefs.h <<\_ACEOF
afc31813 30984#define wxUSE_SOCKETS 1
e6cc62c6 30985_ACEOF
afc31813 30986
70f7a477 30987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
30988fi
30989
8284b0c5 30990
dc3d889d
VZ
30991if test "$wxUSE_GUI" = "yes"; then
30992
ac0c4cc3 30993 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
30994 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
30995echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
30996 wxUSE_JOYSTICK=no
30997 fi
30998 if test "$TOOLKIT" = "MOTIF"; then
e6cc62c6
VS
30999 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
31000echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 31001 wxUSE_JOYSTICK=no
f79bd02d
JS
31002 fi
31003 if test "$TOOLKIT" = "X11"; then
e6cc62c6
VS
31004 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
31005echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 31006 wxUSE_JOYSTICK=no
156b2523
GD
31007 fi
31008
3a922bb4
RL
31009 if test "$TOOLKIT" != "MSW"; then
31010 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31011
31012for ac_header in linux/joystick.h
10f2d63a 31013do
e6cc62c6
VS
31014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31015if eval "test \"\${$as_ac_Header+set}\" = set"; then
31016 echo "$as_me:$LINENO: checking for $ac_header" >&5
31017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31018if eval "test \"\${$as_ac_Header+set}\" = set"; then
31019 echo $ECHO_N "(cached) $ECHO_C" >&6
31020fi
31021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31023else
31024 # Is the header compilable?
31025echo "$as_me:$LINENO: checking $ac_header usability" >&5
31026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31027cat >conftest.$ac_ext <<_ACEOF
31028#line $LINENO "configure"
31029/* confdefs.h. */
31030_ACEOF
31031cat confdefs.h >>conftest.$ac_ext
31032cat >>conftest.$ac_ext <<_ACEOF
31033/* end confdefs.h. */
31034$ac_includes_default
31035#include <$ac_header>
31036_ACEOF
31037rm -f conftest.$ac_objext
31038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31039 (eval $ac_compile) 2>&5
31040 ac_status=$?
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); } &&
31043 { ac_try='test -s conftest.$ac_objext'
31044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31045 (eval $ac_try) 2>&5
31046 ac_status=$?
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); }; }; then
31049 ac_header_compiler=yes
31050else
31051 echo "$as_me: failed program was:" >&5
31052sed 's/^/| /' conftest.$ac_ext >&5
31053
31054ac_header_compiler=no
31055fi
31056rm -f conftest.$ac_objext conftest.$ac_ext
31057echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31058echo "${ECHO_T}$ac_header_compiler" >&6
31059
31060# Is the header present?
31061echo "$as_me:$LINENO: checking $ac_header presence" >&5
31062echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31063cat >conftest.$ac_ext <<_ACEOF
31064#line $LINENO "configure"
31065/* confdefs.h. */
31066_ACEOF
31067cat confdefs.h >>conftest.$ac_ext
31068cat >>conftest.$ac_ext <<_ACEOF
31069/* end confdefs.h. */
31070#include <$ac_header>
31071_ACEOF
31072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31074 ac_status=$?
31075 grep -v '^ *+' conftest.er1 >conftest.err
31076 rm -f conftest.er1
31077 cat conftest.err >&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); } >/dev/null; then
31080 if test -s conftest.err; then
31081 ac_cpp_err=$ac_c_preproc_warn_flag
31082 else
31083 ac_cpp_err=
31084 fi
31085else
31086 ac_cpp_err=yes
31087fi
31088if test -z "$ac_cpp_err"; then
31089 ac_header_preproc=yes
31090else
31091 echo "$as_me: failed program was:" >&5
31092sed 's/^/| /' conftest.$ac_ext >&5
31093
31094 ac_header_preproc=no
31095fi
31096rm -f conftest.err conftest.$ac_ext
31097echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31098echo "${ECHO_T}$ac_header_preproc" >&6
31099
31100# So? What about this header?
31101case $ac_header_compiler:$ac_header_preproc in
31102 yes:no )
31103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31107 (
31108 cat <<\_ASBOX
31109## ------------------------------------ ##
31110## Report this to bug-autoconf@gnu.org. ##
31111## ------------------------------------ ##
31112_ASBOX
31113 ) |
31114 sed "s/^/$as_me: WARNING: /" >&2
31115 ;;
31116 no:yes )
31117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31118echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31120echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31123 (
31124 cat <<\_ASBOX
31125## ------------------------------------ ##
31126## Report this to bug-autoconf@gnu.org. ##
31127## ------------------------------------ ##
31128_ASBOX
31129 ) |
31130 sed "s/^/$as_me: WARNING: /" >&2
31131 ;;
31132esac
31133echo "$as_me:$LINENO: checking for $ac_header" >&5
31134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31135if eval "test \"\${$as_ac_Header+set}\" = set"; then
31136 echo $ECHO_N "(cached) $ECHO_C" >&6
31137else
31138 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31139fi
e6cc62c6
VS
31140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31142
10f2d63a 31143fi
e6cc62c6
VS
31144if test `eval echo '${'$as_ac_Header'}'` = yes; then
31145 cat >>confdefs.h <<_ACEOF
31146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31147_ACEOF
31148
247f5006 31149fi
e6cc62c6 31150
10f2d63a
VZ
31151done
31152
3a922bb4
RL
31153 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31154 wxUSE_JOYSTICK=no
e6cc62c6
VS
31155 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31156echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31157 fi
31158 fi
31159 fi
b089607b 31160
3a922bb4 31161 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31162 cat >>confdefs.h <<\_ACEOF
10f2d63a 31163#define wxUSE_JOYSTICK 1
e6cc62c6 31164_ACEOF
10f2d63a 31165
3a922bb4
RL
31166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31167 fi
dc3d889d
VZ
31168fi
31169
8284b0c5 31170
b089607b
VZ
31171if test "$TOOLKIT" != "MSW"; then
31172
3a922bb4
RL
31173 HAVE_DL_FUNCS=0
31174 HAVE_SHL_FUNCS=0
0b9ab0bd 31175 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31176 if test "$USE_DARWIN" = 1; then
31177 HAVE_DL_FUNCS=1
31178 else
e6cc62c6
VS
31179
31180for ac_func in dlopen
10f2d63a 31181do
e6cc62c6
VS
31182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31183echo "$as_me:$LINENO: checking for $ac_func" >&5
31184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31185if eval "test \"\${$as_ac_var+set}\" = set"; then
31186 echo $ECHO_N "(cached) $ECHO_C" >&6
31187else
31188 cat >conftest.$ac_ext <<_ACEOF
31189#line $LINENO "configure"
31190/* confdefs.h. */
31191_ACEOF
31192cat confdefs.h >>conftest.$ac_ext
31193cat >>conftest.$ac_ext <<_ACEOF
31194/* end confdefs.h. */
10f2d63a 31195/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31196 which can conflict with char $ac_func (); below.
31197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31198 <limits.h> exists even on freestanding compilers. */
31199#ifdef __STDC__
31200# include <limits.h>
31201#else
31202# include <assert.h>
31203#endif
10f2d63a 31204/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31205#ifdef __cplusplus
31206extern "C"
31207{
31208#endif
10f2d63a 31209/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31210 builtin and then its argument prototype would still apply. */
31211char $ac_func ();
10f2d63a
VZ
31212/* The GNU C library defines this for functions which it implements
31213 to always fail with ENOSYS. Some functions are actually named
31214 something starting with __ and the normal name is an alias. */
31215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31216choke me
31217#else
e6cc62c6
VS
31218char (*f) () = $ac_func;
31219#endif
31220#ifdef __cplusplus
31221}
10f2d63a
VZ
31222#endif
31223
e6cc62c6
VS
31224int
31225main ()
31226{
31227return f != $ac_func;
31228 ;
31229 return 0;
31230}
31231_ACEOF
31232rm -f conftest.$ac_objext conftest$ac_exeext
31233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31234 (eval $ac_link) 2>&5
31235 ac_status=$?
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); } &&
31238 { ac_try='test -s conftest$ac_exeext'
31239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31240 (eval $ac_try) 2>&5
31241 ac_status=$?
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); }; }; then
31244 eval "$as_ac_var=yes"
31245else
31246 echo "$as_me: failed program was:" >&5
31247sed 's/^/| /' conftest.$ac_ext >&5
31248
31249eval "$as_ac_var=no"
31250fi
31251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31252fi
31253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31255if test `eval echo '${'$as_ac_var'}'` = yes; then
31256 cat >>confdefs.h <<_ACEOF
31257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31258_ACEOF
31259
31260 cat >>confdefs.h <<\_ACEOF
10f2d63a 31261#define HAVE_DLOPEN 1
e6cc62c6 31262_ACEOF
10f2d63a 31263
3a922bb4 31264 HAVE_DL_FUNCS=1
e6cc62c6 31265
10f2d63a 31266else
e6cc62c6
VS
31267
31268 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31269echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31271 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31272else
e6cc62c6 31273 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31274LIBS="-ldl $LIBS"
e6cc62c6
VS
31275cat >conftest.$ac_ext <<_ACEOF
31276#line $LINENO "configure"
31277/* confdefs.h. */
31278_ACEOF
31279cat confdefs.h >>conftest.$ac_ext
31280cat >>conftest.$ac_ext <<_ACEOF
31281/* end confdefs.h. */
31282
10f2d63a 31283/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31284#ifdef __cplusplus
31285extern "C"
31286#endif
10f2d63a 31287/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31288 builtin and then its argument prototype would still apply. */
31289char dlopen ();
31290int
31291main ()
31292{
31293dlopen ();
31294 ;
31295 return 0;
31296}
31297_ACEOF
31298rm -f conftest.$ac_objext conftest$ac_exeext
31299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31300 (eval $ac_link) 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); } &&
31304 { ac_try='test -s conftest$ac_exeext'
31305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31306 (eval $ac_try) 2>&5
31307 ac_status=$?
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); }; }; then
31310 ac_cv_lib_dl_dlopen=yes
31311else
31312 echo "$as_me: failed program was:" >&5
31313sed 's/^/| /' conftest.$ac_ext >&5
31314
31315ac_cv_lib_dl_dlopen=no
31316fi
31317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31318LIBS=$ac_check_lib_save_LIBS
31319fi
31320echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31321echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31322if test $ac_cv_lib_dl_dlopen = yes; then
31323
31324 cat >>confdefs.h <<\_ACEOF
10f2d63a 31325#define HAVE_DLOPEN 1
e6cc62c6 31326_ACEOF
10f2d63a 31327
3a922bb4 31328 HAVE_DL_FUNCS=1
3d63bc3a 31329 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31330
10f2d63a 31331else
10f2d63a 31332
e6cc62c6
VS
31333
31334for ac_func in shl_load
10f2d63a 31335do
e6cc62c6
VS
31336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31337echo "$as_me:$LINENO: checking for $ac_func" >&5
31338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31339if eval "test \"\${$as_ac_var+set}\" = set"; then
31340 echo $ECHO_N "(cached) $ECHO_C" >&6
31341else
31342 cat >conftest.$ac_ext <<_ACEOF
31343#line $LINENO "configure"
31344/* confdefs.h. */
31345_ACEOF
31346cat confdefs.h >>conftest.$ac_ext
31347cat >>conftest.$ac_ext <<_ACEOF
31348/* end confdefs.h. */
10f2d63a 31349/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31350 which can conflict with char $ac_func (); below.
31351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31352 <limits.h> exists even on freestanding compilers. */
31353#ifdef __STDC__
31354# include <limits.h>
31355#else
31356# include <assert.h>
31357#endif
10f2d63a 31358/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31359#ifdef __cplusplus
31360extern "C"
31361{
31362#endif
10f2d63a 31363/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31364 builtin and then its argument prototype would still apply. */
31365char $ac_func ();
10f2d63a
VZ
31366/* The GNU C library defines this for functions which it implements
31367 to always fail with ENOSYS. Some functions are actually named
31368 something starting with __ and the normal name is an alias. */
31369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31370choke me
31371#else
e6cc62c6
VS
31372char (*f) () = $ac_func;
31373#endif
31374#ifdef __cplusplus
31375}
10f2d63a
VZ
31376#endif
31377
e6cc62c6
VS
31378int
31379main ()
31380{
31381return f != $ac_func;
31382 ;
31383 return 0;
31384}
31385_ACEOF
31386rm -f conftest.$ac_objext conftest$ac_exeext
31387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31388 (eval $ac_link) 2>&5
31389 ac_status=$?
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); } &&
31392 { ac_try='test -s conftest$ac_exeext'
31393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31394 (eval $ac_try) 2>&5
31395 ac_status=$?
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); }; }; then
31398 eval "$as_ac_var=yes"
31399else
31400 echo "$as_me: failed program was:" >&5
31401sed 's/^/| /' conftest.$ac_ext >&5
31402
31403eval "$as_ac_var=no"
31404fi
31405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31406fi
31407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31408echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31409if test `eval echo '${'$as_ac_var'}'` = yes; then
31410 cat >>confdefs.h <<_ACEOF
31411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31412_ACEOF
31413
31414 cat >>confdefs.h <<\_ACEOF
10f2d63a 31415#define HAVE_SHL_LOAD 1
e6cc62c6 31416_ACEOF
10f2d63a 31417
3a922bb4 31418 HAVE_SHL_FUNCS=1
e6cc62c6 31419
10f2d63a 31420else
e6cc62c6
VS
31421
31422 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31423echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31424if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31425 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31426else
e6cc62c6 31427 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31428LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31429cat >conftest.$ac_ext <<_ACEOF
31430#line $LINENO "configure"
31431/* confdefs.h. */
31432_ACEOF
31433cat confdefs.h >>conftest.$ac_ext
31434cat >>conftest.$ac_ext <<_ACEOF
31435/* end confdefs.h. */
31436
8284b0c5 31437/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31438#ifdef __cplusplus
31439extern "C"
31440#endif
f6bcfd97 31441/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31442 builtin and then its argument prototype would still apply. */
31443char dld ();
31444int
31445main ()
31446{
31447dld ();
31448 ;
31449 return 0;
31450}
31451_ACEOF
31452rm -f conftest.$ac_objext conftest$ac_exeext
31453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31454 (eval $ac_link) 2>&5
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); } &&
31458 { ac_try='test -s conftest$ac_exeext'
31459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31460 (eval $ac_try) 2>&5
31461 ac_status=$?
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
31464 ac_cv_lib_shl_load_dld=yes
31465else
31466 echo "$as_me: failed program was:" >&5
31467sed 's/^/| /' conftest.$ac_ext >&5
31468
31469ac_cv_lib_shl_load_dld=no
31470fi
31471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31472LIBS=$ac_check_lib_save_LIBS
31473fi
31474echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31475echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31476if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31477
3a922bb4 31478 HAVE_SHL_FUNCS=1
3d63bc3a 31479 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31480
f6bcfd97
BP
31481fi
31482
e6cc62c6 31483
10f2d63a
VZ
31484fi
31485done
31486
e6cc62c6 31487
10f2d63a
VZ
31488fi
31489
e6cc62c6 31490
10f2d63a
VZ
31491fi
31492done
31493
5c6fa7d2 31494
8284b0c5 31495 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31496
31497for ac_func in dlerror
f6bcfd97 31498do
e6cc62c6
VS
31499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31500echo "$as_me:$LINENO: checking for $ac_func" >&5
31501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31502if eval "test \"\${$as_ac_var+set}\" = set"; then
31503 echo $ECHO_N "(cached) $ECHO_C" >&6
31504else
31505 cat >conftest.$ac_ext <<_ACEOF
31506#line $LINENO "configure"
31507/* confdefs.h. */
31508_ACEOF
31509cat confdefs.h >>conftest.$ac_ext
31510cat >>conftest.$ac_ext <<_ACEOF
31511/* end confdefs.h. */
f6bcfd97 31512/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31513 which can conflict with char $ac_func (); below.
31514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31515 <limits.h> exists even on freestanding compilers. */
31516#ifdef __STDC__
31517# include <limits.h>
31518#else
31519# include <assert.h>
31520#endif
f6bcfd97 31521/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31522#ifdef __cplusplus
31523extern "C"
31524{
31525#endif
f6bcfd97 31526/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31527 builtin and then its argument prototype would still apply. */
31528char $ac_func ();
f6bcfd97
BP
31529/* The GNU C library defines this for functions which it implements
31530 to always fail with ENOSYS. Some functions are actually named
31531 something starting with __ and the normal name is an alias. */
31532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31533choke me
31534#else
e6cc62c6
VS
31535char (*f) () = $ac_func;
31536#endif
31537#ifdef __cplusplus
31538}
f6bcfd97
BP
31539#endif
31540
e6cc62c6
VS
31541int
31542main ()
31543{
31544return f != $ac_func;
31545 ;
31546 return 0;
31547}
31548_ACEOF
31549rm -f conftest.$ac_objext conftest$ac_exeext
31550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31551 (eval $ac_link) 2>&5
31552 ac_status=$?
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); } &&
31555 { ac_try='test -s conftest$ac_exeext'
31556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557 (eval $ac_try) 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 eval "$as_ac_var=yes"
31562else
31563 echo "$as_me: failed program was:" >&5
31564sed 's/^/| /' conftest.$ac_ext >&5
31565
31566eval "$as_ac_var=no"
31567fi
31568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31569fi
31570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31571echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31572if test `eval echo '${'$as_ac_var'}'` = yes; then
31573 cat >>confdefs.h <<_ACEOF
31574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31575_ACEOF
31576 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31577#define HAVE_DLERROR 1
e6cc62c6 31578_ACEOF
f6bcfd97
BP
31579
31580else
e6cc62c6
VS
31581 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31582echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31583if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31584 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31585else
e6cc62c6 31586 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31587LIBS="-ldl $LIBS"
e6cc62c6
VS
31588cat >conftest.$ac_ext <<_ACEOF
31589#line $LINENO "configure"
31590/* confdefs.h. */
31591_ACEOF
31592cat confdefs.h >>conftest.$ac_ext
31593cat >>conftest.$ac_ext <<_ACEOF
31594/* end confdefs.h. */
31595
f6bcfd97 31596/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31597#ifdef __cplusplus
31598extern "C"
31599#endif
f6bcfd97 31600/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31601 builtin and then its argument prototype would still apply. */
31602char dlerror ();
31603int
31604main ()
31605{
31606dlerror ();
31607 ;
31608 return 0;
31609}
31610_ACEOF
31611rm -f conftest.$ac_objext conftest$ac_exeext
31612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31613 (eval $ac_link) 2>&5
31614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } &&
31617 { ac_try='test -s conftest$ac_exeext'
31618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31619 (eval $ac_try) 2>&5
31620 ac_status=$?
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); }; }; then
31623 ac_cv_lib_dl_dlerror=yes
31624else
31625 echo "$as_me: failed program was:" >&5
31626sed 's/^/| /' conftest.$ac_ext >&5
31627
31628ac_cv_lib_dl_dlerror=no
31629fi
31630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31631LIBS=$ac_check_lib_save_LIBS
31632fi
31633echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31634echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31635if test $ac_cv_lib_dl_dlerror = yes; then
31636 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31637#define HAVE_DLERROR 1
e6cc62c6 31638_ACEOF
f6bcfd97 31639
f6bcfd97
BP
31640fi
31641
31642fi
31643done
31644
3a922bb4
RL
31645 fi
31646 fi
f6bcfd97 31647
3a922bb4
RL
31648 if test "$HAVE_DL_FUNCS" = 0; then
31649 if test "$HAVE_SHL_FUNCS" = 0; then
31650 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
31651 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31652echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 31653 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
31654 wxUSE_DYNLIB_CLASS=no
31655 else
e6cc62c6
VS
31656 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31657echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
31658 fi
31659 fi
10f2d63a
VZ
31660 fi
31661 fi
31662fi
31663
0b9ab0bd 31664if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 31665 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 31666#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 31667_ACEOF
0b9ab0bd
RL
31668
31669elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 31670 cat >>confdefs.h <<\_ACEOF
10f2d63a 31671#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 31672_ACEOF
10f2d63a
VZ
31673
31674fi
31675
8284b0c5 31676
1e6feb95 31677if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 31678 cat >>confdefs.h <<\_ACEOF
1e6feb95 31679#define wxUSE_FONTMAP 1
e6cc62c6 31680_ACEOF
1e6feb95
VZ
31681
31682fi
31683
10f2d63a 31684if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 31685 cat >>confdefs.h <<\_ACEOF
10f2d63a 31686#define wxUSE_UNICODE 1
e6cc62c6 31687_ACEOF
10f2d63a 31688
8284b0c5 31689
bbc3925a
VS
31690 if test "$wxUSE_MSW" != 1; then
31691 wxUSE_UNICODE_MSLU=no
31692 fi
a72a4bfa
VS
31693
31694 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
31695 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
31696echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
31697if test "${ac_cv_lib_unicows_main+set}" = set; then
31698 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 31699else
e6cc62c6 31700 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 31701LIBS="-lunicows $LIBS"
e6cc62c6
VS
31702cat >conftest.$ac_ext <<_ACEOF
31703#line $LINENO "configure"
31704/* confdefs.h. */
31705_ACEOF
31706cat confdefs.h >>conftest.$ac_ext
31707cat >>conftest.$ac_ext <<_ACEOF
31708/* end confdefs.h. */
a72a4bfa 31709
8284b0c5 31710
e6cc62c6
VS
31711int
31712main ()
31713{
31714main ();
31715 ;
31716 return 0;
31717}
31718_ACEOF
31719rm -f conftest.$ac_objext conftest$ac_exeext
31720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31721 (eval $ac_link) 2>&5
31722 ac_status=$?
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } &&
31725 { ac_try='test -s conftest$ac_exeext'
31726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727 (eval $ac_try) 2>&5
31728 ac_status=$?
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); }; }; then
31731 ac_cv_lib_unicows_main=yes
31732else
31733 echo "$as_me: failed program was:" >&5
31734sed 's/^/| /' conftest.$ac_ext >&5
31735
31736ac_cv_lib_unicows_main=no
31737fi
31738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31739LIBS=$ac_check_lib_save_LIBS
31740fi
31741echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
31742echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
31743if test $ac_cv_lib_unicows_main = yes; then
31744
31745 cat >>confdefs.h <<\_ACEOF
a72a4bfa 31746#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
31747_ACEOF
31748
a72a4bfa 31749
a72a4bfa 31750else
a72a4bfa 31751
e6cc62c6
VS
31752 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31753 Applications will only run on Windows NT/2000/XP!" >&5
31754echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31755 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 31756 wxUSE_UNICODE_MSLU=no
e6cc62c6 31757
a72a4bfa
VS
31758fi
31759
31760 fi
10f2d63a
VZ
31761fi
31762
10f2d63a 31763if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 31764 cat >>confdefs.h <<\_ACEOF
10f2d63a 31765#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 31766_ACEOF
10f2d63a
VZ
31767
31768fi
31769
8284b0c5 31770
10f2d63a 31771if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 31772 cat >>confdefs.h <<\_ACEOF
10f2d63a 31773#define wxUSE_POSTSCRIPT 1
e6cc62c6 31774_ACEOF
10f2d63a
VZ
31775
31776fi
31777
e6cc62c6 31778cat >>confdefs.h <<\_ACEOF
10f2d63a 31779#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 31780_ACEOF
10f2d63a 31781
8284b0c5 31782
e6cc62c6 31783cat >>confdefs.h <<\_ACEOF
10f2d63a 31784#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 31785_ACEOF
10f2d63a 31786
8284b0c5
MB
31787
31788
10f2d63a 31789if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 31790 cat >>confdefs.h <<\_ACEOF
10f2d63a 31791#define wxUSE_CONSTRAINTS 1
e6cc62c6 31792_ACEOF
10f2d63a
VZ
31793
31794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
31795fi
31796
31797if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 31798
8284b0c5 31799
bb811f17 31800 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
e6cc62c6 31801 cat >>confdefs.h <<\_ACEOF
10f2d63a 31802#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 31803_ACEOF
10f2d63a 31804
bb811f17
JS
31805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
31806 fi
10f2d63a
VZ
31807fi
31808
31809if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 31810 cat >>confdefs.h <<\_ACEOF
10f2d63a 31811#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 31812_ACEOF
10f2d63a
VZ
31813
31814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
31815 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
31817 fi
31818fi
31819
31820if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 31821 cat >>confdefs.h <<\_ACEOF
10f2d63a 31822#define wxUSE_HELP 1
e6cc62c6 31823_ACEOF
10f2d63a
VZ
31824
31825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 31826
77e13408 31827 if test "$wxUSE_MSW" = 1; then
031d8228 31828 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 31829 cat >>confdefs.h <<\_ACEOF
29fd3c0c 31830#define wxUSE_MS_HTML_HELP 1
e6cc62c6 31831_ACEOF
29fd3c0c 31832
3e44f09d 31833 fi
3379ed37 31834 fi
031d8228
VS
31835
31836 if test "$wxUSE_WXHTML_HELP" = "yes"; then
31837 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 31838 cat >>confdefs.h <<\_ACEOF
031d8228 31839#define wxUSE_WXHTML_HELP 1
e6cc62c6 31840_ACEOF
031d8228
VS
31841
31842 else
e6cc62c6
VS
31843 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
31844echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
31845 wxUSE_WXHTML_HELP=no
31846 fi
31847 fi
10f2d63a
VZ
31848fi
31849
31850if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
31851 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
31852 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
31853echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 31854 else
e6cc62c6 31855 cat >>confdefs.h <<\_ACEOF
10f2d63a 31856#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 31857_ACEOF
10f2d63a
VZ
31858
31859 fi
31860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
31861fi
31862
e6cc62c6
VS
31863if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
31864 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
31865echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
31866 { (exit 1); exit 1; }; }
31867fi
31868
31869
31870if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
31871 -o "$wxUSE_CLIPBOARD" = "yes" \
31872 -o "$wxUSE_OLE" = "yes" \
31873 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
31874
31875for ac_header in ole2.h
31876do
31877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31878if eval "test \"\${$as_ac_Header+set}\" = set"; then
31879 echo "$as_me:$LINENO: checking for $ac_header" >&5
31880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31881if eval "test \"\${$as_ac_Header+set}\" = set"; then
31882 echo $ECHO_N "(cached) $ECHO_C" >&6
31883fi
31884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31886else
31887 # Is the header compilable?
31888echo "$as_me:$LINENO: checking $ac_header usability" >&5
31889echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31890cat >conftest.$ac_ext <<_ACEOF
31891#line $LINENO "configure"
31892/* confdefs.h. */
31893_ACEOF
31894cat confdefs.h >>conftest.$ac_ext
31895cat >>conftest.$ac_ext <<_ACEOF
31896/* end confdefs.h. */
31897$ac_includes_default
31898#include <$ac_header>
31899_ACEOF
31900rm -f conftest.$ac_objext
31901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31902 (eval $ac_compile) 2>&5
31903 ac_status=$?
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); } &&
31906 { ac_try='test -s conftest.$ac_objext'
31907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31908 (eval $ac_try) 2>&5
31909 ac_status=$?
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); }; }; then
31912 ac_header_compiler=yes
31913else
31914 echo "$as_me: failed program was:" >&5
31915sed 's/^/| /' conftest.$ac_ext >&5
31916
31917ac_header_compiler=no
31918fi
31919rm -f conftest.$ac_objext conftest.$ac_ext
31920echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31921echo "${ECHO_T}$ac_header_compiler" >&6
31922
31923# Is the header present?
31924echo "$as_me:$LINENO: checking $ac_header presence" >&5
31925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31926cat >conftest.$ac_ext <<_ACEOF
31927#line $LINENO "configure"
31928/* confdefs.h. */
31929_ACEOF
31930cat confdefs.h >>conftest.$ac_ext
31931cat >>conftest.$ac_ext <<_ACEOF
31932/* end confdefs.h. */
31933#include <$ac_header>
31934_ACEOF
31935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31937 ac_status=$?
31938 grep -v '^ *+' conftest.er1 >conftest.err
31939 rm -f conftest.er1
31940 cat conftest.err >&5
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); } >/dev/null; then
31943 if test -s conftest.err; then
31944 ac_cpp_err=$ac_c_preproc_warn_flag
31945 else
31946 ac_cpp_err=
31947 fi
31948else
31949 ac_cpp_err=yes
31950fi
31951if test -z "$ac_cpp_err"; then
31952 ac_header_preproc=yes
31953else
31954 echo "$as_me: failed program was:" >&5
31955sed 's/^/| /' conftest.$ac_ext >&5
31956
31957 ac_header_preproc=no
31958fi
31959rm -f conftest.err conftest.$ac_ext
31960echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31961echo "${ECHO_T}$ac_header_preproc" >&6
31962
31963# So? What about this header?
31964case $ac_header_compiler:$ac_header_preproc in
31965 yes:no )
31966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31967echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31970 (
31971 cat <<\_ASBOX
31972## ------------------------------------ ##
31973## Report this to bug-autoconf@gnu.org. ##
31974## ------------------------------------ ##
31975_ASBOX
31976 ) |
31977 sed "s/^/$as_me: WARNING: /" >&2
31978 ;;
31979 no:yes )
31980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31986 (
31987 cat <<\_ASBOX
31988## ------------------------------------ ##
31989## Report this to bug-autoconf@gnu.org. ##
31990## ------------------------------------ ##
31991_ASBOX
31992 ) |
31993 sed "s/^/$as_me: WARNING: /" >&2
31994 ;;
31995esac
31996echo "$as_me:$LINENO: checking for $ac_header" >&5
31997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31998if eval "test \"\${$as_ac_Header+set}\" = set"; then
31999 echo $ECHO_N "(cached) $ECHO_C" >&6
32000else
32001 eval "$as_ac_Header=$ac_header_preproc"
32002fi
32003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32005
10f2d63a 32006fi
e6cc62c6
VS
32007if test `eval echo '${'$as_ac_Header'}'` = yes; then
32008 cat >>confdefs.h <<_ACEOF
32009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32010_ACEOF
10f2d63a 32011
10f2d63a 32012fi
e6cc62c6 32013
10f2d63a
VZ
32014done
32015
8284b0c5 32016
2b9bdf71
VZ
32017 if test "$ac_cv_header_ole2_h" = "yes" ; then
32018 if test "$GCC" = yes ; then
8284b0c5
MB
32019
32020
e6cc62c6
VS
32021 ac_ext=cc
32022ac_cpp='$CXXCPP $CPPFLAGS'
32023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32026
32027
32028 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32029echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32030 cat >conftest.$ac_ext <<_ACEOF
32031#line $LINENO "configure"
32032/* confdefs.h. */
32033_ACEOF
32034cat confdefs.h >>conftest.$ac_ext
32035cat >>conftest.$ac_ext <<_ACEOF
32036/* end confdefs.h. */
8284b0c5
MB
32037#include <windows.h>
32038 #include <ole2.h>
e6cc62c6
VS
32039int
32040main ()
32041{
8284b0c5 32042
e6cc62c6
VS
32043 ;
32044 return 0;
32045}
32046_ACEOF
32047rm -f conftest.$ac_objext
32048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32049 (eval $ac_compile) 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); } &&
32053 { ac_try='test -s conftest.$ac_objext'
32054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32055 (eval $ac_try) 2>&5
32056 ac_status=$?
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; }; then
32059 echo "$as_me:$LINENO: result: no" >&5
32060echo "${ECHO_T}no" >&6
32061else
32062 echo "$as_me: failed program was:" >&5
32063sed 's/^/| /' conftest.$ac_ext >&5
32064
32065echo "$as_me:$LINENO: result: yes" >&5
32066echo "${ECHO_T}yes" >&6
8284b0c5
MB
32067 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32068fi
e6cc62c6 32069rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32070 ac_ext=c
8284b0c5 32071ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32074ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32075
2b9bdf71 32076 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32077 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32078 cat >>confdefs.h <<\_ACEOF
4f11a343 32079#define wxUSE_OLE 1
e6cc62c6 32080_ACEOF
4f11a343 32081
8284b0c5 32082
2b9bdf71
VZ
32083 fi
32084
e6cc62c6 32085 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32086#define wxUSE_DATAOBJ 1
e6cc62c6 32087_ACEOF
2b9bdf71
VZ
32088
32089 else
e6cc62c6
VS
32090 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32091echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32092
32093 wxUSE_CLIPBOARD=no
32094 wxUSE_DRAG_AND_DROP=no
32095 wxUSE_DATAOBJ=no
3bce6687
JS
32096 wxUSE_OLE=no
32097 fi
32098
32099 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32100 cat >>confdefs.h <<\_ACEOF
3bce6687 32101#define wxUSE_METAFILE 1
e6cc62c6 32102_ACEOF
3bce6687
JS
32103
32104
e6cc62c6 32105 cat >>confdefs.h <<\_ACEOF
3bce6687 32106#define wxUSE_ENH_METAFILE 1
e6cc62c6 32107_ACEOF
3bce6687
JS
32108
32109 fi
32110fi
32111
2b9bdf71
VZ
32112if test "$wxUSE_IPC" = "yes"; then
32113 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32114 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32115echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32116 fi
32117
e6cc62c6 32118 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32119#define wxUSE_IPC 1
e6cc62c6 32120_ACEOF
2b9bdf71
VZ
32121
32122fi
32123
32124if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32125 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32126 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32127echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32128 wxUSE_CLIPBOARD=no
32129 fi
32130
32131 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32132 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32133#define wxUSE_CLIPBOARD 1
e6cc62c6 32134_ACEOF
2b9bdf71 32135
8284b0c5 32136
e6cc62c6 32137 cat >>confdefs.h <<\_ACEOF
673f4220 32138#define wxUSE_DATAOBJ 1
e6cc62c6 32139_ACEOF
673f4220 32140
6c657b52 32141 fi
2b9bdf71
VZ
32142fi
32143
32144if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32145 if test "$wxUSE_GTK" = 1; then
32146 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32147 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32148echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32149 wxUSE_DRAG_AND_DROP=no
32150 fi
32151 fi
32152
2b9bdf71 32153 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32154 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32155echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32156 wxUSE_DRAG_AND_DROP=no
32157 fi
32158
f79bd02d 32159 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32160 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32161echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32162 wxUSE_DRAG_AND_DROP=no
32163 fi
32164
6c657b52 32165 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32166 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32167echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32168 wxUSE_DRAG_AND_DROP=no
32169 fi
32170
10f2d63a 32171 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32172 cat >>confdefs.h <<\_ACEOF
10f2d63a 32173#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32174_ACEOF
10f2d63a
VZ
32175
32176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32177 fi
32178
32179fi
32180
32181if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32182 cat >>confdefs.h <<\_ACEOF
10f2d63a 32183#define wxUSE_SPLINES 1
e6cc62c6 32184_ACEOF
10f2d63a
VZ
32185
32186fi
32187
8284b0c5 32188
1e6feb95
VZ
32189USES_CONTROLS=0
32190if test "$wxUSE_CONTROLS" = "yes"; then
32191 USES_CONTROLS=1
32192fi
32193
10f2d63a 32194if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32195 cat >>confdefs.h <<\_ACEOF
10f2d63a 32196#define wxUSE_ACCEL 1
e6cc62c6 32197_ACEOF
10f2d63a 32198
1e6feb95
VZ
32199 USES_CONTROLS=1
32200fi
32201
32202if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32203 cat >>confdefs.h <<\_ACEOF
1e6feb95 32204#define wxUSE_BUTTON 1
e6cc62c6 32205_ACEOF
1e6feb95
VZ
32206
32207 USES_CONTROLS=1
32208fi
32209
32210if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32211 cat >>confdefs.h <<\_ACEOF
1e6feb95 32212#define wxUSE_BMPBUTTON 1
e6cc62c6 32213_ACEOF
1e6feb95
VZ
32214
32215 USES_CONTROLS=1
32216fi
32217
32218if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32219 cat >>confdefs.h <<\_ACEOF
1e6feb95 32220#define wxUSE_CALENDARCTRL 1
e6cc62c6 32221_ACEOF
1e6feb95
VZ
32222
32223 USES_CONTROLS=1
32224 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32225fi
32226
32227if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32228 cat >>confdefs.h <<\_ACEOF
10f2d63a 32229#define wxUSE_CARET 1
e6cc62c6 32230_ACEOF
10f2d63a 32231
1e6feb95 32232 USES_CONTROLS=1
10f2d63a
VZ
32233 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32234fi
32235
32236if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32237 cat >>confdefs.h <<\_ACEOF
10f2d63a 32238#define wxUSE_COMBOBOX 1
e6cc62c6 32239_ACEOF
10f2d63a 32240
1e6feb95 32241 USES_CONTROLS=1
10f2d63a
VZ
32242fi
32243
32244if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32245 cat >>confdefs.h <<\_ACEOF
10f2d63a 32246#define wxUSE_CHOICE 1
e6cc62c6 32247_ACEOF
10f2d63a 32248
1e6feb95 32249 USES_CONTROLS=1
10f2d63a
VZ
32250fi
32251
32252if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32253 cat >>confdefs.h <<\_ACEOF
10f2d63a 32254#define wxUSE_CHECKBOX 1
e6cc62c6 32255_ACEOF
10f2d63a 32256
1e6feb95 32257 USES_CONTROLS=1
10f2d63a
VZ
32258fi
32259
32260if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32261 cat >>confdefs.h <<\_ACEOF
10f2d63a 32262#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32263_ACEOF
10f2d63a 32264
1e6feb95 32265 USES_CONTROLS=1
10f2d63a
VZ
32266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32267fi
32268
da494b40 32269if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32270 cat >>confdefs.h <<\_ACEOF
da494b40 32271#define wxUSE_DISPLAY 1
e6cc62c6 32272_ACEOF
da494b40
MB
32273
32274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32275fi
32276
10f2d63a 32277if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32278 cat >>confdefs.h <<\_ACEOF
10f2d63a 32279#define wxUSE_GAUGE 1
e6cc62c6 32280_ACEOF
10f2d63a 32281
1e6feb95 32282 USES_CONTROLS=1
10f2d63a
VZ
32283fi
32284
d6a55c4b 32285if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32286 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32287#define wxUSE_GRID 1
e6cc62c6 32288_ACEOF
10f2d63a 32289
1e6feb95 32290 USES_CONTROLS=1
d6a55c4b 32291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32292fi
32293
32294if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32295 cat >>confdefs.h <<\_ACEOF
10f2d63a 32296#define wxUSE_IMAGLIST 1
e6cc62c6 32297_ACEOF
10f2d63a
VZ
32298
32299fi
32300
32301if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32302 cat >>confdefs.h <<\_ACEOF
10f2d63a 32303#define wxUSE_LISTBOX 1
e6cc62c6 32304_ACEOF
10f2d63a 32305
1e6feb95 32306 USES_CONTROLS=1
10f2d63a
VZ
32307fi
32308
32309if test "$wxUSE_LISTCTRL" = "yes"; then
32310 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32311 cat >>confdefs.h <<\_ACEOF
10f2d63a 32312#define wxUSE_LISTCTRL 1
e6cc62c6 32313_ACEOF
10f2d63a 32314
1e6feb95 32315 USES_CONTROLS=1
10f2d63a
VZ
32316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32317 else
e6cc62c6
VS
32318 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32319echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32320 fi
32321fi
32322
32323if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32324 cat >>confdefs.h <<\_ACEOF
10f2d63a 32325#define wxUSE_NOTEBOOK 1
e6cc62c6 32326_ACEOF
10f2d63a 32327
1e6feb95 32328 USES_CONTROLS=1
10f2d63a
VZ
32329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32330fi
32331
24176f2c 32332
10f2d63a 32333if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32334 cat >>confdefs.h <<\_ACEOF
10f2d63a 32335#define wxUSE_RADIOBOX 1
e6cc62c6 32336_ACEOF
10f2d63a 32337
1e6feb95 32338 USES_CONTROLS=1
10f2d63a
VZ
32339fi
32340
32341if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32342 cat >>confdefs.h <<\_ACEOF
10f2d63a 32343#define wxUSE_RADIOBTN 1
e6cc62c6 32344_ACEOF
10f2d63a 32345
1e6feb95 32346 USES_CONTROLS=1
10f2d63a
VZ
32347fi
32348
32349if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32350 cat >>confdefs.h <<\_ACEOF
10f2d63a 32351#define wxUSE_SASH 1
e6cc62c6 32352_ACEOF
10f2d63a
VZ
32353
32354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32355fi
32356
32357if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32358 cat >>confdefs.h <<\_ACEOF
10f2d63a 32359#define wxUSE_SCROLLBAR 1
e6cc62c6 32360_ACEOF
10f2d63a 32361
1e6feb95 32362 USES_CONTROLS=1
741a9306 32363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32364fi
32365
32366if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32367 cat >>confdefs.h <<\_ACEOF
10f2d63a 32368#define wxUSE_SLIDER 1
e6cc62c6 32369_ACEOF
10f2d63a 32370
1e6feb95 32371 USES_CONTROLS=1
10f2d63a
VZ
32372fi
32373
32374if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32375 cat >>confdefs.h <<\_ACEOF
10f2d63a 32376#define wxUSE_SPINBTN 1
e6cc62c6 32377_ACEOF
10f2d63a 32378
1e6feb95 32379 USES_CONTROLS=1
10f2d63a
VZ
32380fi
32381
56cfaa52 32382if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32383 cat >>confdefs.h <<\_ACEOF
56cfaa52 32384#define wxUSE_SPINCTRL 1
e6cc62c6 32385_ACEOF
56cfaa52 32386
1e6feb95 32387 USES_CONTROLS=1
56cfaa52
RR
32388fi
32389
10f2d63a 32390if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32391 cat >>confdefs.h <<\_ACEOF
10f2d63a 32392#define wxUSE_SPLITTER 1
e6cc62c6 32393_ACEOF
10f2d63a
VZ
32394
32395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32396fi
32397
32398if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32399 cat >>confdefs.h <<\_ACEOF
10f2d63a 32400#define wxUSE_STATBMP 1
e6cc62c6 32401_ACEOF
10f2d63a 32402
1e6feb95 32403 USES_CONTROLS=1
10f2d63a
VZ
32404fi
32405
32406if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32407 cat >>confdefs.h <<\_ACEOF
10f2d63a 32408#define wxUSE_STATBOX 1
e6cc62c6 32409_ACEOF
10f2d63a 32410
1e6feb95
VZ
32411 USES_CONTROLS=1
32412fi
32413
32414if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32415 cat >>confdefs.h <<\_ACEOF
1e6feb95 32416#define wxUSE_STATTEXT 1
e6cc62c6 32417_ACEOF
1e6feb95
VZ
32418
32419 USES_CONTROLS=1
10f2d63a
VZ
32420fi
32421
32422if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32423 cat >>confdefs.h <<\_ACEOF
10f2d63a 32424#define wxUSE_STATLINE 1
e6cc62c6 32425_ACEOF
10f2d63a 32426
89e6bf6d 32427 USES_CONTROLS=1
10f2d63a
VZ
32428fi
32429
32430if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32431 cat >>confdefs.h <<\_ACEOF
10f2d63a 32432#define wxUSE_STATUSBAR 1
e6cc62c6 32433_ACEOF
10f2d63a 32434
1e6feb95 32435 USES_CONTROLS=1
698dcdb6 32436
2286341c 32437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32438fi
32439
32440if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32441 cat >>confdefs.h <<\_ACEOF
10f2d63a 32442#define wxUSE_TAB_DIALOG 1
e6cc62c6 32443_ACEOF
10f2d63a
VZ
32444
32445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32446fi
32447
1e6feb95 32448if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32449 cat >>confdefs.h <<\_ACEOF
1e6feb95 32450#define wxUSE_TEXTCTRL 1
e6cc62c6 32451_ACEOF
1e6feb95
VZ
32452
32453 USES_CONTROLS=1
32454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32455fi
32456
1db8dc4a 32457if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32458 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32459 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32460echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32461 wxUSE_TOGGLEBTN=no
32462 fi
32463 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32464 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32465echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32466 wxUSE_TOGGLEBTN=no
32467 fi
32468
32469 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32470 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32471#define wxUSE_TOGGLEBTN 1
e6cc62c6 32472_ACEOF
1db8dc4a 32473
1e6feb95 32474 USES_CONTROLS=1
a45d7ab7 32475 fi
1db8dc4a
VZ
32476fi
32477
360d6699 32478if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32479 cat >>confdefs.h <<\_ACEOF
360d6699 32480#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32481_ACEOF
360d6699
VZ
32482
32483 wxUSE_TOOLBAR="yes"
1e6feb95 32484 USES_CONTROLS=1
360d6699
VZ
32485fi
32486
10f2d63a 32487if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32488 cat >>confdefs.h <<\_ACEOF
10f2d63a 32489#define wxUSE_TOOLBAR 1
e6cc62c6 32490_ACEOF
10f2d63a 32491
1e6feb95 32492 USES_CONTROLS=1
698dcdb6 32493
360d6699
VZ
32494 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32495 wxUSE_TOOLBAR_NATIVE="yes"
32496 fi
32497
1e6feb95 32498 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32499 cat >>confdefs.h <<\_ACEOF
360d6699 32500#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32501_ACEOF
360d6699 32502
1e6feb95
VZ
32503 USES_CONTROLS=1
32504 fi
32505
32506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32507fi
32508
10f2d63a
VZ
32509if test "$wxUSE_TOOLTIPS" = "yes"; then
32510 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32511 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32512echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32513 else
89e6bf6d 32514 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32515 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32516echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32517 else
e6cc62c6 32518 cat >>confdefs.h <<\_ACEOF
10f2d63a 32519#define wxUSE_TOOLTIPS 1
e6cc62c6 32520_ACEOF
10f2d63a
VZ
32521
32522 fi
32523 fi
32524fi
32525
32526if test "$wxUSE_TREECTRL" = "yes"; then
32527 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32528 cat >>confdefs.h <<\_ACEOF
10f2d63a 32529#define wxUSE_TREECTRL 1
e6cc62c6 32530_ACEOF
10f2d63a 32531
1e6feb95 32532 USES_CONTROLS=1
10f2d63a
VZ
32533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32534 else
e6cc62c6
VS
32535 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32536echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32537 fi
32538fi
32539
9f41d601 32540if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 32541 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32542 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32543echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 32544 else
485cf710 32545 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32546 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32547echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 32548 else
3c011993 32549 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32550 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32551echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32552 else
e6cc62c6 32553 cat >>confdefs.h <<\_ACEOF
9f41d601 32554#define wxUSE_POPUPWIN 1
e6cc62c6 32555_ACEOF
9f41d601 32556
8284b0c5 32557
3c011993
VZ
32558 USES_CONTROLS=1
32559 fi
485cf710 32560 fi
6abe4b65 32561 fi
9f41d601
RR
32562fi
32563
dd964dcc 32564if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 32565 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32566 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32567echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32568 else
e6cc62c6 32569 cat >>confdefs.h <<\_ACEOF
dd964dcc 32570#define wxUSE_TIPWINDOW 1
e6cc62c6 32571_ACEOF
dd964dcc 32572
3c011993 32573 fi
dd964dcc
VZ
32574fi
32575
1e6feb95 32576if test "$USES_CONTROLS" = 1; then
e6cc62c6 32577 cat >>confdefs.h <<\_ACEOF
1e6feb95 32578#define wxUSE_CONTROLS 1
e6cc62c6 32579_ACEOF
10f2d63a 32580
10f2d63a
VZ
32581fi
32582
8284b0c5 32583
1e6feb95 32584
24fd6d87 32585if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 32586 cat >>confdefs.h <<\_ACEOF
24fd6d87 32587#define wxUSE_DRAGIMAGE 1
e6cc62c6 32588_ACEOF
24fd6d87
VZ
32589
32590 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32591fi
32592
7bb2947d 32593if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 32594 cat >>confdefs.h <<\_ACEOF
7bb2947d 32595#define wxUSE_ACCESSIBILITY 1
e6cc62c6 32596_ACEOF
7bb2947d
MB
32597
32598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32599fi
32600
1e6feb95 32601if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 32602 cat >>confdefs.h <<\_ACEOF
1e6feb95 32603#define wxUSE_MENUS 1
e6cc62c6 32604_ACEOF
10f2d63a 32605
1e6feb95 32606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
32607fi
32608
1e6feb95 32609if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32610 cat >>confdefs.h <<\_ACEOF
1e6feb95 32611#define wxUSE_METAFILE 1
e6cc62c6 32612_ACEOF
10f2d63a 32613
10f2d63a
VZ
32614fi
32615
1e6feb95 32616if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 32617 cat >>confdefs.h <<\_ACEOF
1e6feb95 32618#define wxUSE_MIMETYPE 1
e6cc62c6 32619_ACEOF
10f2d63a 32620
10f2d63a
VZ
32621fi
32622
3e44f09d 32623if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 32624 cat >>confdefs.h <<\_ACEOF
3e44f09d 32625#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 32626_ACEOF
3e44f09d 32627
321d2b14
VZ
32628if test "$TOOLKIT" = "MSW"; then
32629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32630fi
32631
3e44f09d
VZ
32632fi
32633
4cdb0ab0 32634if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 32635 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32636 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
32637echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
3954f9ca
VS
32638 wxUSE_PROTOCOL=no
32639 fi
32640
32641 if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 32642 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32643#define wxUSE_PROTOCOL 1
e6cc62c6 32644_ACEOF
4cdb0ab0 32645
8284b0c5 32646
3954f9ca 32647 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
e6cc62c6 32648 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32649#define wxUSE_PROTOCOL_HTTP 1
e6cc62c6 32650_ACEOF
4cdb0ab0 32651
3954f9ca
VS
32652 fi
32653 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
e6cc62c6 32654 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32655#define wxUSE_PROTOCOL_FTP 1
e6cc62c6 32656_ACEOF
4cdb0ab0 32657
3954f9ca
VS
32658 fi
32659 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
e6cc62c6 32660 cat >>confdefs.h <<\_ACEOF
3954f9ca 32661#define wxUSE_PROTOCOL_FILE 1
e6cc62c6 32662_ACEOF
3954f9ca
VS
32663
32664 fi
4cdb0ab0 32665 fi
3954f9ca
VS
32666fi
32667
32668if test "$wxUSE_URL" = "yes"; then
32669 if test "$wxUSE_PROTOCOL" != "yes"; then
e6cc62c6
VS
32670 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
32671echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
3954f9ca
VS
32672 wxUSE_URL=no
32673 fi
32674 if test "$wxUSE_URL" = "yes"; then
e6cc62c6 32675 cat >>confdefs.h <<\_ACEOF
3954f9ca 32676#define wxUSE_URL 1
e6cc62c6 32677_ACEOF
4cdb0ab0
VS
32678
32679 fi
32680fi
32681
10f2d63a 32682if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 32683 cat >>confdefs.h <<\_ACEOF
10f2d63a 32684#define wxUSE_MINIFRAME 1
e6cc62c6 32685_ACEOF
10f2d63a
VZ
32686
32687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32688fi
32689
32690if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32691 cat >>confdefs.h <<\_ACEOF
10f2d63a 32692#define wxUSE_HTML 1
e6cc62c6 32693_ACEOF
10f2d63a 32694
c74dc163 32695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
32696fi
32697
32698if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 32699 cat >>confdefs.h <<\_ACEOF
1e487827 32700#define wxUSE_VALIDATORS 1
e6cc62c6 32701_ACEOF
703e0a69 32702
698dcdb6
VZ
32703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32704fi
32705
edae8572 32706if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 32707 cat >>confdefs.h <<\_ACEOF
edae8572 32708#define wxUSE_PALETTE 1
e6cc62c6 32709_ACEOF
edae8572
VZ
32710
32711fi
32712
698dcdb6 32713if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 32714 cat >>confdefs.h <<\_ACEOF
698dcdb6 32715#define wxUSE_IMAGE 1
e6cc62c6 32716_ACEOF
698dcdb6
VZ
32717
32718fi
32719
32720if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 32721 cat >>confdefs.h <<\_ACEOF
698dcdb6 32722#define wxUSE_GIF 1
e6cc62c6 32723_ACEOF
698dcdb6
VZ
32724
32725fi
32726
32727if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 32728 cat >>confdefs.h <<\_ACEOF
698dcdb6 32729#define wxUSE_PCX 1
e6cc62c6 32730_ACEOF
698dcdb6
VZ
32731
32732fi
32733
4b6b4dfc 32734if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 32735 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 32736#define wxUSE_IFF 1
e6cc62c6 32737_ACEOF
4b6b4dfc
RR
32738
32739fi
32740
698dcdb6 32741if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 32742 cat >>confdefs.h <<\_ACEOF
698dcdb6 32743#define wxUSE_PNM 1
e6cc62c6 32744_ACEOF
698dcdb6
VZ
32745
32746fi
32747
32748if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 32749 cat >>confdefs.h <<\_ACEOF
698dcdb6 32750#define wxUSE_XPM 1
e6cc62c6 32751_ACEOF
698dcdb6
VZ
32752
32753fi
32754
658974ae 32755if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 32756 cat >>confdefs.h <<\_ACEOF
658974ae 32757#define wxUSE_ICO_CUR 1
e6cc62c6 32758_ACEOF
658974ae
VS
32759
32760fi
32761
a72a4bfa
VS
32762if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
32763 LIBS=" -lunicows $LIBS"
32764fi
32765
8284b0c5 32766
1e6feb95 32767if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 32768 cat >>confdefs.h <<\_ACEOF
1e6feb95 32769#define wxUSE_CHOICEDLG 1
e6cc62c6 32770_ACEOF
1e6feb95
VZ
32771
32772fi
32773
32774if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 32775 cat >>confdefs.h <<\_ACEOF
1e6feb95 32776#define wxUSE_COLOURDLG 1
e6cc62c6 32777_ACEOF
1e6feb95
VZ
32778
32779fi
32780
32781if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 32782 cat >>confdefs.h <<\_ACEOF
1e6feb95 32783#define wxUSE_FILEDLG 1
e6cc62c6 32784_ACEOF
1e6feb95
VZ
32785
32786fi
32787
8db37e06 32788if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 32789 cat >>confdefs.h <<\_ACEOF
8db37e06 32790#define wxUSE_FINDREPLDLG 1
e6cc62c6 32791_ACEOF
8db37e06
VZ
32792
32793fi
32794
1e6feb95 32795if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 32796 cat >>confdefs.h <<\_ACEOF
1e6feb95 32797#define wxUSE_FONTDLG 1
e6cc62c6 32798_ACEOF
1e6feb95
VZ
32799
32800fi
32801
32802if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 32803 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
32804 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
32805echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 32806 else
e6cc62c6 32807 cat >>confdefs.h <<\_ACEOF
1e6feb95 32808#define wxUSE_DIRDLG 1
e6cc62c6 32809_ACEOF
1e6feb95 32810
1e6feb95
VZ
32811 fi
32812fi
32813
32814if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 32815 cat >>confdefs.h <<\_ACEOF
1e6feb95 32816#define wxUSE_MSGDLG 1
e6cc62c6 32817_ACEOF
1e6feb95
VZ
32818
32819fi
32820
32821if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 32822 cat >>confdefs.h <<\_ACEOF
1e6feb95 32823#define wxUSE_NUMBERDLG 1
e6cc62c6 32824_ACEOF
1e6feb95
VZ
32825
32826fi
32827
32828if test "$wxUSE_PROGRESSDLG" = "yes"; then
32829 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32830 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
32831echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 32832 else
e6cc62c6 32833 cat >>confdefs.h <<\_ACEOF
1e6feb95 32834#define wxUSE_PROGRESSDLG 1
e6cc62c6 32835_ACEOF
1e6feb95
VZ
32836
32837 fi
32838fi
32839
cbca9943 32840if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 32841 cat >>confdefs.h <<\_ACEOF
cbca9943 32842#define wxUSE_SPLASH 1
e6cc62c6 32843_ACEOF
cbca9943
VZ
32844
32845fi
32846
1e6feb95
VZ
32847if test "$wxUSE_STARTUP_TIPS" = "yes"; then
32848 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32849 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
32850echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 32851 else
e6cc62c6 32852 cat >>confdefs.h <<\_ACEOF
1e6feb95 32853#define wxUSE_STARTUP_TIPS 1
e6cc62c6 32854_ACEOF
1e6feb95 32855
7b4a847f
RR
32856 fi
32857fi
579d8138 32858
8284b0c5 32859if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 32860 cat >>confdefs.h <<\_ACEOF
8284b0c5 32861#define wxUSE_TEXTDLG 1
e6cc62c6 32862_ACEOF
8284b0c5
MB
32863
32864fi
32865
32866if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 32867 cat >>confdefs.h <<\_ACEOF
8284b0c5 32868#define wxUSE_WIZARDDLG 1
e6cc62c6 32869_ACEOF
8284b0c5
MB
32870
32871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
32872fi
32873
32874
32875if test "$cross_compiling" = "yes"; then
32876 OSINFO="\"$host\""
32877else
32878 OSINFO=`uname -s -r -m`
32879 OSINFO="\"$OSINFO\""
32880fi
32881
e6cc62c6 32882cat >>confdefs.h <<_ACEOF
8284b0c5 32883#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 32884_ACEOF
8284b0c5
MB
32885
32886
32887
32888if test "x$prefix" != "xNONE"; then
32889 wxPREFIX=$prefix
32890else
32891 wxPREFIX=$ac_default_prefix
32892fi
32893
e6cc62c6 32894cat >>confdefs.h <<_ACEOF
8284b0c5 32895#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 32896_ACEOF
8284b0c5
MB
32897
32898
e6cc62c6 32899top_builddir_wxconfig=`pwd`
52c71b80 32900
8284b0c5
MB
32901
32902
32903
32904if test "$wxUSE_MAC" = 1 ; then
32905 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
32906fi
ac0c4cc3
DE
32907if test "$wxUSE_COCOA" = 1 ; then
32908 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
32909fi
8284b0c5
MB
32910
32911
2b5f62a0
VZ
32912LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
32913
32914have_cos=0
32915have_floor=0
e6cc62c6 32916
2b5f62a0
VZ
32917for ac_func in cos
32918do
e6cc62c6
VS
32919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32920echo "$as_me:$LINENO: checking for $ac_func" >&5
32921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32922if eval "test \"\${$as_ac_var+set}\" = set"; then
32923 echo $ECHO_N "(cached) $ECHO_C" >&6
32924else
32925 cat >conftest.$ac_ext <<_ACEOF
32926#line $LINENO "configure"
32927/* confdefs.h. */
32928_ACEOF
32929cat confdefs.h >>conftest.$ac_ext
32930cat >>conftest.$ac_ext <<_ACEOF
32931/* end confdefs.h. */
2b5f62a0 32932/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32933 which can conflict with char $ac_func (); below.
32934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32935 <limits.h> exists even on freestanding compilers. */
32936#ifdef __STDC__
32937# include <limits.h>
32938#else
32939# include <assert.h>
32940#endif
2b5f62a0 32941/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32942#ifdef __cplusplus
32943extern "C"
32944{
32945#endif
2b5f62a0 32946/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32947 builtin and then its argument prototype would still apply. */
32948char $ac_func ();
2b5f62a0
VZ
32949/* The GNU C library defines this for functions which it implements
32950 to always fail with ENOSYS. Some functions are actually named
32951 something starting with __ and the normal name is an alias. */
32952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32953choke me
32954#else
e6cc62c6
VS
32955char (*f) () = $ac_func;
32956#endif
32957#ifdef __cplusplus
32958}
2b5f62a0
VZ
32959#endif
32960
e6cc62c6
VS
32961int
32962main ()
32963{
32964return f != $ac_func;
32965 ;
32966 return 0;
32967}
32968_ACEOF
32969rm -f conftest.$ac_objext conftest$ac_exeext
32970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32971 (eval $ac_link) 2>&5
32972 ac_status=$?
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); } &&
32975 { ac_try='test -s conftest$ac_exeext'
32976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32977 (eval $ac_try) 2>&5
32978 ac_status=$?
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); }; }; then
32981 eval "$as_ac_var=yes"
32982else
32983 echo "$as_me: failed program was:" >&5
32984sed 's/^/| /' conftest.$ac_ext >&5
32985
32986eval "$as_ac_var=no"
32987fi
32988rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32989fi
32990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32992if test `eval echo '${'$as_ac_var'}'` = yes; then
32993 cat >>confdefs.h <<_ACEOF
32994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32995_ACEOF
2b5f62a0 32996 have_cos=1
2b5f62a0
VZ
32997fi
32998done
32999
e6cc62c6 33000
2b5f62a0
VZ
33001for ac_func in floor
33002do
e6cc62c6
VS
33003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33004echo "$as_me:$LINENO: checking for $ac_func" >&5
33005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33006if eval "test \"\${$as_ac_var+set}\" = set"; then
33007 echo $ECHO_N "(cached) $ECHO_C" >&6
33008else
33009 cat >conftest.$ac_ext <<_ACEOF
33010#line $LINENO "configure"
33011/* confdefs.h. */
33012_ACEOF
33013cat confdefs.h >>conftest.$ac_ext
33014cat >>conftest.$ac_ext <<_ACEOF
33015/* end confdefs.h. */
2b5f62a0 33016/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33017 which can conflict with char $ac_func (); below.
33018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33019 <limits.h> exists even on freestanding compilers. */
33020#ifdef __STDC__
33021# include <limits.h>
33022#else
33023# include <assert.h>
33024#endif
2b5f62a0 33025/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33026#ifdef __cplusplus
33027extern "C"
33028{
33029#endif
2b5f62a0 33030/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33031 builtin and then its argument prototype would still apply. */
33032char $ac_func ();
2b5f62a0
VZ
33033/* The GNU C library defines this for functions which it implements
33034 to always fail with ENOSYS. Some functions are actually named
33035 something starting with __ and the normal name is an alias. */
33036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33037choke me
33038#else
e6cc62c6
VS
33039char (*f) () = $ac_func;
33040#endif
33041#ifdef __cplusplus
33042}
2b5f62a0
VZ
33043#endif
33044
e6cc62c6
VS
33045int
33046main ()
33047{
33048return f != $ac_func;
33049 ;
33050 return 0;
33051}
33052_ACEOF
33053rm -f conftest.$ac_objext conftest$ac_exeext
33054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33055 (eval $ac_link) 2>&5
33056 ac_status=$?
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); } &&
33059 { ac_try='test -s conftest$ac_exeext'
33060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33061 (eval $ac_try) 2>&5
33062 ac_status=$?
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); }; }; then
33065 eval "$as_ac_var=yes"
33066else
33067 echo "$as_me: failed program was:" >&5
33068sed 's/^/| /' conftest.$ac_ext >&5
33069
33070eval "$as_ac_var=no"
33071fi
33072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33073fi
33074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33075echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33076if test `eval echo '${'$as_ac_var'}'` = yes; then
33077 cat >>confdefs.h <<_ACEOF
33078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33079_ACEOF
2b5f62a0 33080 have_floor=1
2b5f62a0
VZ
33081fi
33082done
33083
e6cc62c6
VS
33084echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33085echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33086if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33087 echo "$as_me:$LINENO: result: yes" >&5
33088echo "${ECHO_T}yes" >&6
2b5f62a0 33089else
e6cc62c6
VS
33090 echo "$as_me:$LINENO: result: no" >&5
33091echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33092 LIBS="$LIBS -lm"
33093 # use different functions to avoid configure caching
33094 have_sin=0
33095 have_ceil=0
e6cc62c6
VS
33096
33097for ac_func in sin
2b5f62a0 33098do
e6cc62c6
VS
33099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33100echo "$as_me:$LINENO: checking for $ac_func" >&5
33101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33102if eval "test \"\${$as_ac_var+set}\" = set"; then
33103 echo $ECHO_N "(cached) $ECHO_C" >&6
33104else
33105 cat >conftest.$ac_ext <<_ACEOF
33106#line $LINENO "configure"
33107/* confdefs.h. */
33108_ACEOF
33109cat confdefs.h >>conftest.$ac_ext
33110cat >>conftest.$ac_ext <<_ACEOF
33111/* end confdefs.h. */
2b5f62a0 33112/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33113 which can conflict with char $ac_func (); below.
33114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33115 <limits.h> exists even on freestanding compilers. */
33116#ifdef __STDC__
33117# include <limits.h>
33118#else
33119# include <assert.h>
33120#endif
2b5f62a0 33121/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33122#ifdef __cplusplus
33123extern "C"
33124{
33125#endif
2b5f62a0 33126/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33127 builtin and then its argument prototype would still apply. */
33128char $ac_func ();
2b5f62a0
VZ
33129/* The GNU C library defines this for functions which it implements
33130 to always fail with ENOSYS. Some functions are actually named
33131 something starting with __ and the normal name is an alias. */
33132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33133choke me
33134#else
e6cc62c6
VS
33135char (*f) () = $ac_func;
33136#endif
33137#ifdef __cplusplus
33138}
2b5f62a0
VZ
33139#endif
33140
e6cc62c6
VS
33141int
33142main ()
33143{
33144return f != $ac_func;
33145 ;
33146 return 0;
33147}
33148_ACEOF
33149rm -f conftest.$ac_objext conftest$ac_exeext
33150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33151 (eval $ac_link) 2>&5
33152 ac_status=$?
33153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154 (exit $ac_status); } &&
33155 { ac_try='test -s conftest$ac_exeext'
33156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33157 (eval $ac_try) 2>&5
33158 ac_status=$?
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; }; then
33161 eval "$as_ac_var=yes"
33162else
33163 echo "$as_me: failed program was:" >&5
33164sed 's/^/| /' conftest.$ac_ext >&5
33165
33166eval "$as_ac_var=no"
33167fi
33168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33169fi
33170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33172if test `eval echo '${'$as_ac_var'}'` = yes; then
33173 cat >>confdefs.h <<_ACEOF
33174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33175_ACEOF
2b5f62a0 33176 have_sin=1
2b5f62a0
VZ
33177fi
33178done
33179
e6cc62c6
VS
33180
33181for ac_func in ceil
2b5f62a0 33182do
e6cc62c6
VS
33183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33184echo "$as_me:$LINENO: checking for $ac_func" >&5
33185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33186if eval "test \"\${$as_ac_var+set}\" = set"; then
33187 echo $ECHO_N "(cached) $ECHO_C" >&6
33188else
33189 cat >conftest.$ac_ext <<_ACEOF
33190#line $LINENO "configure"
33191/* confdefs.h. */
33192_ACEOF
33193cat confdefs.h >>conftest.$ac_ext
33194cat >>conftest.$ac_ext <<_ACEOF
33195/* end confdefs.h. */
2b5f62a0 33196/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33197 which can conflict with char $ac_func (); below.
33198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33199 <limits.h> exists even on freestanding compilers. */
33200#ifdef __STDC__
33201# include <limits.h>
33202#else
33203# include <assert.h>
33204#endif
2b5f62a0 33205/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33206#ifdef __cplusplus
33207extern "C"
33208{
33209#endif
2b5f62a0 33210/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33211 builtin and then its argument prototype would still apply. */
33212char $ac_func ();
2b5f62a0
VZ
33213/* The GNU C library defines this for functions which it implements
33214 to always fail with ENOSYS. Some functions are actually named
33215 something starting with __ and the normal name is an alias. */
33216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33217choke me
33218#else
e6cc62c6
VS
33219char (*f) () = $ac_func;
33220#endif
33221#ifdef __cplusplus
33222}
2b5f62a0
VZ
33223#endif
33224
e6cc62c6
VS
33225int
33226main ()
33227{
33228return f != $ac_func;
33229 ;
33230 return 0;
33231}
33232_ACEOF
33233rm -f conftest.$ac_objext conftest$ac_exeext
33234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33235 (eval $ac_link) 2>&5
33236 ac_status=$?
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); } &&
33239 { ac_try='test -s conftest$ac_exeext'
33240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241 (eval $ac_try) 2>&5
33242 ac_status=$?
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); }; }; then
33245 eval "$as_ac_var=yes"
33246else
33247 echo "$as_me: failed program was:" >&5
33248sed 's/^/| /' conftest.$ac_ext >&5
33249
33250eval "$as_ac_var=no"
33251fi
33252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33253fi
33254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33256if test `eval echo '${'$as_ac_var'}'` = yes; then
33257 cat >>confdefs.h <<_ACEOF
33258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33259_ACEOF
2b5f62a0 33260 have_ceil=1
2b5f62a0
VZ
33261fi
33262done
33263
e6cc62c6
VS
33264 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33265echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33266 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33267 echo "$as_me:$LINENO: result: yes" >&5
33268echo "${ECHO_T}yes" >&6
2b5f62a0 33269 else
e6cc62c6
VS
33270 echo "$as_me:$LINENO: result: no" >&5
33271echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33272 # not sure we should warn the user, crash, etc.
33273 fi
33274fi
8284b0c5
MB
33275
33276if test "$wxUSE_GUI" = "yes"; then
33277
e6cc62c6 33278
8284b0c5
MB
33279 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33280 drawing dynamic erase event exec font image \
1542ea39 33281 minimal propsize rotate shaped widgets"
b625909c
VS
33282
33283 if test "$wxUSE_MONOLITHIC" != "yes"; then
33284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33285 fi
8284b0c5
MB
33286else
33287 SAMPLES_SUBDIRS="console"
33288fi
33289
33290
e6cc62c6 33291INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33292-I\${top_srcdir}/include \
33293$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33294$TOOLKIT_INCLUDE"
33295
fddeb06b
VS
33296if test "$GXX" = yes ; then
33297 CXXWARNINGS="-Wall"
33298 fi
33299
33300EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33301
95318f7d 33302CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33303CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33304CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33305
33306
fddeb06b 33307LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163
VS
33308EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
33309if test "$wxUSE_GUI" = "yes"; then
33310 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33311fi
fddeb06b
VS
33312
33313LDFLAGS="$LDFLAGS $PROFILE"
33314
8284b0c5
MB
33315if test "$wxUSE_GTK" = 1; then
33316 WXCONFIG_INCLUDE=
33317else
33318 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33319fi
33320
fe0895cf
VS
33321if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33322 WXUNIV=1
33323else
33324 WXUNIV=0
8284b0c5
MB
33325fi
33326
8284b0c5
MB
33327
33328
33329
33330
33331
33332
33333
9747f85d
VS
33334if test $wxUSE_MONOLITHIC = "yes" ; then
33335 MONOLITHIC=1
33336else
33337 MONOLITHIC=0
33338fi
8284b0c5 33339
8ee2dd05
VS
33340VENDOR="custom"
33341OFFICIAL_BUILD=0
33342
33343
33344
8284b0c5
MB
33345
33346
33347
33348
33349
33350
c74dc163 33351
fe0895cf 33352TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33353
33354
33355
33356
33357
fe0895cf 33358 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33359
33360 if test -n "$ac_tool_prefix"; then
33361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33362set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33363echo "$as_me:$LINENO: checking for $ac_word" >&5
33364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33365if test "${ac_cv_prog_RANLIB+set}" = set; then
33366 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33367else
fe0895cf
VS
33368 if test -n "$RANLIB"; then
33369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33370else
e6cc62c6
VS
33371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33372for as_dir in $PATH
33373do
33374 IFS=$as_save_IFS
33375 test -z "$as_dir" && as_dir=.
33376 for ac_exec_ext in '' $ac_executable_extensions; do
33377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33380 break 2
33381 fi
33382done
33383done
33384
10f2d63a 33385fi
10f2d63a 33386fi
e6cc62c6 33387RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33388if test -n "$RANLIB"; then
e6cc62c6
VS
33389 echo "$as_me:$LINENO: result: $RANLIB" >&5
33390echo "${ECHO_T}$RANLIB" >&6
33391else
33392 echo "$as_me:$LINENO: result: no" >&5
33393echo "${ECHO_T}no" >&6
33394fi
33395
33396fi
33397if test -z "$ac_cv_prog_RANLIB"; then
33398 ac_ct_RANLIB=$RANLIB
33399 # Extract the first word of "ranlib", so it can be a program name with args.
33400set dummy ranlib; ac_word=$2
33401echo "$as_me:$LINENO: checking for $ac_word" >&5
33402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33403if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33405else
33406 if test -n "$ac_ct_RANLIB"; then
33407 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33408else
33409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33410for as_dir in $PATH
33411do
33412 IFS=$as_save_IFS
33413 test -z "$as_dir" && as_dir=.
33414 for ac_exec_ext in '' $ac_executable_extensions; do
33415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33416 ac_cv_prog_ac_ct_RANLIB="ranlib"
33417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33418 break 2
33419 fi
33420done
33421done
33422
33423 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33424fi
33425fi
33426ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33427if test -n "$ac_ct_RANLIB"; then
33428 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33429echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33430else
e6cc62c6
VS
33431 echo "$as_me:$LINENO: result: no" >&5
33432echo "${ECHO_T}no" >&6
33433fi
33434
33435 RANLIB=$ac_ct_RANLIB
33436else
33437 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33438fi
665bbe97 33439
fe0895cf
VS
33440 # Find a good install program. We prefer a C program (faster),
33441# so one script is as good as another. But avoid the broken or
33442# incompatible versions:
33443# SysV /etc/install, /usr/sbin/install
33444# SunOS /usr/etc/install
33445# IRIX /sbin/install
33446# AIX /bin/install
e6cc62c6 33447# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33448# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33449# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33450# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33451# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33452echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33453echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33454if test -z "$INSTALL"; then
e6cc62c6
VS
33455if test "${ac_cv_path_install+set}" = set; then
33456 echo $ECHO_N "(cached) $ECHO_C" >&6
33457else
33458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33459for as_dir in $PATH
33460do
33461 IFS=$as_save_IFS
33462 test -z "$as_dir" && as_dir=.
33463 # Account for people who put trailing slashes in PATH elements.
33464case $as_dir/ in
33465 ./ | .// | /cC/* | \
33466 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33467 /usr/ucb/* ) ;;
33468 *)
33469 # OSF1 and SCO ODT 3.0 have their own names for install.
33470 # Don't use installbsd from OSF since it installs stuff as root
33471 # by default.
33472 for ac_prog in ginstall scoinst install; do
33473 for ac_exec_ext in '' $ac_executable_extensions; do
33474 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33475 if test $ac_prog = install &&
33476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33477 # AIX install. It has an incompatible calling convention.
33478 :
33479 elif test $ac_prog = install &&
33480 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33481 # program-specific install script used by HP pwplus--don't use.
33482 :
33483 else
33484 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33485 break 3
33486 fi
33487 fi
fe0895cf 33488 done
e6cc62c6
VS
33489 done
33490 ;;
33491esac
33492done
33493
fe0895cf
VS
33494
33495fi
33496 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33497 INSTALL=$ac_cv_path_install
fe0895cf
VS
33498 else
33499 # As a last resort, use the slow shell script. We don't cache a
33500 # path for INSTALL within a source directory, because that will
33501 # break other packages using the cache if that directory is
33502 # removed, or if the path is relative.
e6cc62c6 33503 INSTALL=$ac_install_sh
fe0895cf
VS
33504 fi
33505fi
e6cc62c6
VS
33506echo "$as_me:$LINENO: result: $INSTALL" >&5
33507echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33508
33509# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33510# It thinks the first close brace ends the variable substitution.
33511test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33512
e6cc62c6 33513test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33514
33515test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33516
e6cc62c6
VS
33517 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33518echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33519LN_S=$as_ln_s
33520if test "$LN_S" = "ln -s"; then
33521 echo "$as_me:$LINENO: result: yes" >&5
33522echo "${ECHO_T}yes" >&6
fe0895cf 33523else
e6cc62c6
VS
33524 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33525echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33526fi
33527
33528
e6cc62c6
VS
33529 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33530echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33531set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33532if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33533 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33534else
e6cc62c6 33535 cat >conftest.make <<\_ACEOF
fe0895cf 33536all:
e6cc62c6
VS
33537 @echo 'ac_maketemp="$(MAKE)"'
33538_ACEOF
fe0895cf 33539# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33540eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33541if test -n "$ac_maketemp"; then
33542 eval ac_cv_prog_make_${ac_make}_set=yes
33543else
33544 eval ac_cv_prog_make_${ac_make}_set=no
33545fi
e6cc62c6 33546rm -f conftest.make
fe0895cf
VS
33547fi
33548if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33549 echo "$as_me:$LINENO: result: yes" >&5
33550echo "${ECHO_T}yes" >&6
fe0895cf
VS
33551 SET_MAKE=
33552else
e6cc62c6
VS
33553 echo "$as_me:$LINENO: result: no" >&5
33554echo "${ECHO_T}no" >&6
fe0895cf
VS
33555 SET_MAKE="MAKE=${MAKE-make}"
33556fi
33557
e6cc62c6
VS
33558
33559
fe0895cf
VS
33560 if test "$build" != "$host" ; then
33561 AR=$host_alias-ar
33562 STRIP=$host_alias-strip
33563 else
33564 # Extract the first word of "ar", so it can be a program name with args.
33565set dummy ar; ac_word=$2
e6cc62c6
VS
33566echo "$as_me:$LINENO: checking for $ac_word" >&5
33567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33568if test "${ac_cv_prog_AR+set}" = set; then
33569 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33570else
33571 if test -n "$AR"; then
33572 ac_cv_prog_AR="$AR" # Let the user override the test.
33573else
e6cc62c6
VS
33574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33575for as_dir in $PATH
33576do
33577 IFS=$as_save_IFS
33578 test -z "$as_dir" && as_dir=.
33579 for ac_exec_ext in '' $ac_executable_extensions; do
33580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33581 ac_cv_prog_AR="ar"
33582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33583 break 2
33584 fi
33585done
33586done
33587
fe0895cf
VS
33588 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33589fi
33590fi
e6cc62c6 33591AR=$ac_cv_prog_AR
fe0895cf 33592if test -n "$AR"; then
e6cc62c6
VS
33593 echo "$as_me:$LINENO: result: $AR" >&5
33594echo "${ECHO_T}$AR" >&6
fe0895cf 33595else
e6cc62c6
VS
33596 echo "$as_me:$LINENO: result: no" >&5
33597echo "${ECHO_T}no" >&6
fe0895cf
VS
33598fi
33599
33600 # Extract the first word of "strip", so it can be a program name with args.
33601set dummy strip; ac_word=$2
e6cc62c6
VS
33602echo "$as_me:$LINENO: checking for $ac_word" >&5
33603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33604if test "${ac_cv_prog_STRIP+set}" = set; then
33605 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33606else
33607 if test -n "$STRIP"; then
33608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33609else
e6cc62c6
VS
33610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33611for as_dir in $PATH
33612do
33613 IFS=$as_save_IFS
33614 test -z "$as_dir" && as_dir=.
33615 for ac_exec_ext in '' $ac_executable_extensions; do
33616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33617 ac_cv_prog_STRIP="strip"
33618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33619 break 2
33620 fi
33621done
33622done
33623
fe0895cf
VS
33624 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33625fi
33626fi
e6cc62c6 33627STRIP=$ac_cv_prog_STRIP
fe0895cf 33628if test -n "$STRIP"; then
e6cc62c6
VS
33629 echo "$as_me:$LINENO: result: $STRIP" >&5
33630echo "${ECHO_T}$STRIP" >&6
fe0895cf 33631else
e6cc62c6
VS
33632 echo "$as_me:$LINENO: result: no" >&5
33633echo "${ECHO_T}no" >&6
fe0895cf
VS
33634fi
33635
33636 fi
33637
33638 case ${host} in
33639 *-hp-hpux* )
33640 INSTALL_DIR="mkdir"
33641 ;;
33642 *) INSTALL_DIR="$INSTALL -d"
33643 ;;
33644 esac
e6cc62c6 33645
fe0895cf 33646
6b9d41a5
VS
33647 LDFLAGS_GUI=
33648 case ${host} in
33649 *-*-cygwin* | *-*-mingw32* )
33650 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
33651 esac
33652
33653
fe0895cf 33654 fi
e6cc62c6
VS
33655
33656 echo "$as_me:$LINENO: checking if make is GNU make" >&5
33657echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 33658if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 33659 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33660else
e6cc62c6 33661
fe0895cf
VS
33662 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
33663 egrep -s GNU > /dev/null); then
33664 bakefile_cv_prog_makeisgnu="yes"
33665 else
33666 bakefile_cv_prog_makeisgnu="no"
33667 fi
fe0895cf 33668
e6cc62c6 33669fi
49b0a3aa
VS
33670echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
33671echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
33672
33673 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
33674 IF_GNU_MAKE=""
33675 else
33676 IF_GNU_MAKE="#"
33677 fi
fe0895cf 33678
e6cc62c6
VS
33679
33680
fe0895cf
VS
33681 PLATFORM_UNIX=0
33682 PLATFORM_WIN32=0
33683 PLATFORM_MSDOS=0
33684 PLATFORM_MAC=0
33685 PLATFORM_MACOSX=0
e6cc62c6 33686
fe0895cf
VS
33687 case "${host}" in
33688 *-*-cygwin* | *-*-mingw32* )
33689 PLATFORM_WIN32=1
33690 ;;
33691 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33692 PLATFORM_MSDOS=1
33693 ;;
33694 powerpc-*-darwin* )
33695 PLATFORM_MAC=1
33696 PLATFORM_MACOSX=1
33697 ;;
33698 * )
33699 PLATFORM_UNIX=1
33700 ;;
33701 esac
33702
fe0895cf 33703
e6cc62c6
VS
33704
33705
33706
33707
33708
33709
fe0895cf
VS
33710 SO_SUFFIX="so"
33711 EXEEXT=""
33712 DLLPREFIX=lib
e6cc62c6 33713
fe0895cf
VS
33714 case "${host}" in
33715 *-hp-hpux* )
33716 SO_SUFFIX="sl"
33717 ;;
33718 *-*-aix* )
33719 SO_SUFFIX="a"
33720 ;;
33721 *-*-cygwin* | *-*-mingw32* )
33722 SO_SUFFIX="dll"
33723 EXEEXT=".exe"
33724 DLLPREFIX=""
33725 ;;
33726 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33727 EXEEXT=".exe"
33728 DLLPREFIX=""
33729 ;;
33730 powerpc-*-darwin* )
33731 SO_SUFFIX="dylib"
33732 ;;
33733 esac
33734
fe0895cf 33735
e6cc62c6
VS
33736
33737
33738
33739
fe0895cf
VS
33740 SHARED_LD_CC="\$(CC) -shared -o"
33741 SHARED_LD_CXX="\$(CXX) -shared -o"
33742
33743 if test "x$GCC" = "xyes"; then
33744 PIC_FLAG="-fPIC"
33745 fi
33746
33747 case "${host}" in
33748 *-hp-hpux* )
33749 if test "x$GCC" = "xyes"; then
33750 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
33751 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
33752 else
33753 LDFLAGS="$LDFLAGS -L/usr/lib"
33754
33755 SHARED_LD_CC="${CC} -b -o"
33756 SHARED_LD_CXX="${CXX} -b -o"
33757 PIC_FLAG="+Z"
33758 fi
33759 ;;
33760
33761 *-*-linux* )
33762 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
33763 echo "$as_me:$LINENO: checking for Intel compiler" >&5
33764echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
33765if test "${bakefile_cv_prog_icc+set}" = set; then
33766 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33767else
fe0895cf 33768
e6cc62c6
VS
33769 cat >conftest.$ac_ext <<_ACEOF
33770#line $LINENO "configure"
33771/* confdefs.h. */
33772_ACEOF
33773cat confdefs.h >>conftest.$ac_ext
33774cat >>conftest.$ac_ext <<_ACEOF
33775/* end confdefs.h. */
33776
33777int
33778main ()
33779{
fe0895cf
VS
33780
33781 #ifndef __INTEL_COMPILER
33782 #error Not icc
33783 #endif
e6cc62c6
VS
33784
33785 ;
33786 return 0;
33787}
33788_ACEOF
33789rm -f conftest.$ac_objext
33790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33791 (eval $ac_compile) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } &&
33795 { ac_try='test -s conftest.$ac_objext'
33796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797 (eval $ac_try) 2>&5
33798 ac_status=$?
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
fe0895cf
VS
33801 bakefile_cv_prog_icc=yes
33802else
e6cc62c6
VS
33803 echo "$as_me: failed program was:" >&5
33804sed 's/^/| /' conftest.$ac_ext >&5
33805
33806bakefile_cv_prog_icc=no
33807
fe0895cf 33808fi
e6cc62c6 33809rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 33810
e6cc62c6
VS
33811fi
33812echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
33813echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
33814 if test "$bakefile_cv_prog_icc" = "yes"; then
33815 PIC_FLAG="-KPIC"
33816 fi
33817 fi
33818 ;;
33819
33820 *-*-solaris2* )
33821 if test "x$GCC" != xyes ; then
33822 SHARED_LD_CC="${CC} -G -o"
33823 SHARED_LD_CXX="${CXX} -G -o"
33824 PIC_FLAG="-KPIC"
33825 fi
33826 ;;
33827
33828 *-*-darwin* )
33829 CFLAGS="$CFLAGS -fno-common"
33830 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
33831
33832
fe0895cf
VS
33833 cat <<EOF >shared-ld-sh
33834#!/bin/sh
33835#-----------------------------------------------------------------------------
33836#-- Name: distrib/mac/shared-ld-sh
33837#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
33838#-- Author: Gilles Depeyrot
33839#-- Copyright: (c) 2002 Gilles Depeyrot
33840#-- Licence: any use permitted
33841#-----------------------------------------------------------------------------
33842
33843verbose=0
33844args=""
33845objects=""
33846
33847while test \${#} -gt 0; do
33848 case \${1} in
33849
33850 -v)
33851 verbose=1
33852 ;;
33853
33854 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
33855 # collect these options and values
33856 args="\${args} \${1} \${2}"
33857 shift
33858 ;;
33859
33860 -l*|-L*|-flat_namespace)
33861 # collect these options
33862 args="\${args} \${1}"
33863 ;;
33864
33865 -dynamiclib)
33866 # skip these options
33867 ;;
33868
33869 -*)
33870 echo "shared-ld: unhandled option '\${1}'"
33871 exit 1
33872 ;;
33873
33874 *.o | *.a)
33875 # collect object files
33876 objects="\${objects} \${1}"
33877 ;;
33878
33879 *)
33880 echo "shared-ld: unhandled argument '\${1}'"
33881 exit 1
33882 ;;
33883
33884 esac
33885 shift
33886done
33887
33888#
33889# Link one module containing all the others
33890#
33891if test \${verbose} = 1; then
33892 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
33893fi
33894c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
33895status=\$?
33896if test \${status} != 0; then
33897 exit \${status}
33898fi
33899
33900#
33901# Link the shared library from the single module created
33902#
33903if test \${verbose} = 1; then
33904 echo "cc -dynamiclib master.\$\$.o \${args}"
33905fi
33906c++ -dynamiclib master.\$\$.o \${args}
33907status=\$?
33908if test \${status} != 0; then
33909 exit \${status}
33910fi
33911
33912#
33913# Remove intermediate module
33914#
33915rm -f master.\$\$.o
33916
33917exit 0
33918EOF
33919 chmod +x shared-ld-sh
33920
33921 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
33922 SHARED_LD_CXX="$SHARED_LD_CC"
33923 PIC_FLAG="-dynamic -fPIC"
33924 ;;
33925
33926 *-*-aix* )
33927 if test "x$GCC" != "xyes"; then
33928 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
33929set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
33930echo "$as_me:$LINENO: checking for $ac_word" >&5
33931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33932if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
33933 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33934else
33935 if test -n "$AIX_CXX_LD"; then
33936 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
33937else
e6cc62c6
VS
33938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33939for as_dir in $PATH
33940do
33941 IFS=$as_save_IFS
33942 test -z "$as_dir" && as_dir=.
33943 for ac_exec_ext in '' $ac_executable_extensions; do
33944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33945 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
33946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33947 break 2
33948 fi
33949done
33950done
33951
fe0895cf
VS
33952 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
33953fi
33954fi
e6cc62c6 33955AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 33956if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
33957 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
33958echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 33959else
e6cc62c6
VS
33960 echo "$as_me:$LINENO: result: no" >&5
33961echo "${ECHO_T}no" >&6
fe0895cf
VS
33962fi
33963
33964 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
33965 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
33966 fi
33967 ;;
33968
33969 *-*-beos* )
33970 SHARED_LD_CC="${LD} -shared -o"
33971 SHARED_LD_CXX="${LD} -shared -o"
33972 ;;
33973
33974 *-*-irix* )
33975 if test "x$GCC" != "xyes"; then
33976 PIC_FLAG="-KPIC"
33977 fi
33978 ;;
e6cc62c6 33979
fe0895cf
VS
33980 *-*-cygwin* | *-*-mingw32* )
33981 PIC_FLAG=""
33982 ;;
e6cc62c6 33983
fe0895cf
VS
33984 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
33985 *-*-sunos4* | \
33986 *-*-osf* | \
33987 *-*-dgux5* | \
33988 *-*-sysv5* )
33989 ;;
33990
33991 *)
e6cc62c6
VS
33992 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
33993echo "$as_me: error: unknown system type $host." >&2;}
33994 { (exit 1); exit 1; }; }
fe0895cf
VS
33995 esac
33996
fe0895cf 33997
e6cc62c6
VS
33998
33999
34000
34001
fe0895cf
VS
34002 USE_SOVERSION=0
34003 USE_SOVERLINUX=0
34004 USE_SOVERSOLARIS=0
34005 USE_SOSYMLINKS=0
34006 USE_MACVERSION=0
34007 SONAME_FLAG=
34008
34009 case "${host}" in
34010 *-*-linux* )
34011 SONAME_FLAG="-Wl,-soname,"
34012 USE_SOVERSION=1
34013 USE_SOVERLINUX=1
34014 USE_SOSYMLINKS=1
34015 ;;
34016
34017 *-*-solaris2* )
34018 SONAME_FLAG="-h "
34019 USE_SOVERSION=1
34020 USE_SOVERSOLARIS=1
34021 USE_SOSYMLINKS=1
34022 ;;
34023
34024 *-*-darwin* )
34025 USE_MACVERSION=1
34026 USE_SOVERSION=1
34027 USE_SOSYMLINKS=1
e6cc62c6 34028 ;;
fe0895cf
VS
34029 esac
34030
fe0895cf 34031
e6cc62c6
VS
34032
34033
34034
34035
34036
34037
34038
49b0a3aa
VS
34039 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34040echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34041 DEPS_TRACKING=0
34042
fe0895cf 34043 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34044 DEPSMODE=gcc
34045 DEPS_TRACKING=1
34046 echo "$as_me:$LINENO: result: gcc" >&5
34047echo "${ECHO_T}gcc" >&6
34048 else
34049 echo "$as_me:$LINENO: result: none" >&5
34050echo "${ECHO_T}none" >&6
34051 fi
34052
34053 if test $DEPS_TRACKING = 1 ; then
34054 cat <<EOF >bk-deps
34055#!/bin/sh
34056
34057# This script is part of Bakefile (http://bakefile.sf.net) autoconf script.
34058# It is used to track C/C++ files dependencies in portable way.
34059#
34060# Permission is given to use this file in any way.
34061
34062DEPSMODE=$DEPSMODE
34063DEPSDIR=.deps
34064
34065mkdir -p \$DEPSDIR
34066
34067if test \$DEPSMODE = gcc ; then
34068 \${*} -MMD
34069 status=\${?}
34070 if test \${status} != 0 ; then
34071 exit \${status}
34072 fi
34073 # move created file to the location we want it in:
34074 while test \${#} -gt 0; do
34075 case "\${1}" in
34076 -o )
34077 shift
34078 objfile=\${1}
34079 ;;
34080 -* )
34081 ;;
34082 * )
34083 srcfile=\${1}
34084 ;;
34085 esac
34086 shift
34087 done
34088 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34089 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34090 if test -f \$depfile ; then
34091 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34092 rm -f \$depfile
34093 else
34094 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34095 if test -f \$depfile ; then
4c8b7f4b 34096 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34097 rm -f \$depfile
34098 fi
34099 fi
49b0a3aa
VS
34100 exit 0
34101else
34102 \${*}
34103 exit \${?}
34104fi
34105EOF
34106 chmod +x bk-deps
fe0895cf 34107 fi
fe0895cf 34108
e6cc62c6
VS
34109
34110
34111
fe0895cf
VS
34112 RESCOMP=
34113 SETFILE=
34114
e6cc62c6 34115 case ${host} in
fe0895cf
VS
34116 *-*-cygwin* | *-*-mingw32* )
34117 if test "$build" != "$host" ; then
34118 RESCOMP=$host_alias-windres
34119 else
34120 # Extract the first word of "windres", so it can be a program name with args.
34121set dummy windres; ac_word=$2
e6cc62c6
VS
34122echo "$as_me:$LINENO: checking for $ac_word" >&5
34123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34124if test "${ac_cv_prog_RESCOMP+set}" = set; then
34125 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34126else
34127 if test -n "$RESCOMP"; then
34128 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34129else
e6cc62c6
VS
34130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34131for as_dir in $PATH
34132do
34133 IFS=$as_save_IFS
34134 test -z "$as_dir" && as_dir=.
34135 for ac_exec_ext in '' $ac_executable_extensions; do
34136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34137 ac_cv_prog_RESCOMP="windres"
34138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34139 break 2
34140 fi
34141done
34142done
34143
fe0895cf
VS
34144 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34145fi
34146fi
e6cc62c6 34147RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34148if test -n "$RESCOMP"; then
e6cc62c6
VS
34149 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34150echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34151else
e6cc62c6
VS
34152 echo "$as_me:$LINENO: result: no" >&5
34153echo "${ECHO_T}no" >&6
fe0895cf
VS
34154fi
34155
34156 fi
34157 ;;
e6cc62c6 34158
fe0895cf
VS
34159 *-*-darwin* )
34160 # Extract the first word of "Rez", so it can be a program name with args.
34161set dummy Rez; ac_word=$2
e6cc62c6
VS
34162echo "$as_me:$LINENO: checking for $ac_word" >&5
34163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34164if test "${ac_cv_prog_RESCOMP+set}" = set; then
34165 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34166else
34167 if test -n "$RESCOMP"; then
34168 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34169else
e6cc62c6
VS
34170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34171for as_dir in $PATH
34172do
34173 IFS=$as_save_IFS
34174 test -z "$as_dir" && as_dir=.
34175 for ac_exec_ext in '' $ac_executable_extensions; do
34176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34177 ac_cv_prog_RESCOMP="Rez"
34178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34179 break 2
34180 fi
34181done
34182done
34183
fe0895cf
VS
34184 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34185fi
34186fi
e6cc62c6 34187RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34188if test -n "$RESCOMP"; then
e6cc62c6
VS
34189 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34190echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34191else
e6cc62c6
VS
34192 echo "$as_me:$LINENO: result: no" >&5
34193echo "${ECHO_T}no" >&6
fe0895cf
VS
34194fi
34195
34196 # Extract the first word of "SetFile", so it can be a program name with args.
34197set dummy SetFile; ac_word=$2
e6cc62c6
VS
34198echo "$as_me:$LINENO: checking for $ac_word" >&5
34199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34200if test "${ac_cv_prog_SETFILE+set}" = set; then
34201 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34202else
34203 if test -n "$SETFILE"; then
34204 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34205else
e6cc62c6
VS
34206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34207for as_dir in $PATH
34208do
34209 IFS=$as_save_IFS
34210 test -z "$as_dir" && as_dir=.
34211 for ac_exec_ext in '' $ac_executable_extensions; do
34212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34213 ac_cv_prog_SETFILE="SetFile"
34214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34215 break 2
34216 fi
34217done
34218done
34219
fe0895cf
VS
34220 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34221fi
34222fi
e6cc62c6 34223SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34224if test -n "$SETFILE"; then
e6cc62c6
VS
34225 echo "$as_me:$LINENO: result: $SETFILE" >&5
34226echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34227else
e6cc62c6
VS
34228 echo "$as_me:$LINENO: result: no" >&5
34229echo "${ECHO_T}no" >&6
fe0895cf
VS
34230fi
34231
34232 ;;
34233 esac
34234
fe0895cf
VS
34235
34236
e6cc62c6
VS
34237
34238
34239
34240
d78c94f2 34241 COND_BUILD_DEBUG="#"
6f628073 34242 if test "x$BUILD" = "xdebug" ; then
d78c94f2 34243 COND_BUILD_DEBUG=""
6f628073
VS
34244 fi
34245
d78c94f2 34246 COND_BUILD_RELEASE="#"
6f628073 34247 if test "x$BUILD" = "xrelease" ; then
d78c94f2 34248 COND_BUILD_RELEASE=""
6b9d41a5
VS
34249 fi
34250
f95cd8fa
VS
34251 COND_DEPS_TRACKING_0="#"
34252 if test "x$DEPS_TRACKING" = "x0" ; then
34253 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
34254 fi
34255
8ee2dd05
VS
34256 COND_DEPS_TRACKING_1="#"
34257 if test "x$DEPS_TRACKING" = "x1" ; then
34258 COND_DEPS_TRACKING_1=""
34259 fi
34260
6f628073
VS
34261 COND_MONOLITHIC_0="#"
34262 if test "x$MONOLITHIC" = "x0" ; then
34263 COND_MONOLITHIC_0=""
6b9d41a5
VS
34264 fi
34265
6f628073
VS
34266 COND_MONOLITHIC_0_SHARED_0="#"
34267 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34268 COND_MONOLITHIC_0_SHARED_0=""
34269 fi
34270
34271 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34272 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34273 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 34274 fi
e6cc62c6 34275
8ee2dd05
VS
34276 COND_MONOLITHIC_0_SHARED_1="#"
34277 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34278 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 34279 fi
e6cc62c6 34280
6f628073
VS
34281 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34282 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34283 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
34284 fi
34285
3af038c0
VS
34286 COND_MONOLITHIC_1="#"
34287 if test "x$MONOLITHIC" = "x1" ; then
34288 COND_MONOLITHIC_1=""
34289 fi
34290
6f628073
VS
34291 COND_MONOLITHIC_1_SHARED_0="#"
34292 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34293 COND_MONOLITHIC_1_SHARED_0=""
34294 fi
34295
34296 COND_MONOLITHIC_1_SHARED_1="#"
34297 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34298 COND_MONOLITHIC_1_SHARED_1=""
34299 fi
34300
3af038c0
VS
34301 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
34302 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
34303 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
34304 fi
34305
34306 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
34307 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
34308 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
34309 fi
34310
6f628073
VS
34311 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34312 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34313 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
34314 fi
34315
3af038c0
VS
34316 COND_PLATFORM_MACOSX_1="#"
34317 if test "x$PLATFORM_MACOSX" = "x1" ; then
34318 COND_PLATFORM_MACOSX_1=""
34319 fi
34320
8ee2dd05
VS
34321 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34322 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34323 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34324 fi
34325
3af038c0
VS
34326 COND_PLATFORM_UNIX_1="#"
34327 if test "x$PLATFORM_UNIX" = "x1" ; then
34328 COND_PLATFORM_UNIX_1=""
34329 fi
34330
34331 COND_PLATFORM_WIN32_0="#"
34332 if test "x$PLATFORM_WIN32" = "x0" ; then
34333 COND_PLATFORM_WIN32_0=""
34334 fi
34335
34336 COND_PLATFORM_WIN32_1="#"
34337 if test "x$PLATFORM_WIN32" = "x1" ; then
34338 COND_PLATFORM_WIN32_1=""
34339 fi
34340
6f628073
VS
34341 COND_TOOLKIT_COCOA="#"
34342 if test "x$TOOLKIT" = "xCOCOA" ; then
34343 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
34344 fi
34345
6f628073
VS
34346 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
34347 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34348 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34349 fi
34350
6f628073
VS
34351 COND_TOOLKIT_GTK="#"
34352 if test "x$TOOLKIT" = "xGTK" ; then
34353 COND_TOOLKIT_GTK=""
f95cd8fa
VS
34354 fi
34355
6f628073
VS
34356 COND_TOOLKIT_GTK_USE_GUI_1="#"
34357 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
34358 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
34359 fi
34360
6f628073
VS
34361 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
34362 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34363 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34364 fi
34365
6f628073
VS
34366 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#"
34367 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34368 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1=""
8ee2dd05
VS
34369 fi
34370
3af038c0
VS
34371 COND_TOOLKIT_MAC="#"
34372 if test "x$TOOLKIT" = "xMAC" ; then
34373 COND_TOOLKIT_MAC=""
34374 fi
34375
6f628073
VS
34376 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
34377 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34378 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34379 fi
34380
6f628073
VS
34381 COND_TOOLKIT_MGL="#"
34382 if test "x$TOOLKIT" = "xMGL" ; then
34383 COND_TOOLKIT_MGL=""
8ee2dd05
VS
34384 fi
34385
6f628073
VS
34386 COND_TOOLKIT_MGL_USE_GUI_1="#"
34387 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
34388 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
34389 fi
34390
6f628073
VS
34391 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#"
34392 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34393 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1=""
8ee2dd05
VS
34394 fi
34395
6f628073
VS
34396 COND_TOOLKIT_MOTIF="#"
34397 if test "x$TOOLKIT" = "xMOTIF" ; then
34398 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
34399 fi
34400
6f628073
VS
34401 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
34402 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
34403 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 34404 fi
e6cc62c6 34405
6f628073
VS
34406 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
34407 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34408 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34409 fi
34410
6f628073
VS
34411 COND_TOOLKIT_MSW="#"
34412 if test "x$TOOLKIT" = "xMSW" ; then
34413 COND_TOOLKIT_MSW=""
8ee2dd05
VS
34414 fi
34415
6f628073
VS
34416 COND_TOOLKIT_MSW_USE_GUI_1="#"
34417 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
34418 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 34419 fi
e6cc62c6 34420
6f628073
VS
34421 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
34422 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34423 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 34424 fi
e6cc62c6 34425
6f628073
VS
34426 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#"
34427 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34428 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1=""
f95cd8fa
VS
34429 fi
34430
6f628073
VS
34431 COND_TOOLKIT_OS2="#"
34432 if test "x$TOOLKIT" = "xOS2" ; then
34433 COND_TOOLKIT_OS2=""
9747f85d
VS
34434 fi
34435
6f628073
VS
34436 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
34437 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34438 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
34439 fi
34440
6f628073
VS
34441 COND_TOOLKIT_X11="#"
34442 if test "x$TOOLKIT" = "xX11" ; then
34443 COND_TOOLKIT_X11=""
9747f85d
VS
34444 fi
34445
6f628073
VS
34446 COND_TOOLKIT_X11_USE_GUI_1="#"
34447 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
34448 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
34449 fi
34450
8ee2dd05
VS
34451 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#"
34452 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34453 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1=""
f95cd8fa
VS
34454 fi
34455
3af038c0
VS
34456 COND_UNICODE_1="#"
34457 if test "x$UNICODE" = "x1" ; then
34458 COND_UNICODE_1=""
34459 fi
34460
34461 COND_USE_GUI_0="#"
34462 if test "x$USE_GUI" = "x0" ; then
34463 COND_USE_GUI_0=""
34464 fi
34465
34466 COND_USE_GUI_1="#"
34467 if test "x$USE_GUI" = "x1" ; then
34468 COND_USE_GUI_1=""
34469 fi
34470
e6cc62c6 34471 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
34472 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34473 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 34474 fi
e6cc62c6
VS
34475
34476 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
34477 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34478 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
34479 fi
34480
6f628073
VS
34481 COND_USE_SOSYMLINKS_1="#"
34482 if test "x$USE_SOSYMLINKS" = "x1" ; then
34483 COND_USE_SOSYMLINKS_1=""
b625909c
VS
34484 fi
34485
6f628073
VS
34486 COND_USE_SOVERLINUX_1="#"
34487 if test "x$USE_SOVERLINUX" = "x1" ; then
34488 COND_USE_SOVERLINUX_1=""
b625909c
VS
34489 fi
34490
6f628073
VS
34491 COND_USE_SOVERSION_0="#"
34492 if test "x$USE_SOVERSION" = "x0" ; then
34493 COND_USE_SOVERSION_0=""
fddeb06b 34494 fi
fe0895cf 34495
6f628073
VS
34496 COND_USE_SOVERSOLARIS_1="#"
34497 if test "x$USE_SOVERSOLARIS" = "x1" ; then
34498 COND_USE_SOVERSOLARIS_1=""
fddeb06b 34499 fi
fe0895cf 34500
3af038c0
VS
34501 COND_WXUNIV_1="#"
34502 if test "x$WXUNIV" = "x1" ; then
34503 COND_WXUNIV_1=""
34504 fi
34505
02980527
VS
34506 COND_WXUSE_LIBJPEG_BUILTIN="#"
34507 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34508 COND_WXUSE_LIBJPEG_BUILTIN=""
34509 fi
34510
34511 COND_WXUSE_LIBPNG_BUILTIN="#"
34512 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34513 COND_WXUSE_LIBPNG_BUILTIN=""
34514 fi
34515
34516 COND_WXUSE_LIBTIFF_BUILTIN="#"
34517 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34518 COND_WXUSE_LIBTIFF_BUILTIN=""
34519 fi
34520
34521 COND_WXUSE_ODBC_BUILTIN="#"
34522 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
34523 COND_WXUSE_ODBC_BUILTIN=""
34524 fi
34525
34526 COND_WXUSE_REGEX_BUILTIN="#"
34527 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
34528 COND_WXUSE_REGEX_BUILTIN=""
34529 fi
34530
34531 COND_WXUSE_ZLIB_BUILTIN="#"
34532 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
34533 COND_WXUSE_ZLIB_BUILTIN=""
34534 fi
34535
dc838d98
VS
34536 COND_PLATFORM_MAC_1="#"
34537 if test "x$PLATFORM_MAC" = "x1" ; then
34538 COND_PLATFORM_MAC_1=""
34539 fi
34540
34541 COND_SHARED_1="#"
34542 if test "x$SHARED" = "x1" ; then
34543 COND_SHARED_1=""
34544 fi
34545
34546 COND_SHARED_0="#"
34547 if test "x$SHARED" = "x0" ; then
34548 COND_SHARED_0=""
34549 fi
34550
fe0895cf 34551
fe0895cf 34552
fe0895cf 34553
fe0895cf
VS
34554
34555
fddeb06b 34556SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
fe0895cf 34651
f0290fca
VS
34652
34653
e6cc62c6
VS
34654
34655
34656
34657echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34658echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34659set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34660if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34661 echo $ECHO_N "(cached) $ECHO_C" >&6
34662else
34663 cat >conftest.make <<\_ACEOF
34664all:
34665 @echo 'ac_maketemp="$(MAKE)"'
34666_ACEOF
34667# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34668eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34669if test -n "$ac_maketemp"; then
34670 eval ac_cv_prog_make_${ac_make}_set=yes
34671else
34672 eval ac_cv_prog_make_${ac_make}_set=no
34673fi
34674rm -f conftest.make
34675fi
34676if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34677 echo "$as_me:$LINENO: result: yes" >&5
34678echo "${ECHO_T}yes" >&6
34679 SET_MAKE=
34680else
34681 echo "$as_me:$LINENO: result: no" >&5
34682echo "${ECHO_T}no" >&6
34683 SET_MAKE="MAKE=${MAKE-make}"
34684fi
34685
34686
34687if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
34688 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
34689fi
34690
34691 ac_config_headers="$ac_config_headers setup.h"
34692
34693
81345eef 34694 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
34695
34696
34697 ac_config_commands="$ac_config_commands default"
34698
34699
9de9b8f0 34700
6c3e36af
VZ
34701if test "$wxUSE_GUI" = "yes"; then
34702 SUBDIRS="samples demos utils contrib"
34703else SUBDIRS="samples utils"
34704fi
e6cc62c6 34705
166263e6 34706for subdir in `echo $SUBDIRS`; do
9747f85d 34707 if test -d ${srcdir}/${subdir} ; then
6c3e36af 34708 if test "$wxUSE_GUI" = "yes"; then
166263e6
VZ
34709 if test ${subdir} = "samples"; then
34710 for sample in `echo $SAMPLES_SUBDIRS`; do
34711 if test -d $srcdir/samples/$sample; then
34712 makefiles="samples/$sample/Makefile.in $makefiles"
34713 fi
34714 done
34715 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
34716 fi
6c3e36af
VZ
34717 else if test ${subdir} = "samples"; then
34718 makefiles="samples/console/Makefile.in"
34719 else makefiles="utils/HelpGen/Makefile.in \
34720 utils/HelpGen/src/Makefile.in \
34721 utils/makegen/Makefile.in"
34722 fi
34723 fi
34724
9747f85d
VS
34725 for mkin in $makefiles ; do
34726 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
34727 ac_config_files="$ac_config_files $mk"
e6cc62c6 34728
9747f85d
VS
34729 done
34730 fi
34731done
e6cc62c6 34732
9de9b8f0 34733
e6cc62c6
VS
34734cat >confcache <<\_ACEOF
34735# This file is a shell script that caches the results of configure
34736# tests run on this system so they can be shared between configure
34737# scripts and configure runs, see configure's option --config-cache.
34738# It is not useful on other systems. If it contains results you don't
34739# want to keep, you may remove or edit it.
34740#
34741# config.status only pays attention to the cache file if you give it
34742# the --recheck option to rerun configure.
34743#
34744# `ac_cv_env_foo' variables (set or unset) will be overridden when
34745# loading this file, other *unset* `ac_cv_foo' will be assigned the
34746# following values.
34747
34748_ACEOF
34749
34750# The following way of writing the cache mishandles newlines in values,
34751# but we know of no workaround that is simple, portable, and efficient.
34752# So, don't put newlines in cache variables' values.
34753# Ultrix sh set writes to stderr and can't be redirected directly,
34754# and sets the high bit in the cache file unless we assign to the vars.
34755{
34756 (set) 2>&1 |
34757 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34758 *ac_space=\ *)
34759 # `set' does not quote correctly, so add quotes (double-quote
34760 # substitution turns \\\\ into \\, and sed turns \\ into \).
34761 sed -n \
34762 "s/'/'\\\\''/g;
34763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34764 ;;
34765 *)
34766 # `set' quotes correctly as required by POSIX, so do not add quotes.
34767 sed -n \
34768 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34769 ;;
34770 esac;
34771} |
34772 sed '
34773 t clear
34774 : clear
34775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34776 t end
34777 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34778 : end' >>confcache
34779if diff $cache_file confcache >/dev/null 2>&1; then :; else
34780 if test -w $cache_file; then
34781 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34782 cat confcache >$cache_file
34783 else
34784 echo "not updating unwritable cache $cache_file"
34785 fi
34786fi
34787rm -f confcache
34788
34789test "x$prefix" = xNONE && prefix=$ac_default_prefix
34790# Let make expand exec_prefix.
34791test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34792
34793# VPATH may cause trouble with some makes, so we remove $(srcdir),
34794# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34795# trailing colons and then remove the whole line if VPATH becomes empty
34796# (actually we leave an empty line to preserve line numbers).
34797if test "x$srcdir" = x.; then
34798 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34799s/:*\$(srcdir):*/:/;
34800s/:*\${srcdir}:*/:/;
34801s/:*@srcdir@:*/:/;
34802s/^\([^=]*=[ ]*\):*/\1/;
34803s/:*$//;
34804s/^[^=]*=[ ]*$//;
34805}'
34806fi
34807
34808DEFS=-DHAVE_CONFIG_H
34809
34810ac_libobjs=
34811ac_ltlibobjs=
34812for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34813 # 1. Remove the extension, and $U if already installed.
34814 ac_i=`echo "$ac_i" |
34815 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34816 # 2. Add them.
34817 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34818 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
34819done
34820LIBOBJS=$ac_libobjs
34821
34822LTLIBOBJS=$ac_ltlibobjs
34823
34824
34825
34826: ${CONFIG_STATUS=./config.status}
34827ac_clean_files_save=$ac_clean_files
34828ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34829{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34830echo "$as_me: creating $CONFIG_STATUS" >&6;}
34831cat >$CONFIG_STATUS <<_ACEOF
34832#! $SHELL
34833# Generated by $as_me.
34834# Run this file to recreate the current configuration.
34835# Compiler output produced by configure, useful for debugging
34836# configure, is in config.log if it exists.
34837
34838debug=false
34839ac_cs_recheck=false
34840ac_cs_silent=false
34841SHELL=\${CONFIG_SHELL-$SHELL}
34842_ACEOF
34843
34844cat >>$CONFIG_STATUS <<\_ACEOF
34845## --------------------- ##
34846## M4sh Initialization. ##
34847## --------------------- ##
34848
34849# Be Bourne compatible
34850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34851 emulate sh
34852 NULLCMD=:
34853 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34854 # is contrary to our usage. Disable this feature.
34855 alias -g '${1+"$@"}'='"$@"'
34856elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34857 set -o posix
34858fi
34859
34860# Support unset when possible.
34861if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34862 as_unset=unset
34863else
34864 as_unset=false
34865fi
34866
34867
34868# Work around bugs in pre-3.0 UWIN ksh.
34869$as_unset ENV MAIL MAILPATH
34870PS1='$ '
34871PS2='> '
34872PS4='+ '
34873
34874# NLS nuisances.
34875for as_var in \
34876 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34877 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34878 LC_TELEPHONE LC_TIME
34879do
34880 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
34881 eval $as_var=C; export $as_var
34882 else
34883 $as_unset $as_var
34884 fi
34885done
34886
34887# Required to use basename.
34888if expr a : '\(a\)' >/dev/null 2>&1; then
34889 as_expr=expr
34890else
34891 as_expr=false
34892fi
34893
34894if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
34895 as_basename=basename
34896else
34897 as_basename=false
34898fi
34899
34900
34901# Name of the executable.
34902as_me=`$as_basename "$0" ||
34903$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34904 X"$0" : 'X\(//\)$' \| \
34905 X"$0" : 'X\(/\)$' \| \
34906 . : '\(.\)' 2>/dev/null ||
34907echo X/"$0" |
34908 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34909 /^X\/\(\/\/\)$/{ s//\1/; q; }
34910 /^X\/\(\/\).*/{ s//\1/; q; }
34911 s/.*/./; q'`
34912
34913
34914# PATH needs CR, and LINENO needs CR and PATH.
34915# Avoid depending upon Character Ranges.
34916as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34917as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34918as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34919as_cr_digits='0123456789'
34920as_cr_alnum=$as_cr_Letters$as_cr_digits
34921
34922# The user is always right.
34923if test "${PATH_SEPARATOR+set}" != set; then
34924 echo "#! /bin/sh" >conf$$.sh
34925 echo "exit 0" >>conf$$.sh
34926 chmod +x conf$$.sh
34927 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34928 PATH_SEPARATOR=';'
34929 else
34930 PATH_SEPARATOR=:
34931 fi
34932 rm -f conf$$.sh
34933fi
34934
34935
34936 as_lineno_1=$LINENO
34937 as_lineno_2=$LINENO
34938 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34939 test "x$as_lineno_1" != "x$as_lineno_2" &&
34940 test "x$as_lineno_3" = "x$as_lineno_2" || {
34941 # Find who we are. Look in the path if we contain no path at all
34942 # relative or not.
34943 case $0 in
34944 *[\\/]* ) as_myself=$0 ;;
34945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34946for as_dir in $PATH
34947do
34948 IFS=$as_save_IFS
34949 test -z "$as_dir" && as_dir=.
34950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34951done
34952
34953 ;;
34954 esac
34955 # We did not find ourselves, most probably we were run as `sh COMMAND'
34956 # in which case we are not to be found in the path.
34957 if test "x$as_myself" = x; then
34958 as_myself=$0
34959 fi
34960 if test ! -f "$as_myself"; then
34961 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
34962echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
34963 { (exit 1); exit 1; }; }
34964 fi
34965 case $CONFIG_SHELL in
34966 '')
34967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34968for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
34969do
34970 IFS=$as_save_IFS
34971 test -z "$as_dir" && as_dir=.
34972 for as_base in sh bash ksh sh5; do
34973 case $as_dir in
34974 /*)
34975 if ("$as_dir/$as_base" -c '
34976 as_lineno_1=$LINENO
34977 as_lineno_2=$LINENO
34978 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34979 test "x$as_lineno_1" != "x$as_lineno_2" &&
34980 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
34981 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
34982 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
34983 CONFIG_SHELL=$as_dir/$as_base
34984 export CONFIG_SHELL
34985 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
34986 fi;;
34987 esac
34988 done
34989done
34990;;
34991 esac
34992
34993 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34994 # uniformly replaced by the line number. The first 'sed' inserts a
34995 # line-number line before each line; the second 'sed' does the real
34996 # work. The second script uses 'N' to pair each line-number line
34997 # with the numbered line, and appends trailing '-' during
34998 # substitution so that $LINENO is not a special case at line end.
34999 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35000 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35001 sed '=' <$as_myself |
35002 sed '
35003 N
35004 s,$,-,
35005 : loop
35006 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35007 t loop
35008 s,-$,,
35009 s,^['$as_cr_digits']*\n,,
35010 ' >$as_me.lineno &&
35011 chmod +x $as_me.lineno ||
35012 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35013echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35014 { (exit 1); exit 1; }; }
35015
35016 # Don't try to exec as it changes $[0], causing all sort of problems
35017 # (the dirname of $[0] is not the place where we might find the
35018 # original and so on. Autoconf is especially sensible to this).
35019 . ./$as_me.lineno
35020 # Exit status is that of the last command.
35021 exit
35022}
35023
35024
35025case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35026 *c*,-n*) ECHO_N= ECHO_C='
35027' ECHO_T=' ' ;;
35028 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35029 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35030esac
35031
35032if expr a : '\(a\)' >/dev/null 2>&1; then
35033 as_expr=expr
35034else
35035 as_expr=false
35036fi
35037
35038rm -f conf$$ conf$$.exe conf$$.file
35039echo >conf$$.file
35040if ln -s conf$$.file conf$$ 2>/dev/null; then
35041 # We could just check for DJGPP; but this test a) works b) is more generic
35042 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35043 if test -f conf$$.exe; then
35044 # Don't use ln at all; we don't have any links
35045 as_ln_s='cp -p'
35046 else
35047 as_ln_s='ln -s'
35048 fi
35049elif ln conf$$.file conf$$ 2>/dev/null; then
35050 as_ln_s=ln
35051else
35052 as_ln_s='cp -p'
35053fi
35054rm -f conf$$ conf$$.exe conf$$.file
35055
35056if mkdir -p . 2>/dev/null; then
35057 as_mkdir_p=:
35058else
35059 as_mkdir_p=false
35060fi
35061
35062as_executable_p="test -f"
35063
35064# Sed expression to map a string onto a valid CPP name.
35065as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35066
35067# Sed expression to map a string onto a valid variable name.
35068as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35069
35070
35071# IFS
35072# We need space, tab and new line, in precisely that order.
35073as_nl='
35074'
35075IFS=" $as_nl"
35076
35077# CDPATH.
35078$as_unset CDPATH
35079
35080exec 6>&1
35081
35082# Open the log real soon, to keep \$[0] and so on meaningful, and to
35083# report actual input values of CONFIG_FILES etc. instead of their
35084# values after options handling. Logging --version etc. is OK.
35085exec 5>>config.log
35086{
35087 echo
35088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35089## Running $as_me. ##
35090_ASBOX
35091} >&5
35092cat >&5 <<_CSEOF
35093
35094This file was extended by wxWindows $as_me 2.5.0, which was
35095generated by GNU Autoconf 2.57. Invocation command line was
35096
35097 CONFIG_FILES = $CONFIG_FILES
35098 CONFIG_HEADERS = $CONFIG_HEADERS
35099 CONFIG_LINKS = $CONFIG_LINKS
35100 CONFIG_COMMANDS = $CONFIG_COMMANDS
35101 $ $0 $@
35102
35103_CSEOF
35104echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35105echo >&5
35106_ACEOF
35107
35108# Files that config.status was made for.
35109if test -n "$ac_config_files"; then
35110 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35111fi
35112
35113if test -n "$ac_config_headers"; then
35114 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35115fi
35116
35117if test -n "$ac_config_links"; then
35118 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35119fi
35120
35121if test -n "$ac_config_commands"; then
35122 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35123fi
35124
35125cat >>$CONFIG_STATUS <<\_ACEOF
35126
35127ac_cs_usage="\
35128\`$as_me' instantiates files from templates according to the
35129current configuration.
35130
35131Usage: $0 [OPTIONS] [FILE]...
35132
35133 -h, --help print this help, then exit
35134 -V, --version print version number, then exit
35135 -q, --quiet do not print progress messages
35136 -d, --debug don't remove temporary files
35137 --recheck update $as_me by reconfiguring in the same conditions
35138 --file=FILE[:TEMPLATE]
35139 instantiate the configuration file FILE
35140 --header=FILE[:TEMPLATE]
35141 instantiate the configuration header FILE
35142
35143Configuration files:
35144$config_files
35145
35146Configuration headers:
35147$config_headers
35148
35149Configuration commands:
35150$config_commands
35151
35152Report bugs to <bug-autoconf@gnu.org>."
35153_ACEOF
35154
35155cat >>$CONFIG_STATUS <<_ACEOF
35156ac_cs_version="\\
35157wxWindows config.status 2.5.0
35158configured by $0, generated by GNU Autoconf 2.57,
35159 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35160
35161Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35162Free Software Foundation, Inc.
35163This config.status script is free software; the Free Software Foundation
35164gives unlimited permission to copy, distribute and modify it."
35165srcdir=$srcdir
35166INSTALL="$INSTALL"
35167_ACEOF
35168
35169cat >>$CONFIG_STATUS <<\_ACEOF
35170# If no file are specified by the user, then we need to provide default
35171# value. By we need to know if files were specified by the user.
35172ac_need_defaults=:
35173while test $# != 0
35174do
35175 case $1 in
35176 --*=*)
35177 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35178 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35179 ac_shift=:
35180 ;;
35181 -*)
35182 ac_option=$1
35183 ac_optarg=$2
35184 ac_shift=shift
35185 ;;
35186 *) # This is not an option, so the user has probably given explicit
35187 # arguments.
35188 ac_option=$1
35189 ac_need_defaults=false;;
35190 esac
35191
35192 case $ac_option in
35193 # Handling of the options.
35194_ACEOF
35195cat >>$CONFIG_STATUS <<\_ACEOF
35196 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35197 ac_cs_recheck=: ;;
35198 --version | --vers* | -V )
35199 echo "$ac_cs_version"; exit 0 ;;
35200 --he | --h)
35201 # Conflict between --help and --header
35202 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35203Try \`$0 --help' for more information." >&5
35204echo "$as_me: error: ambiguous option: $1
35205Try \`$0 --help' for more information." >&2;}
35206 { (exit 1); exit 1; }; };;
35207 --help | --hel | -h )
35208 echo "$ac_cs_usage"; exit 0 ;;
35209 --debug | --d* | -d )
35210 debug=: ;;
35211 --file | --fil | --fi | --f )
35212 $ac_shift
35213 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35214 ac_need_defaults=false;;
35215 --header | --heade | --head | --hea )
35216 $ac_shift
35217 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35218 ac_need_defaults=false;;
35219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35221 ac_cs_silent=: ;;
35222
35223 # This is an error.
35224 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35225Try \`$0 --help' for more information." >&5
35226echo "$as_me: error: unrecognized option: $1
35227Try \`$0 --help' for more information." >&2;}
35228 { (exit 1); exit 1; }; } ;;
35229
35230 *) ac_config_targets="$ac_config_targets $1" ;;
35231
35232 esac
35233 shift
35234done
35235
35236ac_configure_extra_args=
35237
35238if $ac_cs_silent; then
35239 exec 6>/dev/null
35240 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35241fi
35242
e6cc62c6
VS
35243_ACEOF
35244cat >>$CONFIG_STATUS <<_ACEOF
35245if \$ac_cs_recheck; then
35246 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35247 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
35248fi
35249
e6cc62c6 35250_ACEOF
fe0895cf 35251
e6cc62c6 35252cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 35253#
e6cc62c6 35254# INIT-COMMANDS section.
10f2d63a 35255#
10f2d63a 35256
a0b9e27f 35257
e6cc62c6
VS
35258 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35259 LN_S="${LN_S}"
10f2d63a 35260
10f2d63a 35261
10f2d63a 35262
e6cc62c6 35263_ACEOF
8284b0c5 35264
52127426 35265
247f5006 35266
e6cc62c6
VS
35267cat >>$CONFIG_STATUS <<\_ACEOF
35268for ac_config_target in $ac_config_targets
247f5006 35269do
e6cc62c6
VS
35270 case "$ac_config_target" in
35271 # Handling of arguments.
81345eef
VZ
35272 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35273 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35274 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 35275 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
35276 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35277 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35278 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35279echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35280 { (exit 1); exit 1; }; };;
247f5006
VZ
35281 esac
35282done
35283
e6cc62c6
VS
35284# If the user did not use the arguments to specify the items to instantiate,
35285# then the envvar interface is used. Set only those that are not.
35286# We use the long form for the default assignment because of an extremely
35287# bizarre bug on SunOS 4.1.3.
35288if $ac_need_defaults; then
35289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35290 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35291 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35292fi
35293
35294# Have a temporary directory for convenience. Make it in the build tree
35295# simply because there is no reason to put it here, and in addition,
35296# creating and moving files from /tmp can sometimes cause problems.
35297# Create a temporary directory, and hook for its removal unless debugging.
35298$debug ||
35299{
35300 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35301 trap '{ (exit 1); exit 1; }' 1 2 13 15
35302}
247f5006 35303
e6cc62c6 35304# Create a (secure) tmp directory for tmp files.
247f5006 35305
e6cc62c6
VS
35306{
35307 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35308 test -n "$tmp" && test -d "$tmp"
35309} ||
35310{
35311 tmp=./confstat$$-$RANDOM
35312 (umask 077 && mkdir $tmp)
35313} ||
35314{
35315 echo "$me: cannot create a temporary directory in ." >&2
35316 { (exit 1); exit 1; }
35317}
35318
35319_ACEOF
35320
35321cat >>$CONFIG_STATUS <<_ACEOF
35322
35323#
35324# CONFIG_FILES section.
35325#
247f5006 35326
e6cc62c6
VS
35327# No need to generate the scripts if there are no CONFIG_FILES.
35328# This happens for instance when ./config.status config.h
35329if test -n "\$CONFIG_FILES"; then
35330 # Protect against being on the right side of a sed subst in config.status.
35331 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35332 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35333s,@SHELL@,$SHELL,;t t
35334s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35335s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35336s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35337s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35338s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35339s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35340s,@exec_prefix@,$exec_prefix,;t t
35341s,@prefix@,$prefix,;t t
35342s,@program_transform_name@,$program_transform_name,;t t
35343s,@bindir@,$bindir,;t t
35344s,@sbindir@,$sbindir,;t t
35345s,@libexecdir@,$libexecdir,;t t
35346s,@datadir@,$datadir,;t t
35347s,@sysconfdir@,$sysconfdir,;t t
35348s,@sharedstatedir@,$sharedstatedir,;t t
35349s,@localstatedir@,$localstatedir,;t t
35350s,@libdir@,$libdir,;t t
35351s,@includedir@,$includedir,;t t
35352s,@oldincludedir@,$oldincludedir,;t t
35353s,@infodir@,$infodir,;t t
35354s,@mandir@,$mandir,;t t
35355s,@build_alias@,$build_alias,;t t
35356s,@host_alias@,$host_alias,;t t
35357s,@target_alias@,$target_alias,;t t
35358s,@DEFS@,$DEFS,;t t
35359s,@ECHO_C@,$ECHO_C,;t t
35360s,@ECHO_N@,$ECHO_N,;t t
35361s,@ECHO_T@,$ECHO_T,;t t
35362s,@LIBS@,$LIBS,;t t
35363s,@build@,$build,;t t
35364s,@build_cpu@,$build_cpu,;t t
35365s,@build_vendor@,$build_vendor,;t t
35366s,@build_os@,$build_os,;t t
35367s,@host@,$host,;t t
35368s,@host_cpu@,$host_cpu,;t t
35369s,@host_vendor@,$host_vendor,;t t
35370s,@host_os@,$host_os,;t t
35371s,@target@,$target,;t t
35372s,@target_cpu@,$target_cpu,;t t
35373s,@target_vendor@,$target_vendor,;t t
35374s,@target_os@,$target_os,;t t
35375s,@CC@,$CC,;t t
35376s,@CFLAGS@,$CFLAGS,;t t
35377s,@LDFLAGS@,$LDFLAGS,;t t
35378s,@CPPFLAGS@,$CPPFLAGS,;t t
35379s,@ac_ct_CC@,$ac_ct_CC,;t t
35380s,@EXEEXT@,$EXEEXT,;t t
35381s,@OBJEXT@,$OBJEXT,;t t
35382s,@CPP@,$CPP,;t t
35383s,@EGREP@,$EGREP,;t t
35384s,@CXX@,$CXX,;t t
35385s,@CXXFLAGS@,$CXXFLAGS,;t t
35386s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35387s,@RANLIB@,$RANLIB,;t t
35388s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35389s,@AR@,$AR,;t t
35390s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35391s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35392s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35393s,@STRIP@,$STRIP,;t t
35394s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35395s,@YACC@,$YACC,;t t
35396s,@LEX@,$LEX,;t t
35397s,@LEXLIB@,$LEXLIB,;t t
35398s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35399s,@LN_S@,$LN_S,;t t
35400s,@CXXCPP@,$CXXCPP,;t t
35401s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35402s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35403s,@GTK_LIBS@,$GTK_LIBS,;t t
35404s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35405s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35406s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35407s,@X_CFLAGS@,$X_CFLAGS,;t t
35408s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35409s,@X_LIBS@,$X_LIBS,;t t
35410s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35411s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35412s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35413s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35414s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
35415s,@RESCOMP@,$RESCOMP,;t t
35416s,@DEREZ@,$DEREZ,;t t
35417s,@SETFILE@,$SETFILE,;t t
35418s,@LIBICONV@,$LIBICONV,;t t
35419s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35420s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
35421s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35422s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35423s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35424s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
35425s,@VENDOR@,$VENDOR,;t t
35426s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
35427s,@WXUNIV@,$WXUNIV,;t t
35428s,@MONOLITHIC@,$MONOLITHIC,;t t
35429s,@EXTRALIBS@,$EXTRALIBS,;t t
c74dc163 35430s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
e6cc62c6
VS
35431s,@UNICODE@,$UNICODE,;t t
35432s,@BUILD@,$BUILD,;t t
35433s,@SHARED@,$SHARED,;t t
35434s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35435s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35436s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
35437s,@SET_MAKE@,$SET_MAKE,;t t
35438s,@MAKE_SET@,$MAKE_SET,;t t
35439s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 35440s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
35441s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35442s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35443s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35444s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35445s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35446s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35447s,@DLLPREFIX@,$DLLPREFIX,;t t
dc838d98 35448s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
35449s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35450s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35451s,@PIC_FLAG@,$PIC_FLAG,;t t
35452s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35453s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35454s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35455s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35456s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35457s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 35458s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
d78c94f2
VS
35459s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35460s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
f95cd8fa 35461s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 35462s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
6f628073 35463s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
35464s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
35465s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8ee2dd05 35466s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 35467s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
3af038c0 35468s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
35469s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
35470s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
35471s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
35472s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 35473s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 35474s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
8ee2dd05 35475s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
3af038c0
VS
35476s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
35477s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35478s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
6f628073
VS
35479s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
35480s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
35481s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
35482s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05
VS
35483s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
35484s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t
3af038c0 35485s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
6f628073
VS
35486s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
35487s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
35488s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
35489s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t
35490s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
35491s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
35492s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 35493s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
35494s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
35495s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 35496s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t
6f628073
VS
35497s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
35498s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
35499s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
35500s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
8ee2dd05 35501s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t
3af038c0
VS
35502s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
35503s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
35504s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
35505s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
35506s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
6f628073
VS
35507s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
35508s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
35509s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
35510s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0
VS
35511s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
35512s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
35513s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
35514s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
35515s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
35516s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
35517s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
dc838d98
VS
35518s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
35519s,@COND_SHARED_1@,$COND_SHARED_1,;t t
35520s,@COND_SHARED_0@,$COND_SHARED_0,;t t
e6cc62c6
VS
35521s,@LEX_STEM@,$LEX_STEM,;t t
35522s,@PATH_IFS@,$PATH_IFS,;t t
35523s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
35524s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
35525s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
35526s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
35527s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
35528s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
35529s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
35530s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
35531s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
35532s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
35533s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
35534s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
35535s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
35536s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
35537s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
35538s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
35539s,@WX_ALL@,$WX_ALL,;t t
35540s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
35541s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
35542s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
35543s,@STATIC_FLAG@,$STATIC_FLAG,;t t
35544s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
35545s,@USE_GUI@,$USE_GUI,;t t
35546s,@AFMINSTALL@,$AFMINSTALL,;t t
35547s,@WIN32INSTALL@,$WIN32INSTALL,;t t
35548s,@TOOLKIT@,$TOOLKIT,;t t
35549s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
35550s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
35551s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
35552s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
35553s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
35554s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
35555s,@cross_compiling@,$cross_compiling,;t t
35556s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
35557s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
35558s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
35559s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
35560s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
35561s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
35562s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
35563s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
35564s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
35565s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
35566s,@ALL_HEADERS@,$ALL_HEADERS,;t t
35567s,@ALL_SOURCES@,$ALL_SOURCES,;t t
35568s,@GUIDIST@,$GUIDIST,;t t
35569s,@PORT_FILES@,$PORT_FILES,;t t
35570s,@DISTDIR@,$DISTDIR,;t t
35571s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
35572s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
35573s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
35574s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
35575s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
35576s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
35577s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
35578s,@RESFLAGS@,$RESFLAGS,;t t
35579s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
35580s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
35581s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
35582s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
35583s,@LIBWXMACRES@,$LIBWXMACRES,;t t
35584s,@MACRESCOMP@,$MACRESCOMP,;t t
35585s,@MACSETFILE@,$MACSETFILE,;t t
35586s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
35587s,@GCC@,$GCC,;t t
35588s,@DLLTOOL@,$DLLTOOL,;t t
35589s,@AS@,$AS,;t t
35590s,@NM@,$NM,;t t
35591s,@LD@,$LD,;t t
35592s,@MAKEINFO@,$MAKEINFO,;t t
35593s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
35594s,@ESD_LINK@,$ESD_LINK,;t t
35595s,@LIBOBJS@,$LIBOBJS,;t t
35596s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
35597CEOF
35598
e6cc62c6
VS
35599_ACEOF
35600
35601 cat >>$CONFIG_STATUS <<\_ACEOF
35602 # Split the substitutions into bite-sized pieces for seds with
35603 # small command number limits, like on Digital OSF/1 and HP-UX.
35604 ac_max_sed_lines=48
35605 ac_sed_frag=1 # Number of current file.
35606 ac_beg=1 # First line for current file.
35607 ac_end=$ac_max_sed_lines # Line after last line for current file.
35608 ac_more_lines=:
35609 ac_sed_cmds=
35610 while $ac_more_lines; do
35611 if test $ac_beg -gt 1; then
35612 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 35613 else
e6cc62c6
VS
35614 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35615 fi
35616 if test ! -s $tmp/subs.frag; then
35617 ac_more_lines=false
35618 else
35619 # The purpose of the label and of the branching condition is to
35620 # speed up the sed processing (if there are no `@' at all, there
35621 # is no need to browse any of the substitutions).
35622 # These are the two extra sed commands mentioned above.
35623 (echo ':t
35624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35625 if test -z "$ac_sed_cmds"; then
35626 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35627 else
35628 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35629 fi
35630 ac_sed_frag=`expr $ac_sed_frag + 1`
35631 ac_beg=$ac_end
35632 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 35633 fi
e6cc62c6
VS
35634 done
35635 if test -z "$ac_sed_cmds"; then
35636 ac_sed_cmds=cat
10f2d63a 35637 fi
e6cc62c6 35638fi # test -n "$CONFIG_FILES"
10f2d63a 35639
e6cc62c6
VS
35640_ACEOF
35641cat >>$CONFIG_STATUS <<\_ACEOF
35642for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 35643 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35644 case $ac_file in
35645 - | *:- | *:-:* ) # input from stdin
35646 cat >$tmp/stdin
35647 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35648 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35649 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35650 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35651 * ) ac_file_in=$ac_file.in ;;
10f2d63a 35652 esac
247f5006 35653
e6cc62c6
VS
35654 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35655 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35656$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35657 X"$ac_file" : 'X\(//\)[^/]' \| \
35658 X"$ac_file" : 'X\(//\)$' \| \
35659 X"$ac_file" : 'X\(/\)' \| \
35660 . : '\(.\)' 2>/dev/null ||
35661echo X"$ac_file" |
35662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35664 /^X\(\/\/\)$/{ s//\1/; q; }
35665 /^X\(\/\).*/{ s//\1/; q; }
35666 s/.*/./; q'`
35667 { if $as_mkdir_p; then
35668 mkdir -p "$ac_dir"
a0b9e27f 35669 else
e6cc62c6
VS
35670 as_dir="$ac_dir"
35671 as_dirs=
35672 while test ! -d "$as_dir"; do
35673 as_dirs="$as_dir $as_dirs"
35674 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35675$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35676 X"$as_dir" : 'X\(//\)[^/]' \| \
35677 X"$as_dir" : 'X\(//\)$' \| \
35678 X"$as_dir" : 'X\(/\)' \| \
35679 . : '\(.\)' 2>/dev/null ||
35680echo X"$as_dir" |
35681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35683 /^X\(\/\/\)$/{ s//\1/; q; }
35684 /^X\(\/\).*/{ s//\1/; q; }
35685 s/.*/./; q'`
35686 done
35687 test ! -n "$as_dirs" || mkdir $as_dirs
35688 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35689echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35690 { (exit 1); exit 1; }; }; }
35691
35692 ac_builddir=.
35693
35694if test "$ac_dir" != .; then
35695 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35696 # A "../" for each directory in $ac_dir_suffix.
35697 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35698else
35699 ac_dir_suffix= ac_top_builddir=
35700fi
247f5006 35701
e6cc62c6
VS
35702case $srcdir in
35703 .) # No --srcdir option. We are building in place.
35704 ac_srcdir=.
35705 if test -z "$ac_top_builddir"; then
35706 ac_top_srcdir=.
35707 else
35708 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35709 fi ;;
35710 [\\/]* | ?:[\\/]* ) # Absolute path.
35711 ac_srcdir=$srcdir$ac_dir_suffix;
35712 ac_top_srcdir=$srcdir ;;
247f5006 35713 *) # Relative path.
e6cc62c6
VS
35714 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35715 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35716esac
35717# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35718# absolute.
35719ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35720ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35721ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35722ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 35723
247f5006 35724
e6cc62c6
VS
35725 case $INSTALL in
35726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35727 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 35728 esac
247f5006 35729
e6cc62c6
VS
35730 if test x"$ac_file" != x-; then
35731 { echo "$as_me:$LINENO: creating $ac_file" >&5
35732echo "$as_me: creating $ac_file" >&6;}
35733 rm -f "$ac_file"
35734 fi
35735 # Let's still pretend it is `configure' which instantiates (i.e., don't
35736 # use $as_me), people would be surprised to read:
35737 # /* config.h. Generated by config.status. */
35738 if test x"$ac_file" = x-; then
35739 configure_input=
35740 else
35741 configure_input="$ac_file. "
35742 fi
35743 configure_input=$configure_input"Generated from `echo $ac_file_in |
35744 sed 's,.*/,,'` by configure."
35745
35746 # First look for the input files in the build tree, otherwise in the
35747 # src tree.
35748 ac_file_inputs=`IFS=:
35749 for f in $ac_file_in; do
35750 case $f in
35751 -) echo $tmp/stdin ;;
35752 [\\/$]*)
35753 # Absolute (can't be DOS-style, as IFS=:)
35754 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35755echo "$as_me: error: cannot find input file: $f" >&2;}
35756 { (exit 1); exit 1; }; }
35757 echo $f;;
35758 *) # Relative
35759 if test -f "$f"; then
35760 # Build tree
35761 echo $f
35762 elif test -f "$srcdir/$f"; then
35763 # Source tree
35764 echo $srcdir/$f
35765 else
35766 # /dev/null tree
35767 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35768echo "$as_me: error: cannot find input file: $f" >&2;}
35769 { (exit 1); exit 1; }; }
35770 fi;;
35771 esac
35772 done` || { (exit 1); exit 1; }
35773_ACEOF
35774cat >>$CONFIG_STATUS <<_ACEOF
35775 sed "$ac_vpsub
35776$extrasub
35777_ACEOF
35778cat >>$CONFIG_STATUS <<\_ACEOF
35779:t
35780/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35781s,@configure_input@,$configure_input,;t t
35782s,@srcdir@,$ac_srcdir,;t t
35783s,@abs_srcdir@,$ac_abs_srcdir,;t t
35784s,@top_srcdir@,$ac_top_srcdir,;t t
35785s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35786s,@builddir@,$ac_builddir,;t t
35787s,@abs_builddir@,$ac_abs_builddir,;t t
35788s,@top_builddir@,$ac_top_builddir,;t t
35789s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35790s,@INSTALL@,$ac_INSTALL,;t t
35791" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35792 rm -f $tmp/stdin
35793 if test x"$ac_file" != x-; then
35794 mv $tmp/out $ac_file
35795 else
35796 cat $tmp/out
35797 rm -f $tmp/out
35798 fi
35799
35800done
35801_ACEOF
35802cat >>$CONFIG_STATUS <<\_ACEOF
35803
35804#
35805# CONFIG_HEADER section.
35806#
10f2d63a
VZ
35807
35808# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35809# NAME is the cpp macro being defined and VALUE is the value it is being given.
35810#
35811# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
35812ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
35813ac_dB='[ ].*$,\1#\2'
35814ac_dC=' '
35815ac_dD=',;t'
35816# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35817ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
35818ac_uB='$,\1#\2define\3'
10f2d63a 35819ac_uC=' '
e6cc62c6
VS
35820ac_uD=',;t'
35821
35822for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 35823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35824 case $ac_file in
35825 - | *:- | *:-:* ) # input from stdin
35826 cat >$tmp/stdin
35827 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35828 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35829 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35830 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35831 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
35832 esac
35833
e6cc62c6
VS
35834 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35835echo "$as_me: creating $ac_file" >&6;}
35836
35837 # First look for the input files in the build tree, otherwise in the
35838 # src tree.
35839 ac_file_inputs=`IFS=:
35840 for f in $ac_file_in; do
35841 case $f in
35842 -) echo $tmp/stdin ;;
35843 [\\/$]*)
35844 # Absolute (can't be DOS-style, as IFS=:)
35845 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35846echo "$as_me: error: cannot find input file: $f" >&2;}
35847 { (exit 1); exit 1; }; }
35848 echo $f;;
35849 *) # Relative
35850 if test -f "$f"; then
35851 # Build tree
35852 echo $f
35853 elif test -f "$srcdir/$f"; then
35854 # Source tree
35855 echo $srcdir/$f
35856 else
35857 # /dev/null tree
35858 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35859echo "$as_me: error: cannot find input file: $f" >&2;}
35860 { (exit 1); exit 1; }; }
35861 fi;;
35862 esac
35863 done` || { (exit 1); exit 1; }
35864 # Remove the trailing spaces.
35865 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
35866
35867_ACEOF
35868
35869# Transform confdefs.h into two sed scripts, `conftest.defines' and
35870# `conftest.undefs', that substitutes the proper values into
35871# config.h.in to produce config.h. The first handles `#define'
35872# templates, and the second `#undef' templates.
35873# And first: Protect against being on the right side of a sed subst in
35874# config.status. Protect against being in an unquoted here document
35875# in config.status.
35876rm -f conftest.defines conftest.undefs
35877# Using a here document instead of a string reduces the quoting nightmare.
35878# Putting comments in sed scripts is not portable.
35879#
35880# `end' is used to avoid that the second main sed command (meant for
35881# 0-ary CPP macros) applies to n-ary macro definitions.
35882# See the Autoconf documentation for `clear'.
35883cat >confdef2sed.sed <<\_ACEOF
35884s/[\\&,]/\\&/g
35885s,[\\$`],\\&,g
35886t clear
35887: clear
35888s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35889t end
35890s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35891: end
35892_ACEOF
35893# If some macros were called several times there might be several times
35894# the same #defines, which is useless. Nevertheless, we may not want to
35895# sort them, since we want the *last* AC-DEFINE to be honored.
35896uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35897sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35898rm -f confdef2sed.sed
10f2d63a
VZ
35899
35900# This sed command replaces #undef with comments. This is necessary, for
35901# example, in the case of _POSIX_SOURCE, which is predefined and required
35902# on some systems where configure will not decide to define it.
e6cc62c6
VS
35903cat >>conftest.undefs <<\_ACEOF
35904s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35905_ACEOF
35906
35907# Break up conftest.defines because some shells have a limit on the size
35908# of here documents, and old seds have small limits too (100 cmds).
35909echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35910echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35911echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35912echo ' :' >>$CONFIG_STATUS
35913rm -f conftest.tail
35914while grep . conftest.defines >/dev/null
35915do
35916 # Write a limited-size here document to $tmp/defines.sed.
35917 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35918 # Speed up: don't consider the non `#define' lines.
35919 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
35920 # Work around the forget-to-reset-the-flag bug.
35921 echo 't clr' >>$CONFIG_STATUS
35922 echo ': clr' >>$CONFIG_STATUS
35923 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35924 echo 'CEOF
35925 sed -f $tmp/defines.sed $tmp/in >$tmp/out
35926 rm -f $tmp/in
35927 mv $tmp/out $tmp/in
35928' >>$CONFIG_STATUS
35929 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35930 rm -f conftest.defines
35931 mv conftest.tail conftest.defines
35932done
35933rm -f conftest.defines
35934echo ' fi # grep' >>$CONFIG_STATUS
35935echo >>$CONFIG_STATUS
10f2d63a 35936
e6cc62c6
VS
35937# Break up conftest.undefs because some shells have a limit on the size
35938# of here documents, and old seds have small limits too (100 cmds).
35939echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 35940rm -f conftest.tail
e6cc62c6 35941while grep . conftest.undefs >/dev/null
10f2d63a 35942do
e6cc62c6
VS
35943 # Write a limited-size here document to $tmp/undefs.sed.
35944 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35945 # Speed up: don't consider the non `#undef'
35946 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
35947 # Work around the forget-to-reset-the-flag bug.
35948 echo 't clr' >>$CONFIG_STATUS
35949 echo ': clr' >>$CONFIG_STATUS
35950 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 35951 echo 'CEOF
e6cc62c6
VS
35952 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35953 rm -f $tmp/in
35954 mv $tmp/out $tmp/in
35955' >>$CONFIG_STATUS
35956 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35957 rm -f conftest.undefs
35958 mv conftest.tail conftest.undefs
10f2d63a 35959done
e6cc62c6
VS
35960rm -f conftest.undefs
35961
35962cat >>$CONFIG_STATUS <<\_ACEOF
35963 # Let's still pretend it is `configure' which instantiates (i.e., don't
35964 # use $as_me), people would be surprised to read:
35965 # /* config.h. Generated by config.status. */
35966 if test x"$ac_file" = x-; then
35967 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 35968 else
e6cc62c6 35969 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 35970 fi
e6cc62c6
VS
35971 cat $tmp/in >>$tmp/config.h
35972 rm -f $tmp/in
35973 if test x"$ac_file" != x-; then
35974 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
35975 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35976echo "$as_me: $ac_file is unchanged" >&6;}
35977 else
35978 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35979$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35980 X"$ac_file" : 'X\(//\)[^/]' \| \
35981 X"$ac_file" : 'X\(//\)$' \| \
35982 X"$ac_file" : 'X\(/\)' \| \
35983 . : '\(.\)' 2>/dev/null ||
35984echo X"$ac_file" |
35985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35987 /^X\(\/\/\)$/{ s//\1/; q; }
35988 /^X\(\/\).*/{ s//\1/; q; }
35989 s/.*/./; q'`
35990 { if $as_mkdir_p; then
35991 mkdir -p "$ac_dir"
35992 else
35993 as_dir="$ac_dir"
35994 as_dirs=
35995 while test ! -d "$as_dir"; do
35996 as_dirs="$as_dir $as_dirs"
35997 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35998$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35999 X"$as_dir" : 'X\(//\)[^/]' \| \
36000 X"$as_dir" : 'X\(//\)$' \| \
36001 X"$as_dir" : 'X\(/\)' \| \
36002 . : '\(.\)' 2>/dev/null ||
36003echo X"$as_dir" |
36004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36006 /^X\(\/\/\)$/{ s//\1/; q; }
36007 /^X\(\/\).*/{ s//\1/; q; }
36008 s/.*/./; q'`
36009 done
36010 test ! -n "$as_dirs" || mkdir $as_dirs
36011 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36012echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36013 { (exit 1); exit 1; }; }; }
a0b9e27f 36014
e6cc62c6
VS
36015 rm -f $ac_file
36016 mv $tmp/config.h $ac_file
36017 fi
36018 else
36019 cat $tmp/config.h
36020 rm -f $tmp/config.h
36021 fi
36022done
36023_ACEOF
36024cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36025
e6cc62c6
VS
36026#
36027# CONFIG_COMMANDS section.
36028#
36029for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36030 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36031 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36032 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36033$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36034 X"$ac_dest" : 'X\(//\)[^/]' \| \
36035 X"$ac_dest" : 'X\(//\)$' \| \
36036 X"$ac_dest" : 'X\(/\)' \| \
36037 . : '\(.\)' 2>/dev/null ||
36038echo X"$ac_dest" |
36039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36041 /^X\(\/\/\)$/{ s//\1/; q; }
36042 /^X\(\/\).*/{ s//\1/; q; }
36043 s/.*/./; q'`
36044 ac_builddir=.
36045
36046if test "$ac_dir" != .; then
36047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36048 # A "../" for each directory in $ac_dir_suffix.
36049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36050else
36051 ac_dir_suffix= ac_top_builddir=
36052fi
36053
36054case $srcdir in
36055 .) # No --srcdir option. We are building in place.
36056 ac_srcdir=.
36057 if test -z "$ac_top_builddir"; then
36058 ac_top_srcdir=.
36059 else
36060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36061 fi ;;
36062 [\\/]* | ?:[\\/]* ) # Absolute path.
36063 ac_srcdir=$srcdir$ac_dir_suffix;
36064 ac_top_srcdir=$srcdir ;;
36065 *) # Relative path.
36066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36068esac
36069# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36070# absolute.
36071ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36072ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36073ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36074ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36075
36076
36077 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36078echo "$as_me: executing $ac_dest commands" >&6;}
36079 case $ac_dest in
36080 default )
652d930d 36081 if test ! -h wx-config; then
991a5759 36082 chmod +x wx-config
3a922bb4
RL
36083 mv wx-config wx${TOOLCHAIN_NAME}-config
36084 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36085 fi
665bbe97 36086
00cf1208
RR
36087 if test ! -d lib; then
36088 mkdir lib
36089 fi
36090 if test ! -d lib/wx; then
36091 mkdir lib/wx
36092 fi
36093 if test ! -d lib/wx/include; then
36094 mkdir lib/wx/include
36095 fi
3a922bb4
RL
36096 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36097 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36098 fi
3a922bb4
RL
36099 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36100 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36101 fi
36102 if test -f setup.h; then
3a922bb4 36103 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36104 fi
e6cc62c6
VS
36105 ;;
36106 esac
36107done
36108_ACEOF
2224580a 36109
e6cc62c6 36110cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36111
e6cc62c6
VS
36112{ (exit 0); exit 0; }
36113_ACEOF
36114chmod +x $CONFIG_STATUS
36115ac_clean_files=$ac_clean_files_save
36116
36117
36118# configure is writing to config.log, and then calls config.status.
36119# config.status does its own redirection, appending to config.log.
36120# Unfortunately, on DOS this fails, as config.log is still kept open
36121# by configure, so config.status won't be able to write to it; its
36122# output is simply discarded. So we exec the FD to /dev/null,
36123# effectively closing config.log, so it can be properly (re)opened and
36124# appended to by config.status. When coming back to configure, we
36125# need to make the FD available again.
36126if test "$no_create" != yes; then
36127 ac_cs_success=:
36128 ac_config_status_args=
36129 test "$silent" = yes &&
36130 ac_config_status_args="$ac_config_status_args --quiet"
36131 exec 5>/dev/null
36132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36133 exec 5>>config.log
36134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36135 # would make configure fail if this is the last instruction.
36136 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36137fi
36138
8284b0c5 36139
2b5f62a0
VZ
36140echo
36141echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36142echo ""
36143echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 36144echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
36145
36146echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
36147echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
36148echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
36149
0c98a14e
GD
36150echo " What level of wxWindows compatibility should be enabled?"
36151echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
36152echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
36153echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 36154
2b5f62a0
VZ
36155echo " Which libraries should wxWindows use?"
36156echo " jpeg ${wxUSE_LIBJPEG-none}"
36157echo " png ${wxUSE_LIBPNG-none}"
36158echo " regex ${wxUSE_REGEX}"
36159echo " tiff ${wxUSE_LIBTIFF-none}"
36160echo " zlib ${wxUSE_ZLIB}"
fd3d7534 36161echo " odbc ${wxUSE_ODBC}"
2b5f62a0
VZ
36162
36163echo ""
36164