]> git.saurik.com Git - wxWidgets.git/blame - configure
Fixes for Standard WinCE SDK
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
de59c161 4# Generated by GNU Autoconf 2.57 for wxWidgets 2.5.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
de59c161
RD
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
a848cd7e
SC
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## --------------------- ##
15
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
a848cd7e
SC
26
27# Support unset when possible.
de59c161 28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
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
de59c161 47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
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'`
79
80
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
88
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
101
102
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
119
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
158
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}
188
189
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
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
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
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
a848cd7e
SC
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
de59c161 230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
a848cd7e
SC
231
232# Sed expression to map a string onto a valid variable name.
de59c161 233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
a848cd7e
SC
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
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`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
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.
77ffb593
JS
270PACKAGE_NAME='wxWidgets'
271PACKAGE_TARNAME='wxwidgets'
272PACKAGE_VERSION='2.5.2'
273PACKAGE_STRING='wxWidgets 2.5.2'
274PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
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
314ac_subdirs_all="$ac_subdirs_all src/expat"
3fd9c298 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
de59c161 674 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
675do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
de59c161
RD
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
788
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
77ffb593 796\`configure' configures wxWidgets 2.5.2 to adapt to many kinds of systems.
a848cd7e
SC
797
798Usage: $0 [OPTION]... [VAR=VALUE]...
799
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
802
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
de59c161 821 [$ac_default_prefix]
a848cd7e 822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
de59c161 823 [PREFIX]
a848cd7e
SC
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
77ffb593 862 short | recursive ) echo "Configuration of wxWidgets 2.5.2:";;
a848cd7e
SC
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
77ffb593
JS
870 --enable-monolithic build wxWidgets as single library
871 --enable-plugins build parts of wxWidgets as loadable components
872 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e
SC
873 --enable-nanox use NanoX
874 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
875 --enable-gpe use GNOME PDA Environment features if possible
876 --enable-shared create shared library code
877 --enable-optimise create optimised code
878 --enable-debug same as debug_flag and debug_info
879 --enable-stl use STL for containers
880 --enable-omf use OMF object format
881 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
882 --enable-debug_info create code with debugging information
883 --enable-debug_gdb create code with extra GDB debugging information
884 --enable-debug_cntxt use wxDebugContext
885 --enable-mem_tracing create code with memory tracing
886 --enable-profile create code with profiling information
887 --enable-no_rtti create code without RTTI information
888 --enable-no_exceptions create code without C++ exceptions handling
889 --enable-permissive compile code disregarding strict ANSI
890 --enable-no_deps create code without dependency information
77ffb593
JS
891 --enable-compat22 enable wxWidgets 2.2 compatibility
892 --disable-compat24 disable wxWidgets 2.4 compatibility
a848cd7e
SC
893 --enable-rpath=DIR output the rpath flag from wx-config
894 --enable-intl use internationalization system
895 --enable-config use wxConfig (and derived) classes
896 --enable-protocols use wxProtocol and derived classes
897 --enable-ftp use wxFTP (requires wxProtocol
898 --enable-http use wxHTTP (requires wxProtocol
899 --enable-fileproto use wxFileProto class (requires wxProtocol
900 --enable-sockets use socket/network classes
901 --enable-ole use OLE classes (Win32 only)
902 --enable-dataobj use data object classes
903 --enable-ipc use interprocess communication (wxSocket etc.)
904 --enable-apple_ieee use the Apple IEEE codec
905 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
906 --enable-cmdline use wxCmdLineParser class
907 --enable-datetime use wxDateTime class
908 --enable-dialupman use dialup network classes
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
911 --enable-exceptions build exception-safe library
912 --enable-ffile use wxFFile class
913 --enable-file use wxFile class
914 --enable-filesystem use virtual file systems classes
915 --enable-fontmap use font encodings conversion classes
916 --enable-fs_inet use virtual HTTP/FTP filesystems
917 --enable-fs_zip use virtual ZIP filesystems
918 --enable-geometry use geometry class
919 --enable-log use logging system
920 --enable-longlong use wxLongLong class
921 --enable-mimetype use wxMimeTypesManager
922 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
923 --enable-snglinst use wxSingleInstanceChecker class
924 --enable-streams use wxStream etc classes
925 --enable-std_iostreams use standard C++ stream classes
926 --enable-stopwatch use wxStopWatch class
927 --enable-sysoptions use wxSystemOptions
928 --enable-textbuf use wxTextBuffer class
929 --enable-textfile use wxTextFile class
930 --enable-timer use wxTimer class
931 --enable-unicode compile wxString with Unicode support
932 --enable-sound use wxSound class
77ffb593 933 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 934 --enable-zipstream use wxZipInputStream
a848cd7e
SC
935 --enable-url use wxURL class
936 --enable-protocol use wxProtocol class
937 --enable-protocol-http HTTP support in wxProtocol
938 --enable-protocol-ftp FTP support in wxProtocol
939 --enable-protocol-file FILE support in wxProtocol
940 --enable-threads use threads
941 --enable-docview use document view architecture
942 --enable-help use help subsystem
943 --enable-mshtmlhelp use MS HTML Help (win32)
944 --enable-html use wxHTML sub-library
945 --enable-htmlhelp use wxHTML-based help
946 --enable-constraints use layout-constraints system
947 --enable-printarch use printing architecture
948 --enable-mdi use multiple document interface architecture
8a7b1113 949 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
950 --enable-loggui use standard GUI logger
951 --enable-logwin use wxLogWindow
952 --enable-logdialog use wxLogDialog
953 --enable-postscript use wxPostscriptDC device context (default for gtk+)
954 --enable-prologio not available; see contrib
955 --enable-resources not available; see contrib
956 --enable-clipboard use wxClipboard class
957 --enable-dnd use Drag'n'Drop classes
958 --enable-metafile use win32 metafiles
959 --enable-controls use all usual controls
960 --enable-accel use accelerators
961 --enable-button use wxButton class
962 --enable-bmpbutton use wxBitmapButton class
963 --enable-calendar use wxCalendarCtrl class
964 --enable-caret use wxCaret class
965 --enable-checkbox use wxCheckBox class
966 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
967 --enable-choice use wxChoice class
968 --enable-combobox use wxComboBox class
969 --enable-display use wxDisplay class
970 --enable-gauge use wxGauge class
971 --enable-grid use wxGrid class
972 --enable-imaglist use wxImageList class
973 --enable-listbook use wxListbook class
974 --enable-listbox use wxListBox class
975 --enable-listctrl use wxListCtrl class
976 --enable-notebook use wxNotebook class
977 --enable-radiobox use wxRadioBox class
978 --enable-radiobtn use wxRadioButton class
979 --enable-sash use wxSashWindow class
980 --enable-scrollbar use wxScrollBar class and scrollable windows
981 --enable-slider use wxSlider class
982 --enable-spinbtn use wxSpinButton class
983 --enable-spinctrl use wxSpinCtrl class
984 --enable-splitter use wxSplitterWindow class
985 --enable-statbmp use wxStaticBitmap class
986 --enable-statbox use wxStaticBox class
987 --enable-statline use wxStaticLine class
988 --enable-stattext use wxStaticText class
989 --enable-statusbar use wxStatusBar class
990 --enable-tabdialog use wxTabControl class
991 --enable-textctrl use wxTextCtrl class
992 --enable-togglebtn use wxToggleButton class
993 --enable-toolbar use wxToolBar class
994 --enable-tbarnative use native wxToolBar class
995 --enable-tbarsmpl use wxToolBarSimple class
996 --enable-treectrl use wxTreeCtrl class
997 --enable-tipwindow use wxTipWindow class
998 --enable-popupwin use wxPopUpWindow class
999 --enable-commondlg use all common dialogs
1000 --enable-choicedlg use wxChoiceDialog
1001 --enable-coldlg use wxColourDialog
1002 --enable-filedlg use wxFileDialog
1003 --enable-finddlg use wxFindReplaceDialog
1004 --enable-fontdlg use wxFontDialog
1005 --enable-dirdlg use wxDirDialog
1006 --enable-msgdlg use wxMessageDialog
1007 --enable-numberdlg use wxNumberEntryDialog
1008 --enable-splash use wxSplashScreen
1009 --enable-textdlg use wxTextDialog
1010 --enable-tipdlg use startup tips
1011 --enable-progressdlg use wxProgressDialog
1012 --enable-wizarddlg use wxWizard
1013 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1014 --enable-miniframe use wxMiniFrame class
1015 --enable-tooltips use wxToolTip class
1016 --enable-splines use spline drawing code
1017 --enable-validators use wxValidator and derived classes
1018 --enable-busyinfo use wxBusyInfo
1019 --enable-joystick use wxJoystick (Linux only)
1020 --enable-metafiles use wxMetaFile (Windows only)
1021 --enable-dragimage use wxDragImage
1022 --enable-accessibility enable accessibility support
1023 --enable-palette use wxPalette class
1024 --enable-image use wxImage class
1025 --enable-gif use gif images (GIF file format)
1026 --enable-pcx use pcx images (PCX file format)
1027 --enable-iff use iff images (IFF file format)
1028 --enable-pnm use pnm images (PNM file format)
1029 --enable-xpm use xpm images (XPM file format)
1030 --enable-icocur use Windows ICO and CUR formats
77ffb593 1031 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1032 --enable-vendor=VENDOR vendor name (win32 DLL only)
1033 --disable-largefile omit support for large files
1034 --disable-gtktest do not try to compile and run a test GTK+ program
1035 --disable-gtktest Do not try to compile and run a test GTK program
1036 --disable-sdltest Do not try to compile and run a test SDL program
1037 --enable-omf use OMF object format (OS/2)
1038 --disable-precomp-headers don't use precompiled headers even if compiler can
1039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gtk use GTK+
1044 --with-motif use Motif/Lesstif
1045 --with-mac use Mac OS X
1046 --with-cocoa use Cocoa
1047 --with-wine use Wine
1048 --with-msw use MS-Windows
1049 --with-pm use OS/2 Presentation Manager
1050 --with-mgl use SciTech MGL
1051 --with-microwin use MicroWindows
1052 --with-x11 use X11
1053 --with-libpng use libpng (PNG image format)
1054 --with-libjpeg use libjpeg (JPEG file format)
1055 --with-libtiff use libtiff (TIFF file format)
1056 --with-libxpm use libxpm (XPM file format)
1057 --with-libmspack use libmspack (CHM help files loading)
1058 --with-sdl use SDL for audio on Unix
1059 --with-opengl use OpenGL (or Mesa)
1060 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1061 --with-regex enable support for wxRegEx class
1062 --with-zlib use zlib for LZW compression
1063 --with-odbc use the IODBC and wxODBC classes
1064 --with-expat enable XML support using expat parser
1065 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1066 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1067 --with-x use the X Window System
1068 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1069 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1070 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1071 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1072 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1073
1074Some influential environment variables:
dcc1b6ad
VS
1075 CC C compiler command
1076 CFLAGS C compiler flags
1077 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1078 nonstandard directory <lib dir>
1079 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1080 headers in a nonstandard directory <include dir>
1081 CPP C preprocessor
1082 CXX C++ compiler command
1083 CXXFLAGS C++ compiler flags
1084 CXXCPP C++ preprocessor
a848cd7e
SC
1085
1086Use these variables to override the choices made by `configure' or to help
1087it to find libraries and programs with nonstandard names/locations.
1088
77ffb593 1089Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1090_ACEOF
1091fi
1092
1093if test "$ac_init_help" = "recursive"; then
1094 # If there are subdirs, report their specific --help.
1095 ac_popdir=`pwd`
1096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097 test -d $ac_dir || continue
1098 ac_builddir=.
1099
1100if test "$ac_dir" != .; then
1101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102 # A "../" for each directory in $ac_dir_suffix.
1103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104else
1105 ac_dir_suffix= ac_top_builddir=
1106fi
1107
1108case $srcdir in
1109 .) # No --srcdir option. We are building in place.
1110 ac_srcdir=.
1111 if test -z "$ac_top_builddir"; then
1112 ac_top_srcdir=.
1113 else
1114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115 fi ;;
1116 [\\/]* | ?:[\\/]* ) # Absolute path.
1117 ac_srcdir=$srcdir$ac_dir_suffix;
1118 ac_top_srcdir=$srcdir ;;
1119 *) # Relative path.
1120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122esac
de59c161
RD
1123# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1124# absolute.
1125ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1126ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1127ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1128ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a848cd7e
SC
1129
1130 cd $ac_dir
1131 # Check for guested configure; otherwise get Cygnus style configure.
1132 if test -f $ac_srcdir/configure.gnu; then
1133 echo
1134 $SHELL $ac_srcdir/configure.gnu --help=recursive
1135 elif test -f $ac_srcdir/configure; then
1136 echo
1137 $SHELL $ac_srcdir/configure --help=recursive
1138 elif test -f $ac_srcdir/configure.ac ||
de59c161 1139 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1140 echo
1141 $ac_configure --help
1142 else
1143 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1144 fi
dcc1b6ad 1145 cd $ac_popdir
a848cd7e
SC
1146 done
1147fi
1148
1149test -n "$ac_init_help" && exit 0
1150if $ac_init_version; then
1151 cat <<\_ACEOF
77ffb593 1152wxWidgets configure 2.5.2
de59c161 1153generated by GNU Autoconf 2.57
a848cd7e 1154
de59c161
RD
1155Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1156Free Software Foundation, Inc.
a848cd7e
SC
1157This configure script is free software; the Free Software Foundation
1158gives unlimited permission to copy, distribute and modify it.
1159_ACEOF
1160 exit 0
1161fi
1162exec 5>config.log
1163cat >&5 <<_ACEOF
1164This file contains any messages produced by compilers while
1165running configure, to aid debugging if configure makes a mistake.
1166
77ffb593 1167It was created by wxWidgets $as_me 2.5.2, which was
de59c161 1168generated by GNU Autoconf 2.57. Invocation command line was
a848cd7e
SC
1169
1170 $ $0 $@
1171
1172_ACEOF
1173{
1174cat <<_ASUNAME
1175## --------- ##
1176## Platform. ##
1177## --------- ##
1178
1179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1180uname -m = `(uname -m) 2>/dev/null || echo unknown`
1181uname -r = `(uname -r) 2>/dev/null || echo unknown`
1182uname -s = `(uname -s) 2>/dev/null || echo unknown`
1183uname -v = `(uname -v) 2>/dev/null || echo unknown`
1184
1185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1186/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1187
1188/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1189/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1191hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1192/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1193/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1194/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1195
1196_ASUNAME
1197
1198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1199for as_dir in $PATH
1200do
1201 IFS=$as_save_IFS
1202 test -z "$as_dir" && as_dir=.
1203 echo "PATH: $as_dir"
1204done
1205
1206} >&5
1207
1208cat >&5 <<_ACEOF
1209
1210
1211## ----------- ##
1212## Core tests. ##
1213## ----------- ##
1214
1215_ACEOF
1216
1217
1218# Keep a trace of the command line.
1219# Strip out --no-create and --no-recursion so they do not pile up.
1220# Strip out --silent because we don't want to record it for future runs.
1221# Also quote any args containing shell meta-characters.
1222# Make two passes to allow for proper duplicate-argument suppression.
1223ac_configure_args=
1224ac_configure_args0=
1225ac_configure_args1=
1226ac_sep=
1227ac_must_keep_next=false
1228for ac_pass in 1 2
1229do
1230 for ac_arg
1231 do
1232 case $ac_arg in
1233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 continue ;;
1237 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1238 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1239 esac
1240 case $ac_pass in
1241 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1242 2)
1243 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1244 if test $ac_must_keep_next = true; then
de59c161 1245 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1246 else
de59c161
RD
1247 case $ac_arg in
1248 *=* | --config-cache | -C | -disable-* | --disable-* \
1249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1251 | -with-* | --with-* | -without-* | --without-* | --x)
1252 case "$ac_configure_args0 " in
1253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1254 esac
1255 ;;
1256 -* ) ac_must_keep_next=true ;;
1257 esac
a848cd7e
SC
1258 fi
1259 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1260 # Get rid of the leading space.
1261 ac_sep=" "
1262 ;;
1263 esac
1264 done
1265done
1266$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1267$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1268
1269# When interrupted or exit'd, cleanup temporary files, and complete
1270# config.log. We remove comments because anyway the quotes in there
1271# would cause problems or look ugly.
1272# WARNING: Be sure not to use single quotes in there, as some shells,
1273# such as our DU 5.0 friend, will then `close' the trap.
1274trap 'exit_status=$?
1275 # Save into config.log some information that might help in debugging.
1276 {
1277 echo
1278
1279 cat <<\_ASBOX
1280## ---------------- ##
1281## Cache variables. ##
1282## ---------------- ##
1283_ASBOX
1284 echo
1285 # The following way of writing the cache mishandles newlines in values,
1286{
1287 (set) 2>&1 |
1288 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1289 *ac_space=\ *)
1290 sed -n \
de59c161
RD
1291 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1293 ;;
1294 *)
1295 sed -n \
de59c161 1296 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1297 ;;
1298 esac;
1299}
1300 echo
1301
1302 cat <<\_ASBOX
1303## ----------------- ##
1304## Output variables. ##
1305## ----------------- ##
1306_ASBOX
1307 echo
1308 for ac_var in $ac_subst_vars
1309 do
1310 eval ac_val=$`echo $ac_var`
1311 echo "$ac_var='"'"'$ac_val'"'"'"
1312 done | sort
1313 echo
1314
1315 if test -n "$ac_subst_files"; then
1316 cat <<\_ASBOX
1317## ------------- ##
1318## Output files. ##
1319## ------------- ##
1320_ASBOX
1321 echo
1322 for ac_var in $ac_subst_files
1323 do
1324 eval ac_val=$`echo $ac_var`
de59c161 1325 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1326 done | sort
1327 echo
1328 fi
1329
1330 if test -s confdefs.h; then
1331 cat <<\_ASBOX
1332## ----------- ##
1333## confdefs.h. ##
1334## ----------- ##
1335_ASBOX
1336 echo
1337 sed "/^$/d" confdefs.h | sort
1338 echo
1339 fi
1340 test "$ac_signal" != 0 &&
1341 echo "$as_me: caught signal $ac_signal"
1342 echo "$as_me: exit $exit_status"
1343 } >&5
de59c161 1344 rm -f core core.* *.core &&
a848cd7e
SC
1345 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1346 exit $exit_status
1347 ' 0
1348for ac_signal in 1 2 13 15; do
1349 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1350done
1351ac_signal=0
1352
1353# confdefs.h avoids OS command line length limits that DEFS can exceed.
1354rm -rf conftest* confdefs.h
1355# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1356echo >confdefs.h
1357
1358# Predefined preprocessor variables.
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_NAME "$PACKAGE_NAME"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_VERSION "$PACKAGE_VERSION"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_STRING "$PACKAGE_STRING"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1382_ACEOF
1383
1384
1385# Let the site file select an alternate cache file if it wants to.
1386# Prefer explicitly selected file to automatically selected ones.
1387if test -z "$CONFIG_SITE"; then
1388 if test "x$prefix" != xNONE; then
1389 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1390 else
1391 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1392 fi
1393fi
1394for ac_site_file in $CONFIG_SITE; do
1395 if test -r "$ac_site_file"; then
1396 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1397echo "$as_me: loading site script $ac_site_file" >&6;}
1398 sed 's/^/| /' "$ac_site_file" >&5
1399 . "$ac_site_file"
1400 fi
1401done
1402
1403if test -r "$cache_file"; then
1404 # Some versions of bash will fail to source /dev/null (special
1405 # files actually), so we avoid doing that.
1406 if test -f "$cache_file"; then
1407 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1408echo "$as_me: loading cache $cache_file" >&6;}
1409 case $cache_file in
1410 [\\/]* | ?:[\\/]* ) . $cache_file;;
1411 *) . ./$cache_file;;
1412 esac
1413 fi
1414else
1415 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1416echo "$as_me: creating cache $cache_file" >&6;}
1417 >$cache_file
1418fi
1419
1420# Check that the precious variables saved in the cache have kept the same
1421# value.
1422ac_cache_corrupted=false
1423for ac_var in `(set) 2>&1 |
de59c161 1424 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1425 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1426 eval ac_new_set=\$ac_env_${ac_var}_set
1427 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1428 eval ac_new_val="\$ac_env_${ac_var}_value"
1429 case $ac_old_set,$ac_new_set in
1430 set,)
1431 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1432echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1433 ac_cache_corrupted=: ;;
1434 ,set)
1435 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1436echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1437 ac_cache_corrupted=: ;;
1438 ,);;
1439 *)
1440 if test "x$ac_old_val" != "x$ac_new_val"; then
de59c161 1441 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1442echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
de59c161 1443 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1444echo "$as_me: former value: $ac_old_val" >&2;}
de59c161 1445 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1446echo "$as_me: current value: $ac_new_val" >&2;}
de59c161 1447 ac_cache_corrupted=:
a848cd7e
SC
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1461 fi
1462done
1463if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1465echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1466 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1467echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1468 { (exit 1); exit 1; }; }
1469fi
1470
1471ac_ext=c
1472ac_cpp='$CPP $CPPFLAGS'
1473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1475ac_compiler_gnu=$ac_cv_c_compiler_gnu
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506ac_aux_dir=
1507for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508 if test -f $ac_dir/install-sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install-sh -c"
1511 break
1512 elif test -f $ac_dir/install.sh; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/install.sh -c"
1515 break
1516 elif test -f $ac_dir/shtool; then
1517 ac_aux_dir=$ac_dir
1518 ac_install_sh="$ac_aux_dir/shtool install -c"
1519 break
1520 fi
1521done
1522if test -z "$ac_aux_dir"; then
1523 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1524echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525 { (exit 1); exit 1; }; }
1526fi
1527ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530
1531# Make sure we can run config.sub.
1532$ac_config_sub sun4 >/dev/null 2>&1 ||
1533 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535 { (exit 1); exit 1; }; }
1536
1537echo "$as_me:$LINENO: checking build system type" >&5
1538echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539if test "${ac_cv_build+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541else
1542 ac_cv_build_alias=$build_alias
1543test -z "$ac_cv_build_alias" &&
1544 ac_cv_build_alias=`$ac_config_guess`
1545test -z "$ac_cv_build_alias" &&
1546 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548 { (exit 1); exit 1; }; }
1549ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552 { (exit 1); exit 1; }; }
1553
1554fi
1555echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556echo "${ECHO_T}$ac_cv_build" >&6
1557build=$ac_cv_build
1558build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563echo "$as_me:$LINENO: checking host system type" >&5
1564echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565if test "${ac_cv_host+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_host_alias=$host_alias
1569test -z "$ac_cv_host_alias" &&
1570 ac_cv_host_alias=$ac_cv_build_alias
1571ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576fi
1577echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578echo "${ECHO_T}$ac_cv_host" >&6
1579host=$ac_cv_host
1580host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585echo "$as_me:$LINENO: checking target system type" >&5
1586echo $ECHO_N "checking target system type... $ECHO_C" >&6
1587if test "${ac_cv_target+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_target_alias=$target_alias
1591test "x$ac_cv_target_alias" = "x" &&
1592 ac_cv_target_alias=$ac_cv_host_alias
1593ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1595echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1596 { (exit 1); exit 1; }; }
1597
1598fi
1599echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1600echo "${ECHO_T}$ac_cv_target" >&6
1601target=$ac_cv_target
1602target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
1606
1607# The aliases save the names the user supplied, while $host etc.
1608# will get canonicalized.
1609test -n "$target_alias" &&
1610 test "$program_prefix$program_suffix$program_transform_name" = \
1611 NONENONEs,x,x, &&
1612 program_prefix=${target_alias}-
1613
1614
1615
1616WX_MAJOR_VERSION_NUMBER=2
1617WX_MINOR_VERSION_NUMBER=5
de59c161 1618WX_RELEASE_NUMBER=2
a848cd7e
SC
1619
1620WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1621WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1622
1623WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1624
de59c161 1625WX_CURRENT=2
a848cd7e
SC
1626WX_REVISION=0
1627WX_AGE=0
1628
1629
1630
1631USE_UNIX=1
1632USE_OS2=0
1633USE_WIN32=0
1634USE_DOS=0
1635USE_BEOS=0
1636USE_MAC=0
1637
1638USE_AIX=
1639USE_BSD= USE_DARWIN= USE_FREEBSD=
1640USE_GNU= USE_HPUX=
1641USE_LINUX=
1642USE_NETBSD=
1643USE_OPENBSD=
1644USE_OSF= USE_SGI=
1645USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1646USE_ULTRIX=
1647USE_UNIXWARE=
1648
1649USE_ALPHA=
1650
1651NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1652
1653ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1654
1655DEFAULT_wxUSE_COCOA=0
1656DEFAULT_wxUSE_GTK=0
1657DEFAULT_wxUSE_MAC=0
1658DEFAULT_wxUSE_MGL=0
1659DEFAULT_wxUSE_MICROWIN=0
1660DEFAULT_wxUSE_MOTIF=0
1661DEFAULT_wxUSE_MSW=0
1662DEFAULT_wxUSE_PM=0
1663DEFAULT_wxUSE_X11=0
1664
1665DEFAULT_DEFAULT_wxUSE_COCOA=0
1666DEFAULT_DEFAULT_wxUSE_GTK=0
1667DEFAULT_DEFAULT_wxUSE_MAC=0
1668DEFAULT_DEFAULT_wxUSE_MGL=0
1669DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1670DEFAULT_DEFAULT_wxUSE_MOTIF=0
1671DEFAULT_DEFAULT_wxUSE_MSW=0
1672DEFAULT_DEFAULT_wxUSE_PM=0
1673DEFAULT_DEFAULT_wxUSE_X11=0
1674
1675PROGRAM_EXT=
1676SO_SUFFIX=so
1677SAMPLES_RPATH_FLAG=
1678SAMPLES_RPATH_POSTLINK=
1679
1680case "${host}" in
1681 *-hp-hpux* )
1682 USE_HPUX=1
1683 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1684 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1685 SO_SUFFIX=sl
1686 cat >>confdefs.h <<\_ACEOF
1687#define __HPUX__ 1
1688_ACEOF
1689
1690 ;;
1691 *-*-linux* )
1692 USE_LINUX=1
1693 cat >>confdefs.h <<\_ACEOF
1694#define __LINUX__ 1
1695_ACEOF
1696
1697 TMP=`uname -m`
1698 if test "x$TMP" = "xalpha"; then
1699 USE_ALPHA=1
1700 cat >>confdefs.h <<\_ACEOF
1701#define __ALPHA__ 1
1702_ACEOF
1703
1704 fi
1705 DEFAULT_DEFAULT_wxUSE_GTK=1
1706 ;;
1707 *-*-gnu* | *-*-k*bsd*-gnu )
1708 USE_GNU=1
1709 TMP=`uname -m`
1710 if test "x$TMP" = "xalpha"; then
1711 USE_ALPHA=1
1712 cat >>confdefs.h <<\_ACEOF
1713#define __ALPHA__ 1
1714_ACEOF
1715
1716 fi
1717 DEFAULT_DEFAULT_wxUSE_GTK=1
1718 ;;
1719 *-*-irix5* | *-*-irix6* )
1720 USE_SGI=1
1721 USE_SVR4=1
1722 cat >>confdefs.h <<\_ACEOF
1723#define __SGI__ 1
1724_ACEOF
1725
1726 cat >>confdefs.h <<\_ACEOF
1727#define __SVR4__ 1
1728_ACEOF
1729
1730 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1731 ;;
1732 *-*-solaris2* )
1733 USE_SUN=1
1734 USE_SOLARIS=1
1735 USE_SVR4=1
1736 cat >>confdefs.h <<\_ACEOF
1737#define __SUN__ 1
1738_ACEOF
1739
1740 cat >>confdefs.h <<\_ACEOF
1741#define __SOLARIS__ 1
1742_ACEOF
1743
1744 cat >>confdefs.h <<\_ACEOF
1745#define __SVR4__ 1
1746_ACEOF
1747
1748 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1749 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1750 ;;
1751 *-*-sunos4* )
1752 USE_SUN=1
1753 USE_SUNOS=1
1754 USE_BSD=1
1755 cat >>confdefs.h <<\_ACEOF
1756#define __SUN__ 1
1757_ACEOF
1758
1759 cat >>confdefs.h <<\_ACEOF
1760#define __SUNOS__ 1
1761_ACEOF
1762
1763 cat >>confdefs.h <<\_ACEOF
1764#define __BSD__ 1
1765_ACEOF
1766
1767 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1768 ;;
1769 *-*-freebsd*)
1770 USE_BSD=1
1771 USE_FREEBSD=1
1772 cat >>confdefs.h <<\_ACEOF
1773#define __FREEBSD__ 1
1774_ACEOF
1775
1776 cat >>confdefs.h <<\_ACEOF
1777#define __BSD__ 1
1778_ACEOF
1779
1780 DEFAULT_DEFAULT_wxUSE_GTK=1
1781 ;;
1782 *-*-openbsd*)
1783 USE_BSD=1
1784 USE_OPENBSD=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __OPENBSD__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __BSD__ 1
1791_ACEOF
1792
1793 DEFAULT_DEFAULT_wxUSE_GTK=1
1794 ;;
1795 *-*-netbsd*)
1796 USE_BSD=1
1797 USE_NETBSD=1
1798 cat >>confdefs.h <<\_ACEOF
1799#define __NETBSD__ 1
1800_ACEOF
1801
1802 cat >>confdefs.h <<\_ACEOF
1803#define __BSD__ 1
1804_ACEOF
1805
1806 DEFAULT_DEFAULT_wxUSE_GTK=1
1807 ;;
1808 *-*-osf* )
1809 USE_ALPHA=1
1810 USE_OSF=1
1811 cat >>confdefs.h <<\_ACEOF
1812#define __ALPHA__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __OSF__ 1
1817_ACEOF
1818
1819 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1821 ;;
1822 *-*-dgux5* )
1823 USE_ALPHA=1
1824 USE_SVR4=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __ALPHA__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __SVR4__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1834 ;;
1835 *-*-sysv5* )
1836 USE_SYSV=1
1837 USE_SVR4=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __SYSV__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __SVR4__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1847 ;;
1848 *-*-aix* )
1849 USE_AIX=1
1850 USE_SYSV=1
1851 USE_SVR4=1
1852 SO_SUFFIX=a
1853 cat >>confdefs.h <<\_ACEOF
1854#define __AIX__ 1
1855_ACEOF
1856
1857 cat >>confdefs.h <<\_ACEOF
1858#define __SYSV__ 1
1859_ACEOF
1860
1861 cat >>confdefs.h <<\_ACEOF
1862#define __SVR4__ 1
1863_ACEOF
1864
1865 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1866 ;;
1867
1868 *-*-*UnixWare*)
1869 USE_SYSV=1
1870 USE_SVR4=1
1871 USE_UNIXWARE=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __UNIXWARE__ 1
1874_ACEOF
1875
1876 ;;
1877
1878 *-*-cygwin* | *-*-mingw32* )
1879 SO_SUFFIX=dll
1880 PROGRAM_EXT=".exe"
1881 RESCOMP=windres
1882 DEFAULT_DEFAULT_wxUSE_MSW=1
1883 ;;
1884
1885 *-pc-msdosdjgpp )
1886 USE_UNIX=0
1887 USE_DOS=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __DOS__ 1
1890_ACEOF
1891
1892 PROGRAM_EXT=".exe"
1893 DEFAULT_DEFAULT_wxUSE_MGL=1
1894 LIBS="$LIBS -lstdc++"
1895 ;;
1896
1897 *-pc-os2_emx | *-pc-os2-emx )
1898 cat >>confdefs.h <<\_ACEOF
1899#define __EMX__ 1
1900_ACEOF
1901
1902 USE_OS2=1
1903 cat >>confdefs.h <<\_ACEOF
1904#define __OS2__ 1
1905_ACEOF
1906
1907 PROGRAM_EXT=".exe"
1908 DEFAULT_DEFAULT_wxUSE_PM=1
1909 CXX=gcc
1910 LDFLAGS="$LDFLAGS -Zcrtdll"
1911 ac_executable_extensions=".exe"
1912 export ac_executable_extensions
1913 ac_save_IFS="$IFS"
1914 IFS='\\'
1915 ac_TEMP_PATH=
1916 for ac_dir in $PATH; do
1917 IFS=$ac_save_IFS
1918 if test -z "$ac_TEMP_PATH"; then
1919 ac_TEMP_PATH="$ac_dir"
1920 else
1921 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1922 fi
1923 done
1924 export PATH="$ac_TEMP_PATH"
1925 unset ac_TEMP_PATH
1926 ;;
1927
1928 powerpc-*-darwin* )
1929 USE_BSD=1
1930 USE_DARWIN=1
1931 SO_SUFFIX=dylib
1932 cat >>confdefs.h <<\_ACEOF
1933#define __BSD__ 1
1934_ACEOF
1935
1936 cat >>confdefs.h <<\_ACEOF
1937#define __DARWIN__ 1
1938_ACEOF
1939
1940 cat >>confdefs.h <<\_ACEOF
1941#define __POWERPC__ 1
1942_ACEOF
1943
1944 cat >>confdefs.h <<\_ACEOF
1945#define TARGET_CARBON 1
1946_ACEOF
1947
1948 DEFAULT_DEFAULT_wxUSE_MAC=1
1949 ;;
1950
1951 *-*-beos* )
1952 USE_BEOS=1
1953 cat >>confdefs.h <<\_ACEOF
1954#define __BEOS__ 1
1955_ACEOF
1956
1957 ;;
1958
1959 *)
1960 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1961echo "$as_me: error: unknown system type ${host}." >&2;}
1962 { (exit 1); exit 1; }; }
1963esac
1964
1965
1966
1967
1968 wx_arg_cache_file="configarg.cache"
1969 echo "loading argument cache $wx_arg_cache_file"
1970 rm -f ${wx_arg_cache_file}.tmp
1971 touch ${wx_arg_cache_file}.tmp
1972 touch ${wx_arg_cache_file}
1973
1974
1975DEBUG_CONFIGURE=0
1976if test $DEBUG_CONFIGURE = 1; then
1977 DEFAULT_wxUSE_UNIVERSAL=no
1978 DEFAULT_wxUSE_STL=no
1979
1980 DEFAULT_wxUSE_NANOX=no
1981
1982 DEFAULT_wxUSE_THREADS=yes
1983
1984 DEFAULT_wxUSE_SHARED=yes
1985 DEFAULT_wxUSE_OPTIMISE=no
1986 DEFAULT_wxUSE_PROFILE=no
1987 DEFAULT_wxUSE_NO_DEPS=no
1988 DEFAULT_wxUSE_NO_RTTI=no
1989 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1990 DEFAULT_wxUSE_PERMISSIVE=no
1991 DEFAULT_wxUSE_DEBUG_FLAG=yes
1992 DEFAULT_wxUSE_DEBUG_INFO=yes
1993 DEFAULT_wxUSE_DEBUG_GDB=yes
1994 DEFAULT_wxUSE_MEM_TRACING=no
1995 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1996 DEFAULT_wxUSE_DMALLOC=no
1997 DEFAULT_wxUSE_APPLE_IEEE=no
1998
1999 DEFAULT_wxUSE_EXCEPTIONS=no
2000 DEFAULT_wxUSE_LOG=yes
2001 DEFAULT_wxUSE_LOGWINDOW=no
2002 DEFAULT_wxUSE_LOGGUI=no
2003 DEFAULT_wxUSE_LOGDIALOG=no
2004
2005 DEFAULT_wxUSE_GUI=yes
2006 DEFAULT_wxUSE_CONTROLS=no
2007
2008 DEFAULT_wxUSE_REGEX=no
2009 DEFAULT_wxUSE_XML=no
2010 DEFAULT_wxUSE_EXPAT=no
2011 DEFAULT_wxUSE_ZLIB=no
2012 DEFAULT_wxUSE_LIBPNG=no
2013 DEFAULT_wxUSE_LIBJPEG=no
2014 DEFAULT_wxUSE_LIBTIFF=no
2015 DEFAULT_wxUSE_LIBXPM=no
2016 DEFAULT_wxUSE_LIBMSPACK=no
2017 DEFAULT_wxUSE_LIBSDL=no
2018 DEFAULT_wxUSE_ODBC=no
2019 DEFAULT_wxUSE_OPENGL=no
2020
2021 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2022 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2023 DEFAULT_wxUSE_STD_IOSTREAM=no
2024 DEFAULT_wxUSE_CMDLINE_PARSER=no
2025 DEFAULT_wxUSE_DATETIME=no
2026 DEFAULT_wxUSE_TIMER=no
2027 DEFAULT_wxUSE_STOPWATCH=no
2028 DEFAULT_wxUSE_FILE=no
2029 DEFAULT_wxUSE_FFILE=no
2030 DEFAULT_wxUSE_TEXTBUFFER=no
2031 DEFAULT_wxUSE_TEXTFILE=no
2032 DEFAULT_wxUSE_SOUND=no
2033 DEFAULT_wxUSE_INTL=no
2034 DEFAULT_wxUSE_CONFIG=no
2035 DEFAULT_wxUSE_FONTMAP=no
2036 DEFAULT_wxUSE_STREAMS=no
2037 DEFAULT_wxUSE_SOCKETS=no
2038 DEFAULT_wxUSE_OLE=no
2039 DEFAULT_wxUSE_DATAOBJ=no
2040 DEFAULT_wxUSE_DIALUP_MANAGER=no
2041 DEFAULT_wxUSE_JOYSTICK=no
2042 DEFAULT_wxUSE_DYNLIB_CLASS=no
2043 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2044 DEFAULT_wxUSE_LONGLONG=no
2045 DEFAULT_wxUSE_GEOMETRY=no
2046
2047 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2048 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2049 DEFAULT_wxUSE_POSTSCRIPT=no
2050
2051 DEFAULT_wxUSE_CLIPBOARD=no
2052 DEFAULT_wxUSE_TOOLTIPS=no
2053 DEFAULT_wxUSE_DRAG_AND_DROP=no
2054 DEFAULT_wxUSE_DRAGIMAGE=no
2055 DEFAULT_wxUSE_SPLINES=no
2056
8a7b1113 2057 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2058 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2059 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2060 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2061
2062 DEFAULT_wxUSE_RESOURCES=no
2063 DEFAULT_wxUSE_CONSTRAINTS=no
2064 DEFAULT_wxUSE_IPC=no
2065 DEFAULT_wxUSE_HELP=no
2066 DEFAULT_wxUSE_MS_HTML_HELP=no
2067 DEFAULT_wxUSE_WXHTML_HELP=no
2068 DEFAULT_wxUSE_TREELAYOUT=no
2069 DEFAULT_wxUSE_METAFILE=no
2070 DEFAULT_wxUSE_MIMETYPE=no
2071 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2072 DEFAULT_wxUSE_PROTOCOL=no
2073 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2074 DEFAULT_wxUSE_PROTOCOL_FTP=no
2075 DEFAULT_wxUSE_PROTOCOL_FILE=no
2076 DEFAULT_wxUSE_URL=no
2077
2078 DEFAULT_wxUSE_COMMONDLGS=no
2079 DEFAULT_wxUSE_CHOICEDLG=no
2080 DEFAULT_wxUSE_COLOURDLG=no
2081 DEFAULT_wxUSE_DIRDLG=no
2082 DEFAULT_wxUSE_FILEDLG=no
2083 DEFAULT_wxUSE_FINDREPLDLG=no
2084 DEFAULT_wxUSE_FONTDLG=no
2085 DEFAULT_wxUSE_MSGDLG=no
2086 DEFAULT_wxUSE_NUMBERDLG=no
2087 DEFAULT_wxUSE_TEXTDLG=no
2088 DEFAULT_wxUSE_SPLASH=no
2089 DEFAULT_wxUSE_STARTUP_TIPS=no
2090 DEFAULT_wxUSE_PROGRESSDLG=no
2091 DEFAULT_wxUSE_WIZARDDLG=no
2092
2093 DEFAULT_wxUSE_MENUS=no
2094 DEFAULT_wxUSE_MINIFRAME=no
2095 DEFAULT_wxUSE_HTML=no
2096 DEFAULT_wxUSE_FILESYSTEM=no
2097 DEFAULT_wxUSE_FS_INET=no
2098 DEFAULT_wxUSE_FS_ZIP=no
2099 DEFAULT_wxUSE_BUSYINFO=no
2100 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2101 DEFAULT_wxUSE_VALIDATORS=no
2102
2103 DEFAULT_wxUSE_ACCEL=no
2104 DEFAULT_wxUSE_BUTTON=no
2105 DEFAULT_wxUSE_BMPBUTTON=no
2106 DEFAULT_wxUSE_CALCTRL=no
2107 DEFAULT_wxUSE_CARET=no
2108 DEFAULT_wxUSE_CHECKBOX=no
2109 DEFAULT_wxUSE_CHECKLST=no
2110 DEFAULT_wxUSE_CHOICE=no
2111 DEFAULT_wxUSE_COMBOBOX=no
2112 DEFAULT_wxUSE_DISPLAY=no
2113 DEFAULT_wxUSE_GAUGE=no
2114 DEFAULT_wxUSE_GRID=no
2115 DEFAULT_wxUSE_IMAGLIST=no
2116 DEFAULT_wxUSE_LISTBOOK=no
2117 DEFAULT_wxUSE_LISTBOX=no
2118 DEFAULT_wxUSE_LISTCTRL=no
2119 DEFAULT_wxUSE_NOTEBOOK=no
2120 DEFAULT_wxUSE_RADIOBOX=no
2121 DEFAULT_wxUSE_RADIOBTN=no
2122 DEFAULT_wxUSE_SASH=no
2123 DEFAULT_wxUSE_SCROLLBAR=no
2124 DEFAULT_wxUSE_SLIDER=no
2125 DEFAULT_wxUSE_SPINBTN=no
2126 DEFAULT_wxUSE_SPINCTRL=no
2127 DEFAULT_wxUSE_SPLITTER=no
2128 DEFAULT_wxUSE_STATBMP=no
2129 DEFAULT_wxUSE_STATBOX=no
2130 DEFAULT_wxUSE_STATLINE=no
2131 DEFAULT_wxUSE_STATTEXT=no
2132 DEFAULT_wxUSE_STATUSBAR=yes
2133 DEFAULT_wxUSE_TABDIALOG=no
2134 DEFAULT_wxUSE_TEXTCTRL=no
2135 DEFAULT_wxUSE_TOGGLEBTN=no
2136 DEFAULT_wxUSE_TOOLBAR=no
2137 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2138 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2139 DEFAULT_wxUSE_TREECTRL=no
2140 DEFAULT_wxUSE_POPUPWIN=no
2141 DEFAULT_wxUSE_TIPWINDOW=no
2142
2143 DEFAULT_wxUSE_UNICODE=no
2144 DEFAULT_wxUSE_UNICODE_MSLU=no
2145 DEFAULT_wxUSE_WCSRTOMBS=no
2146
2147 DEFAULT_wxUSE_PALETTE=no
2148 DEFAULT_wxUSE_IMAGE=no
2149 DEFAULT_wxUSE_GIF=no
2150 DEFAULT_wxUSE_PCX=no
2151 DEFAULT_wxUSE_PNM=no
2152 DEFAULT_wxUSE_IFF=no
2153 DEFAULT_wxUSE_XPM=no
2154 DEFAULT_wxUSE_ICO_CUR=no
2155 DEFAULT_wxUSE_ACCESSIBILITY=no
2156
2157 DEFAULT_wxUSE_MONOLITHIC=no
2158 DEFAULT_wxUSE_PLUGINS=no
2159 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2160else
2161 DEFAULT_wxUSE_UNIVERSAL=no
2162 DEFAULT_wxUSE_STL=no
2163
2164 DEFAULT_wxUSE_NANOX=no
2165
2166 DEFAULT_wxUSE_THREADS=yes
2167
2168 DEFAULT_wxUSE_SHARED=yes
2169 DEFAULT_wxUSE_OPTIMISE=yes
2170 DEFAULT_wxUSE_PROFILE=no
2171 DEFAULT_wxUSE_NO_DEPS=no
2172 DEFAULT_wxUSE_NO_RTTI=no
2173 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2174 DEFAULT_wxUSE_PERMISSIVE=no
2175 DEFAULT_wxUSE_DEBUG_FLAG=no
2176 DEFAULT_wxUSE_DEBUG_INFO=no
2177 DEFAULT_wxUSE_DEBUG_GDB=no
2178 DEFAULT_wxUSE_MEM_TRACING=no
2179 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2180 DEFAULT_wxUSE_DMALLOC=no
2181 DEFAULT_wxUSE_APPLE_IEEE=yes
2182
2183 DEFAULT_wxUSE_EXCEPTIONS=yes
2184 DEFAULT_wxUSE_LOG=yes
2185 DEFAULT_wxUSE_LOGWINDOW=yes
2186 DEFAULT_wxUSE_LOGGUI=yes
2187 DEFAULT_wxUSE_LOGDIALOG=yes
2188
2189 DEFAULT_wxUSE_GUI=yes
2190
2191 DEFAULT_wxUSE_REGEX=yes
2192 DEFAULT_wxUSE_XML=yes
2193 DEFAULT_wxUSE_EXPAT=yes
2194 DEFAULT_wxUSE_ZLIB=yes
2195 DEFAULT_wxUSE_LIBPNG=yes
2196 DEFAULT_wxUSE_LIBJPEG=yes
2197 DEFAULT_wxUSE_LIBTIFF=yes
2198 DEFAULT_wxUSE_LIBXPM=yes
2199 DEFAULT_wxUSE_LIBMSPACK=yes
2200 DEFAULT_wxUSE_LIBSDL=no
2201 DEFAULT_wxUSE_ODBC=no
2202 DEFAULT_wxUSE_OPENGL=no
2203
2204 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2205 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2206 DEFAULT_wxUSE_STD_IOSTREAM=no
2207 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2208 DEFAULT_wxUSE_DATETIME=yes
2209 DEFAULT_wxUSE_TIMER=yes
2210 DEFAULT_wxUSE_STOPWATCH=yes
2211 DEFAULT_wxUSE_FILE=yes
2212 DEFAULT_wxUSE_FFILE=yes
2213 DEFAULT_wxUSE_TEXTBUFFER=yes
2214 DEFAULT_wxUSE_TEXTFILE=yes
2215 DEFAULT_wxUSE_SOUND=yes
2216 DEFAULT_wxUSE_INTL=yes
2217 DEFAULT_wxUSE_CONFIG=yes
2218 DEFAULT_wxUSE_FONTMAP=yes
2219 DEFAULT_wxUSE_STREAMS=yes
2220 DEFAULT_wxUSE_SOCKETS=yes
2221 DEFAULT_wxUSE_OLE=yes
2222 DEFAULT_wxUSE_DATAOBJ=yes
2223 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2224 DEFAULT_wxUSE_JOYSTICK=yes
2225 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2226 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2227 DEFAULT_wxUSE_LONGLONG=yes
2228 DEFAULT_wxUSE_GEOMETRY=yes
2229
2230 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2231 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2232 DEFAULT_wxUSE_POSTSCRIPT=yes
2233
2234 DEFAULT_wxUSE_CLIPBOARD=yes
2235 DEFAULT_wxUSE_TOOLTIPS=yes
2236 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2237 DEFAULT_wxUSE_DRAGIMAGE=yes
2238 DEFAULT_wxUSE_SPLINES=yes
2239
8a7b1113 2240 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2241 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2242 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2243 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2244
2245 DEFAULT_wxUSE_RESOURCES=no
2246 DEFAULT_wxUSE_CONSTRAINTS=yes
2247 DEFAULT_wxUSE_IPC=yes
2248 DEFAULT_wxUSE_HELP=yes
2249 DEFAULT_wxUSE_MS_HTML_HELP=yes
2250 DEFAULT_wxUSE_WXHTML_HELP=yes
2251 DEFAULT_wxUSE_TREELAYOUT=yes
2252 DEFAULT_wxUSE_METAFILE=yes
2253 DEFAULT_wxUSE_MIMETYPE=yes
2254 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2255 DEFAULT_wxUSE_PROTOCOL=yes
2256 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2257 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2258 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2259 DEFAULT_wxUSE_URL=yes
2260
2261 DEFAULT_wxUSE_COMMONDLGS=yes
2262 DEFAULT_wxUSE_CHOICEDLG=yes
2263 DEFAULT_wxUSE_COLOURDLG=yes
2264 DEFAULT_wxUSE_DIRDLG=yes
2265 DEFAULT_wxUSE_FILEDLG=yes
2266 DEFAULT_wxUSE_FINDREPLDLG=yes
2267 DEFAULT_wxUSE_FONTDLG=yes
2268 DEFAULT_wxUSE_MSGDLG=yes
2269 DEFAULT_wxUSE_NUMBERDLG=yes
2270 DEFAULT_wxUSE_TEXTDLG=yes
2271 DEFAULT_wxUSE_SPLASH=yes
2272 DEFAULT_wxUSE_STARTUP_TIPS=yes
2273 DEFAULT_wxUSE_PROGRESSDLG=yes
2274 DEFAULT_wxUSE_WIZARDDLG=yes
2275
2276 DEFAULT_wxUSE_MENUS=yes
2277 DEFAULT_wxUSE_MINIFRAME=yes
2278 DEFAULT_wxUSE_HTML=yes
2279 DEFAULT_wxUSE_FILESYSTEM=yes
2280 DEFAULT_wxUSE_FS_INET=yes
2281 DEFAULT_wxUSE_FS_ZIP=yes
2282 DEFAULT_wxUSE_BUSYINFO=yes
2283 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2284 DEFAULT_wxUSE_VALIDATORS=yes
2285
2286 DEFAULT_wxUSE_ACCEL=yes
2287 DEFAULT_wxUSE_BUTTON=yes
2288 DEFAULT_wxUSE_BMPBUTTON=yes
2289 DEFAULT_wxUSE_CALCTRL=yes
2290 DEFAULT_wxUSE_CARET=yes
2291 DEFAULT_wxUSE_CHECKBOX=yes
2292 DEFAULT_wxUSE_CHECKLST=yes
2293 DEFAULT_wxUSE_CHOICE=yes
2294 DEFAULT_wxUSE_COMBOBOX=yes
2295 DEFAULT_wxUSE_DISPLAY=yes
2296 DEFAULT_wxUSE_GAUGE=yes
2297 DEFAULT_wxUSE_GRID=yes
2298 DEFAULT_wxUSE_IMAGLIST=yes
2299 DEFAULT_wxUSE_LISTBOOK=yes
2300 DEFAULT_wxUSE_LISTBOX=yes
2301 DEFAULT_wxUSE_LISTCTRL=yes
2302 DEFAULT_wxUSE_NOTEBOOK=yes
2303 DEFAULT_wxUSE_RADIOBOX=yes
2304 DEFAULT_wxUSE_RADIOBTN=yes
2305 DEFAULT_wxUSE_SASH=yes
2306 DEFAULT_wxUSE_SCROLLBAR=yes
2307 DEFAULT_wxUSE_SLIDER=yes
2308 DEFAULT_wxUSE_SPINBTN=yes
2309 DEFAULT_wxUSE_SPINCTRL=yes
2310 DEFAULT_wxUSE_SPLITTER=yes
2311 DEFAULT_wxUSE_STATBMP=yes
2312 DEFAULT_wxUSE_STATBOX=yes
2313 DEFAULT_wxUSE_STATLINE=yes
2314 DEFAULT_wxUSE_STATTEXT=yes
2315 DEFAULT_wxUSE_STATUSBAR=yes
2316 DEFAULT_wxUSE_TABDIALOG=no
2317 DEFAULT_wxUSE_TEXTCTRL=yes
2318 DEFAULT_wxUSE_TOGGLEBTN=yes
2319 DEFAULT_wxUSE_TOOLBAR=yes
2320 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2321 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2322 DEFAULT_wxUSE_TREECTRL=yes
2323 DEFAULT_wxUSE_POPUPWIN=yes
2324 DEFAULT_wxUSE_TIPWINDOW=yes
2325
2326 DEFAULT_wxUSE_UNICODE=no
2327 DEFAULT_wxUSE_UNICODE_MSLU=yes
2328 DEFAULT_wxUSE_WCSRTOMBS=no
2329
2330 DEFAULT_wxUSE_PALETTE=yes
2331 DEFAULT_wxUSE_IMAGE=yes
2332 DEFAULT_wxUSE_GIF=yes
2333 DEFAULT_wxUSE_PCX=yes
2334 DEFAULT_wxUSE_IFF=no
2335 DEFAULT_wxUSE_PNM=yes
2336 DEFAULT_wxUSE_XPM=yes
2337 DEFAULT_wxUSE_ICO_CUR=yes
2338 DEFAULT_wxUSE_ACCESSIBILITY=no
2339
2340 DEFAULT_wxUSE_MONOLITHIC=no
2341 DEFAULT_wxUSE_PLUGINS=no
2342 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2343fi
2344
2345
2346
2347for toolkit in `echo $ALL_TOOLKITS`; do
2348 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2349 if test "x$LINE" != "x" ; then
2350 has_toolkit_in_cache=1
2351 eval "DEFAULT_$LINE"
2352 eval "CACHE_$toolkit=1"
2353 fi
2354done
2355
2356
2357
2358 enablestring=
2359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2360echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2361 no_cache=0
2362 # Check whether --enable-gui or --disable-gui was given.
2363if test "${enable_gui+set}" = set; then
2364 enableval="$enable_gui"
2365
2366 if test "$enableval" = yes; then
2367 ac_cv_use_gui='wxUSE_GUI=yes'
2368 else
2369 ac_cv_use_gui='wxUSE_GUI=no'
2370 fi
2371
2372else
2373
2374 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2375 if test "x$LINE" != x ; then
2376 eval "DEFAULT_$LINE"
2377 else
2378 no_cache=1
2379 fi
2380
2381 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2382
2383fi;
2384
2385 eval "$ac_cv_use_gui"
2386 if test "$no_cache" != 1; then
2387 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2388 fi
2389
2390 if test "$wxUSE_GUI" = yes; then
2391 echo "$as_me:$LINENO: result: yes" >&5
2392echo "${ECHO_T}yes" >&6
2393 else
2394 echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6
2396 fi
2397
2398
2399 enablestring=
2400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2401echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2402 no_cache=0
2403 # Check whether --enable-monolithic or --disable-monolithic was given.
2404if test "${enable_monolithic+set}" = set; then
2405 enableval="$enable_monolithic"
2406
2407 if test "$enableval" = yes; then
2408 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2409 else
2410 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2411 fi
2412
2413else
2414
2415 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
2422 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2423
2424fi;
2425
2426 eval "$ac_cv_use_monolithic"
2427 if test "$no_cache" != 1; then
2428 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2429 fi
2430
2431 if test "$wxUSE_MONOLITHIC" = yes; then
2432 echo "$as_me:$LINENO: result: yes" >&5
2433echo "${ECHO_T}yes" >&6
2434 else
2435 echo "$as_me:$LINENO: result: no" >&5
2436echo "${ECHO_T}no" >&6
2437 fi
2438
2439
2440 enablestring=
2441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2442echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2443 no_cache=0
2444 # Check whether --enable-plugins or --disable-plugins was given.
2445if test "${enable_plugins+set}" = set; then
2446 enableval="$enable_plugins"
2447
2448 if test "$enableval" = yes; then
2449 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2450 else
2451 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2452 fi
2453
2454else
2455
2456 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2457 if test "x$LINE" != x ; then
2458 eval "DEFAULT_$LINE"
2459 else
2460 no_cache=1
2461 fi
2462
2463 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2464
2465fi;
2466
2467 eval "$ac_cv_use_plugins"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_PLUGINS" = yes; then
2473 echo "$as_me:$LINENO: result: yes" >&5
2474echo "${ECHO_T}yes" >&6
2475 else
2476 echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6
2478 fi
2479
2480
2481if test "$wxUSE_GUI" = "yes"; then
2482
2483
2484 enablestring=
2485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2486echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2487 no_cache=0
2488 # Check whether --enable-universal or --disable-universal was given.
2489if test "${enable_universal+set}" = set; then
2490 enableval="$enable_universal"
2491
2492 if test "$enableval" = yes; then
2493 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2494 else
2495 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2496 fi
2497
2498else
2499
2500 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2501 if test "x$LINE" != x ; then
2502 eval "DEFAULT_$LINE"
2503 else
2504 no_cache=1
2505 fi
2506
2507 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2508
2509fi;
2510
2511 eval "$ac_cv_use_universal"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_UNIVERSAL" = yes; then
2517 echo "$as_me:$LINENO: result: yes" >&5
2518echo "${ECHO_T}yes" >&6
2519 else
2520 echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6
2522 fi
2523
2524
2525# Check whether --with-gtk or --without-gtk was given.
2526if test "${with_gtk+set}" = set; then
2527 withval="$with_gtk"
2528 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2529fi;
2530
2531# Check whether --with-motif or --without-motif was given.
2532if test "${with_motif+set}" = set; then
2533 withval="$with_motif"
2534 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2535fi;
2536
2537# Check whether --with-mac or --without-mac was given.
2538if test "${with_mac+set}" = set; then
2539 withval="$with_mac"
2540 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2541fi;
2542
2543# Check whether --with-cocoa or --without-cocoa was given.
2544if test "${with_cocoa+set}" = set; then
2545 withval="$with_cocoa"
2546 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2547fi;
2548
2549# Check whether --with-wine or --without-wine was given.
2550if test "${with_wine+set}" = set; then
2551 withval="$with_wine"
2552 wxUSE_WINE="$withval" CACHE_WINE=1
2553fi;
2554
2555# Check whether --with-msw or --without-msw was given.
2556if test "${with_msw+set}" = set; then
2557 withval="$with_msw"
2558 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2559fi;
2560
2561# Check whether --with-pm or --without-pm was given.
2562if test "${with_pm+set}" = set; then
2563 withval="$with_pm"
2564 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2565fi;
2566
2567# Check whether --with-mgl or --without-mgl was given.
2568if test "${with_mgl+set}" = set; then
2569 withval="$with_mgl"
2570 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2571fi;
2572
2573# Check whether --with-microwin or --without-microwin was given.
2574if test "${with_microwin+set}" = set; then
2575 withval="$with_microwin"
2576 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2577fi;
2578
2579# Check whether --with-x11 or --without-x11 was given.
2580if test "${with_x11+set}" = set; then
2581 withval="$with_x11"
2582 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2583fi;
2584
2585 enablestring=
2586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2587echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2588 no_cache=0
2589 # Check whether --enable-nanox or --disable-nanox was given.
2590if test "${enable_nanox+set}" = set; then
2591 enableval="$enable_nanox"
2592
2593 if test "$enableval" = yes; then
2594 ac_cv_use_nanox='wxUSE_NANOX=yes'
2595 else
2596 ac_cv_use_nanox='wxUSE_NANOX=no'
2597 fi
2598
2599else
2600
2601 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2602 if test "x$LINE" != x ; then
2603 eval "DEFAULT_$LINE"
2604 else
2605 no_cache=1
2606 fi
2607
2608 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2609
2610fi;
2611
2612 eval "$ac_cv_use_nanox"
2613 if test "$no_cache" != 1; then
2614 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2615 fi
2616
2617 if test "$wxUSE_NANOX" = yes; then
2618 echo "$as_me:$LINENO: result: yes" >&5
2619echo "${ECHO_T}yes" >&6
2620 else
2621 echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6
2623 fi
2624
2625
2626
2627 enablestring=
2628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2629echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2630 no_cache=0
2631 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2632if test "${enable_gtk2+set}" = set; then
2633 enableval="$enable_gtk2"
2634
2635 if test "$enableval" = yes; then
2636 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2637 else
2638 ac_cv_use_gtk2='wxUSE_GTK2=no'
2639 fi
2640
2641else
2642
2643 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2644 if test "x$LINE" != x ; then
2645 eval "DEFAULT_$LINE"
2646 else
2647 no_cache=1
2648 fi
2649
2650 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2651
2652fi;
2653
2654 eval "$ac_cv_use_gtk2"
2655 if test "$no_cache" != 1; then
2656 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2657 fi
2658
2659 if test "$wxUSE_GTK2" = yes; then
2660 echo "$as_me:$LINENO: result: yes" >&5
2661echo "${ECHO_T}yes" >&6
2662 else
2663 echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6
2665 fi
2666
2667
2668 enablestring=
2669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2670echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2671 no_cache=0
2672 # Check whether --enable-gpe or --disable-gpe was given.
2673if test "${enable_gpe+set}" = set; then
2674 enableval="$enable_gpe"
2675
2676 if test "$enableval" = yes; then
2677 ac_cv_use_gpe='wxUSE_GPE=yes'
2678 else
2679 ac_cv_use_gpe='wxUSE_GPE=no'
2680 fi
2681
2682else
2683
2684 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2685 if test "x$LINE" != x ; then
2686 eval "DEFAULT_$LINE"
2687 else
2688 no_cache=1
2689 fi
2690
2691 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2692
2693fi;
2694
2695 eval "$ac_cv_use_gpe"
2696 if test "$no_cache" != 1; then
2697 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2698 fi
2699
2700 if test "$wxUSE_GPE" = yes; then
2701 echo "$as_me:$LINENO: result: yes" >&5
2702echo "${ECHO_T}yes" >&6
2703 else
2704 echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6
2706 fi
2707
2708
2709
2710 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2711echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2712 no_cache=0
2713
2714# Check whether --with-libpng or --without-libpng was given.
2715if test "${with_libpng+set}" = set; then
2716 withval="$with_libpng"
2717
2718 if test "$withval" = yes; then
2719 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2720 elif test "$withval" = no; then
2721 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2722 elif test "$withval" = sys; then
2723 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2724 elif test "$withval" = builtin; then
2725 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2726 else
2727 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2728echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2729 { (exit 1); exit 1; }; }
2730 fi
2731
2732else
2733
2734 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2742
2743fi;
2744
2745 eval "$ac_cv_use_libpng"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_LIBPNG" = yes; then
2751 echo "$as_me:$LINENO: result: yes" >&5
2752echo "${ECHO_T}yes" >&6
2753 elif test "$wxUSE_LIBPNG" = no; then
2754 echo "$as_me:$LINENO: result: no" >&5
2755echo "${ECHO_T}no" >&6
2756 elif test "$wxUSE_LIBPNG" = sys; then
2757 echo "$as_me:$LINENO: result: system version" >&5
2758echo "${ECHO_T}system version" >&6
2759 elif test "$wxUSE_LIBPNG" = builtin; then
2760 echo "$as_me:$LINENO: result: builtin version" >&5
2761echo "${ECHO_T}builtin version" >&6
2762 else
2763 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2764echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2765 { (exit 1); exit 1; }; }
2766 fi
2767
2768
2769 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2770echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2771 no_cache=0
2772
2773# Check whether --with-libjpeg or --without-libjpeg was given.
2774if test "${with_libjpeg+set}" = set; then
2775 withval="$with_libjpeg"
2776
2777 if test "$withval" = yes; then
2778 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2779 elif test "$withval" = no; then
2780 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2781 elif test "$withval" = sys; then
2782 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2783 elif test "$withval" = builtin; then
2784 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2785 else
2786 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2787echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2788 { (exit 1); exit 1; }; }
2789 fi
2790
2791else
2792
2793 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2794 if test "x$LINE" != x ; then
2795 eval "DEFAULT_$LINE"
2796 else
2797 no_cache=1
2798 fi
2799
2800 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2801
2802fi;
2803
2804 eval "$ac_cv_use_libjpeg"
2805 if test "$no_cache" != 1; then
2806 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2807 fi
2808
2809 if test "$wxUSE_LIBJPEG" = yes; then
2810 echo "$as_me:$LINENO: result: yes" >&5
2811echo "${ECHO_T}yes" >&6
2812 elif test "$wxUSE_LIBJPEG" = no; then
2813 echo "$as_me:$LINENO: result: no" >&5
2814echo "${ECHO_T}no" >&6
2815 elif test "$wxUSE_LIBJPEG" = sys; then
2816 echo "$as_me:$LINENO: result: system version" >&5
2817echo "${ECHO_T}system version" >&6
2818 elif test "$wxUSE_LIBJPEG" = builtin; then
2819 echo "$as_me:$LINENO: result: builtin version" >&5
2820echo "${ECHO_T}builtin version" >&6
2821 else
2822 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2823echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2824 { (exit 1); exit 1; }; }
2825 fi
2826
2827
2828 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2829echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2830 no_cache=0
2831
2832# Check whether --with-libtiff or --without-libtiff was given.
2833if test "${with_libtiff+set}" = set; then
2834 withval="$with_libtiff"
2835
2836 if test "$withval" = yes; then
2837 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2838 elif test "$withval" = no; then
2839 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2840 elif test "$withval" = sys; then
2841 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2842 elif test "$withval" = builtin; then
2843 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2844 else
2845 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2846echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2847 { (exit 1); exit 1; }; }
2848 fi
2849
2850else
2851
2852 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2853 if test "x$LINE" != x ; then
2854 eval "DEFAULT_$LINE"
2855 else
2856 no_cache=1
2857 fi
2858
2859 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2860
2861fi;
2862
2863 eval "$ac_cv_use_libtiff"
2864 if test "$no_cache" != 1; then
2865 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2866 fi
2867
2868 if test "$wxUSE_LIBTIFF" = yes; then
2869 echo "$as_me:$LINENO: result: yes" >&5
2870echo "${ECHO_T}yes" >&6
2871 elif test "$wxUSE_LIBTIFF" = no; then
2872 echo "$as_me:$LINENO: result: no" >&5
2873echo "${ECHO_T}no" >&6
2874 elif test "$wxUSE_LIBTIFF" = sys; then
2875 echo "$as_me:$LINENO: result: system version" >&5
2876echo "${ECHO_T}system version" >&6
2877 elif test "$wxUSE_LIBTIFF" = builtin; then
2878 echo "$as_me:$LINENO: result: builtin version" >&5
2879echo "${ECHO_T}builtin version" >&6
2880 else
2881 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2882echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2883 { (exit 1); exit 1; }; }
2884 fi
2885
2886
2887 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2888echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2889 no_cache=0
2890
2891# Check whether --with-libxpm or --without-libxpm was given.
2892if test "${with_libxpm+set}" = set; then
2893 withval="$with_libxpm"
2894
2895 if test "$withval" = yes; then
2896 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2897 elif test "$withval" = no; then
2898 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2899 elif test "$withval" = sys; then
2900 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2901 elif test "$withval" = builtin; then
2902 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2903 else
2904 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2905echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2906 { (exit 1); exit 1; }; }
2907 fi
2908
2909else
2910
2911 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2912 if test "x$LINE" != x ; then
2913 eval "DEFAULT_$LINE"
2914 else
2915 no_cache=1
2916 fi
2917
2918 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2919
2920fi;
2921
2922 eval "$ac_cv_use_libxpm"
2923 if test "$no_cache" != 1; then
2924 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2925 fi
2926
2927 if test "$wxUSE_LIBXPM" = yes; then
2928 echo "$as_me:$LINENO: result: yes" >&5
2929echo "${ECHO_T}yes" >&6
2930 elif test "$wxUSE_LIBXPM" = no; then
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
2933 elif test "$wxUSE_LIBXPM" = sys; then
2934 echo "$as_me:$LINENO: result: system version" >&5
2935echo "${ECHO_T}system version" >&6
2936 elif test "$wxUSE_LIBXPM" = builtin; then
2937 echo "$as_me:$LINENO: result: builtin version" >&5
2938echo "${ECHO_T}builtin version" >&6
2939 else
2940 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2941echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2942 { (exit 1); exit 1; }; }
2943 fi
2944
2945
2946 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2947echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2948 no_cache=0
2949
2950# Check whether --with-libmspack or --without-libmspack was given.
2951if test "${with_libmspack+set}" = set; then
2952 withval="$with_libmspack"
2953
2954 if test "$withval" = yes; then
2955 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2956 else
2957 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2958 fi
2959
2960else
2961
2962 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2963 if test "x$LINE" != x ; then
2964 eval "DEFAULT_$LINE"
2965 else
2966 no_cache=1
2967 fi
2968
2969 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2970
2971fi;
2972
2973 eval "$ac_cv_use_libmspack"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_LIBMSPACK" = yes; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6
2981 else
2982 echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984 fi
2985
2986
2987 echo "$as_me:$LINENO: checking for --with-sdl" >&5
2988echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
2989 no_cache=0
2990
2991# Check whether --with-sdl or --without-sdl was given.
2992if test "${with_sdl+set}" = set; then
2993 withval="$with_sdl"
2994
2995 if test "$withval" = yes; then
2996 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
2997 else
2998 ac_cv_use_sdl='wxUSE_LIBSDL=no'
2999 fi
3000
3001else
3002
3003 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3004 if test "x$LINE" != x ; then
3005 eval "DEFAULT_$LINE"
3006 else
3007 no_cache=1
3008 fi
3009
3010 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3011
3012fi;
3013
3014 eval "$ac_cv_use_sdl"
3015 if test "$no_cache" != 1; then
3016 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3017 fi
3018
3019 if test "$wxUSE_LIBSDL" = yes; then
3020 echo "$as_me:$LINENO: result: yes" >&5
3021echo "${ECHO_T}yes" >&6
3022 else
3023 echo "$as_me:$LINENO: result: no" >&5
3024echo "${ECHO_T}no" >&6
3025 fi
3026
3027
3028 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3029echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3030 no_cache=0
3031
3032# Check whether --with-opengl or --without-opengl was given.
3033if test "${with_opengl+set}" = set; then
3034 withval="$with_opengl"
3035
3036 if test "$withval" = yes; then
3037 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3038 else
3039 ac_cv_use_opengl='wxUSE_OPENGL=no'
3040 fi
3041
3042else
3043
3044 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3045 if test "x$LINE" != x ; then
3046 eval "DEFAULT_$LINE"
3047 else
3048 no_cache=1
3049 fi
3050
3051 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3052
3053fi;
3054
3055 eval "$ac_cv_use_opengl"
3056 if test "$no_cache" != 1; then
3057 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3058 fi
3059
3060 if test "$wxUSE_OPENGL" = yes; then
3061 echo "$as_me:$LINENO: result: yes" >&5
3062echo "${ECHO_T}yes" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
3066 fi
3067
3068
3069fi
3070
3071
3072 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3073echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3074 no_cache=0
3075
3076# Check whether --with-dmalloc or --without-dmalloc was given.
3077if test "${with_dmalloc+set}" = set; then
3078 withval="$with_dmalloc"
3079
3080 if test "$withval" = yes; then
3081 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3082 else
3083 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3084 fi
3085
3086else
3087
3088 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3089 if test "x$LINE" != x ; then
3090 eval "DEFAULT_$LINE"
3091 else
3092 no_cache=1
3093 fi
3094
3095 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3096
3097fi;
3098
3099 eval "$ac_cv_use_dmalloc"
3100 if test "$no_cache" != 1; then
3101 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3102 fi
3103
3104 if test "$wxUSE_DMALLOC" = yes; then
3105 echo "$as_me:$LINENO: result: yes" >&5
3106echo "${ECHO_T}yes" >&6
3107 else
3108 echo "$as_me:$LINENO: result: no" >&5
3109echo "${ECHO_T}no" >&6
3110 fi
3111
3112
3113 echo "$as_me:$LINENO: checking for --with-regex" >&5
3114echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3115 no_cache=0
3116
3117# Check whether --with-regex or --without-regex was given.
3118if test "${with_regex+set}" = set; then
3119 withval="$with_regex"
3120
3121 if test "$withval" = yes; then
3122 ac_cv_use_regex='wxUSE_REGEX=yes'
3123 elif test "$withval" = no; then
3124 ac_cv_use_regex='wxUSE_REGEX=no'
3125 elif test "$withval" = sys; then
3126 ac_cv_use_regex='wxUSE_REGEX=sys'
3127 elif test "$withval" = builtin; then
3128 ac_cv_use_regex='wxUSE_REGEX=builtin'
3129 else
3130 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3131echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3132 { (exit 1); exit 1; }; }
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3145
3146fi;
3147
3148 eval "$ac_cv_use_regex"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_REGEX" = yes; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155echo "${ECHO_T}yes" >&6
3156 elif test "$wxUSE_REGEX" = no; then
3157 echo "$as_me:$LINENO: result: no" >&5
3158echo "${ECHO_T}no" >&6
3159 elif test "$wxUSE_REGEX" = sys; then
3160 echo "$as_me:$LINENO: result: system version" >&5
3161echo "${ECHO_T}system version" >&6
3162 elif test "$wxUSE_REGEX" = builtin; then
3163 echo "$as_me:$LINENO: result: builtin version" >&5
3164echo "${ECHO_T}builtin version" >&6
3165 else
3166 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3167echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3168 { (exit 1); exit 1; }; }
3169 fi
3170
3171
3172 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3173echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3174 no_cache=0
3175
3176# Check whether --with-zlib or --without-zlib was given.
3177if test "${with_zlib+set}" = set; then
3178 withval="$with_zlib"
3179
3180 if test "$withval" = yes; then
3181 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3182 elif test "$withval" = no; then
3183 ac_cv_use_zlib='wxUSE_ZLIB=no'
3184 elif test "$withval" = sys; then
3185 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3186 elif test "$withval" = builtin; then
3187 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3188 else
3189 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3190echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3191 { (exit 1); exit 1; }; }
3192 fi
3193
3194else
3195
3196 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3197 if test "x$LINE" != x ; then
3198 eval "DEFAULT_$LINE"
3199 else
3200 no_cache=1
3201 fi
3202
3203 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3204
3205fi;
3206
3207 eval "$ac_cv_use_zlib"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$wxUSE_ZLIB" = yes; then
3213 echo "$as_me:$LINENO: result: yes" >&5
3214echo "${ECHO_T}yes" >&6
3215 elif test "$wxUSE_ZLIB" = no; then
3216 echo "$as_me:$LINENO: result: no" >&5
3217echo "${ECHO_T}no" >&6
3218 elif test "$wxUSE_ZLIB" = sys; then
3219 echo "$as_me:$LINENO: result: system version" >&5
3220echo "${ECHO_T}system version" >&6
3221 elif test "$wxUSE_ZLIB" = builtin; then
3222 echo "$as_me:$LINENO: result: builtin version" >&5
3223echo "${ECHO_T}builtin version" >&6
3224 else
3225 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3226echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3227 { (exit 1); exit 1; }; }
3228 fi
3229
3230
3231 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3232echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3233 no_cache=0
3234
3235# Check whether --with-odbc or --without-odbc was given.
3236if test "${with_odbc+set}" = set; then
3237 withval="$with_odbc"
3238
3239 if test "$withval" = yes; then
3240 ac_cv_use_odbc='wxUSE_ODBC=yes'
3241 elif test "$withval" = no; then
3242 ac_cv_use_odbc='wxUSE_ODBC=no'
3243 elif test "$withval" = sys; then
3244 ac_cv_use_odbc='wxUSE_ODBC=sys'
3245 elif test "$withval" = builtin; then
3246 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3247 else
3248 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3249echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3250 { (exit 1); exit 1; }; }
3251 fi
3252
3253else
3254
3255 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3256 if test "x$LINE" != x ; then
3257 eval "DEFAULT_$LINE"
3258 else
3259 no_cache=1
3260 fi
3261
3262 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3263
3264fi;
3265
3266 eval "$ac_cv_use_odbc"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_ODBC" = yes; then
3272 echo "$as_me:$LINENO: result: yes" >&5
3273echo "${ECHO_T}yes" >&6
3274 elif test "$wxUSE_ODBC" = no; then
3275 echo "$as_me:$LINENO: result: no" >&5
3276echo "${ECHO_T}no" >&6
3277 elif test "$wxUSE_ODBC" = sys; then
3278 echo "$as_me:$LINENO: result: system version" >&5
3279echo "${ECHO_T}system version" >&6
3280 elif test "$wxUSE_ODBC" = builtin; then
3281 echo "$as_me:$LINENO: result: builtin version" >&5
3282echo "${ECHO_T}builtin version" >&6
3283 else
3284 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3285echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3286 { (exit 1); exit 1; }; }
3287 fi
3288
3289
3290 echo "$as_me:$LINENO: checking for --with-expat" >&5
3291echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3292 no_cache=0
3293
3294# Check whether --with-expat or --without-expat was given.
3295if test "${with_expat+set}" = set; then
3296 withval="$with_expat"
3297
3298 if test "$withval" = yes; then
3299 ac_cv_use_expat='wxUSE_EXPAT=yes'
3300 elif test "$withval" = no; then
3301 ac_cv_use_expat='wxUSE_EXPAT=no'
3302 elif test "$withval" = sys; then
3303 ac_cv_use_expat='wxUSE_EXPAT=sys'
3304 elif test "$withval" = builtin; then
3305 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3306 else
3307 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3308echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3309 { (exit 1); exit 1; }; }
3310 fi
3311
3312else
3313
3314 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3315 if test "x$LINE" != x ; then
3316 eval "DEFAULT_$LINE"
3317 else
3318 no_cache=1
3319 fi
3320
3321 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3322
3323fi;
3324
3325 eval "$ac_cv_use_expat"
3326 if test "$no_cache" != 1; then
3327 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3328 fi
3329
3330 if test "$wxUSE_EXPAT" = yes; then
3331 echo "$as_me:$LINENO: result: yes" >&5
3332echo "${ECHO_T}yes" >&6
3333 elif test "$wxUSE_EXPAT" = no; then
3334 echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
3336 elif test "$wxUSE_EXPAT" = sys; then
3337 echo "$as_me:$LINENO: result: system version" >&5
3338echo "${ECHO_T}system version" >&6
3339 elif test "$wxUSE_EXPAT" = builtin; then
3340 echo "$as_me:$LINENO: result: builtin version" >&5
3341echo "${ECHO_T}builtin version" >&6
3342 else
3343 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3344echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3345 { (exit 1); exit 1; }; }
3346 fi
3347
3348
3349
3350
3351 enablestring=
3352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3353echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3354 no_cache=0
3355 # Check whether --enable-shared or --disable-shared was given.
3356if test "${enable_shared+set}" = set; then
3357 enableval="$enable_shared"
3358
3359 if test "$enableval" = yes; then
3360 ac_cv_use_shared='wxUSE_SHARED=yes'
3361 else
3362 ac_cv_use_shared='wxUSE_SHARED=no'
3363 fi
3364
3365else
3366
3367 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3368 if test "x$LINE" != x ; then
3369 eval "DEFAULT_$LINE"
3370 else
3371 no_cache=1
3372 fi
3373
3374 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3375
3376fi;
3377
3378 eval "$ac_cv_use_shared"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_SHARED" = yes; then
3384 echo "$as_me:$LINENO: result: yes" >&5
3385echo "${ECHO_T}yes" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
3389 fi
3390
3391
3392 enablestring=
3393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3394echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3395 no_cache=0
3396 # Check whether --enable-optimise or --disable-optimise was given.
3397if test "${enable_optimise+set}" = set; then
3398 enableval="$enable_optimise"
3399
3400 if test "$enableval" = yes; then
3401 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3402 else
3403 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3404 fi
3405
3406else
3407
3408 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3416
3417fi;
3418
3419 eval "$ac_cv_use_optimise"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_OPTIMISE" = yes; then
3425 echo "$as_me:$LINENO: result: yes" >&5
3426echo "${ECHO_T}yes" >&6
3427 else
3428 echo "$as_me:$LINENO: result: no" >&5
3429echo "${ECHO_T}no" >&6
3430 fi
3431
3432
3433 enablestring=
3434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3435echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3436 no_cache=0
3437 # Check whether --enable-debug or --disable-debug was given.
3438if test "${enable_debug+set}" = set; then
3439 enableval="$enable_debug"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_debug='wxUSE_DEBUG=yes'
3443 else
3444 ac_cv_use_debug='wxUSE_DEBUG=no'
3445 fi
3446
3447else
3448
3449 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3457
3458fi;
3459
3460 eval "$ac_cv_use_debug"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_DEBUG" = yes; then
3466 echo "$as_me:$LINENO: result: yes" >&5
3467echo "${ECHO_T}yes" >&6
3468 else
3469 echo "$as_me:$LINENO: result: no" >&5
3470echo "${ECHO_T}no" >&6
3471 fi
3472
3473
3474 enablestring=
3475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3476echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3477 no_cache=0
3478 # Check whether --enable-stl or --disable-stl was given.
3479if test "${enable_stl+set}" = set; then
3480 enableval="$enable_stl"
3481
3482 if test "$enableval" = yes; then
3483 ac_cv_use_stl='wxUSE_STL=yes'
3484 else
3485 ac_cv_use_stl='wxUSE_STL=no'
3486 fi
3487
3488else
3489
3490 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3498
3499fi;
3500
3501 eval "$ac_cv_use_stl"
3502 if test "$no_cache" != 1; then
3503 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3504 fi
3505
3506 if test "$wxUSE_STL" = yes; then
3507 echo "$as_me:$LINENO: result: yes" >&5
3508echo "${ECHO_T}yes" >&6
3509 else
3510 echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6
3512 fi
3513
3514if test "$USE_OS2" = "1"; then
3515
3516 enablestring=
3517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3518echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3519 no_cache=0
3520 # Check whether --enable-omf or --disable-omf was given.
3521if test "${enable_omf+set}" = set; then
3522 enableval="$enable_omf"
3523
3524 if test "$enableval" = yes; then
3525 ac_cv_use_omf='wxUSE_OMF=yes'
3526 else
3527 ac_cv_use_omf='wxUSE_OMF=no'
3528 fi
3529
3530else
3531
3532 LINE=`grep "wxUSE_OMF" ${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_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3540
3541fi;
3542
3543 eval "$ac_cv_use_omf"
3544 if test "$no_cache" != 1; then
3545 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3546 fi
3547
3548 if test "$wxUSE_OMF" = yes; then
3549 echo "$as_me:$LINENO: result: yes" >&5
3550echo "${ECHO_T}yes" >&6
3551 else
3552 echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
3554 fi
3555
3556fi
3557
3558if test "$wxUSE_DEBUG" = "yes"; then
3559 DEFAULT_wxUSE_DEBUG_FLAG=yes
3560 DEFAULT_wxUSE_DEBUG_INFO=yes
3561 BUILD=debug
3562elif test "$wxUSE_DEBUG" = "no"; then
3563 DEFAULT_wxUSE_DEBUG_FLAG=no
3564 DEFAULT_wxUSE_DEBUG_INFO=no
3565 BUILD=release
3566fi
3567
3568
3569 enablestring=
3570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3571echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3572 no_cache=0
3573 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3574if test "${enable_debug_flag+set}" = set; then
3575 enableval="$enable_debug_flag"
3576
3577 if test "$enableval" = yes; then
3578 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3579 else
3580 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3581 fi
3582
3583else
3584
3585 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3593
3594fi;
3595
3596 eval "$ac_cv_use_debug_flag"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_DEBUG_FLAG" = yes; then
3602 echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
3604 else
3605 echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607 fi
3608
3609
3610 enablestring=
3611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3612echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3613 no_cache=0
3614 # Check whether --enable-debug_info or --disable-debug_info was given.
3615if test "${enable_debug_info+set}" = set; then
3616 enableval="$enable_debug_info"
3617
3618 if test "$enableval" = yes; then
3619 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3620 else
3621 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3634
3635fi;
3636
3637 eval "$ac_cv_use_debug_info"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_DEBUG_INFO" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 fi
3649
3650
3651 enablestring=
3652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3653echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3654 no_cache=0
3655 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3656if test "${enable_debug_gdb+set}" = set; then
3657 enableval="$enable_debug_gdb"
3658
3659 if test "$enableval" = yes; then
3660 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3661 else
3662 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3663 fi
3664
3665else
3666
3667 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3668 if test "x$LINE" != x ; then
3669 eval "DEFAULT_$LINE"
3670 else
3671 no_cache=1
3672 fi
3673
3674 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3675
3676fi;
3677
3678 eval "$ac_cv_use_debug_gdb"
3679 if test "$no_cache" != 1; then
3680 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3681 fi
3682
3683 if test "$wxUSE_DEBUG_GDB" = yes; then
3684 echo "$as_me:$LINENO: result: yes" >&5
3685echo "${ECHO_T}yes" >&6
3686 else
3687 echo "$as_me:$LINENO: result: no" >&5
3688echo "${ECHO_T}no" >&6
3689 fi
3690
3691
3692 enablestring=
3693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3694echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3695 no_cache=0
3696 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3697if test "${enable_debug_cntxt+set}" = set; then
3698 enableval="$enable_debug_cntxt"
3699
3700 if test "$enableval" = yes; then
3701 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3702 else
3703 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3704 fi
3705
3706else
3707
3708 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3709 if test "x$LINE" != x ; then
3710 eval "DEFAULT_$LINE"
3711 else
3712 no_cache=1
3713 fi
3714
3715 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3716
3717fi;
3718
3719 eval "$ac_cv_use_debug_cntxt"
3720 if test "$no_cache" != 1; then
3721 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3722 fi
3723
3724 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3725 echo "$as_me:$LINENO: result: yes" >&5
3726echo "${ECHO_T}yes" >&6
3727 else
3728 echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730 fi
3731
3732
3733 enablestring=
3734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3735echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3736 no_cache=0
3737 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3738if test "${enable_mem_tracing+set}" = set; then
3739 enableval="$enable_mem_tracing"
3740
3741 if test "$enableval" = yes; then
3742 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3743 else
3744 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3745 fi
3746
3747else
3748
3749 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3750 if test "x$LINE" != x ; then
3751 eval "DEFAULT_$LINE"
3752 else
3753 no_cache=1
3754 fi
3755
3756 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3757
3758fi;
3759
3760 eval "$ac_cv_use_mem_tracing"
3761 if test "$no_cache" != 1; then
3762 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3763 fi
3764
3765 if test "$wxUSE_MEM_TRACING" = yes; then
3766 echo "$as_me:$LINENO: result: yes" >&5
3767echo "${ECHO_T}yes" >&6
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770echo "${ECHO_T}no" >&6
3771 fi
3772
3773
3774 enablestring=
3775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3776echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3777 no_cache=0
3778 # Check whether --enable-profile or --disable-profile was given.
3779if test "${enable_profile+set}" = set; then
3780 enableval="$enable_profile"
3781
3782 if test "$enableval" = yes; then
3783 ac_cv_use_profile='wxUSE_PROFILE=yes'
3784 else
3785 ac_cv_use_profile='wxUSE_PROFILE=no'
3786 fi
3787
3788else
3789
3790 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3791 if test "x$LINE" != x ; then
3792 eval "DEFAULT_$LINE"
3793 else
3794 no_cache=1
3795 fi
3796
3797 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3798
3799fi;
3800
3801 eval "$ac_cv_use_profile"
3802 if test "$no_cache" != 1; then
3803 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3804 fi
3805
3806 if test "$wxUSE_PROFILE" = yes; then
3807 echo "$as_me:$LINENO: result: yes" >&5
3808echo "${ECHO_T}yes" >&6
3809 else
3810 echo "$as_me:$LINENO: result: no" >&5
3811echo "${ECHO_T}no" >&6
3812 fi
3813
3814
3815 enablestring=
3816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3817echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3818 no_cache=0
3819 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3820if test "${enable_no_rtti+set}" = set; then
3821 enableval="$enable_no_rtti"
3822
3823 if test "$enableval" = yes; then
3824 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3825 else
3826 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3827 fi
3828
3829else
3830
3831 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3839
3840fi;
3841
3842 eval "$ac_cv_use_no_rtti"
3843 if test "$no_cache" != 1; then
3844 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3845 fi
3846
3847 if test "$wxUSE_NO_RTTI" = yes; then
3848 echo "$as_me:$LINENO: result: yes" >&5
3849echo "${ECHO_T}yes" >&6
3850 else
3851 echo "$as_me:$LINENO: result: no" >&5
3852echo "${ECHO_T}no" >&6
3853 fi
3854
3855
3856 enablestring=
3857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3858echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3859 no_cache=0
3860 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3861if test "${enable_no_exceptions+set}" = set; then
3862 enableval="$enable_no_exceptions"
3863
3864 if test "$enableval" = yes; then
3865 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3866 else
3867 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3868 fi
3869
3870else
3871
3872 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3873 if test "x$LINE" != x ; then
3874 eval "DEFAULT_$LINE"
3875 else
3876 no_cache=1
3877 fi
3878
3879 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3880
3881fi;
3882
3883 eval "$ac_cv_use_no_exceptions"
3884 if test "$no_cache" != 1; then
3885 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3886 fi
3887
3888 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3889 echo "$as_me:$LINENO: result: yes" >&5
3890echo "${ECHO_T}yes" >&6
3891 else
3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
3894 fi
3895
3896
3897 enablestring=
3898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3899echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3900 no_cache=0
3901 # Check whether --enable-permissive or --disable-permissive was given.
3902if test "${enable_permissive+set}" = set; then
3903 enableval="$enable_permissive"
3904
3905 if test "$enableval" = yes; then
3906 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3907 else
3908 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3909 fi
3910
3911else
3912
3913 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3914 if test "x$LINE" != x ; then
3915 eval "DEFAULT_$LINE"
3916 else
3917 no_cache=1
3918 fi
3919
3920 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3921
3922fi;
3923
3924 eval "$ac_cv_use_permissive"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_PERMISSIVE" = yes; then
3930 echo "$as_me:$LINENO: result: yes" >&5
3931echo "${ECHO_T}yes" >&6
3932 else
3933 echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6
3935 fi
3936
3937
3938 enablestring=
3939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3940echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3941 no_cache=0
3942 # Check whether --enable-no_deps or --disable-no_deps was given.
3943if test "${enable_no_deps+set}" = set; then
3944 enableval="$enable_no_deps"
3945
3946 if test "$enableval" = yes; then
3947 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3948 else
3949 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3950 fi
3951
3952else
3953
3954 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3962
3963fi;
3964
3965 eval "$ac_cv_use_no_deps"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_NO_DEPS" = yes; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972echo "${ECHO_T}yes" >&6
3973 else
3974 echo "$as_me:$LINENO: result: no" >&5
3975echo "${ECHO_T}no" >&6
3976 fi
3977
3978
3979
3980 enablestring=
3981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3982echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3983 no_cache=0
3984 # Check whether --enable-compat22 or --disable-compat22 was given.
3985if test "${enable_compat22+set}" = set; then
3986 enableval="$enable_compat22"
3987
3988 if test "$enableval" = yes; then
3989 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3990 else
3991 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3992 fi
3993
3994else
3995
3996 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3997 if test "x$LINE" != x ; then
3998 eval "DEFAULT_$LINE"
3999 else
4000 no_cache=1
4001 fi
4002
4003 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4004
4005fi;
4006
4007 eval "$ac_cv_use_compat22"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4013 echo "$as_me:$LINENO: result: yes" >&5
4014echo "${ECHO_T}yes" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017echo "${ECHO_T}no" >&6
4018 fi
4019
4020
4021 enablestring=disable
4022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4023echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4024 no_cache=0
4025 # Check whether --enable-compat24 or --disable-compat24 was given.
4026if test "${enable_compat24+set}" = set; then
4027 enableval="$enable_compat24"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4031 else
4032 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4033 fi
4034
4035else
4036
4037 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4045
4046fi;
4047
4048 eval "$ac_cv_use_compat24"
4049 if test "$no_cache" != 1; then
4050 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4051 fi
4052
4053 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4054 echo "$as_me:$LINENO: result: yes" >&5
4055echo "${ECHO_T}yes" >&6
4056 else
4057 echo "$as_me:$LINENO: result: no" >&5
4058echo "${ECHO_T}no" >&6
4059 fi
4060
4061
4062# Check whether --enable-rpath or --disable-rpath was given.
4063if test "${enable_rpath+set}" = set; then
4064 enableval="$enable_rpath"
4065 wxRPATH_DIR="$enableval"
4066fi;
4067
4068if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4069 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4070fi
4071
4072
4073
4074
4075 enablestring=
4076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4077echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4078 no_cache=0
4079 # Check whether --enable-intl or --disable-intl was given.
4080if test "${enable_intl+set}" = set; then
4081 enableval="$enable_intl"
4082
4083 if test "$enableval" = yes; then
4084 ac_cv_use_intl='wxUSE_INTL=yes'
4085 else
4086 ac_cv_use_intl='wxUSE_INTL=no'
4087 fi
4088
4089else
4090
4091 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4092 if test "x$LINE" != x ; then
4093 eval "DEFAULT_$LINE"
4094 else
4095 no_cache=1
4096 fi
4097
4098 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4099
4100fi;
4101
4102 eval "$ac_cv_use_intl"
4103 if test "$no_cache" != 1; then
4104 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4105 fi
4106
4107 if test "$wxUSE_INTL" = yes; then
4108 echo "$as_me:$LINENO: result: yes" >&5
4109echo "${ECHO_T}yes" >&6
4110 else
4111 echo "$as_me:$LINENO: result: no" >&5
4112echo "${ECHO_T}no" >&6
4113 fi
4114
4115
4116 enablestring=
4117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4118echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4119 no_cache=0
4120 # Check whether --enable-config or --disable-config was given.
4121if test "${enable_config+set}" = set; then
4122 enableval="$enable_config"
4123
4124 if test "$enableval" = yes; then
4125 ac_cv_use_config='wxUSE_CONFIG=yes'
4126 else
4127 ac_cv_use_config='wxUSE_CONFIG=no'
4128 fi
4129
4130else
4131
4132 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4133 if test "x$LINE" != x ; then
4134 eval "DEFAULT_$LINE"
4135 else
4136 no_cache=1
4137 fi
4138
4139 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4140
4141fi;
4142
4143 eval "$ac_cv_use_config"
4144 if test "$no_cache" != 1; then
4145 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4146 fi
4147
4148 if test "$wxUSE_CONFIG" = yes; then
4149 echo "$as_me:$LINENO: result: yes" >&5
4150echo "${ECHO_T}yes" >&6
4151 else
4152 echo "$as_me:$LINENO: result: no" >&5
4153echo "${ECHO_T}no" >&6
4154 fi
4155
4156
4157
4158 enablestring=
4159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4160echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4161 no_cache=0
4162 # Check whether --enable-protocols or --disable-protocols was given.
4163if test "${enable_protocols+set}" = set; then
4164 enableval="$enable_protocols"
4165
4166 if test "$enableval" = yes; then
4167 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4168 else
4169 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4170 fi
4171
4172else
4173
4174 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4175 if test "x$LINE" != x ; then
4176 eval "DEFAULT_$LINE"
4177 else
4178 no_cache=1
4179 fi
4180
4181 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4182
4183fi;
4184
4185 eval "$ac_cv_use_protocols"
4186 if test "$no_cache" != 1; then
4187 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4188 fi
4189
4190 if test "$wxUSE_PROTOCOL" = yes; then
4191 echo "$as_me:$LINENO: result: yes" >&5
4192echo "${ECHO_T}yes" >&6
4193 else
4194 echo "$as_me:$LINENO: result: no" >&5
4195echo "${ECHO_T}no" >&6
4196 fi
4197
4198
4199 enablestring=
4200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4201echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4202 no_cache=0
4203 # Check whether --enable-ftp or --disable-ftp was given.
4204if test "${enable_ftp+set}" = set; then
4205 enableval="$enable_ftp"
4206
4207 if test "$enableval" = yes; then
4208 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4209 else
4210 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4211 fi
4212
4213else
4214
4215 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4216 if test "x$LINE" != x ; then
4217 eval "DEFAULT_$LINE"
4218 else
4219 no_cache=1
4220 fi
4221
4222 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4223
4224fi;
4225
4226 eval "$ac_cv_use_ftp"
4227 if test "$no_cache" != 1; then
4228 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4229 fi
4230
4231 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4232 echo "$as_me:$LINENO: result: yes" >&5
4233echo "${ECHO_T}yes" >&6
4234 else
4235 echo "$as_me:$LINENO: result: no" >&5
4236echo "${ECHO_T}no" >&6
4237 fi
4238
4239
4240 enablestring=
4241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4242echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4243 no_cache=0
4244 # Check whether --enable-http or --disable-http was given.
4245if test "${enable_http+set}" = set; then
4246 enableval="$enable_http"
4247
4248 if test "$enableval" = yes; then
4249 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4250 else
4251 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4252 fi
4253
4254else
4255
4256 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4257 if test "x$LINE" != x ; then
4258 eval "DEFAULT_$LINE"
4259 else
4260 no_cache=1
4261 fi
4262
4263 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4264
4265fi;
4266
4267 eval "$ac_cv_use_http"
4268 if test "$no_cache" != 1; then
4269 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4270 fi
4271
4272 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4273 echo "$as_me:$LINENO: result: yes" >&5
4274echo "${ECHO_T}yes" >&6
4275 else
4276 echo "$as_me:$LINENO: result: no" >&5
4277echo "${ECHO_T}no" >&6
4278 fi
4279
4280
4281 enablestring=
4282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4283echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4284 no_cache=0
4285 # Check whether --enable-fileproto or --disable-fileproto was given.
4286if test "${enable_fileproto+set}" = set; then
4287 enableval="$enable_fileproto"
4288
4289 if test "$enableval" = yes; then
4290 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4291 else
4292 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4293 fi
4294
4295else
4296
4297 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
4304 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4305
4306fi;
4307
4308 eval "$ac_cv_use_fileproto"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4314 echo "$as_me:$LINENO: result: yes" >&5
4315echo "${ECHO_T}yes" >&6
4316 else
4317 echo "$as_me:$LINENO: result: no" >&5
4318echo "${ECHO_T}no" >&6
4319 fi
4320
4321
4322 enablestring=
4323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4324echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4325 no_cache=0
4326 # Check whether --enable-sockets or --disable-sockets was given.
4327if test "${enable_sockets+set}" = set; then
4328 enableval="$enable_sockets"
4329
4330 if test "$enableval" = yes; then
4331 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4332 else
4333 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4334 fi
4335
4336else
4337
4338 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4339 if test "x$LINE" != x ; then
4340 eval "DEFAULT_$LINE"
4341 else
4342 no_cache=1
4343 fi
4344
4345 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4346
4347fi;
4348
4349 eval "$ac_cv_use_sockets"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_SOCKETS" = yes; then
4355 echo "$as_me:$LINENO: result: yes" >&5
4356echo "${ECHO_T}yes" >&6
4357 else
4358 echo "$as_me:$LINENO: result: no" >&5
4359echo "${ECHO_T}no" >&6
4360 fi
4361
4362
4363 enablestring=
4364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4365echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4366 no_cache=0
4367 # Check whether --enable-ole or --disable-ole was given.
4368if test "${enable_ole+set}" = set; then
4369 enableval="$enable_ole"
4370
4371 if test "$enableval" = yes; then
4372 ac_cv_use_ole='wxUSE_OLE=yes'
4373 else
4374 ac_cv_use_ole='wxUSE_OLE=no'
4375 fi
4376
4377else
4378
4379 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4380 if test "x$LINE" != x ; then
4381 eval "DEFAULT_$LINE"
4382 else
4383 no_cache=1
4384 fi
4385
4386 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4387
4388fi;
4389
4390 eval "$ac_cv_use_ole"
4391 if test "$no_cache" != 1; then
4392 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4393 fi
4394
4395 if test "$wxUSE_OLE" = yes; then
4396 echo "$as_me:$LINENO: result: yes" >&5
4397echo "${ECHO_T}yes" >&6
4398 else
4399 echo "$as_me:$LINENO: result: no" >&5
4400echo "${ECHO_T}no" >&6
4401 fi
4402
4403
4404 enablestring=
4405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4406echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4407 no_cache=0
4408 # Check whether --enable-dataobj or --disable-dataobj was given.
4409if test "${enable_dataobj+set}" = set; then
4410 enableval="$enable_dataobj"
4411
4412 if test "$enableval" = yes; then
4413 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4414 else
4415 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4416 fi
4417
4418else
4419
4420 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4421 if test "x$LINE" != x ; then
4422 eval "DEFAULT_$LINE"
4423 else
4424 no_cache=1
4425 fi
4426
4427 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4428
4429fi;
4430
4431 eval "$ac_cv_use_dataobj"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_DATAOBJ" = yes; then
4437 echo "$as_me:$LINENO: result: yes" >&5
4438echo "${ECHO_T}yes" >&6
4439 else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442 fi
4443
4444
4445
4446 enablestring=
4447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4448echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4449 no_cache=0
4450 # Check whether --enable-ipc or --disable-ipc was given.
4451if test "${enable_ipc+set}" = set; then
4452 enableval="$enable_ipc"
4453
4454 if test "$enableval" = yes; then
4455 ac_cv_use_ipc='wxUSE_IPC=yes'
4456 else
4457 ac_cv_use_ipc='wxUSE_IPC=no'
4458 fi
4459
4460else
4461
4462 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4463 if test "x$LINE" != x ; then
4464 eval "DEFAULT_$LINE"
4465 else
4466 no_cache=1
4467 fi
4468
4469 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4470
4471fi;
4472
4473 eval "$ac_cv_use_ipc"
4474 if test "$no_cache" != 1; then
4475 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4476 fi
4477
4478 if test "$wxUSE_IPC" = yes; then
4479 echo "$as_me:$LINENO: result: yes" >&5
4480echo "${ECHO_T}yes" >&6
4481 else
4482 echo "$as_me:$LINENO: result: no" >&5
4483echo "${ECHO_T}no" >&6
4484 fi
4485
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4493if test "${enable_apple_ieee+set}" = set; then
4494 enableval="$enable_apple_ieee"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4498 else
4499 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4512
4513fi;
4514
4515 eval "$ac_cv_use_apple_ieee"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_APPLE_IEEE" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4534if test "${enable_catch_segvs+set}" = set; then
4535 enableval="$enable_catch_segvs"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4539 else
4540 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4553
4554fi;
4555
4556 eval "$ac_cv_use_catch_segvs"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-cmdline or --disable-cmdline was given.
4575if test "${enable_cmdline+set}" = set; then
4576 enableval="$enable_cmdline"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4580 else
4581 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4594
4595fi;
4596
4597 eval "$ac_cv_use_cmdline"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611 enablestring=
4612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4613echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4614 no_cache=0
4615 # Check whether --enable-datetime or --disable-datetime was given.
4616if test "${enable_datetime+set}" = set; then
4617 enableval="$enable_datetime"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4621 else
4622 ac_cv_use_datetime='wxUSE_DATETIME=no'
4623 fi
4624
4625else
4626
4627 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4635
4636fi;
4637
4638 eval "$ac_cv_use_datetime"
4639 if test "$no_cache" != 1; then
4640 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4641 fi
4642
4643 if test "$wxUSE_DATETIME" = yes; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649 fi
4650
4651
4652 enablestring=
4653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4654echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4655 no_cache=0
4656 # Check whether --enable-dialupman or --disable-dialupman was given.
4657if test "${enable_dialupman+set}" = set; then
4658 enableval="$enable_dialupman"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4662 else
4663 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4664 fi
4665
4666else
4667
4668 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4676
4677fi;
4678
4679 eval "$ac_cv_use_dialupman"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686echo "${ECHO_T}yes" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690 fi
4691
4692
4693 enablestring=
4694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4695echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4696 no_cache=0
4697 # Check whether --enable-dynlib or --disable-dynlib was given.
4698if test "${enable_dynlib+set}" = set; then
4699 enableval="$enable_dynlib"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4703 else
4704 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4705 fi
4706
4707else
4708
4709 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4717
4718fi;
4719
4720 eval "$ac_cv_use_dynlib"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4726 echo "$as_me:$LINENO: result: yes" >&5
4727echo "${ECHO_T}yes" >&6
4728 else
4729 echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731 fi
4732
4733
4734 enablestring=
4735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4736echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4737 no_cache=0
4738 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4739if test "${enable_dynamicloader+set}" = set; then
4740 enableval="$enable_dynamicloader"
4741
4742 if test "$enableval" = yes; then
4743 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4744 else
4745 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4746 fi
4747
4748else
4749
4750 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4751 if test "x$LINE" != x ; then
4752 eval "DEFAULT_$LINE"
4753 else
4754 no_cache=1
4755 fi
4756
4757 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4758
4759fi;
4760
4761 eval "$ac_cv_use_dynamicloader"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4767 echo "$as_me:$LINENO: result: yes" >&5
4768echo "${ECHO_T}yes" >&6
4769 else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772 fi
4773
4774
4775 enablestring=
4776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4777echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4778 no_cache=0
4779 # Check whether --enable-exceptions or --disable-exceptions was given.
4780if test "${enable_exceptions+set}" = set; then
4781 enableval="$enable_exceptions"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4785 else
4786 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4787 fi
4788
4789else
4790
4791 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4799
4800fi;
4801
4802 eval "$ac_cv_use_exceptions"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_EXCEPTIONS" = yes; then
4808 echo "$as_me:$LINENO: result: yes" >&5
4809echo "${ECHO_T}yes" >&6
4810 else
4811 echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813 fi
4814
4815
4816 enablestring=
4817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4818echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4819 no_cache=0
4820 # Check whether --enable-ffile or --disable-ffile was given.
4821if test "${enable_ffile+set}" = set; then
4822 enableval="$enable_ffile"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_ffile='wxUSE_FFILE=yes'
4826 else
4827 ac_cv_use_ffile='wxUSE_FFILE=no'
4828 fi
4829
4830else
4831
4832 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4840
4841fi;
4842
4843 eval "$ac_cv_use_ffile"
4844 if test "$no_cache" != 1; then
4845 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4846 fi
4847
4848 if test "$wxUSE_FFILE" = yes; then
4849 echo "$as_me:$LINENO: result: yes" >&5
4850echo "${ECHO_T}yes" >&6
4851 else
4852 echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854 fi
4855
4856
4857 enablestring=
4858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4859echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4860 no_cache=0
4861 # Check whether --enable-file or --disable-file was given.
4862if test "${enable_file+set}" = set; then
4863 enableval="$enable_file"
4864
4865 if test "$enableval" = yes; then
4866 ac_cv_use_file='wxUSE_FILE=yes'
4867 else
4868 ac_cv_use_file='wxUSE_FILE=no'
4869 fi
4870
4871else
4872
4873 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4881
4882fi;
4883
4884 eval "$ac_cv_use_file"
4885 if test "$no_cache" != 1; then
4886 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4887 fi
4888
4889 if test "$wxUSE_FILE" = yes; then
4890 echo "$as_me:$LINENO: result: yes" >&5
4891echo "${ECHO_T}yes" >&6
4892 else
4893 echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6
4895 fi
4896
4897
4898 enablestring=
4899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4900echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4901 no_cache=0
4902 # Check whether --enable-filesystem or --disable-filesystem was given.
4903if test "${enable_filesystem+set}" = set; then
4904 enableval="$enable_filesystem"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4908 else
4909 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4910 fi
4911
4912else
4913
4914 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4922
4923fi;
4924
4925 eval "$ac_cv_use_filesystem"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_FILESYSTEM" = yes; then
4931 echo "$as_me:$LINENO: result: yes" >&5
4932echo "${ECHO_T}yes" >&6
4933 else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936 fi
4937
4938
4939 enablestring=
4940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4941echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4942 no_cache=0
4943 # Check whether --enable-fontmap or --disable-fontmap was given.
4944if test "${enable_fontmap+set}" = set; then
4945 enableval="$enable_fontmap"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4949 else
4950 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4963
4964fi;
4965
4966 eval "$ac_cv_use_fontmap"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_FONTMAP" = yes; then
4972 echo "$as_me:$LINENO: result: yes" >&5
4973echo "${ECHO_T}yes" >&6
4974 else
4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977 fi
4978
4979
4980 enablestring=
4981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4982echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
4983 no_cache=0
4984 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4985if test "${enable_fs_inet+set}" = set; then
4986 enableval="$enable_fs_inet"
4987
4988 if test "$enableval" = yes; then
4989 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4990 else
4991 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4992 fi
4993
4994else
4995
4996 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4997 if test "x$LINE" != x ; then
4998 eval "DEFAULT_$LINE"
4999 else
5000 no_cache=1
5001 fi
5002
5003 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5004
5005fi;
5006
5007 eval "$ac_cv_use_fs_inet"
5008 if test "$no_cache" != 1; then
5009 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5010 fi
5011
5012 if test "$wxUSE_FS_INET" = yes; then
5013 echo "$as_me:$LINENO: result: yes" >&5
5014echo "${ECHO_T}yes" >&6
5015 else
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018 fi
5019
5020
5021 enablestring=
5022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5023echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5024 no_cache=0
5025 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5026if test "${enable_fs_zip+set}" = set; then
5027 enableval="$enable_fs_zip"
5028
5029 if test "$enableval" = yes; then
5030 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5031 else
5032 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5033 fi
5034
5035else
5036
5037 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5038 if test "x$LINE" != x ; then
5039 eval "DEFAULT_$LINE"
5040 else
5041 no_cache=1
5042 fi
5043
5044 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5045
5046fi;
5047
5048 eval "$ac_cv_use_fs_zip"
5049 if test "$no_cache" != 1; then
5050 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5051 fi
5052
5053 if test "$wxUSE_FS_ZIP" = yes; then
5054 echo "$as_me:$LINENO: result: yes" >&5
5055echo "${ECHO_T}yes" >&6
5056 else
5057 echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6
5059 fi
5060
5061
5062 enablestring=
5063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5064echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5065 no_cache=0
5066 # Check whether --enable-geometry or --disable-geometry was given.
5067if test "${enable_geometry+set}" = set; then
5068 enableval="$enable_geometry"
5069
5070 if test "$enableval" = yes; then
5071 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5072 else
5073 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5074 fi
5075
5076else
5077
5078 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5079 if test "x$LINE" != x ; then
5080 eval "DEFAULT_$LINE"
5081 else
5082 no_cache=1
5083 fi
5084
5085 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5086
5087fi;
5088
5089 eval "$ac_cv_use_geometry"
5090 if test "$no_cache" != 1; then
5091 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5092 fi
5093
5094 if test "$wxUSE_GEOMETRY" = yes; then
5095 echo "$as_me:$LINENO: result: yes" >&5
5096echo "${ECHO_T}yes" >&6
5097 else
5098 echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6
5100 fi
5101
5102
5103 enablestring=
5104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5105echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5106 no_cache=0
5107 # Check whether --enable-log or --disable-log was given.
5108if test "${enable_log+set}" = set; then
5109 enableval="$enable_log"
5110
5111 if test "$enableval" = yes; then
5112 ac_cv_use_log='wxUSE_LOG=yes'
5113 else
5114 ac_cv_use_log='wxUSE_LOG=no'
5115 fi
5116
5117else
5118
5119 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5127
5128fi;
5129
5130 eval "$ac_cv_use_log"
5131 if test "$no_cache" != 1; then
5132 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5133 fi
5134
5135 if test "$wxUSE_LOG" = yes; then
5136 echo "$as_me:$LINENO: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
5138 else
5139 echo "$as_me:$LINENO: result: no" >&5
5140echo "${ECHO_T}no" >&6
5141 fi
5142
5143
5144 enablestring=
5145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5146echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5147 no_cache=0
5148 # Check whether --enable-longlong or --disable-longlong was given.
5149if test "${enable_longlong+set}" = set; then
5150 enableval="$enable_longlong"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5154 else
5155 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5156 fi
5157
5158else
5159
5160 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5168
5169fi;
5170
5171 eval "$ac_cv_use_longlong"
5172 if test "$no_cache" != 1; then
5173 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5174 fi
5175
5176 if test "$wxUSE_LONGLONG" = yes; then
5177 echo "$as_me:$LINENO: result: yes" >&5
5178echo "${ECHO_T}yes" >&6
5179 else
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
5182 fi
5183
5184
5185 enablestring=
5186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5187echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5188 no_cache=0
5189 # Check whether --enable-mimetype or --disable-mimetype was given.
5190if test "${enable_mimetype+set}" = set; then
5191 enableval="$enable_mimetype"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5195 else
5196 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5197 fi
5198
5199else
5200
5201 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5209
5210fi;
5211
5212 eval "$ac_cv_use_mimetype"
5213 if test "$no_cache" != 1; then
5214 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5215 fi
5216
5217 if test "$wxUSE_MIMETYPE" = yes; then
5218 echo "$as_me:$LINENO: result: yes" >&5
5219echo "${ECHO_T}yes" >&6
5220 else
5221 echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223 fi
5224
5225
5226 enablestring=
5227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5228echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5229 no_cache=0
5230 # Check whether --enable-mslu or --disable-mslu was given.
5231if test "${enable_mslu+set}" = set; then
5232 enableval="$enable_mslu"
5233
5234 if test "$enableval" = yes; then
5235 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5236 else
5237 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5238 fi
5239
5240else
5241
5242 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5243 if test "x$LINE" != x ; then
5244 eval "DEFAULT_$LINE"
5245 else
5246 no_cache=1
5247 fi
5248
5249 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5250
5251fi;
5252
5253 eval "$ac_cv_use_mslu"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_UNICODE_MSLU" = yes; then
5259 echo "$as_me:$LINENO: result: yes" >&5
5260echo "${ECHO_T}yes" >&6
5261 else
5262 echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264 fi
5265
5266
5267 enablestring=
5268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5269echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5270 no_cache=0
5271 # Check whether --enable-snglinst or --disable-snglinst was given.
5272if test "${enable_snglinst+set}" = set; then
5273 enableval="$enable_snglinst"
5274
5275 if test "$enableval" = yes; then
5276 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5277 else
5278 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5279 fi
5280
5281else
5282
5283 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5284 if test "x$LINE" != x ; then
5285 eval "DEFAULT_$LINE"
5286 else
5287 no_cache=1
5288 fi
5289
5290 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5291
5292fi;
5293
5294 eval "$ac_cv_use_snglinst"
5295 if test "$no_cache" != 1; then
5296 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5297 fi
5298
5299 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5300 echo "$as_me:$LINENO: result: yes" >&5
5301echo "${ECHO_T}yes" >&6
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304echo "${ECHO_T}no" >&6
5305 fi
5306
5307
5308 enablestring=
5309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5310echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5311 no_cache=0
5312 # Check whether --enable-streams or --disable-streams was given.
5313if test "${enable_streams+set}" = set; then
5314 enableval="$enable_streams"
5315
5316 if test "$enableval" = yes; then
5317 ac_cv_use_streams='wxUSE_STREAMS=yes'
5318 else
5319 ac_cv_use_streams='wxUSE_STREAMS=no'
5320 fi
5321
5322else
5323
5324 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5325 if test "x$LINE" != x ; then
5326 eval "DEFAULT_$LINE"
5327 else
5328 no_cache=1
5329 fi
5330
5331 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5332
5333fi;
5334
5335 eval "$ac_cv_use_streams"
5336 if test "$no_cache" != 1; then
5337 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5338 fi
5339
5340 if test "$wxUSE_STREAMS" = yes; then
5341 echo "$as_me:$LINENO: result: yes" >&5
5342echo "${ECHO_T}yes" >&6
5343 else
5344 echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346 fi
5347
5348
5349 enablestring=
5350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5351echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5352 no_cache=0
5353 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5354if test "${enable_std_iostreams+set}" = set; then
5355 enableval="$enable_std_iostreams"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5359 else
5360 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5361 fi
5362
5363else
5364
5365 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5373
5374fi;
5375
5376 eval "$ac_cv_use_std_iostreams"
5377 if test "$no_cache" != 1; then
5378 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5379 fi
5380
5381 if test "$wxUSE_STD_IOSTREAM" = yes; then
5382 echo "$as_me:$LINENO: result: yes" >&5
5383echo "${ECHO_T}yes" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6
5387 fi
5388
5389
5390 enablestring=
5391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5392echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5393 no_cache=0
5394 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5395if test "${enable_stopwatch+set}" = set; then
5396 enableval="$enable_stopwatch"
5397
5398 if test "$enableval" = yes; then
5399 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5400 else
5401 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5402 fi
5403
5404else
5405
5406 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5407 if test "x$LINE" != x ; then
5408 eval "DEFAULT_$LINE"
5409 else
5410 no_cache=1
5411 fi
5412
5413 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5414
5415fi;
5416
5417 eval "$ac_cv_use_stopwatch"
5418 if test "$no_cache" != 1; then
5419 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5420 fi
5421
5422 if test "$wxUSE_STOPWATCH" = yes; then
5423 echo "$as_me:$LINENO: result: yes" >&5
5424echo "${ECHO_T}yes" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
5428 fi
5429
5430
5431 enablestring=
5432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5433echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5434 no_cache=0
5435 # Check whether --enable-system_options or --disable-system_options was given.
5436if test "${enable_system_options+set}" = set; then
5437 enableval="$enable_system_options"
5438
5439 if test "$enableval" = yes; then
5440 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5441 else
5442 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5443 fi
5444
5445else
5446
5447 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5448 if test "x$LINE" != x ; then
5449 eval "DEFAULT_$LINE"
5450 else
5451 no_cache=1
5452 fi
5453
5454 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5455
5456fi;
5457
5458 eval "$ac_cv_use_system_options"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5464 echo "$as_me:$LINENO: result: yes" >&5
5465echo "${ECHO_T}yes" >&6
5466 else
5467 echo "$as_me:$LINENO: result: no" >&5
5468echo "${ECHO_T}no" >&6
5469 fi
5470
5471
5472 enablestring=
5473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5474echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5475 no_cache=0
5476 # Check whether --enable-textbuf or --disable-textbuf was given.
5477if test "${enable_textbuf+set}" = set; then
5478 enableval="$enable_textbuf"
5479
5480 if test "$enableval" = yes; then
5481 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5482 else
5483 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5484 fi
5485
5486else
5487
5488 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5489 if test "x$LINE" != x ; then
5490 eval "DEFAULT_$LINE"
5491 else
5492 no_cache=1
5493 fi
5494
5495 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5496
5497fi;
5498
5499 eval "$ac_cv_use_textbuf"
5500 if test "$no_cache" != 1; then
5501 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5502 fi
5503
5504 if test "$wxUSE_TEXTBUFFER" = yes; then
5505 echo "$as_me:$LINENO: result: yes" >&5
5506echo "${ECHO_T}yes" >&6
5507 else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510 fi
5511
5512
5513 enablestring=
5514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5515echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5516 no_cache=0
5517 # Check whether --enable-textfile or --disable-textfile was given.
5518if test "${enable_textfile+set}" = set; then
5519 enableval="$enable_textfile"
5520
5521 if test "$enableval" = yes; then
5522 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5523 else
5524 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5525 fi
5526
5527else
5528
5529 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
5536 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5537
5538fi;
5539
5540 eval "$ac_cv_use_textfile"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_TEXTFILE" = yes; then
5546 echo "$as_me:$LINENO: result: yes" >&5
5547echo "${ECHO_T}yes" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551 fi
5552
5553
5554 enablestring=
5555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5556echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5557 no_cache=0
5558 # Check whether --enable-timer or --disable-timer was given.
5559if test "${enable_timer+set}" = set; then
5560 enableval="$enable_timer"
5561
5562 if test "$enableval" = yes; then
5563 ac_cv_use_timer='wxUSE_TIMER=yes'
5564 else
5565 ac_cv_use_timer='wxUSE_TIMER=no'
5566 fi
5567
5568else
5569
5570 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5578
5579fi;
5580
5581 eval "$ac_cv_use_timer"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_TIMER" = yes; then
5587 echo "$as_me:$LINENO: result: yes" >&5
5588echo "${ECHO_T}yes" >&6
5589 else
5590 echo "$as_me:$LINENO: result: no" >&5
5591echo "${ECHO_T}no" >&6
5592 fi
5593
5594
5595 enablestring=
5596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5597echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5598 no_cache=0
5599 # Check whether --enable-unicode or --disable-unicode was given.
5600if test "${enable_unicode+set}" = set; then
5601 enableval="$enable_unicode"
5602
5603 if test "$enableval" = yes; then
5604 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5605 else
5606 ac_cv_use_unicode='wxUSE_UNICODE=no'
5607 fi
5608
5609else
5610
5611 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5612 if test "x$LINE" != x ; then
5613 eval "DEFAULT_$LINE"
5614 else
5615 no_cache=1
5616 fi
5617
5618 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5619
5620fi;
5621
5622 eval "$ac_cv_use_unicode"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_UNICODE" = yes; then
5628 echo "$as_me:$LINENO: result: yes" >&5
5629echo "${ECHO_T}yes" >&6
5630 else
5631 echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6
5633 fi
5634
5635
5636 enablestring=
5637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5638echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5639 no_cache=0
5640 # Check whether --enable-sound or --disable-sound was given.
5641if test "${enable_sound+set}" = set; then
5642 enableval="$enable_sound"
5643
5644 if test "$enableval" = yes; then
5645 ac_cv_use_sound='wxUSE_SOUND=yes'
5646 else
5647 ac_cv_use_sound='wxUSE_SOUND=no'
5648 fi
5649
5650else
5651
5652 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5653 if test "x$LINE" != x ; then
5654 eval "DEFAULT_$LINE"
5655 else
5656 no_cache=1
5657 fi
5658
5659 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5660
5661fi;
5662
5663 eval "$ac_cv_use_sound"
5664 if test "$no_cache" != 1; then
5665 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5666 fi
5667
5668 if test "$wxUSE_SOUND" = yes; then
5669 echo "$as_me:$LINENO: result: yes" >&5
5670echo "${ECHO_T}yes" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6
5674 fi
5675
5676
5677 enablestring=
5678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5679echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5680 no_cache=0
5681 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5682if test "${enable_wxprintfv+set}" = set; then
5683 enableval="$enable_wxprintfv"
5684
5685 if test "$enableval" = yes; then
5686 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5687 else
5688 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5689 fi
5690
5691else
5692
5693 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5694 if test "x$LINE" != x ; then
5695 eval "DEFAULT_$LINE"
5696 else
5697 no_cache=1
5698 fi
5699
5700 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5701
5702fi;
5703
5704 eval "$ac_cv_use_wxprintfv"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5710 echo "$as_me:$LINENO: result: yes" >&5
5711echo "${ECHO_T}yes" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715 fi
5716
5717
5718 enablestring=
5719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5720echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5721 no_cache=0
5722 # Check whether --enable-zipstream or --disable-zipstream was given.
5723if test "${enable_zipstream+set}" = set; then
5724 enableval="$enable_zipstream"
5725
5726 if test "$enableval" = yes; then
5727 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5728 else
5729 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5730 fi
5731
5732else
5733
5734 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
5741 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5742
5743fi;
5744
5745 eval "$ac_cv_use_zipstream"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_ZIPSTREAM" = yes; then
5751 echo "$as_me:$LINENO: result: yes" >&5
5752echo "${ECHO_T}yes" >&6
5753 else
5754 echo "$as_me:$LINENO: result: no" >&5
5755echo "${ECHO_T}no" >&6
5756 fi
5757
5758
a848cd7e
SC
5759
5760 enablestring=
5761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5762echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5763 no_cache=0
5764 # Check whether --enable-url or --disable-url was given.
5765if test "${enable_url+set}" = set; then
5766 enableval="$enable_url"
5767
5768 if test "$enableval" = yes; then
5769 ac_cv_use_url='wxUSE_URL=yes'
5770 else
5771 ac_cv_use_url='wxUSE_URL=no'
5772 fi
5773
5774else
5775
5776 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5777 if test "x$LINE" != x ; then
5778 eval "DEFAULT_$LINE"
5779 else
5780 no_cache=1
5781 fi
5782
5783 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5784
5785fi;
5786
5787 eval "$ac_cv_use_url"
5788 if test "$no_cache" != 1; then
5789 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5790 fi
5791
5792 if test "$wxUSE_URL" = yes; then
5793 echo "$as_me:$LINENO: result: yes" >&5
5794echo "${ECHO_T}yes" >&6
5795 else
5796 echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798 fi
5799
5800
5801 enablestring=
5802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5803echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5804 no_cache=0
5805 # Check whether --enable-protocol or --disable-protocol was given.
5806if test "${enable_protocol+set}" = set; then
5807 enableval="$enable_protocol"
5808
5809 if test "$enableval" = yes; then
5810 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5811 else
5812 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5813 fi
5814
5815else
5816
5817 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5818 if test "x$LINE" != x ; then
5819 eval "DEFAULT_$LINE"
5820 else
5821 no_cache=1
5822 fi
5823
5824 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5825
5826fi;
5827
5828 eval "$ac_cv_use_protocol"
5829 if test "$no_cache" != 1; then
5830 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5831 fi
5832
5833 if test "$wxUSE_PROTOCOL" = yes; then
5834 echo "$as_me:$LINENO: result: yes" >&5
5835echo "${ECHO_T}yes" >&6
5836 else
5837 echo "$as_me:$LINENO: result: no" >&5
5838echo "${ECHO_T}no" >&6
5839 fi
5840
5841
5842 enablestring=
5843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5844echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5845 no_cache=0
5846 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5847if test "${enable_protocol_http+set}" = set; then
5848 enableval="$enable_protocol_http"
5849
5850 if test "$enableval" = yes; then
5851 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5852 else
5853 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5854 fi
5855
5856else
5857
5858 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5866
5867fi;
5868
5869 eval "$ac_cv_use_protocol_http"
5870 if test "$no_cache" != 1; then
5871 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5872 fi
5873
5874 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5875 echo "$as_me:$LINENO: result: yes" >&5
5876echo "${ECHO_T}yes" >&6
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880 fi
5881
5882
5883 enablestring=
5884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5885echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5886 no_cache=0
5887 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5888if test "${enable_protocol_ftp+set}" = set; then
5889 enableval="$enable_protocol_ftp"
5890
5891 if test "$enableval" = yes; then
5892 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5893 else
5894 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5895 fi
5896
5897else
5898
5899 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5900 if test "x$LINE" != x ; then
5901 eval "DEFAULT_$LINE"
5902 else
5903 no_cache=1
5904 fi
5905
5906 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5907
5908fi;
5909
5910 eval "$ac_cv_use_protocol_ftp"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5916 echo "$as_me:$LINENO: result: yes" >&5
5917echo "${ECHO_T}yes" >&6
5918 else
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921 fi
5922
5923
5924 enablestring=
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5927 no_cache=0
5928 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5929if test "${enable_protocol_file+set}" = set; then
5930 enableval="$enable_protocol_file"
5931
5932 if test "$enableval" = yes; then
5933 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5934 else
5935 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5936 fi
5937
5938else
5939
5940 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5948
5949fi;
5950
5951 eval "$ac_cv_use_protocol_file"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5957 echo "$as_me:$LINENO: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
5959 else
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
5962 fi
5963
5964
5965
5966
5967
5968 enablestring=
5969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5970echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5971 no_cache=0
5972 # Check whether --enable-threads or --disable-threads was given.
5973if test "${enable_threads+set}" = set; then
5974 enableval="$enable_threads"
5975
5976 if test "$enableval" = yes; then
5977 ac_cv_use_threads='wxUSE_THREADS=yes'
5978 else
5979 ac_cv_use_threads='wxUSE_THREADS=no'
5980 fi
5981
5982else
5983
5984 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5992
5993fi;
5994
5995 eval "$ac_cv_use_threads"
5996 if test "$no_cache" != 1; then
5997 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5998 fi
5999
6000 if test "$wxUSE_THREADS" = yes; then
6001 echo "$as_me:$LINENO: result: yes" >&5
6002echo "${ECHO_T}yes" >&6
6003 else
6004 echo "$as_me:$LINENO: result: no" >&5
6005echo "${ECHO_T}no" >&6
6006 fi
6007
6008
6009if test "$wxUSE_GUI" = "yes"; then
6010
6011
6012
6013 enablestring=
6014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6015echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6016 no_cache=0
6017 # Check whether --enable-docview or --disable-docview was given.
6018if test "${enable_docview+set}" = set; then
6019 enableval="$enable_docview"
6020
6021 if test "$enableval" = yes; then
6022 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6023 else
6024 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6025 fi
6026
6027else
6028
6029 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6030 if test "x$LINE" != x ; then
6031 eval "DEFAULT_$LINE"
6032 else
6033 no_cache=1
6034 fi
6035
6036 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6037
6038fi;
6039
6040 eval "$ac_cv_use_docview"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6046 echo "$as_me:$LINENO: result: yes" >&5
6047echo "${ECHO_T}yes" >&6
6048 else
6049 echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
6051 fi
6052
6053
6054 enablestring=
6055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6056echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6057 no_cache=0
6058 # Check whether --enable-help or --disable-help was given.
6059if test "${enable_help+set}" = set; then
6060 enableval="$enable_help"
6061
6062 if test "$enableval" = yes; then
6063 ac_cv_use_help='wxUSE_HELP=yes'
6064 else
6065 ac_cv_use_help='wxUSE_HELP=no'
6066 fi
6067
6068else
6069
6070 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6071 if test "x$LINE" != x ; then
6072 eval "DEFAULT_$LINE"
6073 else
6074 no_cache=1
6075 fi
6076
6077 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6078
6079fi;
6080
6081 eval "$ac_cv_use_help"
6082 if test "$no_cache" != 1; then
6083 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6084 fi
6085
6086 if test "$wxUSE_HELP" = yes; then
6087 echo "$as_me:$LINENO: result: yes" >&5
6088echo "${ECHO_T}yes" >&6
6089 else
6090 echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6
6092 fi
6093
6094
6095 enablestring=
6096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6097echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6098 no_cache=0
6099 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6100if test "${enable_mshtmlhelp+set}" = set; then
6101 enableval="$enable_mshtmlhelp"
6102
6103 if test "$enableval" = yes; then
6104 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6105 else
6106 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6107 fi
6108
6109else
6110
6111 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 else
6115 no_cache=1
6116 fi
6117
6118 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6119
6120fi;
6121
6122 eval "$ac_cv_use_mshtmlhelp"
6123 if test "$no_cache" != 1; then
6124 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6125 fi
6126
6127 if test "$wxUSE_MS_HTML_HELP" = yes; then
6128 echo "$as_me:$LINENO: result: yes" >&5
6129echo "${ECHO_T}yes" >&6
6130 else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133 fi
6134
6135
6136 enablestring=
6137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6138echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6139 no_cache=0
6140 # Check whether --enable-html or --disable-html was given.
6141if test "${enable_html+set}" = set; then
6142 enableval="$enable_html"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_html='wxUSE_HTML=yes'
6146 else
6147 ac_cv_use_html='wxUSE_HTML=no'
6148 fi
6149
6150else
6151
6152 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6160
6161fi;
6162
6163 eval "$ac_cv_use_html"
6164 if test "$no_cache" != 1; then
6165 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6166 fi
6167
6168 if test "$wxUSE_HTML" = yes; then
6169 echo "$as_me:$LINENO: result: yes" >&5
6170echo "${ECHO_T}yes" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174 fi
6175
6176
6177 enablestring=
6178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6179echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6180 no_cache=0
6181 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6182if test "${enable_htmlhelp+set}" = set; then
6183 enableval="$enable_htmlhelp"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6187 else
6188 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6201
6202fi;
6203
6204 eval "$ac_cv_use_htmlhelp"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_WXHTML_HELP" = yes; then
6210 echo "$as_me:$LINENO: result: yes" >&5
6211echo "${ECHO_T}yes" >&6
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6
6215 fi
6216
6217
6218 enablestring=
6219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6220echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6221 no_cache=0
6222 # Check whether --enable-constraints or --disable-constraints was given.
6223if test "${enable_constraints+set}" = set; then
6224 enableval="$enable_constraints"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6228 else
6229 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6242
6243fi;
6244
6245 eval "$ac_cv_use_constraints"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_CONSTRAINTS" = yes; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
6253 else
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256 fi
6257
6258
6259 enablestring=
6260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6261echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6262 no_cache=0
6263 # Check whether --enable-printarch or --disable-printarch was given.
6264if test "${enable_printarch+set}" = set; then
6265 enableval="$enable_printarch"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6269 else
6270 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6271 fi
6272
6273else
6274
6275 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6283
6284fi;
6285
6286 eval "$ac_cv_use_printarch"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6292 echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297 fi
6298
6299
6300 enablestring=
6301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6302echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6303 no_cache=0
6304 # Check whether --enable-mdi or --disable-mdi was given.
6305if test "${enable_mdi+set}" = set; then
6306 enableval="$enable_mdi"
6307
6308 if test "$enableval" = yes; then
8a7b1113 6309 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6310 else
8a7b1113 6311 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6312 fi
6313
6314else
6315
8a7b1113 6316 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
8a7b1113 6323 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6324
6325fi;
6326
6327 eval "$ac_cv_use_mdi"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6330 fi
6331
8a7b1113
VZ
6332 if test "$wxUSE_MDI" = yes; then
6333 echo "$as_me:$LINENO: result: yes" >&5
6334echo "${ECHO_T}yes" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338 fi
6339
6340
6341 enablestring=
6342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6343echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6344 no_cache=0
6345 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6346if test "${enable_mdidoc+set}" = set; then
6347 enableval="$enable_mdidoc"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6351 else
6352 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6353 fi
6354
6355else
6356
6357 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6365
6366fi;
6367
6368 eval "$ac_cv_use_mdidoc"
6369 if test "$no_cache" != 1; then
6370 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6371 fi
6372
a848cd7e
SC
6373 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6374 echo "$as_me:$LINENO: result: yes" >&5
6375echo "${ECHO_T}yes" >&6
6376 else
6377 echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6
6379 fi
6380
6381
6382 enablestring=
6383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6384echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6385 no_cache=0
6386 # Check whether --enable-loggui or --disable-loggui was given.
6387if test "${enable_loggui+set}" = set; then
6388 enableval="$enable_loggui"
6389
6390 if test "$enableval" = yes; then
6391 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6392 else
6393 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6394 fi
6395
6396else
6397
6398 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6399 if test "x$LINE" != x ; then
6400 eval "DEFAULT_$LINE"
6401 else
6402 no_cache=1
6403 fi
6404
6405 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6406
6407fi;
6408
6409 eval "$ac_cv_use_loggui"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_LOGGUI" = yes; then
6415 echo "$as_me:$LINENO: result: yes" >&5
6416echo "${ECHO_T}yes" >&6
6417 else
6418 echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6
6420 fi
6421
6422
6423 enablestring=
6424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6425echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6426 no_cache=0
6427 # Check whether --enable-logwin or --disable-logwin was given.
6428if test "${enable_logwin+set}" = set; then
6429 enableval="$enable_logwin"
6430
6431 if test "$enableval" = yes; then
6432 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6433 else
6434 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6435 fi
6436
6437else
6438
6439 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
6446 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6447
6448fi;
6449
6450 eval "$ac_cv_use_logwin"
6451 if test "$no_cache" != 1; then
6452 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6453 fi
6454
6455 if test "$wxUSE_LOGWINDOW" = yes; then
6456 echo "$as_me:$LINENO: result: yes" >&5
6457echo "${ECHO_T}yes" >&6
6458 else
6459 echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
6461 fi
6462
6463
6464 enablestring=
6465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6466echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6467 no_cache=0
6468 # Check whether --enable-logdialog or --disable-logdialog was given.
6469if test "${enable_logdialog+set}" = set; then
6470 enableval="$enable_logdialog"
6471
6472 if test "$enableval" = yes; then
6473 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6474 else
6475 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6476 fi
6477
6478else
6479
6480 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6488
6489fi;
6490
6491 eval "$ac_cv_use_logdialog"
6492 if test "$no_cache" != 1; then
6493 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6494 fi
6495
6496 if test "$wxUSE_LOGDIALOG" = yes; then
6497 echo "$as_me:$LINENO: result: yes" >&5
6498echo "${ECHO_T}yes" >&6
6499 else
6500 echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6
6502 fi
6503
6504
6505
6506 enablestring=
6507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6508echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6509 no_cache=0
6510 # Check whether --enable-postscript or --disable-postscript was given.
6511if test "${enable_postscript+set}" = set; then
6512 enableval="$enable_postscript"
6513
6514 if test "$enableval" = yes; then
6515 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6516 else
6517 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6518 fi
6519
6520else
6521
6522 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6530
6531fi;
6532
6533 eval "$ac_cv_use_postscript"
6534 if test "$no_cache" != 1; then
6535 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6536 fi
6537
6538 if test "$wxUSE_POSTSCRIPT" = yes; then
6539 echo "$as_me:$LINENO: result: yes" >&5
6540echo "${ECHO_T}yes" >&6
6541 else
6542 echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6
6544 fi
6545
6546
6547
6548
6549
6550 enablestring=
6551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6552echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6553 no_cache=0
6554 # Check whether --enable-prologio or --disable-prologio was given.
6555if test "${enable_prologio+set}" = set; then
6556 enableval="$enable_prologio"
6557
6558 if test "$enableval" = yes; then
6559 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6560 else
6561 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6562 fi
6563
6564else
6565
6566 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6567 if test "x$LINE" != x ; then
6568 eval "DEFAULT_$LINE"
6569 else
6570 no_cache=1
6571 fi
6572
6573 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6574
6575fi;
6576
6577 eval "$ac_cv_use_prologio"
6578 if test "$no_cache" != 1; then
6579 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6580 fi
6581
6582 if test "$wxUSE_PROLOGIO" = yes; then
6583 echo "$as_me:$LINENO: result: yes" >&5
6584echo "${ECHO_T}yes" >&6
6585 else
6586 echo "$as_me:$LINENO: result: no" >&5
6587echo "${ECHO_T}no" >&6
6588 fi
6589
6590
6591 enablestring=
6592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6593echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6594 no_cache=0
6595 # Check whether --enable-resources or --disable-resources was given.
6596if test "${enable_resources+set}" = set; then
6597 enableval="$enable_resources"
6598
6599 if test "$enableval" = yes; then
6600 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6601 else
6602 ac_cv_use_resources='wxUSE_RESOURCES=no'
6603 fi
6604
6605else
6606
6607 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6608 if test "x$LINE" != x ; then
6609 eval "DEFAULT_$LINE"
6610 else
6611 no_cache=1
6612 fi
6613
6614 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6615
6616fi;
6617
6618 eval "$ac_cv_use_resources"
6619 if test "$no_cache" != 1; then
6620 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6621 fi
6622
6623 if test "$wxUSE_RESOURCES" = yes; then
6624 echo "$as_me:$LINENO: result: yes" >&5
6625echo "${ECHO_T}yes" >&6
6626 else
6627 echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6
6629 fi
6630
6631
6632
6633
6634 enablestring=
6635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6636echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6637 no_cache=0
6638 # Check whether --enable-clipboard or --disable-clipboard was given.
6639if test "${enable_clipboard+set}" = set; then
6640 enableval="$enable_clipboard"
6641
6642 if test "$enableval" = yes; then
6643 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6644 else
6645 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6646 fi
6647
6648else
6649
6650 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6651 if test "x$LINE" != x ; then
6652 eval "DEFAULT_$LINE"
6653 else
6654 no_cache=1
6655 fi
6656
6657 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6658
6659fi;
6660
6661 eval "$ac_cv_use_clipboard"
6662 if test "$no_cache" != 1; then
6663 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6664 fi
6665
6666 if test "$wxUSE_CLIPBOARD" = yes; then
6667 echo "$as_me:$LINENO: result: yes" >&5
6668echo "${ECHO_T}yes" >&6
6669 else
6670 echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6
6672 fi
6673
6674
6675 enablestring=
6676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6677echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6678 no_cache=0
6679 # Check whether --enable-dnd or --disable-dnd was given.
6680if test "${enable_dnd+set}" = set; then
6681 enableval="$enable_dnd"
6682
6683 if test "$enableval" = yes; then
6684 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6685 else
6686 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6687 fi
6688
6689else
6690
6691 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6692 if test "x$LINE" != x ; then
6693 eval "DEFAULT_$LINE"
6694 else
6695 no_cache=1
6696 fi
6697
6698 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6699
6700fi;
6701
6702 eval "$ac_cv_use_dnd"
6703 if test "$no_cache" != 1; then
6704 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6705 fi
6706
6707 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6708 echo "$as_me:$LINENO: result: yes" >&5
6709echo "${ECHO_T}yes" >&6
6710 else
6711 echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6
6713 fi
6714
6715
6716 enablestring=
6717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6718echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6719 no_cache=0
6720 # Check whether --enable-metafile or --disable-metafile was given.
6721if test "${enable_metafile+set}" = set; then
6722 enableval="$enable_metafile"
6723
6724 if test "$enableval" = yes; then
6725 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6726 else
6727 ac_cv_use_metafile='wxUSE_METAFILE=no'
6728 fi
6729
6730else
6731
6732 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6733 if test "x$LINE" != x ; then
6734 eval "DEFAULT_$LINE"
6735 else
6736 no_cache=1
6737 fi
6738
6739 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6740
6741fi;
6742
6743 eval "$ac_cv_use_metafile"
6744 if test "$no_cache" != 1; then
6745 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6746 fi
6747
6748 if test "$wxUSE_METAFILE" = yes; then
6749 echo "$as_me:$LINENO: result: yes" >&5
6750echo "${ECHO_T}yes" >&6
6751 else
6752 echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6
6754 fi
6755
6756
6757
6758
6759
6760 enablestring=
6761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6762echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6763 no_cache=0
6764 # Check whether --enable-controls or --disable-controls was given.
6765if test "${enable_controls+set}" = set; then
6766 enableval="$enable_controls"
6767
6768 if test "$enableval" = yes; then
6769 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6770 else
6771 ac_cv_use_controls='wxUSE_CONTROLS=no'
6772 fi
6773
6774else
6775
6776 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
6783 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6784
6785fi;
6786
6787 eval "$ac_cv_use_controls"
6788 if test "$no_cache" != 1; then
6789 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6790 fi
6791
6792 if test "$wxUSE_CONTROLS" = yes; then
6793 echo "$as_me:$LINENO: result: yes" >&5
6794echo "${ECHO_T}yes" >&6
6795 else
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
6798 fi
6799
6800
6801if test "$wxUSE_CONTROLS" = "yes"; then
6802 DEFAULT_wxUSE_ACCEL=yes
6803 DEFAULT_wxUSE_BMPBUTTON=yes
6804 DEFAULT_wxUSE_BUTTON=yes
6805 DEFAULT_wxUSE_CALCTRL=no
6806 DEFAULT_wxUSE_CARET=yes
6807 DEFAULT_wxUSE_COMBOBOX=yes
6808 DEFAULT_wxUSE_CHECKBOX=yes
6809 DEFAULT_wxUSE_CHECKLISTBOX=yes
6810 DEFAULT_wxUSE_CHOICE=yes
6811 DEFAULT_wxUSE_GAUGE=yes
6812 DEFAULT_wxUSE_GRID=yes
6813 DEFAULT_wxUSE_IMAGLIST=yes
6814 DEFAULT_wxUSE_LISTBOOK=yes
6815 DEFAULT_wxUSE_LISTBOX=yes
6816 DEFAULT_wxUSE_LISTCTRL=yes
6817 DEFAULT_wxUSE_NOTEBOOK=yes
6818 DEFAULT_wxUSE_RADIOBOX=yes
6819 DEFAULT_wxUSE_RADIOBTN=yes
6820 DEFAULT_wxUSE_SASH=yes
6821 DEFAULT_wxUSE_SCROLLBAR=yes
6822 DEFAULT_wxUSE_SLIDER=yes
6823 DEFAULT_wxUSE_SPINBTN=yes
6824 DEFAULT_wxUSE_SPINCTRL=yes
6825 DEFAULT_wxUSE_SPLITTER=yes
6826 DEFAULT_wxUSE_STATBMP=yes
6827 DEFAULT_wxUSE_STATBOX=yes
6828 DEFAULT_wxUSE_STATLINE=yes
6829 DEFAULT_wxUSE_STATUSBAR=yes
6830 DEFAULT_wxUSE_TAB_DIALOG=yes
6831 DEFAULT_wxUSE_TOGGLEBTN=yes
6832 DEFAULT_wxUSE_TOOLBAR=yes
6833 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6834 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6835 DEFAULT_wxUSE_TOOLTIPS=yes
6836 DEFAULT_wxUSE_TREECTRL=yes
6837 DEFAULT_wxUSE_POPUPWIN=yes
6838 DEFAULT_wxUSE_TIPWINDOW=yes
6839elif test "$wxUSE_CONTROLS" = "no"; then
6840 DEFAULT_wxUSE_ACCEL=no
6841 DEFAULT_wxUSE_BMPBUTTON=no
6842 DEFAULT_wxUSE_BUTTON=no
6843 DEFAULT_wxUSE_CALCTRL=no
6844 DEFAULT_wxUSE_CARET=no
6845 DEFAULT_wxUSE_COMBOBOX=no
6846 DEFAULT_wxUSE_CHECKBOX=no
6847 DEFAULT_wxUSE_CHECKLISTBOX=no
6848 DEFAULT_wxUSE_CHOICE=no
6849 DEFAULT_wxUSE_GAUGE=no
6850 DEFAULT_wxUSE_GRID=no
6851 DEFAULT_wxUSE_IMAGLIST=no
6852 DEFAULT_wxUSE_LISTBOOK=no
6853 DEFAULT_wxUSE_LISTBOX=no
6854 DEFAULT_wxUSE_LISTCTRL=no
6855 DEFAULT_wxUSE_NOTEBOOK=no
6856 DEFAULT_wxUSE_RADIOBOX=no
6857 DEFAULT_wxUSE_RADIOBTN=no
6858 DEFAULT_wxUSE_SASH=no
6859 DEFAULT_wxUSE_SCROLLBAR=no
6860 DEFAULT_wxUSE_SLIDER=no
6861 DEFAULT_wxUSE_SPINBTN=no
6862 DEFAULT_wxUSE_SPINCTRL=no
6863 DEFAULT_wxUSE_SPLITTER=no
6864 DEFAULT_wxUSE_STATBMP=no
6865 DEFAULT_wxUSE_STATBOX=no
6866 DEFAULT_wxUSE_STATLINE=no
6867 DEFAULT_wxUSE_STATUSBAR=no
6868 DEFAULT_wxUSE_TAB_DIALOG=no
6869 DEFAULT_wxUSE_TOGGLEBTN=no
6870 DEFAULT_wxUSE_TOOLBAR=no
6871 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6872 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6873 DEFAULT_wxUSE_TOOLTIPS=no
6874 DEFAULT_wxUSE_TREECTRL=no
6875 DEFAULT_wxUSE_POPUPWIN=no
6876 DEFAULT_wxUSE_TIPWINDOW=no
6877fi
6878
6879## FIXME: This is a blatant hack
6880if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6881 wxUSE_PRINTING_ARCHITECTURE=no
6882 wxUSE_DRAG_AND_DROP=no
6883 # Generic notebook requires tab dialog
6884 DEFAULT_wxUSE_TABDIALOG=yes
6885 DEFAULT_wxUSE_SCROLLBAR=no
6886 DEFAULT_wxUSE_TOOLTIPS=no
6887 DEFAULT_wxUSE_DRAGIMAGE=no
6888fi
6889
6890
6891 enablestring=
6892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6893echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6894 no_cache=0
6895 # Check whether --enable-accel or --disable-accel was given.
6896if test "${enable_accel+set}" = set; then
6897 enableval="$enable_accel"
6898
6899 if test "$enableval" = yes; then
6900 ac_cv_use_accel='wxUSE_ACCEL=yes'
6901 else
6902 ac_cv_use_accel='wxUSE_ACCEL=no'
6903 fi
6904
6905else
6906
6907 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6908 if test "x$LINE" != x ; then
6909 eval "DEFAULT_$LINE"
6910 else
6911 no_cache=1
6912 fi
6913
6914 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6915
6916fi;
6917
6918 eval "$ac_cv_use_accel"
6919 if test "$no_cache" != 1; then
6920 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6921 fi
6922
6923 if test "$wxUSE_ACCEL" = yes; then
6924 echo "$as_me:$LINENO: result: yes" >&5
6925echo "${ECHO_T}yes" >&6
6926 else
6927 echo "$as_me:$LINENO: result: no" >&5
6928echo "${ECHO_T}no" >&6
6929 fi
6930
6931
6932 enablestring=
6933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6934echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6935 no_cache=0
6936 # Check whether --enable-button or --disable-button was given.
6937if test "${enable_button+set}" = set; then
6938 enableval="$enable_button"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_button='wxUSE_BUTTON=yes'
6942 else
6943 ac_cv_use_button='wxUSE_BUTTON=no'
6944 fi
6945
6946else
6947
6948 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6956
6957fi;
6958
6959 eval "$ac_cv_use_button"
6960 if test "$no_cache" != 1; then
6961 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6962 fi
6963
6964 if test "$wxUSE_BUTTON" = yes; then
6965 echo "$as_me:$LINENO: result: yes" >&5
6966echo "${ECHO_T}yes" >&6
6967 else
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
6970 fi
6971
6972
6973 enablestring=
6974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6975echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6976 no_cache=0
6977 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6978if test "${enable_bmpbutton+set}" = set; then
6979 enableval="$enable_bmpbutton"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6983 else
6984 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6985 fi
6986
6987else
6988
6989 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6997
6998fi;
6999
7000 eval "$ac_cv_use_bmpbutton"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_BMPBUTTON" = yes; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
7011 fi
7012
7013
7014 enablestring=
7015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7016echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7017 no_cache=0
7018 # Check whether --enable-calendar or --disable-calendar was given.
7019if test "${enable_calendar+set}" = set; then
7020 enableval="$enable_calendar"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7024 else
7025 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7026 fi
7027
7028else
7029
7030 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7038
7039fi;
7040
7041 eval "$ac_cv_use_calendar"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_CALCTRL" = yes; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052 fi
7053
7054
7055 enablestring=
7056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7057echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7058 no_cache=0
7059 # Check whether --enable-caret or --disable-caret was given.
7060if test "${enable_caret+set}" = set; then
7061 enableval="$enable_caret"
7062
7063 if test "$enableval" = yes; then
7064 ac_cv_use_caret='wxUSE_CARET=yes'
7065 else
7066 ac_cv_use_caret='wxUSE_CARET=no'
7067 fi
7068
7069else
7070
7071 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7072 if test "x$LINE" != x ; then
7073 eval "DEFAULT_$LINE"
7074 else
7075 no_cache=1
7076 fi
7077
7078 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7079
7080fi;
7081
7082 eval "$ac_cv_use_caret"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_CARET" = yes; then
7088 echo "$as_me:$LINENO: result: yes" >&5
7089echo "${ECHO_T}yes" >&6
7090 else
7091 echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
7093 fi
7094
7095
7096 enablestring=
7097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7098echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7099 no_cache=0
7100 # Check whether --enable-checkbox or --disable-checkbox was given.
7101if test "${enable_checkbox+set}" = set; then
7102 enableval="$enable_checkbox"
7103
7104 if test "$enableval" = yes; then
7105 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7106 else
7107 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7108 fi
7109
7110else
7111
7112 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7113 if test "x$LINE" != x ; then
7114 eval "DEFAULT_$LINE"
7115 else
7116 no_cache=1
7117 fi
7118
7119 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7120
7121fi;
7122
7123 eval "$ac_cv_use_checkbox"
7124 if test "$no_cache" != 1; then
7125 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7126 fi
7127
7128 if test "$wxUSE_CHECKBOX" = yes; then
7129 echo "$as_me:$LINENO: result: yes" >&5
7130echo "${ECHO_T}yes" >&6
7131 else
7132 echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6
7134 fi
7135
7136
7137 enablestring=
7138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7139echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7140 no_cache=0
7141 # Check whether --enable-checklst or --disable-checklst was given.
7142if test "${enable_checklst+set}" = set; then
7143 enableval="$enable_checklst"
7144
7145 if test "$enableval" = yes; then
7146 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7147 else
7148 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7149 fi
7150
7151else
7152
7153 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7154 if test "x$LINE" != x ; then
7155 eval "DEFAULT_$LINE"
7156 else
7157 no_cache=1
7158 fi
7159
7160 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7161
7162fi;
7163
7164 eval "$ac_cv_use_checklst"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_CHECKLST" = yes; then
7170 echo "$as_me:$LINENO: result: yes" >&5
7171echo "${ECHO_T}yes" >&6
7172 else
7173 echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
7175 fi
7176
7177
7178 enablestring=
7179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7180echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7181 no_cache=0
7182 # Check whether --enable-choice or --disable-choice was given.
7183if test "${enable_choice+set}" = set; then
7184 enableval="$enable_choice"
7185
7186 if test "$enableval" = yes; then
7187 ac_cv_use_choice='wxUSE_CHOICE=yes'
7188 else
7189 ac_cv_use_choice='wxUSE_CHOICE=no'
7190 fi
7191
7192else
7193
7194 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7195 if test "x$LINE" != x ; then
7196 eval "DEFAULT_$LINE"
7197 else
7198 no_cache=1
7199 fi
7200
7201 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7202
7203fi;
7204
7205 eval "$ac_cv_use_choice"
7206 if test "$no_cache" != 1; then
7207 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7208 fi
7209
7210 if test "$wxUSE_CHOICE" = yes; then
7211 echo "$as_me:$LINENO: result: yes" >&5
7212echo "${ECHO_T}yes" >&6
7213 else
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216 fi
7217
7218
7219 enablestring=
7220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7221echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7222 no_cache=0
7223 # Check whether --enable-combobox or --disable-combobox was given.
7224if test "${enable_combobox+set}" = set; then
7225 enableval="$enable_combobox"
7226
7227 if test "$enableval" = yes; then
7228 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7229 else
7230 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7231 fi
7232
7233else
7234
7235 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7243
7244fi;
7245
7246 eval "$ac_cv_use_combobox"
7247 if test "$no_cache" != 1; then
7248 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7249 fi
7250
7251 if test "$wxUSE_COMBOBOX" = yes; then
7252 echo "$as_me:$LINENO: result: yes" >&5
7253echo "${ECHO_T}yes" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257 fi
7258
7259
7260 enablestring=
7261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7262echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7263 no_cache=0
7264 # Check whether --enable-display or --disable-display was given.
7265if test "${enable_display+set}" = set; then
7266 enableval="$enable_display"
7267
7268 if test "$enableval" = yes; then
7269 ac_cv_use_display='wxUSE_DISPLAY=yes'
7270 else
7271 ac_cv_use_display='wxUSE_DISPLAY=no'
7272 fi
7273
7274else
7275
7276 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7277 if test "x$LINE" != x ; then
7278 eval "DEFAULT_$LINE"
7279 else
7280 no_cache=1
7281 fi
7282
7283 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7284
7285fi;
7286
7287 eval "$ac_cv_use_display"
7288 if test "$no_cache" != 1; then
7289 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7290 fi
7291
7292 if test "$wxUSE_DISPLAY" = yes; then
7293 echo "$as_me:$LINENO: result: yes" >&5
7294echo "${ECHO_T}yes" >&6
7295 else
7296 echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6
7298 fi
7299
7300
7301 enablestring=
7302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7303echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7304 no_cache=0
7305 # Check whether --enable-gauge or --disable-gauge was given.
7306if test "${enable_gauge+set}" = set; then
7307 enableval="$enable_gauge"
7308
7309 if test "$enableval" = yes; then
7310 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7311 else
7312 ac_cv_use_gauge='wxUSE_GAUGE=no'
7313 fi
7314
7315else
7316
7317 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7318 if test "x$LINE" != x ; then
7319 eval "DEFAULT_$LINE"
7320 else
7321 no_cache=1
7322 fi
7323
7324 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7325
7326fi;
7327
7328 eval "$ac_cv_use_gauge"
7329 if test "$no_cache" != 1; then
7330 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7331 fi
7332
7333 if test "$wxUSE_GAUGE" = yes; then
7334 echo "$as_me:$LINENO: result: yes" >&5
7335echo "${ECHO_T}yes" >&6
7336 else
7337 echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6
7339 fi
7340
7341
7342 enablestring=
7343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7344echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7345 no_cache=0
7346 # Check whether --enable-grid or --disable-grid was given.
7347if test "${enable_grid+set}" = set; then
7348 enableval="$enable_grid"
7349
7350 if test "$enableval" = yes; then
7351 ac_cv_use_grid='wxUSE_GRID=yes'
7352 else
7353 ac_cv_use_grid='wxUSE_GRID=no'
7354 fi
7355
7356else
7357
7358 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7359 if test "x$LINE" != x ; then
7360 eval "DEFAULT_$LINE"
7361 else
7362 no_cache=1
7363 fi
7364
7365 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7366
7367fi;
7368
7369 eval "$ac_cv_use_grid"
7370 if test "$no_cache" != 1; then
7371 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7372 fi
7373
7374 if test "$wxUSE_GRID" = yes; then
7375 echo "$as_me:$LINENO: result: yes" >&5
7376echo "${ECHO_T}yes" >&6
7377 else
7378 echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6
7380 fi
7381
7382
7383 enablestring=
7384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7385echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7386 no_cache=0
7387 # Check whether --enable-imaglist or --disable-imaglist was given.
7388if test "${enable_imaglist+set}" = set; then
7389 enableval="$enable_imaglist"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7393 else
7394 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7395 fi
7396
7397else
7398
7399 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7400 if test "x$LINE" != x ; then
7401 eval "DEFAULT_$LINE"
7402 else
7403 no_cache=1
7404 fi
7405
7406 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7407
7408fi;
7409
7410 eval "$ac_cv_use_imaglist"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7413 fi
7414
7415 if test "$wxUSE_IMAGLIST" = yes; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417echo "${ECHO_T}yes" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421 fi
7422
7423
7424 enablestring=
7425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7426echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7427 no_cache=0
7428 # Check whether --enable-listbook or --disable-listbook was given.
7429if test "${enable_listbook+set}" = set; then
7430 enableval="$enable_listbook"
7431
7432 if test "$enableval" = yes; then
7433 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7434 else
7435 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7436 fi
7437
7438else
7439
7440 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7441 if test "x$LINE" != x ; then
7442 eval "DEFAULT_$LINE"
7443 else
7444 no_cache=1
7445 fi
7446
7447 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7448
7449fi;
7450
7451 eval "$ac_cv_use_listbook"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_LISTBOOK" = yes; then
7457 echo "$as_me:$LINENO: result: yes" >&5
7458echo "${ECHO_T}yes" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462 fi
7463
7464
7465 enablestring=
7466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7467echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7468 no_cache=0
7469 # Check whether --enable-listbox or --disable-listbox was given.
7470if test "${enable_listbox+set}" = set; then
7471 enableval="$enable_listbox"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7475 else
7476 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7477 fi
7478
7479else
7480
7481 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7489
7490fi;
7491
7492 eval "$ac_cv_use_listbox"
7493 if test "$no_cache" != 1; then
7494 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7495 fi
7496
7497 if test "$wxUSE_LISTBOX" = yes; then
7498 echo "$as_me:$LINENO: result: yes" >&5
7499echo "${ECHO_T}yes" >&6
7500 else
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
7503 fi
7504
7505
7506 enablestring=
7507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7508echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7509 no_cache=0
7510 # Check whether --enable-listctrl or --disable-listctrl was given.
7511if test "${enable_listctrl+set}" = set; then
7512 enableval="$enable_listctrl"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7516 else
7517 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7518 fi
7519
7520else
7521
7522 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7530
7531fi;
7532
7533 eval "$ac_cv_use_listctrl"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_LISTCTRL" = yes; then
7539 echo "$as_me:$LINENO: result: yes" >&5
7540echo "${ECHO_T}yes" >&6
7541 else
7542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544 fi
7545
7546
7547 enablestring=
7548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7549echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7550 no_cache=0
7551 # Check whether --enable-notebook or --disable-notebook was given.
7552if test "${enable_notebook+set}" = set; then
7553 enableval="$enable_notebook"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7557 else
7558 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7559 fi
7560
7561else
7562
7563 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7571
7572fi;
7573
7574 eval "$ac_cv_use_notebook"
7575 if test "$no_cache" != 1; then
7576 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7577 fi
7578
7579 if test "$wxUSE_NOTEBOOK" = yes; then
7580 echo "$as_me:$LINENO: result: yes" >&5
7581echo "${ECHO_T}yes" >&6
7582 else
7583 echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
7585 fi
7586
7587
7588 enablestring=
7589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7590echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7591 no_cache=0
7592 # Check whether --enable-radiobox or --disable-radiobox was given.
7593if test "${enable_radiobox+set}" = set; then
7594 enableval="$enable_radiobox"
7595
7596 if test "$enableval" = yes; then
7597 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7598 else
7599 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7600 fi
7601
7602else
7603
7604 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7605 if test "x$LINE" != x ; then
7606 eval "DEFAULT_$LINE"
7607 else
7608 no_cache=1
7609 fi
7610
7611 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7612
7613fi;
7614
7615 eval "$ac_cv_use_radiobox"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_RADIOBOX" = yes; then
7621 echo "$as_me:$LINENO: result: yes" >&5
7622echo "${ECHO_T}yes" >&6
7623 else
7624 echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626 fi
7627
7628
7629 enablestring=
7630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7631echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7632 no_cache=0
7633 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7634if test "${enable_radiobtn+set}" = set; then
7635 enableval="$enable_radiobtn"
7636
7637 if test "$enableval" = yes; then
7638 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7639 else
7640 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7641 fi
7642
7643else
7644
7645 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7646 if test "x$LINE" != x ; then
7647 eval "DEFAULT_$LINE"
7648 else
7649 no_cache=1
7650 fi
7651
7652 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7653
7654fi;
7655
7656 eval "$ac_cv_use_radiobtn"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_RADIOBTN" = yes; then
7662 echo "$as_me:$LINENO: result: yes" >&5
7663echo "${ECHO_T}yes" >&6
7664 else
7665 echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667 fi
7668
7669
7670 enablestring=
7671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7672echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7673 no_cache=0
7674 # Check whether --enable-sash or --disable-sash was given.
7675if test "${enable_sash+set}" = set; then
7676 enableval="$enable_sash"
7677
7678 if test "$enableval" = yes; then
7679 ac_cv_use_sash='wxUSE_SASH=yes'
7680 else
7681 ac_cv_use_sash='wxUSE_SASH=no'
7682 fi
7683
7684else
7685
7686 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7694
7695fi;
7696
7697 eval "$ac_cv_use_sash"
7698 if test "$no_cache" != 1; then
7699 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7700 fi
7701
7702 if test "$wxUSE_SASH" = yes; then
7703 echo "$as_me:$LINENO: result: yes" >&5
7704echo "${ECHO_T}yes" >&6
7705 else
7706 echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6
7708 fi
7709
7710
7711 enablestring=
7712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7713echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7714 no_cache=0
7715 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7716if test "${enable_scrollbar+set}" = set; then
7717 enableval="$enable_scrollbar"
7718
7719 if test "$enableval" = yes; then
7720 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7721 else
7722 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7723 fi
7724
7725else
7726
7727 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7728 if test "x$LINE" != x ; then
7729 eval "DEFAULT_$LINE"
7730 else
7731 no_cache=1
7732 fi
7733
7734 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7735
7736fi;
7737
7738 eval "$ac_cv_use_scrollbar"
7739 if test "$no_cache" != 1; then
7740 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7741 fi
7742
7743 if test "$wxUSE_SCROLLBAR" = yes; then
7744 echo "$as_me:$LINENO: result: yes" >&5
7745echo "${ECHO_T}yes" >&6
7746 else
7747 echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6
7749 fi
7750
7751
7752 enablestring=
7753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7754echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7755 no_cache=0
7756 # Check whether --enable-slider or --disable-slider was given.
7757if test "${enable_slider+set}" = set; then
7758 enableval="$enable_slider"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_slider='wxUSE_SLIDER=yes'
7762 else
7763 ac_cv_use_slider='wxUSE_SLIDER=no'
7764 fi
7765
7766else
7767
7768 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7769 if test "x$LINE" != x ; then
7770 eval "DEFAULT_$LINE"
7771 else
7772 no_cache=1
7773 fi
7774
7775 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7776
7777fi;
7778
7779 eval "$ac_cv_use_slider"
7780 if test "$no_cache" != 1; then
7781 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7782 fi
7783
7784 if test "$wxUSE_SLIDER" = yes; then
7785 echo "$as_me:$LINENO: result: yes" >&5
7786echo "${ECHO_T}yes" >&6
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
7790 fi
7791
7792
7793 enablestring=
7794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7795echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7796 no_cache=0
7797 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7798if test "${enable_spinbtn+set}" = set; then
7799 enableval="$enable_spinbtn"
7800
7801 if test "$enableval" = yes; then
7802 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7803 else
7804 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7805 fi
7806
7807else
7808
7809 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7810 if test "x$LINE" != x ; then
7811 eval "DEFAULT_$LINE"
7812 else
7813 no_cache=1
7814 fi
7815
7816 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7817
7818fi;
7819
7820 eval "$ac_cv_use_spinbtn"
7821 if test "$no_cache" != 1; then
7822 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7823 fi
7824
7825 if test "$wxUSE_SPINBTN" = yes; then
7826 echo "$as_me:$LINENO: result: yes" >&5
7827echo "${ECHO_T}yes" >&6
7828 else
7829 echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831 fi
7832
7833
7834 enablestring=
7835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7836echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7837 no_cache=0
7838 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7839if test "${enable_spinctrl+set}" = set; then
7840 enableval="$enable_spinctrl"
7841
7842 if test "$enableval" = yes; then
7843 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7844 else
7845 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7846 fi
7847
7848else
7849
7850 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7851 if test "x$LINE" != x ; then
7852 eval "DEFAULT_$LINE"
7853 else
7854 no_cache=1
7855 fi
7856
7857 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7858
7859fi;
7860
7861 eval "$ac_cv_use_spinctrl"
7862 if test "$no_cache" != 1; then
7863 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7864 fi
7865
7866 if test "$wxUSE_SPINCTRL" = yes; then
7867 echo "$as_me:$LINENO: result: yes" >&5
7868echo "${ECHO_T}yes" >&6
7869 else
7870 echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872 fi
7873
7874
7875 enablestring=
7876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7877echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7878 no_cache=0
7879 # Check whether --enable-splitter or --disable-splitter was given.
7880if test "${enable_splitter+set}" = set; then
7881 enableval="$enable_splitter"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7885 else
7886 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7887 fi
7888
7889else
7890
7891 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7899
7900fi;
7901
7902 eval "$ac_cv_use_splitter"
7903 if test "$no_cache" != 1; then
7904 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7905 fi
7906
7907 if test "$wxUSE_SPLITTER" = yes; then
7908 echo "$as_me:$LINENO: result: yes" >&5
7909echo "${ECHO_T}yes" >&6
7910 else
7911 echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
7913 fi
7914
7915
7916 enablestring=
7917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7918echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7919 no_cache=0
7920 # Check whether --enable-statbmp or --disable-statbmp was given.
7921if test "${enable_statbmp+set}" = set; then
7922 enableval="$enable_statbmp"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7926 else
7927 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7928 fi
7929
7930else
7931
7932 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7940
7941fi;
7942
7943 eval "$ac_cv_use_statbmp"
7944 if test "$no_cache" != 1; then
7945 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7946 fi
7947
7948 if test "$wxUSE_STATBMP" = yes; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950echo "${ECHO_T}yes" >&6
7951 else
7952 echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954 fi
7955
7956
7957 enablestring=
7958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7959echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7960 no_cache=0
7961 # Check whether --enable-statbox or --disable-statbox was given.
7962if test "${enable_statbox+set}" = set; then
7963 enableval="$enable_statbox"
7964
7965 if test "$enableval" = yes; then
7966 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7967 else
7968 ac_cv_use_statbox='wxUSE_STATBOX=no'
7969 fi
7970
7971else
7972
7973 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7974 if test "x$LINE" != x ; then
7975 eval "DEFAULT_$LINE"
7976 else
7977 no_cache=1
7978 fi
7979
7980 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7981
7982fi;
7983
7984 eval "$ac_cv_use_statbox"
7985 if test "$no_cache" != 1; then
7986 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7987 fi
7988
7989 if test "$wxUSE_STATBOX" = yes; then
7990 echo "$as_me:$LINENO: result: yes" >&5
7991echo "${ECHO_T}yes" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995 fi
7996
7997
7998 enablestring=
7999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8000echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8001 no_cache=0
8002 # Check whether --enable-statline or --disable-statline was given.
8003if test "${enable_statline+set}" = set; then
8004 enableval="$enable_statline"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_statline='wxUSE_STATLINE=yes'
8008 else
8009 ac_cv_use_statline='wxUSE_STATLINE=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8022
8023fi;
8024
8025 eval "$ac_cv_use_statline"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_STATLINE" = yes; then
8031 echo "$as_me:$LINENO: result: yes" >&5
8032echo "${ECHO_T}yes" >&6
8033 else
8034 echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6
8036 fi
8037
8038
8039 enablestring=
8040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8041echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8042 no_cache=0
8043 # Check whether --enable-stattext or --disable-stattext was given.
8044if test "${enable_stattext+set}" = set; then
8045 enableval="$enable_stattext"
8046
8047 if test "$enableval" = yes; then
8048 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8049 else
8050 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8051 fi
8052
8053else
8054
8055 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8063
8064fi;
8065
8066 eval "$ac_cv_use_stattext"
8067 if test "$no_cache" != 1; then
8068 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8069 fi
8070
8071 if test "$wxUSE_STATTEXT" = yes; then
8072 echo "$as_me:$LINENO: result: yes" >&5
8073echo "${ECHO_T}yes" >&6
8074 else
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
8077 fi
8078
8079
8080 enablestring=
8081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8082echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8083 no_cache=0
8084 # Check whether --enable-statusbar or --disable-statusbar was given.
8085if test "${enable_statusbar+set}" = set; then
8086 enableval="$enable_statusbar"
8087
8088 if test "$enableval" = yes; then
8089 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8090 else
8091 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8092 fi
8093
8094else
8095
8096 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8097 if test "x$LINE" != x ; then
8098 eval "DEFAULT_$LINE"
8099 else
8100 no_cache=1
8101 fi
8102
8103 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8104
8105fi;
8106
8107 eval "$ac_cv_use_statusbar"
8108 if test "$no_cache" != 1; then
8109 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8110 fi
8111
8112 if test "$wxUSE_STATUSBAR" = yes; then
8113 echo "$as_me:$LINENO: result: yes" >&5
8114echo "${ECHO_T}yes" >&6
8115 else
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118 fi
8119
8120
8121 enablestring=
8122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8123echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8124 no_cache=0
8125 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8126if test "${enable_tabdialog+set}" = set; then
8127 enableval="$enable_tabdialog"
8128
8129 if test "$enableval" = yes; then
8130 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8131 else
8132 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8133 fi
8134
8135else
8136
8137 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8145
8146fi;
8147
8148 eval "$ac_cv_use_tabdialog"
8149 if test "$no_cache" != 1; then
8150 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8151 fi
8152
8153 if test "$wxUSE_TABDIALOG" = yes; then
8154 echo "$as_me:$LINENO: result: yes" >&5
8155echo "${ECHO_T}yes" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159 fi
8160
8161
8162 enablestring=
8163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8164echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8165 no_cache=0
8166 # Check whether --enable-textctrl or --disable-textctrl was given.
8167if test "${enable_textctrl+set}" = set; then
8168 enableval="$enable_textctrl"
8169
8170 if test "$enableval" = yes; then
8171 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8172 else
8173 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8174 fi
8175
8176else
8177
8178 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8179 if test "x$LINE" != x ; then
8180 eval "DEFAULT_$LINE"
8181 else
8182 no_cache=1
8183 fi
8184
8185 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8186
8187fi;
8188
8189 eval "$ac_cv_use_textctrl"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_TEXTCTRL" = yes; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6
8200 fi
8201
8202
8203 enablestring=
8204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8205echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8206 no_cache=0
8207 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8208if test "${enable_togglebtn+set}" = set; then
8209 enableval="$enable_togglebtn"
8210
8211 if test "$enableval" = yes; then
8212 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8213 else
8214 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8215 fi
8216
8217else
8218
8219 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8220 if test "x$LINE" != x ; then
8221 eval "DEFAULT_$LINE"
8222 else
8223 no_cache=1
8224 fi
8225
8226 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8227
8228fi;
8229
8230 eval "$ac_cv_use_togglebtn"
8231 if test "$no_cache" != 1; then
8232 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8233 fi
8234
8235 if test "$wxUSE_TOGGLEBTN" = yes; then
8236 echo "$as_me:$LINENO: result: yes" >&5
8237echo "${ECHO_T}yes" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
8241 fi
8242
8243
8244 enablestring=
8245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8246echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8247 no_cache=0
8248 # Check whether --enable-toolbar or --disable-toolbar was given.
8249if test "${enable_toolbar+set}" = set; then
8250 enableval="$enable_toolbar"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8254 else
8255 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8256 fi
8257
8258else
8259
8260 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8268
8269fi;
8270
8271 eval "$ac_cv_use_toolbar"
8272 if test "$no_cache" != 1; then
8273 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8274 fi
8275
8276 if test "$wxUSE_TOOLBAR" = yes; then
8277 echo "$as_me:$LINENO: result: yes" >&5
8278echo "${ECHO_T}yes" >&6
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
8282 fi
8283
8284
8285 enablestring=
8286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8287echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8288 no_cache=0
8289 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8290if test "${enable_tbarnative+set}" = set; then
8291 enableval="$enable_tbarnative"
8292
8293 if test "$enableval" = yes; then
8294 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8295 else
8296 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8297 fi
8298
8299else
8300
8301 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8302 if test "x$LINE" != x ; then
8303 eval "DEFAULT_$LINE"
8304 else
8305 no_cache=1
8306 fi
8307
8308 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8309
8310fi;
8311
8312 eval "$ac_cv_use_tbarnative"
8313 if test "$no_cache" != 1; then
8314 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8315 fi
8316
8317 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8318 echo "$as_me:$LINENO: result: yes" >&5
8319echo "${ECHO_T}yes" >&6
8320 else
8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323 fi
8324
8325
8326 enablestring=
8327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8328echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8329 no_cache=0
8330 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8331if test "${enable_tbarsmpl+set}" = set; then
8332 enableval="$enable_tbarsmpl"
8333
8334 if test "$enableval" = yes; then
8335 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8336 else
8337 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8338 fi
8339
8340else
8341
8342 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8350
8351fi;
8352
8353 eval "$ac_cv_use_tbarsmpl"
8354 if test "$no_cache" != 1; then
8355 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8356 fi
8357
8358 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8359 echo "$as_me:$LINENO: result: yes" >&5
8360echo "${ECHO_T}yes" >&6
8361 else
8362 echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6
8364 fi
8365
8366
8367 enablestring=
8368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8369echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8370 no_cache=0
8371 # Check whether --enable-treectrl or --disable-treectrl was given.
8372if test "${enable_treectrl+set}" = set; then
8373 enableval="$enable_treectrl"
8374
8375 if test "$enableval" = yes; then
8376 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8377 else
8378 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8379 fi
8380
8381else
8382
8383 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8384 if test "x$LINE" != x ; then
8385 eval "DEFAULT_$LINE"
8386 else
8387 no_cache=1
8388 fi
8389
8390 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8391
8392fi;
8393
8394 eval "$ac_cv_use_treectrl"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_TREECTRL" = yes; then
8400 echo "$as_me:$LINENO: result: yes" >&5
8401echo "${ECHO_T}yes" >&6
8402 else
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
8405 fi
8406
8407
8408 enablestring=
8409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8410echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8411 no_cache=0
8412 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8413if test "${enable_tipwindow+set}" = set; then
8414 enableval="$enable_tipwindow"
8415
8416 if test "$enableval" = yes; then
8417 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8418 else
8419 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8420 fi
8421
8422else
8423
8424 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8425 if test "x$LINE" != x ; then
8426 eval "DEFAULT_$LINE"
8427 else
8428 no_cache=1
8429 fi
8430
8431 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8432
8433fi;
8434
8435 eval "$ac_cv_use_tipwindow"
8436 if test "$no_cache" != 1; then
8437 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8438 fi
8439
8440 if test "$wxUSE_TIPWINDOW" = yes; then
8441 echo "$as_me:$LINENO: result: yes" >&5
8442echo "${ECHO_T}yes" >&6
8443 else
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
8446 fi
8447
8448
8449 enablestring=
8450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8451echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8452 no_cache=0
8453 # Check whether --enable-popupwin or --disable-popupwin was given.
8454if test "${enable_popupwin+set}" = set; then
8455 enableval="$enable_popupwin"
8456
8457 if test "$enableval" = yes; then
8458 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8459 else
8460 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8461 fi
8462
8463else
8464
8465 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8466 if test "x$LINE" != x ; then
8467 eval "DEFAULT_$LINE"
8468 else
8469 no_cache=1
8470 fi
8471
8472 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8473
8474fi;
8475
8476 eval "$ac_cv_use_popupwin"
8477 if test "$no_cache" != 1; then
8478 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8479 fi
8480
8481 if test "$wxUSE_POPUPWIN" = yes; then
8482 echo "$as_me:$LINENO: result: yes" >&5
8483echo "${ECHO_T}yes" >&6
8484 else
8485 echo "$as_me:$LINENO: result: no" >&5
8486echo "${ECHO_T}no" >&6
8487 fi
8488
8489
8490
8491
8492 enablestring=
8493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8494echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8495 no_cache=0
8496 # Check whether --enable-commondlg or --disable-commondlg was given.
8497if test "${enable_commondlg+set}" = set; then
8498 enableval="$enable_commondlg"
8499
8500 if test "$enableval" = yes; then
8501 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8502 else
8503 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8504 fi
8505
8506else
8507
8508 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8509 if test "x$LINE" != x ; then
8510 eval "DEFAULT_$LINE"
8511 else
8512 no_cache=1
8513 fi
8514
8515 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8516
8517fi;
8518
8519 eval "$ac_cv_use_commondlg"
8520 if test "$no_cache" != 1; then
8521 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8522 fi
8523
8524 if test "$wxUSE_COMMONDLGS" = yes; then
8525 echo "$as_me:$LINENO: result: yes" >&5
8526echo "${ECHO_T}yes" >&6
8527 else
8528 echo "$as_me:$LINENO: result: no" >&5
8529echo "${ECHO_T}no" >&6
8530 fi
8531
8532
8533 enablestring=
8534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8535echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8536 no_cache=0
8537 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8538if test "${enable_choicedlg+set}" = set; then
8539 enableval="$enable_choicedlg"
8540
8541 if test "$enableval" = yes; then
8542 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8543 else
8544 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8545 fi
8546
8547else
8548
8549 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8550 if test "x$LINE" != x ; then
8551 eval "DEFAULT_$LINE"
8552 else
8553 no_cache=1
8554 fi
8555
8556 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8557
8558fi;
8559
8560 eval "$ac_cv_use_choicedlg"
8561 if test "$no_cache" != 1; then
8562 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8563 fi
8564
8565 if test "$wxUSE_CHOICEDLG" = yes; then
8566 echo "$as_me:$LINENO: result: yes" >&5
8567echo "${ECHO_T}yes" >&6
8568 else
8569 echo "$as_me:$LINENO: result: no" >&5
8570echo "${ECHO_T}no" >&6
8571 fi
8572
8573
8574 enablestring=
8575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8576echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8577 no_cache=0
8578 # Check whether --enable-coldlg or --disable-coldlg was given.
8579if test "${enable_coldlg+set}" = set; then
8580 enableval="$enable_coldlg"
8581
8582 if test "$enableval" = yes; then
8583 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8584 else
8585 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8586 fi
8587
8588else
8589
8590 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8598
8599fi;
8600
8601 eval "$ac_cv_use_coldlg"
8602 if test "$no_cache" != 1; then
8603 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8604 fi
8605
8606 if test "$wxUSE_COLOURDLG" = yes; then
8607 echo "$as_me:$LINENO: result: yes" >&5
8608echo "${ECHO_T}yes" >&6
8609 else
8610 echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
8612 fi
8613
8614
8615 enablestring=
8616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8617echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8618 no_cache=0
8619 # Check whether --enable-filedlg or --disable-filedlg was given.
8620if test "${enable_filedlg+set}" = set; then
8621 enableval="$enable_filedlg"
8622
8623 if test "$enableval" = yes; then
8624 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8625 else
8626 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8627 fi
8628
8629else
8630
8631 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8632 if test "x$LINE" != x ; then
8633 eval "DEFAULT_$LINE"
8634 else
8635 no_cache=1
8636 fi
8637
8638 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8639
8640fi;
8641
8642 eval "$ac_cv_use_filedlg"
8643 if test "$no_cache" != 1; then
8644 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8645 fi
8646
8647 if test "$wxUSE_FILEDLG" = yes; then
8648 echo "$as_me:$LINENO: result: yes" >&5
8649echo "${ECHO_T}yes" >&6
8650 else
8651 echo "$as_me:$LINENO: result: no" >&5
8652echo "${ECHO_T}no" >&6
8653 fi
8654
8655
8656 enablestring=
8657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8658echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8659 no_cache=0
8660 # Check whether --enable-finddlg or --disable-finddlg was given.
8661if test "${enable_finddlg+set}" = set; then
8662 enableval="$enable_finddlg"
8663
8664 if test "$enableval" = yes; then
8665 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8666 else
8667 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8668 fi
8669
8670else
8671
8672 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8673 if test "x$LINE" != x ; then
8674 eval "DEFAULT_$LINE"
8675 else
8676 no_cache=1
8677 fi
8678
8679 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8680
8681fi;
8682
8683 eval "$ac_cv_use_finddlg"
8684 if test "$no_cache" != 1; then
8685 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8686 fi
8687
8688 if test "$wxUSE_FINDREPLDLG" = yes; then
8689 echo "$as_me:$LINENO: result: yes" >&5
8690echo "${ECHO_T}yes" >&6
8691 else
8692 echo "$as_me:$LINENO: result: no" >&5
8693echo "${ECHO_T}no" >&6
8694 fi
8695
8696
8697 enablestring=
8698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8699echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8700 no_cache=0
8701 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8702if test "${enable_fontdlg+set}" = set; then
8703 enableval="$enable_fontdlg"
8704
8705 if test "$enableval" = yes; then
8706 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8707 else
8708 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8709 fi
8710
8711else
8712
8713 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8714 if test "x$LINE" != x ; then
8715 eval "DEFAULT_$LINE"
8716 else
8717 no_cache=1
8718 fi
8719
8720 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8721
8722fi;
8723
8724 eval "$ac_cv_use_fontdlg"
8725 if test "$no_cache" != 1; then
8726 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8727 fi
8728
8729 if test "$wxUSE_FONTDLG" = yes; then
8730 echo "$as_me:$LINENO: result: yes" >&5
8731echo "${ECHO_T}yes" >&6
8732 else
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
8735 fi
8736
8737
8738 enablestring=
8739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8740echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8741 no_cache=0
8742 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8743if test "${enable_dirdlg+set}" = set; then
8744 enableval="$enable_dirdlg"
8745
8746 if test "$enableval" = yes; then
8747 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8748 else
8749 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8750 fi
8751
8752else
8753
8754 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8755 if test "x$LINE" != x ; then
8756 eval "DEFAULT_$LINE"
8757 else
8758 no_cache=1
8759 fi
8760
8761 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8762
8763fi;
8764
8765 eval "$ac_cv_use_dirdlg"
8766 if test "$no_cache" != 1; then
8767 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8768 fi
8769
8770 if test "$wxUSE_DIRDLG" = yes; then
8771 echo "$as_me:$LINENO: result: yes" >&5
8772echo "${ECHO_T}yes" >&6
8773 else
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
8776 fi
8777
8778
8779 enablestring=
8780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8781echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8782 no_cache=0
8783 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8784if test "${enable_msgdlg+set}" = set; then
8785 enableval="$enable_msgdlg"
8786
8787 if test "$enableval" = yes; then
8788 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8789 else
8790 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8791 fi
8792
8793else
8794
8795 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8796 if test "x$LINE" != x ; then
8797 eval "DEFAULT_$LINE"
8798 else
8799 no_cache=1
8800 fi
8801
8802 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8803
8804fi;
8805
8806 eval "$ac_cv_use_msgdlg"
8807 if test "$no_cache" != 1; then
8808 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8809 fi
8810
8811 if test "$wxUSE_MSGDLG" = yes; then
8812 echo "$as_me:$LINENO: result: yes" >&5
8813echo "${ECHO_T}yes" >&6
8814 else
8815 echo "$as_me:$LINENO: result: no" >&5
8816echo "${ECHO_T}no" >&6
8817 fi
8818
8819
8820 enablestring=
8821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8822echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8823 no_cache=0
8824 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8825if test "${enable_numberdlg+set}" = set; then
8826 enableval="$enable_numberdlg"
8827
8828 if test "$enableval" = yes; then
8829 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8830 else
8831 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8832 fi
8833
8834else
8835
8836 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8837 if test "x$LINE" != x ; then
8838 eval "DEFAULT_$LINE"
8839 else
8840 no_cache=1
8841 fi
8842
8843 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8844
8845fi;
8846
8847 eval "$ac_cv_use_numberdlg"
8848 if test "$no_cache" != 1; then
8849 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8850 fi
8851
8852 if test "$wxUSE_NUMBERDLG" = yes; then
8853 echo "$as_me:$LINENO: result: yes" >&5
8854echo "${ECHO_T}yes" >&6
8855 else
8856 echo "$as_me:$LINENO: result: no" >&5
8857echo "${ECHO_T}no" >&6
8858 fi
8859
8860
8861 enablestring=
8862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8863echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8864 no_cache=0
8865 # Check whether --enable-splash or --disable-splash was given.
8866if test "${enable_splash+set}" = set; then
8867 enableval="$enable_splash"
8868
8869 if test "$enableval" = yes; then
8870 ac_cv_use_splash='wxUSE_SPLASH=yes'
8871 else
8872 ac_cv_use_splash='wxUSE_SPLASH=no'
8873 fi
8874
8875else
8876
8877 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8878 if test "x$LINE" != x ; then
8879 eval "DEFAULT_$LINE"
8880 else
8881 no_cache=1
8882 fi
8883
8884 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8885
8886fi;
8887
8888 eval "$ac_cv_use_splash"
8889 if test "$no_cache" != 1; then
8890 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8891 fi
8892
8893 if test "$wxUSE_SPLASH" = yes; then
8894 echo "$as_me:$LINENO: result: yes" >&5
8895echo "${ECHO_T}yes" >&6
8896 else
8897 echo "$as_me:$LINENO: result: no" >&5
8898echo "${ECHO_T}no" >&6
8899 fi
8900
8901
8902 enablestring=
8903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8904echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8905 no_cache=0
8906 # Check whether --enable-textdlg or --disable-textdlg was given.
8907if test "${enable_textdlg+set}" = set; then
8908 enableval="$enable_textdlg"
8909
8910 if test "$enableval" = yes; then
8911 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8912 else
8913 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8914 fi
8915
8916else
8917
8918 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8919 if test "x$LINE" != x ; then
8920 eval "DEFAULT_$LINE"
8921 else
8922 no_cache=1
8923 fi
8924
8925 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8926
8927fi;
8928
8929 eval "$ac_cv_use_textdlg"
8930 if test "$no_cache" != 1; then
8931 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8932 fi
8933
8934 if test "$wxUSE_TEXTDLG" = yes; then
8935 echo "$as_me:$LINENO: result: yes" >&5
8936echo "${ECHO_T}yes" >&6
8937 else
8938 echo "$as_me:$LINENO: result: no" >&5
8939echo "${ECHO_T}no" >&6
8940 fi
8941
8942
8943 enablestring=
8944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8945echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8946 no_cache=0
8947 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8948if test "${enable_tipdlg+set}" = set; then
8949 enableval="$enable_tipdlg"
8950
8951 if test "$enableval" = yes; then
8952 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8953 else
8954 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8955 fi
8956
8957else
8958
8959 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8960 if test "x$LINE" != x ; then
8961 eval "DEFAULT_$LINE"
8962 else
8963 no_cache=1
8964 fi
8965
8966 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8967
8968fi;
8969
8970 eval "$ac_cv_use_tipdlg"
8971 if test "$no_cache" != 1; then
8972 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8973 fi
8974
8975 if test "$wxUSE_STARTUP_TIPS" = yes; then
8976 echo "$as_me:$LINENO: result: yes" >&5
8977echo "${ECHO_T}yes" >&6
8978 else
8979 echo "$as_me:$LINENO: result: no" >&5
8980echo "${ECHO_T}no" >&6
8981 fi
8982
8983
8984 enablestring=
8985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8986echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8987 no_cache=0
8988 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8989if test "${enable_progressdlg+set}" = set; then
8990 enableval="$enable_progressdlg"
8991
8992 if test "$enableval" = yes; then
8993 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8994 else
8995 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8996 fi
8997
8998else
8999
9000 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9001 if test "x$LINE" != x ; then
9002 eval "DEFAULT_$LINE"
9003 else
9004 no_cache=1
9005 fi
9006
9007 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9008
9009fi;
9010
9011 eval "$ac_cv_use_progressdlg"
9012 if test "$no_cache" != 1; then
9013 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9014 fi
9015
9016 if test "$wxUSE_PROGRESSDLG" = yes; then
9017 echo "$as_me:$LINENO: result: yes" >&5
9018echo "${ECHO_T}yes" >&6
9019 else
9020 echo "$as_me:$LINENO: result: no" >&5
9021echo "${ECHO_T}no" >&6
9022 fi
9023
9024
9025 enablestring=
9026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9027echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9028 no_cache=0
9029 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9030if test "${enable_wizarddlg+set}" = set; then
9031 enableval="$enable_wizarddlg"
9032
9033 if test "$enableval" = yes; then
9034 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9035 else
9036 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9037 fi
9038
9039else
9040
9041 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9042 if test "x$LINE" != x ; then
9043 eval "DEFAULT_$LINE"
9044 else
9045 no_cache=1
9046 fi
9047
9048 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9049
9050fi;
9051
9052 eval "$ac_cv_use_wizarddlg"
9053 if test "$no_cache" != 1; then
9054 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9055 fi
9056
9057 if test "$wxUSE_WIZARDDLG" = yes; then
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
9060 else
9061 echo "$as_me:$LINENO: result: no" >&5
9062echo "${ECHO_T}no" >&6
9063 fi
9064
9065
9066
9067
9068 enablestring=
9069 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9070echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9071 no_cache=0
9072 # Check whether --enable-menus or --disable-menus was given.
9073if test "${enable_menus+set}" = set; then
9074 enableval="$enable_menus"
9075
9076 if test "$enableval" = yes; then
9077 ac_cv_use_menus='wxUSE_MENUS=yes'
9078 else
9079 ac_cv_use_menus='wxUSE_MENUS=no'
9080 fi
9081
9082else
9083
9084 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9085 if test "x$LINE" != x ; then
9086 eval "DEFAULT_$LINE"
9087 else
9088 no_cache=1
9089 fi
9090
9091 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9092
9093fi;
9094
9095 eval "$ac_cv_use_menus"
9096 if test "$no_cache" != 1; then
9097 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9098 fi
9099
9100 if test "$wxUSE_MENUS" = yes; then
9101 echo "$as_me:$LINENO: result: yes" >&5
9102echo "${ECHO_T}yes" >&6
9103 else
9104 echo "$as_me:$LINENO: result: no" >&5
9105echo "${ECHO_T}no" >&6
9106 fi
9107
9108
9109 enablestring=
9110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9111echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9112 no_cache=0
9113 # Check whether --enable-miniframe or --disable-miniframe was given.
9114if test "${enable_miniframe+set}" = set; then
9115 enableval="$enable_miniframe"
9116
9117 if test "$enableval" = yes; then
9118 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9119 else
9120 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9121 fi
9122
9123else
9124
9125 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9126 if test "x$LINE" != x ; then
9127 eval "DEFAULT_$LINE"
9128 else
9129 no_cache=1
9130 fi
9131
9132 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9133
9134fi;
9135
9136 eval "$ac_cv_use_miniframe"
9137 if test "$no_cache" != 1; then
9138 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9139 fi
9140
9141 if test "$wxUSE_MINIFRAME" = yes; then
9142 echo "$as_me:$LINENO: result: yes" >&5
9143echo "${ECHO_T}yes" >&6
9144 else
9145 echo "$as_me:$LINENO: result: no" >&5
9146echo "${ECHO_T}no" >&6
9147 fi
9148
9149
9150 enablestring=
9151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9152echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9153 no_cache=0
9154 # Check whether --enable-tooltips or --disable-tooltips was given.
9155if test "${enable_tooltips+set}" = set; then
9156 enableval="$enable_tooltips"
9157
9158 if test "$enableval" = yes; then
9159 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9160 else
9161 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9162 fi
9163
9164else
9165
9166 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9167 if test "x$LINE" != x ; then
9168 eval "DEFAULT_$LINE"
9169 else
9170 no_cache=1
9171 fi
9172
9173 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9174
9175fi;
9176
9177 eval "$ac_cv_use_tooltips"
9178 if test "$no_cache" != 1; then
9179 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9180 fi
9181
9182 if test "$wxUSE_TOOLTIPS" = yes; then
9183 echo "$as_me:$LINENO: result: yes" >&5
9184echo "${ECHO_T}yes" >&6
9185 else
9186 echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6
9188 fi
9189
9190
9191 enablestring=
9192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9193echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9194 no_cache=0
9195 # Check whether --enable-splines or --disable-splines was given.
9196if test "${enable_splines+set}" = set; then
9197 enableval="$enable_splines"
9198
9199 if test "$enableval" = yes; then
9200 ac_cv_use_splines='wxUSE_SPLINES=yes'
9201 else
9202 ac_cv_use_splines='wxUSE_SPLINES=no'
9203 fi
9204
9205else
9206
9207 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9208 if test "x$LINE" != x ; then
9209 eval "DEFAULT_$LINE"
9210 else
9211 no_cache=1
9212 fi
9213
9214 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9215
9216fi;
9217
9218 eval "$ac_cv_use_splines"
9219 if test "$no_cache" != 1; then
9220 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9221 fi
9222
9223 if test "$wxUSE_SPLINES" = yes; then
9224 echo "$as_me:$LINENO: result: yes" >&5
9225echo "${ECHO_T}yes" >&6
9226 else
9227 echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6
9229 fi
9230
9231
9232 enablestring=
9233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9234echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9235 no_cache=0
9236 # Check whether --enable-validators or --disable-validators was given.
9237if test "${enable_validators+set}" = set; then
9238 enableval="$enable_validators"
9239
9240 if test "$enableval" = yes; then
9241 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9242 else
9243 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9244 fi
9245
9246else
9247
9248 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9249 if test "x$LINE" != x ; then
9250 eval "DEFAULT_$LINE"
9251 else
9252 no_cache=1
9253 fi
9254
9255 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9256
9257fi;
9258
9259 eval "$ac_cv_use_validators"
9260 if test "$no_cache" != 1; then
9261 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9262 fi
9263
9264 if test "$wxUSE_VALIDATORS" = yes; then
9265 echo "$as_me:$LINENO: result: yes" >&5
9266echo "${ECHO_T}yes" >&6
9267 else
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
9270 fi
9271
9272
9273 enablestring=
9274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9275echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9276 no_cache=0
9277 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9278if test "${enable_busyinfo+set}" = set; then
9279 enableval="$enable_busyinfo"
9280
9281 if test "$enableval" = yes; then
9282 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9283 else
9284 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9285 fi
9286
9287else
9288
9289 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9290 if test "x$LINE" != x ; then
9291 eval "DEFAULT_$LINE"
9292 else
9293 no_cache=1
9294 fi
9295
9296 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9297
9298fi;
9299
9300 eval "$ac_cv_use_busyinfo"
9301 if test "$no_cache" != 1; then
9302 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9303 fi
9304
9305 if test "$wxUSE_BUSYINFO" = yes; then
9306 echo "$as_me:$LINENO: result: yes" >&5
9307echo "${ECHO_T}yes" >&6
9308 else
9309 echo "$as_me:$LINENO: result: no" >&5
9310echo "${ECHO_T}no" >&6
9311 fi
9312
9313
9314 enablestring=
9315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9316echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9317 no_cache=0
9318 # Check whether --enable-joystick or --disable-joystick was given.
9319if test "${enable_joystick+set}" = set; then
9320 enableval="$enable_joystick"
9321
9322 if test "$enableval" = yes; then
9323 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9324 else
9325 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9326 fi
9327
9328else
9329
9330 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9331 if test "x$LINE" != x ; then
9332 eval "DEFAULT_$LINE"
9333 else
9334 no_cache=1
9335 fi
9336
9337 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9338
9339fi;
9340
9341 eval "$ac_cv_use_joystick"
9342 if test "$no_cache" != 1; then
9343 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9344 fi
9345
9346 if test "$wxUSE_JOYSTICK" = yes; then
9347 echo "$as_me:$LINENO: result: yes" >&5
9348echo "${ECHO_T}yes" >&6
9349 else
9350 echo "$as_me:$LINENO: result: no" >&5
9351echo "${ECHO_T}no" >&6
9352 fi
9353
9354
9355 enablestring=
9356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9357echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9358 no_cache=0
9359 # Check whether --enable-metafile or --disable-metafile was given.
9360if test "${enable_metafile+set}" = set; then
9361 enableval="$enable_metafile"
9362
9363 if test "$enableval" = yes; then
9364 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9365 else
9366 ac_cv_use_metafile='wxUSE_METAFILE=no'
9367 fi
9368
9369else
9370
9371 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9372 if test "x$LINE" != x ; then
9373 eval "DEFAULT_$LINE"
9374 else
9375 no_cache=1
9376 fi
9377
9378 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9379
9380fi;
9381
9382 eval "$ac_cv_use_metafile"
9383 if test "$no_cache" != 1; then
9384 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9385 fi
9386
9387 if test "$wxUSE_METAFILE" = yes; then
9388 echo "$as_me:$LINENO: result: yes" >&5
9389echo "${ECHO_T}yes" >&6
9390 else
9391 echo "$as_me:$LINENO: result: no" >&5
9392echo "${ECHO_T}no" >&6
9393 fi
9394
9395
9396 enablestring=
9397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9398echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9399 no_cache=0
9400 # Check whether --enable-dragimage or --disable-dragimage was given.
9401if test "${enable_dragimage+set}" = set; then
9402 enableval="$enable_dragimage"
9403
9404 if test "$enableval" = yes; then
9405 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9406 else
9407 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9408 fi
9409
9410else
9411
9412 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9413 if test "x$LINE" != x ; then
9414 eval "DEFAULT_$LINE"
9415 else
9416 no_cache=1
9417 fi
9418
9419 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9420
9421fi;
9422
9423 eval "$ac_cv_use_dragimage"
9424 if test "$no_cache" != 1; then
9425 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9426 fi
9427
9428 if test "$wxUSE_DRAGIMAGE" = yes; then
9429 echo "$as_me:$LINENO: result: yes" >&5
9430echo "${ECHO_T}yes" >&6
9431 else
9432 echo "$as_me:$LINENO: result: no" >&5
9433echo "${ECHO_T}no" >&6
9434 fi
9435
9436
9437 enablestring=
9438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9439echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9440 no_cache=0
9441 # Check whether --enable-accessibility or --disable-accessibility was given.
9442if test "${enable_accessibility+set}" = set; then
9443 enableval="$enable_accessibility"
9444
9445 if test "$enableval" = yes; then
9446 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9447 else
9448 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9449 fi
9450
9451else
9452
9453 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9454 if test "x$LINE" != x ; then
9455 eval "DEFAULT_$LINE"
9456 else
9457 no_cache=1
9458 fi
9459
9460 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9461
9462fi;
9463
9464 eval "$ac_cv_use_accessibility"
9465 if test "$no_cache" != 1; then
9466 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9467 fi
9468
9469 if test "$wxUSE_ACCESSIBILITY" = yes; then
9470 echo "$as_me:$LINENO: result: yes" >&5
9471echo "${ECHO_T}yes" >&6
9472 else
9473 echo "$as_me:$LINENO: result: no" >&5
9474echo "${ECHO_T}no" >&6
9475 fi
9476
9477
9478
9479
9480 enablestring=
9481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9482echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9483 no_cache=0
9484 # Check whether --enable-palette or --disable-palette was given.
9485if test "${enable_palette+set}" = set; then
9486 enableval="$enable_palette"
9487
9488 if test "$enableval" = yes; then
9489 ac_cv_use_palette='wxUSE_PALETTE=yes'
9490 else
9491 ac_cv_use_palette='wxUSE_PALETTE=no'
9492 fi
9493
9494else
9495
9496 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9497 if test "x$LINE" != x ; then
9498 eval "DEFAULT_$LINE"
9499 else
9500 no_cache=1
9501 fi
9502
9503 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9504
9505fi;
9506
9507 eval "$ac_cv_use_palette"
9508 if test "$no_cache" != 1; then
9509 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9510 fi
9511
9512 if test "$wxUSE_PALETTE" = yes; then
9513 echo "$as_me:$LINENO: result: yes" >&5
9514echo "${ECHO_T}yes" >&6
9515 else
9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
9518 fi
9519
9520
9521 enablestring=
9522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9523echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9524 no_cache=0
9525 # Check whether --enable-image or --disable-image was given.
9526if test "${enable_image+set}" = set; then
9527 enableval="$enable_image"
9528
9529 if test "$enableval" = yes; then
9530 ac_cv_use_image='wxUSE_IMAGE=yes'
9531 else
9532 ac_cv_use_image='wxUSE_IMAGE=no'
9533 fi
9534
9535else
9536
9537 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9538 if test "x$LINE" != x ; then
9539 eval "DEFAULT_$LINE"
9540 else
9541 no_cache=1
9542 fi
9543
9544 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9545
9546fi;
9547
9548 eval "$ac_cv_use_image"
9549 if test "$no_cache" != 1; then
9550 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9551 fi
9552
9553 if test "$wxUSE_IMAGE" = yes; then
9554 echo "$as_me:$LINENO: result: yes" >&5
9555echo "${ECHO_T}yes" >&6
9556 else
9557 echo "$as_me:$LINENO: result: no" >&5
9558echo "${ECHO_T}no" >&6
9559 fi
9560
9561
9562 enablestring=
9563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9564echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9565 no_cache=0
9566 # Check whether --enable-gif or --disable-gif was given.
9567if test "${enable_gif+set}" = set; then
9568 enableval="$enable_gif"
9569
9570 if test "$enableval" = yes; then
9571 ac_cv_use_gif='wxUSE_GIF=yes'
9572 else
9573 ac_cv_use_gif='wxUSE_GIF=no'
9574 fi
9575
9576else
9577
9578 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9579 if test "x$LINE" != x ; then
9580 eval "DEFAULT_$LINE"
9581 else
9582 no_cache=1
9583 fi
9584
9585 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9586
9587fi;
9588
9589 eval "$ac_cv_use_gif"
9590 if test "$no_cache" != 1; then
9591 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9592 fi
9593
9594 if test "$wxUSE_GIF" = yes; then
9595 echo "$as_me:$LINENO: result: yes" >&5
9596echo "${ECHO_T}yes" >&6
9597 else
9598 echo "$as_me:$LINENO: result: no" >&5
9599echo "${ECHO_T}no" >&6
9600 fi
9601
9602
9603 enablestring=
9604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9605echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9606 no_cache=0
9607 # Check whether --enable-pcx or --disable-pcx was given.
9608if test "${enable_pcx+set}" = set; then
9609 enableval="$enable_pcx"
9610
9611 if test "$enableval" = yes; then
9612 ac_cv_use_pcx='wxUSE_PCX=yes'
9613 else
9614 ac_cv_use_pcx='wxUSE_PCX=no'
9615 fi
9616
9617else
9618
9619 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9620 if test "x$LINE" != x ; then
9621 eval "DEFAULT_$LINE"
9622 else
9623 no_cache=1
9624 fi
9625
9626 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9627
9628fi;
9629
9630 eval "$ac_cv_use_pcx"
9631 if test "$no_cache" != 1; then
9632 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9633 fi
9634
9635 if test "$wxUSE_PCX" = yes; then
9636 echo "$as_me:$LINENO: result: yes" >&5
9637echo "${ECHO_T}yes" >&6
9638 else
9639 echo "$as_me:$LINENO: result: no" >&5
9640echo "${ECHO_T}no" >&6
9641 fi
9642
9643
9644 enablestring=
9645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9646echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9647 no_cache=0
9648 # Check whether --enable-iff or --disable-iff was given.
9649if test "${enable_iff+set}" = set; then
9650 enableval="$enable_iff"
9651
9652 if test "$enableval" = yes; then
9653 ac_cv_use_iff='wxUSE_IFF=yes'
9654 else
9655 ac_cv_use_iff='wxUSE_IFF=no'
9656 fi
9657
9658else
9659
9660 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9661 if test "x$LINE" != x ; then
9662 eval "DEFAULT_$LINE"
9663 else
9664 no_cache=1
9665 fi
9666
9667 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9668
9669fi;
9670
9671 eval "$ac_cv_use_iff"
9672 if test "$no_cache" != 1; then
9673 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9674 fi
9675
9676 if test "$wxUSE_IFF" = yes; then
9677 echo "$as_me:$LINENO: result: yes" >&5
9678echo "${ECHO_T}yes" >&6
9679 else
9680 echo "$as_me:$LINENO: result: no" >&5
9681echo "${ECHO_T}no" >&6
9682 fi
9683
9684
9685 enablestring=
9686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9687echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9688 no_cache=0
9689 # Check whether --enable-pnm or --disable-pnm was given.
9690if test "${enable_pnm+set}" = set; then
9691 enableval="$enable_pnm"
9692
9693 if test "$enableval" = yes; then
9694 ac_cv_use_pnm='wxUSE_PNM=yes'
9695 else
9696 ac_cv_use_pnm='wxUSE_PNM=no'
9697 fi
9698
9699else
9700
9701 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9702 if test "x$LINE" != x ; then
9703 eval "DEFAULT_$LINE"
9704 else
9705 no_cache=1
9706 fi
9707
9708 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9709
9710fi;
9711
9712 eval "$ac_cv_use_pnm"
9713 if test "$no_cache" != 1; then
9714 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9715 fi
9716
9717 if test "$wxUSE_PNM" = yes; then
9718 echo "$as_me:$LINENO: result: yes" >&5
9719echo "${ECHO_T}yes" >&6
9720 else
9721 echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
9723 fi
9724
9725
9726 enablestring=
9727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9728echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9729 no_cache=0
9730 # Check whether --enable-xpm or --disable-xpm was given.
9731if test "${enable_xpm+set}" = set; then
9732 enableval="$enable_xpm"
9733
9734 if test "$enableval" = yes; then
9735 ac_cv_use_xpm='wxUSE_XPM=yes'
9736 else
9737 ac_cv_use_xpm='wxUSE_XPM=no'
9738 fi
9739
9740else
9741
9742 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9743 if test "x$LINE" != x ; then
9744 eval "DEFAULT_$LINE"
9745 else
9746 no_cache=1
9747 fi
9748
9749 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9750
9751fi;
9752
9753 eval "$ac_cv_use_xpm"
9754 if test "$no_cache" != 1; then
9755 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9756 fi
9757
9758 if test "$wxUSE_XPM" = yes; then
9759 echo "$as_me:$LINENO: result: yes" >&5
9760echo "${ECHO_T}yes" >&6
9761 else
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
9764 fi
9765
9766
9767 enablestring=
9768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9769echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9770 no_cache=0
9771 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9772if test "${enable_ico_cur+set}" = set; then
9773 enableval="$enable_ico_cur"
9774
9775 if test "$enableval" = yes; then
9776 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9777 else
9778 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9779 fi
9780
9781else
9782
9783 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9784 if test "x$LINE" != x ; then
9785 eval "DEFAULT_$LINE"
9786 else
9787 no_cache=1
9788 fi
9789
9790 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9791
9792fi;
9793
9794 eval "$ac_cv_use_ico_cur"
9795 if test "$no_cache" != 1; then
9796 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9797 fi
9798
9799 if test "$wxUSE_ICO_CUR" = yes; then
9800 echo "$as_me:$LINENO: result: yes" >&5
9801echo "${ECHO_T}yes" >&6
9802 else
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
9805 fi
9806
9807
9808fi
9809
9810
9811
9812 enablestring=
9813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9814echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9815 no_cache=0
9816 # Check whether --enable-official_build or --disable-official_build was given.
9817if test "${enable_official_build+set}" = set; then
9818 enableval="$enable_official_build"
9819
9820 if test "$enableval" = yes; then
9821 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9822 else
9823 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9824 fi
9825
9826else
9827
9828 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9829 if test "x$LINE" != x ; then
9830 eval "DEFAULT_$LINE"
9831 else
9832 no_cache=1
9833 fi
9834
9835 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9836
9837fi;
9838
9839 eval "$ac_cv_use_official_build"
9840 if test "$no_cache" != 1; then
9841 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9842 fi
9843
9844 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9845 echo "$as_me:$LINENO: result: yes" >&5
9846echo "${ECHO_T}yes" >&6
9847 else
9848 echo "$as_me:$LINENO: result: no" >&5
9849echo "${ECHO_T}no" >&6
9850 fi
9851
9852# Check whether --enable-vendor or --disable-vendor was given.
9853if test "${enable_vendor+set}" = set; then
9854 enableval="$enable_vendor"
9855 VENDOR="$enableval"
9856fi;
9857if test "x$VENDOR" = "x"; then
9858 VENDOR="custom"
9859fi
9860
9861case "${host}" in
9862 *-pc-os2_emx | *-pc-os2-emx )
9863 PATH_IFS=';'
a848cd7e
SC
9864 ;;
9865 *)
9866 PATH_IFS=':'
9867 ;;
9868esac
9869
9870
9871
9872 echo "saving argument cache $wx_arg_cache_file"
9873 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9874
9875
9876
9877echo "$as_me:$LINENO: checking for toolkit" >&5
9878echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9879
9880# In Wine, we need to default to MSW, not GTK or MOTIF
9881if test "$wxUSE_WINE" = "yes"; then
9882 DEFAULT_DEFAULT_wxUSE_GTK=0
9883 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9884 DEFAULT_DEFAULT_wxUSE_MSW=1
9885 wxUSE_SHARED=no
9886fi
9887
9888if test "$wxUSE_GUI" = "yes"; then
9889
9890 if test "$USE_BEOS" = 1; then
9891 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9892echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9893 { (exit 1); exit 1; }; }
9894 fi
9895
9896 if test "$TOOLKIT_GIVEN" = 1; then
9897 for toolkit in `echo $ALL_TOOLKITS`; do
9898 var=wxUSE_$toolkit
9899 eval "value=\$${var}"
9900 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9901 done
9902 else
9903 for toolkit in `echo $ALL_TOOLKITS`; do
9904 if test "$has_toolkit_in_cache" != 1; then
9905 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9906 else
9907 var=DEFAULT_wxUSE_$toolkit
9908 fi
9909 eval "wxUSE_$toolkit=\$${var}"
9910 done
9911 fi
9912
9913 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9914 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9915 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9916
9917 case "${host}" in
9918 *-pc-os2_emx | *-pc-os2-emx )
9919 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9920 esac
9921
9922 case "$NUM_TOOLKITS" in
9923 1)
9924 ;;
9925 0)
9926 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9927echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9928 { (exit 1); exit 1; }; }
9929 ;;
9930 *)
9931 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9932echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9933 { (exit 1); exit 1; }; }
9934 esac
9935
9936 for toolkit in `echo $ALL_TOOLKITS`; do
9937 var=wxUSE_$toolkit
9938 eval "value=\$${var}"
9939 if test "x$value" != x; then
9940 cache_var=CACHE_$toolkit
9941 eval "cache=\$${cache_var}"
9942 if test "$cache" = 1; then
9943 echo "$var=$value" >> ${wx_arg_cache_file}
9944 fi
9945 if test "$value" = 1; then
9946 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9947 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9948echo "${ECHO_T}$toolkit_echo" >&6
9949 fi
9950 fi
9951 done
9952else
9953 if test "x$host_alias" != "x"; then
9954 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9955echo "${ECHO_T}base ($host_alias hosted) only" >&6
9956 else
9957 echo "$as_me:$LINENO: result: base only" >&5
9958echo "${ECHO_T}base only" >&6
9959 fi
9960fi
9961
9962wants_win32=0
9963doesnt_want_win32=0
9964case "${host}" in
9965 *-*-cygwin*)
9966 if test "$wxUSE_MSW" = 1 ; then
9967 wants_win32=1
9968 else
9969 doesnt_want_win32=1
9970 fi
9971 ;;
9972 *-*-mingw*)
9973 wants_win32=1
9974 ;;
9975esac
9976
9977if test "$wxUSE_WINE" = "yes"; then
9978 wants_win32=1
9979 CC=winegcc
9980 CXX=wineg++
9981 RESCOMP=wrc
9982 LDFLAGS_GUI="-mwindows"
9983fi
9984
9985if test "$wants_win32" = 1 ; then
9986 USE_UNIX=0
9987 USE_WIN32=1
9988 cat >>confdefs.h <<\_ACEOF
9989#define __WIN32__ 1
9990_ACEOF
9991
9992 cat >>confdefs.h <<\_ACEOF
9993#define __WIN95__ 1
9994_ACEOF
9995
9996 cat >>confdefs.h <<\_ACEOF
9997#define __WINDOWS__ 1
9998_ACEOF
9999
10000 cat >>confdefs.h <<\_ACEOF
10001#define __GNUWIN32__ 1
10002_ACEOF
10003
10004 cat >>confdefs.h <<\_ACEOF
10005#define STRICT 1
10006_ACEOF
10007
10008 cat >>confdefs.h <<\_ACEOF
10009#define WINVER 0x0400
10010_ACEOF
10011
10012fi
10013if test "$doesnt_want_win32" = 1 ; then
10014 USE_UNIX=1
10015 USE_WIN32=0
10016fi
10017
10018if test "$USE_UNIX" = 1 ; then
10019 wxUSE_UNIX=yes
10020 cat >>confdefs.h <<\_ACEOF
10021#define __UNIX__ 1
10022_ACEOF
10023
10024fi
10025
10026
10027cat >confcache <<\_ACEOF
10028# This file is a shell script that caches the results of configure
10029# tests run on this system so they can be shared between configure
10030# scripts and configure runs, see configure's option --config-cache.
10031# It is not useful on other systems. If it contains results you don't
10032# want to keep, you may remove or edit it.
10033#
10034# config.status only pays attention to the cache file if you give it
10035# the --recheck option to rerun configure.
10036#
10037# `ac_cv_env_foo' variables (set or unset) will be overridden when
10038# loading this file, other *unset* `ac_cv_foo' will be assigned the
10039# following values.
10040
10041_ACEOF
10042
10043# The following way of writing the cache mishandles newlines in values,
10044# but we know of no workaround that is simple, portable, and efficient.
10045# So, don't put newlines in cache variables' values.
10046# Ultrix sh set writes to stderr and can't be redirected directly,
10047# and sets the high bit in the cache file unless we assign to the vars.
10048{
10049 (set) 2>&1 |
10050 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10051 *ac_space=\ *)
10052 # `set' does not quote correctly, so add quotes (double-quote
10053 # substitution turns \\\\ into \\, and sed turns \\ into \).
10054 sed -n \
de59c161
RD
10055 "s/'/'\\\\''/g;
10056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10057 ;;
10058 *)
10059 # `set' quotes correctly as required by POSIX, so do not add quotes.
10060 sed -n \
de59c161 10061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10062 ;;
10063 esac;
10064} |
10065 sed '
10066 t clear
10067 : clear
10068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10069 t end
10070 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10071 : end' >>confcache
10072if diff $cache_file confcache >/dev/null 2>&1; then :; else
10073 if test -w $cache_file; then
10074 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10075 cat confcache >$cache_file
10076 else
10077 echo "not updating unwritable cache $cache_file"
10078 fi
10079fi
10080rm -f confcache
10081
10082if test "$build" != "$host" ; then
10083 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10084 CC=$host_alias-gcc
10085 CXX=$host_alias-c++
10086 AR=$host_alias-ar
10087 RANLIB=$host_alias-ranlib
10088 DLLTOOL=$host_alias-dlltool
10089 RESCOMP=$host_alias-windres
10090 LD=$host_alias-ld
10091 NM=$host_alias-nm
10092 STRIP=$host_alias-strip
10093 else
10094 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10095echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10096 { (exit 1); exit 1; }; }
10097 fi
10098fi
10099
10100CFLAGS=${CFLAGS:=}
10101ac_ext=c
10102ac_cpp='$CPP $CPPFLAGS'
10103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10105ac_compiler_gnu=$ac_cv_c_compiler_gnu
10106if test -n "$ac_tool_prefix"; then
10107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10108set dummy ${ac_tool_prefix}gcc; ac_word=$2
10109echo "$as_me:$LINENO: checking for $ac_word" >&5
10110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10111if test "${ac_cv_prog_CC+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114 if test -n "$CC"; then
10115 ac_cv_prog_CC="$CC" # Let the user override the test.
10116else
10117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118for as_dir in $PATH
10119do
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10126 break 2
10127 fi
10128done
10129done
10130
10131fi
10132fi
10133CC=$ac_cv_prog_CC
10134if test -n "$CC"; then
10135 echo "$as_me:$LINENO: result: $CC" >&5
10136echo "${ECHO_T}$CC" >&6
10137else
10138 echo "$as_me:$LINENO: result: no" >&5
10139echo "${ECHO_T}no" >&6
10140fi
10141
10142fi
10143if test -z "$ac_cv_prog_CC"; then
10144 ac_ct_CC=$CC
10145 # Extract the first word of "gcc", so it can be a program name with args.
10146set dummy gcc; ac_word=$2
10147echo "$as_me:$LINENO: checking for $ac_word" >&5
10148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10149if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151else
10152 if test -n "$ac_ct_CC"; then
10153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10154else
10155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156for as_dir in $PATH
10157do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10162 ac_cv_prog_ac_ct_CC="gcc"
10163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10165 fi
10166done
10167done
10168
10169fi
10170fi
10171ac_ct_CC=$ac_cv_prog_ac_ct_CC
10172if test -n "$ac_ct_CC"; then
10173 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10174echo "${ECHO_T}$ac_ct_CC" >&6
10175else
10176 echo "$as_me:$LINENO: result: no" >&5
10177echo "${ECHO_T}no" >&6
10178fi
10179
10180 CC=$ac_ct_CC
10181else
10182 CC="$ac_cv_prog_CC"
10183fi
10184
10185if test -z "$CC"; then
10186 if test -n "$ac_tool_prefix"; then
10187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10188set dummy ${ac_tool_prefix}cc; ac_word=$2
10189echo "$as_me:$LINENO: checking for $ac_word" >&5
10190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10191if test "${ac_cv_prog_CC+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 if test -n "$CC"; then
10195 ac_cv_prog_CC="$CC" # Let the user override the test.
10196else
10197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198for as_dir in $PATH
10199do
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204 ac_cv_prog_CC="${ac_tool_prefix}cc"
10205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208done
10209done
10210
10211fi
10212fi
10213CC=$ac_cv_prog_CC
10214if test -n "$CC"; then
10215 echo "$as_me:$LINENO: result: $CC" >&5
10216echo "${ECHO_T}$CC" >&6
10217else
10218 echo "$as_me:$LINENO: result: no" >&5
10219echo "${ECHO_T}no" >&6
10220fi
10221
10222fi
10223if test -z "$ac_cv_prog_CC"; then
10224 ac_ct_CC=$CC
10225 # Extract the first word of "cc", so it can be a program name with args.
10226set dummy cc; ac_word=$2
10227echo "$as_me:$LINENO: checking for $ac_word" >&5
10228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231else
10232 if test -n "$ac_ct_CC"; then
10233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10234else
10235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
10240 for ac_exec_ext in '' $ac_executable_extensions; do
10241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10242 ac_cv_prog_ac_ct_CC="cc"
10243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 break 2
10245 fi
10246done
10247done
10248
10249fi
10250fi
10251ac_ct_CC=$ac_cv_prog_ac_ct_CC
10252if test -n "$ac_ct_CC"; then
10253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10254echo "${ECHO_T}$ac_ct_CC" >&6
10255else
10256 echo "$as_me:$LINENO: result: no" >&5
10257echo "${ECHO_T}no" >&6
10258fi
10259
10260 CC=$ac_ct_CC
10261else
10262 CC="$ac_cv_prog_CC"
10263fi
10264
10265fi
10266if test -z "$CC"; then
10267 # Extract the first word of "cc", so it can be a program name with args.
10268set dummy cc; ac_word=$2
10269echo "$as_me:$LINENO: checking for $ac_word" >&5
10270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10271if test "${ac_cv_prog_CC+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274 if test -n "$CC"; then
10275 ac_cv_prog_CC="$CC" # Let the user override the test.
10276else
10277 ac_prog_rejected=no
10278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10286 ac_prog_rejected=yes
10287 continue
10288 fi
10289 ac_cv_prog_CC="cc"
10290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10292 fi
10293done
10294done
10295
10296if test $ac_prog_rejected = yes; then
10297 # We found a bogon in the path, so make sure we never use it.
10298 set dummy $ac_cv_prog_CC
10299 shift
10300 if test $# != 0; then
10301 # We chose a different compiler from the bogus one.
10302 # However, it has the same basename, so the bogon will be chosen
10303 # first if we set CC to just the basename; use the full file name.
10304 shift
10305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10306 fi
10307fi
10308fi
10309fi
10310CC=$ac_cv_prog_CC
10311if test -n "$CC"; then
10312 echo "$as_me:$LINENO: result: $CC" >&5
10313echo "${ECHO_T}$CC" >&6
10314else
10315 echo "$as_me:$LINENO: result: no" >&5
10316echo "${ECHO_T}no" >&6
10317fi
10318
10319fi
10320if test -z "$CC"; then
10321 if test -n "$ac_tool_prefix"; then
10322 for ac_prog in cl
10323 do
10324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10325set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10326echo "$as_me:$LINENO: checking for $ac_word" >&5
10327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10328if test "${ac_cv_prog_CC+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330else
10331 if test -n "$CC"; then
10332 ac_cv_prog_CC="$CC" # Let the user override the test.
10333else
10334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335for as_dir in $PATH
10336do
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10343 break 2
10344 fi
10345done
10346done
10347
10348fi
10349fi
10350CC=$ac_cv_prog_CC
10351if test -n "$CC"; then
10352 echo "$as_me:$LINENO: result: $CC" >&5
10353echo "${ECHO_T}$CC" >&6
10354else
10355 echo "$as_me:$LINENO: result: no" >&5
10356echo "${ECHO_T}no" >&6
10357fi
10358
10359 test -n "$CC" && break
10360 done
10361fi
10362if test -z "$CC"; then
10363 ac_ct_CC=$CC
10364 for ac_prog in cl
10365do
10366 # Extract the first word of "$ac_prog", so it can be a program name with args.
10367set dummy $ac_prog; ac_word=$2
10368echo "$as_me:$LINENO: checking for $ac_word" >&5
10369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10370if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372else
10373 if test -n "$ac_ct_CC"; then
10374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10375else
10376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377for as_dir in $PATH
10378do
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10383 ac_cv_prog_ac_ct_CC="$ac_prog"
10384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10386 fi
10387done
10388done
10389
10390fi
10391fi
10392ac_ct_CC=$ac_cv_prog_ac_ct_CC
10393if test -n "$ac_ct_CC"; then
10394 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10395echo "${ECHO_T}$ac_ct_CC" >&6
10396else
10397 echo "$as_me:$LINENO: result: no" >&5
10398echo "${ECHO_T}no" >&6
10399fi
10400
10401 test -n "$ac_ct_CC" && break
10402done
10403
10404 CC=$ac_ct_CC
10405fi
10406
10407fi
10408
10409
10410test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10411See \`config.log' for more details." >&5
10412echo "$as_me: error: no acceptable C compiler found in \$PATH
10413See \`config.log' for more details." >&2;}
10414 { (exit 1); exit 1; }; }
10415
10416# Provide some information about the compiler.
10417echo "$as_me:$LINENO:" \
10418 "checking for C compiler version" >&5
10419ac_compiler=`set X $ac_compile; echo $2`
10420{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10421 (eval $ac_compiler --version </dev/null >&5) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }
10425{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10426 (eval $ac_compiler -v </dev/null >&5) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }
10430{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10431 (eval $ac_compiler -V </dev/null >&5) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }
10435
10436cat >conftest.$ac_ext <<_ACEOF
de59c161 10437#line $LINENO "configure"
a848cd7e
SC
10438/* confdefs.h. */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h. */
10443
10444int
10445main ()
10446{
10447
10448 ;
10449 return 0;
10450}
10451_ACEOF
10452ac_clean_files_save=$ac_clean_files
10453ac_clean_files="$ac_clean_files a.out a.exe b.out"
10454# Try to create an executable without -o first, disregard a.out.
10455# It will help us diagnose broken compilers, and finding out an intuition
10456# of exeext.
de59c161
RD
10457echo "$as_me:$LINENO: checking for C compiler default output" >&5
10458echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
a848cd7e
SC
10459ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10460if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10461 (eval $ac_link_default) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; then
10465 # Find the output, starting from the most likely. This scheme is
10466# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10467# resort.
10468
10469# Be careful to initialize this variable, since it used to be cached.
10470# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10471ac_cv_exeext=
10472# b.out is created by i960 compilers.
10473for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10474do
10475 test -f "$ac_file" || continue
10476 case $ac_file in
10477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
de59c161 10478 ;;
a848cd7e 10479 conftest.$ac_ext )
de59c161
RD
10480 # This is the source file.
10481 ;;
a848cd7e 10482 [ab].out )
de59c161
RD
10483 # We found the default executable, but exeext='' is most
10484 # certainly right.
10485 break;;
a848cd7e 10486 *.* )
de59c161
RD
10487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10488 # FIXME: I believe we export ac_cv_exeext for Libtool,
10489 # but it would be cool to find out if it's true. Does anybody
10490 # maintain Libtool? --akim.
10491 export ac_cv_exeext
10492 break;;
a848cd7e 10493 * )
de59c161 10494 break;;
a848cd7e
SC
10495 esac
10496done
10497else
10498 echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
10500
10501{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10502See \`config.log' for more details." >&5
10503echo "$as_me: error: C compiler cannot create executables
10504See \`config.log' for more details." >&2;}
10505 { (exit 77); exit 77; }; }
10506fi
10507
10508ac_exeext=$ac_cv_exeext
10509echo "$as_me:$LINENO: result: $ac_file" >&5
10510echo "${ECHO_T}$ac_file" >&6
10511
10512# Check the compiler produces executables we can run. If not, either
10513# the compiler is broken, or we cross compile.
10514echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10515echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10516# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10517# If not cross compiling, check that we can run a simple program.
10518if test "$cross_compiling" != yes; then
10519 if { ac_try='./$ac_file'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 cross_compiling=no
10526 else
10527 if test "$cross_compiling" = maybe; then
10528 cross_compiling=yes
10529 else
10530 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10531If you meant to cross compile, use \`--host'.
10532See \`config.log' for more details." >&5
10533echo "$as_me: error: cannot run C compiled programs.
10534If you meant to cross compile, use \`--host'.
10535See \`config.log' for more details." >&2;}
10536 { (exit 1); exit 1; }; }
10537 fi
10538 fi
10539fi
10540echo "$as_me:$LINENO: result: yes" >&5
10541echo "${ECHO_T}yes" >&6
10542
10543rm -f a.out a.exe conftest$ac_cv_exeext b.out
10544ac_clean_files=$ac_clean_files_save
10545# Check the compiler produces executables we can run. If not, either
10546# the compiler is broken, or we cross compile.
10547echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10548echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10549echo "$as_me:$LINENO: result: $cross_compiling" >&5
10550echo "${ECHO_T}$cross_compiling" >&6
10551
10552echo "$as_me:$LINENO: checking for suffix of executables" >&5
10553echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555 (eval $ac_link) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; then
10559 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10560# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10561# work properly (i.e., refer to `conftest.exe'), while it won't with
10562# `rm'.
10563for ac_file in conftest.exe conftest conftest.*; do
10564 test -f "$ac_file" || continue
10565 case $ac_file in
10566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10567 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
de59c161
RD
10568 export ac_cv_exeext
10569 break;;
a848cd7e
SC
10570 * ) break;;
10571 esac
10572done
10573else
10574 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10575See \`config.log' for more details." >&5
10576echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10577See \`config.log' for more details." >&2;}
10578 { (exit 1); exit 1; }; }
10579fi
10580
10581rm -f conftest$ac_cv_exeext
10582echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10583echo "${ECHO_T}$ac_cv_exeext" >&6
10584
10585rm -f conftest.$ac_ext
10586EXEEXT=$ac_cv_exeext
10587ac_exeext=$EXEEXT
10588echo "$as_me:$LINENO: checking for suffix of object files" >&5
10589echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10590if test "${ac_cv_objext+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592else
10593 cat >conftest.$ac_ext <<_ACEOF
de59c161 10594#line $LINENO "configure"
a848cd7e
SC
10595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
10600
10601int
10602main ()
10603{
10604
10605 ;
10606 return 0;
10607}
10608_ACEOF
10609rm -f conftest.o conftest.obj
10610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611 (eval $ac_compile) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; then
10615 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10616 case $ac_file in
10617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10619 break;;
10620 esac
10621done
10622else
10623 echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
10625
10626{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10627See \`config.log' for more details." >&5
10628echo "$as_me: error: cannot compute suffix of object files: cannot compile
10629See \`config.log' for more details." >&2;}
10630 { (exit 1); exit 1; }; }
10631fi
10632
10633rm -f conftest.$ac_cv_objext conftest.$ac_ext
10634fi
10635echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10636echo "${ECHO_T}$ac_cv_objext" >&6
10637OBJEXT=$ac_cv_objext
10638ac_objext=$OBJEXT
10639echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10640echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10641if test "${ac_cv_c_compiler_gnu+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643else
10644 cat >conftest.$ac_ext <<_ACEOF
de59c161 10645#line $LINENO "configure"
a848cd7e
SC
10646/* confdefs.h. */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h. */
10651
10652int
10653main ()
10654{
10655#ifndef __GNUC__
10656 choke me
10657#endif
10658
10659 ;
10660 return 0;
10661}
10662_ACEOF
10663rm -f conftest.$ac_objext
10664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 10665 (eval $ac_compile) 2>&5
a848cd7e 10666 ac_status=$?
a848cd7e
SC
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
de59c161 10669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_compiler_gnu=yes
10676else
10677 echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680ac_compiler_gnu=no
10681fi
de59c161 10682rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10683ac_cv_c_compiler_gnu=$ac_compiler_gnu
10684
10685fi
10686echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10687echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10688GCC=`test $ac_compiler_gnu = yes && echo yes`
10689ac_test_CFLAGS=${CFLAGS+set}
10690ac_save_CFLAGS=$CFLAGS
10691CFLAGS="-g"
10692echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10693echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10694if test "${ac_cv_prog_cc_g+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696else
10697 cat >conftest.$ac_ext <<_ACEOF
de59c161 10698#line $LINENO "configure"
a848cd7e
SC
10699/* confdefs.h. */
10700_ACEOF
10701cat confdefs.h >>conftest.$ac_ext
10702cat >>conftest.$ac_ext <<_ACEOF
10703/* end confdefs.h. */
10704
10705int
10706main ()
10707{
10708
10709 ;
10710 return 0;
10711}
10712_ACEOF
10713rm -f conftest.$ac_objext
10714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 10715 (eval $ac_compile) 2>&5
a848cd7e 10716 ac_status=$?
a848cd7e
SC
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
de59c161 10719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_prog_cc_g=yes
10726else
10727 echo "$as_me: failed program was:" >&5
10728sed 's/^/| /' conftest.$ac_ext >&5
10729
10730ac_cv_prog_cc_g=no
10731fi
de59c161 10732rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10733fi
10734echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10735echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10736if test "$ac_test_CFLAGS" = set; then
10737 CFLAGS=$ac_save_CFLAGS
10738elif test $ac_cv_prog_cc_g = yes; then
10739 if test "$GCC" = yes; then
10740 CFLAGS="-g -O2"
10741 else
10742 CFLAGS="-g"
10743 fi
10744else
10745 if test "$GCC" = yes; then
10746 CFLAGS="-O2"
10747 else
10748 CFLAGS=
10749 fi
10750fi
10751echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10752echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10753if test "${ac_cv_prog_cc_stdc+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755else
10756 ac_cv_prog_cc_stdc=no
10757ac_save_CC=$CC
10758cat >conftest.$ac_ext <<_ACEOF
de59c161 10759#line $LINENO "configure"
a848cd7e
SC
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765#include <stdarg.h>
10766#include <stdio.h>
10767#include <sys/types.h>
10768#include <sys/stat.h>
10769/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10770struct buf { int x; };
10771FILE * (*rcsopen) (struct buf *, struct stat *, int);
10772static char *e (p, i)
10773 char **p;
10774 int i;
10775{
10776 return p[i];
10777}
10778static char *f (char * (*g) (char **, int), char **p, ...)
10779{
10780 char *s;
10781 va_list v;
10782 va_start (v,p);
10783 s = g (p, va_arg (v,int));
10784 va_end (v);
10785 return s;
10786}
a848cd7e
SC
10787int test (int i, double x);
10788struct s1 {int (*f) (int a);};
10789struct s2 {int (*f) (double a);};
10790int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10791int argc;
10792char **argv;
10793int
10794main ()
10795{
10796return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10797 ;
10798 return 0;
10799}
10800_ACEOF
10801# Don't try gcc -ansi; that turns off useful extensions and
10802# breaks some systems' header files.
10803# AIX -qlanglvl=ansi
10804# Ultrix and OSF/1 -std1
10805# HP-UX 10.20 and later -Ae
10806# HP-UX older versions -Aa -D_HPUX_SOURCE
10807# SVR4 -Xc -D__EXTENSIONS__
10808for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10809do
10810 CC="$ac_save_CC $ac_arg"
10811 rm -f conftest.$ac_objext
10812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 10813 (eval $ac_compile) 2>&5
a848cd7e 10814 ac_status=$?
a848cd7e
SC
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
de59c161 10817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_cv_prog_cc_stdc=$ac_arg
10824break
10825else
10826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
10829fi
de59c161 10830rm -f conftest.$ac_objext
a848cd7e
SC
10831done
10832rm -f conftest.$ac_ext conftest.$ac_objext
10833CC=$ac_save_CC
10834
10835fi
10836
10837case "x$ac_cv_prog_cc_stdc" in
10838 x|xno)
10839 echo "$as_me:$LINENO: result: none needed" >&5
10840echo "${ECHO_T}none needed" >&6 ;;
10841 *)
10842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10843echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10844 CC="$CC $ac_cv_prog_cc_stdc" ;;
10845esac
10846
10847# Some people use a C++ compiler to compile C. Since we use `exit',
10848# in C++ we need to declare it. In case someone uses the same compiler
10849# for both compiling C and C++ we need to have the C++ compiler decide
10850# the declaration of exit, since it's the most demanding environment.
10851cat >conftest.$ac_ext <<_ACEOF
10852#ifndef __cplusplus
10853 choke me
10854#endif
10855_ACEOF
10856rm -f conftest.$ac_objext
10857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 10858 (eval $ac_compile) 2>&5
a848cd7e 10859 ac_status=$?
a848cd7e
SC
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } &&
de59c161 10862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; }; then
10868 for ac_declaration in \
de59c161
RD
10869 ''\
10870 '#include <stdlib.h>' \
a848cd7e
SC
10871 'extern "C" void std::exit (int) throw (); using std::exit;' \
10872 'extern "C" void std::exit (int); using std::exit;' \
10873 'extern "C" void exit (int) throw ();' \
10874 'extern "C" void exit (int);' \
10875 'void exit (int);'
10876do
10877 cat >conftest.$ac_ext <<_ACEOF
de59c161 10878#line $LINENO "configure"
a848cd7e
SC
10879/* confdefs.h. */
10880_ACEOF
10881cat confdefs.h >>conftest.$ac_ext
10882cat >>conftest.$ac_ext <<_ACEOF
10883/* end confdefs.h. */
a848cd7e 10884#include <stdlib.h>
de59c161 10885$ac_declaration
a848cd7e
SC
10886int
10887main ()
10888{
10889exit (42);
10890 ;
10891 return 0;
10892}
10893_ACEOF
10894rm -f conftest.$ac_objext
10895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 10896 (eval $ac_compile) 2>&5
a848cd7e 10897 ac_status=$?
a848cd7e
SC
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
de59c161 10900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 :
10907else
10908 echo "$as_me: failed program was:" >&5
10909sed 's/^/| /' conftest.$ac_ext >&5
10910
10911continue
10912fi
de59c161 10913rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 10914 cat >conftest.$ac_ext <<_ACEOF
de59c161 10915#line $LINENO "configure"
a848cd7e
SC
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
10920/* end confdefs.h. */
10921$ac_declaration
10922int
10923main ()
10924{
10925exit (42);
10926 ;
10927 return 0;
10928}
10929_ACEOF
10930rm -f conftest.$ac_objext
10931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 10932 (eval $ac_compile) 2>&5
a848cd7e 10933 ac_status=$?
a848cd7e
SC
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
de59c161 10936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 break
10943else
10944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947fi
de59c161 10948rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10949done
10950rm -f conftest*
10951if test -n "$ac_declaration"; then
10952 echo '#ifdef __cplusplus' >>confdefs.h
10953 echo $ac_declaration >>confdefs.h
10954 echo '#endif' >>confdefs.h
10955fi
10956
10957else
10958 echo "$as_me: failed program was:" >&5
10959sed 's/^/| /' conftest.$ac_ext >&5
10960
10961fi
de59c161 10962rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10963ac_ext=c
10964ac_cpp='$CPP $CPPFLAGS'
10965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10967ac_compiler_gnu=$ac_cv_c_compiler_gnu
10968
10969
10970
10971ac_ext=c
10972ac_cpp='$CPP $CPPFLAGS'
10973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10977echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10978# On Suns, sometimes $CPP names a directory.
10979if test -n "$CPP" && test -d "$CPP"; then
10980 CPP=
10981fi
10982if test -z "$CPP"; then
10983 if test "${ac_cv_prog_CPP+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985else
10986 # Double quotes because CPP needs to be expanded
10987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10988 do
10989 ac_preproc_ok=false
10990for ac_c_preproc_warn_flag in '' yes
10991do
10992 # Use a header file that comes with gcc, so configuring glibc
10993 # with a fresh cross-compiler works.
10994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10995 # <limits.h> exists even on freestanding compilers.
10996 # On the NeXT, cc -E runs the code through the compiler's parser,
10997 # not just through cpp. "Syntax error" is here to catch this case.
10998 cat >conftest.$ac_ext <<_ACEOF
de59c161 10999#line $LINENO "configure"
a848cd7e
SC
11000/* confdefs.h. */
11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */
11005#ifdef __STDC__
11006# include <limits.h>
11007#else
11008# include <assert.h>
11009#endif
de59c161 11010 Syntax error
a848cd7e
SC
11011_ACEOF
11012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } >/dev/null; then
11020 if test -s conftest.err; then
11021 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
11022 else
11023 ac_cpp_err=
11024 fi
11025else
11026 ac_cpp_err=yes
11027fi
11028if test -z "$ac_cpp_err"; then
11029 :
11030else
11031 echo "$as_me: failed program was:" >&5
11032sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 # Broken: fails on valid input.
11035continue
11036fi
11037rm -f conftest.err conftest.$ac_ext
11038
11039 # OK, works on sane cases. Now check whether non-existent headers
11040 # can be detected and how.
11041 cat >conftest.$ac_ext <<_ACEOF
de59c161 11042#line $LINENO "configure"
a848cd7e
SC
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048#include <ac_nonexistent.h>
11049_ACEOF
11050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null; then
11058 if test -s conftest.err; then
11059 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
11060 else
11061 ac_cpp_err=
11062 fi
11063else
11064 ac_cpp_err=yes
11065fi
11066if test -z "$ac_cpp_err"; then
11067 # Broken: success on invalid input.
11068continue
11069else
11070 echo "$as_me: failed program was:" >&5
11071sed 's/^/| /' conftest.$ac_ext >&5
11072
11073 # Passes both tests.
11074ac_preproc_ok=:
11075break
11076fi
11077rm -f conftest.err conftest.$ac_ext
11078
11079done
11080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11081rm -f conftest.err conftest.$ac_ext
11082if $ac_preproc_ok; then
11083 break
11084fi
11085
11086 done
11087 ac_cv_prog_CPP=$CPP
11088
11089fi
11090 CPP=$ac_cv_prog_CPP
11091else
11092 ac_cv_prog_CPP=$CPP
11093fi
11094echo "$as_me:$LINENO: result: $CPP" >&5
11095echo "${ECHO_T}$CPP" >&6
11096ac_preproc_ok=false
11097for ac_c_preproc_warn_flag in '' yes
11098do
11099 # Use a header file that comes with gcc, so configuring glibc
11100 # with a fresh cross-compiler works.
11101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102 # <limits.h> exists even on freestanding compilers.
11103 # On the NeXT, cc -E runs the code through the compiler's parser,
11104 # not just through cpp. "Syntax error" is here to catch this case.
11105 cat >conftest.$ac_ext <<_ACEOF
de59c161 11106#line $LINENO "configure"
a848cd7e
SC
11107/* confdefs.h. */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h. */
11112#ifdef __STDC__
11113# include <limits.h>
11114#else
11115# include <assert.h>
11116#endif
de59c161 11117 Syntax error
a848cd7e
SC
11118_ACEOF
11119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11121 ac_status=$?
11122 grep -v '^ *+' conftest.er1 >conftest.err
11123 rm -f conftest.er1
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } >/dev/null; then
11127 if test -s conftest.err; then
11128 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
11129 else
11130 ac_cpp_err=
11131 fi
11132else
11133 ac_cpp_err=yes
11134fi
11135if test -z "$ac_cpp_err"; then
11136 :
11137else
11138 echo "$as_me: failed program was:" >&5
11139sed 's/^/| /' conftest.$ac_ext >&5
11140
11141 # Broken: fails on valid input.
11142continue
11143fi
11144rm -f conftest.err conftest.$ac_ext
11145
11146 # OK, works on sane cases. Now check whether non-existent headers
11147 # can be detected and how.
11148 cat >conftest.$ac_ext <<_ACEOF
de59c161 11149#line $LINENO "configure"
a848cd7e
SC
11150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */
11155#include <ac_nonexistent.h>
11156_ACEOF
11157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } >/dev/null; then
11165 if test -s conftest.err; then
11166 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
11167 else
11168 ac_cpp_err=
11169 fi
11170else
11171 ac_cpp_err=yes
11172fi
11173if test -z "$ac_cpp_err"; then
11174 # Broken: success on invalid input.
11175continue
11176else
11177 echo "$as_me: failed program was:" >&5
11178sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 # Passes both tests.
11181ac_preproc_ok=:
11182break
11183fi
11184rm -f conftest.err conftest.$ac_ext
11185
11186done
11187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11188rm -f conftest.err conftest.$ac_ext
11189if $ac_preproc_ok; then
11190 :
11191else
11192 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11193See \`config.log' for more details." >&5
11194echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11195See \`config.log' for more details." >&2;}
11196 { (exit 1); exit 1; }; }
11197fi
11198
11199ac_ext=c
11200ac_cpp='$CPP $CPPFLAGS'
11201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11203ac_compiler_gnu=$ac_cv_c_compiler_gnu
11204
11205
11206echo "$as_me:$LINENO: checking for egrep" >&5
11207echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11208if test "${ac_cv_prog_egrep+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210else
11211 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11212 then ac_cv_prog_egrep='grep -E'
11213 else ac_cv_prog_egrep='egrep'
11214 fi
11215fi
11216echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11217echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11218 EGREP=$ac_cv_prog_egrep
11219
11220
11221if test $ac_cv_c_compiler_gnu = yes; then
11222 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11223echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11224if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226else
11227 ac_pattern="Autoconf.*'x'"
11228 cat >conftest.$ac_ext <<_ACEOF
de59c161 11229#line $LINENO "configure"
a848cd7e
SC
11230/* confdefs.h. */
11231_ACEOF
11232cat confdefs.h >>conftest.$ac_ext
11233cat >>conftest.$ac_ext <<_ACEOF
11234/* end confdefs.h. */
11235#include <sgtty.h>
11236Autoconf TIOCGETP
11237_ACEOF
11238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11239 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11240 ac_cv_prog_gcc_traditional=yes
11241else
11242 ac_cv_prog_gcc_traditional=no
11243fi
11244rm -f conftest*
11245
11246
11247 if test $ac_cv_prog_gcc_traditional = no; then
11248 cat >conftest.$ac_ext <<_ACEOF
de59c161 11249#line $LINENO "configure"
a848cd7e
SC
11250/* confdefs.h. */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h. */
11255#include <termio.h>
11256Autoconf TCGETA
11257_ACEOF
11258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11259 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11260 ac_cv_prog_gcc_traditional=yes
11261fi
11262rm -f conftest*
11263
11264 fi
11265fi
11266echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11267echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11268 if test $ac_cv_prog_gcc_traditional = yes; then
11269 CC="$CC -traditional"
11270 fi
11271fi
11272
11273
11274
11275
11276ac_ext=cc
11277ac_cpp='$CXXCPP $CPPFLAGS'
11278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11281
11282
11283CXXFLAGS=${CXXFLAGS:=}
11284ac_ext=cc
11285ac_cpp='$CXXCPP $CPPFLAGS'
11286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11289if test -n "$ac_tool_prefix"; then
11290 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11291 do
11292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11294echo "$as_me:$LINENO: checking for $ac_word" >&5
11295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11296if test "${ac_cv_prog_CXX+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298else
11299 if test -n "$CXX"; then
11300 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11301else
11302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303for as_dir in $PATH
11304do
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 break 2
11312 fi
11313done
11314done
11315
11316fi
11317fi
11318CXX=$ac_cv_prog_CXX
11319if test -n "$CXX"; then
11320 echo "$as_me:$LINENO: result: $CXX" >&5
11321echo "${ECHO_T}$CXX" >&6
11322else
11323 echo "$as_me:$LINENO: result: no" >&5
11324echo "${ECHO_T}no" >&6
11325fi
11326
11327 test -n "$CXX" && break
11328 done
11329fi
11330if test -z "$CXX"; then
11331 ac_ct_CXX=$CXX
11332 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11333do
11334 # Extract the first word of "$ac_prog", so it can be a program name with args.
11335set dummy $ac_prog; ac_word=$2
11336echo "$as_me:$LINENO: checking for $ac_word" >&5
11337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11338if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340else
11341 if test -n "$ac_ct_CXX"; then
11342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11343else
11344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345for as_dir in $PATH
11346do
11347 IFS=$as_save_IFS
11348 test -z "$as_dir" && as_dir=.
11349 for ac_exec_ext in '' $ac_executable_extensions; do
11350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11351 ac_cv_prog_ac_ct_CXX="$ac_prog"
11352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11353 break 2
11354 fi
11355done
11356done
11357
11358fi
11359fi
11360ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11361if test -n "$ac_ct_CXX"; then
11362 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11363echo "${ECHO_T}$ac_ct_CXX" >&6
11364else
11365 echo "$as_me:$LINENO: result: no" >&5
11366echo "${ECHO_T}no" >&6
11367fi
11368
11369 test -n "$ac_ct_CXX" && break
11370done
11371test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11372
11373 CXX=$ac_ct_CXX
11374fi
11375
11376
11377# Provide some information about the compiler.
11378echo "$as_me:$LINENO:" \
11379 "checking for C++ compiler version" >&5
11380ac_compiler=`set X $ac_compile; echo $2`
11381{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11382 (eval $ac_compiler --version </dev/null >&5) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }
11386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11387 (eval $ac_compiler -v </dev/null >&5) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }
11391{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11392 (eval $ac_compiler -V </dev/null >&5) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }
11396
11397echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11398echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11399if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 cat >conftest.$ac_ext <<_ACEOF
de59c161 11403#line $LINENO "configure"
a848cd7e
SC
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409
11410int
11411main ()
11412{
11413#ifndef __GNUC__
11414 choke me
11415#endif
11416
11417 ;
11418 return 0;
11419}
11420_ACEOF
11421rm -f conftest.$ac_objext
11422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 11423 (eval $ac_compile) 2>&5
a848cd7e 11424 ac_status=$?
a848cd7e
SC
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
de59c161 11427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; }; then
11433 ac_compiler_gnu=yes
11434else
11435 echo "$as_me: failed program was:" >&5
11436sed 's/^/| /' conftest.$ac_ext >&5
11437
11438ac_compiler_gnu=no
11439fi
de59c161 11440rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11441ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11442
11443fi
11444echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11445echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11446GXX=`test $ac_compiler_gnu = yes && echo yes`
11447ac_test_CXXFLAGS=${CXXFLAGS+set}
11448ac_save_CXXFLAGS=$CXXFLAGS
11449CXXFLAGS="-g"
11450echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11451echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11452if test "${ac_cv_prog_cxx_g+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454else
11455 cat >conftest.$ac_ext <<_ACEOF
de59c161 11456#line $LINENO "configure"
a848cd7e
SC
11457/* confdefs.h. */
11458_ACEOF
11459cat confdefs.h >>conftest.$ac_ext
11460cat >>conftest.$ac_ext <<_ACEOF
11461/* end confdefs.h. */
11462
11463int
11464main ()
11465{
11466
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471rm -f conftest.$ac_objext
11472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 11473 (eval $ac_compile) 2>&5
a848cd7e 11474 ac_status=$?
a848cd7e
SC
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
de59c161 11477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_prog_cxx_g=yes
11484else
11485 echo "$as_me: failed program was:" >&5
11486sed 's/^/| /' conftest.$ac_ext >&5
11487
11488ac_cv_prog_cxx_g=no
11489fi
de59c161 11490rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11491fi
11492echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11493echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11494if test "$ac_test_CXXFLAGS" = set; then
11495 CXXFLAGS=$ac_save_CXXFLAGS
11496elif test $ac_cv_prog_cxx_g = yes; then
11497 if test "$GXX" = yes; then
11498 CXXFLAGS="-g -O2"
11499 else
11500 CXXFLAGS="-g"
11501 fi
11502else
11503 if test "$GXX" = yes; then
11504 CXXFLAGS="-O2"
11505 else
11506 CXXFLAGS=
11507 fi
11508fi
11509for ac_declaration in \
de59c161
RD
11510 ''\
11511 '#include <stdlib.h>' \
a848cd7e
SC
11512 'extern "C" void std::exit (int) throw (); using std::exit;' \
11513 'extern "C" void std::exit (int); using std::exit;' \
11514 'extern "C" void exit (int) throw ();' \
11515 'extern "C" void exit (int);' \
11516 'void exit (int);'
11517do
11518 cat >conftest.$ac_ext <<_ACEOF
de59c161 11519#line $LINENO "configure"
a848cd7e
SC
11520/* confdefs.h. */
11521_ACEOF
11522cat confdefs.h >>conftest.$ac_ext
11523cat >>conftest.$ac_ext <<_ACEOF
11524/* end confdefs.h. */
a848cd7e 11525#include <stdlib.h>
de59c161 11526$ac_declaration
a848cd7e
SC
11527int
11528main ()
11529{
11530exit (42);
11531 ;
11532 return 0;
11533}
11534_ACEOF
11535rm -f conftest.$ac_objext
11536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 11537 (eval $ac_compile) 2>&5
a848cd7e 11538 ac_status=$?
a848cd7e
SC
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
de59c161 11541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 :
11548else
11549 echo "$as_me: failed program was:" >&5
11550sed 's/^/| /' conftest.$ac_ext >&5
11551
11552continue
11553fi
de59c161 11554rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 11555 cat >conftest.$ac_ext <<_ACEOF
de59c161 11556#line $LINENO "configure"
a848cd7e
SC
11557/* confdefs.h. */
11558_ACEOF
11559cat confdefs.h >>conftest.$ac_ext
11560cat >>conftest.$ac_ext <<_ACEOF
11561/* end confdefs.h. */
11562$ac_declaration
11563int
11564main ()
11565{
11566exit (42);
11567 ;
11568 return 0;
11569}
11570_ACEOF
11571rm -f conftest.$ac_objext
11572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 11573 (eval $ac_compile) 2>&5
a848cd7e 11574 ac_status=$?
a848cd7e
SC
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
de59c161 11577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 break
11584else
11585 echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
11587
11588fi
de59c161 11589rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11590done
11591rm -f conftest*
11592if test -n "$ac_declaration"; then
11593 echo '#ifdef __cplusplus' >>confdefs.h
11594 echo $ac_declaration >>confdefs.h
11595 echo '#endif' >>confdefs.h
11596fi
11597
11598ac_ext=cc
11599ac_cpp='$CXXCPP $CPPFLAGS'
11600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11603
11604
11605ac_ext=c
11606ac_cpp='$CPP $CPPFLAGS'
11607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11609ac_compiler_gnu=$ac_cv_c_compiler_gnu
11610
11611
11612echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11613echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11614GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11615if test "$GCC" = "yes" ; then
11616 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11617 sed -n '1,/End of search list\./p' | \
11618 grep '^ */usr/local/include$' 2>&1 /dev/null \
11619 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11620fi
11621echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11622echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11623
11624if test -n "$ac_tool_prefix"; then
11625 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11626set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11627echo "$as_me:$LINENO: checking for $ac_word" >&5
11628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11629if test "${ac_cv_prog_RANLIB+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 if test -n "$RANLIB"; then
11633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11634else
11635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH
11637do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 break 2
11645 fi
11646done
11647done
11648
11649fi
11650fi
11651RANLIB=$ac_cv_prog_RANLIB
11652if test -n "$RANLIB"; then
11653 echo "$as_me:$LINENO: result: $RANLIB" >&5
11654echo "${ECHO_T}$RANLIB" >&6
11655else
11656 echo "$as_me:$LINENO: result: no" >&5
11657echo "${ECHO_T}no" >&6
11658fi
11659
11660fi
11661if test -z "$ac_cv_prog_RANLIB"; then
11662 ac_ct_RANLIB=$RANLIB
11663 # Extract the first word of "ranlib", so it can be a program name with args.
11664set dummy ranlib; ac_word=$2
11665echo "$as_me:$LINENO: checking for $ac_word" >&5
11666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11667if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669else
11670 if test -n "$ac_ct_RANLIB"; then
11671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11672else
11673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674for as_dir in $PATH
11675do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11680 ac_cv_prog_ac_ct_RANLIB="ranlib"
11681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11683 fi
11684done
11685done
11686
11687 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11688fi
11689fi
11690ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11691if test -n "$ac_ct_RANLIB"; then
11692 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11693echo "${ECHO_T}$ac_ct_RANLIB" >&6
11694else
11695 echo "$as_me:$LINENO: result: no" >&5
11696echo "${ECHO_T}no" >&6
11697fi
11698
11699 RANLIB=$ac_ct_RANLIB
11700else
11701 RANLIB="$ac_cv_prog_RANLIB"
11702fi
11703
11704
11705# Extract the first word of "ar", so it can be a program name with args.
11706set dummy ar; ac_word=$2
11707echo "$as_me:$LINENO: checking for $ac_word" >&5
11708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11709if test "${ac_cv_prog_AR+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711else
11712 if test -n "$AR"; then
11713 ac_cv_prog_AR="$AR" # Let the user override the test.
11714else
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_AR="ar"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727done
11728
11729fi
11730fi
11731AR=$ac_cv_prog_AR
11732if test -n "$AR"; then
11733 echo "$as_me:$LINENO: result: $AR" >&5
11734echo "${ECHO_T}$AR" >&6
11735else
11736 echo "$as_me:$LINENO: result: no" >&5
11737echo "${ECHO_T}no" >&6
11738fi
11739
11740if test "x$AR" = "x" ; then
77ffb593
JS
11741 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11742echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11743 { (exit 1); exit 1; }; }
11744fi
11745
11746# Find a good install program. We prefer a C program (faster),
11747# so one script is as good as another. But avoid the broken or
11748# incompatible versions:
11749# SysV /etc/install, /usr/sbin/install
11750# SunOS /usr/etc/install
11751# IRIX /sbin/install
11752# AIX /bin/install
11753# AmigaOS /C/install, which installs bootblocks on floppy discs
11754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11755# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a848cd7e
SC
11757# ./install, which can be erroneously created by make from ./install.sh.
11758echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11759echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11760if test -z "$INSTALL"; then
11761if test "${ac_cv_path_install+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765for as_dir in $PATH
11766do
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 # Account for people who put trailing slashes in PATH elements.
11770case $as_dir/ in
11771 ./ | .// | /cC/* | \
11772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a848cd7e
SC
11773 /usr/ucb/* ) ;;
11774 *)
11775 # OSF1 and SCO ODT 3.0 have their own names for install.
11776 # Don't use installbsd from OSF since it installs stuff as root
11777 # by default.
11778 for ac_prog in ginstall scoinst install; do
11779 for ac_exec_ext in '' $ac_executable_extensions; do
de59c161
RD
11780 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11781 if test $ac_prog = install &&
11782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11783 # AIX install. It has an incompatible calling convention.
11784 :
11785 elif test $ac_prog = install &&
11786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11787 # program-specific install script used by HP pwplus--don't use.
11788 :
11789 else
11790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11791 break 3
11792 fi
11793 fi
a848cd7e
SC
11794 done
11795 done
11796 ;;
11797esac
11798done
11799
11800
11801fi
11802 if test "${ac_cv_path_install+set}" = set; then
11803 INSTALL=$ac_cv_path_install
11804 else
11805 # As a last resort, use the slow shell script. We don't cache a
11806 # path for INSTALL within a source directory, because that will
11807 # break other packages using the cache if that directory is
11808 # removed, or if the path is relative.
11809 INSTALL=$ac_install_sh
11810 fi
11811fi
11812echo "$as_me:$LINENO: result: $INSTALL" >&5
11813echo "${ECHO_T}$INSTALL" >&6
11814
11815# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11816# It thinks the first close brace ends the variable substitution.
11817test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11818
11819test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11820
11821test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11822
11823
11824case ${INSTALL} in
11825 /* ) # Absolute
11826 ;;
11827 ?:* ) # Drive letter, considered as absolute.
11828 ;;
11829 *)
11830 INSTALL=`pwd`/${INSTALL} ;;
11831esac
11832
11833case ${host} in
11834 *-hp-hpux* )
11835 INSTALL_DIR="mkdir"
11836 ;;
11837
11838 *) INSTALL_DIR="$INSTALL -d"
11839 ;;
11840esac
11841
11842
11843case "${host}" in
11844
11845 powerpc-*-darwin* )
11846 INSTALL_PROGRAM="cp -fp"
11847 INSTALL_DATA="cp -fp"
11848 ;;
11849 *)
11850 ;;
11851esac
11852
11853# Extract the first word of "strip", so it can be a program name with args.
11854set dummy strip; ac_word=$2
11855echo "$as_me:$LINENO: checking for $ac_word" >&5
11856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11857if test "${ac_cv_prog_STRIP+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859else
11860 if test -n "$STRIP"; then
11861 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11862else
11863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864for as_dir in $PATH
11865do
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11870 ac_cv_prog_STRIP="strip"
11871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11873 fi
11874done
11875done
11876
11877 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11878fi
11879fi
11880STRIP=$ac_cv_prog_STRIP
11881if test -n "$STRIP"; then
11882 echo "$as_me:$LINENO: result: $STRIP" >&5
11883echo "${ECHO_T}$STRIP" >&6
11884else
11885 echo "$as_me:$LINENO: result: no" >&5
11886echo "${ECHO_T}no" >&6
11887fi
11888
11889
11890echo "$as_me:$LINENO: checking if make is GNU make" >&5
11891echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11892if test "${wx_cv_prog_makeisgnu+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894else
11895
11896 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11897 egrep -s GNU > /dev/null); then
11898 wx_cv_prog_makeisgnu="yes"
11899 else
11900 wx_cv_prog_makeisgnu="no"
11901 fi
11902
11903fi
11904echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11905echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11906
11907if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11908 IF_GNU_MAKE=""
11909else
11910 IF_GNU_MAKE="#"
11911fi
11912
11913
11914
11915if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11916echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11917echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11918if test "${wx_cv_prog_makevpath+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921
11922cat - << EOF > confMake
11923check : file
11924 cp \$? \$@
11925 cp \$? final_file
11926EOF
11927
11928if test ! -d sub ; then
11929 mkdir sub
11930fi
11931echo dummy > sub/file
11932${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11933RESULT=$?
11934rm -f sub/file check final_file confMake
11935rmdir sub
11936if test "$RESULT" = 0; then
11937 wx_cv_prog_makevpath="yes"
11938else
11939 wx_cv_prog_makevpath="no"
11940fi
11941
11942fi
11943echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11944echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11945
11946if test "x$wx_cv_prog_makevpath" != "xyes"; then
11947{ { echo "$as_me:$LINENO: error:
11948You need a make-utility that is able to use the variable
11949VPATH correctly.
11950If your version of make does not support VPATH correctly,
11951please install GNU-make (possibly as gmake), and start
11952configure with the following command:
11953export MAKE=gmake; ./configure for sh-type shells
11954setenv MAKE gmake; ./configure for csh-type shells
11955Also please do remember to use gmake in this case every time
11956you are trying to compile.
11957" >&5
11958echo "$as_me: error:
11959You need a make-utility that is able to use the variable
11960VPATH correctly.
11961If your version of make does not support VPATH correctly,
11962please install GNU-make (possibly as gmake), and start
11963configure with the following command:
11964export MAKE=gmake; ./configure for sh-type shells
11965setenv MAKE gmake; ./configure for csh-type shells
11966Also please do remember to use gmake in this case every time
11967you are trying to compile.
11968" >&2;}
11969 { (exit 1); exit 1; }; }
11970fi fi
11971echo "$as_me:$LINENO: checking whether ln -s works" >&5
11972echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11973LN_S=$as_ln_s
11974if test "$LN_S" = "ln -s"; then
11975 echo "$as_me:$LINENO: result: yes" >&5
11976echo "${ECHO_T}yes" >&6
11977else
11978 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11979echo "${ECHO_T}no, using $LN_S" >&6
11980fi
11981
11982
11983
11984case "${host}" in
11985 *-pc-os2_emx | *-pc-os2-emx )
11986 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11987 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11988echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11989if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991else
11992 ac_check_lib_save_LIBS=$LIBS
11993LIBS="-lcExt $LIBS"
11994cat >conftest.$ac_ext <<_ACEOF
de59c161 11995#line $LINENO "configure"
a848cd7e
SC
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
12001
12002/* Override any gcc2 internal prototype to avoid an error. */
12003#ifdef __cplusplus
12004extern "C"
12005#endif
12006/* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12008char drand48 ();
12009int
12010main ()
12011{
12012drand48 ();
12013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext conftest$ac_exeext
12018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 12019 (eval $ac_link) 2>&5
a848cd7e 12020 ac_status=$?
a848cd7e
SC
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
de59c161 12023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_cv_lib_cExt_drand48=yes
12030else
12031 echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034ac_cv_lib_cExt_drand48=no
12035fi
de59c161 12036rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12037LIBS=$ac_check_lib_save_LIBS
12038fi
12039echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12040echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12041if test $ac_cv_lib_cExt_drand48 = yes; then
12042 LIBS="$LIBS -lcExt"
12043fi
12044
12045 else
12046 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12047 fi
12048 echo "$as_me:$LINENO: checking for gcc version" >&5
12049echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12050if test "${wx_cv_gccversion+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052else
12053
12054 cat >conftest.$ac_ext <<_ACEOF
de59c161 12055#line $LINENO "configure"
a848cd7e
SC
12056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */
12061
12062int
12063main ()
12064{
12065
12066 #if (__GNUC__ < 3)
12067 #error old gcc
12068 #endif
12069
12070 ;
12071 return 0;
12072}
12073_ACEOF
12074rm -f conftest.$ac_objext
12075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 12076 (eval $ac_compile) 2>&5
a848cd7e 12077 ac_status=$?
a848cd7e
SC
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
de59c161 12080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086
12087 cat >conftest.$ac_ext <<_ACEOF
de59c161 12088#line $LINENO "configure"
a848cd7e
SC
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094
12095int
12096main ()
12097{
12098
12099 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12100 #error intermediate gcc
12101 #endif
12102
12103 ;
12104 return 0;
12105}
12106_ACEOF
12107rm -f conftest.$ac_objext
12108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 12109 (eval $ac_compile) 2>&5
a848cd7e 12110 ac_status=$?
a848cd7e
SC
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
de59c161 12113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119
12120 wx_cv_gccversion=Innotek
12121
12122else
12123 echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
12126
12127 wx_cv_gccversion=3
12128
12129
12130fi
de59c161 12131rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12132
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137
12138 wx_cv_gccversion=2
12139
12140
12141fi
de59c161 12142rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12143
12144fi
12145echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12146echo "${ECHO_T}$wx_cv_gccversion" >&6
12147 if test "$wx_cv_gccversion" = "2"; then
12148 LIBS="$LIBS -lstdcpp"
12149 LDFLAGS="$LDFLAGS -Zsysv-signals"
12150 else
12151 if test "$wx_cv_gccversion" = "3"; then
12152 LIBS="$LIBS -lstdcxx"
12153 LDFLAGS="$LDFLAGS -Zsysv-signals"
12154 else
12155 LIBS="$LIBS -lstdc++"
12156 fi
12157 fi
12158 if test "$wxUSE_OMF" = "yes"; then
de59c161 12159 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12160 fi
12161 ;;
12162 *)
12163
12164
12165
12166 ac_ext=cc
12167ac_cpp='$CXXCPP $CPPFLAGS'
12168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12171
12172
12173
12174echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12175echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12176if test "${ac_cv_string_strcasecmp+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12178else
12179
12180 cat >conftest.$ac_ext <<_ACEOF
de59c161 12181#line $LINENO "configure"
a848cd7e
SC
12182/* confdefs.h. */
12183_ACEOF
12184cat confdefs.h >>conftest.$ac_ext
12185cat >>conftest.$ac_ext <<_ACEOF
12186/* end confdefs.h. */
12187
12188 #include <string.h>
12189
12190int
12191main ()
12192{
12193
12194 strcasecmp("foo", "bar");
12195
12196 ;
12197 return 0;
12198}
12199_ACEOF
12200rm -f conftest.$ac_objext conftest$ac_exeext
12201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 12202 (eval $ac_link) 2>&5
a848cd7e 12203 ac_status=$?
a848cd7e
SC
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
de59c161 12206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_string_strcasecmp=yes
12213else
12214 echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
12217ac_cv_string_strcasecmp=no
12218
12219fi
de59c161 12220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12221
12222fi
12223echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12224echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12225
12226 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12227 cat >>confdefs.h <<\_ACEOF
12228#define HAVE_STRCASECMP_IN_STRING_H 1
12229_ACEOF
12230
12231 else
12232 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12233echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12234if test "${ac_cv_strings_strcasecmp+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236else
12237
12238 cat >conftest.$ac_ext <<_ACEOF
de59c161 12239#line $LINENO "configure"
a848cd7e
SC
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245
12246 #include <strings.h>
12247
12248int
12249main ()
12250{
12251
12252 strcasecmp("foo", "bar");
12253
12254 ;
12255 return 0;
12256}
12257_ACEOF
12258rm -f conftest.$ac_objext conftest$ac_exeext
12259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 12260 (eval $ac_link) 2>&5
a848cd7e 12261 ac_status=$?
a848cd7e
SC
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
de59c161 12264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_cv_strings_strcasecmp=yes
12271else
12272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275ac_cv_strings_strcasecmp=no
12276
12277fi
de59c161 12278rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12279
12280fi
12281echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12282echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12283
12284 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12285 cat >>confdefs.h <<\_ACEOF
12286#define HAVE_STRCASECMP_IN_STRINGS_H 1
12287_ACEOF
12288
12289 else
12290 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12291echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12292 { (exit 1); exit 1; }; }
12293 fi
12294 fi
12295
12296 ac_ext=c
12297ac_cpp='$CPP $CPPFLAGS'
12298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12300ac_compiler_gnu=$ac_cv_c_compiler_gnu
12301
12302 ;;
12303esac
12304
12305
12306echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12307echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12308if test "${ac_cv_header_stdc+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310else
12311 cat >conftest.$ac_ext <<_ACEOF
de59c161 12312#line $LINENO "configure"
a848cd7e
SC
12313/* confdefs.h. */
12314_ACEOF
12315cat confdefs.h >>conftest.$ac_ext
12316cat >>conftest.$ac_ext <<_ACEOF
12317/* end confdefs.h. */
12318#include <stdlib.h>
12319#include <stdarg.h>
12320#include <string.h>
12321#include <float.h>
12322
12323int
12324main ()
12325{
12326
12327 ;
12328 return 0;
12329}
12330_ACEOF
12331rm -f conftest.$ac_objext
12332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 12333 (eval $ac_compile) 2>&5
a848cd7e 12334 ac_status=$?
a848cd7e
SC
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
de59c161 12337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_header_stdc=yes
12344else
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
12348ac_cv_header_stdc=no
12349fi
de59c161 12350rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12351
12352if test $ac_cv_header_stdc = yes; then
12353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12354 cat >conftest.$ac_ext <<_ACEOF
de59c161 12355#line $LINENO "configure"
a848cd7e
SC
12356/* confdefs.h. */
12357_ACEOF
12358cat confdefs.h >>conftest.$ac_ext
12359cat >>conftest.$ac_ext <<_ACEOF
12360/* end confdefs.h. */
12361#include <string.h>
12362
12363_ACEOF
12364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12365 $EGREP "memchr" >/dev/null 2>&1; then
12366 :
12367else
12368 ac_cv_header_stdc=no
12369fi
12370rm -f conftest*
12371
12372fi
12373
12374if test $ac_cv_header_stdc = yes; then
12375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12376 cat >conftest.$ac_ext <<_ACEOF
de59c161 12377#line $LINENO "configure"
a848cd7e
SC
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
12383#include <stdlib.h>
12384
12385_ACEOF
12386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12387 $EGREP "free" >/dev/null 2>&1; then
12388 :
12389else
12390 ac_cv_header_stdc=no
12391fi
12392rm -f conftest*
12393
12394fi
12395
12396if test $ac_cv_header_stdc = yes; then
12397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12398 if test "$cross_compiling" = yes; then
12399 :
12400else
12401 cat >conftest.$ac_ext <<_ACEOF
de59c161 12402#line $LINENO "configure"
a848cd7e
SC
12403/* confdefs.h. */
12404_ACEOF
12405cat confdefs.h >>conftest.$ac_ext
12406cat >>conftest.$ac_ext <<_ACEOF
12407/* end confdefs.h. */
12408#include <ctype.h>
12409#if ((' ' & 0x0FF) == 0x020)
12410# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12411# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12412#else
12413# define ISLOWER(c) \
de59c161
RD
12414 (('a' <= (c) && (c) <= 'i') \
12415 || ('j' <= (c) && (c) <= 'r') \
12416 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12417# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12418#endif
12419
12420#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12421int
12422main ()
12423{
12424 int i;
12425 for (i = 0; i < 256; i++)
12426 if (XOR (islower (i), ISLOWER (i))
de59c161 12427 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12428 exit(2);
12429 exit (0);
12430}
12431_ACEOF
12432rm -f conftest$ac_exeext
12433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12434 (eval $ac_link) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 :
12444else
12445 echo "$as_me: program exited with status $ac_status" >&5
12446echo "$as_me: failed program was:" >&5
12447sed 's/^/| /' conftest.$ac_ext >&5
12448
12449( exit $ac_status )
12450ac_cv_header_stdc=no
12451fi
de59c161 12452rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12453fi
12454fi
12455fi
12456echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12457echo "${ECHO_T}$ac_cv_header_stdc" >&6
12458if test $ac_cv_header_stdc = yes; then
12459
12460cat >>confdefs.h <<\_ACEOF
12461#define STDC_HEADERS 1
12462_ACEOF
12463
12464fi
12465
12466# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
de59c161 12477 inttypes.h stdint.h unistd.h
a848cd7e
SC
12478do
12479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12480echo "$as_me:$LINENO: checking for $ac_header" >&5
12481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12482if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484else
12485 cat >conftest.$ac_ext <<_ACEOF
de59c161 12486#line $LINENO "configure"
a848cd7e
SC
12487/* confdefs.h. */
12488_ACEOF
12489cat confdefs.h >>conftest.$ac_ext
12490cat >>conftest.$ac_ext <<_ACEOF
12491/* end confdefs.h. */
12492$ac_includes_default
12493
12494#include <$ac_header>
12495_ACEOF
12496rm -f conftest.$ac_objext
12497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 12498 (eval $ac_compile) 2>&5
a848cd7e 12499 ac_status=$?
a848cd7e
SC
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
de59c161 12502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 eval "$as_ac_Header=yes"
12509else
12510 echo "$as_me: failed program was:" >&5
12511sed 's/^/| /' conftest.$ac_ext >&5
12512
12513eval "$as_ac_Header=no"
12514fi
de59c161 12515rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12516fi
12517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12519if test `eval echo '${'$as_ac_Header'}'` = yes; then
12520 cat >>confdefs.h <<_ACEOF
12521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12522_ACEOF
12523
12524fi
12525
12526done
12527
12528
12529
12530for ac_header in stdlib.h
12531do
12532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12533if eval "test \"\${$as_ac_Header+set}\" = set"; then
12534 echo "$as_me:$LINENO: checking for $ac_header" >&5
12535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12536if eval "test \"\${$as_ac_Header+set}\" = set"; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538fi
12539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12541else
12542 # Is the header compilable?
12543echo "$as_me:$LINENO: checking $ac_header usability" >&5
12544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12545cat >conftest.$ac_ext <<_ACEOF
de59c161 12546#line $LINENO "configure"
a848cd7e
SC
12547/* confdefs.h. */
12548_ACEOF
12549cat confdefs.h >>conftest.$ac_ext
12550cat >>conftest.$ac_ext <<_ACEOF
12551/* end confdefs.h. */
12552$ac_includes_default
12553#include <$ac_header>
12554_ACEOF
12555rm -f conftest.$ac_objext
12556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 12557 (eval $ac_compile) 2>&5
a848cd7e 12558 ac_status=$?
a848cd7e
SC
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
de59c161 12561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_header_compiler=yes
12568else
12569 echo "$as_me: failed program was:" >&5
12570sed 's/^/| /' conftest.$ac_ext >&5
12571
12572ac_header_compiler=no
12573fi
de59c161 12574rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12575echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12576echo "${ECHO_T}$ac_header_compiler" >&6
12577
12578# Is the header present?
12579echo "$as_me:$LINENO: checking $ac_header presence" >&5
12580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12581cat >conftest.$ac_ext <<_ACEOF
de59c161 12582#line $LINENO "configure"
a848cd7e
SC
12583/* confdefs.h. */
12584_ACEOF
12585cat confdefs.h >>conftest.$ac_ext
12586cat >>conftest.$ac_ext <<_ACEOF
12587/* end confdefs.h. */
12588#include <$ac_header>
12589_ACEOF
12590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } >/dev/null; then
12598 if test -s conftest.err; then
12599 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
12600 else
12601 ac_cpp_err=
12602 fi
12603else
12604 ac_cpp_err=yes
12605fi
12606if test -z "$ac_cpp_err"; then
12607 ac_header_preproc=yes
12608else
12609 echo "$as_me: failed program was:" >&5
12610sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 ac_header_preproc=no
12613fi
12614rm -f conftest.err conftest.$ac_ext
12615echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12616echo "${ECHO_T}$ac_header_preproc" >&6
12617
12618# So? What about this header?
de59c161
RD
12619case $ac_header_compiler:$ac_header_preproc in
12620 yes:no )
a848cd7e
SC
12621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
12623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12625 (
12626 cat <<\_ASBOX
12627## ------------------------------------ ##
12628## Report this to bug-autoconf@gnu.org. ##
12629## ------------------------------------ ##
12630_ASBOX
12631 ) |
12632 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 12633 ;;
de59c161 12634 no:yes )
a848cd7e
SC
12635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
12637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12638echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
12639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
12641 (
12642 cat <<\_ASBOX
de59c161
RD
12643## ------------------------------------ ##
12644## Report this to bug-autoconf@gnu.org. ##
12645## ------------------------------------ ##
a848cd7e
SC
12646_ASBOX
12647 ) |
12648 sed "s/^/$as_me: WARNING: /" >&2
12649 ;;
12650esac
12651echo "$as_me:$LINENO: checking for $ac_header" >&5
12652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12653if eval "test \"\${$as_ac_Header+set}\" = set"; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655else
de59c161 12656 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
12657fi
12658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12660
12661fi
12662if test `eval echo '${'$as_ac_Header'}'` = yes; then
12663 cat >>confdefs.h <<_ACEOF
12664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12665_ACEOF
12666
12667fi
12668
12669done
12670
12671
12672for ac_header in malloc.h
12673do
12674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12675if eval "test \"\${$as_ac_Header+set}\" = set"; then
12676 echo "$as_me:$LINENO: checking for $ac_header" >&5
12677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12678if eval "test \"\${$as_ac_Header+set}\" = set"; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680fi
12681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12683else
12684 # Is the header compilable?
12685echo "$as_me:$LINENO: checking $ac_header usability" >&5
12686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12687cat >conftest.$ac_ext <<_ACEOF
de59c161 12688#line $LINENO "configure"
a848cd7e
SC
12689/* confdefs.h. */
12690_ACEOF
12691cat confdefs.h >>conftest.$ac_ext
12692cat >>conftest.$ac_ext <<_ACEOF
12693/* end confdefs.h. */
12694$ac_includes_default
12695#include <$ac_header>
12696_ACEOF
12697rm -f conftest.$ac_objext
12698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 12699 (eval $ac_compile) 2>&5
a848cd7e 12700 ac_status=$?
a848cd7e
SC
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
de59c161 12703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_header_compiler=yes
12710else
12711 echo "$as_me: failed program was:" >&5
12712sed 's/^/| /' conftest.$ac_ext >&5
12713
12714ac_header_compiler=no
12715fi
de59c161 12716rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12718echo "${ECHO_T}$ac_header_compiler" >&6
12719
12720# Is the header present?
12721echo "$as_me:$LINENO: checking $ac_header presence" >&5
12722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12723cat >conftest.$ac_ext <<_ACEOF
de59c161 12724#line $LINENO "configure"
a848cd7e
SC
12725/* confdefs.h. */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
12729/* end confdefs.h. */
12730#include <$ac_header>
12731_ACEOF
12732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } >/dev/null; then
12740 if test -s conftest.err; then
12741 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
12742 else
12743 ac_cpp_err=
12744 fi
12745else
12746 ac_cpp_err=yes
12747fi
12748if test -z "$ac_cpp_err"; then
12749 ac_header_preproc=yes
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 ac_header_preproc=no
12755fi
12756rm -f conftest.err conftest.$ac_ext
12757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12758echo "${ECHO_T}$ac_header_preproc" >&6
12759
12760# So? What about this header?
de59c161
RD
12761case $ac_header_compiler:$ac_header_preproc in
12762 yes:no )
a848cd7e
SC
12763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
12765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12767 (
12768 cat <<\_ASBOX
12769## ------------------------------------ ##
12770## Report this to bug-autoconf@gnu.org. ##
12771## ------------------------------------ ##
12772_ASBOX
12773 ) |
12774 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 12775 ;;
de59c161 12776 no:yes )
a848cd7e
SC
12777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12778echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
12779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12780echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
12781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
12783 (
12784 cat <<\_ASBOX
de59c161
RD
12785## ------------------------------------ ##
12786## Report this to bug-autoconf@gnu.org. ##
12787## ------------------------------------ ##
a848cd7e
SC
12788_ASBOX
12789 ) |
12790 sed "s/^/$as_me: WARNING: /" >&2
12791 ;;
12792esac
12793echo "$as_me:$LINENO: checking for $ac_header" >&5
12794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12795if eval "test \"\${$as_ac_Header+set}\" = set"; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797else
de59c161 12798 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
12799fi
12800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12802
12803fi
12804if test `eval echo '${'$as_ac_Header'}'` = yes; then
12805 cat >>confdefs.h <<_ACEOF
12806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12807_ACEOF
12808
12809fi
12810
12811done
12812
12813
12814for ac_header in unistd.h
12815do
12816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12817if eval "test \"\${$as_ac_Header+set}\" = set"; then
12818 echo "$as_me:$LINENO: checking for $ac_header" >&5
12819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12820if eval "test \"\${$as_ac_Header+set}\" = set"; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822fi
12823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12825else
12826 # Is the header compilable?
12827echo "$as_me:$LINENO: checking $ac_header usability" >&5
12828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12829cat >conftest.$ac_ext <<_ACEOF
de59c161 12830#line $LINENO "configure"
a848cd7e
SC
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
12836$ac_includes_default
12837#include <$ac_header>
12838_ACEOF
12839rm -f conftest.$ac_objext
12840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 12841 (eval $ac_compile) 2>&5
a848cd7e 12842 ac_status=$?
a848cd7e
SC
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
de59c161 12845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 ac_header_compiler=yes
12852else
12853 echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856ac_header_compiler=no
12857fi
de59c161 12858rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12859echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12860echo "${ECHO_T}$ac_header_compiler" >&6
12861
12862# Is the header present?
12863echo "$as_me:$LINENO: checking $ac_header presence" >&5
12864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12865cat >conftest.$ac_ext <<_ACEOF
de59c161 12866#line $LINENO "configure"
a848cd7e
SC
12867/* confdefs.h. */
12868_ACEOF
12869cat confdefs.h >>conftest.$ac_ext
12870cat >>conftest.$ac_ext <<_ACEOF
12871/* end confdefs.h. */
12872#include <$ac_header>
12873_ACEOF
12874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } >/dev/null; then
12882 if test -s conftest.err; then
12883 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
12884 else
12885 ac_cpp_err=
12886 fi
12887else
12888 ac_cpp_err=yes
12889fi
12890if test -z "$ac_cpp_err"; then
12891 ac_header_preproc=yes
12892else
12893 echo "$as_me: failed program was:" >&5
12894sed 's/^/| /' conftest.$ac_ext >&5
12895
12896 ac_header_preproc=no
12897fi
12898rm -f conftest.err conftest.$ac_ext
12899echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12900echo "${ECHO_T}$ac_header_preproc" >&6
12901
12902# So? What about this header?
de59c161
RD
12903case $ac_header_compiler:$ac_header_preproc in
12904 yes:no )
a848cd7e
SC
12905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
12907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12909 (
12910 cat <<\_ASBOX
12911## ------------------------------------ ##
12912## Report this to bug-autoconf@gnu.org. ##
12913## ------------------------------------ ##
12914_ASBOX
12915 ) |
12916 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 12917 ;;
de59c161 12918 no:yes )
a848cd7e
SC
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
12925 (
12926 cat <<\_ASBOX
de59c161
RD
12927## ------------------------------------ ##
12928## Report this to bug-autoconf@gnu.org. ##
12929## ------------------------------------ ##
a848cd7e
SC
12930_ASBOX
12931 ) |
12932 sed "s/^/$as_me: WARNING: /" >&2
12933 ;;
12934esac
12935echo "$as_me:$LINENO: checking for $ac_header" >&5
12936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12937if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939else
de59c161 12940 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
12941fi
12942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12944
12945fi
12946if test `eval echo '${'$as_ac_Header'}'` = yes; then
12947 cat >>confdefs.h <<_ACEOF
12948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12949_ACEOF
12950
12951fi
12952
12953done
12954
12955
12956for ac_header in wchar.h
12957do
12958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12959if eval "test \"\${$as_ac_Header+set}\" = set"; then
12960 echo "$as_me:$LINENO: checking for $ac_header" >&5
12961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12962if eval "test \"\${$as_ac_Header+set}\" = set"; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964fi
12965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12967else
12968 # Is the header compilable?
12969echo "$as_me:$LINENO: checking $ac_header usability" >&5
12970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12971cat >conftest.$ac_ext <<_ACEOF
de59c161 12972#line $LINENO "configure"
a848cd7e
SC
12973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
12978$ac_includes_default
12979#include <$ac_header>
12980_ACEOF
12981rm -f conftest.$ac_objext
12982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 12983 (eval $ac_compile) 2>&5
a848cd7e 12984 ac_status=$?
a848cd7e
SC
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
de59c161 12987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_header_compiler=yes
12994else
12995 echo "$as_me: failed program was:" >&5
12996sed 's/^/| /' conftest.$ac_ext >&5
12997
12998ac_header_compiler=no
12999fi
de59c161 13000rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13002echo "${ECHO_T}$ac_header_compiler" >&6
13003
13004# Is the header present?
13005echo "$as_me:$LINENO: checking $ac_header presence" >&5
13006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13007cat >conftest.$ac_ext <<_ACEOF
de59c161 13008#line $LINENO "configure"
a848cd7e
SC
13009/* confdefs.h. */
13010_ACEOF
13011cat confdefs.h >>conftest.$ac_ext
13012cat >>conftest.$ac_ext <<_ACEOF
13013/* end confdefs.h. */
13014#include <$ac_header>
13015_ACEOF
13016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } >/dev/null; then
13024 if test -s conftest.err; then
13025 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13026 else
13027 ac_cpp_err=
13028 fi
13029else
13030 ac_cpp_err=yes
13031fi
13032if test -z "$ac_cpp_err"; then
13033 ac_header_preproc=yes
13034else
13035 echo "$as_me: failed program was:" >&5
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
13038 ac_header_preproc=no
13039fi
13040rm -f conftest.err conftest.$ac_ext
13041echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13042echo "${ECHO_T}$ac_header_preproc" >&6
13043
13044# So? What about this header?
de59c161
RD
13045case $ac_header_compiler:$ac_header_preproc in
13046 yes:no )
a848cd7e
SC
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
13049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13051 (
13052 cat <<\_ASBOX
13053## ------------------------------------ ##
13054## Report this to bug-autoconf@gnu.org. ##
13055## ------------------------------------ ##
13056_ASBOX
13057 ) |
13058 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13059 ;;
de59c161 13060 no:yes )
a848cd7e
SC
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13067 (
13068 cat <<\_ASBOX
de59c161
RD
13069## ------------------------------------ ##
13070## Report this to bug-autoconf@gnu.org. ##
13071## ------------------------------------ ##
a848cd7e
SC
13072_ASBOX
13073 ) |
13074 sed "s/^/$as_me: WARNING: /" >&2
13075 ;;
13076esac
13077echo "$as_me:$LINENO: checking for $ac_header" >&5
13078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13079if eval "test \"\${$as_ac_Header+set}\" = set"; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081else
de59c161 13082 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13083fi
13084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13086
13087fi
13088if test `eval echo '${'$as_ac_Header'}'` = yes; then
13089 cat >>confdefs.h <<_ACEOF
13090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13091_ACEOF
13092
13093fi
13094
13095done
13096
13097
13098if test "$ac_cv_header_wchar_h" != "yes"; then
13099
13100for ac_header in wcstr.h
13101do
13102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13103if eval "test \"\${$as_ac_Header+set}\" = set"; then
13104 echo "$as_me:$LINENO: checking for $ac_header" >&5
13105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13106if eval "test \"\${$as_ac_Header+set}\" = set"; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108fi
13109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13111else
13112 # Is the header compilable?
13113echo "$as_me:$LINENO: checking $ac_header usability" >&5
13114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13115cat >conftest.$ac_ext <<_ACEOF
de59c161 13116#line $LINENO "configure"
a848cd7e
SC
13117/* confdefs.h. */
13118_ACEOF
13119cat confdefs.h >>conftest.$ac_ext
13120cat >>conftest.$ac_ext <<_ACEOF
13121/* end confdefs.h. */
13122$ac_includes_default
13123#include <$ac_header>
13124_ACEOF
13125rm -f conftest.$ac_objext
13126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 13127 (eval $ac_compile) 2>&5
a848cd7e 13128 ac_status=$?
a848cd7e
SC
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
de59c161 13131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137 ac_header_compiler=yes
13138else
13139 echo "$as_me: failed program was:" >&5
13140sed 's/^/| /' conftest.$ac_ext >&5
13141
13142ac_header_compiler=no
13143fi
de59c161 13144rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13145echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13146echo "${ECHO_T}$ac_header_compiler" >&6
13147
13148# Is the header present?
13149echo "$as_me:$LINENO: checking $ac_header presence" >&5
13150echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13151cat >conftest.$ac_ext <<_ACEOF
de59c161 13152#line $LINENO "configure"
a848cd7e
SC
13153/* confdefs.h. */
13154_ACEOF
13155cat confdefs.h >>conftest.$ac_ext
13156cat >>conftest.$ac_ext <<_ACEOF
13157/* end confdefs.h. */
13158#include <$ac_header>
13159_ACEOF
13160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13162 ac_status=$?
13163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } >/dev/null; then
13168 if test -s conftest.err; then
13169 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13170 else
13171 ac_cpp_err=
13172 fi
13173else
13174 ac_cpp_err=yes
13175fi
13176if test -z "$ac_cpp_err"; then
13177 ac_header_preproc=yes
13178else
13179 echo "$as_me: failed program was:" >&5
13180sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_header_preproc=no
13183fi
13184rm -f conftest.err conftest.$ac_ext
13185echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13186echo "${ECHO_T}$ac_header_preproc" >&6
13187
13188# So? What about this header?
de59c161
RD
13189case $ac_header_compiler:$ac_header_preproc in
13190 yes:no )
a848cd7e
SC
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
13193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13195 (
13196 cat <<\_ASBOX
13197## ------------------------------------ ##
13198## Report this to bug-autoconf@gnu.org. ##
13199## ------------------------------------ ##
13200_ASBOX
13201 ) |
13202 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13203 ;;
de59c161 13204 no:yes )
a848cd7e
SC
13205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
13207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13211 (
13212 cat <<\_ASBOX
de59c161
RD
13213## ------------------------------------ ##
13214## Report this to bug-autoconf@gnu.org. ##
13215## ------------------------------------ ##
a848cd7e
SC
13216_ASBOX
13217 ) |
13218 sed "s/^/$as_me: WARNING: /" >&2
13219 ;;
13220esac
13221echo "$as_me:$LINENO: checking for $ac_header" >&5
13222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13223if eval "test \"\${$as_ac_Header+set}\" = set"; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225else
de59c161 13226 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13227fi
13228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13230
13231fi
13232if test `eval echo '${'$as_ac_Header'}'` = yes; then
13233 cat >>confdefs.h <<_ACEOF
13234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13235_ACEOF
13236
13237fi
13238
13239done
13240
13241fi
13242
13243
13244for ac_header in fnmatch.h
13245do
13246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13247if eval "test \"\${$as_ac_Header+set}\" = set"; then
13248 echo "$as_me:$LINENO: checking for $ac_header" >&5
13249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13250if eval "test \"\${$as_ac_Header+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252fi
13253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13255else
13256 # Is the header compilable?
13257echo "$as_me:$LINENO: checking $ac_header usability" >&5
13258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13259cat >conftest.$ac_ext <<_ACEOF
de59c161 13260#line $LINENO "configure"
a848cd7e
SC
13261/* confdefs.h. */
13262_ACEOF
13263cat confdefs.h >>conftest.$ac_ext
13264cat >>conftest.$ac_ext <<_ACEOF
13265/* end confdefs.h. */
13266$ac_includes_default
13267#include <$ac_header>
13268_ACEOF
13269rm -f conftest.$ac_objext
13270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 13271 (eval $ac_compile) 2>&5
a848cd7e 13272 ac_status=$?
a848cd7e
SC
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
de59c161 13275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_header_compiler=yes
13282else
13283 echo "$as_me: failed program was:" >&5
13284sed 's/^/| /' conftest.$ac_ext >&5
13285
13286ac_header_compiler=no
13287fi
de59c161 13288rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13290echo "${ECHO_T}$ac_header_compiler" >&6
13291
13292# Is the header present?
13293echo "$as_me:$LINENO: checking $ac_header presence" >&5
13294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13295cat >conftest.$ac_ext <<_ACEOF
de59c161 13296#line $LINENO "configure"
a848cd7e
SC
13297/* confdefs.h. */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
13301/* end confdefs.h. */
13302#include <$ac_header>
13303_ACEOF
13304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } >/dev/null; then
13312 if test -s conftest.err; then
13313 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13314 else
13315 ac_cpp_err=
13316 fi
13317else
13318 ac_cpp_err=yes
13319fi
13320if test -z "$ac_cpp_err"; then
13321 ac_header_preproc=yes
13322else
13323 echo "$as_me: failed program was:" >&5
13324sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_header_preproc=no
13327fi
13328rm -f conftest.err conftest.$ac_ext
13329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13330echo "${ECHO_T}$ac_header_preproc" >&6
13331
13332# So? What about this header?
de59c161
RD
13333case $ac_header_compiler:$ac_header_preproc in
13334 yes:no )
a848cd7e
SC
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13339 (
13340 cat <<\_ASBOX
13341## ------------------------------------ ##
13342## Report this to bug-autoconf@gnu.org. ##
13343## ------------------------------------ ##
13344_ASBOX
13345 ) |
13346 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13347 ;;
de59c161 13348 no:yes )
a848cd7e
SC
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13354echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13355 (
13356 cat <<\_ASBOX
de59c161
RD
13357## ------------------------------------ ##
13358## Report this to bug-autoconf@gnu.org. ##
13359## ------------------------------------ ##
a848cd7e
SC
13360_ASBOX
13361 ) |
13362 sed "s/^/$as_me: WARNING: /" >&2
13363 ;;
13364esac
13365echo "$as_me:$LINENO: checking for $ac_header" >&5
13366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13367if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369else
de59c161 13370 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13371fi
13372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13374
13375fi
13376if test `eval echo '${'$as_ac_Header'}'` = yes; then
13377 cat >>confdefs.h <<_ACEOF
13378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13379_ACEOF
13380
13381fi
13382
13383done
13384
13385
13386if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13387
13388for ac_func in fnmatch
13389do
13390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13391echo "$as_me:$LINENO: checking for $ac_func" >&5
13392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13393if eval "test \"\${$as_ac_var+set}\" = set"; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395else
13396 cat >conftest.$ac_ext <<_ACEOF
de59c161 13397#line $LINENO "configure"
a848cd7e
SC
13398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
a848cd7e
SC
13403/* System header to define __stub macros and hopefully few prototypes,
13404 which can conflict with char $ac_func (); below.
13405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13406 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
13407#ifdef __STDC__
13408# include <limits.h>
13409#else
13410# include <assert.h>
13411#endif
a848cd7e
SC
13412/* Override any gcc2 internal prototype to avoid an error. */
13413#ifdef __cplusplus
13414extern "C"
13415{
13416#endif
13417/* We use char because int might match the return type of a gcc2
13418 builtin and then its argument prototype would still apply. */
13419char $ac_func ();
13420/* The GNU C library defines this for functions which it implements
13421 to always fail with ENOSYS. Some functions are actually named
13422 something starting with __ and the normal name is an alias. */
13423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13424choke me
13425#else
13426char (*f) () = $ac_func;
13427#endif
13428#ifdef __cplusplus
13429}
13430#endif
13431
13432int
13433main ()
13434{
13435return f != $ac_func;
13436 ;
13437 return 0;
13438}
13439_ACEOF
13440rm -f conftest.$ac_objext conftest$ac_exeext
13441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 13442 (eval $ac_link) 2>&5
a848cd7e 13443 ac_status=$?
a848cd7e
SC
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
de59c161 13446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 eval "$as_ac_var=yes"
13453else
13454 echo "$as_me: failed program was:" >&5
13455sed 's/^/| /' conftest.$ac_ext >&5
13456
13457eval "$as_ac_var=no"
13458fi
de59c161 13459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13460fi
13461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13462echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13463if test `eval echo '${'$as_ac_var'}'` = yes; then
13464 cat >>confdefs.h <<_ACEOF
13465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13466_ACEOF
13467
13468fi
13469done
13470
13471fi
13472
13473
13474for ac_header in langinfo.h
13475do
13476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13477if eval "test \"\${$as_ac_Header+set}\" = set"; then
13478 echo "$as_me:$LINENO: checking for $ac_header" >&5
13479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13480if eval "test \"\${$as_ac_Header+set}\" = set"; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482fi
13483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13485else
13486 # Is the header compilable?
13487echo "$as_me:$LINENO: checking $ac_header usability" >&5
13488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13489cat >conftest.$ac_ext <<_ACEOF
de59c161 13490#line $LINENO "configure"
a848cd7e
SC
13491/* confdefs.h. */
13492_ACEOF
13493cat confdefs.h >>conftest.$ac_ext
13494cat >>conftest.$ac_ext <<_ACEOF
13495/* end confdefs.h. */
13496$ac_includes_default
13497#include <$ac_header>
13498_ACEOF
13499rm -f conftest.$ac_objext
13500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 13501 (eval $ac_compile) 2>&5
a848cd7e 13502 ac_status=$?
a848cd7e
SC
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
de59c161 13505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 ac_header_compiler=yes
13512else
13513 echo "$as_me: failed program was:" >&5
13514sed 's/^/| /' conftest.$ac_ext >&5
13515
13516ac_header_compiler=no
13517fi
de59c161 13518rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13520echo "${ECHO_T}$ac_header_compiler" >&6
13521
13522# Is the header present?
13523echo "$as_me:$LINENO: checking $ac_header presence" >&5
13524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13525cat >conftest.$ac_ext <<_ACEOF
de59c161 13526#line $LINENO "configure"
a848cd7e
SC
13527/* confdefs.h. */
13528_ACEOF
13529cat confdefs.h >>conftest.$ac_ext
13530cat >>conftest.$ac_ext <<_ACEOF
13531/* end confdefs.h. */
13532#include <$ac_header>
13533_ACEOF
13534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } >/dev/null; then
13542 if test -s conftest.err; then
13543 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13544 else
13545 ac_cpp_err=
13546 fi
13547else
13548 ac_cpp_err=yes
13549fi
13550if test -z "$ac_cpp_err"; then
13551 ac_header_preproc=yes
13552else
13553 echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 ac_header_preproc=no
13557fi
13558rm -f conftest.err conftest.$ac_ext
13559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13560echo "${ECHO_T}$ac_header_preproc" >&6
13561
13562# So? What about this header?
de59c161
RD
13563case $ac_header_compiler:$ac_header_preproc in
13564 yes:no )
a848cd7e
SC
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569 (
13570 cat <<\_ASBOX
13571## ------------------------------------ ##
13572## Report this to bug-autoconf@gnu.org. ##
13573## ------------------------------------ ##
13574_ASBOX
13575 ) |
13576 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13577 ;;
de59c161 13578 no:yes )
a848cd7e
SC
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
13581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13585 (
13586 cat <<\_ASBOX
de59c161
RD
13587## ------------------------------------ ##
13588## Report this to bug-autoconf@gnu.org. ##
13589## ------------------------------------ ##
a848cd7e
SC
13590_ASBOX
13591 ) |
13592 sed "s/^/$as_me: WARNING: /" >&2
13593 ;;
13594esac
13595echo "$as_me:$LINENO: checking for $ac_header" >&5
13596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13597if eval "test \"\${$as_ac_Header+set}\" = set"; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13599else
de59c161 13600 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13601fi
13602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13604
13605fi
13606if test `eval echo '${'$as_ac_Header'}'` = yes; then
13607 cat >>confdefs.h <<_ACEOF
13608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13609_ACEOF
13610
13611fi
13612
13613done
13614
13615
13616case "${host}" in
13617 *-pc-os2_emx | *-pc-os2-emx )
13618 if test $ac_cv_header_langinfo_h = "yes"; then
13619 LIBS="$LIBS -lintl"
13620 fi
13621 ;;
13622esac
13623
13624if test "$wxUSE_GUI" = "yes"; then
13625 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13626
13627for ac_header in X11/Xlib.h
13628do
13629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13630if eval "test \"\${$as_ac_Header+set}\" = set"; then
13631 echo "$as_me:$LINENO: checking for $ac_header" >&5
13632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13633if eval "test \"\${$as_ac_Header+set}\" = set"; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635fi
13636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13638else
13639 # Is the header compilable?
13640echo "$as_me:$LINENO: checking $ac_header usability" >&5
13641echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13642cat >conftest.$ac_ext <<_ACEOF
de59c161 13643#line $LINENO "configure"
a848cd7e
SC
13644/* confdefs.h. */
13645_ACEOF
13646cat confdefs.h >>conftest.$ac_ext
13647cat >>conftest.$ac_ext <<_ACEOF
13648/* end confdefs.h. */
13649$ac_includes_default
13650#include <$ac_header>
13651_ACEOF
13652rm -f conftest.$ac_objext
13653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 13654 (eval $ac_compile) 2>&5
a848cd7e 13655 ac_status=$?
a848cd7e
SC
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
de59c161 13658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_header_compiler=yes
13665else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669ac_header_compiler=no
13670fi
de59c161 13671rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13672echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13673echo "${ECHO_T}$ac_header_compiler" >&6
13674
13675# Is the header present?
13676echo "$as_me:$LINENO: checking $ac_header presence" >&5
13677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13678cat >conftest.$ac_ext <<_ACEOF
de59c161 13679#line $LINENO "configure"
a848cd7e
SC
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
13685#include <$ac_header>
13686_ACEOF
13687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } >/dev/null; then
13695 if test -s conftest.err; then
13696 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13697 else
13698 ac_cpp_err=
13699 fi
13700else
13701 ac_cpp_err=yes
13702fi
13703if test -z "$ac_cpp_err"; then
13704 ac_header_preproc=yes
13705else
13706 echo "$as_me: failed program was:" >&5
13707sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 ac_header_preproc=no
13710fi
13711rm -f conftest.err conftest.$ac_ext
13712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13713echo "${ECHO_T}$ac_header_preproc" >&6
13714
13715# So? What about this header?
de59c161
RD
13716case $ac_header_compiler:$ac_header_preproc in
13717 yes:no )
a848cd7e
SC
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13722 (
13723 cat <<\_ASBOX
13724## ------------------------------------ ##
13725## Report this to bug-autoconf@gnu.org. ##
13726## ------------------------------------ ##
13727_ASBOX
13728 ) |
13729 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13730 ;;
de59c161 13731 no:yes )
a848cd7e
SC
13732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
13734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13738 (
13739 cat <<\_ASBOX
de59c161
RD
13740## ------------------------------------ ##
13741## Report this to bug-autoconf@gnu.org. ##
13742## ------------------------------------ ##
a848cd7e
SC
13743_ASBOX
13744 ) |
13745 sed "s/^/$as_me: WARNING: /" >&2
13746 ;;
13747esac
13748echo "$as_me:$LINENO: checking for $ac_header" >&5
13749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13750if eval "test \"\${$as_ac_Header+set}\" = set"; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
de59c161 13753 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13754fi
13755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13757
13758fi
13759if test `eval echo '${'$as_ac_Header'}'` = yes; then
13760 cat >>confdefs.h <<_ACEOF
13761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13762_ACEOF
13763
13764fi
13765
13766done
13767
13768
13769for ac_header in X11/XKBlib.h
13770do
13771as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13772echo "$as_me:$LINENO: checking for $ac_header" >&5
13773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13774if eval "test \"\${$as_ac_Header+set}\" = set"; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
13777 cat >conftest.$ac_ext <<_ACEOF
de59c161 13778#line $LINENO "configure"
a848cd7e
SC
13779/* confdefs.h. */
13780_ACEOF
13781cat confdefs.h >>conftest.$ac_ext
13782cat >>conftest.$ac_ext <<_ACEOF
13783/* end confdefs.h. */
13784
13785 #if HAVE_X11_XLIB_H
13786 #include <X11/Xlib.h>
13787 #endif
13788
13789
13790#include <$ac_header>
13791_ACEOF
13792rm -f conftest.$ac_objext
13793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 13794 (eval $ac_compile) 2>&5
a848cd7e 13795 ac_status=$?
a848cd7e
SC
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
de59c161 13798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 eval "$as_ac_Header=yes"
13805else
13806 echo "$as_me: failed program was:" >&5
13807sed 's/^/| /' conftest.$ac_ext >&5
13808
13809eval "$as_ac_Header=no"
13810fi
de59c161 13811rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13812fi
13813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13815if test `eval echo '${'$as_ac_Header'}'` = yes; then
13816 cat >>confdefs.h <<_ACEOF
13817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13818_ACEOF
13819
13820fi
13821
13822done
13823
13824 fi
13825fi
13826
13827
13828echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13829echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13830if test "${ac_cv_c_const+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13832else
13833 cat >conftest.$ac_ext <<_ACEOF
de59c161 13834#line $LINENO "configure"
a848cd7e
SC
13835/* confdefs.h. */
13836_ACEOF
13837cat confdefs.h >>conftest.$ac_ext
13838cat >>conftest.$ac_ext <<_ACEOF
13839/* end confdefs.h. */
13840
13841int
13842main ()
13843{
13844/* FIXME: Include the comments suggested by Paul. */
13845#ifndef __cplusplus
13846 /* Ultrix mips cc rejects this. */
13847 typedef int charset[2];
13848 const charset x;
13849 /* SunOS 4.1.1 cc rejects this. */
13850 char const *const *ccp;
13851 char **p;
13852 /* NEC SVR4.0.2 mips cc rejects this. */
13853 struct point {int x, y;};
13854 static struct point const zero = {0,0};
13855 /* AIX XL C 1.02.0.0 rejects this.
13856 It does not let you subtract one const X* pointer from another in
13857 an arm of an if-expression whose if-part is not a constant
13858 expression */
13859 const char *g = "string";
13860 ccp = &g + (g ? g-g : 0);
13861 /* HPUX 7.0 cc rejects these. */
13862 ++ccp;
13863 p = (char**) ccp;
13864 ccp = (char const *const *) p;
13865 { /* SCO 3.2v4 cc rejects this. */
13866 char *t;
13867 char const *s = 0 ? (char *) 0 : (char const *) 0;
13868
13869 *t++ = 0;
13870 }
13871 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13872 int x[] = {25, 17};
13873 const int *foo = &x[0];
13874 ++foo;
13875 }
13876 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13877 typedef const int *iptr;
13878 iptr p = 0;
13879 ++p;
13880 }
13881 { /* AIX XL C 1.02.0.0 rejects this saying
13882 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13883 struct s { int j; const int *ap[3]; };
13884 struct s *b; b->j = 5;
13885 }
13886 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13887 const int foo = 10;
13888 }
13889#endif
13890
13891 ;
13892 return 0;
13893}
13894_ACEOF
13895rm -f conftest.$ac_objext
13896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 13897 (eval $ac_compile) 2>&5
a848cd7e 13898 ac_status=$?
a848cd7e
SC
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
de59c161 13901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_cv_c_const=yes
13908else
13909 echo "$as_me: failed program was:" >&5
13910sed 's/^/| /' conftest.$ac_ext >&5
13911
13912ac_cv_c_const=no
13913fi
de59c161 13914rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13915fi
13916echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13917echo "${ECHO_T}$ac_cv_c_const" >&6
13918if test $ac_cv_c_const = no; then
13919
13920cat >>confdefs.h <<\_ACEOF
13921#define const
13922_ACEOF
13923
13924fi
13925
13926echo "$as_me:$LINENO: checking for inline" >&5
13927echo $ECHO_N "checking for inline... $ECHO_C" >&6
13928if test "${ac_cv_c_inline+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930else
13931 ac_cv_c_inline=no
13932for ac_kw in inline __inline__ __inline; do
13933 cat >conftest.$ac_ext <<_ACEOF
de59c161 13934#line $LINENO "configure"
a848cd7e
SC
13935/* confdefs.h. */
13936_ACEOF
13937cat confdefs.h >>conftest.$ac_ext
13938cat >>conftest.$ac_ext <<_ACEOF
13939/* end confdefs.h. */
13940#ifndef __cplusplus
13941typedef int foo_t;
13942static $ac_kw foo_t static_foo () {return 0; }
13943$ac_kw foo_t foo () {return 0; }
13944#endif
13945
13946_ACEOF
13947rm -f conftest.$ac_objext
13948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 13949 (eval $ac_compile) 2>&5
a848cd7e 13950 ac_status=$?
a848cd7e
SC
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
de59c161 13953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_cv_c_inline=$ac_kw; break
13960else
13961 echo "$as_me: failed program was:" >&5
13962sed 's/^/| /' conftest.$ac_ext >&5
13963
13964fi
de59c161 13965rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13966done
13967
13968fi
13969echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13970echo "${ECHO_T}$ac_cv_c_inline" >&6
a848cd7e
SC
13971case $ac_cv_c_inline in
13972 inline | yes) ;;
de59c161
RD
13973 no)
13974cat >>confdefs.h <<\_ACEOF
13975#define inline
8a7b1113 13976_ACEOF
de59c161
RD
13977 ;;
13978 *) cat >>confdefs.h <<_ACEOF
13979#define inline $ac_cv_c_inline
13980_ACEOF
13981 ;;
a848cd7e
SC
13982esac
13983
13984
13985echo "$as_me:$LINENO: checking for char" >&5
13986echo $ECHO_N "checking for char... $ECHO_C" >&6
13987if test "${ac_cv_type_char+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989else
13990 cat >conftest.$ac_ext <<_ACEOF
de59c161 13991#line $LINENO "configure"
a848cd7e
SC
13992/* confdefs.h. */
13993_ACEOF
13994cat confdefs.h >>conftest.$ac_ext
13995cat >>conftest.$ac_ext <<_ACEOF
13996/* end confdefs.h. */
13997$ac_includes_default
13998int
13999main ()
14000{
14001if ((char *) 0)
14002 return 0;
14003if (sizeof (char))
14004 return 0;
14005 ;
14006 return 0;
14007}
14008_ACEOF
14009rm -f conftest.$ac_objext
14010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14011 (eval $ac_compile) 2>&5
a848cd7e 14012 ac_status=$?
a848cd7e
SC
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
de59c161 14015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 ac_cv_type_char=yes
14022else
14023 echo "$as_me: failed program was:" >&5
14024sed 's/^/| /' conftest.$ac_ext >&5
14025
14026ac_cv_type_char=no
14027fi
de59c161 14028rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14029fi
14030echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14031echo "${ECHO_T}$ac_cv_type_char" >&6
14032
14033echo "$as_me:$LINENO: checking size of char" >&5
14034echo $ECHO_N "checking size of char... $ECHO_C" >&6
14035if test "${ac_cv_sizeof_char+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14037else
14038 if test "$ac_cv_type_char" = yes; then
14039 # The cast to unsigned long works around a bug in the HP C Compiler
14040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14042 # This bug is HP SR number 8606223364.
14043 if test "$cross_compiling" = yes; then
14044 # Depending upon the size, compute the lo and hi bounds.
14045cat >conftest.$ac_ext <<_ACEOF
de59c161 14046#line $LINENO "configure"
a848cd7e
SC
14047/* confdefs.h. */
14048_ACEOF
14049cat confdefs.h >>conftest.$ac_ext
14050cat >>conftest.$ac_ext <<_ACEOF
14051/* end confdefs.h. */
14052$ac_includes_default
14053int
14054main ()
14055{
14056static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14057test_array [0] = 0
14058
14059 ;
14060 return 0;
14061}
14062_ACEOF
14063rm -f conftest.$ac_objext
14064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14065 (eval $ac_compile) 2>&5
a848cd7e 14066 ac_status=$?
a848cd7e
SC
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
de59c161 14069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_lo=0 ac_mid=0
14076 while :; do
14077 cat >conftest.$ac_ext <<_ACEOF
de59c161 14078#line $LINENO "configure"
a848cd7e
SC
14079/* confdefs.h. */
14080_ACEOF
14081cat confdefs.h >>conftest.$ac_ext
14082cat >>conftest.$ac_ext <<_ACEOF
14083/* end confdefs.h. */
14084$ac_includes_default
14085int
14086main ()
14087{
14088static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14089test_array [0] = 0
14090
14091 ;
14092 return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14097 (eval $ac_compile) 2>&5
a848cd7e 14098 ac_status=$?
a848cd7e
SC
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
de59c161 14101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_hi=$ac_mid; break
14108else
14109 echo "$as_me: failed program was:" >&5
14110sed 's/^/| /' conftest.$ac_ext >&5
14111
14112ac_lo=`expr $ac_mid + 1`
de59c161
RD
14113 if test $ac_lo -le $ac_mid; then
14114 ac_lo= ac_hi=
14115 break
14116 fi
14117 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14118fi
de59c161 14119rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14120 done
14121else
14122 echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125cat >conftest.$ac_ext <<_ACEOF
de59c161 14126#line $LINENO "configure"
a848cd7e
SC
14127/* confdefs.h. */
14128_ACEOF
14129cat confdefs.h >>conftest.$ac_ext
14130cat >>conftest.$ac_ext <<_ACEOF
14131/* end confdefs.h. */
14132$ac_includes_default
14133int
14134main ()
14135{
14136static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14137test_array [0] = 0
14138
14139 ;
14140 return 0;
14141}
14142_ACEOF
14143rm -f conftest.$ac_objext
14144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14145 (eval $ac_compile) 2>&5
a848cd7e 14146 ac_status=$?
a848cd7e
SC
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
de59c161 14149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 ac_hi=-1 ac_mid=-1
14156 while :; do
14157 cat >conftest.$ac_ext <<_ACEOF
de59c161 14158#line $LINENO "configure"
a848cd7e
SC
14159/* confdefs.h. */
14160_ACEOF
14161cat confdefs.h >>conftest.$ac_ext
14162cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h. */
14164$ac_includes_default
14165int
14166main ()
14167{
14168static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14169test_array [0] = 0
14170
14171 ;
14172 return 0;
14173}
14174_ACEOF
14175rm -f conftest.$ac_objext
14176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14177 (eval $ac_compile) 2>&5
a848cd7e 14178 ac_status=$?
a848cd7e
SC
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
de59c161 14181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_lo=$ac_mid; break
14188else
14189 echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5
14191
14192ac_hi=`expr '(' $ac_mid ')' - 1`
de59c161
RD
14193 if test $ac_mid -le $ac_hi; then
14194 ac_lo= ac_hi=
14195 break
14196 fi
14197 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14198fi
de59c161 14199rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14200 done
14201else
14202 echo "$as_me: failed program was:" >&5
14203sed 's/^/| /' conftest.$ac_ext >&5
14204
14205ac_lo= ac_hi=
14206fi
de59c161 14207rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 14208fi
de59c161 14209rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14210# Binary search between lo and hi bounds.
14211while test "x$ac_lo" != "x$ac_hi"; do
14212 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14213 cat >conftest.$ac_ext <<_ACEOF
de59c161 14214#line $LINENO "configure"
a848cd7e
SC
14215/* confdefs.h. */
14216_ACEOF
14217cat confdefs.h >>conftest.$ac_ext
14218cat >>conftest.$ac_ext <<_ACEOF
14219/* end confdefs.h. */
14220$ac_includes_default
14221int
14222main ()
14223{
14224static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14225test_array [0] = 0
14226
14227 ;
14228 return 0;
14229}
14230_ACEOF
14231rm -f conftest.$ac_objext
14232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14233 (eval $ac_compile) 2>&5
a848cd7e 14234 ac_status=$?
a848cd7e
SC
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
de59c161 14237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_hi=$ac_mid
14244else
14245 echo "$as_me: failed program was:" >&5
14246sed 's/^/| /' conftest.$ac_ext >&5
14247
14248ac_lo=`expr '(' $ac_mid ')' + 1`
14249fi
de59c161 14250rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14251done
14252case $ac_lo in
14253?*) ac_cv_sizeof_char=$ac_lo;;
14254'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14255See \`config.log' for more details." >&5
14256echo "$as_me: error: cannot compute sizeof (char), 77
14257See \`config.log' for more details." >&2;}
14258 { (exit 1); exit 1; }; } ;;
14259esac
14260else
14261 if test "$cross_compiling" = yes; then
14262 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14263See \`config.log' for more details." >&5
14264echo "$as_me: error: cannot run test program while cross compiling
14265See \`config.log' for more details." >&2;}
14266 { (exit 1); exit 1; }; }
14267else
14268 cat >conftest.$ac_ext <<_ACEOF
de59c161 14269#line $LINENO "configure"
a848cd7e
SC
14270/* confdefs.h. */
14271_ACEOF
14272cat confdefs.h >>conftest.$ac_ext
14273cat >>conftest.$ac_ext <<_ACEOF
14274/* end confdefs.h. */
14275$ac_includes_default
14276long longval () { return (long) (sizeof (char)); }
14277unsigned long ulongval () { return (long) (sizeof (char)); }
14278#include <stdio.h>
14279#include <stdlib.h>
14280int
14281main ()
14282{
14283
14284 FILE *f = fopen ("conftest.val", "w");
14285 if (! f)
14286 exit (1);
14287 if (((long) (sizeof (char))) < 0)
14288 {
14289 long i = longval ();
14290 if (i != ((long) (sizeof (char))))
14291 exit (1);
14292 fprintf (f, "%ld\n", i);
14293 }
14294 else
14295 {
14296 unsigned long i = ulongval ();
14297 if (i != ((long) (sizeof (char))))
14298 exit (1);
14299 fprintf (f, "%lu\n", i);
14300 }
14301 exit (ferror (f) || fclose (f) != 0);
14302
14303 ;
14304 return 0;
14305}
14306_ACEOF
14307rm -f conftest$ac_exeext
14308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14309 (eval $ac_link) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 ac_cv_sizeof_char=`cat conftest.val`
14319else
14320 echo "$as_me: program exited with status $ac_status" >&5
14321echo "$as_me: failed program was:" >&5
14322sed 's/^/| /' conftest.$ac_ext >&5
14323
14324( exit $ac_status )
14325{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14326See \`config.log' for more details." >&5
14327echo "$as_me: error: cannot compute sizeof (char), 77
14328See \`config.log' for more details." >&2;}
14329 { (exit 1); exit 1; }; }
14330fi
de59c161 14331rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14332fi
14333fi
14334rm -f conftest.val
14335else
14336 ac_cv_sizeof_char=0
14337fi
14338fi
14339echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14340echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14341cat >>confdefs.h <<_ACEOF
14342#define SIZEOF_CHAR $ac_cv_sizeof_char
14343_ACEOF
14344
14345
14346echo "$as_me:$LINENO: checking for short" >&5
14347echo $ECHO_N "checking for short... $ECHO_C" >&6
14348if test "${ac_cv_type_short+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350else
14351 cat >conftest.$ac_ext <<_ACEOF
de59c161 14352#line $LINENO "configure"
a848cd7e
SC
14353/* confdefs.h. */
14354_ACEOF
14355cat confdefs.h >>conftest.$ac_ext
14356cat >>conftest.$ac_ext <<_ACEOF
14357/* end confdefs.h. */
14358$ac_includes_default
14359int
14360main ()
14361{
14362if ((short *) 0)
14363 return 0;
14364if (sizeof (short))
14365 return 0;
14366 ;
14367 return 0;
14368}
14369_ACEOF
14370rm -f conftest.$ac_objext
14371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14372 (eval $ac_compile) 2>&5
a848cd7e 14373 ac_status=$?
a848cd7e
SC
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } &&
de59c161 14376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_type_short=yes
14383else
14384 echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
14386
14387ac_cv_type_short=no
14388fi
de59c161 14389rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14390fi
14391echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14392echo "${ECHO_T}$ac_cv_type_short" >&6
14393
14394echo "$as_me:$LINENO: checking size of short" >&5
14395echo $ECHO_N "checking size of short... $ECHO_C" >&6
14396if test "${ac_cv_sizeof_short+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398else
14399 if test "$ac_cv_type_short" = yes; then
14400 # The cast to unsigned long works around a bug in the HP C Compiler
14401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14403 # This bug is HP SR number 8606223364.
14404 if test "$cross_compiling" = yes; then
14405 # Depending upon the size, compute the lo and hi bounds.
14406cat >conftest.$ac_ext <<_ACEOF
de59c161 14407#line $LINENO "configure"
a848cd7e
SC
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
14413$ac_includes_default
14414int
14415main ()
14416{
14417static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14418test_array [0] = 0
14419
14420 ;
14421 return 0;
14422}
14423_ACEOF
14424rm -f conftest.$ac_objext
14425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14426 (eval $ac_compile) 2>&5
a848cd7e 14427 ac_status=$?
a848cd7e
SC
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
de59c161 14430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 ac_lo=0 ac_mid=0
14437 while :; do
14438 cat >conftest.$ac_ext <<_ACEOF
de59c161 14439#line $LINENO "configure"
a848cd7e
SC
14440/* confdefs.h. */
14441_ACEOF
14442cat confdefs.h >>conftest.$ac_ext
14443cat >>conftest.$ac_ext <<_ACEOF
14444/* end confdefs.h. */
14445$ac_includes_default
14446int
14447main ()
14448{
14449static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14450test_array [0] = 0
14451
14452 ;
14453 return 0;
14454}
14455_ACEOF
14456rm -f conftest.$ac_objext
14457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14458 (eval $ac_compile) 2>&5
a848cd7e 14459 ac_status=$?
a848cd7e
SC
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
de59c161 14462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_hi=$ac_mid; break
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473ac_lo=`expr $ac_mid + 1`
de59c161
RD
14474 if test $ac_lo -le $ac_mid; then
14475 ac_lo= ac_hi=
14476 break
14477 fi
14478 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14479fi
de59c161 14480rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14481 done
14482else
14483 echo "$as_me: failed program was:" >&5
14484sed 's/^/| /' conftest.$ac_ext >&5
14485
14486cat >conftest.$ac_ext <<_ACEOF
de59c161 14487#line $LINENO "configure"
a848cd7e
SC
14488/* confdefs.h. */
14489_ACEOF
14490cat confdefs.h >>conftest.$ac_ext
14491cat >>conftest.$ac_ext <<_ACEOF
14492/* end confdefs.h. */
14493$ac_includes_default
14494int
14495main ()
14496{
14497static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14498test_array [0] = 0
14499
14500 ;
14501 return 0;
14502}
14503_ACEOF
14504rm -f conftest.$ac_objext
14505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14506 (eval $ac_compile) 2>&5
a848cd7e 14507 ac_status=$?
a848cd7e
SC
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
de59c161 14510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_hi=-1 ac_mid=-1
14517 while :; do
14518 cat >conftest.$ac_ext <<_ACEOF
de59c161 14519#line $LINENO "configure"
a848cd7e
SC
14520/* confdefs.h. */
14521_ACEOF
14522cat confdefs.h >>conftest.$ac_ext
14523cat >>conftest.$ac_ext <<_ACEOF
14524/* end confdefs.h. */
14525$ac_includes_default
14526int
14527main ()
14528{
14529static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14530test_array [0] = 0
14531
14532 ;
14533 return 0;
14534}
14535_ACEOF
14536rm -f conftest.$ac_objext
14537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14538 (eval $ac_compile) 2>&5
a848cd7e 14539 ac_status=$?
a848cd7e
SC
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
de59c161 14542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_lo=$ac_mid; break
14549else
14550 echo "$as_me: failed program was:" >&5
14551sed 's/^/| /' conftest.$ac_ext >&5
14552
14553ac_hi=`expr '(' $ac_mid ')' - 1`
de59c161
RD
14554 if test $ac_mid -le $ac_hi; then
14555 ac_lo= ac_hi=
14556 break
14557 fi
14558 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14559fi
de59c161 14560rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14561 done
14562else
14563 echo "$as_me: failed program was:" >&5
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
14566ac_lo= ac_hi=
14567fi
de59c161 14568rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 14569fi
de59c161 14570rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14571# Binary search between lo and hi bounds.
14572while test "x$ac_lo" != "x$ac_hi"; do
14573 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14574 cat >conftest.$ac_ext <<_ACEOF
de59c161 14575#line $LINENO "configure"
a848cd7e
SC
14576/* confdefs.h. */
14577_ACEOF
14578cat confdefs.h >>conftest.$ac_ext
14579cat >>conftest.$ac_ext <<_ACEOF
14580/* end confdefs.h. */
14581$ac_includes_default
14582int
14583main ()
14584{
14585static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14586test_array [0] = 0
14587
14588 ;
14589 return 0;
14590}
14591_ACEOF
14592rm -f conftest.$ac_objext
14593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14594 (eval $ac_compile) 2>&5
a848cd7e 14595 ac_status=$?
a848cd7e
SC
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
de59c161 14598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_hi=$ac_mid
14605else
14606 echo "$as_me: failed program was:" >&5
14607sed 's/^/| /' conftest.$ac_ext >&5
14608
14609ac_lo=`expr '(' $ac_mid ')' + 1`
14610fi
de59c161 14611rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14612done
14613case $ac_lo in
14614?*) ac_cv_sizeof_short=$ac_lo;;
14615'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14616See \`config.log' for more details." >&5
14617echo "$as_me: error: cannot compute sizeof (short), 77
14618See \`config.log' for more details." >&2;}
14619 { (exit 1); exit 1; }; } ;;
14620esac
14621else
14622 if test "$cross_compiling" = yes; then
14623 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14624See \`config.log' for more details." >&5
14625echo "$as_me: error: cannot run test program while cross compiling
14626See \`config.log' for more details." >&2;}
14627 { (exit 1); exit 1; }; }
14628else
14629 cat >conftest.$ac_ext <<_ACEOF
de59c161 14630#line $LINENO "configure"
a848cd7e
SC
14631/* confdefs.h. */
14632_ACEOF
14633cat confdefs.h >>conftest.$ac_ext
14634cat >>conftest.$ac_ext <<_ACEOF
14635/* end confdefs.h. */
14636$ac_includes_default
14637long longval () { return (long) (sizeof (short)); }
14638unsigned long ulongval () { return (long) (sizeof (short)); }
14639#include <stdio.h>
14640#include <stdlib.h>
14641int
14642main ()
14643{
14644
14645 FILE *f = fopen ("conftest.val", "w");
14646 if (! f)
14647 exit (1);
14648 if (((long) (sizeof (short))) < 0)
14649 {
14650 long i = longval ();
14651 if (i != ((long) (sizeof (short))))
14652 exit (1);
14653 fprintf (f, "%ld\n", i);
14654 }
14655 else
14656 {
14657 unsigned long i = ulongval ();
14658 if (i != ((long) (sizeof (short))))
14659 exit (1);
14660 fprintf (f, "%lu\n", i);
14661 }
14662 exit (ferror (f) || fclose (f) != 0);
14663
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668rm -f conftest$ac_exeext
14669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670 (eval $ac_link) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_cv_sizeof_short=`cat conftest.val`
14680else
14681 echo "$as_me: program exited with status $ac_status" >&5
14682echo "$as_me: failed program was:" >&5
14683sed 's/^/| /' conftest.$ac_ext >&5
14684
14685( exit $ac_status )
14686{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14687See \`config.log' for more details." >&5
14688echo "$as_me: error: cannot compute sizeof (short), 77
14689See \`config.log' for more details." >&2;}
14690 { (exit 1); exit 1; }; }
14691fi
de59c161 14692rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14693fi
14694fi
14695rm -f conftest.val
14696else
14697 ac_cv_sizeof_short=0
14698fi
14699fi
14700echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14701echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14702cat >>confdefs.h <<_ACEOF
14703#define SIZEOF_SHORT $ac_cv_sizeof_short
14704_ACEOF
14705
14706
14707echo "$as_me:$LINENO: checking for void *" >&5
14708echo $ECHO_N "checking for void *... $ECHO_C" >&6
14709if test "${ac_cv_type_void_p+set}" = set; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
14711else
14712 cat >conftest.$ac_ext <<_ACEOF
de59c161 14713#line $LINENO "configure"
a848cd7e
SC
14714/* confdefs.h. */
14715_ACEOF
14716cat confdefs.h >>conftest.$ac_ext
14717cat >>conftest.$ac_ext <<_ACEOF
14718/* end confdefs.h. */
14719$ac_includes_default
14720int
14721main ()
14722{
14723if ((void * *) 0)
14724 return 0;
14725if (sizeof (void *))
14726 return 0;
14727 ;
14728 return 0;
14729}
14730_ACEOF
14731rm -f conftest.$ac_objext
14732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14733 (eval $ac_compile) 2>&5
a848cd7e 14734 ac_status=$?
a848cd7e
SC
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
de59c161 14737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_cv_type_void_p=yes
14744else
14745 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
14748ac_cv_type_void_p=no
14749fi
de59c161 14750rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14751fi
14752echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14753echo "${ECHO_T}$ac_cv_type_void_p" >&6
14754
14755echo "$as_me:$LINENO: checking size of void *" >&5
14756echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14757if test "${ac_cv_sizeof_void_p+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760 if test "$ac_cv_type_void_p" = yes; then
14761 # The cast to unsigned long works around a bug in the HP C Compiler
14762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14764 # This bug is HP SR number 8606223364.
14765 if test "$cross_compiling" = yes; then
14766 # Depending upon the size, compute the lo and hi bounds.
14767cat >conftest.$ac_ext <<_ACEOF
de59c161 14768#line $LINENO "configure"
a848cd7e
SC
14769/* confdefs.h. */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h. */
14774$ac_includes_default
14775int
14776main ()
14777{
14778static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14779test_array [0] = 0
14780
14781 ;
14782 return 0;
14783}
14784_ACEOF
14785rm -f conftest.$ac_objext
14786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14787 (eval $ac_compile) 2>&5
a848cd7e 14788 ac_status=$?
a848cd7e
SC
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
de59c161 14791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_lo=0 ac_mid=0
14798 while :; do
14799 cat >conftest.$ac_ext <<_ACEOF
de59c161 14800#line $LINENO "configure"
a848cd7e
SC
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806$ac_includes_default
14807int
14808main ()
14809{
14810static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14811test_array [0] = 0
14812
14813 ;
14814 return 0;
14815}
14816_ACEOF
14817rm -f conftest.$ac_objext
14818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14819 (eval $ac_compile) 2>&5
a848cd7e 14820 ac_status=$?
a848cd7e
SC
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
de59c161 14823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; }; then
14829 ac_hi=$ac_mid; break
14830else
14831 echo "$as_me: failed program was:" >&5
14832sed 's/^/| /' conftest.$ac_ext >&5
14833
14834ac_lo=`expr $ac_mid + 1`
de59c161
RD
14835 if test $ac_lo -le $ac_mid; then
14836 ac_lo= ac_hi=
14837 break
14838 fi
14839 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14840fi
de59c161 14841rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14842 done
14843else
14844 echo "$as_me: failed program was:" >&5
14845sed 's/^/| /' conftest.$ac_ext >&5
14846
14847cat >conftest.$ac_ext <<_ACEOF
de59c161 14848#line $LINENO "configure"
a848cd7e
SC
14849/* confdefs.h. */
14850_ACEOF
14851cat confdefs.h >>conftest.$ac_ext
14852cat >>conftest.$ac_ext <<_ACEOF
14853/* end confdefs.h. */
14854$ac_includes_default
14855int
14856main ()
14857{
14858static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14859test_array [0] = 0
14860
14861 ;
14862 return 0;
14863}
14864_ACEOF
14865rm -f conftest.$ac_objext
14866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14867 (eval $ac_compile) 2>&5
a848cd7e 14868 ac_status=$?
a848cd7e
SC
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
de59c161 14871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_hi=-1 ac_mid=-1
14878 while :; do
14879 cat >conftest.$ac_ext <<_ACEOF
de59c161 14880#line $LINENO "configure"
a848cd7e
SC
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h. */
14886$ac_includes_default
14887int
14888main ()
14889{
14890static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14891test_array [0] = 0
14892
14893 ;
14894 return 0;
14895}
14896_ACEOF
14897rm -f conftest.$ac_objext
14898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14899 (eval $ac_compile) 2>&5
a848cd7e 14900 ac_status=$?
a848cd7e
SC
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
de59c161 14903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_lo=$ac_mid; break
14910else
14911 echo "$as_me: failed program was:" >&5
14912sed 's/^/| /' conftest.$ac_ext >&5
14913
14914ac_hi=`expr '(' $ac_mid ')' - 1`
de59c161
RD
14915 if test $ac_mid -le $ac_hi; then
14916 ac_lo= ac_hi=
14917 break
14918 fi
14919 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14920fi
de59c161 14921rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14922 done
14923else
14924 echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
14927ac_lo= ac_hi=
14928fi
de59c161 14929rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 14930fi
de59c161 14931rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14932# Binary search between lo and hi bounds.
14933while test "x$ac_lo" != "x$ac_hi"; do
14934 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14935 cat >conftest.$ac_ext <<_ACEOF
de59c161 14936#line $LINENO "configure"
a848cd7e
SC
14937/* confdefs.h. */
14938_ACEOF
14939cat confdefs.h >>conftest.$ac_ext
14940cat >>conftest.$ac_ext <<_ACEOF
14941/* end confdefs.h. */
14942$ac_includes_default
14943int
14944main ()
14945{
14946static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14947test_array [0] = 0
14948
14949 ;
14950 return 0;
14951}
14952_ACEOF
14953rm -f conftest.$ac_objext
14954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 14955 (eval $ac_compile) 2>&5
a848cd7e 14956 ac_status=$?
a848cd7e
SC
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
de59c161 14959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_hi=$ac_mid
14966else
14967 echo "$as_me: failed program was:" >&5
14968sed 's/^/| /' conftest.$ac_ext >&5
14969
14970ac_lo=`expr '(' $ac_mid ')' + 1`
14971fi
de59c161 14972rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14973done
14974case $ac_lo in
14975?*) ac_cv_sizeof_void_p=$ac_lo;;
14976'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14977See \`config.log' for more details." >&5
14978echo "$as_me: error: cannot compute sizeof (void *), 77
14979See \`config.log' for more details." >&2;}
14980 { (exit 1); exit 1; }; } ;;
14981esac
14982else
14983 if test "$cross_compiling" = yes; then
14984 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14985See \`config.log' for more details." >&5
14986echo "$as_me: error: cannot run test program while cross compiling
14987See \`config.log' for more details." >&2;}
14988 { (exit 1); exit 1; }; }
14989else
14990 cat >conftest.$ac_ext <<_ACEOF
de59c161 14991#line $LINENO "configure"
a848cd7e
SC
14992/* confdefs.h. */
14993_ACEOF
14994cat confdefs.h >>conftest.$ac_ext
14995cat >>conftest.$ac_ext <<_ACEOF
14996/* end confdefs.h. */
14997$ac_includes_default
14998long longval () { return (long) (sizeof (void *)); }
14999unsigned long ulongval () { return (long) (sizeof (void *)); }
15000#include <stdio.h>
15001#include <stdlib.h>
15002int
15003main ()
15004{
15005
15006 FILE *f = fopen ("conftest.val", "w");
15007 if (! f)
15008 exit (1);
15009 if (((long) (sizeof (void *))) < 0)
15010 {
15011 long i = longval ();
15012 if (i != ((long) (sizeof (void *))))
15013 exit (1);
15014 fprintf (f, "%ld\n", i);
15015 }
15016 else
15017 {
15018 unsigned long i = ulongval ();
15019 if (i != ((long) (sizeof (void *))))
15020 exit (1);
15021 fprintf (f, "%lu\n", i);
15022 }
15023 exit (ferror (f) || fclose (f) != 0);
15024
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest$ac_exeext
15030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 ac_cv_sizeof_void_p=`cat conftest.val`
15041else
15042 echo "$as_me: program exited with status $ac_status" >&5
15043echo "$as_me: failed program was:" >&5
15044sed 's/^/| /' conftest.$ac_ext >&5
15045
15046( exit $ac_status )
15047{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15048See \`config.log' for more details." >&5
15049echo "$as_me: error: cannot compute sizeof (void *), 77
15050See \`config.log' for more details." >&2;}
15051 { (exit 1); exit 1; }; }
15052fi
de59c161 15053rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15054fi
15055fi
15056rm -f conftest.val
15057else
15058 ac_cv_sizeof_void_p=0
15059fi
15060fi
15061echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15062echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15063cat >>confdefs.h <<_ACEOF
15064#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15065_ACEOF
15066
15067
15068echo "$as_me:$LINENO: checking for int" >&5
15069echo $ECHO_N "checking for int... $ECHO_C" >&6
15070if test "${ac_cv_type_int+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15072else
15073 cat >conftest.$ac_ext <<_ACEOF
de59c161 15074#line $LINENO "configure"
a848cd7e
SC
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
15080$ac_includes_default
15081int
15082main ()
15083{
15084if ((int *) 0)
15085 return 0;
15086if (sizeof (int))
15087 return 0;
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext
15093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15094 (eval $ac_compile) 2>&5
a848cd7e 15095 ac_status=$?
a848cd7e
SC
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
de59c161 15098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_cv_type_int=yes
15105else
15106 echo "$as_me: failed program was:" >&5
15107sed 's/^/| /' conftest.$ac_ext >&5
15108
15109ac_cv_type_int=no
15110fi
de59c161 15111rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15112fi
15113echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15114echo "${ECHO_T}$ac_cv_type_int" >&6
15115
15116echo "$as_me:$LINENO: checking size of int" >&5
15117echo $ECHO_N "checking size of int... $ECHO_C" >&6
15118if test "${ac_cv_sizeof_int+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120else
15121 if test "$ac_cv_type_int" = yes; then
15122 # The cast to unsigned long works around a bug in the HP C Compiler
15123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15125 # This bug is HP SR number 8606223364.
15126 if test "$cross_compiling" = yes; then
15127 # Depending upon the size, compute the lo and hi bounds.
15128cat >conftest.$ac_ext <<_ACEOF
de59c161 15129#line $LINENO "configure"
a848cd7e
SC
15130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h. */
15135$ac_includes_default
15136int
15137main ()
15138{
15139static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15140test_array [0] = 0
15141
15142 ;
15143 return 0;
15144}
15145_ACEOF
15146rm -f conftest.$ac_objext
15147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15148 (eval $ac_compile) 2>&5
a848cd7e 15149 ac_status=$?
a848cd7e
SC
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
de59c161 15152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_lo=0 ac_mid=0
15159 while :; do
15160 cat >conftest.$ac_ext <<_ACEOF
de59c161 15161#line $LINENO "configure"
a848cd7e
SC
15162/* confdefs.h. */
15163_ACEOF
15164cat confdefs.h >>conftest.$ac_ext
15165cat >>conftest.$ac_ext <<_ACEOF
15166/* end confdefs.h. */
15167$ac_includes_default
15168int
15169main ()
15170{
15171static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15172test_array [0] = 0
15173
15174 ;
15175 return 0;
15176}
15177_ACEOF
15178rm -f conftest.$ac_objext
15179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15180 (eval $ac_compile) 2>&5
a848cd7e 15181 ac_status=$?
a848cd7e
SC
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
de59c161 15184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_hi=$ac_mid; break
15191else
15192 echo "$as_me: failed program was:" >&5
15193sed 's/^/| /' conftest.$ac_ext >&5
15194
15195ac_lo=`expr $ac_mid + 1`
de59c161
RD
15196 if test $ac_lo -le $ac_mid; then
15197 ac_lo= ac_hi=
15198 break
15199 fi
15200 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15201fi
de59c161 15202rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15203 done
15204else
15205 echo "$as_me: failed program was:" >&5
15206sed 's/^/| /' conftest.$ac_ext >&5
15207
15208cat >conftest.$ac_ext <<_ACEOF
de59c161 15209#line $LINENO "configure"
a848cd7e
SC
15210/* confdefs.h. */
15211_ACEOF
15212cat confdefs.h >>conftest.$ac_ext
15213cat >>conftest.$ac_ext <<_ACEOF
15214/* end confdefs.h. */
15215$ac_includes_default
15216int
15217main ()
15218{
15219static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15220test_array [0] = 0
15221
15222 ;
15223 return 0;
15224}
15225_ACEOF
15226rm -f conftest.$ac_objext
15227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15228 (eval $ac_compile) 2>&5
a848cd7e 15229 ac_status=$?
a848cd7e
SC
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
de59c161 15232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 ac_hi=-1 ac_mid=-1
15239 while :; do
15240 cat >conftest.$ac_ext <<_ACEOF
de59c161 15241#line $LINENO "configure"
a848cd7e
SC
15242/* confdefs.h. */
15243_ACEOF
15244cat confdefs.h >>conftest.$ac_ext
15245cat >>conftest.$ac_ext <<_ACEOF
15246/* end confdefs.h. */
15247$ac_includes_default
15248int
15249main ()
15250{
15251static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15252test_array [0] = 0
15253
15254 ;
15255 return 0;
15256}
15257_ACEOF
15258rm -f conftest.$ac_objext
15259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15260 (eval $ac_compile) 2>&5
a848cd7e 15261 ac_status=$?
a848cd7e
SC
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
de59c161 15264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_lo=$ac_mid; break
15271else
15272 echo "$as_me: failed program was:" >&5
15273sed 's/^/| /' conftest.$ac_ext >&5
15274
15275ac_hi=`expr '(' $ac_mid ')' - 1`
de59c161
RD
15276 if test $ac_mid -le $ac_hi; then
15277 ac_lo= ac_hi=
15278 break
15279 fi
15280 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15281fi
de59c161 15282rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15283 done
15284else
15285 echo "$as_me: failed program was:" >&5
15286sed 's/^/| /' conftest.$ac_ext >&5
15287
15288ac_lo= ac_hi=
15289fi
de59c161 15290rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 15291fi
de59c161 15292rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15293# Binary search between lo and hi bounds.
15294while test "x$ac_lo" != "x$ac_hi"; do
15295 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15296 cat >conftest.$ac_ext <<_ACEOF
de59c161 15297#line $LINENO "configure"
a848cd7e
SC
15298/* confdefs.h. */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
15302/* end confdefs.h. */
15303$ac_includes_default
15304int
15305main ()
15306{
15307static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15308test_array [0] = 0
15309
15310 ;
15311 return 0;
15312}
15313_ACEOF
15314rm -f conftest.$ac_objext
15315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15316 (eval $ac_compile) 2>&5
a848cd7e 15317 ac_status=$?
a848cd7e
SC
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
de59c161 15320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_hi=$ac_mid
15327else
15328 echo "$as_me: failed program was:" >&5
15329sed 's/^/| /' conftest.$ac_ext >&5
15330
15331ac_lo=`expr '(' $ac_mid ')' + 1`
15332fi
de59c161 15333rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15334done
15335case $ac_lo in
15336?*) ac_cv_sizeof_int=$ac_lo;;
15337'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15338See \`config.log' for more details." >&5
15339echo "$as_me: error: cannot compute sizeof (int), 77
15340See \`config.log' for more details." >&2;}
15341 { (exit 1); exit 1; }; } ;;
15342esac
15343else
15344 if test "$cross_compiling" = yes; then
15345 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15346See \`config.log' for more details." >&5
15347echo "$as_me: error: cannot run test program while cross compiling
15348See \`config.log' for more details." >&2;}
15349 { (exit 1); exit 1; }; }
15350else
15351 cat >conftest.$ac_ext <<_ACEOF
de59c161 15352#line $LINENO "configure"
a848cd7e
SC
15353/* confdefs.h. */
15354_ACEOF
15355cat confdefs.h >>conftest.$ac_ext
15356cat >>conftest.$ac_ext <<_ACEOF
15357/* end confdefs.h. */
15358$ac_includes_default
15359long longval () { return (long) (sizeof (int)); }
15360unsigned long ulongval () { return (long) (sizeof (int)); }
15361#include <stdio.h>
15362#include <stdlib.h>
15363int
15364main ()
15365{
15366
15367 FILE *f = fopen ("conftest.val", "w");
15368 if (! f)
15369 exit (1);
15370 if (((long) (sizeof (int))) < 0)
15371 {
15372 long i = longval ();
15373 if (i != ((long) (sizeof (int))))
15374 exit (1);
15375 fprintf (f, "%ld\n", i);
15376 }
15377 else
15378 {
15379 unsigned long i = ulongval ();
15380 if (i != ((long) (sizeof (int))))
15381 exit (1);
15382 fprintf (f, "%lu\n", i);
15383 }
15384 exit (ferror (f) || fclose (f) != 0);
15385
15386 ;
15387 return 0;
15388}
15389_ACEOF
15390rm -f conftest$ac_exeext
15391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392 (eval $ac_link) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_cv_sizeof_int=`cat conftest.val`
15402else
15403 echo "$as_me: program exited with status $ac_status" >&5
15404echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
15407( exit $ac_status )
15408{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15409See \`config.log' for more details." >&5
15410echo "$as_me: error: cannot compute sizeof (int), 77
15411See \`config.log' for more details." >&2;}
15412 { (exit 1); exit 1; }; }
15413fi
de59c161 15414rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15415fi
15416fi
15417rm -f conftest.val
15418else
15419 ac_cv_sizeof_int=0
15420fi
15421fi
15422echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15423echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15424cat >>confdefs.h <<_ACEOF
15425#define SIZEOF_INT $ac_cv_sizeof_int
15426_ACEOF
15427
15428
15429echo "$as_me:$LINENO: checking for long" >&5
15430echo $ECHO_N "checking for long... $ECHO_C" >&6
15431if test "${ac_cv_type_long+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15433else
15434 cat >conftest.$ac_ext <<_ACEOF
de59c161 15435#line $LINENO "configure"
a848cd7e
SC
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
15441$ac_includes_default
15442int
15443main ()
15444{
15445if ((long *) 0)
15446 return 0;
15447if (sizeof (long))
15448 return 0;
15449 ;
15450 return 0;
15451}
15452_ACEOF
15453rm -f conftest.$ac_objext
15454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15455 (eval $ac_compile) 2>&5
a848cd7e 15456 ac_status=$?
a848cd7e
SC
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
de59c161 15459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_cv_type_long=yes
15466else
15467 echo "$as_me: failed program was:" >&5
15468sed 's/^/| /' conftest.$ac_ext >&5
15469
15470ac_cv_type_long=no
15471fi
de59c161 15472rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15473fi
15474echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15475echo "${ECHO_T}$ac_cv_type_long" >&6
15476
15477echo "$as_me:$LINENO: checking size of long" >&5
15478echo $ECHO_N "checking size of long... $ECHO_C" >&6
15479if test "${ac_cv_sizeof_long+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15481else
15482 if test "$ac_cv_type_long" = yes; then
15483 # The cast to unsigned long works around a bug in the HP C Compiler
15484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15486 # This bug is HP SR number 8606223364.
15487 if test "$cross_compiling" = yes; then
15488 # Depending upon the size, compute the lo and hi bounds.
15489cat >conftest.$ac_ext <<_ACEOF
de59c161 15490#line $LINENO "configure"
a848cd7e
SC
15491/* confdefs.h. */
15492_ACEOF
15493cat confdefs.h >>conftest.$ac_ext
15494cat >>conftest.$ac_ext <<_ACEOF
15495/* end confdefs.h. */
15496$ac_includes_default
15497int
15498main ()
15499{
15500static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15501test_array [0] = 0
15502
15503 ;
15504 return 0;
15505}
15506_ACEOF
15507rm -f conftest.$ac_objext
15508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15509 (eval $ac_compile) 2>&5
a848cd7e 15510 ac_status=$?
a848cd7e
SC
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
de59c161 15513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 ac_lo=0 ac_mid=0
15520 while :; do
15521 cat >conftest.$ac_ext <<_ACEOF
de59c161 15522#line $LINENO "configure"
a848cd7e
SC
15523/* confdefs.h. */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
15527/* end confdefs.h. */
15528$ac_includes_default
15529int
15530main ()
15531{
15532static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15533test_array [0] = 0
15534
15535 ;
15536 return 0;
15537}
15538_ACEOF
15539rm -f conftest.$ac_objext
15540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15541 (eval $ac_compile) 2>&5
a848cd7e 15542 ac_status=$?
a848cd7e
SC
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
de59c161 15545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_hi=$ac_mid; break
15552else
15553 echo "$as_me: failed program was:" >&5
15554sed 's/^/| /' conftest.$ac_ext >&5
15555
15556ac_lo=`expr $ac_mid + 1`
de59c161
RD
15557 if test $ac_lo -le $ac_mid; then
15558 ac_lo= ac_hi=
15559 break
15560 fi
15561 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15562fi
de59c161 15563rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15564 done
15565else
15566 echo "$as_me: failed program was:" >&5
15567sed 's/^/| /' conftest.$ac_ext >&5
15568
15569cat >conftest.$ac_ext <<_ACEOF
de59c161 15570#line $LINENO "configure"
a848cd7e
SC
15571/* confdefs.h. */
15572_ACEOF
15573cat confdefs.h >>conftest.$ac_ext
15574cat >>conftest.$ac_ext <<_ACEOF
15575/* end confdefs.h. */
15576$ac_includes_default
15577int
15578main ()
15579{
15580static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15581test_array [0] = 0
15582
15583 ;
15584 return 0;
15585}
15586_ACEOF
15587rm -f conftest.$ac_objext
15588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15589 (eval $ac_compile) 2>&5
a848cd7e 15590 ac_status=$?
a848cd7e
SC
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } &&
de59c161 15593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_hi=-1 ac_mid=-1
15600 while :; do
15601 cat >conftest.$ac_ext <<_ACEOF
de59c161 15602#line $LINENO "configure"
a848cd7e
SC
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608$ac_includes_default
15609int
15610main ()
15611{
15612static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15613test_array [0] = 0
15614
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext
15620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15621 (eval $ac_compile) 2>&5
a848cd7e 15622 ac_status=$?
a848cd7e
SC
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
de59c161 15625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 ac_lo=$ac_mid; break
15632else
15633 echo "$as_me: failed program was:" >&5
15634sed 's/^/| /' conftest.$ac_ext >&5
15635
15636ac_hi=`expr '(' $ac_mid ')' - 1`
de59c161
RD
15637 if test $ac_mid -le $ac_hi; then
15638 ac_lo= ac_hi=
15639 break
15640 fi
15641 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15642fi
de59c161 15643rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15644 done
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649ac_lo= ac_hi=
15650fi
de59c161 15651rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 15652fi
de59c161 15653rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15654# Binary search between lo and hi bounds.
15655while test "x$ac_lo" != "x$ac_hi"; do
15656 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15657 cat >conftest.$ac_ext <<_ACEOF
de59c161 15658#line $LINENO "configure"
a848cd7e
SC
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
15664$ac_includes_default
15665int
15666main ()
15667{
15668static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15669test_array [0] = 0
15670
15671 ;
15672 return 0;
15673}
15674_ACEOF
15675rm -f conftest.$ac_objext
15676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15677 (eval $ac_compile) 2>&5
a848cd7e 15678 ac_status=$?
a848cd7e
SC
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
de59c161 15681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; }; then
15687 ac_hi=$ac_mid
15688else
15689 echo "$as_me: failed program was:" >&5
15690sed 's/^/| /' conftest.$ac_ext >&5
15691
15692ac_lo=`expr '(' $ac_mid ')' + 1`
15693fi
de59c161 15694rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15695done
15696case $ac_lo in
15697?*) ac_cv_sizeof_long=$ac_lo;;
15698'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15699See \`config.log' for more details." >&5
15700echo "$as_me: error: cannot compute sizeof (long), 77
15701See \`config.log' for more details." >&2;}
15702 { (exit 1); exit 1; }; } ;;
15703esac
15704else
15705 if test "$cross_compiling" = yes; then
15706 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15707See \`config.log' for more details." >&5
15708echo "$as_me: error: cannot run test program while cross compiling
15709See \`config.log' for more details." >&2;}
15710 { (exit 1); exit 1; }; }
15711else
15712 cat >conftest.$ac_ext <<_ACEOF
de59c161 15713#line $LINENO "configure"
a848cd7e
SC
15714/* confdefs.h. */
15715_ACEOF
15716cat confdefs.h >>conftest.$ac_ext
15717cat >>conftest.$ac_ext <<_ACEOF
15718/* end confdefs.h. */
15719$ac_includes_default
15720long longval () { return (long) (sizeof (long)); }
15721unsigned long ulongval () { return (long) (sizeof (long)); }
15722#include <stdio.h>
15723#include <stdlib.h>
15724int
15725main ()
15726{
15727
15728 FILE *f = fopen ("conftest.val", "w");
15729 if (! f)
15730 exit (1);
15731 if (((long) (sizeof (long))) < 0)
15732 {
15733 long i = longval ();
15734 if (i != ((long) (sizeof (long))))
15735 exit (1);
15736 fprintf (f, "%ld\n", i);
15737 }
15738 else
15739 {
15740 unsigned long i = ulongval ();
15741 if (i != ((long) (sizeof (long))))
15742 exit (1);
15743 fprintf (f, "%lu\n", i);
15744 }
15745 exit (ferror (f) || fclose (f) != 0);
15746
15747 ;
15748 return 0;
15749}
15750_ACEOF
15751rm -f conftest$ac_exeext
15752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15753 (eval $ac_link) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_cv_sizeof_long=`cat conftest.val`
15763else
15764 echo "$as_me: program exited with status $ac_status" >&5
15765echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
15768( exit $ac_status )
15769{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15770See \`config.log' for more details." >&5
15771echo "$as_me: error: cannot compute sizeof (long), 77
15772See \`config.log' for more details." >&2;}
15773 { (exit 1); exit 1; }; }
15774fi
de59c161 15775rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15776fi
15777fi
15778rm -f conftest.val
15779else
15780 ac_cv_sizeof_long=0
15781fi
15782fi
15783echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15784echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15785cat >>confdefs.h <<_ACEOF
15786#define SIZEOF_LONG $ac_cv_sizeof_long
15787_ACEOF
15788
15789
15790echo "$as_me:$LINENO: checking for size_t" >&5
15791echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15792if test "${ac_cv_type_size_t+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794else
15795 cat >conftest.$ac_ext <<_ACEOF
de59c161 15796#line $LINENO "configure"
a848cd7e
SC
15797/* confdefs.h. */
15798_ACEOF
15799cat confdefs.h >>conftest.$ac_ext
15800cat >>conftest.$ac_ext <<_ACEOF
15801/* end confdefs.h. */
15802$ac_includes_default
15803int
15804main ()
15805{
15806if ((size_t *) 0)
15807 return 0;
15808if (sizeof (size_t))
15809 return 0;
15810 ;
15811 return 0;
15812}
15813_ACEOF
15814rm -f conftest.$ac_objext
15815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15816 (eval $ac_compile) 2>&5
a848cd7e 15817 ac_status=$?
a848cd7e
SC
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
de59c161 15820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15826 ac_cv_type_size_t=yes
15827else
15828 echo "$as_me: failed program was:" >&5
15829sed 's/^/| /' conftest.$ac_ext >&5
15830
15831ac_cv_type_size_t=no
15832fi
de59c161 15833rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15834fi
15835echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15836echo "${ECHO_T}$ac_cv_type_size_t" >&6
15837
15838echo "$as_me:$LINENO: checking size of size_t" >&5
15839echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
15840if test "${ac_cv_sizeof_size_t+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842else
15843 if test "$ac_cv_type_size_t" = yes; then
15844 # The cast to unsigned long works around a bug in the HP C Compiler
15845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15847 # This bug is HP SR number 8606223364.
15848 if test "$cross_compiling" = yes; then
15849 # Depending upon the size, compute the lo and hi bounds.
15850cat >conftest.$ac_ext <<_ACEOF
de59c161 15851#line $LINENO "configure"
a848cd7e
SC
15852/* confdefs.h. */
15853_ACEOF
15854cat confdefs.h >>conftest.$ac_ext
15855cat >>conftest.$ac_ext <<_ACEOF
15856/* end confdefs.h. */
15857$ac_includes_default
15858int
15859main ()
15860{
15861static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
15862test_array [0] = 0
15863
15864 ;
15865 return 0;
15866}
15867_ACEOF
15868rm -f conftest.$ac_objext
15869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15870 (eval $ac_compile) 2>&5
a848cd7e 15871 ac_status=$?
a848cd7e
SC
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
de59c161 15874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; }; then
15880 ac_lo=0 ac_mid=0
15881 while :; do
15882 cat >conftest.$ac_ext <<_ACEOF
de59c161 15883#line $LINENO "configure"
a848cd7e
SC
15884/* confdefs.h. */
15885_ACEOF
15886cat confdefs.h >>conftest.$ac_ext
15887cat >>conftest.$ac_ext <<_ACEOF
15888/* end confdefs.h. */
15889$ac_includes_default
15890int
15891main ()
15892{
15893static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15894test_array [0] = 0
15895
15896 ;
15897 return 0;
15898}
15899_ACEOF
15900rm -f conftest.$ac_objext
15901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15902 (eval $ac_compile) 2>&5
a848cd7e 15903 ac_status=$?
a848cd7e
SC
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
de59c161 15906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 ac_hi=$ac_mid; break
15913else
15914 echo "$as_me: failed program was:" >&5
15915sed 's/^/| /' conftest.$ac_ext >&5
15916
15917ac_lo=`expr $ac_mid + 1`
de59c161
RD
15918 if test $ac_lo -le $ac_mid; then
15919 ac_lo= ac_hi=
15920 break
15921 fi
15922 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15923fi
de59c161 15924rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15925 done
15926else
15927 echo "$as_me: failed program was:" >&5
15928sed 's/^/| /' conftest.$ac_ext >&5
15929
15930cat >conftest.$ac_ext <<_ACEOF
de59c161 15931#line $LINENO "configure"
a848cd7e
SC
15932/* confdefs.h. */
15933_ACEOF
15934cat confdefs.h >>conftest.$ac_ext
15935cat >>conftest.$ac_ext <<_ACEOF
15936/* end confdefs.h. */
15937$ac_includes_default
15938int
15939main ()
15940{
15941static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
15942test_array [0] = 0
15943
15944 ;
15945 return 0;
15946}
15947_ACEOF
15948rm -f conftest.$ac_objext
15949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15950 (eval $ac_compile) 2>&5
a848cd7e 15951 ac_status=$?
a848cd7e
SC
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
de59c161 15954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_hi=-1 ac_mid=-1
15961 while :; do
15962 cat >conftest.$ac_ext <<_ACEOF
de59c161 15963#line $LINENO "configure"
a848cd7e
SC
15964/* confdefs.h. */
15965_ACEOF
15966cat confdefs.h >>conftest.$ac_ext
15967cat >>conftest.$ac_ext <<_ACEOF
15968/* end confdefs.h. */
15969$ac_includes_default
15970int
15971main ()
15972{
15973static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
15974test_array [0] = 0
15975
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980rm -f conftest.$ac_objext
15981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 15982 (eval $ac_compile) 2>&5
a848cd7e 15983 ac_status=$?
a848cd7e
SC
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
de59c161 15986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15992 ac_lo=$ac_mid; break
15993else
15994 echo "$as_me: failed program was:" >&5
15995sed 's/^/| /' conftest.$ac_ext >&5
15996
15997ac_hi=`expr '(' $ac_mid ')' - 1`
de59c161
RD
15998 if test $ac_mid -le $ac_hi; then
15999 ac_lo= ac_hi=
16000 break
16001 fi
16002 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16003fi
de59c161 16004rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16005 done
16006else
16007 echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010ac_lo= ac_hi=
16011fi
de59c161 16012rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 16013fi
de59c161 16014rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16015# Binary search between lo and hi bounds.
16016while test "x$ac_lo" != "x$ac_hi"; do
16017 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16018 cat >conftest.$ac_ext <<_ACEOF
de59c161 16019#line $LINENO "configure"
a848cd7e
SC
16020/* confdefs.h. */
16021_ACEOF
16022cat confdefs.h >>conftest.$ac_ext
16023cat >>conftest.$ac_ext <<_ACEOF
16024/* end confdefs.h. */
16025$ac_includes_default
16026int
16027main ()
16028{
16029static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16030test_array [0] = 0
16031
16032 ;
16033 return 0;
16034}
16035_ACEOF
16036rm -f conftest.$ac_objext
16037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16038 (eval $ac_compile) 2>&5
a848cd7e 16039 ac_status=$?
a848cd7e
SC
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
de59c161 16042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_hi=$ac_mid
16049else
16050 echo "$as_me: failed program was:" >&5
16051sed 's/^/| /' conftest.$ac_ext >&5
16052
16053ac_lo=`expr '(' $ac_mid ')' + 1`
16054fi
de59c161 16055rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16056done
16057case $ac_lo in
16058?*) ac_cv_sizeof_size_t=$ac_lo;;
16059'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16060See \`config.log' for more details." >&5
16061echo "$as_me: error: cannot compute sizeof (size_t), 77
16062See \`config.log' for more details." >&2;}
16063 { (exit 1); exit 1; }; } ;;
16064esac
16065else
16066 if test "$cross_compiling" = yes; then
16067 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16068See \`config.log' for more details." >&5
16069echo "$as_me: error: cannot run test program while cross compiling
16070See \`config.log' for more details." >&2;}
16071 { (exit 1); exit 1; }; }
16072else
16073 cat >conftest.$ac_ext <<_ACEOF
de59c161 16074#line $LINENO "configure"
a848cd7e
SC
16075/* confdefs.h. */
16076_ACEOF
16077cat confdefs.h >>conftest.$ac_ext
16078cat >>conftest.$ac_ext <<_ACEOF
16079/* end confdefs.h. */
16080$ac_includes_default
16081long longval () { return (long) (sizeof (size_t)); }
16082unsigned long ulongval () { return (long) (sizeof (size_t)); }
16083#include <stdio.h>
16084#include <stdlib.h>
16085int
16086main ()
16087{
16088
16089 FILE *f = fopen ("conftest.val", "w");
16090 if (! f)
16091 exit (1);
16092 if (((long) (sizeof (size_t))) < 0)
16093 {
16094 long i = longval ();
16095 if (i != ((long) (sizeof (size_t))))
16096 exit (1);
16097 fprintf (f, "%ld\n", i);
16098 }
16099 else
16100 {
16101 unsigned long i = ulongval ();
16102 if (i != ((long) (sizeof (size_t))))
16103 exit (1);
16104 fprintf (f, "%lu\n", i);
16105 }
16106 exit (ferror (f) || fclose (f) != 0);
16107
16108 ;
16109 return 0;
16110}
16111_ACEOF
16112rm -f conftest$ac_exeext
16113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16114 (eval $ac_link) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; }; then
16123 ac_cv_sizeof_size_t=`cat conftest.val`
16124else
16125 echo "$as_me: program exited with status $ac_status" >&5
16126echo "$as_me: failed program was:" >&5
16127sed 's/^/| /' conftest.$ac_ext >&5
16128
16129( exit $ac_status )
16130{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16131See \`config.log' for more details." >&5
16132echo "$as_me: error: cannot compute sizeof (size_t), 77
16133See \`config.log' for more details." >&2;}
16134 { (exit 1); exit 1; }; }
16135fi
de59c161 16136rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16137fi
16138fi
16139rm -f conftest.val
16140else
16141 ac_cv_sizeof_size_t=0
16142fi
16143fi
16144echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16145echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16146cat >>confdefs.h <<_ACEOF
16147#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16148_ACEOF
16149
16150
16151
16152case "${host}" in
16153 arm-*-linux* )
16154 echo "$as_me:$LINENO: checking for long long" >&5
16155echo $ECHO_N "checking for long long... $ECHO_C" >&6
16156if test "${ac_cv_type_long_long+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158else
16159 cat >conftest.$ac_ext <<_ACEOF
de59c161 16160#line $LINENO "configure"
a848cd7e
SC
16161/* confdefs.h. */
16162_ACEOF
16163cat confdefs.h >>conftest.$ac_ext
16164cat >>conftest.$ac_ext <<_ACEOF
16165/* end confdefs.h. */
16166$ac_includes_default
16167int
16168main ()
16169{
16170if ((long long *) 0)
16171 return 0;
16172if (sizeof (long long))
16173 return 0;
16174 ;
16175 return 0;
16176}
16177_ACEOF
16178rm -f conftest.$ac_objext
16179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16180 (eval $ac_compile) 2>&5
a848cd7e 16181 ac_status=$?
a848cd7e
SC
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } &&
de59c161 16184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_cv_type_long_long=yes
16191else
16192 echo "$as_me: failed program was:" >&5
16193sed 's/^/| /' conftest.$ac_ext >&5
16194
16195ac_cv_type_long_long=no
16196fi
de59c161 16197rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16198fi
16199echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16200echo "${ECHO_T}$ac_cv_type_long_long" >&6
16201
16202echo "$as_me:$LINENO: checking size of long long" >&5
16203echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16204if test "${ac_cv_sizeof_long_long+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206else
16207 if test "$ac_cv_type_long_long" = yes; then
16208 # The cast to unsigned long works around a bug in the HP C Compiler
16209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16211 # This bug is HP SR number 8606223364.
16212 if test "$cross_compiling" = yes; then
16213 # Depending upon the size, compute the lo and hi bounds.
16214cat >conftest.$ac_ext <<_ACEOF
de59c161 16215#line $LINENO "configure"
a848cd7e
SC
16216/* confdefs.h. */
16217_ACEOF
16218cat confdefs.h >>conftest.$ac_ext
16219cat >>conftest.$ac_ext <<_ACEOF
16220/* end confdefs.h. */
16221$ac_includes_default
16222int
16223main ()
16224{
16225static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16226test_array [0] = 0
16227
16228 ;
16229 return 0;
16230}
16231_ACEOF
16232rm -f conftest.$ac_objext
16233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16234 (eval $ac_compile) 2>&5
a848cd7e 16235 ac_status=$?
a848cd7e
SC
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
de59c161 16238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_lo=0 ac_mid=0
16245 while :; do
16246 cat >conftest.$ac_ext <<_ACEOF
de59c161 16247#line $LINENO "configure"
a848cd7e
SC
16248/* confdefs.h. */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h. */
16253$ac_includes_default
16254int
16255main ()
16256{
16257static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16258test_array [0] = 0
16259
16260 ;
16261 return 0;
16262}
16263_ACEOF
16264rm -f conftest.$ac_objext
16265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16266 (eval $ac_compile) 2>&5
a848cd7e 16267 ac_status=$?
a848cd7e
SC
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
de59c161 16270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276 ac_hi=$ac_mid; break
16277else
16278 echo "$as_me: failed program was:" >&5
16279sed 's/^/| /' conftest.$ac_ext >&5
16280
16281ac_lo=`expr $ac_mid + 1`
de59c161
RD
16282 if test $ac_lo -le $ac_mid; then
16283 ac_lo= ac_hi=
16284 break
16285 fi
16286 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16287fi
de59c161 16288rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16289 done
16290else
16291 echo "$as_me: failed program was:" >&5
16292sed 's/^/| /' conftest.$ac_ext >&5
16293
16294cat >conftest.$ac_ext <<_ACEOF
de59c161 16295#line $LINENO "configure"
a848cd7e
SC
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301$ac_includes_default
16302int
16303main ()
16304{
16305static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16306test_array [0] = 0
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest.$ac_objext
16313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16314 (eval $ac_compile) 2>&5
a848cd7e 16315 ac_status=$?
a848cd7e
SC
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
de59c161 16318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_hi=-1 ac_mid=-1
16325 while :; do
16326 cat >conftest.$ac_ext <<_ACEOF
de59c161 16327#line $LINENO "configure"
a848cd7e
SC
16328/* confdefs.h. */
16329_ACEOF
16330cat confdefs.h >>conftest.$ac_ext
16331cat >>conftest.$ac_ext <<_ACEOF
16332/* end confdefs.h. */
16333$ac_includes_default
16334int
16335main ()
16336{
16337static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16338test_array [0] = 0
16339
16340 ;
16341 return 0;
16342}
16343_ACEOF
16344rm -f conftest.$ac_objext
16345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16346 (eval $ac_compile) 2>&5
a848cd7e 16347 ac_status=$?
a848cd7e
SC
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
de59c161 16350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_lo=$ac_mid; break
16357else
16358 echo "$as_me: failed program was:" >&5
16359sed 's/^/| /' conftest.$ac_ext >&5
16360
16361ac_hi=`expr '(' $ac_mid ')' - 1`
de59c161
RD
16362 if test $ac_mid -le $ac_hi; then
16363 ac_lo= ac_hi=
16364 break
16365 fi
16366 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16367fi
de59c161 16368rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16369 done
16370else
16371 echo "$as_me: failed program was:" >&5
16372sed 's/^/| /' conftest.$ac_ext >&5
16373
16374ac_lo= ac_hi=
16375fi
de59c161 16376rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 16377fi
de59c161 16378rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16379# Binary search between lo and hi bounds.
16380while test "x$ac_lo" != "x$ac_hi"; do
16381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16382 cat >conftest.$ac_ext <<_ACEOF
de59c161 16383#line $LINENO "configure"
a848cd7e
SC
16384/* confdefs.h. */
16385_ACEOF
16386cat confdefs.h >>conftest.$ac_ext
16387cat >>conftest.$ac_ext <<_ACEOF
16388/* end confdefs.h. */
16389$ac_includes_default
16390int
16391main ()
16392{
16393static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16394test_array [0] = 0
16395
16396 ;
16397 return 0;
16398}
16399_ACEOF
16400rm -f conftest.$ac_objext
16401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16402 (eval $ac_compile) 2>&5
a848cd7e 16403 ac_status=$?
a848cd7e
SC
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
de59c161 16406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_hi=$ac_mid
16413else
16414 echo "$as_me: failed program was:" >&5
16415sed 's/^/| /' conftest.$ac_ext >&5
16416
16417ac_lo=`expr '(' $ac_mid ')' + 1`
16418fi
de59c161 16419rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16420done
16421case $ac_lo in
16422?*) ac_cv_sizeof_long_long=$ac_lo;;
16423'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16424See \`config.log' for more details." >&5
16425echo "$as_me: error: cannot compute sizeof (long long), 77
16426See \`config.log' for more details." >&2;}
16427 { (exit 1); exit 1; }; } ;;
16428esac
16429else
16430 if test "$cross_compiling" = yes; then
16431 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16432See \`config.log' for more details." >&5
16433echo "$as_me: error: cannot run test program while cross compiling
16434See \`config.log' for more details." >&2;}
16435 { (exit 1); exit 1; }; }
16436else
16437 cat >conftest.$ac_ext <<_ACEOF
de59c161 16438#line $LINENO "configure"
a848cd7e
SC
16439/* confdefs.h. */
16440_ACEOF
16441cat confdefs.h >>conftest.$ac_ext
16442cat >>conftest.$ac_ext <<_ACEOF
16443/* end confdefs.h. */
16444$ac_includes_default
16445long longval () { return (long) (sizeof (long long)); }
16446unsigned long ulongval () { return (long) (sizeof (long long)); }
16447#include <stdio.h>
16448#include <stdlib.h>
16449int
16450main ()
16451{
16452
16453 FILE *f = fopen ("conftest.val", "w");
16454 if (! f)
16455 exit (1);
16456 if (((long) (sizeof (long long))) < 0)
16457 {
16458 long i = longval ();
16459 if (i != ((long) (sizeof (long long))))
16460 exit (1);
16461 fprintf (f, "%ld\n", i);
16462 }
16463 else
16464 {
16465 unsigned long i = ulongval ();
16466 if (i != ((long) (sizeof (long long))))
16467 exit (1);
16468 fprintf (f, "%lu\n", i);
16469 }
16470 exit (ferror (f) || fclose (f) != 0);
16471
16472 ;
16473 return 0;
16474}
16475_ACEOF
16476rm -f conftest$ac_exeext
16477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16478 (eval $ac_link) 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long_long=`cat conftest.val`
16488else
16489 echo "$as_me: program exited with status $ac_status" >&5
16490echo "$as_me: failed program was:" >&5
16491sed 's/^/| /' conftest.$ac_ext >&5
16492
16493( exit $ac_status )
16494{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16495See \`config.log' for more details." >&5
16496echo "$as_me: error: cannot compute sizeof (long long), 77
16497See \`config.log' for more details." >&2;}
16498 { (exit 1); exit 1; }; }
16499fi
de59c161 16500rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16501fi
16502fi
16503rm -f conftest.val
16504else
16505 ac_cv_sizeof_long_long=0
16506fi
16507fi
16508echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16509echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16510cat >>confdefs.h <<_ACEOF
16511#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16512_ACEOF
16513
16514
16515 ;;
16516 *-hp-hpux* )
16517 echo "$as_me:$LINENO: checking for long long" >&5
16518echo $ECHO_N "checking for long long... $ECHO_C" >&6
16519if test "${ac_cv_type_long_long+set}" = set; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16521else
16522 cat >conftest.$ac_ext <<_ACEOF
de59c161 16523#line $LINENO "configure"
a848cd7e
SC
16524/* confdefs.h. */
16525_ACEOF
16526cat confdefs.h >>conftest.$ac_ext
16527cat >>conftest.$ac_ext <<_ACEOF
16528/* end confdefs.h. */
16529$ac_includes_default
16530int
16531main ()
16532{
16533if ((long long *) 0)
16534 return 0;
16535if (sizeof (long long))
16536 return 0;
16537 ;
16538 return 0;
16539}
16540_ACEOF
16541rm -f conftest.$ac_objext
16542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16543 (eval $ac_compile) 2>&5
a848cd7e 16544 ac_status=$?
a848cd7e
SC
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } &&
de59c161 16547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_type_long_long=yes
16554else
16555 echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558ac_cv_type_long_long=no
16559fi
de59c161 16560rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16561fi
16562echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16563echo "${ECHO_T}$ac_cv_type_long_long" >&6
16564
16565echo "$as_me:$LINENO: checking size of long long" >&5
16566echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16567if test "${ac_cv_sizeof_long_long+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569else
16570 if test "$ac_cv_type_long_long" = yes; then
16571 # The cast to unsigned long works around a bug in the HP C Compiler
16572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16574 # This bug is HP SR number 8606223364.
16575 if test "$cross_compiling" = yes; then
16576 # Depending upon the size, compute the lo and hi bounds.
16577cat >conftest.$ac_ext <<_ACEOF
de59c161 16578#line $LINENO "configure"
a848cd7e
SC
16579/* confdefs.h. */
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h. */
16584$ac_includes_default
16585int
16586main ()
16587{
16588static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16589test_array [0] = 0
16590
16591 ;
16592 return 0;
16593}
16594_ACEOF
16595rm -f conftest.$ac_objext
16596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16597 (eval $ac_compile) 2>&5
a848cd7e 16598 ac_status=$?
a848cd7e
SC
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
de59c161 16601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_lo=0 ac_mid=0
16608 while :; do
16609 cat >conftest.$ac_ext <<_ACEOF
de59c161 16610#line $LINENO "configure"
a848cd7e
SC
16611/* confdefs.h. */
16612_ACEOF
16613cat confdefs.h >>conftest.$ac_ext
16614cat >>conftest.$ac_ext <<_ACEOF
16615/* end confdefs.h. */
16616$ac_includes_default
16617int
16618main ()
16619{
16620static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16621test_array [0] = 0
16622
16623 ;
16624 return 0;
16625}
16626_ACEOF
16627rm -f conftest.$ac_objext
16628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16629 (eval $ac_compile) 2>&5
a848cd7e 16630 ac_status=$?
a848cd7e
SC
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
de59c161 16633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_hi=$ac_mid; break
16640else
16641 echo "$as_me: failed program was:" >&5
16642sed 's/^/| /' conftest.$ac_ext >&5
16643
16644ac_lo=`expr $ac_mid + 1`
de59c161
RD
16645 if test $ac_lo -le $ac_mid; then
16646 ac_lo= ac_hi=
16647 break
16648 fi
16649 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16650fi
de59c161 16651rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16652 done
16653else
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
16657cat >conftest.$ac_ext <<_ACEOF
de59c161 16658#line $LINENO "configure"
a848cd7e
SC
16659/* confdefs.h. */
16660_ACEOF
16661cat confdefs.h >>conftest.$ac_ext
16662cat >>conftest.$ac_ext <<_ACEOF
16663/* end confdefs.h. */
16664$ac_includes_default
16665int
16666main ()
16667{
16668static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16669test_array [0] = 0
16670
16671 ;
16672 return 0;
16673}
16674_ACEOF
16675rm -f conftest.$ac_objext
16676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16677 (eval $ac_compile) 2>&5
a848cd7e 16678 ac_status=$?
a848cd7e
SC
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
de59c161 16681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 ac_hi=-1 ac_mid=-1
16688 while :; do
16689 cat >conftest.$ac_ext <<_ACEOF
de59c161 16690#line $LINENO "configure"
a848cd7e
SC
16691/* confdefs.h. */
16692_ACEOF
16693cat confdefs.h >>conftest.$ac_ext
16694cat >>conftest.$ac_ext <<_ACEOF
16695/* end confdefs.h. */
16696$ac_includes_default
16697int
16698main ()
16699{
16700static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16701test_array [0] = 0
16702
16703 ;
16704 return 0;
16705}
16706_ACEOF
16707rm -f conftest.$ac_objext
16708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16709 (eval $ac_compile) 2>&5
a848cd7e 16710 ac_status=$?
a848cd7e
SC
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
de59c161 16713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_lo=$ac_mid; break
16720else
16721 echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
16723
16724ac_hi=`expr '(' $ac_mid ')' - 1`
de59c161
RD
16725 if test $ac_mid -le $ac_hi; then
16726 ac_lo= ac_hi=
16727 break
16728 fi
16729 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16730fi
de59c161 16731rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16732 done
16733else
16734 echo "$as_me: failed program was:" >&5
16735sed 's/^/| /' conftest.$ac_ext >&5
16736
16737ac_lo= ac_hi=
16738fi
de59c161 16739rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 16740fi
de59c161 16741rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16742# Binary search between lo and hi bounds.
16743while test "x$ac_lo" != "x$ac_hi"; do
16744 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16745 cat >conftest.$ac_ext <<_ACEOF
de59c161 16746#line $LINENO "configure"
a848cd7e
SC
16747/* confdefs.h. */
16748_ACEOF
16749cat confdefs.h >>conftest.$ac_ext
16750cat >>conftest.$ac_ext <<_ACEOF
16751/* end confdefs.h. */
16752$ac_includes_default
16753int
16754main ()
16755{
16756static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16757test_array [0] = 0
16758
16759 ;
16760 return 0;
16761}
16762_ACEOF
16763rm -f conftest.$ac_objext
16764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16765 (eval $ac_compile) 2>&5
a848cd7e 16766 ac_status=$?
a848cd7e
SC
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } &&
de59c161 16769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775 ac_hi=$ac_mid
16776else
16777 echo "$as_me: failed program was:" >&5
16778sed 's/^/| /' conftest.$ac_ext >&5
16779
16780ac_lo=`expr '(' $ac_mid ')' + 1`
16781fi
de59c161 16782rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16783done
16784case $ac_lo in
16785?*) ac_cv_sizeof_long_long=$ac_lo;;
16786'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16787See \`config.log' for more details." >&5
16788echo "$as_me: error: cannot compute sizeof (long long), 77
16789See \`config.log' for more details." >&2;}
16790 { (exit 1); exit 1; }; } ;;
16791esac
16792else
16793 if test "$cross_compiling" = yes; then
16794 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16795See \`config.log' for more details." >&5
16796echo "$as_me: error: cannot run test program while cross compiling
16797See \`config.log' for more details." >&2;}
16798 { (exit 1); exit 1; }; }
16799else
16800 cat >conftest.$ac_ext <<_ACEOF
de59c161 16801#line $LINENO "configure"
a848cd7e
SC
16802/* confdefs.h. */
16803_ACEOF
16804cat confdefs.h >>conftest.$ac_ext
16805cat >>conftest.$ac_ext <<_ACEOF
16806/* end confdefs.h. */
16807$ac_includes_default
16808long longval () { return (long) (sizeof (long long)); }
16809unsigned long ulongval () { return (long) (sizeof (long long)); }
16810#include <stdio.h>
16811#include <stdlib.h>
16812int
16813main ()
16814{
16815
16816 FILE *f = fopen ("conftest.val", "w");
16817 if (! f)
16818 exit (1);
16819 if (((long) (sizeof (long long))) < 0)
16820 {
16821 long i = longval ();
16822 if (i != ((long) (sizeof (long long))))
16823 exit (1);
16824 fprintf (f, "%ld\n", i);
16825 }
16826 else
16827 {
16828 unsigned long i = ulongval ();
16829 if (i != ((long) (sizeof (long long))))
16830 exit (1);
16831 fprintf (f, "%lu\n", i);
16832 }
16833 exit (ferror (f) || fclose (f) != 0);
16834
16835 ;
16836 return 0;
16837}
16838_ACEOF
16839rm -f conftest$ac_exeext
16840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16841 (eval $ac_link) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 ac_cv_sizeof_long_long=`cat conftest.val`
16851else
16852 echo "$as_me: program exited with status $ac_status" >&5
16853echo "$as_me: failed program was:" >&5
16854sed 's/^/| /' conftest.$ac_ext >&5
16855
16856( exit $ac_status )
16857{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16858See \`config.log' for more details." >&5
16859echo "$as_me: error: cannot compute sizeof (long long), 77
16860See \`config.log' for more details." >&2;}
16861 { (exit 1); exit 1; }; }
16862fi
de59c161 16863rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16864fi
16865fi
16866rm -f conftest.val
16867else
16868 ac_cv_sizeof_long_long=0
16869fi
16870fi
16871echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16872echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16873cat >>confdefs.h <<_ACEOF
16874#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16875_ACEOF
16876
16877
16878 if test "$ac_cv_sizeof_long_long" != "0"; then
16879 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16880 fi
16881 ;;
16882 * )
16883 echo "$as_me:$LINENO: checking for long long" >&5
16884echo $ECHO_N "checking for long long... $ECHO_C" >&6
16885if test "${ac_cv_type_long_long+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887else
16888 cat >conftest.$ac_ext <<_ACEOF
de59c161 16889#line $LINENO "configure"
a848cd7e
SC
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895$ac_includes_default
16896int
16897main ()
16898{
16899if ((long long *) 0)
16900 return 0;
16901if (sizeof (long long))
16902 return 0;
16903 ;
16904 return 0;
16905}
16906_ACEOF
16907rm -f conftest.$ac_objext
16908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16909 (eval $ac_compile) 2>&5
a848cd7e 16910 ac_status=$?
a848cd7e
SC
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } &&
de59c161 16913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_type_long_long=yes
16920else
16921 echo "$as_me: failed program was:" >&5
16922sed 's/^/| /' conftest.$ac_ext >&5
16923
16924ac_cv_type_long_long=no
16925fi
de59c161 16926rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16927fi
16928echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16929echo "${ECHO_T}$ac_cv_type_long_long" >&6
16930
16931echo "$as_me:$LINENO: checking size of long long" >&5
16932echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16933if test "${ac_cv_sizeof_long_long+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 if test "$ac_cv_type_long_long" = yes; then
16937 # The cast to unsigned long works around a bug in the HP C Compiler
16938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16940 # This bug is HP SR number 8606223364.
16941 if test "$cross_compiling" = yes; then
16942 # Depending upon the size, compute the lo and hi bounds.
16943cat >conftest.$ac_ext <<_ACEOF
de59c161 16944#line $LINENO "configure"
a848cd7e
SC
16945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
16949/* end confdefs.h. */
16950$ac_includes_default
16951int
16952main ()
16953{
16954static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16955test_array [0] = 0
16956
16957 ;
16958 return 0;
16959}
16960_ACEOF
16961rm -f conftest.$ac_objext
16962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16963 (eval $ac_compile) 2>&5
a848cd7e 16964 ac_status=$?
a848cd7e
SC
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } &&
de59c161 16967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_lo=0 ac_mid=0
16974 while :; do
16975 cat >conftest.$ac_ext <<_ACEOF
de59c161 16976#line $LINENO "configure"
a848cd7e
SC
16977/* confdefs.h. */
16978_ACEOF
16979cat confdefs.h >>conftest.$ac_ext
16980cat >>conftest.$ac_ext <<_ACEOF
16981/* end confdefs.h. */
16982$ac_includes_default
16983int
16984main ()
16985{
16986static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16987test_array [0] = 0
16988
16989 ;
16990 return 0;
16991}
16992_ACEOF
16993rm -f conftest.$ac_objext
16994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 16995 (eval $ac_compile) 2>&5
a848cd7e 16996 ac_status=$?
a848cd7e
SC
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
de59c161 16999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_hi=$ac_mid; break
17006else
17007 echo "$as_me: failed program was:" >&5
17008sed 's/^/| /' conftest.$ac_ext >&5
17009
17010ac_lo=`expr $ac_mid + 1`
de59c161
RD
17011 if test $ac_lo -le $ac_mid; then
17012 ac_lo= ac_hi=
17013 break
17014 fi
17015 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17016fi
de59c161 17017rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17018 done
17019else
17020 echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023cat >conftest.$ac_ext <<_ACEOF
de59c161 17024#line $LINENO "configure"
a848cd7e
SC
17025/* confdefs.h. */
17026_ACEOF
17027cat confdefs.h >>conftest.$ac_ext
17028cat >>conftest.$ac_ext <<_ACEOF
17029/* end confdefs.h. */
17030$ac_includes_default
17031int
17032main ()
17033{
17034static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17035test_array [0] = 0
17036
17037 ;
17038 return 0;
17039}
17040_ACEOF
17041rm -f conftest.$ac_objext
17042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 17043 (eval $ac_compile) 2>&5
a848cd7e 17044 ac_status=$?
a848cd7e
SC
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
de59c161 17047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_hi=-1 ac_mid=-1
17054 while :; do
17055 cat >conftest.$ac_ext <<_ACEOF
de59c161 17056#line $LINENO "configure"
a848cd7e
SC
17057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
17062$ac_includes_default
17063int
17064main ()
17065{
17066static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17067test_array [0] = 0
17068
17069 ;
17070 return 0;
17071}
17072_ACEOF
17073rm -f conftest.$ac_objext
17074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 17075 (eval $ac_compile) 2>&5
a848cd7e 17076 ac_status=$?
a848cd7e
SC
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
de59c161 17079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_lo=$ac_mid; break
17086else
17087 echo "$as_me: failed program was:" >&5
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
17090ac_hi=`expr '(' $ac_mid ')' - 1`
de59c161
RD
17091 if test $ac_mid -le $ac_hi; then
17092 ac_lo= ac_hi=
17093 break
17094 fi
17095 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17096fi
de59c161 17097rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17098 done
17099else
17100 echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
17103ac_lo= ac_hi=
17104fi
de59c161 17105rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 17106fi
de59c161 17107rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17108# Binary search between lo and hi bounds.
17109while test "x$ac_lo" != "x$ac_hi"; do
17110 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17111 cat >conftest.$ac_ext <<_ACEOF
de59c161 17112#line $LINENO "configure"
a848cd7e
SC
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118$ac_includes_default
17119int
17120main ()
17121{
17122static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17123test_array [0] = 0
17124
17125 ;
17126 return 0;
17127}
17128_ACEOF
17129rm -f conftest.$ac_objext
17130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 17131 (eval $ac_compile) 2>&5
a848cd7e 17132 ac_status=$?
a848cd7e
SC
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } &&
de59c161 17135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_hi=$ac_mid
17142else
17143 echo "$as_me: failed program was:" >&5
17144sed 's/^/| /' conftest.$ac_ext >&5
17145
17146ac_lo=`expr '(' $ac_mid ')' + 1`
17147fi
de59c161 17148rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17149done
17150case $ac_lo in
17151?*) ac_cv_sizeof_long_long=$ac_lo;;
17152'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17153See \`config.log' for more details." >&5
17154echo "$as_me: error: cannot compute sizeof (long long), 77
17155See \`config.log' for more details." >&2;}
17156 { (exit 1); exit 1; }; } ;;
17157esac
17158else
17159 if test "$cross_compiling" = yes; then
17160 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17161See \`config.log' for more details." >&5
17162echo "$as_me: error: cannot run test program while cross compiling
17163See \`config.log' for more details." >&2;}
17164 { (exit 1); exit 1; }; }
17165else
17166 cat >conftest.$ac_ext <<_ACEOF
de59c161 17167#line $LINENO "configure"
a848cd7e
SC
17168/* confdefs.h. */
17169_ACEOF
17170cat confdefs.h >>conftest.$ac_ext
17171cat >>conftest.$ac_ext <<_ACEOF
17172/* end confdefs.h. */
17173$ac_includes_default
17174long longval () { return (long) (sizeof (long long)); }
17175unsigned long ulongval () { return (long) (sizeof (long long)); }
17176#include <stdio.h>
17177#include <stdlib.h>
17178int
17179main ()
17180{
17181
17182 FILE *f = fopen ("conftest.val", "w");
17183 if (! f)
17184 exit (1);
17185 if (((long) (sizeof (long long))) < 0)
17186 {
17187 long i = longval ();
17188 if (i != ((long) (sizeof (long long))))
17189 exit (1);
17190 fprintf (f, "%ld\n", i);
17191 }
17192 else
17193 {
17194 unsigned long i = ulongval ();
17195 if (i != ((long) (sizeof (long long))))
17196 exit (1);
17197 fprintf (f, "%lu\n", i);
17198 }
17199 exit (ferror (f) || fclose (f) != 0);
17200
17201 ;
17202 return 0;
17203}
17204_ACEOF
17205rm -f conftest$ac_exeext
17206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207 (eval $ac_link) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 ac_cv_sizeof_long_long=`cat conftest.val`
17217else
17218 echo "$as_me: program exited with status $ac_status" >&5
17219echo "$as_me: failed program was:" >&5
17220sed 's/^/| /' conftest.$ac_ext >&5
17221
17222( exit $ac_status )
17223{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17224See \`config.log' for more details." >&5
17225echo "$as_me: error: cannot compute sizeof (long long), 77
17226See \`config.log' for more details." >&2;}
17227 { (exit 1); exit 1; }; }
17228fi
de59c161 17229rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17230fi
17231fi
17232rm -f conftest.val
17233else
17234 ac_cv_sizeof_long_long=0
17235fi
17236fi
17237echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17238echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17239cat >>confdefs.h <<_ACEOF
17240#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17241_ACEOF
17242
17243
17244esac
17245
17246echo "$as_me:$LINENO: checking size of wchar_t" >&5
17247echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17248if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250else
17251
17252 if test "$cross_compiling" = yes; then
17253
17254 case "${host}" in
17255 *-pc-msdosdjgpp )
17256 wx_cv_sizeof_wchar_t=0
17257 ;;
17258 * )
17259 wx_cv_sizeof_wchar_t=4
17260 ;;
17261 esac
17262
17263
17264else
17265 cat >conftest.$ac_ext <<_ACEOF
de59c161 17266#line $LINENO "configure"
a848cd7e
SC
17267/* confdefs.h. */
17268_ACEOF
17269cat confdefs.h >>conftest.$ac_ext
17270cat >>conftest.$ac_ext <<_ACEOF
17271/* end confdefs.h. */
17272
17273 /* DJGPP only has fake wchar_t: */
17274 #ifdef __DJGPP__
17275 # error "fake wchar_t"
17276 #endif
17277 #ifdef HAVE_WCHAR_H
17278 # ifdef __CYGWIN__
17279 # include <stddef.h>
17280 # endif
17281 # include <wchar.h>
17282 #endif
17283 #ifdef HAVE_STDLIB_H
17284 # include <stdlib.h>
17285 #endif
17286 #include <stdio.h>
17287 int main()
17288 {
17289 FILE *f=fopen("conftestval", "w");
17290 if (!f) exit(1);
17291 fprintf(f, "%i", sizeof(wchar_t));
17292 exit(0);
17293 }
17294
17295_ACEOF
17296rm -f conftest$ac_exeext
17297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 wx_cv_sizeof_wchar_t=`cat conftestval`
17308else
17309 echo "$as_me: program exited with status $ac_status" >&5
17310echo "$as_me: failed program was:" >&5
17311sed 's/^/| /' conftest.$ac_ext >&5
17312
17313( exit $ac_status )
17314wx_cv_sizeof_wchar_t=0
17315fi
de59c161 17316rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17317fi
17318
17319fi
17320echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17321echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
17322
17323cat >>confdefs.h <<_ACEOF
17324#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
17325_ACEOF
17326
17327
17328# Check whether --enable-largefile or --disable-largefile was given.
17329if test "${enable_largefile+set}" = set; then
17330 enableval="$enable_largefile"
17331
17332fi;
17333if test "$enable_largefile" != no; then
17334 wx_largefile=no
17335
17336 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17337echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17338if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340else
17341
17342 cat >conftest.$ac_ext <<_ACEOF
de59c161 17343#line $LINENO "configure"
a848cd7e
SC
17344/* confdefs.h. */
17345_ACEOF
17346cat confdefs.h >>conftest.$ac_ext
17347cat >>conftest.$ac_ext <<_ACEOF
17348/* end confdefs.h. */
17349#define _FILE_OFFSET_BITS 64
17350 #include <sys/types.h>
17351int
17352main ()
17353{
17354typedef struct {
17355 unsigned int field: sizeof(off_t) == 8;
17356} wxlf;
17357
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext
17363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 17364 (eval $ac_compile) 2>&5
a848cd7e 17365 ac_status=$?
a848cd7e
SC
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
de59c161 17368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_sys_file_offset_bits=64
17375else
17376 echo "$as_me: failed program was:" >&5
17377sed 's/^/| /' conftest.$ac_ext >&5
17378
17379ac_cv_sys_file_offset_bits=no
17380fi
de59c161 17381rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17382
17383
17384fi
17385echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17386echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17387
17388 if test "$ac_cv_sys_file_offset_bits" != no; then
17389 wx_largefile=yes
17390 cat >>confdefs.h <<_ACEOF
17391#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17392_ACEOF
17393
17394 fi
17395
17396 if test "x$wx_largefile" != "xyes"; then
17397
17398 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17399echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17400if test "${ac_cv_sys_large_files+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17402else
17403
17404 cat >conftest.$ac_ext <<_ACEOF
de59c161 17405#line $LINENO "configure"
a848cd7e
SC
17406/* confdefs.h. */
17407_ACEOF
17408cat confdefs.h >>conftest.$ac_ext
17409cat >>conftest.$ac_ext <<_ACEOF
17410/* end confdefs.h. */
17411#define _LARGE_FILES 1
17412 #include <sys/types.h>
17413int
17414main ()
17415{
17416typedef struct {
17417 unsigned int field: sizeof(off_t) == 8;
17418} wxlf;
17419
17420 ;
17421 return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext
17425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 17426 (eval $ac_compile) 2>&5
a848cd7e 17427 ac_status=$?
a848cd7e
SC
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
de59c161 17430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_sys_large_files=1
17437else
17438 echo "$as_me: failed program was:" >&5
17439sed 's/^/| /' conftest.$ac_ext >&5
17440
17441ac_cv_sys_large_files=no
17442fi
de59c161 17443rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17444
17445
17446fi
17447echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17448echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17449
17450 if test "$ac_cv_sys_large_files" != no; then
17451 wx_largefile=yes
17452 cat >>confdefs.h <<_ACEOF
17453#define _LARGE_FILES $ac_cv_sys_large_files
17454_ACEOF
17455
17456 fi
17457
17458 fi
17459
17460 echo "$as_me:$LINENO: checking if large file support is available" >&5
17461echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
17462 if test "x$wx_largefile" = "xyes"; then
17463 cat >>confdefs.h <<\_ACEOF
17464#define HAVE_LARGEFILE_SUPPORT 1
17465_ACEOF
17466
17467 fi
17468 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17469echo "${ECHO_T}$wx_largefile" >&6
17470fi
17471
17472
17473if test "x$wx_largefile" = "xyes"; then
17474 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17475 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
17476 else
17477 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
17478 fi
17479 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
17480fi
17481
17482echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17483echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17484if test "${ac_cv_c_bigendian+set}" = set; then
17485 echo $ECHO_N "(cached) $ECHO_C" >&6
17486else
17487 ac_cv_c_bigendian=unknown
17488# See if sys/param.h defines the BYTE_ORDER macro.
17489cat >conftest.$ac_ext <<_ACEOF
de59c161 17490#line $LINENO "configure"
a848cd7e
SC
17491/* confdefs.h. */
17492_ACEOF
17493cat confdefs.h >>conftest.$ac_ext
17494cat >>conftest.$ac_ext <<_ACEOF
17495/* end confdefs.h. */
17496#include <sys/types.h>
17497#include <sys/param.h>
17498int
17499main ()
17500{
17501
17502#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17503 bogus endian macros
17504#endif
17505 ;
17506 return 0;
17507}
17508_ACEOF
17509rm -f conftest.$ac_objext
17510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 17511 (eval $ac_compile) 2>&5
a848cd7e 17512 ac_status=$?
a848cd7e
SC
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } &&
de59c161 17515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 # It does; now see whether it defined to BIG_ENDIAN or not.
17522cat >conftest.$ac_ext <<_ACEOF
de59c161 17523#line $LINENO "configure"
a848cd7e
SC
17524/* confdefs.h. */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h. */
17529#include <sys/types.h>
17530#include <sys/param.h>
17531int
17532main ()
17533{
17534
17535#if BYTE_ORDER != BIG_ENDIAN
17536 not big endian
17537#endif
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext
17543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 17544 (eval $ac_compile) 2>&5
a848cd7e 17545 ac_status=$?
a848cd7e
SC
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
de59c161 17548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17554 ac_cv_c_bigendian=yes
17555else
17556 echo "$as_me: failed program was:" >&5
17557sed 's/^/| /' conftest.$ac_ext >&5
17558
17559ac_cv_c_bigendian=no
17560fi
de59c161 17561rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17562else
17563 echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
17566fi
de59c161 17567rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17568if test $ac_cv_c_bigendian = unknown; then
17569if test "$cross_compiling" = yes; then
17570 ac_cv_c_bigendian=unknown
17571else
17572 cat >conftest.$ac_ext <<_ACEOF
de59c161 17573#line $LINENO "configure"
a848cd7e
SC
17574/* confdefs.h. */
17575_ACEOF
17576cat confdefs.h >>conftest.$ac_ext
17577cat >>conftest.$ac_ext <<_ACEOF
17578/* end confdefs.h. */
17579main () {
17580 /* Are we little or big endian? From Harbison&Steele. */
17581 union
17582 {
17583 long l;
17584 char c[sizeof (long)];
17585 } u;
17586 u.l = 1;
17587 exit (u.c[sizeof (long) - 1] == 1);
17588}
17589_ACEOF
17590rm -f conftest$ac_exeext
17591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17592 (eval $ac_link) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_c_bigendian=no
17602else
17603 echo "$as_me: program exited with status $ac_status" >&5
17604echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607( exit $ac_status )
17608ac_cv_c_bigendian=yes
17609fi
de59c161 17610rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17611fi
17612fi
17613fi
17614echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17615echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17616if test $ac_cv_c_bigendian = unknown; then
17617 { 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
17618echo "$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;}
17619fi
17620if test $ac_cv_c_bigendian = yes; then
17621 cat >>confdefs.h <<\_ACEOF
17622#define WORDS_BIGENDIAN 1
17623_ACEOF
17624
17625fi
17626
17627
17628ac_ext=cc
17629ac_cpp='$CXXCPP $CPPFLAGS'
17630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17633echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17634echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17635if test -z "$CXXCPP"; then
17636 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17638else
17639 # Double quotes because CXXCPP needs to be expanded
17640 for CXXCPP in "$CXX -E" "/lib/cpp"
17641 do
17642 ac_preproc_ok=false
17643for ac_cxx_preproc_warn_flag in '' yes
17644do
17645 # Use a header file that comes with gcc, so configuring glibc
17646 # with a fresh cross-compiler works.
17647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17648 # <limits.h> exists even on freestanding compilers.
17649 # On the NeXT, cc -E runs the code through the compiler's parser,
17650 # not just through cpp. "Syntax error" is here to catch this case.
17651 cat >conftest.$ac_ext <<_ACEOF
de59c161 17652#line $LINENO "configure"
a848cd7e
SC
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658#ifdef __STDC__
17659# include <limits.h>
17660#else
17661# include <assert.h>
17662#endif
de59c161 17663 Syntax error
a848cd7e
SC
17664_ACEOF
17665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17667 ac_status=$?
17668 grep -v '^ *+' conftest.er1 >conftest.err
17669 rm -f conftest.er1
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } >/dev/null; then
17673 if test -s conftest.err; then
17674 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17675 else
17676 ac_cpp_err=
17677 fi
17678else
17679 ac_cpp_err=yes
17680fi
17681if test -z "$ac_cpp_err"; then
17682 :
17683else
17684 echo "$as_me: failed program was:" >&5
17685sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 # Broken: fails on valid input.
17688continue
17689fi
17690rm -f conftest.err conftest.$ac_ext
17691
17692 # OK, works on sane cases. Now check whether non-existent headers
17693 # can be detected and how.
17694 cat >conftest.$ac_ext <<_ACEOF
de59c161 17695#line $LINENO "configure"
a848cd7e
SC
17696/* confdefs.h. */
17697_ACEOF
17698cat confdefs.h >>conftest.$ac_ext
17699cat >>conftest.$ac_ext <<_ACEOF
17700/* end confdefs.h. */
17701#include <ac_nonexistent.h>
17702_ACEOF
17703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } >/dev/null; then
17711 if test -s conftest.err; then
17712 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17713 else
17714 ac_cpp_err=
17715 fi
17716else
17717 ac_cpp_err=yes
17718fi
17719if test -z "$ac_cpp_err"; then
17720 # Broken: success on invalid input.
17721continue
17722else
17723 echo "$as_me: failed program was:" >&5
17724sed 's/^/| /' conftest.$ac_ext >&5
17725
17726 # Passes both tests.
17727ac_preproc_ok=:
17728break
17729fi
17730rm -f conftest.err conftest.$ac_ext
17731
17732done
17733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17734rm -f conftest.err conftest.$ac_ext
17735if $ac_preproc_ok; then
17736 break
17737fi
17738
17739 done
17740 ac_cv_prog_CXXCPP=$CXXCPP
17741
17742fi
17743 CXXCPP=$ac_cv_prog_CXXCPP
17744else
17745 ac_cv_prog_CXXCPP=$CXXCPP
17746fi
17747echo "$as_me:$LINENO: result: $CXXCPP" >&5
17748echo "${ECHO_T}$CXXCPP" >&6
17749ac_preproc_ok=false
17750for ac_cxx_preproc_warn_flag in '' yes
17751do
17752 # Use a header file that comes with gcc, so configuring glibc
17753 # with a fresh cross-compiler works.
17754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17755 # <limits.h> exists even on freestanding compilers.
17756 # On the NeXT, cc -E runs the code through the compiler's parser,
17757 # not just through cpp. "Syntax error" is here to catch this case.
17758 cat >conftest.$ac_ext <<_ACEOF
de59c161 17759#line $LINENO "configure"
a848cd7e
SC
17760/* confdefs.h. */
17761_ACEOF
17762cat confdefs.h >>conftest.$ac_ext
17763cat >>conftest.$ac_ext <<_ACEOF
17764/* end confdefs.h. */
17765#ifdef __STDC__
17766# include <limits.h>
17767#else
17768# include <assert.h>
17769#endif
de59c161 17770 Syntax error
a848cd7e
SC
17771_ACEOF
17772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17774 ac_status=$?
17775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } >/dev/null; then
17780 if test -s conftest.err; then
17781 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17782 else
17783 ac_cpp_err=
17784 fi
17785else
17786 ac_cpp_err=yes
17787fi
17788if test -z "$ac_cpp_err"; then
17789 :
17790else
17791 echo "$as_me: failed program was:" >&5
17792sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 # Broken: fails on valid input.
17795continue
17796fi
17797rm -f conftest.err conftest.$ac_ext
17798
17799 # OK, works on sane cases. Now check whether non-existent headers
17800 # can be detected and how.
17801 cat >conftest.$ac_ext <<_ACEOF
de59c161 17802#line $LINENO "configure"
a848cd7e
SC
17803/* confdefs.h. */
17804_ACEOF
17805cat confdefs.h >>conftest.$ac_ext
17806cat >>conftest.$ac_ext <<_ACEOF
17807/* end confdefs.h. */
17808#include <ac_nonexistent.h>
17809_ACEOF
17810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } >/dev/null; then
17818 if test -s conftest.err; then
17819 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17820 else
17821 ac_cpp_err=
17822 fi
17823else
17824 ac_cpp_err=yes
17825fi
17826if test -z "$ac_cpp_err"; then
17827 # Broken: success on invalid input.
17828continue
17829else
17830 echo "$as_me: failed program was:" >&5
17831sed 's/^/| /' conftest.$ac_ext >&5
17832
17833 # Passes both tests.
17834ac_preproc_ok=:
17835break
17836fi
17837rm -f conftest.err conftest.$ac_ext
17838
17839done
17840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17841rm -f conftest.err conftest.$ac_ext
17842if $ac_preproc_ok; then
17843 :
17844else
17845 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17846See \`config.log' for more details." >&5
17847echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17848See \`config.log' for more details." >&2;}
17849 { (exit 1); exit 1; }; }
17850fi
17851
17852ac_ext=cc
17853ac_cpp='$CXXCPP $CPPFLAGS'
17854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17857
17858
17859
17860
17861
17862 ac_ext=cc
17863ac_cpp='$CXXCPP $CPPFLAGS'
17864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17867
17868
17869
17870for ac_header in iostream
17871do
17872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17873if eval "test \"\${$as_ac_Header+set}\" = set"; then
17874 echo "$as_me:$LINENO: checking for $ac_header" >&5
17875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17876if eval "test \"\${$as_ac_Header+set}\" = set"; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17878fi
17879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17881else
17882 # Is the header compilable?
17883echo "$as_me:$LINENO: checking $ac_header usability" >&5
17884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17885cat >conftest.$ac_ext <<_ACEOF
de59c161 17886#line $LINENO "configure"
a848cd7e
SC
17887/* confdefs.h. */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h. */
17892$ac_includes_default
17893#include <$ac_header>
17894_ACEOF
17895rm -f conftest.$ac_objext
17896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 17897 (eval $ac_compile) 2>&5
a848cd7e 17898 ac_status=$?
a848cd7e
SC
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } &&
de59c161 17901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 ac_header_compiler=yes
17908else
17909 echo "$as_me: failed program was:" >&5
17910sed 's/^/| /' conftest.$ac_ext >&5
17911
17912ac_header_compiler=no
17913fi
de59c161 17914rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17915echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17916echo "${ECHO_T}$ac_header_compiler" >&6
17917
17918# Is the header present?
17919echo "$as_me:$LINENO: checking $ac_header presence" >&5
17920echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17921cat >conftest.$ac_ext <<_ACEOF
de59c161 17922#line $LINENO "configure"
a848cd7e
SC
17923/* confdefs.h. */
17924_ACEOF
17925cat confdefs.h >>conftest.$ac_ext
17926cat >>conftest.$ac_ext <<_ACEOF
17927/* end confdefs.h. */
17928#include <$ac_header>
17929_ACEOF
17930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } >/dev/null; then
17938 if test -s conftest.err; then
17939 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17940 else
17941 ac_cpp_err=
17942 fi
17943else
17944 ac_cpp_err=yes
17945fi
17946if test -z "$ac_cpp_err"; then
17947 ac_header_preproc=yes
17948else
17949 echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
17952 ac_header_preproc=no
17953fi
17954rm -f conftest.err conftest.$ac_ext
17955echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17956echo "${ECHO_T}$ac_header_preproc" >&6
17957
17958# So? What about this header?
de59c161
RD
17959case $ac_header_compiler:$ac_header_preproc in
17960 yes:no )
a848cd7e
SC
17961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17962echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
17963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17965 (
17966 cat <<\_ASBOX
17967## ------------------------------------ ##
17968## Report this to bug-autoconf@gnu.org. ##
17969## ------------------------------------ ##
17970_ASBOX
17971 ) |
17972 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 17973 ;;
de59c161 17974 no:yes )
a848cd7e
SC
17975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17976echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
17977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17978echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
17979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
17981 (
17982 cat <<\_ASBOX
de59c161
RD
17983## ------------------------------------ ##
17984## Report this to bug-autoconf@gnu.org. ##
17985## ------------------------------------ ##
a848cd7e
SC
17986_ASBOX
17987 ) |
17988 sed "s/^/$as_me: WARNING: /" >&2
17989 ;;
17990esac
17991echo "$as_me:$LINENO: checking for $ac_header" >&5
17992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17993if eval "test \"\${$as_ac_Header+set}\" = set"; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17995else
de59c161 17996 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
17997fi
17998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18000
18001fi
18002if test `eval echo '${'$as_ac_Header'}'` = yes; then
18003 cat >>confdefs.h <<_ACEOF
18004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18005_ACEOF
18006
18007fi
18008
18009done
18010
18011
18012 if test "$ac_cv_header_iostream" = "yes" ; then
18013 :
18014 else
18015 cat >>confdefs.h <<\_ACEOF
18016#define wxUSE_IOSTREAMH 1
18017_ACEOF
18018
18019 fi
18020
18021 ac_ext=c
18022ac_cpp='$CPP $CPPFLAGS'
18023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18025ac_compiler_gnu=$ac_cv_c_compiler_gnu
18026
18027
18028
18029
18030 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18031echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18032if test "${wx_cv_cpp_bool+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18034else
18035
18036
18037
18038 ac_ext=cc
18039ac_cpp='$CXXCPP $CPPFLAGS'
18040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18043
18044
18045 cat >conftest.$ac_ext <<_ACEOF
de59c161 18046#line $LINENO "configure"
a848cd7e
SC
18047/* confdefs.h. */
18048_ACEOF
18049cat confdefs.h >>conftest.$ac_ext
18050cat >>conftest.$ac_ext <<_ACEOF
18051/* end confdefs.h. */
18052
18053
18054int
18055main ()
18056{
18057
18058 bool b = true;
18059
18060 return 0;
18061
18062 ;
18063 return 0;
18064}
18065_ACEOF
18066rm -f conftest.$ac_objext
18067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18068 (eval $ac_compile) 2>&5
a848cd7e 18069 ac_status=$?
a848cd7e
SC
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } &&
de59c161 18072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078
18079 wx_cv_cpp_bool=yes
18080
18081else
18082 echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
18085
18086 wx_cv_cpp_bool=no
18087
18088
18089fi
de59c161 18090rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18091
18092 ac_ext=c
18093ac_cpp='$CPP $CPPFLAGS'
18094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18096ac_compiler_gnu=$ac_cv_c_compiler_gnu
18097
18098
18099fi
18100echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18101echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18102
18103 if test "$wx_cv_cpp_bool" = "yes"; then
18104 cat >>confdefs.h <<\_ACEOF
18105#define HAVE_BOOL 1
18106_ACEOF
18107
18108 fi
18109
18110
18111
18112 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18113echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18114if test "${wx_cv_explicit+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116else
18117
18118
18119
18120 ac_ext=cc
18121ac_cpp='$CXXCPP $CPPFLAGS'
18122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18125
18126
18127 cat >conftest.$ac_ext <<_ACEOF
de59c161 18128#line $LINENO "configure"
a848cd7e
SC
18129/* confdefs.h. */
18130_ACEOF
18131cat confdefs.h >>conftest.$ac_ext
18132cat >>conftest.$ac_ext <<_ACEOF
18133/* end confdefs.h. */
18134
18135 class Foo { public: explicit Foo(int) {} };
18136
18137int
18138main ()
18139{
18140
18141 return 0;
18142
18143 ;
18144 return 0;
18145}
18146_ACEOF
18147rm -f conftest.$ac_objext
18148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18149 (eval $ac_compile) 2>&5
a848cd7e 18150 ac_status=$?
a848cd7e
SC
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
de59c161 18153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159
18160 cat >conftest.$ac_ext <<_ACEOF
de59c161 18161#line $LINENO "configure"
a848cd7e
SC
18162/* confdefs.h. */
18163_ACEOF
18164cat confdefs.h >>conftest.$ac_ext
18165cat >>conftest.$ac_ext <<_ACEOF
18166/* end confdefs.h. */
18167
18168 class Foo { public: explicit Foo(int) {} };
18169 static void TakeFoo(const Foo& foo) { }
18170
18171int
18172main ()
18173{
18174
18175 TakeFoo(17);
18176 return 0;
18177
18178 ;
18179 return 0;
18180}
18181_ACEOF
18182rm -f conftest.$ac_objext
18183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18184 (eval $ac_compile) 2>&5
a848cd7e 18185 ac_status=$?
a848cd7e
SC
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } &&
de59c161 18188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; }; then
18194 wx_cv_explicit=no
18195else
18196 echo "$as_me: failed program was:" >&5
18197sed 's/^/| /' conftest.$ac_ext >&5
18198
18199wx_cv_explicit=yes
18200
18201fi
de59c161 18202rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18203
18204else
18205 echo "$as_me: failed program was:" >&5
18206sed 's/^/| /' conftest.$ac_ext >&5
18207
18208wx_cv_explicit=no
18209
18210fi
de59c161 18211rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18212
18213 ac_ext=c
18214ac_cpp='$CPP $CPPFLAGS'
18215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18217ac_compiler_gnu=$ac_cv_c_compiler_gnu
18218
18219
18220fi
18221echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18222echo "${ECHO_T}$wx_cv_explicit" >&6
18223
18224 if test "$wx_cv_explicit" = "yes"; then
18225 cat >>confdefs.h <<\_ACEOF
18226#define HAVE_EXPLICIT 1
18227_ACEOF
18228
18229 fi
18230
18231
18232echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18233echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18234if test "${ac_cv_cxx_const_cast+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236else
18237
18238
18239 ac_ext=cc
18240ac_cpp='$CXXCPP $CPPFLAGS'
18241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18244
18245 cat >conftest.$ac_ext <<_ACEOF
de59c161 18246#line $LINENO "configure"
a848cd7e
SC
18247/* confdefs.h. */
18248_ACEOF
18249cat confdefs.h >>conftest.$ac_ext
18250cat >>conftest.$ac_ext <<_ACEOF
18251/* end confdefs.h. */
18252
18253int
18254main ()
18255{
18256int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
18257 ;
18258 return 0;
18259}
18260_ACEOF
18261rm -f conftest.$ac_objext
18262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18263 (eval $ac_compile) 2>&5
a848cd7e 18264 ac_status=$?
a848cd7e
SC
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } &&
de59c161 18267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 ac_cv_cxx_const_cast=yes
18274else
18275 echo "$as_me: failed program was:" >&5
18276sed 's/^/| /' conftest.$ac_ext >&5
18277
18278ac_cv_cxx_const_cast=no
18279fi
de59c161 18280rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18281 ac_ext=c
18282ac_cpp='$CPP $CPPFLAGS'
18283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18285ac_compiler_gnu=$ac_cv_c_compiler_gnu
18286
18287
18288fi
18289echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18290echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
18291if test "$ac_cv_cxx_const_cast" = yes; then
18292
18293cat >>confdefs.h <<\_ACEOF
18294#define HAVE_CONST_CAST
18295_ACEOF
18296
18297fi
18298
18299echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
18300echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
18301if test "${ac_cv_cxx_static_cast+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18303else
18304
18305
18306 ac_ext=cc
18307ac_cpp='$CXXCPP $CPPFLAGS'
18308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18311
18312 cat >conftest.$ac_ext <<_ACEOF
de59c161 18313#line $LINENO "configure"
a848cd7e
SC
18314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
18318/* end confdefs.h. */
18319#include <typeinfo>
18320class Base { public : Base () {} virtual void f () = 0; };
18321class Derived : public Base { public : Derived () {} virtual void f () {} };
18322int g (Derived&) { return 0; }
18323int
18324main ()
18325{
18326
18327Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
18328 ;
18329 return 0;
18330}
18331_ACEOF
18332rm -f conftest.$ac_objext
18333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18334 (eval $ac_compile) 2>&5
a848cd7e 18335 ac_status=$?
a848cd7e
SC
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
de59c161 18338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_cxx_static_cast=yes
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349ac_cv_cxx_static_cast=no
18350fi
de59c161 18351rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18352 ac_ext=c
18353ac_cpp='$CPP $CPPFLAGS'
18354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356ac_compiler_gnu=$ac_cv_c_compiler_gnu
18357
18358
18359fi
18360echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
18361echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
18362if test "$ac_cv_cxx_static_cast" = yes; then
18363
18364cat >>confdefs.h <<\_ACEOF
18365#define HAVE_STATIC_CAST
18366_ACEOF
18367
18368fi
18369
18370
18371if test "$wxUSE_STL" = "yes"; then
18372 ac_ext=cc
18373ac_cpp='$CXXCPP $CPPFLAGS'
18374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18377
18378
18379 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18380echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18381 cat >conftest.$ac_ext <<_ACEOF
de59c161 18382#line $LINENO "configure"
a848cd7e
SC
18383/* confdefs.h. */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h. */
18388#include <string>
18389 #include <functional>
18390 #include <algorithm>
18391 #include <vector>
18392 #include <list>
18393int
18394main ()
18395{
18396std::vector<int> moo;
18397 std::list<int> foo;
18398 std::vector<int>::iterator it =
18399 std::find_if(moo.begin(), moo.end(),
18400 std::bind2nd(std::less<int>(), 3));
18401 ;
18402 return 0;
18403}
18404_ACEOF
18405rm -f conftest.$ac_objext
18406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18407 (eval $ac_compile) 2>&5
a848cd7e 18408 ac_status=$?
a848cd7e
SC
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } &&
de59c161 18411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 echo "$as_me:$LINENO: result: yes" >&5
18418echo "${ECHO_T}yes" >&6
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423echo "$as_me:$LINENO: result: no" >&5
18424echo "${ECHO_T}no" >&6
18425 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18426echo "$as_me: error: Basic STL functionality missing" >&2;}
18427 { (exit 1); exit 1; }; }
18428fi
de59c161 18429rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18430
18431 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18432echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18433 cat >conftest.$ac_ext <<_ACEOF
de59c161 18434#line $LINENO "configure"
a848cd7e
SC
18435/* confdefs.h. */
18436_ACEOF
18437cat confdefs.h >>conftest.$ac_ext
18438cat >>conftest.$ac_ext <<_ACEOF
18439/* end confdefs.h. */
18440#include <string>
18441int
18442main ()
18443{
18444std::wstring foo;
18445 ;
18446 return 0;
18447}
18448_ACEOF
18449rm -f conftest.$ac_objext
18450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18451 (eval $ac_compile) 2>&5
a848cd7e 18452 ac_status=$?
a848cd7e
SC
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
de59c161 18455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 echo "$as_me:$LINENO: result: yes" >&5
18462echo "${ECHO_T}yes" >&6
18463 cat >>confdefs.h <<\_ACEOF
18464#define HAVE_STD_WSTRING 1
18465_ACEOF
18466
18467else
18468 echo "$as_me: failed program was:" >&5
18469sed 's/^/| /' conftest.$ac_ext >&5
18470
18471echo "$as_me:$LINENO: result: no" >&5
18472echo "${ECHO_T}no" >&6
18473fi
de59c161 18474rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18475
18476 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18477echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18478 cat >conftest.$ac_ext <<_ACEOF
de59c161 18479#line $LINENO "configure"
a848cd7e
SC
18480/* confdefs.h. */
18481_ACEOF
18482cat confdefs.h >>conftest.$ac_ext
18483cat >>conftest.$ac_ext <<_ACEOF
18484/* end confdefs.h. */
18485#include <string>
18486int
18487main ()
18488{
18489std::string foo, bar;
18490 foo.compare(bar);
18491 foo.compare(1, 1, bar);
18492 foo.compare(1, 1, bar, 1, 1);
18493 foo.compare("");
18494 foo.compare(1, 1, "");
18495 foo.compare(1, 1, "", 2);
18496 ;
18497 return 0;
18498}
18499_ACEOF
18500rm -f conftest.$ac_objext
18501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18502 (eval $ac_compile) 2>&5
a848cd7e 18503 ac_status=$?
a848cd7e
SC
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); } &&
de59c161 18506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 echo "$as_me:$LINENO: result: yes" >&5
18513echo "${ECHO_T}yes" >&6
18514 cat >>confdefs.h <<\_ACEOF
18515#define HAVE_STD_STRING_COMPARE 1
18516_ACEOF
18517
18518else
18519 echo "$as_me: failed program was:" >&5
18520sed 's/^/| /' conftest.$ac_ext >&5
18521
18522echo "$as_me:$LINENO: result: no" >&5
18523echo "${ECHO_T}no" >&6
18524fi
de59c161 18525rm -f conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
18526
18527 if test "${ac_cv_header_hash_map+set}" = set; then
18528 echo "$as_me:$LINENO: checking for hash_map" >&5
18529echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
18530if test "${ac_cv_header_hash_map+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18532fi
18533echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
18534echo "${ECHO_T}$ac_cv_header_hash_map" >&6
18535else
18536 # Is the header compilable?
18537echo "$as_me:$LINENO: checking hash_map usability" >&5
18538echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
18539cat >conftest.$ac_ext <<_ACEOF
de59c161 18540#line $LINENO "configure"
bdcade0a
MB
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546$ac_includes_default
18547#include <hash_map>
18548_ACEOF
18549rm -f conftest.$ac_objext
18550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18551 (eval $ac_compile) 2>&5
bdcade0a 18552 ac_status=$?
bdcade0a
MB
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
de59c161 18555 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_header_compiler=yes
18562else
18563 echo "$as_me: failed program was:" >&5
18564sed 's/^/| /' conftest.$ac_ext >&5
18565
18566ac_header_compiler=no
18567fi
de59c161 18568rm -f conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
18569echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18570echo "${ECHO_T}$ac_header_compiler" >&6
18571
18572# Is the header present?
18573echo "$as_me:$LINENO: checking hash_map presence" >&5
18574echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
18575cat >conftest.$ac_ext <<_ACEOF
de59c161 18576#line $LINENO "configure"
bdcade0a
MB
18577/* confdefs.h. */
18578_ACEOF
18579cat confdefs.h >>conftest.$ac_ext
18580cat >>conftest.$ac_ext <<_ACEOF
18581/* end confdefs.h. */
18582#include <hash_map>
18583_ACEOF
18584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18586 ac_status=$?
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } >/dev/null; then
18592 if test -s conftest.err; then
18593 ac_cpp_err=$ac_cxx_preproc_warn_flag
bdcade0a
MB
18594 else
18595 ac_cpp_err=
18596 fi
18597else
18598 ac_cpp_err=yes
18599fi
18600if test -z "$ac_cpp_err"; then
18601 ac_header_preproc=yes
18602else
18603 echo "$as_me: failed program was:" >&5
18604sed 's/^/| /' conftest.$ac_ext >&5
18605
18606 ac_header_preproc=no
18607fi
18608rm -f conftest.err conftest.$ac_ext
18609echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18610echo "${ECHO_T}$ac_header_preproc" >&6
18611
18612# So? What about this header?
de59c161
RD
18613case $ac_header_compiler:$ac_header_preproc in
18614 yes:no )
bdcade0a
MB
18615 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
18616echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
18617 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
18618echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
18619 (
18620 cat <<\_ASBOX
18621## ------------------------------------ ##
18622## Report this to bug-autoconf@gnu.org. ##
18623## ------------------------------------ ##
18624_ASBOX
18625 ) |
18626 sed "s/^/$as_me: WARNING: /" >&2
bdcade0a 18627 ;;
de59c161 18628 no:yes )
bdcade0a
MB
18629 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
18630echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
de59c161
RD
18631 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
18632echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
bdcade0a
MB
18633 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
18634echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
bdcade0a
MB
18635 (
18636 cat <<\_ASBOX
de59c161
RD
18637## ------------------------------------ ##
18638## Report this to bug-autoconf@gnu.org. ##
18639## ------------------------------------ ##
bdcade0a
MB
18640_ASBOX
18641 ) |
18642 sed "s/^/$as_me: WARNING: /" >&2
18643 ;;
18644esac
18645echo "$as_me:$LINENO: checking for hash_map" >&5
18646echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
18647if test "${ac_cv_header_hash_map+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18649else
18650 ac_cv_header_hash_map=$ac_header_preproc
18651fi
18652echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
18653echo "${ECHO_T}$ac_cv_header_hash_map" >&6
18654
18655fi
18656if test $ac_cv_header_hash_map = yes; then
18657 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
18658echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
18659 cat >conftest.$ac_ext <<_ACEOF
de59c161 18660#line $LINENO "configure"
bdcade0a
MB
18661/* confdefs.h. */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h. */
18666#include <hash_map>
18667 #include <hash_set>
18668int
18669main ()
18670{
18671std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
18672 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
18673 ;
18674 return 0;
18675}
18676_ACEOF
18677rm -f conftest.$ac_objext
18678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18679 (eval $ac_compile) 2>&5
bdcade0a 18680 ac_status=$?
bdcade0a
MB
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
de59c161 18683 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 echo "$as_me:$LINENO: result: yes" >&5
18690echo "${ECHO_T}yes" >&6
18691 cat >>confdefs.h <<\_ACEOF
18692#define HAVE_HASH_MAP 1
18693_ACEOF
18694
18695 cat >>confdefs.h <<\_ACEOF
18696#define HAVE_STD_HASH_MAP 1
18697_ACEOF
18698
18699else
18700 echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703echo "$as_me:$LINENO: result: no" >&5
18704echo "${ECHO_T}no" >&6
18705fi
de59c161 18706rm -f conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
18707
18708fi
18709
18710
18711
18712 if test "${ac_cv_header_ext_hash_map+set}" = set; then
18713 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
18714echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
18715if test "${ac_cv_header_ext_hash_map+set}" = set; then
18716 echo $ECHO_N "(cached) $ECHO_C" >&6
18717fi
18718echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
18719echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
18720else
18721 # Is the header compilable?
18722echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
18723echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
18724cat >conftest.$ac_ext <<_ACEOF
de59c161 18725#line $LINENO "configure"
bdcade0a
MB
18726/* confdefs.h. */
18727_ACEOF
18728cat confdefs.h >>conftest.$ac_ext
18729cat >>conftest.$ac_ext <<_ACEOF
18730/* end confdefs.h. */
18731$ac_includes_default
18732#include <ext/hash_map>
18733_ACEOF
18734rm -f conftest.$ac_objext
18735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18736 (eval $ac_compile) 2>&5
bdcade0a 18737 ac_status=$?
bdcade0a
MB
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
de59c161 18740 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_header_compiler=yes
18747else
18748 echo "$as_me: failed program was:" >&5
18749sed 's/^/| /' conftest.$ac_ext >&5
18750
18751ac_header_compiler=no
18752fi
de59c161 18753rm -f conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
18754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18755echo "${ECHO_T}$ac_header_compiler" >&6
18756
18757# Is the header present?
18758echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
18759echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
18760cat >conftest.$ac_ext <<_ACEOF
de59c161 18761#line $LINENO "configure"
bdcade0a
MB
18762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
18767#include <ext/hash_map>
18768_ACEOF
18769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18771 ac_status=$?
18772 grep -v '^ *+' conftest.er1 >conftest.err
18773 rm -f conftest.er1
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } >/dev/null; then
18777 if test -s conftest.err; then
18778 ac_cpp_err=$ac_cxx_preproc_warn_flag
bdcade0a
MB
18779 else
18780 ac_cpp_err=
18781 fi
18782else
18783 ac_cpp_err=yes
18784fi
18785if test -z "$ac_cpp_err"; then
18786 ac_header_preproc=yes
18787else
18788 echo "$as_me: failed program was:" >&5
18789sed 's/^/| /' conftest.$ac_ext >&5
18790
18791 ac_header_preproc=no
18792fi
18793rm -f conftest.err conftest.$ac_ext
18794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18795echo "${ECHO_T}$ac_header_preproc" >&6
18796
18797# So? What about this header?
de59c161
RD
18798case $ac_header_compiler:$ac_header_preproc in
18799 yes:no )
bdcade0a
MB
18800 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
18801echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
18802 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
18803echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
18804 (
18805 cat <<\_ASBOX
18806## ------------------------------------ ##
18807## Report this to bug-autoconf@gnu.org. ##
18808## ------------------------------------ ##
18809_ASBOX
18810 ) |
18811 sed "s/^/$as_me: WARNING: /" >&2
bdcade0a 18812 ;;
de59c161 18813 no:yes )
bdcade0a
MB
18814 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
18815echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
de59c161
RD
18816 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
18817echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
bdcade0a
MB
18818 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
18819echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
bdcade0a
MB
18820 (
18821 cat <<\_ASBOX
de59c161
RD
18822## ------------------------------------ ##
18823## Report this to bug-autoconf@gnu.org. ##
18824## ------------------------------------ ##
bdcade0a
MB
18825_ASBOX
18826 ) |
18827 sed "s/^/$as_me: WARNING: /" >&2
18828 ;;
18829esac
18830echo "$as_me:$LINENO: checking for ext/hash_map" >&5
18831echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
18832if test "${ac_cv_header_ext_hash_map+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834else
18835 ac_cv_header_ext_hash_map=$ac_header_preproc
18836fi
18837echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
18838echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
18839
18840fi
18841if test $ac_cv_header_ext_hash_map = yes; then
18842 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
18843echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
18844 cat >conftest.$ac_ext <<_ACEOF
de59c161 18845#line $LINENO "configure"
bdcade0a
MB
18846/* confdefs.h. */
18847_ACEOF
18848cat confdefs.h >>conftest.$ac_ext
18849cat >>conftest.$ac_ext <<_ACEOF
18850/* end confdefs.h. */
18851#include <ext/hash_map>
18852 #include <ext/hash_set>
18853int
18854main ()
18855{
18856__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
18857 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
18858 ;
18859 return 0;
18860}
18861_ACEOF
18862rm -f conftest.$ac_objext
18863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 18864 (eval $ac_compile) 2>&5
bdcade0a 18865 ac_status=$?
bdcade0a
MB
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
de59c161 18868 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874 echo "$as_me:$LINENO: result: yes" >&5
18875echo "${ECHO_T}yes" >&6
18876 cat >>confdefs.h <<\_ACEOF
18877#define HAVE_EXT_HASH_MAP 1
18878_ACEOF
18879
18880 cat >>confdefs.h <<\_ACEOF
18881#define HAVE_GNU_CXX_HASH_MAP 1
18882_ACEOF
18883
18884else
18885 echo "$as_me: failed program was:" >&5
18886sed 's/^/| /' conftest.$ac_ext >&5
18887
18888echo "$as_me:$LINENO: result: no" >&5
18889echo "${ECHO_T}no" >&6
18890fi
de59c161 18891rm -f conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
18892
18893fi
18894
18895
a848cd7e
SC
18896
18897 ac_ext=c
18898ac_cpp='$CPP $CPPFLAGS'
18899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18901ac_compiler_gnu=$ac_cv_c_compiler_gnu
18902
18903fi
18904
18905
18906SEARCH_INCLUDE="\
18907 /usr/local/include \
18908 \
18909 /usr/Motif-2.1/include \
18910 /usr/Motif-1.2/include \
18911 /usr/include/Motif1.2 \
18912 /opt/xpm/include/X11 \
18913 /opt/GBxpm/include/ \
18914 /opt/GBxpm/X11/include/ \
18915 \
18916 /usr/dt/include \
18917 /usr/openwin/include \
18918 \
18919 /usr/include/Xm \
18920 \
18921 /usr/X11R6/include \
18922 /usr/X11R6.4/include \
18923 /usr/X11R5/include \
18924 /usr/X11R4/include \
18925 \
18926 /usr/include/X11R6 \
18927 /usr/include/X11R5 \
18928 /usr/include/X11R4 \
18929 \
18930 /usr/local/X11R6/include \
18931 /usr/local/X11R5/include \
18932 /usr/local/X11R4/include \
18933 \
18934 /usr/local/include/X11R6 \
18935 /usr/local/include/X11R5 \
18936 /usr/local/include/X11R4 \
18937 \
18938 /usr/X11/include \
18939 /usr/include/X11 \
18940 /usr/local/X11/include \
18941 /usr/local/include/X11 \
18942 \
18943 /usr/X386/include \
18944 /usr/x386/include \
18945 /usr/XFree86/include/X11 \
18946 \
18947 X:/XFree86/include \
18948 X:/XFree86/include/X11 \
18949 \
18950 /usr/include/gtk \
18951 /usr/local/include/gtk \
18952 /usr/include/glib \
18953 /usr/local/include/glib \
18954 \
18955 /usr/include/qt \
18956 /usr/local/include/qt \
18957 \
18958 /usr/local/arm/3.3.2/include \
18959 \
18960 /usr/include/windows \
18961 /usr/include/wine \
18962 /usr/local/include/wine \
18963 \
18964 /usr/unsupported/include \
18965 /usr/athena/include \
18966 /usr/local/x11r5/include \
18967 /usr/lpp/Xamples/include \
18968 \
18969 /usr/openwin/share/include"
18970
18971SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
18972
18973
18974cat >confcache <<\_ACEOF
18975# This file is a shell script that caches the results of configure
18976# tests run on this system so they can be shared between configure
18977# scripts and configure runs, see configure's option --config-cache.
18978# It is not useful on other systems. If it contains results you don't
18979# want to keep, you may remove or edit it.
18980#
18981# config.status only pays attention to the cache file if you give it
18982# the --recheck option to rerun configure.
18983#
18984# `ac_cv_env_foo' variables (set or unset) will be overridden when
18985# loading this file, other *unset* `ac_cv_foo' will be assigned the
18986# following values.
18987
18988_ACEOF
18989
18990# The following way of writing the cache mishandles newlines in values,
18991# but we know of no workaround that is simple, portable, and efficient.
18992# So, don't put newlines in cache variables' values.
18993# Ultrix sh set writes to stderr and can't be redirected directly,
18994# and sets the high bit in the cache file unless we assign to the vars.
18995{
18996 (set) 2>&1 |
18997 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18998 *ac_space=\ *)
18999 # `set' does not quote correctly, so add quotes (double-quote
19000 # substitution turns \\\\ into \\, and sed turns \\ into \).
19001 sed -n \
de59c161
RD
19002 "s/'/'\\\\''/g;
19003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19004 ;;
19005 *)
19006 # `set' quotes correctly as required by POSIX, so do not add quotes.
19007 sed -n \
de59c161 19008 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19009 ;;
19010 esac;
19011} |
19012 sed '
19013 t clear
19014 : clear
19015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19016 t end
19017 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19018 : end' >>confcache
19019if diff $cache_file confcache >/dev/null 2>&1; then :; else
19020 if test -w $cache_file; then
19021 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19022 cat confcache >$cache_file
19023 else
19024 echo "not updating unwritable cache $cache_file"
19025 fi
19026fi
19027rm -f confcache
19028
19029if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19030 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19031echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19032if test "${wx_cv_lib_glibc21+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19034else
19035
19036 cat >conftest.$ac_ext <<_ACEOF
de59c161 19037#line $LINENO "configure"
a848cd7e
SC
19038/* confdefs.h. */
19039_ACEOF
19040cat confdefs.h >>conftest.$ac_ext
19041cat >>conftest.$ac_ext <<_ACEOF
19042/* end confdefs.h. */
19043#include <features.h>
19044int
19045main ()
19046{
19047
19048 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19049 #error not glibc2.1
19050 #endif
19051
19052 ;
19053 return 0;
19054}
19055_ACEOF
19056rm -f conftest.$ac_objext
19057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 19058 (eval $ac_compile) 2>&5
a848cd7e 19059 ac_status=$?
a848cd7e
SC
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } &&
de59c161 19062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068
19069 wx_cv_lib_glibc21=yes
19070
19071else
19072 echo "$as_me: failed program was:" >&5
19073sed 's/^/| /' conftest.$ac_ext >&5
19074
19075
19076 wx_cv_lib_glibc21=no
19077
19078
19079fi
de59c161 19080rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19081
19082fi
19083echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19084echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19085 if test "$wx_cv_lib_glibc21" = "yes"; then
19086 cat >>confdefs.h <<\_ACEOF
19087#define wxHAVE_GLIBC2 1
19088_ACEOF
19089
19090 fi
19091fi
19092
19093if test "x$wx_cv_lib_glibc21" = "xyes"; then
19094 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19095 cat >>confdefs.h <<\_ACEOF
19096#define _GNU_SOURCE 1
19097_ACEOF
19098
19099 fi
19100fi
19101
19102
19103
19104if test "$wxUSE_REGEX" != "no"; then
19105 cat >>confdefs.h <<\_ACEOF
19106#define wxUSE_REGEX 1
19107_ACEOF
19108
19109
19110 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19111 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19112echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19113 wxUSE_REGEX=builtin
19114 fi
19115
19116 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19117 if test "${ac_cv_header_regex_h+set}" = set; then
19118 echo "$as_me:$LINENO: checking for regex.h" >&5
19119echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19120if test "${ac_cv_header_regex_h+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19122fi
19123echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19124echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19125else
19126 # Is the header compilable?
19127echo "$as_me:$LINENO: checking regex.h usability" >&5
19128echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19129cat >conftest.$ac_ext <<_ACEOF
de59c161 19130#line $LINENO "configure"
a848cd7e
SC
19131/* confdefs.h. */
19132_ACEOF
19133cat confdefs.h >>conftest.$ac_ext
19134cat >>conftest.$ac_ext <<_ACEOF
19135/* end confdefs.h. */
19136$ac_includes_default
19137#include <regex.h>
19138_ACEOF
19139rm -f conftest.$ac_objext
19140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 19141 (eval $ac_compile) 2>&5
a848cd7e 19142 ac_status=$?
a848cd7e
SC
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
de59c161 19145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147 (eval $ac_try) 2>&5
19148 ac_status=$?
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; }; then
19151 ac_header_compiler=yes
19152else
19153 echo "$as_me: failed program was:" >&5
19154sed 's/^/| /' conftest.$ac_ext >&5
19155
19156ac_header_compiler=no
19157fi
de59c161 19158rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19160echo "${ECHO_T}$ac_header_compiler" >&6
19161
19162# Is the header present?
19163echo "$as_me:$LINENO: checking regex.h presence" >&5
19164echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19165cat >conftest.$ac_ext <<_ACEOF
de59c161 19166#line $LINENO "configure"
a848cd7e
SC
19167/* confdefs.h. */
19168_ACEOF
19169cat confdefs.h >>conftest.$ac_ext
19170cat >>conftest.$ac_ext <<_ACEOF
19171/* end confdefs.h. */
19172#include <regex.h>
19173_ACEOF
19174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } >/dev/null; then
19182 if test -s conftest.err; then
19183 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
19184 else
19185 ac_cpp_err=
19186 fi
19187else
19188 ac_cpp_err=yes
19189fi
19190if test -z "$ac_cpp_err"; then
19191 ac_header_preproc=yes
19192else
19193 echo "$as_me: failed program was:" >&5
19194sed 's/^/| /' conftest.$ac_ext >&5
19195
19196 ac_header_preproc=no
19197fi
19198rm -f conftest.err conftest.$ac_ext
19199echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19200echo "${ECHO_T}$ac_header_preproc" >&6
19201
19202# So? What about this header?
de59c161
RD
19203case $ac_header_compiler:$ac_header_preproc in
19204 yes:no )
a848cd7e
SC
19205 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19206echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
19207 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19208echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19209 (
19210 cat <<\_ASBOX
19211## ------------------------------------ ##
19212## Report this to bug-autoconf@gnu.org. ##
19213## ------------------------------------ ##
19214_ASBOX
19215 ) |
19216 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 19217 ;;
de59c161 19218 no:yes )
a848cd7e
SC
19219 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19220echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
de59c161
RD
19221 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19222echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
19223 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19224echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
19225 (
19226 cat <<\_ASBOX
de59c161
RD
19227## ------------------------------------ ##
19228## Report this to bug-autoconf@gnu.org. ##
19229## ------------------------------------ ##
a848cd7e
SC
19230_ASBOX
19231 ) |
19232 sed "s/^/$as_me: WARNING: /" >&2
19233 ;;
19234esac
19235echo "$as_me:$LINENO: checking for regex.h" >&5
19236echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19237if test "${ac_cv_header_regex_h+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19239else
19240 ac_cv_header_regex_h=$ac_header_preproc
19241fi
19242echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19243echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19244
19245fi
19246if test $ac_cv_header_regex_h = yes; then
19247
19248for ac_func in regcomp
19249do
19250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19251echo "$as_me:$LINENO: checking for $ac_func" >&5
19252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19253if eval "test \"\${$as_ac_var+set}\" = set"; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255else
19256 cat >conftest.$ac_ext <<_ACEOF
de59c161 19257#line $LINENO "configure"
a848cd7e
SC
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
a848cd7e
SC
19263/* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char $ac_func (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
19267#ifdef __STDC__
19268# include <limits.h>
19269#else
19270# include <assert.h>
19271#endif
a848cd7e
SC
19272/* Override any gcc2 internal prototype to avoid an error. */
19273#ifdef __cplusplus
19274extern "C"
19275{
19276#endif
19277/* We use char because int might match the return type of a gcc2
19278 builtin and then its argument prototype would still apply. */
19279char $ac_func ();
19280/* The GNU C library defines this for functions which it implements
19281 to always fail with ENOSYS. Some functions are actually named
19282 something starting with __ and the normal name is an alias. */
19283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19284choke me
19285#else
19286char (*f) () = $ac_func;
19287#endif
19288#ifdef __cplusplus
19289}
19290#endif
19291
19292int
19293main ()
19294{
19295return f != $ac_func;
19296 ;
19297 return 0;
19298}
19299_ACEOF
19300rm -f conftest.$ac_objext conftest$ac_exeext
19301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 19302 (eval $ac_link) 2>&5
a848cd7e 19303 ac_status=$?
a848cd7e
SC
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
de59c161 19306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 eval "$as_ac_var=yes"
19313else
19314 echo "$as_me: failed program was:" >&5
19315sed 's/^/| /' conftest.$ac_ext >&5
19316
19317eval "$as_ac_var=no"
19318fi
de59c161 19319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19320fi
19321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19323if test `eval echo '${'$as_ac_var'}'` = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19326_ACEOF
19327
19328fi
19329done
19330
19331fi
19332
19333
19334
19335 if test "x$ac_cv_func_regcomp" != "xyes"; then
19336 if test "$wxUSE_REGEX" = "sys" ; then
19337 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19338echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19339 { (exit 1); exit 1; }; }
19340 else
19341 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19342echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19343 wxUSE_REGEX=builtin
19344 fi
19345 else
19346 wxUSE_REGEX=sys
19347 cat >>confdefs.h <<\_ACEOF
19348#define WX_NO_REGEX_ADVANCED 1
19349_ACEOF
19350
19351 fi
19352 fi
19353fi
19354
19355
19356ZLIB_LINK=
19357if test "$wxUSE_ZLIB" != "no" ; then
19358 cat >>confdefs.h <<\_ACEOF
19359#define wxUSE_ZLIB 1
19360_ACEOF
19361
19362
19363 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19364 if test "$USE_DARWIN" = 1; then
19365 system_zlib_h_ok="yes"
19366 else
19367 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19368echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19369if test "${ac_cv_header_zlib_h+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19371else
19372 if test "$cross_compiling" = yes; then
19373 unset ac_cv_header_zlib_h
19374
19375else
19376 cat >conftest.$ac_ext <<_ACEOF
de59c161 19377#line $LINENO "configure"
a848cd7e
SC
19378/* confdefs.h. */
19379_ACEOF
19380cat confdefs.h >>conftest.$ac_ext
19381cat >>conftest.$ac_ext <<_ACEOF
19382/* end confdefs.h. */
19383
19384 #include <zlib.h>
19385 #include <stdio.h>
19386
19387 int main()
19388 {
19389 FILE *f=fopen("conftestval", "w");
19390 if (!f) exit(1);
19391 fprintf(f, "%s",
19392 ZLIB_VERSION[0] == '1' &&
19393 (ZLIB_VERSION[2] > '1' ||
19394 (ZLIB_VERSION[2] == '1' &&
19395 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19396 exit(0);
19397 }
19398
19399_ACEOF
19400rm -f conftest$ac_exeext
19401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19402 (eval $ac_link) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 ac_cv_header_zlib_h=`cat conftestval`
19412else
19413 echo "$as_me: program exited with status $ac_status" >&5
19414echo "$as_me: failed program was:" >&5
19415sed 's/^/| /' conftest.$ac_ext >&5
19416
19417( exit $ac_status )
19418ac_cv_header_zlib_h=no
19419fi
de59c161 19420rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19421fi
19422
19423fi
19424echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19425echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19426 if test "${ac_cv_header_zlib_h+set}" = set; then
19427 echo "$as_me:$LINENO: checking for zlib.h" >&5
19428echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19429if test "${ac_cv_header_zlib_h+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431fi
19432echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19433echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19434else
19435 # Is the header compilable?
19436echo "$as_me:$LINENO: checking zlib.h usability" >&5
19437echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19438cat >conftest.$ac_ext <<_ACEOF
de59c161 19439#line $LINENO "configure"
a848cd7e
SC
19440/* confdefs.h. */
19441_ACEOF
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
19445$ac_includes_default
19446#include <zlib.h>
19447_ACEOF
19448rm -f conftest.$ac_objext
19449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 19450 (eval $ac_compile) 2>&5
a848cd7e 19451 ac_status=$?
a848cd7e
SC
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
de59c161 19454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_header_compiler=yes
19461else
19462 echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465ac_header_compiler=no
19466fi
de59c161 19467rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19468echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19469echo "${ECHO_T}$ac_header_compiler" >&6
19470
19471# Is the header present?
19472echo "$as_me:$LINENO: checking zlib.h presence" >&5
19473echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19474cat >conftest.$ac_ext <<_ACEOF
de59c161 19475#line $LINENO "configure"
a848cd7e
SC
19476/* confdefs.h. */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h. */
19481#include <zlib.h>
19482_ACEOF
19483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19485 ac_status=$?
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } >/dev/null; then
19491 if test -s conftest.err; then
19492 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
19493 else
19494 ac_cpp_err=
19495 fi
19496else
19497 ac_cpp_err=yes
19498fi
19499if test -z "$ac_cpp_err"; then
19500 ac_header_preproc=yes
19501else
19502 echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505 ac_header_preproc=no
19506fi
19507rm -f conftest.err conftest.$ac_ext
19508echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19509echo "${ECHO_T}$ac_header_preproc" >&6
19510
19511# So? What about this header?
de59c161
RD
19512case $ac_header_compiler:$ac_header_preproc in
19513 yes:no )
a848cd7e
SC
19514 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19515echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
19516 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19517echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19518 (
19519 cat <<\_ASBOX
19520## ------------------------------------ ##
19521## Report this to bug-autoconf@gnu.org. ##
19522## ------------------------------------ ##
19523_ASBOX
19524 ) |
19525 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 19526 ;;
de59c161 19527 no:yes )
a848cd7e
SC
19528 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19529echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
de59c161
RD
19530 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19531echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
19532 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19533echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
19534 (
19535 cat <<\_ASBOX
de59c161
RD
19536## ------------------------------------ ##
19537## Report this to bug-autoconf@gnu.org. ##
19538## ------------------------------------ ##
a848cd7e
SC
19539_ASBOX
19540 ) |
19541 sed "s/^/$as_me: WARNING: /" >&2
19542 ;;
19543esac
19544echo "$as_me:$LINENO: checking for zlib.h" >&5
19545echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19546if test "${ac_cv_header_zlib_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548else
19549 ac_cv_header_zlib_h=$ac_header_preproc
19550fi
19551echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19552echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19553
19554fi
19555
19556
19557
19558 system_zlib_h_ok=$ac_cv_header_zlib_h
19559 fi
19560
19561 if test "$system_zlib_h_ok" = "yes"; then
19562 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19563echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19564if test "${ac_cv_lib_z_deflate+set}" = set; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19566else
19567 ac_check_lib_save_LIBS=$LIBS
19568LIBS="-lz $LIBS"
19569cat >conftest.$ac_ext <<_ACEOF
de59c161 19570#line $LINENO "configure"
a848cd7e
SC
19571/* confdefs.h. */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
19575/* end confdefs.h. */
19576
19577/* Override any gcc2 internal prototype to avoid an error. */
19578#ifdef __cplusplus
19579extern "C"
19580#endif
19581/* We use char because int might match the return type of a gcc2
19582 builtin and then its argument prototype would still apply. */
19583char deflate ();
19584int
19585main ()
19586{
19587deflate ();
19588 ;
19589 return 0;
19590}
19591_ACEOF
19592rm -f conftest.$ac_objext conftest$ac_exeext
19593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 19594 (eval $ac_link) 2>&5
a848cd7e 19595 ac_status=$?
a848cd7e
SC
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
de59c161 19598 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_cv_lib_z_deflate=yes
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609ac_cv_lib_z_deflate=no
19610fi
de59c161 19611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19612LIBS=$ac_check_lib_save_LIBS
19613fi
19614echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19615echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19616if test $ac_cv_lib_z_deflate = yes; then
19617 ZLIB_LINK=" -lz"
19618fi
19619
19620 fi
19621
19622 if test "x$ZLIB_LINK" = "x" ; then
19623 if test "$wxUSE_ZLIB" = "sys" ; then
19624 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19625echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19626 { (exit 1); exit 1; }; }
19627 else
19628 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19629echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
19630 wxUSE_ZLIB=builtin
19631 fi
19632 else
19633 wxUSE_ZLIB=sys
19634 fi
19635 fi
19636fi
19637
19638
19639PNG_LINK=
19640if test "$wxUSE_LIBPNG" != "no" ; then
19641 cat >>confdefs.h <<\_ACEOF
19642#define wxUSE_LIBPNG 1
19643_ACEOF
19644
19645
19646 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
19647 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19648echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
19649 wxUSE_LIBPNG=sys
19650 fi
19651
19652 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
19653 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19654echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
19655 wxUSE_LIBPNG=builtin
19656 fi
19657
19658 if test "$wxUSE_MGL" != 1 ; then
19659 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
19660 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19661echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19662if test "${ac_cv_header_png_h+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664else
19665 if test "$cross_compiling" = yes; then
19666 unset ac_cv_header_png_h
19667
19668else
19669 cat >conftest.$ac_ext <<_ACEOF
de59c161 19670#line $LINENO "configure"
a848cd7e
SC
19671/* confdefs.h. */
19672_ACEOF
19673cat confdefs.h >>conftest.$ac_ext
19674cat >>conftest.$ac_ext <<_ACEOF
19675/* end confdefs.h. */
19676
19677 #include <png.h>
19678 #include <stdio.h>
19679
19680 int main()
19681 {
19682 FILE *f=fopen("conftestval", "w");
19683 if (!f) exit(1);
19684 fprintf(f, "%s",
19685 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19686 exit(0);
19687 }
19688
19689_ACEOF
19690rm -f conftest$ac_exeext
19691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692 (eval $ac_link) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; }; then
19701 ac_cv_header_png_h=`cat conftestval`
19702else
19703 echo "$as_me: program exited with status $ac_status" >&5
19704echo "$as_me: failed program was:" >&5
19705sed 's/^/| /' conftest.$ac_ext >&5
19706
19707( exit $ac_status )
19708ac_cv_header_png_h=no
19709fi
de59c161 19710rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19711fi
19712
19713fi
19714echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19715echo "${ECHO_T}$ac_cv_header_png_h" >&6
19716 if test "${ac_cv_header_png_h+set}" = set; then
19717 echo "$as_me:$LINENO: checking for png.h" >&5
19718echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19719if test "${ac_cv_header_png_h+set}" = set; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19721fi
19722echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19723echo "${ECHO_T}$ac_cv_header_png_h" >&6
19724else
19725 # Is the header compilable?
19726echo "$as_me:$LINENO: checking png.h usability" >&5
19727echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19728cat >conftest.$ac_ext <<_ACEOF
de59c161 19729#line $LINENO "configure"
a848cd7e
SC
19730/* confdefs.h. */
19731_ACEOF
19732cat confdefs.h >>conftest.$ac_ext
19733cat >>conftest.$ac_ext <<_ACEOF
19734/* end confdefs.h. */
19735$ac_includes_default
19736#include <png.h>
19737_ACEOF
19738rm -f conftest.$ac_objext
19739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 19740 (eval $ac_compile) 2>&5
a848cd7e 19741 ac_status=$?
a848cd7e
SC
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
de59c161 19744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_header_compiler=yes
19751else
19752 echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
19755ac_header_compiler=no
19756fi
de59c161 19757rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19759echo "${ECHO_T}$ac_header_compiler" >&6
19760
19761# Is the header present?
19762echo "$as_me:$LINENO: checking png.h presence" >&5
19763echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19764cat >conftest.$ac_ext <<_ACEOF
de59c161 19765#line $LINENO "configure"
a848cd7e
SC
19766/* confdefs.h. */
19767_ACEOF
19768cat confdefs.h >>conftest.$ac_ext
19769cat >>conftest.$ac_ext <<_ACEOF
19770/* end confdefs.h. */
19771#include <png.h>
19772_ACEOF
19773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19775 ac_status=$?
19776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } >/dev/null; then
19781 if test -s conftest.err; then
19782 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
19783 else
19784 ac_cpp_err=
19785 fi
19786else
19787 ac_cpp_err=yes
19788fi
19789if test -z "$ac_cpp_err"; then
19790 ac_header_preproc=yes
19791else
19792 echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ac_header_preproc=no
19796fi
19797rm -f conftest.err conftest.$ac_ext
19798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19799echo "${ECHO_T}$ac_header_preproc" >&6
19800
19801# So? What about this header?
de59c161
RD
19802case $ac_header_compiler:$ac_header_preproc in
19803 yes:no )
a848cd7e
SC
19804 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19805echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
19806 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19807echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19808 (
19809 cat <<\_ASBOX
19810## ------------------------------------ ##
19811## Report this to bug-autoconf@gnu.org. ##
19812## ------------------------------------ ##
19813_ASBOX
19814 ) |
19815 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 19816 ;;
de59c161 19817 no:yes )
a848cd7e
SC
19818 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19819echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
de59c161
RD
19820 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19821echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
19822 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19823echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
19824 (
19825 cat <<\_ASBOX
de59c161
RD
19826## ------------------------------------ ##
19827## Report this to bug-autoconf@gnu.org. ##
19828## ------------------------------------ ##
a848cd7e
SC
19829_ASBOX
19830 ) |
19831 sed "s/^/$as_me: WARNING: /" >&2
19832 ;;
19833esac
19834echo "$as_me:$LINENO: checking for png.h" >&5
19835echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19836if test "${ac_cv_header_png_h+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838else
19839 ac_cv_header_png_h=$ac_header_preproc
19840fi
19841echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19842echo "${ECHO_T}$ac_cv_header_png_h" >&6
19843
19844fi
19845
19846
19847
19848 if test "$ac_cv_header_png_h" = "yes"; then
19849 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19850echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19851if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854 ac_check_lib_save_LIBS=$LIBS
19855LIBS="-lpng -lz -lm $LIBS"
19856cat >conftest.$ac_ext <<_ACEOF
de59c161 19857#line $LINENO "configure"
a848cd7e
SC
19858/* confdefs.h. */
19859_ACEOF
19860cat confdefs.h >>conftest.$ac_ext
19861cat >>conftest.$ac_ext <<_ACEOF
19862/* end confdefs.h. */
19863
19864/* Override any gcc2 internal prototype to avoid an error. */
19865#ifdef __cplusplus
19866extern "C"
19867#endif
19868/* We use char because int might match the return type of a gcc2
19869 builtin and then its argument prototype would still apply. */
19870char png_check_sig ();
19871int
19872main ()
19873{
19874png_check_sig ();
19875 ;
19876 return 0;
19877}
19878_ACEOF
19879rm -f conftest.$ac_objext conftest$ac_exeext
19880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 19881 (eval $ac_link) 2>&5
a848cd7e 19882 ac_status=$?
a848cd7e
SC
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
de59c161 19885 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_cv_lib_png_png_check_sig=yes
19892else
19893 echo "$as_me: failed program was:" >&5
19894sed 's/^/| /' conftest.$ac_ext >&5
19895
19896ac_cv_lib_png_png_check_sig=no
19897fi
de59c161 19898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19899LIBS=$ac_check_lib_save_LIBS
19900fi
19901echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19902echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19903if test $ac_cv_lib_png_png_check_sig = yes; then
19904 PNG_LINK=" -lpng -lz"
19905fi
19906
19907 fi
19908
19909 if test "x$PNG_LINK" = "x" ; then
19910 if test "$wxUSE_LIBPNG" = "sys" ; then
19911 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19912echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19913 { (exit 1); exit 1; }; }
19914 else
19915 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19916echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
19917 wxUSE_LIBPNG=builtin
19918 fi
19919 else
19920 wxUSE_LIBPNG=sys
19921 fi
19922 fi
19923 fi
19924
19925 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
19926fi
19927
19928
19929JPEG_LINK=
19930if test "$wxUSE_LIBJPEG" != "no" ; then
19931 cat >>confdefs.h <<\_ACEOF
19932#define wxUSE_LIBJPEG 1
19933_ACEOF
19934
19935
19936 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
19937 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19938echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
19939 wxUSE_LIBJPEG=sys
19940 fi
19941
19942 if test "$wxUSE_MGL" != 1 ; then
19943 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
19944 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19945echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19946 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948else
19949 cat >conftest.$ac_ext <<_ACEOF
de59c161 19950#line $LINENO "configure"
a848cd7e
SC
19951/* confdefs.h. */
19952_ACEOF
19953cat confdefs.h >>conftest.$ac_ext
19954cat >>conftest.$ac_ext <<_ACEOF
19955/* end confdefs.h. */
19956
19957 #undef HAVE_STDLIB_H
19958 #include <stdio.h>
19959 #include <jpeglib.h>
19960
19961int
19962main ()
19963{
19964
19965
19966 ;
19967 return 0;
19968}
19969_ACEOF
19970rm -f conftest.$ac_objext
19971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 19972 (eval $ac_compile) 2>&5
a848cd7e 19973 ac_status=$?
a848cd7e
SC
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
de59c161 19976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 ac_cv_header_jpeglib_h=yes
19983else
19984 echo "$as_me: failed program was:" >&5
19985sed 's/^/| /' conftest.$ac_ext >&5
19986
19987ac_cv_header_jpeglib_h=no
19988
19989fi
de59c161 19990rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19991
19992fi
19993
19994 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19995echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
19996
19997 if test "$ac_cv_header_jpeglib_h" = "yes"; then
19998 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19999echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20000if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20002else
20003 ac_check_lib_save_LIBS=$LIBS
20004LIBS="-ljpeg $LIBS"
20005cat >conftest.$ac_ext <<_ACEOF
de59c161 20006#line $LINENO "configure"
a848cd7e
SC
20007/* confdefs.h. */
20008_ACEOF
20009cat confdefs.h >>conftest.$ac_ext
20010cat >>conftest.$ac_ext <<_ACEOF
20011/* end confdefs.h. */
20012
20013/* Override any gcc2 internal prototype to avoid an error. */
20014#ifdef __cplusplus
20015extern "C"
20016#endif
20017/* We use char because int might match the return type of a gcc2
20018 builtin and then its argument prototype would still apply. */
20019char jpeg_read_header ();
20020int
20021main ()
20022{
20023jpeg_read_header ();
20024 ;
20025 return 0;
20026}
20027_ACEOF
20028rm -f conftest.$ac_objext conftest$ac_exeext
20029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 20030 (eval $ac_link) 2>&5
a848cd7e 20031 ac_status=$?
a848cd7e
SC
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } &&
de59c161 20034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 ac_cv_lib_jpeg_jpeg_read_header=yes
20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045ac_cv_lib_jpeg_jpeg_read_header=no
20046fi
de59c161 20047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20048LIBS=$ac_check_lib_save_LIBS
20049fi
20050echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20051echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20052if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20053 JPEG_LINK=" -ljpeg"
20054fi
20055
20056 fi
20057
20058 if test "x$JPEG_LINK" = "x" ; then
20059 if test "$wxUSE_LIBJPEG" = "sys" ; then
20060 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20061echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20062 { (exit 1); exit 1; }; }
20063 else
20064 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20065echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20066 wxUSE_LIBJPEG=builtin
20067 fi
20068 else
20069 wxUSE_LIBJPEG=sys
20070 fi
20071 fi
20072 fi
20073fi
20074
20075
20076TIFF_LINK=
20077TIFF_PREREQ_LINKS=-lm
20078if test "$wxUSE_LIBTIFF" != "no" ; then
20079 cat >>confdefs.h <<\_ACEOF
20080#define wxUSE_LIBTIFF 1
20081_ACEOF
20082
20083
20084 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
20085 if test "$wxUSE_LIBJPEG" = "sys"; then
20086 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20087 fi
20088 if test "$wxUSE_ZLIB" = "sys"; then
20089 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20090 fi
20091 if test "${ac_cv_header_tiffio_h+set}" = set; then
20092 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20093echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20094if test "${ac_cv_header_tiffio_h+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20096fi
20097echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20098echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20099else
20100 # Is the header compilable?
20101echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20102echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20103cat >conftest.$ac_ext <<_ACEOF
de59c161 20104#line $LINENO "configure"
a848cd7e
SC
20105/* confdefs.h. */
20106_ACEOF
20107cat confdefs.h >>conftest.$ac_ext
20108cat >>conftest.$ac_ext <<_ACEOF
20109/* end confdefs.h. */
20110$ac_includes_default
20111#include <tiffio.h>
20112_ACEOF
20113rm -f conftest.$ac_objext
20114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 20115 (eval $ac_compile) 2>&5
a848cd7e 20116 ac_status=$?
a848cd7e
SC
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
de59c161 20119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 ac_header_compiler=yes
20126else
20127 echo "$as_me: failed program was:" >&5
20128sed 's/^/| /' conftest.$ac_ext >&5
20129
20130ac_header_compiler=no
20131fi
de59c161 20132rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20133echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20134echo "${ECHO_T}$ac_header_compiler" >&6
20135
20136# Is the header present?
20137echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20138echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20139cat >conftest.$ac_ext <<_ACEOF
de59c161 20140#line $LINENO "configure"
a848cd7e
SC
20141/* confdefs.h. */
20142_ACEOF
20143cat confdefs.h >>conftest.$ac_ext
20144cat >>conftest.$ac_ext <<_ACEOF
20145/* end confdefs.h. */
20146#include <tiffio.h>
20147_ACEOF
20148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } >/dev/null; then
20156 if test -s conftest.err; then
20157 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
20158 else
20159 ac_cpp_err=
20160 fi
20161else
20162 ac_cpp_err=yes
20163fi
20164if test -z "$ac_cpp_err"; then
20165 ac_header_preproc=yes
20166else
20167 echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
20170 ac_header_preproc=no
20171fi
20172rm -f conftest.err conftest.$ac_ext
20173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20174echo "${ECHO_T}$ac_header_preproc" >&6
20175
20176# So? What about this header?
de59c161
RD
20177case $ac_header_compiler:$ac_header_preproc in
20178 yes:no )
a848cd7e
SC
20179 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20180echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
20181 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20182echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20183 (
20184 cat <<\_ASBOX
20185## ------------------------------------ ##
20186## Report this to bug-autoconf@gnu.org. ##
20187## ------------------------------------ ##
20188_ASBOX
20189 ) |
20190 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 20191 ;;
de59c161 20192 no:yes )
a848cd7e
SC
20193 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20194echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
de59c161
RD
20195 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20196echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
20197 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20198echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
20199 (
20200 cat <<\_ASBOX
de59c161
RD
20201## ------------------------------------ ##
20202## Report this to bug-autoconf@gnu.org. ##
20203## ------------------------------------ ##
a848cd7e
SC
20204_ASBOX
20205 ) |
20206 sed "s/^/$as_me: WARNING: /" >&2
20207 ;;
20208esac
20209echo "$as_me:$LINENO: checking for tiffio.h" >&5
20210echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20211if test "${ac_cv_header_tiffio_h+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213else
20214 ac_cv_header_tiffio_h=$ac_header_preproc
20215fi
20216echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20217echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20218
20219fi
20220if test $ac_cv_header_tiffio_h = yes; then
20221
20222 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20223echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20224if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20226else
20227 ac_check_lib_save_LIBS=$LIBS
20228LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20229cat >conftest.$ac_ext <<_ACEOF
de59c161 20230#line $LINENO "configure"
a848cd7e
SC
20231/* confdefs.h. */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h. */
20236
20237/* Override any gcc2 internal prototype to avoid an error. */
20238#ifdef __cplusplus
20239extern "C"
20240#endif
20241/* We use char because int might match the return type of a gcc2
20242 builtin and then its argument prototype would still apply. */
20243char TIFFError ();
20244int
20245main ()
20246{
20247TIFFError ();
20248 ;
20249 return 0;
20250}
20251_ACEOF
20252rm -f conftest.$ac_objext conftest$ac_exeext
20253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 20254 (eval $ac_link) 2>&5
a848cd7e 20255 ac_status=$?
a848cd7e
SC
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
de59c161 20258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; }; then
20264 ac_cv_lib_tiff_TIFFError=yes
20265else
20266 echo "$as_me: failed program was:" >&5
20267sed 's/^/| /' conftest.$ac_ext >&5
20268
20269ac_cv_lib_tiff_TIFFError=no
20270fi
de59c161 20271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20272LIBS=$ac_check_lib_save_LIBS
20273fi
20274echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20275echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20276if test $ac_cv_lib_tiff_TIFFError = yes; then
20277 TIFF_LINK=" -ltiff"
20278fi
20279
20280
20281
20282fi
20283
20284
20285
20286 if test "x$TIFF_LINK" = "x" ; then
20287 if test "$wxUSE_LIBTIFF" = "sys" ; then
20288 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20289echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20290 { (exit 1); exit 1; }; }
20291 else
20292 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20293echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20294 wxUSE_LIBTIFF=builtin
20295 fi
20296 else
20297 wxUSE_LIBTIFF=sys
20298 fi
20299 fi
20300fi
20301
20302
20303if test "$wxUSE_EXPAT" != "no"; then
20304 wxUSE_XML=yes
20305 cat >>confdefs.h <<\_ACEOF
20306#define wxUSE_EXPAT 1
20307_ACEOF
20308
20309 cat >>confdefs.h <<\_ACEOF
20310#define wxUSE_XML 1
20311_ACEOF
20312
20313
20314 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20315 if test "${ac_cv_header_expat_h+set}" = set; then
20316 echo "$as_me:$LINENO: checking for expat.h" >&5
20317echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20318if test "${ac_cv_header_expat_h+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320fi
20321echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20322echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20323else
20324 # Is the header compilable?
20325echo "$as_me:$LINENO: checking expat.h usability" >&5
20326echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20327cat >conftest.$ac_ext <<_ACEOF
de59c161 20328#line $LINENO "configure"
a848cd7e
SC
20329/* confdefs.h. */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
20333/* end confdefs.h. */
20334$ac_includes_default
20335#include <expat.h>
20336_ACEOF
20337rm -f conftest.$ac_objext
20338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 20339 (eval $ac_compile) 2>&5
a848cd7e 20340 ac_status=$?
a848cd7e
SC
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
de59c161 20343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_header_compiler=yes
20350else
20351 echo "$as_me: failed program was:" >&5
20352sed 's/^/| /' conftest.$ac_ext >&5
20353
20354ac_header_compiler=no
20355fi
de59c161 20356rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20357echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20358echo "${ECHO_T}$ac_header_compiler" >&6
20359
20360# Is the header present?
20361echo "$as_me:$LINENO: checking expat.h presence" >&5
20362echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20363cat >conftest.$ac_ext <<_ACEOF
de59c161 20364#line $LINENO "configure"
a848cd7e
SC
20365/* confdefs.h. */
20366_ACEOF
20367cat confdefs.h >>conftest.$ac_ext
20368cat >>conftest.$ac_ext <<_ACEOF
20369/* end confdefs.h. */
20370#include <expat.h>
20371_ACEOF
20372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20374 ac_status=$?
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } >/dev/null; then
20380 if test -s conftest.err; then
20381 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
20382 else
20383 ac_cpp_err=
20384 fi
20385else
20386 ac_cpp_err=yes
20387fi
20388if test -z "$ac_cpp_err"; then
20389 ac_header_preproc=yes
20390else
20391 echo "$as_me: failed program was:" >&5
20392sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_header_preproc=no
20395fi
20396rm -f conftest.err conftest.$ac_ext
20397echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398echo "${ECHO_T}$ac_header_preproc" >&6
20399
20400# So? What about this header?
de59c161
RD
20401case $ac_header_compiler:$ac_header_preproc in
20402 yes:no )
a848cd7e
SC
20403 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20404echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
20405 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20406echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20407 (
20408 cat <<\_ASBOX
20409## ------------------------------------ ##
20410## Report this to bug-autoconf@gnu.org. ##
20411## ------------------------------------ ##
20412_ASBOX
20413 ) |
20414 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 20415 ;;
de59c161 20416 no:yes )
a848cd7e
SC
20417 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20418echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
de59c161
RD
20419 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20420echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
20421 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20422echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
20423 (
20424 cat <<\_ASBOX
de59c161
RD
20425## ------------------------------------ ##
20426## Report this to bug-autoconf@gnu.org. ##
20427## ------------------------------------ ##
a848cd7e
SC
20428_ASBOX
20429 ) |
20430 sed "s/^/$as_me: WARNING: /" >&2
20431 ;;
20432esac
20433echo "$as_me:$LINENO: checking for expat.h" >&5
20434echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20435if test "${ac_cv_header_expat_h+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437else
20438 ac_cv_header_expat_h=$ac_header_preproc
20439fi
20440echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20441echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20442
20443fi
20444if test $ac_cv_header_expat_h = yes; then
20445 found_expat_h=1
20446fi
20447
20448
20449 if test "x$found_expat_h" = "x1"; then
20450 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20451echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20452if test "${wx_cv_expat_is_not_broken+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454else
20455
20456
20457
20458 ac_ext=cc
20459ac_cpp='$CXXCPP $CPPFLAGS'
20460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20463
20464 cat >conftest.$ac_ext <<_ACEOF
de59c161 20465#line $LINENO "configure"
a848cd7e
SC
20466/* confdefs.h. */
20467_ACEOF
20468cat confdefs.h >>conftest.$ac_ext
20469cat >>conftest.$ac_ext <<_ACEOF
20470/* end confdefs.h. */
20471#include <expat.h>
20472int
20473main ()
20474{
20475
20476 ;
20477 return 0;
20478}
20479_ACEOF
20480rm -f conftest.$ac_objext
20481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 20482 (eval $ac_compile) 2>&5
a848cd7e 20483 ac_status=$?
a848cd7e
SC
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
de59c161 20486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 wx_cv_expat_is_not_broken=yes
20493else
20494 echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497wx_cv_expat_is_not_broken=no
20498
20499fi
de59c161 20500rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20501 ac_ext=c
20502ac_cpp='$CPP $CPPFLAGS'
20503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505ac_compiler_gnu=$ac_cv_c_compiler_gnu
20506
20507
20508
20509fi
20510echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20511echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20512 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20513 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
20514echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20515if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517else
20518 ac_check_lib_save_LIBS=$LIBS
20519LIBS="-lexpat $LIBS"
20520cat >conftest.$ac_ext <<_ACEOF
de59c161 20521#line $LINENO "configure"
a848cd7e
SC
20522/* confdefs.h. */
20523_ACEOF
20524cat confdefs.h >>conftest.$ac_ext
20525cat >>conftest.$ac_ext <<_ACEOF
20526/* end confdefs.h. */
20527
20528/* Override any gcc2 internal prototype to avoid an error. */
20529#ifdef __cplusplus
20530extern "C"
20531#endif
20532/* We use char because int might match the return type of a gcc2
20533 builtin and then its argument prototype would still apply. */
20534char XML_ParserCreate ();
20535int
20536main ()
20537{
20538XML_ParserCreate ();
20539 ;
20540 return 0;
20541}
20542_ACEOF
20543rm -f conftest.$ac_objext conftest$ac_exeext
20544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 20545 (eval $ac_link) 2>&5
a848cd7e 20546 ac_status=$?
a848cd7e
SC
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
de59c161 20549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_lib_expat_XML_ParserCreate=yes
20556else
20557 echo "$as_me: failed program was:" >&5
20558sed 's/^/| /' conftest.$ac_ext >&5
20559
20560ac_cv_lib_expat_XML_ParserCreate=no
20561fi
de59c161 20562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20563LIBS=$ac_check_lib_save_LIBS
20564fi
20565echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20566echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20567if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20568 EXPAT_LINK=" -lexpat"
20569fi
20570
20571 fi
20572 fi
20573 if test "x$EXPAT_LINK" = "x" ; then
20574 if test "$wxUSE_EXPAT" = "sys" ; then
20575 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20576echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20577 { (exit 1); exit 1; }; }
20578 else
20579 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20580echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20581 wxUSE_EXPAT=builtin
20582 fi
20583 else
20584 wxUSE_EXPAT=sys
20585 fi
20586 fi
20587 if test "$wxUSE_EXPAT" = "builtin" ; then
20588
20589
20590subdirs="$subdirs src/expat"
20591
20592 fi
20593fi
20594
20595
20596
20597if test "$wxUSE_LIBMSPACK" != "no"; then
20598
20599 if test "${ac_cv_header_mspack_h+set}" = set; then
20600 echo "$as_me:$LINENO: checking for mspack.h" >&5
20601echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20602if test "${ac_cv_header_mspack_h+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20604fi
20605echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20606echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20607else
20608 # Is the header compilable?
20609echo "$as_me:$LINENO: checking mspack.h usability" >&5
20610echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20611cat >conftest.$ac_ext <<_ACEOF
de59c161 20612#line $LINENO "configure"
a848cd7e
SC
20613/* confdefs.h. */
20614_ACEOF
20615cat confdefs.h >>conftest.$ac_ext
20616cat >>conftest.$ac_ext <<_ACEOF
20617/* end confdefs.h. */
20618$ac_includes_default
20619#include <mspack.h>
20620_ACEOF
20621rm -f conftest.$ac_objext
20622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 20623 (eval $ac_compile) 2>&5
a848cd7e 20624 ac_status=$?
a848cd7e
SC
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } &&
de59c161 20627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 ac_header_compiler=yes
20634else
20635 echo "$as_me: failed program was:" >&5
20636sed 's/^/| /' conftest.$ac_ext >&5
20637
20638ac_header_compiler=no
20639fi
de59c161 20640rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20642echo "${ECHO_T}$ac_header_compiler" >&6
20643
20644# Is the header present?
20645echo "$as_me:$LINENO: checking mspack.h presence" >&5
20646echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20647cat >conftest.$ac_ext <<_ACEOF
de59c161 20648#line $LINENO "configure"
a848cd7e
SC
20649/* confdefs.h. */
20650_ACEOF
20651cat confdefs.h >>conftest.$ac_ext
20652cat >>conftest.$ac_ext <<_ACEOF
20653/* end confdefs.h. */
20654#include <mspack.h>
20655_ACEOF
20656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20658 ac_status=$?
20659 grep -v '^ *+' conftest.er1 >conftest.err
20660 rm -f conftest.er1
20661 cat conftest.err >&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } >/dev/null; then
20664 if test -s conftest.err; then
20665 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
20666 else
20667 ac_cpp_err=
20668 fi
20669else
20670 ac_cpp_err=yes
20671fi
20672if test -z "$ac_cpp_err"; then
20673 ac_header_preproc=yes
20674else
20675 echo "$as_me: failed program was:" >&5
20676sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 ac_header_preproc=no
20679fi
20680rm -f conftest.err conftest.$ac_ext
20681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20682echo "${ECHO_T}$ac_header_preproc" >&6
20683
20684# So? What about this header?
de59c161
RD
20685case $ac_header_compiler:$ac_header_preproc in
20686 yes:no )
a848cd7e
SC
20687 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20688echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
20689 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20690echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20691 (
20692 cat <<\_ASBOX
20693## ------------------------------------ ##
20694## Report this to bug-autoconf@gnu.org. ##
20695## ------------------------------------ ##
20696_ASBOX
20697 ) |
20698 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 20699 ;;
de59c161 20700 no:yes )
a848cd7e
SC
20701 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20702echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
de59c161
RD
20703 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20704echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
20705 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20706echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
20707 (
20708 cat <<\_ASBOX
de59c161
RD
20709## ------------------------------------ ##
20710## Report this to bug-autoconf@gnu.org. ##
20711## ------------------------------------ ##
a848cd7e
SC
20712_ASBOX
20713 ) |
20714 sed "s/^/$as_me: WARNING: /" >&2
20715 ;;
20716esac
20717echo "$as_me:$LINENO: checking for mspack.h" >&5
20718echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20719if test "${ac_cv_header_mspack_h+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20721else
20722 ac_cv_header_mspack_h=$ac_header_preproc
20723fi
20724echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20725echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20726
20727fi
20728if test $ac_cv_header_mspack_h = yes; then
20729 found_mspack_h=1
20730fi
20731
20732
20733 if test "x$found_mspack_h" = "x1"; then
20734 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20735echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20736if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738else
20739 ac_check_lib_save_LIBS=$LIBS
20740LIBS="-lmspack $LIBS"
20741cat >conftest.$ac_ext <<_ACEOF
de59c161 20742#line $LINENO "configure"
a848cd7e
SC
20743/* confdefs.h. */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
20747/* end confdefs.h. */
20748
20749/* Override any gcc2 internal prototype to avoid an error. */
20750#ifdef __cplusplus
20751extern "C"
20752#endif
20753/* We use char because int might match the return type of a gcc2
20754 builtin and then its argument prototype would still apply. */
20755char mspack_create_chm_decompressor ();
20756int
20757main ()
20758{
20759mspack_create_chm_decompressor ();
20760 ;
20761 return 0;
20762}
20763_ACEOF
20764rm -f conftest.$ac_objext conftest$ac_exeext
20765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 20766 (eval $ac_link) 2>&5
a848cd7e 20767 ac_status=$?
a848cd7e
SC
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
de59c161 20770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20777else
20778 echo "$as_me: failed program was:" >&5
20779sed 's/^/| /' conftest.$ac_ext >&5
20780
20781ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20782fi
de59c161 20783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20784LIBS=$ac_check_lib_save_LIBS
20785fi
20786echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20787echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20788if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20789 MSPACK_LINK=" -lmspack"
20790fi
20791
20792 fi
20793 if test "x$MSPACK_LINK" = "x" ; then
20794 wxUSE_LIBMSPACK=no
20795 else
20796 cat >>confdefs.h <<\_ACEOF
20797#define wxUSE_LIBMSPACK 1
20798_ACEOF
20799
20800 fi
20801fi
20802
20803
20804
20805AFMINSTALL=
20806WIN32INSTALL=
20807
20808TOOLKIT=
20809TOOLKIT_INCLUDE=
20810WIDGET_SET=
20811
20812if test "$USE_WIN32" = 1 ; then
20813
20814for ac_header in w32api.h
20815do
20816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20817if eval "test \"\${$as_ac_Header+set}\" = set"; then
20818 echo "$as_me:$LINENO: checking for $ac_header" >&5
20819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20820if eval "test \"\${$as_ac_Header+set}\" = set"; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20822fi
20823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20825else
20826 # Is the header compilable?
20827echo "$as_me:$LINENO: checking $ac_header usability" >&5
20828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20829cat >conftest.$ac_ext <<_ACEOF
de59c161 20830#line $LINENO "configure"
a848cd7e
SC
20831/* confdefs.h. */
20832_ACEOF
20833cat confdefs.h >>conftest.$ac_ext
20834cat >>conftest.$ac_ext <<_ACEOF
20835/* end confdefs.h. */
20836$ac_includes_default
20837#include <$ac_header>
20838_ACEOF
20839rm -f conftest.$ac_objext
20840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 20841 (eval $ac_compile) 2>&5
a848cd7e 20842 ac_status=$?
a848cd7e
SC
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
de59c161 20845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 ac_header_compiler=yes
20852else
20853 echo "$as_me: failed program was:" >&5
20854sed 's/^/| /' conftest.$ac_ext >&5
20855
20856ac_header_compiler=no
20857fi
de59c161 20858rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20859echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20860echo "${ECHO_T}$ac_header_compiler" >&6
20861
20862# Is the header present?
20863echo "$as_me:$LINENO: checking $ac_header presence" >&5
20864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20865cat >conftest.$ac_ext <<_ACEOF
de59c161 20866#line $LINENO "configure"
a848cd7e
SC
20867/* confdefs.h. */
20868_ACEOF
20869cat confdefs.h >>conftest.$ac_ext
20870cat >>conftest.$ac_ext <<_ACEOF
20871/* end confdefs.h. */
20872#include <$ac_header>
20873_ACEOF
20874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } >/dev/null; then
20882 if test -s conftest.err; then
20883 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
20884 else
20885 ac_cpp_err=
20886 fi
20887else
20888 ac_cpp_err=yes
20889fi
20890if test -z "$ac_cpp_err"; then
20891 ac_header_preproc=yes
20892else
20893 echo "$as_me: failed program was:" >&5
20894sed 's/^/| /' conftest.$ac_ext >&5
20895
20896 ac_header_preproc=no
20897fi
20898rm -f conftest.err conftest.$ac_ext
20899echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20900echo "${ECHO_T}$ac_header_preproc" >&6
20901
20902# So? What about this header?
de59c161
RD
20903case $ac_header_compiler:$ac_header_preproc in
20904 yes:no )
a848cd7e
SC
20905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
20907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20909 (
20910 cat <<\_ASBOX
20911## ------------------------------------ ##
20912## Report this to bug-autoconf@gnu.org. ##
20913## ------------------------------------ ##
20914_ASBOX
20915 ) |
20916 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 20917 ;;
de59c161 20918 no:yes )
a848cd7e
SC
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
20921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
20925 (
20926 cat <<\_ASBOX
de59c161
RD
20927## ------------------------------------ ##
20928## Report this to bug-autoconf@gnu.org. ##
20929## ------------------------------------ ##
a848cd7e
SC
20930_ASBOX
20931 ) |
20932 sed "s/^/$as_me: WARNING: /" >&2
20933 ;;
20934esac
20935echo "$as_me:$LINENO: checking for $ac_header" >&5
20936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20937if eval "test \"\${$as_ac_Header+set}\" = set"; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20939else
de59c161 20940 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
20941fi
20942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20944
20945fi
20946if test `eval echo '${'$as_ac_Header'}'` = yes; then
20947 cat >>confdefs.h <<_ACEOF
20948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20949_ACEOF
20950
20951fi
20952
20953done
20954
20955 if test "${ac_cv_header_windows_h+set}" = set; then
20956 echo "$as_me:$LINENO: checking for windows.h" >&5
20957echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20958if test "${ac_cv_header_windows_h+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960fi
20961echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20962echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20963else
20964 # Is the header compilable?
20965echo "$as_me:$LINENO: checking windows.h usability" >&5
20966echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20967cat >conftest.$ac_ext <<_ACEOF
de59c161 20968#line $LINENO "configure"
a848cd7e
SC
20969/* confdefs.h. */
20970_ACEOF
20971cat confdefs.h >>conftest.$ac_ext
20972cat >>conftest.$ac_ext <<_ACEOF
20973/* end confdefs.h. */
20974$ac_includes_default
20975#include <windows.h>
20976_ACEOF
20977rm -f conftest.$ac_objext
20978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 20979 (eval $ac_compile) 2>&5
a848cd7e 20980 ac_status=$?
a848cd7e
SC
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
de59c161 20983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }; then
20989 ac_header_compiler=yes
20990else
20991 echo "$as_me: failed program was:" >&5
20992sed 's/^/| /' conftest.$ac_ext >&5
20993
20994ac_header_compiler=no
20995fi
de59c161 20996rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20998echo "${ECHO_T}$ac_header_compiler" >&6
20999
21000# Is the header present?
21001echo "$as_me:$LINENO: checking windows.h presence" >&5
21002echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21003cat >conftest.$ac_ext <<_ACEOF
de59c161 21004#line $LINENO "configure"
a848cd7e
SC
21005/* confdefs.h. */
21006_ACEOF
21007cat confdefs.h >>conftest.$ac_ext
21008cat >>conftest.$ac_ext <<_ACEOF
21009/* end confdefs.h. */
21010#include <windows.h>
21011_ACEOF
21012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21014 ac_status=$?
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } >/dev/null; then
21020 if test -s conftest.err; then
21021 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
21022 else
21023 ac_cpp_err=
21024 fi
21025else
21026 ac_cpp_err=yes
21027fi
21028if test -z "$ac_cpp_err"; then
21029 ac_header_preproc=yes
21030else
21031 echo "$as_me: failed program was:" >&5
21032sed 's/^/| /' conftest.$ac_ext >&5
21033
21034 ac_header_preproc=no
21035fi
21036rm -f conftest.err conftest.$ac_ext
21037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21038echo "${ECHO_T}$ac_header_preproc" >&6
21039
21040# So? What about this header?
de59c161
RD
21041case $ac_header_compiler:$ac_header_preproc in
21042 yes:no )
a848cd7e
SC
21043 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21044echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
21045 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21046echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21047 (
21048 cat <<\_ASBOX
21049## ------------------------------------ ##
21050## Report this to bug-autoconf@gnu.org. ##
21051## ------------------------------------ ##
21052_ASBOX
21053 ) |
21054 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 21055 ;;
de59c161 21056 no:yes )
a848cd7e
SC
21057 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21058echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
de59c161
RD
21059 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21060echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
21061 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21062echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
21063 (
21064 cat <<\_ASBOX
de59c161
RD
21065## ------------------------------------ ##
21066## Report this to bug-autoconf@gnu.org. ##
21067## ------------------------------------ ##
a848cd7e
SC
21068_ASBOX
21069 ) |
21070 sed "s/^/$as_me: WARNING: /" >&2
21071 ;;
21072esac
21073echo "$as_me:$LINENO: checking for windows.h" >&5
21074echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21075if test "${ac_cv_header_windows_h+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077else
21078 ac_cv_header_windows_h=$ac_header_preproc
21079fi
21080echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21081echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21082
21083fi
21084if test $ac_cv_header_windows_h = yes; then
21085 :
21086else
21087
21088 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21089echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21090 { (exit 1); exit 1; }; }
21091
21092fi
21093
21094
21095
21096 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21097
21098 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21099 LIBS="$LIBS -loleacc"
21100 fi
21101
21102 case "${host}" in
21103 *-*-cygwin* )
21104 LIBS="$LIBS -lkernel32 -luser32"
21105 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21106 esac
21107
21108 if test "$wxUSE_ODBC" = "sys" ; then
21109 wxUSE_ODBC = "yes"
21110 fi
21111 if test "$wxUSE_ODBC" = "yes" ; then
21112 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21113 cat >>confdefs.h <<\_ACEOF
21114#define wxUSE_ODBC 1
21115_ACEOF
21116
21117 fi
21118
21119 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21120 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21121
21122 WIN32INSTALL=win32install
21123fi
21124
21125if test "$wxUSE_GUI" = "yes"; then
21126 USE_GUI=1
21127
21128 GUI_TK_LIBRARY=
21129
21130 WXGTK12=
21131 WXGTK127=
21132 WXGTK20=
21133 WXGPE=
21134
21135 if test "$wxUSE_MSW" = 1 ; then
21136 TOOLKIT=MSW
21137 GUIDIST=MSW_DIST
21138
21139 case "${host}" in
21140 *-*-mingw32* )
21141 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21142 esac
21143 fi
21144
21145 if test "$wxUSE_GTK" = 1; then
21146 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21147echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21148
21149 gtk_version_cached=1
21150 if test "${wx_cv_lib_gtk+set}" = set; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21152else
21153
21154 gtk_version_cached=0
21155 echo "$as_me:$LINENO: result: " >&5
21156echo "${ECHO_T}" >&6
21157
21158 GTK_MODULES=
21159 if test "$wxUSE_THREADS" = "yes"; then
21160 GTK_MODULES=gthread
21161 fi
21162
21163 wx_cv_lib_gtk=
21164 if test "x$wxUSE_GTK2" = "xyes"; then
21165 # Check whether --enable-gtktest or --disable-gtktest was given.
21166if test "${enable_gtktest+set}" = set; then
21167 enableval="$enable_gtktest"
21168
21169else
21170 enable_gtktest=yes
21171fi;
21172
21173 pkg_config_args=gtk+-2.0
21174 for module in . $GTK_MODULES
21175 do
21176 case "$module" in
21177 gthread)
21178 pkg_config_args="$pkg_config_args gthread-2.0"
21179 ;;
21180 esac
21181 done
21182
21183 no_gtk=""
21184
21185 # Extract the first word of "pkg-config", so it can be a program name with args.
21186set dummy pkg-config; ac_word=$2
21187echo "$as_me:$LINENO: checking for $ac_word" >&5
21188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21189if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191else
21192 case $PKG_CONFIG in
21193 [\\/]* | ?:[\\/]*)
21194 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21195 ;;
21196 *)
21197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21198for as_dir in $PATH
21199do
21200 IFS=$as_save_IFS
21201 test -z "$as_dir" && as_dir=.
21202 for ac_exec_ext in '' $ac_executable_extensions; do
21203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21204 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21206 break 2
21207 fi
21208done
21209done
21210
21211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21212 ;;
21213esac
21214fi
21215PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21216
21217if test -n "$PKG_CONFIG"; then
21218 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21219echo "${ECHO_T}$PKG_CONFIG" >&6
21220else
21221 echo "$as_me:$LINENO: result: no" >&5
21222echo "${ECHO_T}no" >&6
21223fi
21224
21225
21226 if test x$PKG_CONFIG != xno ; then
21227 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21228 :
21229 else
c2218763 21230 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
21231 no_gtk=yes
21232 PKG_CONFIG=no
21233 fi
21234 else
21235 no_gtk=yes
21236 fi
21237
21238 min_gtk_version=2.0.0
21239 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21240echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21241
21242 if test x$PKG_CONFIG != xno ; then
21243 ## don't try to run the test against uninstalled libtool libs
21244 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21245 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21246 enable_gtktest=no
21247 fi
21248
21249 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21250 :
21251 else
21252 no_gtk=yes
21253 fi
21254 fi
21255
21256 if test x"$no_gtk" = x ; then
21257 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21258 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21259 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21260 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21261 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21262 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21263 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21264 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21265 if test "x$enable_gtktest" = "xyes" ; then
21266 ac_save_CFLAGS="$CFLAGS"
21267 ac_save_LIBS="$LIBS"
21268 CFLAGS="$CFLAGS $GTK_CFLAGS"
21269 LIBS="$GTK_LIBS $LIBS"
21270 rm -f conf.gtktest
21271 if test "$cross_compiling" = yes; then
21272 echo $ac_n "cross compiling; assumed OK... $ac_c"
21273else
21274 cat >conftest.$ac_ext <<_ACEOF
de59c161 21275#line $LINENO "configure"
a848cd7e
SC
21276/* confdefs.h. */
21277_ACEOF
21278cat confdefs.h >>conftest.$ac_ext
21279cat >>conftest.$ac_ext <<_ACEOF
21280/* end confdefs.h. */
21281
21282#include <gtk/gtk.h>
21283#include <stdio.h>
21284#include <stdlib.h>
21285
21286int
21287main ()
21288{
21289 int major, minor, micro;
21290 char *tmp_version;
21291
21292 system ("touch conf.gtktest");
21293
21294 /* HP/UX 9 (%@#!) writes to sscanf strings */
21295 tmp_version = g_strdup("$min_gtk_version");
21296 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21297 printf("%s, bad version string\n", "$min_gtk_version");
21298 exit(1);
21299 }
21300
21301 if ((gtk_major_version != $gtk_config_major_version) ||
21302 (gtk_minor_version != $gtk_config_minor_version) ||
21303 (gtk_micro_version != $gtk_config_micro_version))
21304 {
21305 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21306 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21307 gtk_major_version, gtk_minor_version, gtk_micro_version);
21308 printf ("*** was found! If pkg-config was correct, then it is best\n");
21309 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21310 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21311 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21312 printf("*** required on your system.\n");
21313 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21314 printf("*** to point to the correct configuration files\n");
21315 }
21316 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21317 (gtk_minor_version != GTK_MINOR_VERSION) ||
21318 (gtk_micro_version != GTK_MICRO_VERSION))
21319 {
21320 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21321 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21322 printf("*** library (version %d.%d.%d)\n",
21323 gtk_major_version, gtk_minor_version, gtk_micro_version);
21324 }
21325 else
21326 {
21327 if ((gtk_major_version > major) ||
21328 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21329 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21330 {
21331 return 0;
21332 }
21333 else
21334 {
21335 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21336 gtk_major_version, gtk_minor_version, gtk_micro_version);
21337 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21338 major, minor, micro);
21339 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21340 printf("***\n");
21341 printf("*** If you have already installed a sufficiently new version, this error\n");
21342 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21343 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21344 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21345 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21346 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21347 printf("*** so that the correct libraries are found at run-time))\n");
21348 }
21349 }
21350 return 1;
21351}
21352
21353_ACEOF
21354rm -f conftest$ac_exeext
21355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21356 (eval $ac_link) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; }; then
21365 :
21366else
21367 echo "$as_me: program exited with status $ac_status" >&5
21368echo "$as_me: failed program was:" >&5
21369sed 's/^/| /' conftest.$ac_ext >&5
21370
21371( exit $ac_status )
21372no_gtk=yes
21373fi
de59c161 21374rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21375fi
21376 CFLAGS="$ac_save_CFLAGS"
21377 LIBS="$ac_save_LIBS"
21378 fi
21379 fi
21380 if test "x$no_gtk" = x ; then
21381 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21382echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21383 wx_cv_lib_gtk=2.0
21384 else
21385 echo "$as_me:$LINENO: result: no" >&5
21386echo "${ECHO_T}no" >&6
21387 if test "$PKG_CONFIG" = "no" ; then
21388 echo "*** A new enough version of pkg-config was not found."
21389 echo "*** See http://pkgconfig.sourceforge.net"
21390 else
21391 if test -f conf.gtktest ; then
21392 :
21393 else
21394 echo "*** Could not run GTK+ test program, checking why..."
21395 ac_save_CFLAGS="$CFLAGS"
21396 ac_save_LIBS="$LIBS"
21397 CFLAGS="$CFLAGS $GTK_CFLAGS"
21398 LIBS="$LIBS $GTK_LIBS"
21399 cat >conftest.$ac_ext <<_ACEOF
de59c161 21400#line $LINENO "configure"
a848cd7e
SC
21401/* confdefs.h. */
21402_ACEOF
21403cat confdefs.h >>conftest.$ac_ext
21404cat >>conftest.$ac_ext <<_ACEOF
21405/* end confdefs.h. */
21406
21407#include <gtk/gtk.h>
21408#include <stdio.h>
21409
21410int
21411main ()
21412{
21413 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21414 ;
21415 return 0;
21416}
21417_ACEOF
21418rm -f conftest.$ac_objext conftest$ac_exeext
21419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 21420 (eval $ac_link) 2>&5
a848cd7e 21421 ac_status=$?
a848cd7e
SC
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } &&
de59c161 21424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 echo "*** The test program compiled, but did not run. This usually means"
21431 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21432 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21433 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21434 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21435 echo "*** is required on your system"
21436 echo "***"
21437 echo "*** If you have an old version installed, it is best to remove it, although"
21438 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21439else
21440 echo "$as_me: failed program was:" >&5
21441sed 's/^/| /' conftest.$ac_ext >&5
21442
21443 echo "*** The test program failed to compile or link. See the file config.log for the"
21444 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
21445fi
de59c161 21446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21447 CFLAGS="$ac_save_CFLAGS"
21448 LIBS="$ac_save_LIBS"
21449 fi
21450 fi
21451 GTK_CFLAGS=""
21452 GTK_LIBS=""
21453 :
21454 fi
21455
21456
21457 rm -f conf.gtktest
21458
21459 else
21460
21461# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21462if test "${with_gtk_prefix+set}" = set; then
21463 withval="$with_gtk_prefix"
21464 gtk_config_prefix="$withval"
21465else
21466 gtk_config_prefix=""
21467fi;
21468
21469# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21470if test "${with_gtk_exec_prefix+set}" = set; then
21471 withval="$with_gtk_exec_prefix"
21472 gtk_config_exec_prefix="$withval"
21473else
21474 gtk_config_exec_prefix=""
21475fi;
21476# Check whether --enable-gtktest or --disable-gtktest was given.
21477if test "${enable_gtktest+set}" = set; then
21478 enableval="$enable_gtktest"
21479
21480else
21481 enable_gtktest=yes
21482fi;
21483
21484 for module in . $GTK_MODULES
21485 do
21486 case "$module" in
21487 gthread)
21488 gtk_config_args="$gtk_config_args gthread"
21489 ;;
21490 esac
21491 done
21492
21493 if test x$gtk_config_exec_prefix != x ; then
21494 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21495 if test x${GTK_CONFIG+set} != xset ; then
21496 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21497 fi
21498 fi
21499 if test x$gtk_config_prefix != x ; then
21500 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21501 if test x${GTK_CONFIG+set} != xset ; then
21502 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21503 fi
21504 fi
21505
21506 # Extract the first word of "gtk-config", so it can be a program name with args.
21507set dummy gtk-config; ac_word=$2
21508echo "$as_me:$LINENO: checking for $ac_word" >&5
21509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21510if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21512else
21513 case $GTK_CONFIG in
21514 [\\/]* | ?:[\\/]*)
21515 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21516 ;;
21517 *)
21518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21519for as_dir in $PATH
21520do
21521 IFS=$as_save_IFS
21522 test -z "$as_dir" && as_dir=.
21523 for ac_exec_ext in '' $ac_executable_extensions; do
21524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21525 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21527 break 2
21528 fi
21529done
21530done
21531
21532 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21533 ;;
21534esac
21535fi
21536GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21537
21538if test -n "$GTK_CONFIG"; then
21539 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21540echo "${ECHO_T}$GTK_CONFIG" >&6
21541else
21542 echo "$as_me:$LINENO: result: no" >&5
21543echo "${ECHO_T}no" >&6
21544fi
21545
21546 min_gtk_version=1.2.7
21547 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21548echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21549 no_gtk=""
21550 if test "$GTK_CONFIG" = "no" ; then
21551 no_gtk=yes
21552 else
21553 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21554 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21555 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21556 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21557 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21558 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21559 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21560 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21561 if test "x$enable_gtktest" = "xyes" ; then
21562 ac_save_CFLAGS="$CFLAGS"
21563 ac_save_LIBS="$LIBS"
21564 CFLAGS="$CFLAGS $GTK_CFLAGS"
21565 LIBS="$GTK_LIBS $LIBS"
21566 rm -f conf.gtktest
21567 if test "$cross_compiling" = yes; then
21568 echo $ac_n "cross compiling; assumed OK... $ac_c"
21569else
21570 cat >conftest.$ac_ext <<_ACEOF
de59c161 21571#line $LINENO "configure"
a848cd7e
SC
21572/* confdefs.h. */
21573_ACEOF
21574cat confdefs.h >>conftest.$ac_ext
21575cat >>conftest.$ac_ext <<_ACEOF
21576/* end confdefs.h. */
21577
21578#include <gtk/gtk.h>
21579#include <stdio.h>
21580#include <stdlib.h>
21581
21582int
21583main ()
21584{
21585 int major, minor, micro;
21586 char *tmp_version;
21587
21588 system ("touch conf.gtktest");
21589
21590 /* HP/UX 9 (%@#!) writes to sscanf strings */
21591 tmp_version = g_strdup("$min_gtk_version");
21592 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21593 printf("%s, bad version string\n", "$min_gtk_version");
21594 exit(1);
21595 }
21596
21597 if ((gtk_major_version != $gtk_config_major_version) ||
21598 (gtk_minor_version != $gtk_config_minor_version) ||
21599 (gtk_micro_version != $gtk_config_micro_version))
21600 {
21601 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21602 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21603 gtk_major_version, gtk_minor_version, gtk_micro_version);
21604 printf ("*** was found! If gtk-config was correct, then it is best\n");
21605 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21606 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21607 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21608 printf("*** required on your system.\n");
21609 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21610 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21611 printf("*** before re-running configure\n");
21612 }
21613#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21614 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21615 (gtk_minor_version != GTK_MINOR_VERSION) ||
21616 (gtk_micro_version != GTK_MICRO_VERSION))
21617 {
21618 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21619 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21620 printf("*** library (version %d.%d.%d)\n",
21621 gtk_major_version, gtk_minor_version, gtk_micro_version);
21622 }
21623#endif /* defined (GTK_MAJOR_VERSION) ... */
21624 else
21625 {
21626 if ((gtk_major_version > major) ||
21627 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21628 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21629 {
21630 return 0;
21631 }
21632 else
21633 {
21634 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21635 gtk_major_version, gtk_minor_version, gtk_micro_version);
21636 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21637 major, minor, micro);
21638 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21639 printf("***\n");
21640 printf("*** If you have already installed a sufficiently new version, this error\n");
21641 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21642 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21643 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21644 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21645 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21646 printf("*** so that the correct libraries are found at run-time))\n");
21647 }
21648 }
21649 return 1;
21650}
21651
21652_ACEOF
21653rm -f conftest$ac_exeext
21654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21655 (eval $ac_link) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664 :
21665else
21666 echo "$as_me: program exited with status $ac_status" >&5
21667echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
21670( exit $ac_status )
21671no_gtk=yes
21672fi
de59c161 21673rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21674fi
21675 CFLAGS="$ac_save_CFLAGS"
21676 LIBS="$ac_save_LIBS"
21677 fi
21678 fi
21679 if test "x$no_gtk" = x ; then
21680 echo "$as_me:$LINENO: result: yes" >&5
21681echo "${ECHO_T}yes" >&6
21682 wx_cv_lib_gtk=1.2.7
21683 else
21684 echo "$as_me:$LINENO: result: no" >&5
21685echo "${ECHO_T}no" >&6
21686 if test "$GTK_CONFIG" = "no" ; then
21687 echo "*** The gtk-config script installed by GTK could not be found"
21688 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21689 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21690 echo "*** full path to gtk-config."
21691 else
21692 if test -f conf.gtktest ; then
21693 :
21694 else
21695 echo "*** Could not run GTK test program, checking why..."
21696 CFLAGS="$CFLAGS $GTK_CFLAGS"
21697 LIBS="$LIBS $GTK_LIBS"
21698 cat >conftest.$ac_ext <<_ACEOF
de59c161 21699#line $LINENO "configure"
a848cd7e
SC
21700/* confdefs.h. */
21701_ACEOF
21702cat confdefs.h >>conftest.$ac_ext
21703cat >>conftest.$ac_ext <<_ACEOF
21704/* end confdefs.h. */
21705
21706#include <gtk/gtk.h>
21707#include <stdio.h>
21708
21709int
21710main ()
21711{
21712 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21713 ;
21714 return 0;
21715}
21716_ACEOF
21717rm -f conftest.$ac_objext conftest$ac_exeext
21718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 21719 (eval $ac_link) 2>&5
a848cd7e 21720 ac_status=$?
a848cd7e
SC
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
de59c161 21723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21726 ac_status=$?
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 echo "*** The test program compiled, but did not run. This usually means"
21730 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21731 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21732 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21733 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21734 echo "*** is required on your system"
21735 echo "***"
21736 echo "*** If you have an old version installed, it is best to remove it, although"
21737 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21738 echo "***"
21739 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21740 echo "*** came with the system with the command"
21741 echo "***"
21742 echo "*** rpm --erase --nodeps gtk gtk-devel"
21743else
21744 echo "$as_me: failed program was:" >&5
21745sed 's/^/| /' conftest.$ac_ext >&5
21746
21747 echo "*** The test program failed to compile or link. See the file config.log for the"
21748 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21749 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
21750 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
21751fi
de59c161 21752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21753 CFLAGS="$ac_save_CFLAGS"
21754 LIBS="$ac_save_LIBS"
21755 fi
21756 fi
21757 GTK_CFLAGS=""
21758 GTK_LIBS=""
21759 :
21760 fi
21761
21762
21763 rm -f conf.gtktest
21764
21765
21766 if test -z "$wx_cv_lib_gtk"; then
21767
21768# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21769if test "${with_gtk_prefix+set}" = set; then
21770 withval="$with_gtk_prefix"
21771 gtk_config_prefix="$withval"
21772else
21773 gtk_config_prefix=""
21774fi;
21775
21776# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21777if test "${with_gtk_exec_prefix+set}" = set; then
21778 withval="$with_gtk_exec_prefix"
21779 gtk_config_exec_prefix="$withval"
21780else
21781 gtk_config_exec_prefix=""
21782fi;
21783# Check whether --enable-gtktest or --disable-gtktest was given.
21784if test "${enable_gtktest+set}" = set; then
21785 enableval="$enable_gtktest"
21786
21787else
21788 enable_gtktest=yes
21789fi;
21790
21791 for module in . $GTK_MODULES
21792 do
21793 case "$module" in
21794 gthread)
21795 gtk_config_args="$gtk_config_args gthread"
21796 ;;
21797 esac
21798 done
21799
21800 if test x$gtk_config_exec_prefix != x ; then
21801 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21802 if test x${GTK_CONFIG+set} != xset ; then
21803 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21804 fi
21805 fi
21806 if test x$gtk_config_prefix != x ; then
21807 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21808 if test x${GTK_CONFIG+set} != xset ; then
21809 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21810 fi
21811 fi
21812
21813 # Extract the first word of "gtk-config", so it can be a program name with args.
21814set dummy gtk-config; ac_word=$2
21815echo "$as_me:$LINENO: checking for $ac_word" >&5
21816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21817if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21819else
21820 case $GTK_CONFIG in
21821 [\\/]* | ?:[\\/]*)
21822 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21823 ;;
21824 *)
21825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21826for as_dir in $PATH
21827do
21828 IFS=$as_save_IFS
21829 test -z "$as_dir" && as_dir=.
21830 for ac_exec_ext in '' $ac_executable_extensions; do
21831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21832 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21834 break 2
21835 fi
21836done
21837done
21838
21839 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21840 ;;
21841esac
21842fi
21843GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21844
21845if test -n "$GTK_CONFIG"; then
21846 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21847echo "${ECHO_T}$GTK_CONFIG" >&6
21848else
21849 echo "$as_me:$LINENO: result: no" >&5
21850echo "${ECHO_T}no" >&6
21851fi
21852
21853 min_gtk_version=1.2.3
21854 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21855echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21856 no_gtk=""
21857 if test "$GTK_CONFIG" = "no" ; then
21858 no_gtk=yes
21859 else
21860 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21861 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21862 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21863 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21864 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21865 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21866 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21867 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21868 if test "x$enable_gtktest" = "xyes" ; then
21869 ac_save_CFLAGS="$CFLAGS"
21870 ac_save_LIBS="$LIBS"
21871 CFLAGS="$CFLAGS $GTK_CFLAGS"
21872 LIBS="$GTK_LIBS $LIBS"
21873 rm -f conf.gtktest
21874 if test "$cross_compiling" = yes; then
21875 echo $ac_n "cross compiling; assumed OK... $ac_c"
21876else
21877 cat >conftest.$ac_ext <<_ACEOF
de59c161 21878#line $LINENO "configure"
a848cd7e
SC
21879/* confdefs.h. */
21880_ACEOF
21881cat confdefs.h >>conftest.$ac_ext
21882cat >>conftest.$ac_ext <<_ACEOF
21883/* end confdefs.h. */
21884
21885#include <gtk/gtk.h>
21886#include <stdio.h>
21887#include <stdlib.h>
21888
21889int
21890main ()
21891{
21892 int major, minor, micro;
21893 char *tmp_version;
21894
21895 system ("touch conf.gtktest");
21896
21897 /* HP/UX 9 (%@#!) writes to sscanf strings */
21898 tmp_version = g_strdup("$min_gtk_version");
21899 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21900 printf("%s, bad version string\n", "$min_gtk_version");
21901 exit(1);
21902 }
21903
21904 if ((gtk_major_version != $gtk_config_major_version) ||
21905 (gtk_minor_version != $gtk_config_minor_version) ||
21906 (gtk_micro_version != $gtk_config_micro_version))
21907 {
21908 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21909 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21910 gtk_major_version, gtk_minor_version, gtk_micro_version);
21911 printf ("*** was found! If gtk-config was correct, then it is best\n");
21912 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21913 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21914 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21915 printf("*** required on your system.\n");
21916 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21917 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21918 printf("*** before re-running configure\n");
21919 }
21920#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21921 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21922 (gtk_minor_version != GTK_MINOR_VERSION) ||
21923 (gtk_micro_version != GTK_MICRO_VERSION))
21924 {
21925 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21926 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21927 printf("*** library (version %d.%d.%d)\n",
21928 gtk_major_version, gtk_minor_version, gtk_micro_version);
21929 }
21930#endif /* defined (GTK_MAJOR_VERSION) ... */
21931 else
21932 {
21933 if ((gtk_major_version > major) ||
21934 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21935 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21936 {
21937 return 0;
21938 }
21939 else
21940 {
21941 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21942 gtk_major_version, gtk_minor_version, gtk_micro_version);
21943 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21944 major, minor, micro);
21945 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21946 printf("***\n");
21947 printf("*** If you have already installed a sufficiently new version, this error\n");
21948 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21949 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21950 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21951 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21952 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21953 printf("*** so that the correct libraries are found at run-time))\n");
21954 }
21955 }
21956 return 1;
21957}
21958
21959_ACEOF
21960rm -f conftest$ac_exeext
21961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21962 (eval $ac_link) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 :
21972else
21973 echo "$as_me: program exited with status $ac_status" >&5
21974echo "$as_me: failed program was:" >&5
21975sed 's/^/| /' conftest.$ac_ext >&5
21976
21977( exit $ac_status )
21978no_gtk=yes
21979fi
de59c161 21980rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21981fi
21982 CFLAGS="$ac_save_CFLAGS"
21983 LIBS="$ac_save_LIBS"
21984 fi
21985 fi
21986 if test "x$no_gtk" = x ; then
21987 echo "$as_me:$LINENO: result: yes" >&5
21988echo "${ECHO_T}yes" >&6
21989 wx_cv_lib_gtk=1.2.3
21990 else
21991 echo "$as_me:$LINENO: result: no" >&5
21992echo "${ECHO_T}no" >&6
21993 if test "$GTK_CONFIG" = "no" ; then
21994 echo "*** The gtk-config script installed by GTK could not be found"
21995 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21996 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21997 echo "*** full path to gtk-config."
21998 else
21999 if test -f conf.gtktest ; then
22000 :
22001 else
22002 echo "*** Could not run GTK test program, checking why..."
22003 CFLAGS="$CFLAGS $GTK_CFLAGS"
22004 LIBS="$LIBS $GTK_LIBS"
22005 cat >conftest.$ac_ext <<_ACEOF
de59c161 22006#line $LINENO "configure"
a848cd7e
SC
22007/* confdefs.h. */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h. */
22012
22013#include <gtk/gtk.h>
22014#include <stdio.h>
22015
22016int
22017main ()
22018{
22019 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22020 ;
22021 return 0;
22022}
22023_ACEOF
22024rm -f conftest.$ac_objext conftest$ac_exeext
22025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 22026 (eval $ac_link) 2>&5
a848cd7e 22027 ac_status=$?
a848cd7e
SC
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } &&
de59c161 22030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036 echo "*** The test program compiled, but did not run. This usually means"
22037 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22038 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22039 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22040 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22041 echo "*** is required on your system"
22042 echo "***"
22043 echo "*** If you have an old version installed, it is best to remove it, although"
22044 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22045 echo "***"
22046 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22047 echo "*** came with the system with the command"
22048 echo "***"
22049 echo "*** rpm --erase --nodeps gtk gtk-devel"
22050else
22051 echo "$as_me: failed program was:" >&5
22052sed 's/^/| /' conftest.$ac_ext >&5
22053
22054 echo "*** The test program failed to compile or link. See the file config.log for the"
22055 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22056 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22057 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22058fi
de59c161 22059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22060 CFLAGS="$ac_save_CFLAGS"
22061 LIBS="$ac_save_LIBS"
22062 fi
22063 fi
22064 GTK_CFLAGS=""
22065 GTK_LIBS=""
22066 :
22067 fi
22068
22069
22070 rm -f conf.gtktest
22071
22072 fi
22073 fi
22074
22075 if test -z "$wx_cv_lib_gtk"; then
22076 wx_cv_lib_gtk=none
22077 else
22078 wx_cv_cflags_gtk=$GTK_CFLAGS
22079 wx_cv_libs_gtk=$GTK_LIBS
22080 fi
22081
22082
22083fi
22084
22085
22086 if test "$gtk_version_cached" = 1; then
22087 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22088echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22089 fi
22090
22091 case "$wx_cv_lib_gtk" in
22092 2.0) WXGTK20=1
22093 TOOLKIT_VERSION=2
22094 ;;
22095 1.2.7) WXGTK127=1
22096 WXGTK12=1
22097 ;;
22098 1.2.3) WXGTK12=1
22099 ;;
22100 *) { { echo "$as_me:$LINENO: error:
22101Please check that gtk-config is in path, the directory
22102where GTK+ libraries are installed (returned by
22103'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22104equivalent variable and GTK+ is version 1.2.3 or above.
22105 " >&5
22106echo "$as_me: error:
22107Please check that gtk-config is in path, the directory
22108where GTK+ libraries are installed (returned by
22109'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22110equivalent variable and GTK+ is version 1.2.3 or above.
22111 " >&2;}
22112 { (exit 1); exit 1; }; }
22113 ;;
22114 esac
22115
22116 if test "$WXGTK20" = 1; then
22117 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22118
22119 succeeded=no
22120
22121 if test -z "$PKG_CONFIG"; then
22122 # Extract the first word of "pkg-config", so it can be a program name with args.
22123set dummy pkg-config; ac_word=$2
22124echo "$as_me:$LINENO: checking for $ac_word" >&5
22125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22126if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22128else
22129 case $PKG_CONFIG in
22130 [\\/]* | ?:[\\/]*)
22131 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22132 ;;
22133 *)
22134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22135for as_dir in $PATH
22136do
22137 IFS=$as_save_IFS
22138 test -z "$as_dir" && as_dir=.
22139 for ac_exec_ext in '' $ac_executable_extensions; do
22140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22141 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22143 break 2
22144 fi
22145done
22146done
22147
22148 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22149 ;;
22150esac
22151fi
22152PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22153
22154if test -n "$PKG_CONFIG"; then
22155 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22156echo "${ECHO_T}$PKG_CONFIG" >&6
22157else
22158 echo "$as_me:$LINENO: result: no" >&5
22159echo "${ECHO_T}no" >&6
22160fi
22161
22162 fi
22163
22164 if test "$PKG_CONFIG" = "no" ; then
22165 echo "*** The pkg-config script could not be found. Make sure it is"
22166 echo "*** in your path, or set the PKG_CONFIG environment variable"
22167 echo "*** to the full path to pkg-config."
22168 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22169 else
22170 PKG_CONFIG_MIN_VERSION=0.9.0
22171 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22172 echo "$as_me:$LINENO: checking for pangoft2" >&5
22173echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22174
22175 if $PKG_CONFIG --exists "pangoft2" ; then
22176 echo "$as_me:$LINENO: result: yes" >&5
22177echo "${ECHO_T}yes" >&6
22178 succeeded=yes
22179
22180 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22181echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22182 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22183 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22184echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22185
22186 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22187echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22188 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22189 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22190echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22191 else
22192 PANGOFT2_CFLAGS=""
22193 PANGOFT2_LIBS=""
22194 ## If we have a custom action on failure, don't print errors, but
22195 ## do set a variable so people can do so.
22196 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22197
22198 fi
22199
22200
22201
22202 else
22203 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22204 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22205 fi
22206 fi
22207
22208 if test $succeeded = yes; then
22209
22210 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22211 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22212
22213 else
22214
22215 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22216echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22217 wxUSE_PRINTING_ARCHITECTURE="no"
22218
22219
22220 fi
22221
22222 fi
22223 else
22224 if test "$wxUSE_UNICODE" = "yes"; then
22225 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22226echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22227 wxUSE_UNICODE=no
22228 fi
22229 fi
22230
22231 if test "$USE_DARWIN" != 1; then
22232
22233for ac_func in poll
22234do
22235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22236echo "$as_me:$LINENO: checking for $ac_func" >&5
22237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22238if eval "test \"\${$as_ac_var+set}\" = set"; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22240else
22241 cat >conftest.$ac_ext <<_ACEOF
de59c161 22242#line $LINENO "configure"
a848cd7e
SC
22243/* confdefs.h. */
22244_ACEOF
22245cat confdefs.h >>conftest.$ac_ext
22246cat >>conftest.$ac_ext <<_ACEOF
22247/* end confdefs.h. */
a848cd7e
SC
22248/* System header to define __stub macros and hopefully few prototypes,
22249 which can conflict with char $ac_func (); below.
22250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22251 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
22252#ifdef __STDC__
22253# include <limits.h>
22254#else
22255# include <assert.h>
22256#endif
a848cd7e
SC
22257/* Override any gcc2 internal prototype to avoid an error. */
22258#ifdef __cplusplus
22259extern "C"
22260{
22261#endif
22262/* We use char because int might match the return type of a gcc2
22263 builtin and then its argument prototype would still apply. */
22264char $ac_func ();
22265/* The GNU C library defines this for functions which it implements
22266 to always fail with ENOSYS. Some functions are actually named
22267 something starting with __ and the normal name is an alias. */
22268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22269choke me
22270#else
22271char (*f) () = $ac_func;
22272#endif
22273#ifdef __cplusplus
22274}
22275#endif
22276
22277int
22278main ()
22279{
22280return f != $ac_func;
22281 ;
22282 return 0;
22283}
22284_ACEOF
22285rm -f conftest.$ac_objext conftest$ac_exeext
22286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 22287 (eval $ac_link) 2>&5
a848cd7e 22288 ac_status=$?
a848cd7e
SC
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } &&
de59c161 22291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; }; then
22297 eval "$as_ac_var=yes"
22298else
22299 echo "$as_me: failed program was:" >&5
22300sed 's/^/| /' conftest.$ac_ext >&5
22301
22302eval "$as_ac_var=no"
22303fi
de59c161 22304rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22305fi
22306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22307echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22308if test `eval echo '${'$as_ac_var'}'` = yes; then
22309 cat >>confdefs.h <<_ACEOF
22310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22311_ACEOF
22312
22313fi
22314done
22315
22316 fi
22317
22318 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
22319 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
22320
22321 AFMINSTALL=afminstall
22322 TOOLKIT=GTK
22323 GUIDIST=GTK_DIST
22324
22325 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22326echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22327if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22329else
22330 ac_check_lib_save_LIBS=$LIBS
22331LIBS="-lgdk $LIBS"
22332cat >conftest.$ac_ext <<_ACEOF
de59c161 22333#line $LINENO "configure"
a848cd7e
SC
22334/* confdefs.h. */
22335_ACEOF
22336cat confdefs.h >>conftest.$ac_ext
22337cat >>conftest.$ac_ext <<_ACEOF
22338/* end confdefs.h. */
22339
22340/* Override any gcc2 internal prototype to avoid an error. */
22341#ifdef __cplusplus
22342extern "C"
22343#endif
22344/* We use char because int might match the return type of a gcc2
22345 builtin and then its argument prototype would still apply. */
22346char gdk_im_open ();
22347int
22348main ()
22349{
22350gdk_im_open ();
22351 ;
22352 return 0;
22353}
22354_ACEOF
22355rm -f conftest.$ac_objext conftest$ac_exeext
22356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 22357 (eval $ac_link) 2>&5
a848cd7e 22358 ac_status=$?
a848cd7e
SC
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } &&
de59c161 22361 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22367 ac_cv_lib_gdk_gdk_im_open=yes
22368else
22369 echo "$as_me: failed program was:" >&5
22370sed 's/^/| /' conftest.$ac_ext >&5
22371
22372ac_cv_lib_gdk_gdk_im_open=no
22373fi
de59c161 22374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22375LIBS=$ac_check_lib_save_LIBS
22376fi
22377echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22378echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22379if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22380 cat >>confdefs.h <<\_ACEOF
22381#define HAVE_XIM 1
22382_ACEOF
22383
22384fi
22385
22386
22387
22388 if test "$wxUSE_GPE" = "yes"; then
22389 echo "$as_me:$LINENO: checking for gpewidget library" >&5
22390echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
22391
22392ac_find_libraries=
22393for ac_dir in $SEARCH_LIB /usr/lib;
22394 do
22395 for ac_extension in a so sl dylib; do
22396 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
22397 ac_find_libraries=$ac_dir
22398 break 2
22399 fi
22400 done
22401 done
22402
22403 if test "$ac_find_libraries" != "" ; then
22404
22405 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22406 result=$?
22407 if test $result = 0; then
22408 ac_path_to_link=""
22409 else
22410 ac_path_to_link=" -L$ac_find_libraries"
22411 fi
22412
22413 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
22414 WXGPE=1
22415 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22416echo "${ECHO_T}found at $ac_find_libraries" >&6
22417 else
22418 echo "$as_me:$LINENO: result: not found" >&5
22419echo "${ECHO_T}not found" >&6
22420 fi
22421
22422 fi
22423 fi
22424
22425 if test "$wxUSE_MGL" = 1; then
22426 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22427echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
22428 if test "x$MGL_ROOT" = x ; then
22429 echo "$as_me:$LINENO: result: not found" >&5
22430echo "${ECHO_T}not found" >&6
22431 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22432echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22433 { (exit 1); exit 1; }; }
22434 else
22435 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
22436echo "${ECHO_T}$MGL_ROOT" >&6
22437 fi
22438
22439 echo "$as_me:$LINENO: checking for libmgl location" >&5
22440echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
22441 case "${host}" in
22442 *-*-linux* )
22443 if test "x$wxUSE_SHARED" = xyes ; then
22444 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
22445 else
22446 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
22447 fi
22448 ;;
22449 *-pc-msdosdjgpp )
22450 mgl_os_candidates="dos32/dj2"
22451 ;;
22452 *)
22453 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
22454echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
22455 { (exit 1); exit 1; }; }
22456 esac
22457
22458 mgl_lib_type=""
22459 mgl_os=""
22460
22461 for mgl_os_i in $mgl_os_candidates ; do
22462 if test "x$mgl_os" = x ; then
22463 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22464 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22465 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22466 mgl_lib_type=debug
22467 mgl_os=$mgl_os_i
22468 fi
22469 fi
22470 if test "x$mgl_lib_type" = x ; then
22471 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22472 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22473 mgl_lib_type=release
22474 mgl_os=$mgl_os_i
22475 fi
22476 fi
22477 fi
22478 done
22479
22480 if test "x$mgl_os" = x ; then
22481 echo "$as_me:$LINENO: result: not found" >&5
22482echo "${ECHO_T}not found" >&6
22483 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22484echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22485 { (exit 1); exit 1; }; }
22486 fi
22487 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22488echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
22489
22490 wxUSE_UNIVERSAL="yes"
22491
22492 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22493 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22494
22495 AFMINSTALL=afminstall
22496 TOOLKIT=MGL
22497 GUIDIST=MGL_DIST
22498 fi
22499
22500 if test "$wxUSE_MICROWIN" = 1; then
22501 echo "$as_me:$LINENO: checking for MicroWindows" >&5
22502echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
22503 if test "x$MICROWINDOWS" = x ; then
22504 echo "$as_me:$LINENO: result: not found" >&5
22505echo "${ECHO_T}not found" >&6
22506 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22507echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22508 { (exit 1); exit 1; }; }
22509 else
22510 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22511echo "${ECHO_T}$MICROWINDOWS" >&6
22512 fi
22513
22514 if test -f $MICROWINDOWS/lib/libmwin.a; then
22515 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22516echo "${ECHO_T}MicroWindows' libraries found." >&6
22517 else
22518 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22519echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22520 { (exit 1); exit 1; }; }
22521 fi
22522
22523 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22524 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22525
22526 wxUSE_UNIVERSAL="yes"
22527
22528 AFMINSTALL=afminstall
22529 TOOLKIT=MICROWIN
22530 GUIDIST=MICROWIN_DIST
22531
22532 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
22533 fi
22534
22535 if test "$wxUSE_X11" = 1; then
22536 echo "$as_me:$LINENO: checking for X" >&5
22537echo $ECHO_N "checking for X... $ECHO_C" >&6
22538
22539
22540# Check whether --with-x or --without-x was given.
22541if test "${with_x+set}" = set; then
22542 withval="$with_x"
22543
22544fi;
22545# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22546if test "x$with_x" = xno; then
22547 # The user explicitly disabled X.
22548 have_x=disabled
22549else
22550 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22551 # Both variables are already set.
22552 have_x=yes
22553 else
22554 if test "${ac_cv_have_x+set}" = set; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22556else
22557 # One or both of the vars are not set, and there is no cached value.
22558ac_x_includes=no ac_x_libraries=no
22559rm -fr conftest.dir
22560if mkdir conftest.dir; then
22561 cd conftest.dir
22562 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22563 cat >Imakefile <<'_ACEOF'
22564acfindx:
22565 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22566_ACEOF
22567 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22569 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22570 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22571 for ac_extension in a so sl; do
22572 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
de59c161
RD
22573 test -f $ac_im_libdir/libX11.$ac_extension; then
22574 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
22575 fi
22576 done
22577 # Screen out bogus values from the imake configuration. They are
22578 # bogus both because they are the default anyway, and because
22579 # using them would break gcc on systems where it needs fixed includes.
22580 case $ac_im_incroot in
22581 /usr/include) ;;
22582 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22583 esac
22584 case $ac_im_usrlibdir in
22585 /usr/lib | /lib) ;;
22586 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22587 esac
22588 fi
22589 cd ..
22590 rm -fr conftest.dir
22591fi
22592
22593# Standard set of common directories for X headers.
22594# Check X11 before X11Rn because it is often a symlink to the current release.
22595ac_x_header_dirs='
22596/usr/X11/include
22597/usr/X11R6/include
22598/usr/X11R5/include
22599/usr/X11R4/include
22600
22601/usr/include/X11
22602/usr/include/X11R6
22603/usr/include/X11R5
22604/usr/include/X11R4
22605
22606/usr/local/X11/include
22607/usr/local/X11R6/include
22608/usr/local/X11R5/include
22609/usr/local/X11R4/include
22610
22611/usr/local/include/X11
22612/usr/local/include/X11R6
22613/usr/local/include/X11R5
22614/usr/local/include/X11R4
22615
22616/usr/X386/include
22617/usr/x386/include
22618/usr/XFree86/include/X11
22619
22620/usr/include
22621/usr/local/include
22622/usr/unsupported/include
22623/usr/athena/include
22624/usr/local/x11r5/include
22625/usr/lpp/Xamples/include
22626
22627/usr/openwin/include
22628/usr/openwin/share/include'
22629
22630if test "$ac_x_includes" = no; then
22631 # Guess where to find include files, by looking for Intrinsic.h.
22632 # First, try using that file with no special directory specified.
22633 cat >conftest.$ac_ext <<_ACEOF
de59c161 22634#line $LINENO "configure"
a848cd7e
SC
22635/* confdefs.h. */
22636_ACEOF
22637cat confdefs.h >>conftest.$ac_ext
22638cat >>conftest.$ac_ext <<_ACEOF
22639/* end confdefs.h. */
22640#include <X11/Intrinsic.h>
22641_ACEOF
22642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22644 ac_status=$?
22645 grep -v '^ *+' conftest.er1 >conftest.err
22646 rm -f conftest.er1
22647 cat conftest.err >&5
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); } >/dev/null; then
22650 if test -s conftest.err; then
22651 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
22652 else
22653 ac_cpp_err=
22654 fi
22655else
22656 ac_cpp_err=yes
22657fi
22658if test -z "$ac_cpp_err"; then
22659 # We can compile using X headers with no special include directory.
22660ac_x_includes=
22661else
22662 echo "$as_me: failed program was:" >&5
22663sed 's/^/| /' conftest.$ac_ext >&5
22664
22665 for ac_dir in $ac_x_header_dirs; do
22666 if test -r "$ac_dir/X11/Intrinsic.h"; then
22667 ac_x_includes=$ac_dir
22668 break
22669 fi
22670done
22671fi
22672rm -f conftest.err conftest.$ac_ext
22673fi # $ac_x_includes = no
22674
22675if test "$ac_x_libraries" = no; then
22676 # Check for the libraries.
22677 # See if we find them without any special options.
22678 # Don't add to $LIBS permanently.
22679 ac_save_LIBS=$LIBS
22680 LIBS="-lXt $LIBS"
22681 cat >conftest.$ac_ext <<_ACEOF
de59c161 22682#line $LINENO "configure"
a848cd7e
SC
22683/* confdefs.h. */
22684_ACEOF
22685cat confdefs.h >>conftest.$ac_ext
22686cat >>conftest.$ac_ext <<_ACEOF
22687/* end confdefs.h. */
22688#include <X11/Intrinsic.h>
22689int
22690main ()
22691{
22692XtMalloc (0)
22693 ;
22694 return 0;
22695}
22696_ACEOF
22697rm -f conftest.$ac_objext conftest$ac_exeext
22698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 22699 (eval $ac_link) 2>&5
a848cd7e 22700 ac_status=$?
a848cd7e
SC
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } &&
de59c161 22703 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22706 ac_status=$?
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; }; then
22709 LIBS=$ac_save_LIBS
22710# We can link X programs with no special library path.
22711ac_x_libraries=
22712else
22713 echo "$as_me: failed program was:" >&5
22714sed 's/^/| /' conftest.$ac_ext >&5
22715
22716LIBS=$ac_save_LIBS
22717for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22718do
22719 # Don't even attempt the hair of trying to link an X program!
22720 for ac_extension in a so sl; do
22721 if test -r $ac_dir/libXt.$ac_extension; then
22722 ac_x_libraries=$ac_dir
22723 break 2
22724 fi
22725 done
22726done
22727fi
de59c161 22728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22729fi # $ac_x_libraries = no
22730
22731if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22732 # Didn't find X anywhere. Cache the known absence of X.
22733 ac_cv_have_x="have_x=no"
22734else
22735 # Record where we found X for the cache.
22736 ac_cv_have_x="have_x=yes \
de59c161 22737 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
22738fi
22739fi
22740
22741 fi
22742 eval "$ac_cv_have_x"
22743fi # $with_x != no
22744
22745if test "$have_x" != yes; then
22746 echo "$as_me:$LINENO: result: $have_x" >&5
22747echo "${ECHO_T}$have_x" >&6
22748 no_x=yes
22749else
22750 # If each of the values was on the command line, it overrides each guess.
22751 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22752 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22753 # Update the cache value to reflect the command line values.
22754 ac_cv_have_x="have_x=yes \
22755 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22756 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22757echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22758fi
22759
22760if test "$no_x" = yes; then
22761 # Not all programs may use this symbol, but it does not hurt to define it.
22762
22763cat >>confdefs.h <<\_ACEOF
22764#define X_DISPLAY_MISSING 1
22765_ACEOF
22766
22767 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22768else
22769 if test -n "$x_includes"; then
22770 X_CFLAGS="$X_CFLAGS -I$x_includes"
22771 fi
22772
22773 # It would also be nice to do this for all -L options, not just this one.
22774 if test -n "$x_libraries"; then
22775 X_LIBS="$X_LIBS -L$x_libraries"
22776 # For Solaris; some versions of Sun CC require a space after -R and
22777 # others require no space. Words are not sufficient . . . .
22778 case `(uname -sr) 2>/dev/null` in
22779 "SunOS 5"*)
22780 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22781echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22782 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22783 cat >conftest.$ac_ext <<_ACEOF
de59c161 22784#line $LINENO "configure"
a848cd7e
SC
22785/* confdefs.h. */
22786_ACEOF
22787cat confdefs.h >>conftest.$ac_ext
22788cat >>conftest.$ac_ext <<_ACEOF
22789/* end confdefs.h. */
22790
22791int
22792main ()
22793{
22794
22795 ;
22796 return 0;
22797}
22798_ACEOF
22799rm -f conftest.$ac_objext conftest$ac_exeext
22800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 22801 (eval $ac_link) 2>&5
a848cd7e 22802 ac_status=$?
a848cd7e
SC
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } &&
de59c161 22805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811 ac_R_nospace=yes
22812else
22813 echo "$as_me: failed program was:" >&5
22814sed 's/^/| /' conftest.$ac_ext >&5
22815
22816ac_R_nospace=no
22817fi
de59c161 22818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22819 if test $ac_R_nospace = yes; then
22820 echo "$as_me:$LINENO: result: no" >&5
22821echo "${ECHO_T}no" >&6
22822 X_LIBS="$X_LIBS -R$x_libraries"
22823 else
22824 LIBS="$ac_xsave_LIBS -R $x_libraries"
22825 cat >conftest.$ac_ext <<_ACEOF
de59c161 22826#line $LINENO "configure"
a848cd7e
SC
22827/* confdefs.h. */
22828_ACEOF
22829cat confdefs.h >>conftest.$ac_ext
22830cat >>conftest.$ac_ext <<_ACEOF
22831/* end confdefs.h. */
22832
22833int
22834main ()
22835{
22836
22837 ;
22838 return 0;
22839}
22840_ACEOF
22841rm -f conftest.$ac_objext conftest$ac_exeext
22842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 22843 (eval $ac_link) 2>&5
a848cd7e 22844 ac_status=$?
a848cd7e
SC
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } &&
de59c161 22847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 ac_R_space=yes
22854else
22855 echo "$as_me: failed program was:" >&5
22856sed 's/^/| /' conftest.$ac_ext >&5
22857
22858ac_R_space=no
22859fi
de59c161 22860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22861 if test $ac_R_space = yes; then
22862 echo "$as_me:$LINENO: result: yes" >&5
22863echo "${ECHO_T}yes" >&6
22864 X_LIBS="$X_LIBS -R $x_libraries"
22865 else
22866 echo "$as_me:$LINENO: result: neither works" >&5
22867echo "${ECHO_T}neither works" >&6
22868 fi
22869 fi
22870 LIBS=$ac_xsave_LIBS
22871 esac
22872 fi
22873
22874 # Check for system-dependent libraries X programs must link with.
22875 # Do this before checking for the system-independent R6 libraries
22876 # (-lICE), since we may need -lsocket or whatever for X linking.
22877
22878 if test "$ISC" = yes; then
22879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22880 else
22881 # Martyn Johnson says this is needed for Ultrix, if the X
22882 # libraries were built with DECnet support. And Karl Berry says
22883 # the Alpha needs dnet_stub (dnet does not exist).
22884 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22885 cat >conftest.$ac_ext <<_ACEOF
de59c161 22886#line $LINENO "configure"
a848cd7e
SC
22887/* confdefs.h. */
22888_ACEOF
22889cat confdefs.h >>conftest.$ac_ext
22890cat >>conftest.$ac_ext <<_ACEOF
22891/* end confdefs.h. */
22892
22893/* Override any gcc2 internal prototype to avoid an error. */
22894#ifdef __cplusplus
22895extern "C"
22896#endif
22897/* We use char because int might match the return type of a gcc2
22898 builtin and then its argument prototype would still apply. */
22899char XOpenDisplay ();
22900int
22901main ()
22902{
22903XOpenDisplay ();
22904 ;
22905 return 0;
22906}
22907_ACEOF
22908rm -f conftest.$ac_objext conftest$ac_exeext
22909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 22910 (eval $ac_link) 2>&5
a848cd7e 22911 ac_status=$?
a848cd7e
SC
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } &&
de59c161 22914 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22917 ac_status=$?
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); }; }; then
22920 :
22921else
22922 echo "$as_me: failed program was:" >&5
22923sed 's/^/| /' conftest.$ac_ext >&5
22924
22925echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22926echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22927if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22929else
22930 ac_check_lib_save_LIBS=$LIBS
22931LIBS="-ldnet $LIBS"
22932cat >conftest.$ac_ext <<_ACEOF
de59c161 22933#line $LINENO "configure"
a848cd7e
SC
22934/* confdefs.h. */
22935_ACEOF
22936cat confdefs.h >>conftest.$ac_ext
22937cat >>conftest.$ac_ext <<_ACEOF
22938/* end confdefs.h. */
22939
22940/* Override any gcc2 internal prototype to avoid an error. */
22941#ifdef __cplusplus
22942extern "C"
22943#endif
22944/* We use char because int might match the return type of a gcc2
22945 builtin and then its argument prototype would still apply. */
22946char dnet_ntoa ();
22947int
22948main ()
22949{
22950dnet_ntoa ();
22951 ;
22952 return 0;
22953}
22954_ACEOF
22955rm -f conftest.$ac_objext conftest$ac_exeext
22956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 22957 (eval $ac_link) 2>&5
a848cd7e 22958 ac_status=$?
a848cd7e
SC
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); } &&
de59c161 22961 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22964 ac_status=$?
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; }; then
22967 ac_cv_lib_dnet_dnet_ntoa=yes
22968else
22969 echo "$as_me: failed program was:" >&5
22970sed 's/^/| /' conftest.$ac_ext >&5
22971
22972ac_cv_lib_dnet_dnet_ntoa=no
22973fi
de59c161 22974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22975LIBS=$ac_check_lib_save_LIBS
22976fi
22977echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22978echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22979if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22980 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22981fi
22982
22983 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22984 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22985echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22986if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22988else
22989 ac_check_lib_save_LIBS=$LIBS
22990LIBS="-ldnet_stub $LIBS"
22991cat >conftest.$ac_ext <<_ACEOF
de59c161 22992#line $LINENO "configure"
a848cd7e
SC
22993/* confdefs.h. */
22994_ACEOF
22995cat confdefs.h >>conftest.$ac_ext
22996cat >>conftest.$ac_ext <<_ACEOF
22997/* end confdefs.h. */
22998
22999/* Override any gcc2 internal prototype to avoid an error. */
23000#ifdef __cplusplus
23001extern "C"
23002#endif
23003/* We use char because int might match the return type of a gcc2
23004 builtin and then its argument prototype would still apply. */
23005char dnet_ntoa ();
23006int
23007main ()
23008{
23009dnet_ntoa ();
23010 ;
23011 return 0;
23012}
23013_ACEOF
23014rm -f conftest.$ac_objext conftest$ac_exeext
23015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23016 (eval $ac_link) 2>&5
a848cd7e 23017 ac_status=$?
a848cd7e
SC
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } &&
de59c161 23020 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; }; then
23026 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23027else
23028 echo "$as_me: failed program was:" >&5
23029sed 's/^/| /' conftest.$ac_ext >&5
23030
23031ac_cv_lib_dnet_stub_dnet_ntoa=no
23032fi
de59c161 23033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23034LIBS=$ac_check_lib_save_LIBS
23035fi
23036echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23037echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23038if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23039 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23040fi
23041
23042 fi
23043fi
de59c161 23044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23045 LIBS="$ac_xsave_LIBS"
23046
23047 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23048 # to get the SysV transport functions.
23049 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23050 # needs -lnsl.
23051 # The nsl library prevents programs from opening the X display
23052 # on Irix 5.2, according to T.E. Dickey.
23053 # The functions gethostbyname, getservbyname, and inet_addr are
23054 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23055 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23056echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23057if test "${ac_cv_func_gethostbyname+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23059else
23060 cat >conftest.$ac_ext <<_ACEOF
de59c161 23061#line $LINENO "configure"
a848cd7e
SC
23062/* confdefs.h. */
23063_ACEOF
23064cat confdefs.h >>conftest.$ac_ext
23065cat >>conftest.$ac_ext <<_ACEOF
23066/* end confdefs.h. */
a848cd7e
SC
23067/* System header to define __stub macros and hopefully few prototypes,
23068 which can conflict with char gethostbyname (); below.
23069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23070 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
23071#ifdef __STDC__
23072# include <limits.h>
23073#else
23074# include <assert.h>
23075#endif
a848cd7e
SC
23076/* Override any gcc2 internal prototype to avoid an error. */
23077#ifdef __cplusplus
23078extern "C"
23079{
23080#endif
23081/* We use char because int might match the return type of a gcc2
23082 builtin and then its argument prototype would still apply. */
23083char gethostbyname ();
23084/* The GNU C library defines this for functions which it implements
23085 to always fail with ENOSYS. Some functions are actually named
23086 something starting with __ and the normal name is an alias. */
23087#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23088choke me
23089#else
23090char (*f) () = gethostbyname;
23091#endif
23092#ifdef __cplusplus
23093}
23094#endif
23095
23096int
23097main ()
23098{
23099return f != gethostbyname;
23100 ;
23101 return 0;
23102}
23103_ACEOF
23104rm -f conftest.$ac_objext conftest$ac_exeext
23105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23106 (eval $ac_link) 2>&5
a848cd7e 23107 ac_status=$?
a848cd7e
SC
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } &&
de59c161 23110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112 (eval $ac_try) 2>&5
23113 ac_status=$?
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }; }; then
23116 ac_cv_func_gethostbyname=yes
23117else
23118 echo "$as_me: failed program was:" >&5
23119sed 's/^/| /' conftest.$ac_ext >&5
23120
23121ac_cv_func_gethostbyname=no
23122fi
de59c161 23123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23124fi
23125echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23126echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23127
23128 if test $ac_cv_func_gethostbyname = no; then
23129 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23130echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23131if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23132 echo $ECHO_N "(cached) $ECHO_C" >&6
23133else
23134 ac_check_lib_save_LIBS=$LIBS
23135LIBS="-lnsl $LIBS"
23136cat >conftest.$ac_ext <<_ACEOF
de59c161 23137#line $LINENO "configure"
a848cd7e
SC
23138/* confdefs.h. */
23139_ACEOF
23140cat confdefs.h >>conftest.$ac_ext
23141cat >>conftest.$ac_ext <<_ACEOF
23142/* end confdefs.h. */
23143
23144/* Override any gcc2 internal prototype to avoid an error. */
23145#ifdef __cplusplus
23146extern "C"
23147#endif
23148/* We use char because int might match the return type of a gcc2
23149 builtin and then its argument prototype would still apply. */
23150char gethostbyname ();
23151int
23152main ()
23153{
23154gethostbyname ();
23155 ;
23156 return 0;
23157}
23158_ACEOF
23159rm -f conftest.$ac_objext conftest$ac_exeext
23160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23161 (eval $ac_link) 2>&5
a848cd7e 23162 ac_status=$?
a848cd7e
SC
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); } &&
de59c161 23165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23168 ac_status=$?
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; }; then
23171 ac_cv_lib_nsl_gethostbyname=yes
23172else
23173 echo "$as_me: failed program was:" >&5
23174sed 's/^/| /' conftest.$ac_ext >&5
23175
23176ac_cv_lib_nsl_gethostbyname=no
23177fi
de59c161 23178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23179LIBS=$ac_check_lib_save_LIBS
23180fi
23181echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23182echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23183if test $ac_cv_lib_nsl_gethostbyname = yes; then
23184 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23185fi
23186
23187 if test $ac_cv_lib_nsl_gethostbyname = no; then
de59c161 23188 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
a848cd7e
SC
23189echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23190if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23191 echo $ECHO_N "(cached) $ECHO_C" >&6
23192else
23193 ac_check_lib_save_LIBS=$LIBS
23194LIBS="-lbsd $LIBS"
23195cat >conftest.$ac_ext <<_ACEOF
de59c161 23196#line $LINENO "configure"
a848cd7e
SC
23197/* confdefs.h. */
23198_ACEOF
23199cat confdefs.h >>conftest.$ac_ext
23200cat >>conftest.$ac_ext <<_ACEOF
23201/* end confdefs.h. */
23202
23203/* Override any gcc2 internal prototype to avoid an error. */
23204#ifdef __cplusplus
23205extern "C"
23206#endif
23207/* We use char because int might match the return type of a gcc2
23208 builtin and then its argument prototype would still apply. */
23209char gethostbyname ();
23210int
23211main ()
23212{
23213gethostbyname ();
23214 ;
23215 return 0;
23216}
23217_ACEOF
23218rm -f conftest.$ac_objext conftest$ac_exeext
23219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23220 (eval $ac_link) 2>&5
a848cd7e 23221 ac_status=$?
a848cd7e
SC
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
de59c161 23224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; }; then
23230 ac_cv_lib_bsd_gethostbyname=yes
23231else
23232 echo "$as_me: failed program was:" >&5
23233sed 's/^/| /' conftest.$ac_ext >&5
23234
23235ac_cv_lib_bsd_gethostbyname=no
23236fi
de59c161 23237rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23238LIBS=$ac_check_lib_save_LIBS
23239fi
23240echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23241echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23242if test $ac_cv_lib_bsd_gethostbyname = yes; then
23243 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23244fi
23245
23246 fi
23247 fi
23248
23249 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23250 # socket/setsockopt and other routines are undefined under SCO ODT
23251 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23252 # on later versions), says Simon Leinen: it contains gethostby*
23253 # variants that don't use the name server (or something). -lsocket
23254 # must be given before -lnsl if both are needed. We assume that
23255 # if connect needs -lnsl, so does gethostbyname.
23256 echo "$as_me:$LINENO: checking for connect" >&5
23257echo $ECHO_N "checking for connect... $ECHO_C" >&6
23258if test "${ac_cv_func_connect+set}" = set; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23260else
23261 cat >conftest.$ac_ext <<_ACEOF
de59c161 23262#line $LINENO "configure"
a848cd7e
SC
23263/* confdefs.h. */
23264_ACEOF
23265cat confdefs.h >>conftest.$ac_ext
23266cat >>conftest.$ac_ext <<_ACEOF
23267/* end confdefs.h. */
a848cd7e
SC
23268/* System header to define __stub macros and hopefully few prototypes,
23269 which can conflict with char connect (); below.
23270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23271 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
23272#ifdef __STDC__
23273# include <limits.h>
23274#else
23275# include <assert.h>
23276#endif
a848cd7e
SC
23277/* Override any gcc2 internal prototype to avoid an error. */
23278#ifdef __cplusplus
23279extern "C"
23280{
23281#endif
23282/* We use char because int might match the return type of a gcc2
23283 builtin and then its argument prototype would still apply. */
23284char connect ();
23285/* The GNU C library defines this for functions which it implements
23286 to always fail with ENOSYS. Some functions are actually named
23287 something starting with __ and the normal name is an alias. */
23288#if defined (__stub_connect) || defined (__stub___connect)
23289choke me
23290#else
23291char (*f) () = connect;
23292#endif
23293#ifdef __cplusplus
23294}
23295#endif
23296
23297int
23298main ()
23299{
23300return f != connect;
23301 ;
23302 return 0;
23303}
23304_ACEOF
23305rm -f conftest.$ac_objext conftest$ac_exeext
23306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23307 (eval $ac_link) 2>&5
a848cd7e 23308 ac_status=$?
a848cd7e
SC
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); } &&
de59c161 23311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23314 ac_status=$?
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; }; then
23317 ac_cv_func_connect=yes
23318else
23319 echo "$as_me: failed program was:" >&5
23320sed 's/^/| /' conftest.$ac_ext >&5
23321
23322ac_cv_func_connect=no
23323fi
de59c161 23324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23325fi
23326echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23327echo "${ECHO_T}$ac_cv_func_connect" >&6
23328
23329 if test $ac_cv_func_connect = no; then
23330 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23331echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23332if test "${ac_cv_lib_socket_connect+set}" = set; then
23333 echo $ECHO_N "(cached) $ECHO_C" >&6
23334else
23335 ac_check_lib_save_LIBS=$LIBS
23336LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23337cat >conftest.$ac_ext <<_ACEOF
de59c161 23338#line $LINENO "configure"
a848cd7e
SC
23339/* confdefs.h. */
23340_ACEOF
23341cat confdefs.h >>conftest.$ac_ext
23342cat >>conftest.$ac_ext <<_ACEOF
23343/* end confdefs.h. */
23344
23345/* Override any gcc2 internal prototype to avoid an error. */
23346#ifdef __cplusplus
23347extern "C"
23348#endif
23349/* We use char because int might match the return type of a gcc2
23350 builtin and then its argument prototype would still apply. */
23351char connect ();
23352int
23353main ()
23354{
23355connect ();
23356 ;
23357 return 0;
23358}
23359_ACEOF
23360rm -f conftest.$ac_objext conftest$ac_exeext
23361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23362 (eval $ac_link) 2>&5
a848cd7e 23363 ac_status=$?
a848cd7e
SC
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } &&
de59c161 23366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368 (eval $ac_try) 2>&5
23369 ac_status=$?
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_cv_lib_socket_connect=yes
23373else
23374 echo "$as_me: failed program was:" >&5
23375sed 's/^/| /' conftest.$ac_ext >&5
23376
23377ac_cv_lib_socket_connect=no
23378fi
de59c161 23379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23380LIBS=$ac_check_lib_save_LIBS
23381fi
23382echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23383echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23384if test $ac_cv_lib_socket_connect = yes; then
23385 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23386fi
23387
23388 fi
23389
23390 # Guillermo Gomez says -lposix is necessary on A/UX.
23391 echo "$as_me:$LINENO: checking for remove" >&5
23392echo $ECHO_N "checking for remove... $ECHO_C" >&6
23393if test "${ac_cv_func_remove+set}" = set; then
23394 echo $ECHO_N "(cached) $ECHO_C" >&6
23395else
23396 cat >conftest.$ac_ext <<_ACEOF
de59c161 23397#line $LINENO "configure"
a848cd7e
SC
23398/* confdefs.h. */
23399_ACEOF
23400cat confdefs.h >>conftest.$ac_ext
23401cat >>conftest.$ac_ext <<_ACEOF
23402/* end confdefs.h. */
a848cd7e
SC
23403/* System header to define __stub macros and hopefully few prototypes,
23404 which can conflict with char remove (); below.
23405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23406 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
23407#ifdef __STDC__
23408# include <limits.h>
23409#else
23410# include <assert.h>
23411#endif
a848cd7e
SC
23412/* Override any gcc2 internal prototype to avoid an error. */
23413#ifdef __cplusplus
23414extern "C"
23415{
23416#endif
23417/* We use char because int might match the return type of a gcc2
23418 builtin and then its argument prototype would still apply. */
23419char remove ();
23420/* The GNU C library defines this for functions which it implements
23421 to always fail with ENOSYS. Some functions are actually named
23422 something starting with __ and the normal name is an alias. */
23423#if defined (__stub_remove) || defined (__stub___remove)
23424choke me
23425#else
23426char (*f) () = remove;
23427#endif
23428#ifdef __cplusplus
23429}
23430#endif
23431
23432int
23433main ()
23434{
23435return f != remove;
23436 ;
23437 return 0;
23438}
23439_ACEOF
23440rm -f conftest.$ac_objext conftest$ac_exeext
23441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23442 (eval $ac_link) 2>&5
a848cd7e 23443 ac_status=$?
a848cd7e
SC
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); } &&
de59c161 23446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448 (eval $ac_try) 2>&5
23449 ac_status=$?
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); }; }; then
23452 ac_cv_func_remove=yes
23453else
23454 echo "$as_me: failed program was:" >&5
23455sed 's/^/| /' conftest.$ac_ext >&5
23456
23457ac_cv_func_remove=no
23458fi
de59c161 23459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23460fi
23461echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23462echo "${ECHO_T}$ac_cv_func_remove" >&6
23463
23464 if test $ac_cv_func_remove = no; then
23465 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23466echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23467if test "${ac_cv_lib_posix_remove+set}" = set; then
23468 echo $ECHO_N "(cached) $ECHO_C" >&6
23469else
23470 ac_check_lib_save_LIBS=$LIBS
23471LIBS="-lposix $LIBS"
23472cat >conftest.$ac_ext <<_ACEOF
de59c161 23473#line $LINENO "configure"
a848cd7e
SC
23474/* confdefs.h. */
23475_ACEOF
23476cat confdefs.h >>conftest.$ac_ext
23477cat >>conftest.$ac_ext <<_ACEOF
23478/* end confdefs.h. */
23479
23480/* Override any gcc2 internal prototype to avoid an error. */
23481#ifdef __cplusplus
23482extern "C"
23483#endif
23484/* We use char because int might match the return type of a gcc2
23485 builtin and then its argument prototype would still apply. */
23486char remove ();
23487int
23488main ()
23489{
23490remove ();
23491 ;
23492 return 0;
23493}
23494_ACEOF
23495rm -f conftest.$ac_objext conftest$ac_exeext
23496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23497 (eval $ac_link) 2>&5
a848cd7e 23498 ac_status=$?
a848cd7e
SC
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); } &&
de59c161 23501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503 (eval $ac_try) 2>&5
23504 ac_status=$?
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); }; }; then
23507 ac_cv_lib_posix_remove=yes
23508else
23509 echo "$as_me: failed program was:" >&5
23510sed 's/^/| /' conftest.$ac_ext >&5
23511
23512ac_cv_lib_posix_remove=no
23513fi
de59c161 23514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23515LIBS=$ac_check_lib_save_LIBS
23516fi
23517echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23518echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23519if test $ac_cv_lib_posix_remove = yes; then
23520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23521fi
23522
23523 fi
23524
23525 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23526 echo "$as_me:$LINENO: checking for shmat" >&5
23527echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23528if test "${ac_cv_func_shmat+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23530else
23531 cat >conftest.$ac_ext <<_ACEOF
de59c161 23532#line $LINENO "configure"
a848cd7e
SC
23533/* confdefs.h. */
23534_ACEOF
23535cat confdefs.h >>conftest.$ac_ext
23536cat >>conftest.$ac_ext <<_ACEOF
23537/* end confdefs.h. */
a848cd7e
SC
23538/* System header to define __stub macros and hopefully few prototypes,
23539 which can conflict with char shmat (); below.
23540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23541 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
23542#ifdef __STDC__
23543# include <limits.h>
23544#else
23545# include <assert.h>
23546#endif
a848cd7e
SC
23547/* Override any gcc2 internal prototype to avoid an error. */
23548#ifdef __cplusplus
23549extern "C"
23550{
23551#endif
23552/* We use char because int might match the return type of a gcc2
23553 builtin and then its argument prototype would still apply. */
23554char shmat ();
23555/* The GNU C library defines this for functions which it implements
23556 to always fail with ENOSYS. Some functions are actually named
23557 something starting with __ and the normal name is an alias. */
23558#if defined (__stub_shmat) || defined (__stub___shmat)
23559choke me
23560#else
23561char (*f) () = shmat;
23562#endif
23563#ifdef __cplusplus
23564}
23565#endif
23566
23567int
23568main ()
23569{
23570return f != shmat;
23571 ;
23572 return 0;
23573}
23574_ACEOF
23575rm -f conftest.$ac_objext conftest$ac_exeext
23576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23577 (eval $ac_link) 2>&5
a848cd7e 23578 ac_status=$?
a848cd7e
SC
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); } &&
de59c161 23581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23584 ac_status=$?
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 ac_cv_func_shmat=yes
23588else
23589 echo "$as_me: failed program was:" >&5
23590sed 's/^/| /' conftest.$ac_ext >&5
23591
23592ac_cv_func_shmat=no
23593fi
de59c161 23594rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23595fi
23596echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23597echo "${ECHO_T}$ac_cv_func_shmat" >&6
23598
23599 if test $ac_cv_func_shmat = no; then
23600 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23601echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23602if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23603 echo $ECHO_N "(cached) $ECHO_C" >&6
23604else
23605 ac_check_lib_save_LIBS=$LIBS
23606LIBS="-lipc $LIBS"
23607cat >conftest.$ac_ext <<_ACEOF
de59c161 23608#line $LINENO "configure"
a848cd7e
SC
23609/* confdefs.h. */
23610_ACEOF
23611cat confdefs.h >>conftest.$ac_ext
23612cat >>conftest.$ac_ext <<_ACEOF
23613/* end confdefs.h. */
23614
23615/* Override any gcc2 internal prototype to avoid an error. */
23616#ifdef __cplusplus
23617extern "C"
23618#endif
23619/* We use char because int might match the return type of a gcc2
23620 builtin and then its argument prototype would still apply. */
23621char shmat ();
23622int
23623main ()
23624{
23625shmat ();
23626 ;
23627 return 0;
23628}
23629_ACEOF
23630rm -f conftest.$ac_objext conftest$ac_exeext
23631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23632 (eval $ac_link) 2>&5
a848cd7e 23633 ac_status=$?
a848cd7e
SC
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } &&
de59c161 23636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23638 (eval $ac_try) 2>&5
23639 ac_status=$?
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); }; }; then
23642 ac_cv_lib_ipc_shmat=yes
23643else
23644 echo "$as_me: failed program was:" >&5
23645sed 's/^/| /' conftest.$ac_ext >&5
23646
23647ac_cv_lib_ipc_shmat=no
23648fi
de59c161 23649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23650LIBS=$ac_check_lib_save_LIBS
23651fi
23652echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23653echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23654if test $ac_cv_lib_ipc_shmat = yes; then
23655 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23656fi
23657
23658 fi
23659 fi
23660
23661 # Check for libraries that X11R6 Xt/Xaw programs need.
23662 ac_save_LDFLAGS=$LDFLAGS
23663 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23664 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23665 # check for ICE first), but we must link in the order -lSM -lICE or
23666 # we get undefined symbols. So assume we have SM if we have ICE.
23667 # These have to be linked with before -lX11, unlike the other
23668 # libraries we check for below, so use a different variable.
23669 # John Interrante, Karl Berry
23670 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23671echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23672if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23673 echo $ECHO_N "(cached) $ECHO_C" >&6
23674else
23675 ac_check_lib_save_LIBS=$LIBS
23676LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23677cat >conftest.$ac_ext <<_ACEOF
de59c161 23678#line $LINENO "configure"
a848cd7e
SC
23679/* confdefs.h. */
23680_ACEOF
23681cat confdefs.h >>conftest.$ac_ext
23682cat >>conftest.$ac_ext <<_ACEOF
23683/* end confdefs.h. */
23684
23685/* Override any gcc2 internal prototype to avoid an error. */
23686#ifdef __cplusplus
23687extern "C"
23688#endif
23689/* We use char because int might match the return type of a gcc2
23690 builtin and then its argument prototype would still apply. */
23691char IceConnectionNumber ();
23692int
23693main ()
23694{
23695IceConnectionNumber ();
23696 ;
23697 return 0;
23698}
23699_ACEOF
23700rm -f conftest.$ac_objext conftest$ac_exeext
23701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 23702 (eval $ac_link) 2>&5
a848cd7e 23703 ac_status=$?
a848cd7e
SC
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } &&
de59c161 23706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23708 (eval $ac_try) 2>&5
23709 ac_status=$?
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); }; }; then
23712 ac_cv_lib_ICE_IceConnectionNumber=yes
23713else
23714 echo "$as_me: failed program was:" >&5
23715sed 's/^/| /' conftest.$ac_ext >&5
23716
23717ac_cv_lib_ICE_IceConnectionNumber=no
23718fi
de59c161 23719rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23720LIBS=$ac_check_lib_save_LIBS
23721fi
23722echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23723echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23724if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23725 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23726fi
23727
23728 LDFLAGS=$ac_save_LDFLAGS
23729
23730fi
23731
23732
23733 if test "$no_x" = "yes"; then
23734 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23735echo "$as_me: error: X11 not found" >&2;}
23736 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23737 fi
23738
23739 GUI_TK_LIBRARY="$X_LIBS"
23740 TOOLKIT_INCLUDE="$X_CFLAGS"
23741 AFMINSTALL=afminstall
23742 COMPILED_X_PROGRAM=0
23743
23744 if test "$wxUSE_NANOX" = "yes"; then
23745 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23746echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
23747 if test "x$MICROWIN" = x ; then
23748 echo "$as_me:$LINENO: result: not found" >&5
23749echo "${ECHO_T}not found" >&6
23750 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23751echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23752 { (exit 1); exit 1; }; }
23753 else
23754 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23755echo "${ECHO_T}$MICROWIN" >&6
23756 cat >>confdefs.h <<\_ACEOF
23757#define wxUSE_NANOX 1
23758_ACEOF
23759
23760 fi
23761 fi
23762
23763 if test "$wxUSE_UNICODE" = "yes"; then
23764
23765 succeeded=no
23766
23767 if test -z "$PKG_CONFIG"; then
23768 # Extract the first word of "pkg-config", so it can be a program name with args.
23769set dummy pkg-config; ac_word=$2
23770echo "$as_me:$LINENO: checking for $ac_word" >&5
23771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23772if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23773 echo $ECHO_N "(cached) $ECHO_C" >&6
23774else
23775 case $PKG_CONFIG in
23776 [\\/]* | ?:[\\/]*)
23777 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23778 ;;
23779 *)
23780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23781for as_dir in $PATH
23782do
23783 IFS=$as_save_IFS
23784 test -z "$as_dir" && as_dir=.
23785 for ac_exec_ext in '' $ac_executable_extensions; do
23786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23787 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23789 break 2
23790 fi
23791done
23792done
23793
23794 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23795 ;;
23796esac
23797fi
23798PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23799
23800if test -n "$PKG_CONFIG"; then
23801 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23802echo "${ECHO_T}$PKG_CONFIG" >&6
23803else
23804 echo "$as_me:$LINENO: result: no" >&5
23805echo "${ECHO_T}no" >&6
23806fi
23807
23808 fi
23809
23810 if test "$PKG_CONFIG" = "no" ; then
23811 echo "*** The pkg-config script could not be found. Make sure it is"
23812 echo "*** in your path, or set the PKG_CONFIG environment variable"
23813 echo "*** to the full path to pkg-config."
23814 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23815 else
23816 PKG_CONFIG_MIN_VERSION=0.9.0
23817 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23818 echo "$as_me:$LINENO: checking for pangox" >&5
23819echo $ECHO_N "checking for pangox... $ECHO_C" >&6
23820
23821 if $PKG_CONFIG --exists "pangox" ; then
23822 echo "$as_me:$LINENO: result: yes" >&5
23823echo "${ECHO_T}yes" >&6
23824 succeeded=yes
23825
23826 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23827echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
23828 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
23829 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23830echo "${ECHO_T}$PANGOX_CFLAGS" >&6
23831
23832 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23833echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
23834 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
23835 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
23836echo "${ECHO_T}$PANGOX_LIBS" >&6
23837 else
23838 PANGOX_CFLAGS=""
23839 PANGOX_LIBS=""
23840 ## If we have a custom action on failure, don't print errors, but
23841 ## do set a variable so people can do so.
23842 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
23843
23844 fi
23845
23846
23847
23848 else
23849 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23850 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23851 fi
23852 fi
23853
23854 if test $succeeded = yes; then
23855
23856 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
23857 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
23858
23859 else
23860
23861 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
23862echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
23863 { (exit 1); exit 1; }; }
23864
23865
23866 fi
23867
23868
23869 succeeded=no
23870
23871 if test -z "$PKG_CONFIG"; then
23872 # Extract the first word of "pkg-config", so it can be a program name with args.
23873set dummy pkg-config; ac_word=$2
23874echo "$as_me:$LINENO: checking for $ac_word" >&5
23875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23876if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23877 echo $ECHO_N "(cached) $ECHO_C" >&6
23878else
23879 case $PKG_CONFIG in
23880 [\\/]* | ?:[\\/]*)
23881 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23882 ;;
23883 *)
23884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23885for as_dir in $PATH
23886do
23887 IFS=$as_save_IFS
23888 test -z "$as_dir" && as_dir=.
23889 for ac_exec_ext in '' $ac_executable_extensions; do
23890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23891 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23893 break 2
23894 fi
23895done
23896done
23897
23898 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23899 ;;
23900esac
23901fi
23902PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23903
23904if test -n "$PKG_CONFIG"; then
23905 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23906echo "${ECHO_T}$PKG_CONFIG" >&6
23907else
23908 echo "$as_me:$LINENO: result: no" >&5
23909echo "${ECHO_T}no" >&6
23910fi
23911
23912 fi
23913
23914 if test "$PKG_CONFIG" = "no" ; then
23915 echo "*** The pkg-config script could not be found. Make sure it is"
23916 echo "*** in your path, or set the PKG_CONFIG environment variable"
23917 echo "*** to the full path to pkg-config."
23918 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23919 else
23920 PKG_CONFIG_MIN_VERSION=0.9.0
23921 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23922 echo "$as_me:$LINENO: checking for pangoft2" >&5
23923echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23924
23925 if $PKG_CONFIG --exists "pangoft2" ; then
23926 echo "$as_me:$LINENO: result: yes" >&5
23927echo "${ECHO_T}yes" >&6
23928 succeeded=yes
23929
23930 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23931echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23932 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23933 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23934echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23935
23936 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23937echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23938 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23939 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23940echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23941 else
23942 PANGOFT2_CFLAGS=""
23943 PANGOFT2_LIBS=""
23944 ## If we have a custom action on failure, don't print errors, but
23945 ## do set a variable so people can do so.
23946 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23947
23948 fi
23949
23950
23951
23952 else
23953 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23954 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23955 fi
23956 fi
23957
23958 if test $succeeded = yes; then
23959
23960 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23961 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23962
23963 else
23964
23965 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23966echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23967 wxUSE_PRINTING_ARCHITECTURE="no"
23968
23969
23970 fi
23971
23972
23973 succeeded=no
23974
23975 if test -z "$PKG_CONFIG"; then
23976 # Extract the first word of "pkg-config", so it can be a program name with args.
23977set dummy pkg-config; ac_word=$2
23978echo "$as_me:$LINENO: checking for $ac_word" >&5
23979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23980if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23982else
23983 case $PKG_CONFIG in
23984 [\\/]* | ?:[\\/]*)
23985 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23986 ;;
23987 *)
23988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23989for as_dir in $PATH
23990do
23991 IFS=$as_save_IFS
23992 test -z "$as_dir" && as_dir=.
23993 for ac_exec_ext in '' $ac_executable_extensions; do
23994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23995 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23997 break 2
23998 fi
23999done
24000done
24001
24002 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24003 ;;
24004esac
24005fi
24006PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24007
24008if test -n "$PKG_CONFIG"; then
24009 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24010echo "${ECHO_T}$PKG_CONFIG" >&6
24011else
24012 echo "$as_me:$LINENO: result: no" >&5
24013echo "${ECHO_T}no" >&6
24014fi
24015
24016 fi
24017
24018 if test "$PKG_CONFIG" = "no" ; then
24019 echo "*** The pkg-config script could not be found. Make sure it is"
24020 echo "*** in your path, or set the PKG_CONFIG environment variable"
24021 echo "*** to the full path to pkg-config."
24022 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24023 else
24024 PKG_CONFIG_MIN_VERSION=0.9.0
24025 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24026 echo "$as_me:$LINENO: checking for pangoxft" >&5
24027echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24028
24029 if $PKG_CONFIG --exists "pangoxft" ; then
24030 echo "$as_me:$LINENO: result: yes" >&5
24031echo "${ECHO_T}yes" >&6
24032 succeeded=yes
24033
24034 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24035echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24036 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24037 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24038echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24039
24040 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24041echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24042 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24043 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24044echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24045 else
24046 PANGOXFT_CFLAGS=""
24047 PANGOXFT_LIBS=""
24048 ## If we have a custom action on failure, don't print errors, but
24049 ## do set a variable so people can do so.
24050 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24051
24052 fi
24053
24054
24055
24056 else
24057 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24058 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24059 fi
24060 fi
24061
24062 if test $succeeded = yes; then
24063
24064 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
24065 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
24066
24067 else
24068
24069 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24070echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24071
24072
24073 fi
24074
24075 fi
24076
24077 wxUSE_UNIVERSAL="yes"
24078
24079 if test "$wxUSE_NANOX" = "yes"; then
24080 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
24081 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"
24082 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24083 else
24084 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
24085 fi
24086
24087 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24088 TOOLKIT=X11
24089 GUIDIST=X11_DIST
24090 fi
24091
24092 if test "$wxUSE_MOTIF" = 1; then
24093 if test "$no_x" = yes; then
24094 # Not all programs may use this symbol, but it does not hurt to define it.
24095
24096cat >>confdefs.h <<\_ACEOF
24097#define X_DISPLAY_MISSING 1
24098_ACEOF
24099
24100 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24101else
24102 if test -n "$x_includes"; then
24103 X_CFLAGS="$X_CFLAGS -I$x_includes"
24104 fi
24105
24106 # It would also be nice to do this for all -L options, not just this one.
24107 if test -n "$x_libraries"; then
24108 X_LIBS="$X_LIBS -L$x_libraries"
24109 # For Solaris; some versions of Sun CC require a space after -R and
24110 # others require no space. Words are not sufficient . . . .
24111 case `(uname -sr) 2>/dev/null` in
24112 "SunOS 5"*)
24113 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24114echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24115 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24116 cat >conftest.$ac_ext <<_ACEOF
de59c161 24117#line $LINENO "configure"
a848cd7e
SC
24118/* confdefs.h. */
24119_ACEOF
24120cat confdefs.h >>conftest.$ac_ext
24121cat >>conftest.$ac_ext <<_ACEOF
24122/* end confdefs.h. */
24123
24124int
24125main ()
24126{
24127
24128 ;
24129 return 0;
24130}
24131_ACEOF
24132rm -f conftest.$ac_objext conftest$ac_exeext
24133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24134 (eval $ac_link) 2>&5
a848cd7e 24135 ac_status=$?
a848cd7e
SC
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); } &&
de59c161 24138 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24141 ac_status=$?
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; }; then
24144 ac_R_nospace=yes
24145else
24146 echo "$as_me: failed program was:" >&5
24147sed 's/^/| /' conftest.$ac_ext >&5
24148
24149ac_R_nospace=no
24150fi
de59c161 24151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24152 if test $ac_R_nospace = yes; then
24153 echo "$as_me:$LINENO: result: no" >&5
24154echo "${ECHO_T}no" >&6
24155 X_LIBS="$X_LIBS -R$x_libraries"
24156 else
24157 LIBS="$ac_xsave_LIBS -R $x_libraries"
24158 cat >conftest.$ac_ext <<_ACEOF
de59c161 24159#line $LINENO "configure"
a848cd7e
SC
24160/* confdefs.h. */
24161_ACEOF
24162cat confdefs.h >>conftest.$ac_ext
24163cat >>conftest.$ac_ext <<_ACEOF
24164/* end confdefs.h. */
24165
24166int
24167main ()
24168{
24169
24170 ;
24171 return 0;
24172}
24173_ACEOF
24174rm -f conftest.$ac_objext conftest$ac_exeext
24175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24176 (eval $ac_link) 2>&5
a848cd7e 24177 ac_status=$?
a848cd7e
SC
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } &&
de59c161 24180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182 (eval $ac_try) 2>&5
24183 ac_status=$?
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); }; }; then
24186 ac_R_space=yes
24187else
24188 echo "$as_me: failed program was:" >&5
24189sed 's/^/| /' conftest.$ac_ext >&5
24190
24191ac_R_space=no
24192fi
de59c161 24193rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24194 if test $ac_R_space = yes; then
24195 echo "$as_me:$LINENO: result: yes" >&5
24196echo "${ECHO_T}yes" >&6
24197 X_LIBS="$X_LIBS -R $x_libraries"
24198 else
24199 echo "$as_me:$LINENO: result: neither works" >&5
24200echo "${ECHO_T}neither works" >&6
24201 fi
24202 fi
24203 LIBS=$ac_xsave_LIBS
24204 esac
24205 fi
24206
24207 # Check for system-dependent libraries X programs must link with.
24208 # Do this before checking for the system-independent R6 libraries
24209 # (-lICE), since we may need -lsocket or whatever for X linking.
24210
24211 if test "$ISC" = yes; then
24212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24213 else
24214 # Martyn Johnson says this is needed for Ultrix, if the X
24215 # libraries were built with DECnet support. And Karl Berry says
24216 # the Alpha needs dnet_stub (dnet does not exist).
24217 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24218 cat >conftest.$ac_ext <<_ACEOF
de59c161 24219#line $LINENO "configure"
a848cd7e
SC
24220/* confdefs.h. */
24221_ACEOF
24222cat confdefs.h >>conftest.$ac_ext
24223cat >>conftest.$ac_ext <<_ACEOF
24224/* end confdefs.h. */
24225
24226/* Override any gcc2 internal prototype to avoid an error. */
24227#ifdef __cplusplus
24228extern "C"
24229#endif
24230/* We use char because int might match the return type of a gcc2
24231 builtin and then its argument prototype would still apply. */
24232char XOpenDisplay ();
24233int
24234main ()
24235{
24236XOpenDisplay ();
24237 ;
24238 return 0;
24239}
24240_ACEOF
24241rm -f conftest.$ac_objext conftest$ac_exeext
24242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24243 (eval $ac_link) 2>&5
a848cd7e 24244 ac_status=$?
a848cd7e
SC
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } &&
de59c161 24247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24253 :
24254else
24255 echo "$as_me: failed program was:" >&5
24256sed 's/^/| /' conftest.$ac_ext >&5
24257
24258echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24259echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24260if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24261 echo $ECHO_N "(cached) $ECHO_C" >&6
24262else
24263 ac_check_lib_save_LIBS=$LIBS
24264LIBS="-ldnet $LIBS"
24265cat >conftest.$ac_ext <<_ACEOF
de59c161 24266#line $LINENO "configure"
a848cd7e
SC
24267/* confdefs.h. */
24268_ACEOF
24269cat confdefs.h >>conftest.$ac_ext
24270cat >>conftest.$ac_ext <<_ACEOF
24271/* end confdefs.h. */
24272
24273/* Override any gcc2 internal prototype to avoid an error. */
24274#ifdef __cplusplus
24275extern "C"
24276#endif
24277/* We use char because int might match the return type of a gcc2
24278 builtin and then its argument prototype would still apply. */
24279char dnet_ntoa ();
24280int
24281main ()
24282{
24283dnet_ntoa ();
24284 ;
24285 return 0;
24286}
24287_ACEOF
24288rm -f conftest.$ac_objext conftest$ac_exeext
24289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24290 (eval $ac_link) 2>&5
a848cd7e 24291 ac_status=$?
a848cd7e
SC
24292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); } &&
de59c161 24294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296 (eval $ac_try) 2>&5
24297 ac_status=$?
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); }; }; then
24300 ac_cv_lib_dnet_dnet_ntoa=yes
24301else
24302 echo "$as_me: failed program was:" >&5
24303sed 's/^/| /' conftest.$ac_ext >&5
24304
24305ac_cv_lib_dnet_dnet_ntoa=no
24306fi
de59c161 24307rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24308LIBS=$ac_check_lib_save_LIBS
24309fi
24310echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24311echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24312if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24313 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24314fi
24315
24316 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24317 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24318echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24319if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24320 echo $ECHO_N "(cached) $ECHO_C" >&6
24321else
24322 ac_check_lib_save_LIBS=$LIBS
24323LIBS="-ldnet_stub $LIBS"
24324cat >conftest.$ac_ext <<_ACEOF
de59c161 24325#line $LINENO "configure"
a848cd7e
SC
24326/* confdefs.h. */
24327_ACEOF
24328cat confdefs.h >>conftest.$ac_ext
24329cat >>conftest.$ac_ext <<_ACEOF
24330/* end confdefs.h. */
24331
24332/* Override any gcc2 internal prototype to avoid an error. */
24333#ifdef __cplusplus
24334extern "C"
24335#endif
24336/* We use char because int might match the return type of a gcc2
24337 builtin and then its argument prototype would still apply. */
24338char dnet_ntoa ();
24339int
24340main ()
24341{
24342dnet_ntoa ();
24343 ;
24344 return 0;
24345}
24346_ACEOF
24347rm -f conftest.$ac_objext conftest$ac_exeext
24348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24349 (eval $ac_link) 2>&5
a848cd7e 24350 ac_status=$?
a848cd7e
SC
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } &&
de59c161 24353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355 (eval $ac_try) 2>&5
24356 ac_status=$?
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; }; then
24359 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24360else
24361 echo "$as_me: failed program was:" >&5
24362sed 's/^/| /' conftest.$ac_ext >&5
24363
24364ac_cv_lib_dnet_stub_dnet_ntoa=no
24365fi
de59c161 24366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24367LIBS=$ac_check_lib_save_LIBS
24368fi
24369echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24370echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24371if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24372 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24373fi
24374
24375 fi
24376fi
de59c161 24377rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24378 LIBS="$ac_xsave_LIBS"
24379
24380 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24381 # to get the SysV transport functions.
24382 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24383 # needs -lnsl.
24384 # The nsl library prevents programs from opening the X display
24385 # on Irix 5.2, according to T.E. Dickey.
24386 # The functions gethostbyname, getservbyname, and inet_addr are
24387 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24388 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24389echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24390if test "${ac_cv_func_gethostbyname+set}" = set; then
24391 echo $ECHO_N "(cached) $ECHO_C" >&6
24392else
24393 cat >conftest.$ac_ext <<_ACEOF
de59c161 24394#line $LINENO "configure"
a848cd7e
SC
24395/* confdefs.h. */
24396_ACEOF
24397cat confdefs.h >>conftest.$ac_ext
24398cat >>conftest.$ac_ext <<_ACEOF
24399/* end confdefs.h. */
a848cd7e
SC
24400/* System header to define __stub macros and hopefully few prototypes,
24401 which can conflict with char gethostbyname (); below.
24402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24403 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
24404#ifdef __STDC__
24405# include <limits.h>
24406#else
24407# include <assert.h>
24408#endif
a848cd7e
SC
24409/* Override any gcc2 internal prototype to avoid an error. */
24410#ifdef __cplusplus
24411extern "C"
24412{
24413#endif
24414/* We use char because int might match the return type of a gcc2
24415 builtin and then its argument prototype would still apply. */
24416char gethostbyname ();
24417/* The GNU C library defines this for functions which it implements
24418 to always fail with ENOSYS. Some functions are actually named
24419 something starting with __ and the normal name is an alias. */
24420#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24421choke me
24422#else
24423char (*f) () = gethostbyname;
24424#endif
24425#ifdef __cplusplus
24426}
24427#endif
24428
24429int
24430main ()
24431{
24432return f != gethostbyname;
24433 ;
24434 return 0;
24435}
24436_ACEOF
24437rm -f conftest.$ac_objext conftest$ac_exeext
24438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24439 (eval $ac_link) 2>&5
a848cd7e 24440 ac_status=$?
a848cd7e
SC
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); } &&
de59c161 24443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; }; then
24449 ac_cv_func_gethostbyname=yes
24450else
24451 echo "$as_me: failed program was:" >&5
24452sed 's/^/| /' conftest.$ac_ext >&5
24453
24454ac_cv_func_gethostbyname=no
24455fi
de59c161 24456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24457fi
24458echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24459echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24460
24461 if test $ac_cv_func_gethostbyname = no; then
24462 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24463echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24464if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24465 echo $ECHO_N "(cached) $ECHO_C" >&6
24466else
24467 ac_check_lib_save_LIBS=$LIBS
24468LIBS="-lnsl $LIBS"
24469cat >conftest.$ac_ext <<_ACEOF
de59c161 24470#line $LINENO "configure"
a848cd7e
SC
24471/* confdefs.h. */
24472_ACEOF
24473cat confdefs.h >>conftest.$ac_ext
24474cat >>conftest.$ac_ext <<_ACEOF
24475/* end confdefs.h. */
24476
24477/* Override any gcc2 internal prototype to avoid an error. */
24478#ifdef __cplusplus
24479extern "C"
24480#endif
24481/* We use char because int might match the return type of a gcc2
24482 builtin and then its argument prototype would still apply. */
24483char gethostbyname ();
24484int
24485main ()
24486{
24487gethostbyname ();
24488 ;
24489 return 0;
24490}
24491_ACEOF
24492rm -f conftest.$ac_objext conftest$ac_exeext
24493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24494 (eval $ac_link) 2>&5
a848cd7e 24495 ac_status=$?
a848cd7e
SC
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } &&
de59c161 24498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500 (eval $ac_try) 2>&5
24501 ac_status=$?
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; }; then
24504 ac_cv_lib_nsl_gethostbyname=yes
24505else
24506 echo "$as_me: failed program was:" >&5
24507sed 's/^/| /' conftest.$ac_ext >&5
24508
24509ac_cv_lib_nsl_gethostbyname=no
24510fi
de59c161 24511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24512LIBS=$ac_check_lib_save_LIBS
24513fi
24514echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24515echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24516if test $ac_cv_lib_nsl_gethostbyname = yes; then
24517 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24518fi
24519
24520 if test $ac_cv_lib_nsl_gethostbyname = no; then
de59c161 24521 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
a848cd7e
SC
24522echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24523if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24524 echo $ECHO_N "(cached) $ECHO_C" >&6
24525else
24526 ac_check_lib_save_LIBS=$LIBS
24527LIBS="-lbsd $LIBS"
24528cat >conftest.$ac_ext <<_ACEOF
de59c161 24529#line $LINENO "configure"
a848cd7e
SC
24530/* confdefs.h. */
24531_ACEOF
24532cat confdefs.h >>conftest.$ac_ext
24533cat >>conftest.$ac_ext <<_ACEOF
24534/* end confdefs.h. */
24535
24536/* Override any gcc2 internal prototype to avoid an error. */
24537#ifdef __cplusplus
24538extern "C"
24539#endif
24540/* We use char because int might match the return type of a gcc2
24541 builtin and then its argument prototype would still apply. */
24542char gethostbyname ();
24543int
24544main ()
24545{
24546gethostbyname ();
24547 ;
24548 return 0;
24549}
24550_ACEOF
24551rm -f conftest.$ac_objext conftest$ac_exeext
24552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24553 (eval $ac_link) 2>&5
a848cd7e 24554 ac_status=$?
a848cd7e
SC
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } &&
de59c161 24557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559 (eval $ac_try) 2>&5
24560 ac_status=$?
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); }; }; then
24563 ac_cv_lib_bsd_gethostbyname=yes
24564else
24565 echo "$as_me: failed program was:" >&5
24566sed 's/^/| /' conftest.$ac_ext >&5
24567
24568ac_cv_lib_bsd_gethostbyname=no
24569fi
de59c161 24570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24571LIBS=$ac_check_lib_save_LIBS
24572fi
24573echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24574echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24575if test $ac_cv_lib_bsd_gethostbyname = yes; then
24576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24577fi
24578
24579 fi
24580 fi
24581
24582 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24583 # socket/setsockopt and other routines are undefined under SCO ODT
24584 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24585 # on later versions), says Simon Leinen: it contains gethostby*
24586 # variants that don't use the name server (or something). -lsocket
24587 # must be given before -lnsl if both are needed. We assume that
24588 # if connect needs -lnsl, so does gethostbyname.
24589 echo "$as_me:$LINENO: checking for connect" >&5
24590echo $ECHO_N "checking for connect... $ECHO_C" >&6
24591if test "${ac_cv_func_connect+set}" = set; then
24592 echo $ECHO_N "(cached) $ECHO_C" >&6
24593else
24594 cat >conftest.$ac_ext <<_ACEOF
de59c161 24595#line $LINENO "configure"
a848cd7e
SC
24596/* confdefs.h. */
24597_ACEOF
24598cat confdefs.h >>conftest.$ac_ext
24599cat >>conftest.$ac_ext <<_ACEOF
24600/* end confdefs.h. */
a848cd7e
SC
24601/* System header to define __stub macros and hopefully few prototypes,
24602 which can conflict with char connect (); below.
24603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24604 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
24605#ifdef __STDC__
24606# include <limits.h>
24607#else
24608# include <assert.h>
24609#endif
a848cd7e
SC
24610/* Override any gcc2 internal prototype to avoid an error. */
24611#ifdef __cplusplus
24612extern "C"
24613{
24614#endif
24615/* We use char because int might match the return type of a gcc2
24616 builtin and then its argument prototype would still apply. */
24617char connect ();
24618/* The GNU C library defines this for functions which it implements
24619 to always fail with ENOSYS. Some functions are actually named
24620 something starting with __ and the normal name is an alias. */
24621#if defined (__stub_connect) || defined (__stub___connect)
24622choke me
24623#else
24624char (*f) () = connect;
24625#endif
24626#ifdef __cplusplus
24627}
24628#endif
24629
24630int
24631main ()
24632{
24633return f != connect;
24634 ;
24635 return 0;
24636}
24637_ACEOF
24638rm -f conftest.$ac_objext conftest$ac_exeext
24639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24640 (eval $ac_link) 2>&5
a848cd7e 24641 ac_status=$?
a848cd7e
SC
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } &&
de59c161 24644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24646 (eval $ac_try) 2>&5
24647 ac_status=$?
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); }; }; then
24650 ac_cv_func_connect=yes
24651else
24652 echo "$as_me: failed program was:" >&5
24653sed 's/^/| /' conftest.$ac_ext >&5
24654
24655ac_cv_func_connect=no
24656fi
de59c161 24657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24658fi
24659echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24660echo "${ECHO_T}$ac_cv_func_connect" >&6
24661
24662 if test $ac_cv_func_connect = no; then
24663 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24664echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24665if test "${ac_cv_lib_socket_connect+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24667else
24668 ac_check_lib_save_LIBS=$LIBS
24669LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24670cat >conftest.$ac_ext <<_ACEOF
de59c161 24671#line $LINENO "configure"
a848cd7e
SC
24672/* confdefs.h. */
24673_ACEOF
24674cat confdefs.h >>conftest.$ac_ext
24675cat >>conftest.$ac_ext <<_ACEOF
24676/* end confdefs.h. */
24677
24678/* Override any gcc2 internal prototype to avoid an error. */
24679#ifdef __cplusplus
24680extern "C"
24681#endif
24682/* We use char because int might match the return type of a gcc2
24683 builtin and then its argument prototype would still apply. */
24684char connect ();
24685int
24686main ()
24687{
24688connect ();
24689 ;
24690 return 0;
24691}
24692_ACEOF
24693rm -f conftest.$ac_objext conftest$ac_exeext
24694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24695 (eval $ac_link) 2>&5
a848cd7e 24696 ac_status=$?
a848cd7e
SC
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); } &&
de59c161 24699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701 (eval $ac_try) 2>&5
24702 ac_status=$?
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; }; then
24705 ac_cv_lib_socket_connect=yes
24706else
24707 echo "$as_me: failed program was:" >&5
24708sed 's/^/| /' conftest.$ac_ext >&5
24709
24710ac_cv_lib_socket_connect=no
24711fi
de59c161 24712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24713LIBS=$ac_check_lib_save_LIBS
24714fi
24715echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24716echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24717if test $ac_cv_lib_socket_connect = yes; then
24718 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24719fi
24720
24721 fi
24722
24723 # Guillermo Gomez says -lposix is necessary on A/UX.
24724 echo "$as_me:$LINENO: checking for remove" >&5
24725echo $ECHO_N "checking for remove... $ECHO_C" >&6
24726if test "${ac_cv_func_remove+set}" = set; then
24727 echo $ECHO_N "(cached) $ECHO_C" >&6
24728else
24729 cat >conftest.$ac_ext <<_ACEOF
de59c161 24730#line $LINENO "configure"
a848cd7e
SC
24731/* confdefs.h. */
24732_ACEOF
24733cat confdefs.h >>conftest.$ac_ext
24734cat >>conftest.$ac_ext <<_ACEOF
24735/* end confdefs.h. */
a848cd7e
SC
24736/* System header to define __stub macros and hopefully few prototypes,
24737 which can conflict with char remove (); below.
24738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24739 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
24740#ifdef __STDC__
24741# include <limits.h>
24742#else
24743# include <assert.h>
24744#endif
a848cd7e
SC
24745/* Override any gcc2 internal prototype to avoid an error. */
24746#ifdef __cplusplus
24747extern "C"
24748{
24749#endif
24750/* We use char because int might match the return type of a gcc2
24751 builtin and then its argument prototype would still apply. */
24752char remove ();
24753/* The GNU C library defines this for functions which it implements
24754 to always fail with ENOSYS. Some functions are actually named
24755 something starting with __ and the normal name is an alias. */
24756#if defined (__stub_remove) || defined (__stub___remove)
24757choke me
24758#else
24759char (*f) () = remove;
24760#endif
24761#ifdef __cplusplus
24762}
24763#endif
24764
24765int
24766main ()
24767{
24768return f != remove;
24769 ;
24770 return 0;
24771}
24772_ACEOF
24773rm -f conftest.$ac_objext conftest$ac_exeext
24774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24775 (eval $ac_link) 2>&5
a848cd7e 24776 ac_status=$?
a848cd7e
SC
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
de59c161 24779 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; }; then
24785 ac_cv_func_remove=yes
24786else
24787 echo "$as_me: failed program was:" >&5
24788sed 's/^/| /' conftest.$ac_ext >&5
24789
24790ac_cv_func_remove=no
24791fi
de59c161 24792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24793fi
24794echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24795echo "${ECHO_T}$ac_cv_func_remove" >&6
24796
24797 if test $ac_cv_func_remove = no; then
24798 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24799echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24800if test "${ac_cv_lib_posix_remove+set}" = set; then
24801 echo $ECHO_N "(cached) $ECHO_C" >&6
24802else
24803 ac_check_lib_save_LIBS=$LIBS
24804LIBS="-lposix $LIBS"
24805cat >conftest.$ac_ext <<_ACEOF
de59c161 24806#line $LINENO "configure"
a848cd7e
SC
24807/* confdefs.h. */
24808_ACEOF
24809cat confdefs.h >>conftest.$ac_ext
24810cat >>conftest.$ac_ext <<_ACEOF
24811/* end confdefs.h. */
24812
24813/* Override any gcc2 internal prototype to avoid an error. */
24814#ifdef __cplusplus
24815extern "C"
24816#endif
24817/* We use char because int might match the return type of a gcc2
24818 builtin and then its argument prototype would still apply. */
24819char remove ();
24820int
24821main ()
24822{
24823remove ();
24824 ;
24825 return 0;
24826}
24827_ACEOF
24828rm -f conftest.$ac_objext conftest$ac_exeext
24829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24830 (eval $ac_link) 2>&5
a848cd7e 24831 ac_status=$?
a848cd7e
SC
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } &&
de59c161 24834 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24837 ac_status=$?
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; }; then
24840 ac_cv_lib_posix_remove=yes
24841else
24842 echo "$as_me: failed program was:" >&5
24843sed 's/^/| /' conftest.$ac_ext >&5
24844
24845ac_cv_lib_posix_remove=no
24846fi
de59c161 24847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24848LIBS=$ac_check_lib_save_LIBS
24849fi
24850echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24851echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24852if test $ac_cv_lib_posix_remove = yes; then
24853 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24854fi
24855
24856 fi
24857
24858 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24859 echo "$as_me:$LINENO: checking for shmat" >&5
24860echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24861if test "${ac_cv_func_shmat+set}" = set; then
24862 echo $ECHO_N "(cached) $ECHO_C" >&6
24863else
24864 cat >conftest.$ac_ext <<_ACEOF
de59c161 24865#line $LINENO "configure"
a848cd7e
SC
24866/* confdefs.h. */
24867_ACEOF
24868cat confdefs.h >>conftest.$ac_ext
24869cat >>conftest.$ac_ext <<_ACEOF
24870/* end confdefs.h. */
a848cd7e
SC
24871/* System header to define __stub macros and hopefully few prototypes,
24872 which can conflict with char shmat (); below.
24873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24874 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
24875#ifdef __STDC__
24876# include <limits.h>
24877#else
24878# include <assert.h>
24879#endif
a848cd7e
SC
24880/* Override any gcc2 internal prototype to avoid an error. */
24881#ifdef __cplusplus
24882extern "C"
24883{
24884#endif
24885/* We use char because int might match the return type of a gcc2
24886 builtin and then its argument prototype would still apply. */
24887char shmat ();
24888/* The GNU C library defines this for functions which it implements
24889 to always fail with ENOSYS. Some functions are actually named
24890 something starting with __ and the normal name is an alias. */
24891#if defined (__stub_shmat) || defined (__stub___shmat)
24892choke me
24893#else
24894char (*f) () = shmat;
24895#endif
24896#ifdef __cplusplus
24897}
24898#endif
24899
24900int
24901main ()
24902{
24903return f != shmat;
24904 ;
24905 return 0;
24906}
24907_ACEOF
24908rm -f conftest.$ac_objext conftest$ac_exeext
24909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24910 (eval $ac_link) 2>&5
a848cd7e 24911 ac_status=$?
a848cd7e
SC
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); } &&
de59c161 24914 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916 (eval $ac_try) 2>&5
24917 ac_status=$?
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); }; }; then
24920 ac_cv_func_shmat=yes
24921else
24922 echo "$as_me: failed program was:" >&5
24923sed 's/^/| /' conftest.$ac_ext >&5
24924
24925ac_cv_func_shmat=no
24926fi
de59c161 24927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24928fi
24929echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24930echo "${ECHO_T}$ac_cv_func_shmat" >&6
24931
24932 if test $ac_cv_func_shmat = no; then
24933 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24934echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24935if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24937else
24938 ac_check_lib_save_LIBS=$LIBS
24939LIBS="-lipc $LIBS"
24940cat >conftest.$ac_ext <<_ACEOF
de59c161 24941#line $LINENO "configure"
a848cd7e
SC
24942/* confdefs.h. */
24943_ACEOF
24944cat confdefs.h >>conftest.$ac_ext
24945cat >>conftest.$ac_ext <<_ACEOF
24946/* end confdefs.h. */
24947
24948/* Override any gcc2 internal prototype to avoid an error. */
24949#ifdef __cplusplus
24950extern "C"
24951#endif
24952/* We use char because int might match the return type of a gcc2
24953 builtin and then its argument prototype would still apply. */
24954char shmat ();
24955int
24956main ()
24957{
24958shmat ();
24959 ;
24960 return 0;
24961}
24962_ACEOF
24963rm -f conftest.$ac_objext conftest$ac_exeext
24964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 24965 (eval $ac_link) 2>&5
a848cd7e 24966 ac_status=$?
a848cd7e
SC
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); } &&
de59c161 24969 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24972 ac_status=$?
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; }; then
24975 ac_cv_lib_ipc_shmat=yes
24976else
24977 echo "$as_me: failed program was:" >&5
24978sed 's/^/| /' conftest.$ac_ext >&5
24979
24980ac_cv_lib_ipc_shmat=no
24981fi
de59c161 24982rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24983LIBS=$ac_check_lib_save_LIBS
24984fi
24985echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24986echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24987if test $ac_cv_lib_ipc_shmat = yes; then
24988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24989fi
24990
24991 fi
24992 fi
24993
24994 # Check for libraries that X11R6 Xt/Xaw programs need.
24995 ac_save_LDFLAGS=$LDFLAGS
24996 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24997 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24998 # check for ICE first), but we must link in the order -lSM -lICE or
24999 # we get undefined symbols. So assume we have SM if we have ICE.
25000 # These have to be linked with before -lX11, unlike the other
25001 # libraries we check for below, so use a different variable.
25002 # John Interrante, Karl Berry
25003 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25004echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25005if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25006 echo $ECHO_N "(cached) $ECHO_C" >&6
25007else
25008 ac_check_lib_save_LIBS=$LIBS
25009LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25010cat >conftest.$ac_ext <<_ACEOF
de59c161 25011#line $LINENO "configure"
a848cd7e
SC
25012/* confdefs.h. */
25013_ACEOF
25014cat confdefs.h >>conftest.$ac_ext
25015cat >>conftest.$ac_ext <<_ACEOF
25016/* end confdefs.h. */
25017
25018/* Override any gcc2 internal prototype to avoid an error. */
25019#ifdef __cplusplus
25020extern "C"
25021#endif
25022/* We use char because int might match the return type of a gcc2
25023 builtin and then its argument prototype would still apply. */
25024char IceConnectionNumber ();
25025int
25026main ()
25027{
25028IceConnectionNumber ();
25029 ;
25030 return 0;
25031}
25032_ACEOF
25033rm -f conftest.$ac_objext conftest$ac_exeext
25034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 25035 (eval $ac_link) 2>&5
a848cd7e 25036 ac_status=$?
a848cd7e
SC
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } &&
de59c161 25039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25041 (eval $ac_try) 2>&5
25042 ac_status=$?
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); }; }; then
25045 ac_cv_lib_ICE_IceConnectionNumber=yes
25046else
25047 echo "$as_me: failed program was:" >&5
25048sed 's/^/| /' conftest.$ac_ext >&5
25049
25050ac_cv_lib_ICE_IceConnectionNumber=no
25051fi
de59c161 25052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25053LIBS=$ac_check_lib_save_LIBS
25054fi
25055echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25056echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25057if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25058 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25059fi
25060
25061 LDFLAGS=$ac_save_LDFLAGS
25062
25063fi
25064
25065
25066 if test "$no_x" = "yes"; then
25067 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25068echo "$as_me: error: X11 not found" >&2;}
25069 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25070 fi
25071
25072 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25073 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
25074 AFMINSTALL=afminstall
25075 COMPILED_X_PROGRAM=0
25076
25077 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25078echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25079
25080ac_find_includes=
25081for ac_dir in $SEARCH_INCLUDE /usr/include;
25082 do
25083 if test -f "$ac_dir/Xm/Xm.h"; then
25084 ac_find_includes=$ac_dir
25085 break
25086 fi
25087 done
25088
25089 if test "$ac_find_includes" != "" ; then
25090 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25091echo "${ECHO_T}found in $ac_find_includes" >&6
25092
25093 if test "x$ac_find_includes" = "x/usr/include"; then
25094 ac_path_to_include=""
25095 else
25096 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25097 result=$?
25098 if test $result = 0; then
25099 ac_path_to_include=""
25100 else
25101 ac_path_to_include=" -I$ac_find_includes"
25102 fi
25103 fi
25104
25105 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25106 else
25107 cat >conftest.$ac_ext <<_ACEOF
de59c161 25108#line $LINENO "configure"
a848cd7e
SC
25109/* confdefs.h. */
25110_ACEOF
25111cat confdefs.h >>conftest.$ac_ext
25112cat >>conftest.$ac_ext <<_ACEOF
25113/* end confdefs.h. */
25114
25115 #include <Xm/Xm.h>
25116
25117int
25118main ()
25119{
25120
25121 int version;
25122 version = xmUseVersion;
25123
25124 ;
25125 return 0;
25126}
25127_ACEOF
25128rm -f conftest.$ac_objext
25129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 25130 (eval $ac_compile) 2>&5
a848cd7e 25131 ac_status=$?
a848cd7e
SC
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } &&
de59c161 25134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25137 ac_status=$?
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; }; then
25140
25141 echo "$as_me:$LINENO: result: found in default search path" >&5
25142echo "${ECHO_T}found in default search path" >&6
25143 COMPILED_X_PROGRAM=1
25144
25145else
25146 echo "$as_me: failed program was:" >&5
25147sed 's/^/| /' conftest.$ac_ext >&5
25148
25149
25150 echo "$as_me:$LINENO: result: no" >&5
25151echo "${ECHO_T}no" >&6
25152 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25153echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25154 { (exit 1); exit 1; }; }
25155
25156
25157fi
de59c161 25158rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25159 fi
25160
25161 if test "$COMPILED_X_PROGRAM" = 0; then
25162 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25163echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25164
25165ac_find_libraries=
25166for ac_dir in $SEARCH_LIB /usr/lib;
25167 do
25168 for ac_extension in a so sl dylib; do
25169 if test -f "$ac_dir/libXm.$ac_extension"; then
25170 ac_find_libraries=$ac_dir
25171 break 2
25172 fi
25173 done
25174 done
25175
25176 if test "$ac_find_libraries" != "" ; then
25177 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25178echo "${ECHO_T}found at $ac_find_libraries" >&6
25179
25180
25181 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25182 result=$?
25183 if test $result = 0; then
25184 ac_path_to_link=""
25185 else
25186 ac_path_to_link=" -L$ac_find_libraries"
25187 fi
25188
25189 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25190 else
25191 save_CFLAGS=$CFLAGS
25192 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25193
25194 cat >conftest.$ac_ext <<_ACEOF
de59c161 25195#line $LINENO "configure"
a848cd7e
SC
25196/* confdefs.h. */
25197_ACEOF
25198cat confdefs.h >>conftest.$ac_ext
25199cat >>conftest.$ac_ext <<_ACEOF
25200/* end confdefs.h. */
25201
25202 #include <Xm/Xm.h>
25203
25204int
25205main ()
25206{
25207
25208 int version;
25209 version = xmUseVersion;
25210
25211 ;
25212 return 0;
25213}
25214_ACEOF
25215rm -f conftest.$ac_objext
25216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 25217 (eval $ac_compile) 2>&5
a848cd7e 25218 ac_status=$?
a848cd7e
SC
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); } &&
de59c161 25221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25223 (eval $ac_try) 2>&5
25224 ac_status=$?
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); }; }; then
25227
25228 echo "$as_me:$LINENO: result: found in default search path" >&5
25229echo "${ECHO_T}found in default search path" >&6
25230 COMPILED_X_PROGRAM=1
25231
25232else
25233 echo "$as_me: failed program was:" >&5
25234sed 's/^/| /' conftest.$ac_ext >&5
25235
25236
25237 echo "$as_me:$LINENO: result: no" >&5
25238echo "${ECHO_T}no" >&6
25239 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25240echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25241 { (exit 1); exit 1; }; }
25242
25243
25244fi
de59c161 25245rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25246
25247 CFLAGS=$save_CFLAGS
25248 fi
25249 fi
25250
25251 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25252echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25253 libp_link=""
25254 libsm_ice_link=""
25255 libs_found=0
25256 for libp in "" " -lXp"; do
25257 if test "$libs_found" = "0"; then
25258 for libsm_ice in "" " -lSM -lICE"; do
25259 if test "$libs_found" = "0"; then
25260 save_LIBS="$LIBS"
25261 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25262 save_CFLAGS=$CFLAGS
25263 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25264
25265 cat >conftest.$ac_ext <<_ACEOF
de59c161 25266#line $LINENO "configure"
a848cd7e
SC
25267/* confdefs.h. */
25268_ACEOF
25269cat confdefs.h >>conftest.$ac_ext
25270cat >>conftest.$ac_ext <<_ACEOF
25271/* end confdefs.h. */
25272
25273 #include <Xm/Xm.h>
25274 #include <Xm/List.h>
25275
25276int
25277main ()
25278{
25279
25280 XmString string = NULL;
25281 Widget w = NULL;
25282 int position = 0;
25283 XmListAddItem(w, string, position);
25284
25285 ;
25286 return 0;
25287}
25288_ACEOF
25289rm -f conftest.$ac_objext conftest$ac_exeext
25290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 25291 (eval $ac_link) 2>&5
a848cd7e 25292 ac_status=$?
a848cd7e
SC
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } &&
de59c161 25295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25298 ac_status=$?
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; }; then
25301
25302 libp_link="$libp"
25303 libsm_ice_link="$libsm_ice"
25304 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25305echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25306 libs_found=1
25307
25308else
25309 echo "$as_me: failed program was:" >&5
25310sed 's/^/| /' conftest.$ac_ext >&5
25311
25312
25313
25314fi
de59c161 25315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25316
25317 LIBS="$save_LIBS"
25318 CFLAGS=$save_CFLAGS
25319 fi
25320 done
25321 fi
25322 done
25323
25324 if test "$libs_found" = "0"; then
25325 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25326echo "${ECHO_T}can't find the right libraries" >&6
25327 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25328echo "$as_me: error: can't link a simple motif program" >&2;}
25329 { (exit 1); exit 1; }; }
25330 fi
25331
25332 save_CFLAGS=$CFLAGS
25333 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25334 echo "$as_me:$LINENO: checking for Motif 2" >&5
25335echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25336 cat >conftest.$ac_ext <<_ACEOF
de59c161 25337#line $LINENO "configure"
a848cd7e
SC
25338/* confdefs.h. */
25339_ACEOF
25340cat confdefs.h >>conftest.$ac_ext
25341cat >>conftest.$ac_ext <<_ACEOF
25342/* end confdefs.h. */
25343
25344 #include <Xm/Xm.h>
25345
25346int
25347main ()
25348{
25349
25350 #if XmVersion < 2000
25351 #error "Not Motif 2"
25352 #endif
25353
25354 ;
25355 return 0;
25356}
25357_ACEOF
25358rm -f conftest.$ac_objext
25359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 25360 (eval $ac_compile) 2>&5
a848cd7e 25361 ac_status=$?
a848cd7e
SC
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); } &&
de59c161 25364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25367 ac_status=$?
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
25370
25371 cat >>confdefs.h <<\_ACEOF
25372#define __WXMOTIF20__ 1
25373_ACEOF
25374
25375 echo "$as_me:$LINENO: result: found" >&5
25376echo "${ECHO_T}found" >&6
25377
25378else
25379 echo "$as_me: failed program was:" >&5
25380sed 's/^/| /' conftest.$ac_ext >&5
25381
25382
25383 cat >>confdefs.h <<\_ACEOF
25384#define __WXMOTIF20__ 0
25385_ACEOF
25386
25387 echo "$as_me:$LINENO: result: not found" >&5
25388echo "${ECHO_T}not found" >&6
25389
25390fi
de59c161 25391rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25392 CFLAGS=$save_CFLAGS
25393
25394 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
25395 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
25396 TOOLKIT=MOTIF
25397 GUIDIST=MOTIF_DIST
25398 fi
25399
25400 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25401 if test "$wxUSE_LIBXPM" = "sys"; then
25402 echo "$as_me:$LINENO: checking for Xpm library" >&5
25403echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25404
25405ac_find_libraries=
25406for ac_dir in $SEARCH_LIB /usr/lib;
25407 do
25408 for ac_extension in a so sl dylib; do
25409 if test -f "$ac_dir/libXpm.$ac_extension"; then
25410 ac_find_libraries=$ac_dir
25411 break 2
25412 fi
25413 done
25414 done
25415
25416 if test "$ac_find_libraries" != "" ; then
25417
25418 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25419 result=$?
25420 if test $result = 0; then
25421 ac_path_to_link=""
25422 else
25423 ac_path_to_link=" -L$ac_find_libraries"
25424 fi
25425
25426 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25427 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25428echo "${ECHO_T}found at $ac_find_libraries" >&6
25429
25430 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25431echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25432if test "${wx_cv_x11_xpm_h+set}" = set; then
25433 echo $ECHO_N "(cached) $ECHO_C" >&6
25434else
25435
25436 save_CFLAGS=$CFLAGS
25437 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25438
25439 cat >conftest.$ac_ext <<_ACEOF
de59c161 25440#line $LINENO "configure"
a848cd7e
SC
25441/* confdefs.h. */
25442_ACEOF
25443cat confdefs.h >>conftest.$ac_ext
25444cat >>conftest.$ac_ext <<_ACEOF
25445/* end confdefs.h. */
25446
25447 #include <X11/xpm.h>
25448
25449int
25450main ()
25451{
25452
25453 int version;
25454 version = XpmLibraryVersion();
25455
25456 ;
25457 return 0;
25458}
25459_ACEOF
25460rm -f conftest.$ac_objext
25461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 25462 (eval $ac_compile) 2>&5
a848cd7e 25463 ac_status=$?
a848cd7e
SC
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } &&
de59c161 25466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468 (eval $ac_try) 2>&5
25469 ac_status=$?
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); }; }; then
25472 wx_cv_x11_xpm_h=yes
25473else
25474 echo "$as_me: failed program was:" >&5
25475sed 's/^/| /' conftest.$ac_ext >&5
25476
25477wx_cv_x11_xpm_h=no
25478
25479fi
de59c161 25480rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25481
25482 CFLAGS=$save_CFLAGS
25483
25484
25485fi
25486echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25487echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25488
25489 if test $wx_cv_x11_xpm_h = "yes"; then
25490 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
25491 cat >>confdefs.h <<\_ACEOF
25492#define wxHAVE_LIB_XPM 1
25493_ACEOF
25494
25495 else
25496 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25497echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25498 fi
25499 fi
25500
25501 fi
25502
25503 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25504echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25505if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25506 echo $ECHO_N "(cached) $ECHO_C" >&6
25507else
25508 ac_check_lib_save_LIBS=$LIBS
25509LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25510cat >conftest.$ac_ext <<_ACEOF
de59c161 25511#line $LINENO "configure"
a848cd7e
SC
25512/* confdefs.h. */
25513_ACEOF
25514cat confdefs.h >>conftest.$ac_ext
25515cat >>conftest.$ac_ext <<_ACEOF
25516/* end confdefs.h. */
25517
25518/* Override any gcc2 internal prototype to avoid an error. */
25519#ifdef __cplusplus
25520extern "C"
25521#endif
25522/* We use char because int might match the return type of a gcc2
25523 builtin and then its argument prototype would still apply. */
25524char XShapeQueryExtension ();
25525int
25526main ()
25527{
25528XShapeQueryExtension ();
25529 ;
25530 return 0;
25531}
25532_ACEOF
25533rm -f conftest.$ac_objext conftest$ac_exeext
25534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 25535 (eval $ac_link) 2>&5
a848cd7e 25536 ac_status=$?
a848cd7e
SC
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); } &&
de59c161 25539 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25542 ac_status=$?
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; }; then
25545 ac_cv_lib_Xext_XShapeQueryExtension=yes
25546else
25547 echo "$as_me: failed program was:" >&5
25548sed 's/^/| /' conftest.$ac_ext >&5
25549
25550ac_cv_lib_Xext_XShapeQueryExtension=no
25551fi
de59c161 25552rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25553LIBS=$ac_check_lib_save_LIBS
25554fi
25555echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25556echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25557if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25558
25559 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25560 wxHAVE_XEXT_LIB=1
25561
25562fi
25563
25564
25565 if test "$wxHAVE_XEXT_LIB" = 1; then
25566 save_CFLAGS="$CFLAGS"
25567 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25568
25569 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
25570echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
25571 cat >conftest.$ac_ext <<_ACEOF
de59c161 25572#line $LINENO "configure"
a848cd7e
SC
25573/* confdefs.h. */
25574_ACEOF
25575cat confdefs.h >>conftest.$ac_ext
25576cat >>conftest.$ac_ext <<_ACEOF
25577/* end confdefs.h. */
25578
25579 #include <X11/Xlib.h>
25580 #include <X11/extensions/shape.h>
25581
25582int
25583main ()
25584{
25585
25586 int dummy1, dummy2;
25587 XShapeQueryExtension((Display*)NULL,
25588 (int*)NULL, (int*)NULL);
25589
25590 ;
25591 return 0;
25592}
25593_ACEOF
25594rm -f conftest.$ac_objext
25595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 25596 (eval $ac_compile) 2>&5
a848cd7e 25597 ac_status=$?
a848cd7e
SC
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } &&
de59c161 25600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25602 (eval $ac_try) 2>&5
25603 ac_status=$?
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); }; }; then
25606
25607 cat >>confdefs.h <<\_ACEOF
25608#define HAVE_XSHAPE 1
25609_ACEOF
25610
25611 echo "$as_me:$LINENO: result: found" >&5
25612echo "${ECHO_T}found" >&6
25613
25614else
25615 echo "$as_me: failed program was:" >&5
25616sed 's/^/| /' conftest.$ac_ext >&5
25617
25618
25619 echo "$as_me:$LINENO: result: not found" >&5
25620echo "${ECHO_T}not found" >&6
25621
25622fi
de59c161 25623rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25624 CFLAGS="$save_CFLAGS"
25625
25626 fi
25627 fi
25628
25629 if test "$wxUSE_MAC" = 1; then
25630 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
25631echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
25632 if test "$GCC" = yes; then
25633 echo "$as_me:$LINENO: result: gcc" >&5
25634echo "${ECHO_T}gcc" >&6
25635 CPPFLAGS_PASCAL="-fpascal-strings"
25636 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
25637 echo "$as_me:$LINENO: result: xlc" >&5
25638echo "${ECHO_T}xlc" >&6
25639 CPPFLAGS_PASCAL="-qmacpstr"
25640 else
25641 echo "$as_me:$LINENO: result: none" >&5
25642echo "${ECHO_T}none" >&6
25643 fi
25644
25645 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
25646
25647 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
25648 TOOLKIT=MAC
25649 GUIDIST=MACX_DIST
25650 WXBASEPORT="_carbon"
25651 fi
25652
25653 if test "$wxUSE_COCOA" = 1; then
25654 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
25655 TOOLKIT=COCOA
25656 GUIDIST=COCOA_DIST
25657 fi
25658
25659 if test "$wxUSE_PM" = 1; then
25660 TOOLKIT=PM
de59c161
RD
25661 GUIDIST=PM_DIST
25662 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
25663echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
25664if test "${wx_cv_spbcdata+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25666else
25667
25668 cat >conftest.$ac_ext <<_ACEOF
25669#line $LINENO "configure"
25670/* confdefs.h. */
25671_ACEOF
25672cat confdefs.h >>conftest.$ac_ext
25673cat >>conftest.$ac_ext <<_ACEOF
25674/* end confdefs.h. */
25675
25676 #define INCL_PM
25677 #include <os2.h>
25678
25679int
25680main ()
25681{
25682
25683 SPBCDATA test;
25684
25685 ;
25686 return 0;
25687}
25688_ACEOF
25689rm -f conftest.$ac_objext
25690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25691 (eval $ac_compile) 2>&5
25692 ac_status=$?
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
25695 { ac_try='test -s conftest.$ac_objext'
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; }; then
25701 wx_cv_spbcdata=yes
25702else
25703 echo "$as_me: failed program was:" >&5
25704sed 's/^/| /' conftest.$ac_ext >&5
25705
25706wx_cv_spbcdata=no
25707
25708fi
25709rm -f conftest.$ac_objext conftest.$ac_ext
25710
25711
25712fi
25713echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
25714echo "${ECHO_T}$wx_cv_spbcdata" >&6
25715
25716 if test $wx_cv_spbcdata = "yes"; then
25717 cat >>confdefs.h <<\_ACEOF
25718#define HAVE_SPBCDATA 1
25719_ACEOF
25720
25721 fi
a848cd7e
SC
25722 fi
25723
25724 if test "$TOOLKIT" = "PM" ; then
25725 TOOLKIT_DIR="os2"
25726 else
25727 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
25728 fi
25729
25730 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
25731
25732 if test "$wxUSE_UNIVERSAL" = "yes"; then
25733 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
25734
25735 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
25736 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
25737
25738 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
25739 if test "$wxUSE_X11" = 1; then
25740 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
25741 else
25742 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
25743 fi
25744 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
25745 WIDGET_SET=univ
25746 else
25747 ALL_OBJECTS="\$(GUIOBJS)"
25748 ALL_SOURCES="\$(ALL_SOURCES)"
25749 ALL_HEADERS="\$(ALL_HEADERS)"
25750 fi
25751
25752 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
25753
25754 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
25755 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
25756 fi
25757
25758 if test "$wxUSE_HTML" = "yes"; then
25759 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
25760 fi
25761
25762 if test "$wxUSE_LIBJPEG" = "builtin" ; then
25763 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
25764 fi
25765 if test "$wxUSE_LIBTIFF" = "builtin" ; then
25766 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
25767 fi
25768 if test "$wxUSE_LIBPNG" = "builtin" ; then
25769 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
25770 fi
25771
25772 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
25773 DISTDIR="wx\$(TOOLKIT)"
25774else
25775 USE_GUI=0
25776
25777 TOOLKIT_DIR="base"
25778
25779 if test "$USE_WIN32" = 1 ; then
25780 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
25781 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
25782
25783 TOOLKIT="MSW"
25784 else
25785 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
25786 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
25787 fi
25788
25789 ALL_SOURCES="\$(ALL_SOURCES)"
25790 ALL_HEADERS="\$(ALL_HEADERS)"
25791
25792 PORT_FILES="\${top_srcdir}/src/files.lst"
25793
25794 GUIDIST="BASE_DIST"
25795 DISTDIR="wxBase"
25796fi
25797
25798
25799
25800
25801IODBC_C_SRC=""
25802
25803
25804if test "$TOOLKIT" != "MSW" ; then
25805
25806 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
25807
25808 if test "${ac_cv_header_sql_h+set}" = set; then
25809 echo "$as_me:$LINENO: checking for sql.h" >&5
25810echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25811if test "${ac_cv_header_sql_h+set}" = set; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
25813fi
25814echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25815echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25816else
25817 # Is the header compilable?
25818echo "$as_me:$LINENO: checking sql.h usability" >&5
25819echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
25820cat >conftest.$ac_ext <<_ACEOF
de59c161 25821#line $LINENO "configure"
a848cd7e
SC
25822/* confdefs.h. */
25823_ACEOF
25824cat confdefs.h >>conftest.$ac_ext
25825cat >>conftest.$ac_ext <<_ACEOF
25826/* end confdefs.h. */
25827$ac_includes_default
25828#include <sql.h>
25829_ACEOF
25830rm -f conftest.$ac_objext
25831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 25832 (eval $ac_compile) 2>&5
a848cd7e 25833 ac_status=$?
a848cd7e
SC
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); } &&
de59c161 25836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838 (eval $ac_try) 2>&5
25839 ac_status=$?
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; }; then
25842 ac_header_compiler=yes
25843else
25844 echo "$as_me: failed program was:" >&5
25845sed 's/^/| /' conftest.$ac_ext >&5
25846
25847ac_header_compiler=no
25848fi
de59c161 25849rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25851echo "${ECHO_T}$ac_header_compiler" >&6
25852
25853# Is the header present?
25854echo "$as_me:$LINENO: checking sql.h presence" >&5
25855echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
25856cat >conftest.$ac_ext <<_ACEOF
de59c161 25857#line $LINENO "configure"
a848cd7e
SC
25858/* confdefs.h. */
25859_ACEOF
25860cat confdefs.h >>conftest.$ac_ext
25861cat >>conftest.$ac_ext <<_ACEOF
25862/* end confdefs.h. */
25863#include <sql.h>
25864_ACEOF
25865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25867 ac_status=$?
25868 grep -v '^ *+' conftest.er1 >conftest.err
25869 rm -f conftest.er1
25870 cat conftest.err >&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } >/dev/null; then
25873 if test -s conftest.err; then
25874 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
25875 else
25876 ac_cpp_err=
25877 fi
25878else
25879 ac_cpp_err=yes
25880fi
25881if test -z "$ac_cpp_err"; then
25882 ac_header_preproc=yes
25883else
25884 echo "$as_me: failed program was:" >&5
25885sed 's/^/| /' conftest.$ac_ext >&5
25886
25887 ac_header_preproc=no
25888fi
25889rm -f conftest.err conftest.$ac_ext
25890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25891echo "${ECHO_T}$ac_header_preproc" >&6
25892
25893# So? What about this header?
de59c161
RD
25894case $ac_header_compiler:$ac_header_preproc in
25895 yes:no )
a848cd7e
SC
25896 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25897echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
25898 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25899echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25900 (
25901 cat <<\_ASBOX
25902## ------------------------------------ ##
25903## Report this to bug-autoconf@gnu.org. ##
25904## ------------------------------------ ##
25905_ASBOX
25906 ) |
25907 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 25908 ;;
de59c161 25909 no:yes )
a848cd7e
SC
25910 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
25911echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
de59c161
RD
25912 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
25913echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
25914 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25915echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
25916 (
25917 cat <<\_ASBOX
de59c161
RD
25918## ------------------------------------ ##
25919## Report this to bug-autoconf@gnu.org. ##
25920## ------------------------------------ ##
a848cd7e
SC
25921_ASBOX
25922 ) |
25923 sed "s/^/$as_me: WARNING: /" >&2
25924 ;;
25925esac
25926echo "$as_me:$LINENO: checking for sql.h" >&5
25927echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25928if test "${ac_cv_header_sql_h+set}" = set; then
25929 echo $ECHO_N "(cached) $ECHO_C" >&6
25930else
25931 ac_cv_header_sql_h=$ac_header_preproc
25932fi
25933echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25934echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25935
25936fi
25937if test $ac_cv_header_sql_h = yes; then
25938 found_sql_h=1
25939fi
25940
25941
25942 if test "x$found_sql_h" = "x1" ; then
25943 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
25944echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
25945if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
25946 echo $ECHO_N "(cached) $ECHO_C" >&6
25947else
25948 ac_check_lib_save_LIBS=$LIBS
25949LIBS="-liodbc $LIBS"
25950cat >conftest.$ac_ext <<_ACEOF
de59c161 25951#line $LINENO "configure"
a848cd7e
SC
25952/* confdefs.h. */
25953_ACEOF
25954cat confdefs.h >>conftest.$ac_ext
25955cat >>conftest.$ac_ext <<_ACEOF
25956/* end confdefs.h. */
25957
25958/* Override any gcc2 internal prototype to avoid an error. */
25959#ifdef __cplusplus
25960extern "C"
25961#endif
25962/* We use char because int might match the return type of a gcc2
25963 builtin and then its argument prototype would still apply. */
25964char SQLAllocEnv ();
25965int
25966main ()
25967{
25968SQLAllocEnv ();
25969 ;
25970 return 0;
25971}
25972_ACEOF
25973rm -f conftest.$ac_objext conftest$ac_exeext
25974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 25975 (eval $ac_link) 2>&5
a848cd7e 25976 ac_status=$?
a848cd7e
SC
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } &&
de59c161 25979 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981 (eval $ac_try) 2>&5
25982 ac_status=$?
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); }; }; then
25985 ac_cv_lib_iodbc_SQLAllocEnv=yes
25986else
25987 echo "$as_me: failed program was:" >&5
25988sed 's/^/| /' conftest.$ac_ext >&5
25989
25990ac_cv_lib_iodbc_SQLAllocEnv=no
25991fi
de59c161 25992rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25993LIBS=$ac_check_lib_save_LIBS
25994fi
25995echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
25996echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
25997if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
25998 ODBC_LINK=" -liodbc"
25999else
26000
26001 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26002echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26003if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26004 echo $ECHO_N "(cached) $ECHO_C" >&6
26005else
26006 ac_check_lib_save_LIBS=$LIBS
26007LIBS="-lunixodbc $LIBS"
26008cat >conftest.$ac_ext <<_ACEOF
de59c161 26009#line $LINENO "configure"
a848cd7e
SC
26010/* confdefs.h. */
26011_ACEOF
26012cat confdefs.h >>conftest.$ac_ext
26013cat >>conftest.$ac_ext <<_ACEOF
26014/* end confdefs.h. */
26015
26016/* Override any gcc2 internal prototype to avoid an error. */
26017#ifdef __cplusplus
26018extern "C"
26019#endif
26020/* We use char because int might match the return type of a gcc2
26021 builtin and then its argument prototype would still apply. */
26022char SQLAllocEnv ();
26023int
26024main ()
26025{
26026SQLAllocEnv ();
26027 ;
26028 return 0;
26029}
26030_ACEOF
26031rm -f conftest.$ac_objext conftest$ac_exeext
26032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 26033 (eval $ac_link) 2>&5
a848cd7e 26034 ac_status=$?
a848cd7e
SC
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); } &&
de59c161 26037 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039 (eval $ac_try) 2>&5
26040 ac_status=$?
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); }; }; then
26043 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26044else
26045 echo "$as_me: failed program was:" >&5
26046sed 's/^/| /' conftest.$ac_ext >&5
26047
26048ac_cv_lib_unixodbc_SQLAllocEnv=no
26049fi
de59c161 26050rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26051LIBS=$ac_check_lib_save_LIBS
26052fi
26053echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26054echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26055if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26056 ODBC_LINK=" -lunixodbc"
26057else
26058
26059 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26060echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26061if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26062 echo $ECHO_N "(cached) $ECHO_C" >&6
26063else
26064 ac_check_lib_save_LIBS=$LIBS
26065LIBS="-lodbc $LIBS"
26066cat >conftest.$ac_ext <<_ACEOF
de59c161 26067#line $LINENO "configure"
a848cd7e
SC
26068/* confdefs.h. */
26069_ACEOF
26070cat confdefs.h >>conftest.$ac_ext
26071cat >>conftest.$ac_ext <<_ACEOF
26072/* end confdefs.h. */
26073
26074/* Override any gcc2 internal prototype to avoid an error. */
26075#ifdef __cplusplus
26076extern "C"
26077#endif
26078/* We use char because int might match the return type of a gcc2
26079 builtin and then its argument prototype would still apply. */
26080char SQLAllocEnv ();
26081int
26082main ()
26083{
26084SQLAllocEnv ();
26085 ;
26086 return 0;
26087}
26088_ACEOF
26089rm -f conftest.$ac_objext conftest$ac_exeext
26090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 26091 (eval $ac_link) 2>&5
a848cd7e 26092 ac_status=$?
a848cd7e
SC
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } &&
de59c161 26095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26097 (eval $ac_try) 2>&5
26098 ac_status=$?
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); }; }; then
26101 ac_cv_lib_odbc_SQLAllocEnv=yes
26102else
26103 echo "$as_me: failed program was:" >&5
26104sed 's/^/| /' conftest.$ac_ext >&5
26105
26106ac_cv_lib_odbc_SQLAllocEnv=no
26107fi
de59c161 26108rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26109LIBS=$ac_check_lib_save_LIBS
26110fi
26111echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26112echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26113if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26114 ODBC_LINK=" -lodbc"
26115fi
26116
26117
26118fi
26119
26120
26121fi
26122
26123 fi
26124 if test "x$ODBC_LINK" = "x" ; then
26125 if test "$wxUSE_ODBC" = "sys" ; then
26126 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26127echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26128 { (exit 1); exit 1; }; }
26129 else
26130 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26131echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26132 wxUSE_ODBC=builtin
26133 fi
26134 else
26135 wxUSE_ODBC=sys
26136 fi
26137 fi
26138 if test "$wxUSE_ODBC" != "no" ; then
26139 cat >>confdefs.h <<\_ACEOF
26140#define wxUSE_ODBC 1
26141_ACEOF
26142
26143 if test "$wxUSE_ODBC" = "builtin" ; then
26144 cat >>confdefs.h <<\_ACEOF
26145#define wxUSE_BUILTIN_IODBC 1
26146_ACEOF
26147
26148 fi
26149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26150
26151 WXODBCFLAG="-D_IODBC_"
26152 fi
26153fi
26154
26155if test "$wxUSE_REGEX" = "builtin" ; then
26156 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26157fi
26158if test "$wxUSE_ZLIB" = "builtin" ; then
26159 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26160fi
26161
01cb68df 26162
a848cd7e
SC
26163if test "$wxUSE_DISPLAY" = "yes"; then
26164 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
26165 echo "$as_me:$LINENO: checking for Xinerama" >&5
26166echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26167
26168ac_find_libraries=
26169for ac_dir in $SEARCH_LIB /usr/lib;
26170 do
26171 for ac_extension in a so sl dylib; do
26172 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26173 ac_find_libraries=$ac_dir
26174 break 2
26175 fi
26176 done
26177 done
26178
26179 if test "$ac_find_libraries" != "" ; then
26180
26181 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26182 result=$?
26183 if test $result = 0; then
26184 ac_path_to_link=""
26185 else
26186 ac_path_to_link=" -L$ac_find_libraries"
26187 fi
26188
26189 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26190 LDFLAGS="$LDFLAGS $ac_path_to_link"
26191 fi
26192 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26193 echo "$as_me:$LINENO: result: yes" >&5
26194echo "${ECHO_T}yes" >&6
26195
26196 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26197echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26198
26199ac_find_libraries=
26200for ac_dir in $SEARCH_LIB /usr/lib;
26201 do
26202 for ac_extension in a so sl dylib; do
26203 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26204 ac_find_libraries=$ac_dir
26205 break 2
26206 fi
26207 done
26208 done
26209
26210 if test "$ac_find_libraries" != "" ; then
26211 echo "$as_me:$LINENO: result: yes" >&5
26212echo "${ECHO_T}yes" >&6
26213
26214for ac_header in X11/extensions/xf86vmode.h
26215do
26216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26217echo "$as_me:$LINENO: checking for $ac_header" >&5
26218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26219if eval "test \"\${$as_ac_Header+set}\" = set"; then
26220 echo $ECHO_N "(cached) $ECHO_C" >&6
26221else
26222 cat >conftest.$ac_ext <<_ACEOF
de59c161 26223#line $LINENO "configure"
a848cd7e
SC
26224/* confdefs.h. */
26225_ACEOF
26226cat confdefs.h >>conftest.$ac_ext
26227cat >>conftest.$ac_ext <<_ACEOF
26228/* end confdefs.h. */
26229
26230 #if HAVE_X11_XLIB_H
26231 #include <X11/Xlib.h>
26232 #endif
26233
26234
26235#include <$ac_header>
26236_ACEOF
26237rm -f conftest.$ac_objext
26238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 26239 (eval $ac_compile) 2>&5
a848cd7e 26240 ac_status=$?
a848cd7e
SC
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } &&
de59c161 26243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26246 ac_status=$?
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; }; then
26249 eval "$as_ac_Header=yes"
26250else
26251 echo "$as_me: failed program was:" >&5
26252sed 's/^/| /' conftest.$ac_ext >&5
26253
26254eval "$as_ac_Header=no"
26255fi
de59c161 26256rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26257fi
26258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26260if test `eval echo '${'$as_ac_Header'}'` = yes; then
26261 cat >>confdefs.h <<_ACEOF
26262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26263_ACEOF
26264
26265 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26266
26267fi
26268
26269done
26270
26271 else
26272 echo "$as_me:$LINENO: result: no" >&5
26273echo "${ECHO_T}no" >&6
26274 fi
26275
26276 else
26277 echo "$as_me:$LINENO: result: no" >&5
26278echo "${ECHO_T}no" >&6
dcc1b6ad
VS
26279 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
26280echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
26281 wxUSE_DISPLAY="no"
26282 fi
01cb68df
RG
26283 elif test "$wxUSE_MSW" = 1; then
26284
26285
26286for ac_header in multimon.h ddraw.h
26287do
26288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26289if eval "test \"\${$as_ac_Header+set}\" = set"; then
26290 echo "$as_me:$LINENO: checking for $ac_header" >&5
26291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26292if eval "test \"\${$as_ac_Header+set}\" = set"; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26294fi
26295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26297else
26298 # Is the header compilable?
26299echo "$as_me:$LINENO: checking $ac_header usability" >&5
26300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26301cat >conftest.$ac_ext <<_ACEOF
de59c161 26302#line $LINENO "configure"
01cb68df
RG
26303/* confdefs.h. */
26304_ACEOF
26305cat confdefs.h >>conftest.$ac_ext
26306cat >>conftest.$ac_ext <<_ACEOF
26307/* end confdefs.h. */
26308$ac_includes_default
26309#include <$ac_header>
26310_ACEOF
26311rm -f conftest.$ac_objext
26312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 26313 (eval $ac_compile) 2>&5
01cb68df 26314 ac_status=$?
01cb68df
RG
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); } &&
de59c161 26317 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; }; then
26323 ac_header_compiler=yes
26324else
26325 echo "$as_me: failed program was:" >&5
26326sed 's/^/| /' conftest.$ac_ext >&5
26327
26328ac_header_compiler=no
26329fi
de59c161 26330rm -f conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
26331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26332echo "${ECHO_T}$ac_header_compiler" >&6
26333
26334# Is the header present?
26335echo "$as_me:$LINENO: checking $ac_header presence" >&5
26336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26337cat >conftest.$ac_ext <<_ACEOF
de59c161 26338#line $LINENO "configure"
01cb68df
RG
26339/* confdefs.h. */
26340_ACEOF
26341cat confdefs.h >>conftest.$ac_ext
26342cat >>conftest.$ac_ext <<_ACEOF
26343/* end confdefs.h. */
26344#include <$ac_header>
26345_ACEOF
26346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26348 ac_status=$?
26349 grep -v '^ *+' conftest.er1 >conftest.err
26350 rm -f conftest.er1
26351 cat conftest.err >&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); } >/dev/null; then
26354 if test -s conftest.err; then
26355 ac_cpp_err=$ac_c_preproc_warn_flag
01cb68df
RG
26356 else
26357 ac_cpp_err=
26358 fi
26359else
26360 ac_cpp_err=yes
26361fi
26362if test -z "$ac_cpp_err"; then
26363 ac_header_preproc=yes
26364else
26365 echo "$as_me: failed program was:" >&5
26366sed 's/^/| /' conftest.$ac_ext >&5
26367
26368 ac_header_preproc=no
26369fi
26370rm -f conftest.err conftest.$ac_ext
26371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26372echo "${ECHO_T}$ac_header_preproc" >&6
26373
26374# So? What about this header?
de59c161
RD
26375case $ac_header_compiler:$ac_header_preproc in
26376 yes:no )
01cb68df
RG
26377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
26379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26381 (
26382 cat <<\_ASBOX
26383## ------------------------------------ ##
26384## Report this to bug-autoconf@gnu.org. ##
26385## ------------------------------------ ##
26386_ASBOX
26387 ) |
26388 sed "s/^/$as_me: WARNING: /" >&2
01cb68df 26389 ;;
de59c161 26390 no:yes )
01cb68df
RG
26391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
26393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26394echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
01cb68df
RG
26395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
01cb68df
RG
26397 (
26398 cat <<\_ASBOX
de59c161
RD
26399## ------------------------------------ ##
26400## Report this to bug-autoconf@gnu.org. ##
26401## ------------------------------------ ##
01cb68df
RG
26402_ASBOX
26403 ) |
26404 sed "s/^/$as_me: WARNING: /" >&2
26405 ;;
26406esac
26407echo "$as_me:$LINENO: checking for $ac_header" >&5
26408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26409if eval "test \"\${$as_ac_Header+set}\" = set"; then
26410 echo $ECHO_N "(cached) $ECHO_C" >&6
26411else
de59c161 26412 eval "$as_ac_Header=$ac_header_preproc"
01cb68df
RG
26413fi
26414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26416
26417fi
26418if test `eval echo '${'$as_ac_Header'}'` = yes; then
26419 cat >>confdefs.h <<_ACEOF
26420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26421_ACEOF
26422
26423else
26424
26425 wxUSE_DISPLAY="no"
dcc1b6ad
VS
26426 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
26427echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
26428
26429fi
26430
26431done
26432
a848cd7e
SC
26433 fi
26434fi
26435
26436
26437USE_OPENGL=0
26438if test "$wxUSE_OPENGL" = "yes"; then
26439 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26440 OPENGL_LIBS="-framework OpenGL -framework AGL"
26441 elif test "$wxUSE_MSW" = 1; then
26442 OPENGL_LIBS="-lopengl32 -lglu32"
26443 else
26444
26445
26446ac_find_includes=
26447for ac_dir in $SEARCH_INCLUDE /usr/include;
26448 do
26449 if test -f "$ac_dir/GL/gl.h"; then
26450 ac_find_includes=$ac_dir
26451 break
26452 fi
26453 done
26454
26455 if test "$ac_find_includes" != "" ; then
26456 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26457echo "${ECHO_T}found in $ac_find_includes" >&6
26458
26459 if test "x$ac_find_includes" = "x/usr/include"; then
26460 ac_path_to_include=""
26461 else
26462 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
26463 result=$?
26464 if test $result = 0; then
26465 ac_path_to_include=""
26466 else
26467 ac_path_to_include=" -I$ac_find_includes"
26468 fi
26469 fi
26470
26471 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
26472 fi
26473
26474 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26475 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26476echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26477if test "${ac_cv_header_GL_gl_h+set}" = set; then
26478 echo $ECHO_N "(cached) $ECHO_C" >&6
26479fi
26480echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26481echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26482else
26483 # Is the header compilable?
26484echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26485echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26486cat >conftest.$ac_ext <<_ACEOF
de59c161 26487#line $LINENO "configure"
a848cd7e
SC
26488/* confdefs.h. */
26489_ACEOF
26490cat confdefs.h >>conftest.$ac_ext
26491cat >>conftest.$ac_ext <<_ACEOF
26492/* end confdefs.h. */
26493$ac_includes_default
26494#include <GL/gl.h>
26495_ACEOF
26496rm -f conftest.$ac_objext
26497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 26498 (eval $ac_compile) 2>&5
a848cd7e 26499 ac_status=$?
a848cd7e
SC
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); } &&
de59c161 26502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504 (eval $ac_try) 2>&5
26505 ac_status=$?
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); }; }; then
26508 ac_header_compiler=yes
26509else
26510 echo "$as_me: failed program was:" >&5
26511sed 's/^/| /' conftest.$ac_ext >&5
26512
26513ac_header_compiler=no
26514fi
de59c161 26515rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26517echo "${ECHO_T}$ac_header_compiler" >&6
26518
26519# Is the header present?
26520echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26521echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26522cat >conftest.$ac_ext <<_ACEOF
de59c161 26523#line $LINENO "configure"
a848cd7e
SC
26524/* confdefs.h. */
26525_ACEOF
26526cat confdefs.h >>conftest.$ac_ext
26527cat >>conftest.$ac_ext <<_ACEOF
26528/* end confdefs.h. */
26529#include <GL/gl.h>
26530_ACEOF
26531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26533 ac_status=$?
26534 grep -v '^ *+' conftest.er1 >conftest.err
26535 rm -f conftest.er1
26536 cat conftest.err >&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); } >/dev/null; then
26539 if test -s conftest.err; then
26540 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
26541 else
26542 ac_cpp_err=
26543 fi
26544else
26545 ac_cpp_err=yes
26546fi
26547if test -z "$ac_cpp_err"; then
26548 ac_header_preproc=yes
26549else
26550 echo "$as_me: failed program was:" >&5
26551sed 's/^/| /' conftest.$ac_ext >&5
26552
26553 ac_header_preproc=no
26554fi
26555rm -f conftest.err conftest.$ac_ext
26556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26557echo "${ECHO_T}$ac_header_preproc" >&6
26558
26559# So? What about this header?
de59c161
RD
26560case $ac_header_compiler:$ac_header_preproc in
26561 yes:no )
a848cd7e
SC
26562 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26563echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
26564 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26565echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
26566 (
26567 cat <<\_ASBOX
26568## ------------------------------------ ##
26569## Report this to bug-autoconf@gnu.org. ##
26570## ------------------------------------ ##
26571_ASBOX
26572 ) |
26573 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 26574 ;;
de59c161 26575 no:yes )
a848cd7e
SC
26576 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26577echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
de59c161
RD
26578 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
26579echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
26580 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26581echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
26582 (
26583 cat <<\_ASBOX
de59c161
RD
26584## ------------------------------------ ##
26585## Report this to bug-autoconf@gnu.org. ##
26586## ------------------------------------ ##
a848cd7e
SC
26587_ASBOX
26588 ) |
26589 sed "s/^/$as_me: WARNING: /" >&2
26590 ;;
26591esac
26592echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26593echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26594if test "${ac_cv_header_GL_gl_h+set}" = set; then
26595 echo $ECHO_N "(cached) $ECHO_C" >&6
26596else
26597 ac_cv_header_GL_gl_h=$ac_header_preproc
26598fi
26599echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26600echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26601
26602fi
26603if test $ac_cv_header_GL_gl_h = yes; then
26604
26605 found_gl=0
26606
26607 echo "$as_me:$LINENO: checking for -lGL" >&5
26608echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
26609
26610ac_find_libraries=
26611for ac_dir in $SEARCH_LIB /usr/lib;
26612 do
26613 for ac_extension in a so sl dylib; do
26614 if test -f "$ac_dir/libGL.$ac_extension"; then
26615 ac_find_libraries=$ac_dir
26616 break 2
26617 fi
26618 done
26619 done
26620
26621 if test "$ac_find_libraries" != "" ; then
26622
26623 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26624 result=$?
26625 if test $result = 0; then
26626 ac_path_to_link=""
26627 else
26628 ac_path_to_link=" -L$ac_find_libraries"
26629 fi
26630
26631 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26632 LDFLAGS_GL="$ac_path_to_link"
26633 fi
26634
26635
26636ac_find_libraries=
26637for ac_dir in $SEARCH_LIB /usr/lib;
26638 do
26639 for ac_extension in a so sl dylib; do
26640 if test -f "$ac_dir/libGLU.$ac_extension"; then
26641 ac_find_libraries=$ac_dir
26642 break 2
26643 fi
26644 done
26645 done
26646
26647 if test "$ac_find_libraries" != "" ; then
26648
26649 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26650 result=$?
26651 if test $result = 0; then
26652 ac_path_to_link=""
26653 else
26654 ac_path_to_link=" -L$ac_find_libraries"
26655 fi
26656
26657 if test "$ac_path_to_link" != " -L/usr/lib" -a \
26658 "$ac_path_to_link" != "$LDFLAGS_GL"; then
26659 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
26660 fi
26661
26662 found_gl=1
26663 OPENGL_LIBS="-lGL -lGLU"
26664 echo "$as_me:$LINENO: result: yes" >&5
26665echo "${ECHO_T}yes" >&6
26666 fi
26667 fi
26668
26669 if test "$found_gl" != 1; then
26670 echo "$as_me:$LINENO: result: no" >&5
26671echo "${ECHO_T}no" >&6
26672 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
26673echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
26674
26675ac_find_libraries=
26676for ac_dir in $SEARCH_LIB /usr/lib;
26677 do
26678 for ac_extension in a so sl dylib; do
26679 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
26680 ac_find_libraries=$ac_dir
26681 break 2
26682 fi
26683 done
26684 done
26685
26686 if test "$ac_find_libraries" != "" ; then
26687
26688 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26689 result=$?
26690 if test $result = 0; then
26691 ac_path_to_link=""
26692 else
26693 ac_path_to_link=" -L$ac_find_libraries"
26694 fi
26695
26696 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
26697 OPENGL_LIBS="-lMesaGL -lMesaGLU"
26698 echo "$as_me:$LINENO: result: yes" >&5
26699echo "${ECHO_T}yes" >&6
26700 else
26701 echo "$as_me:$LINENO: result: no" >&5
26702echo "${ECHO_T}no" >&6
26703 fi
26704 fi
26705
26706fi
26707
26708
26709
26710 if test "x$OPENGL_LIBS" = "x"; then
26711 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
26712echo "$as_me: error: OpenGL libraries not available" >&2;}
26713 { (exit 1); exit 1; }; }
26714 fi
26715 fi
26716
26717 if test "$wxUSE_OPENGL" = "yes"; then
26718 USE_OPENGL=1
26719 cat >>confdefs.h <<\_ACEOF
26720#define wxUSE_OPENGL 1
26721_ACEOF
26722
26723 cat >>confdefs.h <<\_ACEOF
26724#define wxUSE_GLCANVAS 1
26725_ACEOF
26726
26727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
26728 fi
26729fi
26730
26731if test -z "$TOOLKIT_VPATH" ; then
26732 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
26733fi
26734
26735if test -n "$TOOLKIT" ; then
26736 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
26737fi
26738
26739UNICODE=0
26740lib_unicode_suffix=
26741if test "$wxUSE_UNICODE" = "yes"; then
26742 lib_unicode_suffix=u
26743 UNICODE=1
26744fi
26745
26746lib_debug_suffix=
26747DEBUG_FLAG=0
26748if test "$wxUSE_DEBUG_FLAG" = "yes"; then
26749 lib_debug_suffix=d
26750 DEBUG_FLAG=1
26751fi
26752
26753DEBUG_INFO=0
26754if test "$wxUSE_DEBUG_INFO" = "yes"; then
26755 DEBUG_INFO=1
26756fi
26757
26758WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
26759
26760TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
26761TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
26762
26763if test "$cross_compiling" = "yes"; then
26764 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
26765 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
26766 HOST_SUFFIX="-${host_alias}"
26767fi
26768
26769WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
26770WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
26771WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
26772WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
26773
26774WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26775WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26776
26777WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
26778WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26779WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
26780WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26781
26782case "${host}" in
26783 *-*-cygwin* | *-*-mingw32* )
26784 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
26785 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26786 ;;
26787
26788 *-*-darwin* )
26789
26790 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26791 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26792
26793 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
26794 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26795 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
26796 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26797
26798 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26799 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
26800 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
26801 fi
26802 ;;
26803esac
26804
26805WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
26806WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
26807
26808WXCONFIG_LIBS="-l${WX_LIBRARY}"
26809WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
26810
26811if test "$wxUSE_OPENGL" = "yes"; then
26812 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
26813 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
26814fi
26815
26816
26817
26818if test "$wxUSE_SHARED" = "yes"; then
26819 case "${host}" in
26820 *-pc-msdosdjgpp )
26821 wxUSE_SHARED=no
26822 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
26823echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
26824 ;;
26825 esac
26826fi
26827
26828SHARED=0
26829if test "$wxUSE_SHARED" = "yes"; then
26830 SHARED=1
26831
26832
26833 found_versioning=no
26834
26835
26836 if test $found_versioning = no ; then
26837 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
26838echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
26839if test "${wx_cv_version_script+set}" = set; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26841else
26842
26843 echo "VER_1 { *; };" >conftest.sym
26844 echo "int main() { return 0; }" >conftest.cpp
26845
26846 if { ac_try='
26847 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
26848 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
26849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850 (eval $ac_try) 2>&5
26851 ac_status=$?
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); }; } ; then
26854 if test -s conftest.stderr ; then
26855 wx_cv_version_script=no
26856 else
26857 wx_cv_version_script=yes
26858 fi
26859 else
26860 wx_cv_version_script=no
26861 fi
26862 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
26863
26864fi
26865echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
26866echo "${ECHO_T}$wx_cv_version_script" >&6
26867 if test $wx_cv_version_script = yes ; then
26868 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
26869 fi
26870 fi
26871
26872
26873 case "${host}" in
26874 *-*-linux* | *-*-gnu* )
26875 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26876 ;;
26877
26878 *-*-solaris2* )
26879 if test "$GCC" = yes ; then
26880 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
26881
26882 saveLdflags="$LDFLAGS"
26883 LDFLAGS="$saveLdflags -Wl,-rpath,/"
26884 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
26885echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
26886 cat >conftest.$ac_ext <<_ACEOF
de59c161 26887#line $LINENO "configure"
a848cd7e
SC
26888/* confdefs.h. */
26889_ACEOF
26890cat confdefs.h >>conftest.$ac_ext
26891cat >>conftest.$ac_ext <<_ACEOF
26892/* end confdefs.h. */
26893
26894int
26895main ()
26896{
26897
26898 ;
26899 return 0;
26900}
26901_ACEOF
26902rm -f conftest.$ac_objext conftest$ac_exeext
26903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 26904 (eval $ac_link) 2>&5
a848cd7e 26905 ac_status=$?
a848cd7e
SC
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } &&
de59c161 26908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; }; then
26914
26915 echo "$as_me:$LINENO: result: yes" >&5
26916echo "${ECHO_T}yes" >&6
26917 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26918
26919else
26920 echo "$as_me: failed program was:" >&5
26921sed 's/^/| /' conftest.$ac_ext >&5
26922
26923
26924 echo "$as_me:$LINENO: result: no" >&5
26925echo "${ECHO_T}no" >&6
26926 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
26927echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
26928 LDFLAGS="$saveLdflags -Wl,-R,/"
26929 cat >conftest.$ac_ext <<_ACEOF
de59c161 26930#line $LINENO "configure"
a848cd7e
SC
26931/* confdefs.h. */
26932_ACEOF
26933cat confdefs.h >>conftest.$ac_ext
26934cat >>conftest.$ac_ext <<_ACEOF
26935/* end confdefs.h. */
26936
26937int
26938main ()
26939{
26940
26941 ;
26942 return 0;
26943}
26944_ACEOF
26945rm -f conftest.$ac_objext conftest$ac_exeext
26946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 26947 (eval $ac_link) 2>&5
a848cd7e 26948 ac_status=$?
a848cd7e
SC
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); } &&
de59c161 26951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953 (eval $ac_try) 2>&5
26954 ac_status=$?
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; }; then
26957
26958 echo "$as_me:$LINENO: result: yes" >&5
26959echo "${ECHO_T}yes" >&6
26960 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
26961else
26962 echo "$as_me: failed program was:" >&5
26963sed 's/^/| /' conftest.$ac_ext >&5
26964
26965
26966 echo "$as_me:$LINENO: result: no" >&5
26967echo "${ECHO_T}no" >&6
26968
26969fi
de59c161 26970rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26971
26972fi
de59c161 26973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26974 LDFLAGS="$saveLdflags"
26975 else
26976 SHARED_LD="${CXX} -G -o"
26977 PIC_FLAG="-KPIC"
26978 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
26979 fi
26980 ;;
26981
26982 powerpc-*-darwin* )
26983 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
26984 cat <<EOF >change-install-names
26985#!/bin/sh
26986libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
26987inst_cmd="install_name_tool "
26988for i in \${libnames} ; do
26989 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
26990done
26991\${inst_cmd} \${3}
26992EOF
26993 chmod +x change-install-names
26994 ;;
26995
26996 *-*-cygwin* | *-*-mingw32* )
26997 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
26998 ;;
26999
27000 esac
27001
27002 if test "x$WX_TARGET_LIBRARY" = "x"; then
27003 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27004 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27005 fi
27006
27007 WX_TARGET_LIBRARY_TYPE="so"
27008 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27009fi
27010
27011if test "$wxUSE_SHARED" = "no"; then
27012
27013 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27014 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27015 fi
27016
27017 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27018 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27019 fi
27020
27021 if test "$wxUSE_OPENGL" = "yes"; then
27022 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27023 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27024 else
27025 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27026 fi
27027
27028 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27029 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27030
27031 WX_TARGET_LIBRARY_TYPE="a"
27032 INSTALL_LIBRARY='$(INSTALL_DATA)'
27033
27034 STATIC_FLAG="yes"
27035else
27036 STATIC_FLAG="no"
27037fi
27038
27039if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27040 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27041 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27042 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27043
27044 # Extract the first word of "Rez", so it can be a program name with args.
27045set dummy Rez; ac_word=$2
27046echo "$as_me:$LINENO: checking for $ac_word" >&5
27047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27048if test "${ac_cv_prog_RESCOMP+set}" = set; then
27049 echo $ECHO_N "(cached) $ECHO_C" >&6
27050else
27051 if test -n "$RESCOMP"; then
27052 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27053else
27054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27055for as_dir in $PATH
27056do
27057 IFS=$as_save_IFS
27058 test -z "$as_dir" && as_dir=.
27059 for ac_exec_ext in '' $ac_executable_extensions; do
27060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27061 ac_cv_prog_RESCOMP="Rez"
27062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27063 break 2
27064 fi
27065done
27066done
27067
27068 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27069fi
27070fi
27071RESCOMP=$ac_cv_prog_RESCOMP
27072if test -n "$RESCOMP"; then
27073 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27074echo "${ECHO_T}$RESCOMP" >&6
27075else
27076 echo "$as_me:$LINENO: result: no" >&5
27077echo "${ECHO_T}no" >&6
27078fi
27079
27080 # Extract the first word of "DeRez", so it can be a program name with args.
27081set dummy DeRez; ac_word=$2
27082echo "$as_me:$LINENO: checking for $ac_word" >&5
27083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27084if test "${ac_cv_prog_DEREZ+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27086else
27087 if test -n "$DEREZ"; then
27088 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27089else
27090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27091for as_dir in $PATH
27092do
27093 IFS=$as_save_IFS
27094 test -z "$as_dir" && as_dir=.
27095 for ac_exec_ext in '' $ac_executable_extensions; do
27096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27097 ac_cv_prog_DEREZ="DeRez"
27098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27099 break 2
27100 fi
27101done
27102done
27103
27104 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27105fi
27106fi
27107DEREZ=$ac_cv_prog_DEREZ
27108if test -n "$DEREZ"; then
27109 echo "$as_me:$LINENO: result: $DEREZ" >&5
27110echo "${ECHO_T}$DEREZ" >&6
27111else
27112 echo "$as_me:$LINENO: result: no" >&5
27113echo "${ECHO_T}no" >&6
27114fi
27115
27116 # Extract the first word of "SetFile", so it can be a program name with args.
27117set dummy SetFile; ac_word=$2
27118echo "$as_me:$LINENO: checking for $ac_word" >&5
27119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27120if test "${ac_cv_prog_SETFILE+set}" = set; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27122else
27123 if test -n "$SETFILE"; then
27124 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27125else
27126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27127for as_dir in $PATH
27128do
27129 IFS=$as_save_IFS
27130 test -z "$as_dir" && as_dir=.
27131 for ac_exec_ext in '' $ac_executable_extensions; do
27132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27133 ac_cv_prog_SETFILE="SetFile"
27134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27135 break 2
27136 fi
27137done
27138done
27139
27140 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27141fi
27142fi
27143SETFILE=$ac_cv_prog_SETFILE
27144if test -n "$SETFILE"; then
27145 echo "$as_me:$LINENO: result: $SETFILE" >&5
27146echo "${ECHO_T}$SETFILE" >&6
27147else
27148 echo "$as_me:$LINENO: result: no" >&5
27149echo "${ECHO_T}no" >&6
27150fi
27151
27152
27153 MACSETFILE="\$(SETFILE)"
27154
27155 if test "$wxUSE_MAC" = 1; then
27156 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27157
27158 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27159 else
27160 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27161 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27162 fi
27163else
27164 MACSETFILE="@#"
27165 MACRESWXCONFIG="#"
27166
27167 if test "$wxUSE_PM" = 1; then
27168 MACRESCOMP="emxbind -ep"
27169 else
27170 MACRESCOMP="@#"
27171 fi
27172fi
27173
27174
27175
27176echo "$as_me:$LINENO: checking for mode_t" >&5
27177echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27178if test "${ac_cv_type_mode_t+set}" = set; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27180else
27181 cat >conftest.$ac_ext <<_ACEOF
de59c161 27182#line $LINENO "configure"
a848cd7e
SC
27183/* confdefs.h. */
27184_ACEOF
27185cat confdefs.h >>conftest.$ac_ext
27186cat >>conftest.$ac_ext <<_ACEOF
27187/* end confdefs.h. */
27188$ac_includes_default
27189int
27190main ()
27191{
27192if ((mode_t *) 0)
27193 return 0;
27194if (sizeof (mode_t))
27195 return 0;
27196 ;
27197 return 0;
27198}
27199_ACEOF
27200rm -f conftest.$ac_objext
27201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 27202 (eval $ac_compile) 2>&5
a848cd7e 27203 ac_status=$?
a848cd7e
SC
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); } &&
de59c161 27206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208 (eval $ac_try) 2>&5
27209 ac_status=$?
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; }; then
27212 ac_cv_type_mode_t=yes
27213else
27214 echo "$as_me: failed program was:" >&5
27215sed 's/^/| /' conftest.$ac_ext >&5
27216
27217ac_cv_type_mode_t=no
27218fi
de59c161 27219rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27220fi
27221echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27222echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27223if test $ac_cv_type_mode_t = yes; then
27224 :
27225else
27226
27227cat >>confdefs.h <<_ACEOF
27228#define mode_t int
27229_ACEOF
27230
27231fi
27232
27233echo "$as_me:$LINENO: checking for off_t" >&5
27234echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27235if test "${ac_cv_type_off_t+set}" = set; then
27236 echo $ECHO_N "(cached) $ECHO_C" >&6
27237else
27238 cat >conftest.$ac_ext <<_ACEOF
de59c161 27239#line $LINENO "configure"
a848cd7e
SC
27240/* confdefs.h. */
27241_ACEOF
27242cat confdefs.h >>conftest.$ac_ext
27243cat >>conftest.$ac_ext <<_ACEOF
27244/* end confdefs.h. */
27245$ac_includes_default
27246int
27247main ()
27248{
27249if ((off_t *) 0)
27250 return 0;
27251if (sizeof (off_t))
27252 return 0;
27253 ;
27254 return 0;
27255}
27256_ACEOF
27257rm -f conftest.$ac_objext
27258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 27259 (eval $ac_compile) 2>&5
a848cd7e 27260 ac_status=$?
a848cd7e
SC
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); } &&
de59c161 27263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265 (eval $ac_try) 2>&5
27266 ac_status=$?
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); }; }; then
27269 ac_cv_type_off_t=yes
27270else
27271 echo "$as_me: failed program was:" >&5
27272sed 's/^/| /' conftest.$ac_ext >&5
27273
27274ac_cv_type_off_t=no
27275fi
de59c161 27276rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27277fi
27278echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27279echo "${ECHO_T}$ac_cv_type_off_t" >&6
27280if test $ac_cv_type_off_t = yes; then
27281 :
27282else
27283
27284cat >>confdefs.h <<_ACEOF
27285#define off_t long
27286_ACEOF
27287
27288fi
27289
27290echo "$as_me:$LINENO: checking for pid_t" >&5
27291echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27292if test "${ac_cv_type_pid_t+set}" = set; then
27293 echo $ECHO_N "(cached) $ECHO_C" >&6
27294else
27295 cat >conftest.$ac_ext <<_ACEOF
de59c161 27296#line $LINENO "configure"
a848cd7e
SC
27297/* confdefs.h. */
27298_ACEOF
27299cat confdefs.h >>conftest.$ac_ext
27300cat >>conftest.$ac_ext <<_ACEOF
27301/* end confdefs.h. */
27302$ac_includes_default
27303int
27304main ()
27305{
27306if ((pid_t *) 0)
27307 return 0;
27308if (sizeof (pid_t))
27309 return 0;
27310 ;
27311 return 0;
27312}
27313_ACEOF
27314rm -f conftest.$ac_objext
27315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 27316 (eval $ac_compile) 2>&5
a848cd7e 27317 ac_status=$?
a848cd7e
SC
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); } &&
de59c161 27320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322 (eval $ac_try) 2>&5
27323 ac_status=$?
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; }; then
27326 ac_cv_type_pid_t=yes
27327else
27328 echo "$as_me: failed program was:" >&5
27329sed 's/^/| /' conftest.$ac_ext >&5
27330
27331ac_cv_type_pid_t=no
27332fi
de59c161 27333rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27334fi
27335echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27336echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27337if test $ac_cv_type_pid_t = yes; then
27338 :
27339else
27340
27341cat >>confdefs.h <<_ACEOF
27342#define pid_t int
27343_ACEOF
27344
27345fi
27346
27347echo "$as_me:$LINENO: checking for size_t" >&5
27348echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27349if test "${ac_cv_type_size_t+set}" = set; then
27350 echo $ECHO_N "(cached) $ECHO_C" >&6
27351else
27352 cat >conftest.$ac_ext <<_ACEOF
de59c161 27353#line $LINENO "configure"
a848cd7e
SC
27354/* confdefs.h. */
27355_ACEOF
27356cat confdefs.h >>conftest.$ac_ext
27357cat >>conftest.$ac_ext <<_ACEOF
27358/* end confdefs.h. */
27359$ac_includes_default
27360int
27361main ()
27362{
27363if ((size_t *) 0)
27364 return 0;
27365if (sizeof (size_t))
27366 return 0;
27367 ;
27368 return 0;
27369}
27370_ACEOF
27371rm -f conftest.$ac_objext
27372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 27373 (eval $ac_compile) 2>&5
a848cd7e 27374 ac_status=$?
a848cd7e
SC
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); } &&
de59c161 27377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379 (eval $ac_try) 2>&5
27380 ac_status=$?
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; }; then
27383 ac_cv_type_size_t=yes
27384else
27385 echo "$as_me: failed program was:" >&5
27386sed 's/^/| /' conftest.$ac_ext >&5
27387
27388ac_cv_type_size_t=no
27389fi
de59c161 27390rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27391fi
27392echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27393echo "${ECHO_T}$ac_cv_type_size_t" >&6
27394if test $ac_cv_type_size_t = yes; then
27395 :
27396else
27397
27398cat >>confdefs.h <<_ACEOF
27399#define size_t unsigned
27400_ACEOF
27401
27402fi
27403
27404echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
27405echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
27406if test "${ac_cv_type_uid_t+set}" = set; then
27407 echo $ECHO_N "(cached) $ECHO_C" >&6
27408else
27409 cat >conftest.$ac_ext <<_ACEOF
de59c161 27410#line $LINENO "configure"
a848cd7e
SC
27411/* confdefs.h. */
27412_ACEOF
27413cat confdefs.h >>conftest.$ac_ext
27414cat >>conftest.$ac_ext <<_ACEOF
27415/* end confdefs.h. */
27416#include <sys/types.h>
27417
27418_ACEOF
27419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27420 $EGREP "uid_t" >/dev/null 2>&1; then
27421 ac_cv_type_uid_t=yes
27422else
27423 ac_cv_type_uid_t=no
27424fi
27425rm -f conftest*
27426
27427fi
27428echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
27429echo "${ECHO_T}$ac_cv_type_uid_t" >&6
27430if test $ac_cv_type_uid_t = no; then
27431
27432cat >>confdefs.h <<\_ACEOF
27433#define uid_t int
27434_ACEOF
27435
27436
27437cat >>confdefs.h <<\_ACEOF
27438#define gid_t int
27439_ACEOF
27440
27441fi
27442
27443
27444
27445
27446ac_ext=cc
27447ac_cpp='$CXXCPP $CPPFLAGS'
27448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27451
27452echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
27453echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
27454if test "${wx_cv_size_t_is_uint+set}" = set; then
27455 echo $ECHO_N "(cached) $ECHO_C" >&6
27456else
27457
27458 cat >conftest.$ac_ext <<_ACEOF
de59c161 27459#line $LINENO "configure"
a848cd7e
SC
27460/* confdefs.h. */
27461_ACEOF
27462cat confdefs.h >>conftest.$ac_ext
27463cat >>conftest.$ac_ext <<_ACEOF
27464/* end confdefs.h. */
27465#include <stddef.h>
27466int
27467main ()
27468{
27469
27470 return 0; }
27471
27472 struct Foo { void foo(size_t); void foo(unsigned int); };
27473
27474 int bar() {
27475
27476 ;
27477 return 0;
27478}
27479_ACEOF
27480rm -f conftest.$ac_objext
27481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 27482 (eval $ac_compile) 2>&5
a848cd7e 27483 ac_status=$?
a848cd7e
SC
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); } &&
de59c161 27486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488 (eval $ac_try) 2>&5
27489 ac_status=$?
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); }; }; then
27492 wx_cv_size_t_is_uint=no
27493else
27494 echo "$as_me: failed program was:" >&5
27495sed 's/^/| /' conftest.$ac_ext >&5
27496
27497wx_cv_size_t_is_uint=yes
27498
27499fi
de59c161 27500rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27501
27502
27503fi
27504echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
27505echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
27506
27507if test "$wx_cv_size_t_is_uint" = "yes"; then
27508 cat >>confdefs.h <<\_ACEOF
27509#define wxSIZE_T_IS_UINT 1
27510_ACEOF
27511
27512else
27513 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
27514echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
27515if test "${wx_cv_size_t_is_ulong+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27517else
27518 cat >conftest.$ac_ext <<_ACEOF
de59c161 27519#line $LINENO "configure"
a848cd7e
SC
27520/* confdefs.h. */
27521_ACEOF
27522cat confdefs.h >>conftest.$ac_ext
27523cat >>conftest.$ac_ext <<_ACEOF
27524/* end confdefs.h. */
27525#include <stddef.h>
27526int
27527main ()
27528{
27529
27530 return 0; }
27531
27532 struct Foo { void foo(size_t); void foo(unsigned long); };
27533
27534 int bar() {
27535
27536 ;
27537 return 0;
27538}
27539_ACEOF
27540rm -f conftest.$ac_objext
27541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 27542 (eval $ac_compile) 2>&5
a848cd7e 27543 ac_status=$?
a848cd7e
SC
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); } &&
de59c161 27546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 (eval $ac_try) 2>&5
27549 ac_status=$?
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; }; then
27552 wx_cv_size_t_is_ulong=no
27553else
27554 echo "$as_me: failed program was:" >&5
27555sed 's/^/| /' conftest.$ac_ext >&5
27556
27557wx_cv_size_t_is_ulong=yes
27558
27559fi
de59c161 27560rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27561
27562fi
27563echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
27564echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
27565
27566 if test "$wx_cv_size_t_is_ulong" = "yes"; then
27567 cat >>confdefs.h <<\_ACEOF
27568#define wxSIZE_T_IS_ULONG 1
27569_ACEOF
27570
27571 fi
27572fi
27573
27574ac_ext=c
27575ac_cpp='$CPP $CPPFLAGS'
27576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27578ac_compiler_gnu=$ac_cv_c_compiler_gnu
27579
27580
27581
27582echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
27583echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
27584if test "${wx_cv_struct_pw_gecos+set}" = set; then
27585 echo $ECHO_N "(cached) $ECHO_C" >&6
27586else
27587
27588 cat >conftest.$ac_ext <<_ACEOF
de59c161 27589#line $LINENO "configure"
a848cd7e
SC
27590/* confdefs.h. */
27591_ACEOF
27592cat confdefs.h >>conftest.$ac_ext
27593cat >>conftest.$ac_ext <<_ACEOF
27594/* end confdefs.h. */
27595#include <pwd.h>
27596int
27597main ()
27598{
27599
27600 char *p;
27601 struct passwd *pw;
27602 p = pw->pw_gecos;
27603
27604 ;
27605 return 0;
27606}
27607_ACEOF
27608rm -f conftest.$ac_objext
27609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 27610 (eval $ac_compile) 2>&5
a848cd7e 27611 ac_status=$?
a848cd7e
SC
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); } &&
de59c161 27614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616 (eval $ac_try) 2>&5
27617 ac_status=$?
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; }; then
27620
27621 wx_cv_struct_pw_gecos=yes
27622
27623else
27624 echo "$as_me: failed program was:" >&5
27625sed 's/^/| /' conftest.$ac_ext >&5
27626
27627
27628 wx_cv_struct_pw_gecos=no
27629
27630
27631fi
de59c161 27632rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27633
27634
27635fi
27636echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
27637echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
27638
27639if test "$wx_cv_struct_pw_gecos" = "yes"; then
27640 cat >>confdefs.h <<\_ACEOF
27641#define HAVE_PW_GECOS 1
27642_ACEOF
27643
27644fi
27645
27646
27647if test "$wx_cv_sizeof_wchar_t" != "0"; then
27648 cat >>confdefs.h <<\_ACEOF
27649#define wxUSE_WCHAR_T 1
27650_ACEOF
27651
27652
27653 WCSLEN_FOUND=0
27654 WCHAR_LINK=
27655
27656for ac_func in wcslen
27657do
27658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27659echo "$as_me:$LINENO: checking for $ac_func" >&5
27660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27661if eval "test \"\${$as_ac_var+set}\" = set"; then
27662 echo $ECHO_N "(cached) $ECHO_C" >&6
27663else
27664 cat >conftest.$ac_ext <<_ACEOF
de59c161 27665#line $LINENO "configure"
a848cd7e
SC
27666/* confdefs.h. */
27667_ACEOF
27668cat confdefs.h >>conftest.$ac_ext
27669cat >>conftest.$ac_ext <<_ACEOF
27670/* end confdefs.h. */
a848cd7e
SC
27671/* System header to define __stub macros and hopefully few prototypes,
27672 which can conflict with char $ac_func (); below.
27673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27674 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
27675#ifdef __STDC__
27676# include <limits.h>
27677#else
27678# include <assert.h>
27679#endif
a848cd7e
SC
27680/* Override any gcc2 internal prototype to avoid an error. */
27681#ifdef __cplusplus
27682extern "C"
27683{
27684#endif
27685/* We use char because int might match the return type of a gcc2
27686 builtin and then its argument prototype would still apply. */
27687char $ac_func ();
27688/* The GNU C library defines this for functions which it implements
27689 to always fail with ENOSYS. Some functions are actually named
27690 something starting with __ and the normal name is an alias. */
27691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27692choke me
27693#else
27694char (*f) () = $ac_func;
27695#endif
27696#ifdef __cplusplus
27697}
27698#endif
27699
27700int
27701main ()
27702{
27703return f != $ac_func;
27704 ;
27705 return 0;
27706}
27707_ACEOF
27708rm -f conftest.$ac_objext conftest$ac_exeext
27709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 27710 (eval $ac_link) 2>&5
a848cd7e 27711 ac_status=$?
a848cd7e
SC
27712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); } &&
de59c161 27714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27716 (eval $ac_try) 2>&5
27717 ac_status=$?
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); }; }; then
27720 eval "$as_ac_var=yes"
27721else
27722 echo "$as_me: failed program was:" >&5
27723sed 's/^/| /' conftest.$ac_ext >&5
27724
27725eval "$as_ac_var=no"
27726fi
de59c161 27727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27728fi
27729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27731if test `eval echo '${'$as_ac_var'}'` = yes; then
27732 cat >>confdefs.h <<_ACEOF
27733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27734_ACEOF
27735 WCSLEN_FOUND=1
27736fi
27737done
27738
27739
27740 if test "$WCSLEN_FOUND" = 0; then
27741 if test "$TOOLKIT" = "MSW"; then
27742 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
27743echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
27744if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746else
27747 ac_check_lib_save_LIBS=$LIBS
27748LIBS="-lmsvcrt $LIBS"
27749cat >conftest.$ac_ext <<_ACEOF
de59c161 27750#line $LINENO "configure"
a848cd7e
SC
27751/* confdefs.h. */
27752_ACEOF
27753cat confdefs.h >>conftest.$ac_ext
27754cat >>conftest.$ac_ext <<_ACEOF
27755/* end confdefs.h. */
27756
27757/* Override any gcc2 internal prototype to avoid an error. */
27758#ifdef __cplusplus
27759extern "C"
27760#endif
27761/* We use char because int might match the return type of a gcc2
27762 builtin and then its argument prototype would still apply. */
27763char wcslen ();
27764int
27765main ()
27766{
27767wcslen ();
27768 ;
27769 return 0;
27770}
27771_ACEOF
27772rm -f conftest.$ac_objext conftest$ac_exeext
27773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 27774 (eval $ac_link) 2>&5
a848cd7e 27775 ac_status=$?
a848cd7e
SC
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); } &&
de59c161 27778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780 (eval $ac_try) 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
27784 ac_cv_lib_msvcrt_wcslen=yes
27785else
27786 echo "$as_me: failed program was:" >&5
27787sed 's/^/| /' conftest.$ac_ext >&5
27788
27789ac_cv_lib_msvcrt_wcslen=no
27790fi
de59c161 27791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27792LIBS=$ac_check_lib_save_LIBS
27793fi
27794echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
27795echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
27796if test $ac_cv_lib_msvcrt_wcslen = yes; then
27797 WCHAR_OK=1
27798fi
27799
27800 else
27801 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
27802echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
27803if test "${ac_cv_lib_w_wcslen+set}" = set; then
27804 echo $ECHO_N "(cached) $ECHO_C" >&6
27805else
27806 ac_check_lib_save_LIBS=$LIBS
27807LIBS="-lw $LIBS"
27808cat >conftest.$ac_ext <<_ACEOF
de59c161 27809#line $LINENO "configure"
a848cd7e
SC
27810/* confdefs.h. */
27811_ACEOF
27812cat confdefs.h >>conftest.$ac_ext
27813cat >>conftest.$ac_ext <<_ACEOF
27814/* end confdefs.h. */
27815
27816/* Override any gcc2 internal prototype to avoid an error. */
27817#ifdef __cplusplus
27818extern "C"
27819#endif
27820/* We use char because int might match the return type of a gcc2
27821 builtin and then its argument prototype would still apply. */
27822char wcslen ();
27823int
27824main ()
27825{
27826wcslen ();
27827 ;
27828 return 0;
27829}
27830_ACEOF
27831rm -f conftest.$ac_objext conftest$ac_exeext
27832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 27833 (eval $ac_link) 2>&5
a848cd7e 27834 ac_status=$?
a848cd7e
SC
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
de59c161 27837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27839 (eval $ac_try) 2>&5
27840 ac_status=$?
27841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842 (exit $ac_status); }; }; then
27843 ac_cv_lib_w_wcslen=yes
27844else
27845 echo "$as_me: failed program was:" >&5
27846sed 's/^/| /' conftest.$ac_ext >&5
27847
27848ac_cv_lib_w_wcslen=no
27849fi
de59c161 27850rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27851LIBS=$ac_check_lib_save_LIBS
27852fi
27853echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
27854echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
27855if test $ac_cv_lib_w_wcslen = yes; then
27856
27857 WCHAR_LINK=" -lw"
27858 WCSLEN_FOUND=1
27859
27860fi
27861
27862 fi
27863 fi
27864
27865 if test "$WCSLEN_FOUND" = 1; then
27866 cat >>confdefs.h <<\_ACEOF
27867#define HAVE_WCSLEN 1
27868_ACEOF
27869
27870 fi
27871
473276a9
VS
27872 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
27873 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
27874 fi
27875
a848cd7e
SC
27876
27877for ac_func in wcsrtombs
27878do
27879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27880echo "$as_me:$LINENO: checking for $ac_func" >&5
27881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27882if eval "test \"\${$as_ac_var+set}\" = set"; then
27883 echo $ECHO_N "(cached) $ECHO_C" >&6
27884else
27885 cat >conftest.$ac_ext <<_ACEOF
de59c161 27886#line $LINENO "configure"
a848cd7e
SC
27887/* confdefs.h. */
27888_ACEOF
27889cat confdefs.h >>conftest.$ac_ext
27890cat >>conftest.$ac_ext <<_ACEOF
27891/* end confdefs.h. */
a848cd7e
SC
27892/* System header to define __stub macros and hopefully few prototypes,
27893 which can conflict with char $ac_func (); below.
27894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27895 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
27896#ifdef __STDC__
27897# include <limits.h>
27898#else
27899# include <assert.h>
27900#endif
a848cd7e
SC
27901/* Override any gcc2 internal prototype to avoid an error. */
27902#ifdef __cplusplus
27903extern "C"
27904{
27905#endif
27906/* We use char because int might match the return type of a gcc2
27907 builtin and then its argument prototype would still apply. */
27908char $ac_func ();
27909/* The GNU C library defines this for functions which it implements
27910 to always fail with ENOSYS. Some functions are actually named
27911 something starting with __ and the normal name is an alias. */
27912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27913choke me
27914#else
27915char (*f) () = $ac_func;
27916#endif
27917#ifdef __cplusplus
27918}
27919#endif
27920
27921int
27922main ()
27923{
27924return f != $ac_func;
27925 ;
27926 return 0;
27927}
27928_ACEOF
27929rm -f conftest.$ac_objext conftest$ac_exeext
27930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 27931 (eval $ac_link) 2>&5
a848cd7e 27932 ac_status=$?
a848cd7e
SC
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } &&
de59c161 27935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); }; }; then
27941 eval "$as_ac_var=yes"
27942else
27943 echo "$as_me: failed program was:" >&5
27944sed 's/^/| /' conftest.$ac_ext >&5
27945
27946eval "$as_ac_var=no"
27947fi
de59c161 27948rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27949fi
27950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27952if test `eval echo '${'$as_ac_var'}'` = yes; then
27953 cat >>confdefs.h <<_ACEOF
27954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27955_ACEOF
27956
27957fi
27958done
27959
27960else
27961 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
27962echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
27963fi
27964
27965
27966
27967ac_ext=cc
27968ac_cpp='$CXXCPP $CPPFLAGS'
27969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27972
27973
27974
27975for ac_func in vsnprintf
27976do
27977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27978echo "$as_me:$LINENO: checking for $ac_func" >&5
27979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27980if eval "test \"\${$as_ac_var+set}\" = set"; then
27981 echo $ECHO_N "(cached) $ECHO_C" >&6
27982else
27983 cat >conftest.$ac_ext <<_ACEOF
de59c161 27984#line $LINENO "configure"
a848cd7e
SC
27985/* confdefs.h. */
27986_ACEOF
27987cat confdefs.h >>conftest.$ac_ext
27988cat >>conftest.$ac_ext <<_ACEOF
27989/* end confdefs.h. */
a848cd7e
SC
27990/* System header to define __stub macros and hopefully few prototypes,
27991 which can conflict with char $ac_func (); below.
27992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27993 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
27994#ifdef __STDC__
27995# include <limits.h>
27996#else
27997# include <assert.h>
27998#endif
a848cd7e
SC
27999/* Override any gcc2 internal prototype to avoid an error. */
28000#ifdef __cplusplus
28001extern "C"
28002{
28003#endif
28004/* We use char because int might match the return type of a gcc2
28005 builtin and then its argument prototype would still apply. */
28006char $ac_func ();
28007/* The GNU C library defines this for functions which it implements
28008 to always fail with ENOSYS. Some functions are actually named
28009 something starting with __ and the normal name is an alias. */
28010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28011choke me
28012#else
28013char (*f) () = $ac_func;
28014#endif
28015#ifdef __cplusplus
28016}
28017#endif
28018
28019int
28020main ()
28021{
28022return f != $ac_func;
28023 ;
28024 return 0;
28025}
28026_ACEOF
28027rm -f conftest.$ac_objext conftest$ac_exeext
28028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 28029 (eval $ac_link) 2>&5
a848cd7e 28030 ac_status=$?
a848cd7e
SC
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); } &&
de59c161 28033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035 (eval $ac_try) 2>&5
28036 ac_status=$?
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; }; then
28039 eval "$as_ac_var=yes"
28040else
28041 echo "$as_me: failed program was:" >&5
28042sed 's/^/| /' conftest.$ac_ext >&5
28043
28044eval "$as_ac_var=no"
28045fi
de59c161 28046rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28047fi
28048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28049echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28050if test `eval echo '${'$as_ac_var'}'` = yes; then
28051 cat >>confdefs.h <<_ACEOF
28052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28053_ACEOF
28054
28055fi
28056done
28057
28058
28059if test "$ac_cv_func_vsnprintf" = "yes"; then
28060 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28061echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28062if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28063 echo $ECHO_N "(cached) $ECHO_C" >&6
28064else
28065
28066 cat >conftest.$ac_ext <<_ACEOF
de59c161 28067#line $LINENO "configure"
a848cd7e
SC
28068/* confdefs.h. */
28069_ACEOF
28070cat confdefs.h >>conftest.$ac_ext
28071cat >>conftest.$ac_ext <<_ACEOF
28072/* end confdefs.h. */
28073
28074 #include <stdio.h>
28075 #include <stdarg.h>
28076
28077int
28078main ()
28079{
28080
28081 char *buf;
28082 va_list ap;
28083 vsnprintf(buf, 10u, "%s", ap);
28084
28085 ;
28086 return 0;
28087}
28088_ACEOF
28089rm -f conftest.$ac_objext
28090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 28091 (eval $ac_compile) 2>&5
a848cd7e 28092 ac_status=$?
a848cd7e
SC
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } &&
de59c161 28095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28097 (eval $ac_try) 2>&5
28098 ac_status=$?
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }; }; then
28101 wx_cv_func_vsnprintf_decl=yes
28102else
28103 echo "$as_me: failed program was:" >&5
28104sed 's/^/| /' conftest.$ac_ext >&5
28105
28106wx_cv_func_vsnprintf_decl=no
28107
28108fi
de59c161 28109rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28110
28111
28112fi
28113echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28114echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
28115
28116 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
28117 cat >>confdefs.h <<\_ACEOF
28118#define HAVE_VSNPRINTF_DECL 1
28119_ACEOF
28120
28121 fi
28122fi
28123
28124if test "$wxUSE_UNICODE" = yes; then
28125
28126
28127
28128for ac_func in fputwc wprintf vswprintf
28129do
28130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28131echo "$as_me:$LINENO: checking for $ac_func" >&5
28132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28133if eval "test \"\${$as_ac_var+set}\" = set"; then
28134 echo $ECHO_N "(cached) $ECHO_C" >&6
28135else
28136 cat >conftest.$ac_ext <<_ACEOF
de59c161 28137#line $LINENO "configure"
a848cd7e
SC
28138/* confdefs.h. */
28139_ACEOF
28140cat confdefs.h >>conftest.$ac_ext
28141cat >>conftest.$ac_ext <<_ACEOF
28142/* end confdefs.h. */
a848cd7e
SC
28143/* System header to define __stub macros and hopefully few prototypes,
28144 which can conflict with char $ac_func (); below.
28145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28146 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
28147#ifdef __STDC__
28148# include <limits.h>
28149#else
28150# include <assert.h>
28151#endif
a848cd7e
SC
28152/* Override any gcc2 internal prototype to avoid an error. */
28153#ifdef __cplusplus
28154extern "C"
28155{
28156#endif
28157/* We use char because int might match the return type of a gcc2
28158 builtin and then its argument prototype would still apply. */
28159char $ac_func ();
28160/* The GNU C library defines this for functions which it implements
28161 to always fail with ENOSYS. Some functions are actually named
28162 something starting with __ and the normal name is an alias. */
28163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28164choke me
28165#else
28166char (*f) () = $ac_func;
28167#endif
28168#ifdef __cplusplus
28169}
28170#endif
28171
28172int
28173main ()
28174{
28175return f != $ac_func;
28176 ;
28177 return 0;
28178}
28179_ACEOF
28180rm -f conftest.$ac_objext conftest$ac_exeext
28181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 28182 (eval $ac_link) 2>&5
a848cd7e 28183 ac_status=$?
a848cd7e
SC
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); } &&
de59c161 28186 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28188 (eval $ac_try) 2>&5
28189 ac_status=$?
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; }; then
28192 eval "$as_ac_var=yes"
28193else
28194 echo "$as_me: failed program was:" >&5
28195sed 's/^/| /' conftest.$ac_ext >&5
28196
28197eval "$as_ac_var=no"
28198fi
de59c161 28199rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28200fi
28201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28203if test `eval echo '${'$as_ac_var'}'` = yes; then
28204 cat >>confdefs.h <<_ACEOF
28205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28206_ACEOF
28207
28208fi
28209done
28210
28211
28212 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28213echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28214 cat >conftest.$ac_ext <<_ACEOF
de59c161 28215#line $LINENO "configure"
a848cd7e
SC
28216/* confdefs.h. */
28217_ACEOF
28218cat confdefs.h >>conftest.$ac_ext
28219cat >>conftest.$ac_ext <<_ACEOF
28220/* end confdefs.h. */
28221#include <wchar.h>
28222int
28223main ()
28224{
28225&_vsnwprintf;
28226 ;
28227 return 0;
28228}
28229_ACEOF
28230rm -f conftest.$ac_objext
28231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 28232 (eval $ac_compile) 2>&5
a848cd7e 28233 ac_status=$?
a848cd7e
SC
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } &&
de59c161 28236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; }; then
28242 echo "$as_me:$LINENO: result: yes" >&5
28243echo "${ECHO_T}yes" >&6
28244 cat >>confdefs.h <<\_ACEOF
28245#define HAVE__VSNWPRINTF 1
28246_ACEOF
28247
28248else
28249 echo "$as_me: failed program was:" >&5
28250sed 's/^/| /' conftest.$ac_ext >&5
28251
28252echo "$as_me:$LINENO: result: no" >&5
28253echo "${ECHO_T}no" >&6
28254fi
de59c161 28255rm -f conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
28256fi
28257
28258ac_ext=c
28259ac_cpp='$CPP $CPPFLAGS'
28260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28262ac_compiler_gnu=$ac_cv_c_compiler_gnu
28263
28264
28265
28266
28267if test "$TOOLKIT" != "MSW"; then
28268
28269
28270
28271
28272ac_ext=cc
28273ac_cpp='$CXXCPP $CPPFLAGS'
28274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28277
28278
28279
28280
28281# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28282if test "${with_libiconv_prefix+set}" = set; then
28283 withval="$with_libiconv_prefix"
28284
28285 for dir in `echo "$withval" | tr : ' '`; do
28286 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28287 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28288 done
28289
28290fi;
28291
28292 echo "$as_me:$LINENO: checking for iconv" >&5
28293echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28294if test "${am_cv_func_iconv+set}" = set; then
28295 echo $ECHO_N "(cached) $ECHO_C" >&6
28296else
28297
28298 am_cv_func_iconv="no, consider installing GNU libiconv"
28299 am_cv_lib_iconv=no
28300 cat >conftest.$ac_ext <<_ACEOF
de59c161 28301#line $LINENO "configure"
a848cd7e
SC
28302/* confdefs.h. */
28303_ACEOF
28304cat confdefs.h >>conftest.$ac_ext
28305cat >>conftest.$ac_ext <<_ACEOF
28306/* end confdefs.h. */
28307#include <stdlib.h>
28308#include <iconv.h>
28309int
28310main ()
28311{
28312iconv_t cd = iconv_open("","");
28313 iconv(cd,NULL,NULL,NULL,NULL);
28314 iconv_close(cd);
28315 ;
28316 return 0;
28317}
28318_ACEOF
28319rm -f conftest.$ac_objext conftest$ac_exeext
28320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 28321 (eval $ac_link) 2>&5
a848cd7e 28322 ac_status=$?
a848cd7e
SC
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); } &&
de59c161 28325 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28327 (eval $ac_try) 2>&5
28328 ac_status=$?
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); }; }; then
28331 am_cv_func_iconv=yes
28332else
28333 echo "$as_me: failed program was:" >&5
28334sed 's/^/| /' conftest.$ac_ext >&5
28335
28336fi
de59c161 28337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28338 if test "$am_cv_func_iconv" != yes; then
28339 am_save_LIBS="$LIBS"
28340 LIBS="$LIBS -liconv"
28341 cat >conftest.$ac_ext <<_ACEOF
de59c161 28342#line $LINENO "configure"
a848cd7e
SC
28343/* confdefs.h. */
28344_ACEOF
28345cat confdefs.h >>conftest.$ac_ext
28346cat >>conftest.$ac_ext <<_ACEOF
28347/* end confdefs.h. */
28348#include <stdlib.h>
28349#include <iconv.h>
28350int
28351main ()
28352{
28353iconv_t cd = iconv_open("","");
28354 iconv(cd,NULL,NULL,NULL,NULL);
28355 iconv_close(cd);
28356 ;
28357 return 0;
28358}
28359_ACEOF
28360rm -f conftest.$ac_objext conftest$ac_exeext
28361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 28362 (eval $ac_link) 2>&5
a848cd7e 28363 ac_status=$?
a848cd7e
SC
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); } &&
de59c161 28366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28368 (eval $ac_try) 2>&5
28369 ac_status=$?
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); }; }; then
28372 am_cv_lib_iconv=yes
28373 am_cv_func_iconv=yes
28374else
28375 echo "$as_me: failed program was:" >&5
28376sed 's/^/| /' conftest.$ac_ext >&5
28377
28378fi
de59c161 28379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28380 LIBS="$am_save_LIBS"
28381 fi
28382
28383fi
28384echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28385echo "${ECHO_T}$am_cv_func_iconv" >&6
28386 if test "$am_cv_func_iconv" = yes; then
28387
28388cat >>confdefs.h <<\_ACEOF
28389#define HAVE_ICONV 1
28390_ACEOF
28391
28392 echo "$as_me:$LINENO: checking if iconv needs const" >&5
28393echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
28394if test "${wx_cv_func_iconv_const+set}" = set; then
28395 echo $ECHO_N "(cached) $ECHO_C" >&6
28396else
28397 cat >conftest.$ac_ext <<_ACEOF
de59c161 28398#line $LINENO "configure"
a848cd7e
SC
28399/* confdefs.h. */
28400_ACEOF
28401cat confdefs.h >>conftest.$ac_ext
28402cat >>conftest.$ac_ext <<_ACEOF
28403/* end confdefs.h. */
28404
28405#include <stdlib.h>
28406#include <iconv.h>
28407extern
28408#ifdef __cplusplus
28409"C"
28410#endif
28411#if defined(__STDC__) || defined(__cplusplus)
28412size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28413#else
28414size_t iconv();
28415#endif
28416
28417int
28418main ()
28419{
28420
28421 ;
28422 return 0;
28423}
28424_ACEOF
28425rm -f conftest.$ac_objext
28426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 28427 (eval $ac_compile) 2>&5
a848cd7e 28428 ac_status=$?
a848cd7e
SC
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } &&
de59c161 28431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433 (eval $ac_try) 2>&5
28434 ac_status=$?
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; }; then
28437 wx_cv_func_iconv_const="no"
28438else
28439 echo "$as_me: failed program was:" >&5
28440sed 's/^/| /' conftest.$ac_ext >&5
28441
28442wx_cv_func_iconv_const="yes"
28443
28444fi
de59c161 28445rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28446
28447fi
28448echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
28449echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
28450
28451 iconv_const=
28452 if test "x$wx_cv_func_iconv_const" = "xyes"; then
28453 iconv_const="const"
28454 fi
28455
28456
28457cat >>confdefs.h <<_ACEOF
28458#define ICONV_CONST $iconv_const
28459_ACEOF
28460
28461 fi
28462 LIBICONV=
28463 if test "$am_cv_lib_iconv" = yes; then
28464 LIBICONV="-liconv"
28465 fi
28466
28467
28468LIBS="$LIBICONV $LIBS"
28469ac_ext=c
28470ac_cpp='$CPP $CPPFLAGS'
28471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28473ac_compiler_gnu=$ac_cv_c_compiler_gnu
28474
28475
28476if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
28477
28478for ac_func in sigaction
28479do
28480as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28481echo "$as_me:$LINENO: checking for $ac_func" >&5
28482echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28483if eval "test \"\${$as_ac_var+set}\" = set"; then
28484 echo $ECHO_N "(cached) $ECHO_C" >&6
28485else
28486 cat >conftest.$ac_ext <<_ACEOF
de59c161 28487#line $LINENO "configure"
a848cd7e
SC
28488/* confdefs.h. */
28489_ACEOF
28490cat confdefs.h >>conftest.$ac_ext
28491cat >>conftest.$ac_ext <<_ACEOF
28492/* end confdefs.h. */
a848cd7e
SC
28493/* System header to define __stub macros and hopefully few prototypes,
28494 which can conflict with char $ac_func (); below.
28495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28496 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
28497#ifdef __STDC__
28498# include <limits.h>
28499#else
28500# include <assert.h>
28501#endif
a848cd7e
SC
28502/* Override any gcc2 internal prototype to avoid an error. */
28503#ifdef __cplusplus
28504extern "C"
28505{
28506#endif
28507/* We use char because int might match the return type of a gcc2
28508 builtin and then its argument prototype would still apply. */
28509char $ac_func ();
28510/* The GNU C library defines this for functions which it implements
28511 to always fail with ENOSYS. Some functions are actually named
28512 something starting with __ and the normal name is an alias. */
28513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28514choke me
28515#else
28516char (*f) () = $ac_func;
28517#endif
28518#ifdef __cplusplus
28519}
28520#endif
28521
28522int
28523main ()
28524{
28525return f != $ac_func;
28526 ;
28527 return 0;
28528}
28529_ACEOF
28530rm -f conftest.$ac_objext conftest$ac_exeext
28531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 28532 (eval $ac_link) 2>&5
a848cd7e 28533 ac_status=$?
a848cd7e
SC
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); } &&
de59c161 28536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28538 (eval $ac_try) 2>&5
28539 ac_status=$?
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; }; then
28542 eval "$as_ac_var=yes"
28543else
28544 echo "$as_me: failed program was:" >&5
28545sed 's/^/| /' conftest.$ac_ext >&5
28546
28547eval "$as_ac_var=no"
28548fi
de59c161 28549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28550fi
28551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28553if test `eval echo '${'$as_ac_var'}'` = yes; then
28554 cat >>confdefs.h <<_ACEOF
28555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28556_ACEOF
28557
28558fi
28559done
28560
28561
28562 if test "$ac_cv_func_sigaction" = "no"; then
28563 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
28564echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
28565 wxUSE_ON_FATAL_EXCEPTION=no
28566 fi
28567
28568 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
28569
28570
28571 ac_ext=cc
28572ac_cpp='$CXXCPP $CPPFLAGS'
28573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28576
28577
28578 echo "$as_me:$LINENO: checking for sa_handler type" >&5
28579echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
28580if test "${wx_cv_type_sa_handler+set}" = set; then
28581 echo $ECHO_N "(cached) $ECHO_C" >&6
28582else
28583
28584 cat >conftest.$ac_ext <<_ACEOF
de59c161 28585#line $LINENO "configure"
a848cd7e
SC
28586/* confdefs.h. */
28587_ACEOF
28588cat confdefs.h >>conftest.$ac_ext
28589cat >>conftest.$ac_ext <<_ACEOF
28590/* end confdefs.h. */
28591#include <signal.h>
28592int
28593main ()
28594{
28595
28596 extern void testSigHandler(int);
28597
28598 struct sigaction sa;
28599 sa.sa_handler = testSigHandler;
28600
28601 ;
28602 return 0;
28603}
28604_ACEOF
28605rm -f conftest.$ac_objext
28606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 28607 (eval $ac_compile) 2>&5
a848cd7e 28608 ac_status=$?
a848cd7e
SC
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); } &&
de59c161 28611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28613 (eval $ac_try) 2>&5
28614 ac_status=$?
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); }; }; then
28617
28618 wx_cv_type_sa_handler=int
28619
28620else
28621 echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
28624
28625 wx_cv_type_sa_handler=void
28626
28627fi
de59c161 28628rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28629
28630fi
28631echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
28632echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
28633
28634 ac_ext=c
28635ac_cpp='$CPP $CPPFLAGS'
28636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28638ac_compiler_gnu=$ac_cv_c_compiler_gnu
28639
28640
28641 cat >>confdefs.h <<_ACEOF
28642#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
28643_ACEOF
28644
28645 fi
28646fi
28647
28648
28649
28650for ac_func in mkstemp mktemp
28651do
28652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28653echo "$as_me:$LINENO: checking for $ac_func" >&5
28654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28655if eval "test \"\${$as_ac_var+set}\" = set"; then
28656 echo $ECHO_N "(cached) $ECHO_C" >&6
28657else
28658 cat >conftest.$ac_ext <<_ACEOF
de59c161 28659#line $LINENO "configure"
a848cd7e
SC
28660/* confdefs.h. */
28661_ACEOF
28662cat confdefs.h >>conftest.$ac_ext
28663cat >>conftest.$ac_ext <<_ACEOF
28664/* end confdefs.h. */
a848cd7e
SC
28665/* System header to define __stub macros and hopefully few prototypes,
28666 which can conflict with char $ac_func (); below.
28667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28668 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
28669#ifdef __STDC__
28670# include <limits.h>
28671#else
28672# include <assert.h>
28673#endif
a848cd7e
SC
28674/* Override any gcc2 internal prototype to avoid an error. */
28675#ifdef __cplusplus
28676extern "C"
28677{
28678#endif
28679/* We use char because int might match the return type of a gcc2
28680 builtin and then its argument prototype would still apply. */
28681char $ac_func ();
28682/* The GNU C library defines this for functions which it implements
28683 to always fail with ENOSYS. Some functions are actually named
28684 something starting with __ and the normal name is an alias. */
28685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28686choke me
28687#else
28688char (*f) () = $ac_func;
28689#endif
28690#ifdef __cplusplus
28691}
28692#endif
28693
28694int
28695main ()
28696{
28697return f != $ac_func;
28698 ;
28699 return 0;
28700}
28701_ACEOF
28702rm -f conftest.$ac_objext conftest$ac_exeext
28703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 28704 (eval $ac_link) 2>&5
a848cd7e 28705 ac_status=$?
a848cd7e
SC
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } &&
de59c161 28708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28710 (eval $ac_try) 2>&5
28711 ac_status=$?
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; }; then
28714 eval "$as_ac_var=yes"
28715else
28716 echo "$as_me: failed program was:" >&5
28717sed 's/^/| /' conftest.$ac_ext >&5
28718
28719eval "$as_ac_var=no"
28720fi
de59c161 28721rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28722fi
28723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28725if test `eval echo '${'$as_ac_var'}'` = yes; then
28726 cat >>confdefs.h <<_ACEOF
28727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28728_ACEOF
28729 break
28730fi
28731done
28732
28733
28734echo "$as_me:$LINENO: checking for statfs" >&5
28735echo $ECHO_N "checking for statfs... $ECHO_C" >&6
28736if test "${wx_cv_func_statfs+set}" = set; then
28737 echo $ECHO_N "(cached) $ECHO_C" >&6
28738else
28739 cat >conftest.$ac_ext <<_ACEOF
de59c161 28740#line $LINENO "configure"
a848cd7e
SC
28741/* confdefs.h. */
28742_ACEOF
28743cat confdefs.h >>conftest.$ac_ext
28744cat >>conftest.$ac_ext <<_ACEOF
28745/* end confdefs.h. */
28746
28747 #if defined(__BSD__)
28748 #include <sys/param.h>
28749 #include <sys/mount.h>
28750 #else
28751 #include <sys/vfs.h>
28752 #endif
28753
28754int
28755main ()
28756{
28757
28758 long l;
28759 struct statfs fs;
28760 statfs("/", &fs);
28761 l = fs.f_bsize;
28762 l += fs.f_blocks;
28763 l += fs.f_bavail;
28764
28765 ;
28766 return 0;
28767}
28768_ACEOF
28769rm -f conftest.$ac_objext
28770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 28771 (eval $ac_compile) 2>&5
a848cd7e 28772 ac_status=$?
a848cd7e
SC
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } &&
de59c161 28775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28777 (eval $ac_try) 2>&5
28778 ac_status=$?
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); }; }; then
28781
28782 wx_cv_func_statfs=yes
28783
28784else
28785 echo "$as_me: failed program was:" >&5
28786sed 's/^/| /' conftest.$ac_ext >&5
28787
28788
28789 wx_cv_func_statfs=no
28790
28791
28792fi
de59c161 28793rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28794
28795fi
28796echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
28797echo "${ECHO_T}$wx_cv_func_statfs" >&6
28798
28799if test "$wx_cv_func_statfs" = "yes"; then
28800 wx_cv_type_statvfs_t="struct statfs"
28801 cat >>confdefs.h <<\_ACEOF
28802#define HAVE_STATFS 1
28803_ACEOF
28804
28805else
28806 echo "$as_me:$LINENO: checking for statvfs" >&5
28807echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
28808if test "${wx_cv_func_statvfs+set}" = set; then
28809 echo $ECHO_N "(cached) $ECHO_C" >&6
28810else
28811 cat >conftest.$ac_ext <<_ACEOF
de59c161 28812#line $LINENO "configure"
a848cd7e
SC
28813/* confdefs.h. */
28814_ACEOF
28815cat confdefs.h >>conftest.$ac_ext
28816cat >>conftest.$ac_ext <<_ACEOF
28817/* end confdefs.h. */
28818
28819 #include <stddef.h>
28820 #include <sys/statvfs.h>
28821
28822int
28823main ()
28824{
28825
28826 statvfs("/", NULL);
28827
28828 ;
28829 return 0;
28830}
28831_ACEOF
28832rm -f conftest.$ac_objext
28833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 28834 (eval $ac_compile) 2>&5
a848cd7e 28835 ac_status=$?
a848cd7e
SC
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); } &&
de59c161 28838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840 (eval $ac_try) 2>&5
28841 ac_status=$?
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); }; }; then
28844 wx_cv_func_statvfs=yes
28845else
28846 echo "$as_me: failed program was:" >&5
28847sed 's/^/| /' conftest.$ac_ext >&5
28848
28849wx_cv_func_statvfs=no
28850
28851fi
de59c161 28852rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28853
28854fi
28855echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
28856echo "${ECHO_T}$wx_cv_func_statvfs" >&6
28857
28858 if test "$wx_cv_func_statvfs" = "yes"; then
28859
28860
28861 ac_ext=cc
28862ac_cpp='$CXXCPP $CPPFLAGS'
28863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28866
28867
28868 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
28869echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
28870if test "${wx_cv_type_statvfs_t+set}" = set; then
28871 echo $ECHO_N "(cached) $ECHO_C" >&6
28872else
28873 cat >conftest.$ac_ext <<_ACEOF
de59c161 28874#line $LINENO "configure"
a848cd7e
SC
28875/* confdefs.h. */
28876_ACEOF
28877cat confdefs.h >>conftest.$ac_ext
28878cat >>conftest.$ac_ext <<_ACEOF
28879/* end confdefs.h. */
28880
28881 #include <sys/statvfs.h>
28882
28883int
28884main ()
28885{
28886
28887 long l;
28888 statvfs_t fs;
28889 statvfs("/", &fs);
28890 l = fs.f_bsize;
28891 l += fs.f_blocks;
28892 l += fs.f_bavail;
28893
28894 ;
28895 return 0;
28896}
28897_ACEOF
28898rm -f conftest.$ac_objext
28899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 28900 (eval $ac_compile) 2>&5
a848cd7e 28901 ac_status=$?
a848cd7e
SC
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); } &&
de59c161 28904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28907 ac_status=$?
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; }; then
28910 wx_cv_type_statvfs_t=statvfs_t
28911else
28912 echo "$as_me: failed program was:" >&5
28913sed 's/^/| /' conftest.$ac_ext >&5
28914
28915
28916 cat >conftest.$ac_ext <<_ACEOF
de59c161 28917#line $LINENO "configure"
a848cd7e
SC
28918/* confdefs.h. */
28919_ACEOF
28920cat confdefs.h >>conftest.$ac_ext
28921cat >>conftest.$ac_ext <<_ACEOF
28922/* end confdefs.h. */
28923
28924 #include <sys/statvfs.h>
28925
28926int
28927main ()
28928{
28929
28930 long l;
28931 struct statvfs fs;
28932 statvfs("/", &fs);
28933 l = fs.f_bsize;
28934 l += fs.f_blocks;
28935 l += fs.f_bavail;
28936
28937 ;
28938 return 0;
28939}
28940_ACEOF
28941rm -f conftest.$ac_objext
28942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 28943 (eval $ac_compile) 2>&5
a848cd7e 28944 ac_status=$?
a848cd7e
SC
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } &&
de59c161 28947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
28953 wx_cv_type_statvfs_t="struct statvfs"
28954else
28955 echo "$as_me: failed program was:" >&5
28956sed 's/^/| /' conftest.$ac_ext >&5
28957
28958wx_cv_type_statvfs_t="unknown"
28959
28960fi
de59c161 28961rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28962
28963
28964fi
de59c161 28965rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28966
28967fi
28968echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
28969echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
28970
28971 ac_ext=c
28972ac_cpp='$CPP $CPPFLAGS'
28973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28975ac_compiler_gnu=$ac_cv_c_compiler_gnu
28976
28977
28978 if test "$wx_cv_type_statvfs_t" != "unknown"; then
28979 cat >>confdefs.h <<\_ACEOF
28980#define HAVE_STATVFS 1
28981_ACEOF
28982
28983 fi
28984 else
28985 wx_cv_type_statvfs_t="unknown"
28986 fi
28987fi
28988
28989if test "$wx_cv_type_statvfs_t" != "unknown"; then
28990 cat >>confdefs.h <<_ACEOF
28991#define WX_STATFS_T $wx_cv_type_statvfs_t
28992_ACEOF
28993
28994else
28995 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
28996echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
28997fi
28998
28999if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
29000
29001
29002for ac_func in fcntl flock
29003do
29004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29005echo "$as_me:$LINENO: checking for $ac_func" >&5
29006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29007if eval "test \"\${$as_ac_var+set}\" = set"; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
29009else
29010 cat >conftest.$ac_ext <<_ACEOF
de59c161 29011#line $LINENO "configure"
a848cd7e
SC
29012/* confdefs.h. */
29013_ACEOF
29014cat confdefs.h >>conftest.$ac_ext
29015cat >>conftest.$ac_ext <<_ACEOF
29016/* end confdefs.h. */
a848cd7e
SC
29017/* System header to define __stub macros and hopefully few prototypes,
29018 which can conflict with char $ac_func (); below.
29019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29020 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29021#ifdef __STDC__
29022# include <limits.h>
29023#else
29024# include <assert.h>
29025#endif
a848cd7e
SC
29026/* Override any gcc2 internal prototype to avoid an error. */
29027#ifdef __cplusplus
29028extern "C"
29029{
29030#endif
29031/* We use char because int might match the return type of a gcc2
29032 builtin and then its argument prototype would still apply. */
29033char $ac_func ();
29034/* The GNU C library defines this for functions which it implements
29035 to always fail with ENOSYS. Some functions are actually named
29036 something starting with __ and the normal name is an alias. */
29037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29038choke me
29039#else
29040char (*f) () = $ac_func;
29041#endif
29042#ifdef __cplusplus
29043}
29044#endif
29045
29046int
29047main ()
29048{
29049return f != $ac_func;
29050 ;
29051 return 0;
29052}
29053_ACEOF
29054rm -f conftest.$ac_objext conftest$ac_exeext
29055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29056 (eval $ac_link) 2>&5
a848cd7e 29057 ac_status=$?
a848cd7e
SC
29058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059 (exit $ac_status); } &&
de59c161 29060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062 (eval $ac_try) 2>&5
29063 ac_status=$?
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; }; then
29066 eval "$as_ac_var=yes"
29067else
29068 echo "$as_me: failed program was:" >&5
29069sed 's/^/| /' conftest.$ac_ext >&5
29070
29071eval "$as_ac_var=no"
29072fi
de59c161 29073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29074fi
29075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29077if test `eval echo '${'$as_ac_var'}'` = yes; then
29078 cat >>confdefs.h <<_ACEOF
29079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29080_ACEOF
29081 break
29082fi
29083done
29084
29085
29086 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
29087 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29088echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
29089 wxUSE_SNGLINST_CHECKER=no
29090 fi
29091fi
29092
29093
29094for ac_func in timegm
29095do
29096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29097echo "$as_me:$LINENO: checking for $ac_func" >&5
29098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29099if eval "test \"\${$as_ac_var+set}\" = set"; then
29100 echo $ECHO_N "(cached) $ECHO_C" >&6
29101else
29102 cat >conftest.$ac_ext <<_ACEOF
de59c161 29103#line $LINENO "configure"
a848cd7e
SC
29104/* confdefs.h. */
29105_ACEOF
29106cat confdefs.h >>conftest.$ac_ext
29107cat >>conftest.$ac_ext <<_ACEOF
29108/* end confdefs.h. */
a848cd7e
SC
29109/* System header to define __stub macros and hopefully few prototypes,
29110 which can conflict with char $ac_func (); below.
29111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29112 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29113#ifdef __STDC__
29114# include <limits.h>
29115#else
29116# include <assert.h>
29117#endif
a848cd7e
SC
29118/* Override any gcc2 internal prototype to avoid an error. */
29119#ifdef __cplusplus
29120extern "C"
29121{
29122#endif
29123/* We use char because int might match the return type of a gcc2
29124 builtin and then its argument prototype would still apply. */
29125char $ac_func ();
29126/* The GNU C library defines this for functions which it implements
29127 to always fail with ENOSYS. Some functions are actually named
29128 something starting with __ and the normal name is an alias. */
29129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29130choke me
29131#else
29132char (*f) () = $ac_func;
29133#endif
29134#ifdef __cplusplus
29135}
29136#endif
29137
29138int
29139main ()
29140{
29141return f != $ac_func;
29142 ;
29143 return 0;
29144}
29145_ACEOF
29146rm -f conftest.$ac_objext conftest$ac_exeext
29147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29148 (eval $ac_link) 2>&5
a848cd7e 29149 ac_status=$?
a848cd7e
SC
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } &&
de59c161 29152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154 (eval $ac_try) 2>&5
29155 ac_status=$?
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; }; then
29158 eval "$as_ac_var=yes"
29159else
29160 echo "$as_me: failed program was:" >&5
29161sed 's/^/| /' conftest.$ac_ext >&5
29162
29163eval "$as_ac_var=no"
29164fi
de59c161 29165rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29166fi
29167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29168echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29169if test `eval echo '${'$as_ac_var'}'` = yes; then
29170 cat >>confdefs.h <<_ACEOF
29171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29172_ACEOF
29173
29174fi
29175done
29176
29177
29178
29179
29180for ac_func in putenv setenv
29181do
29182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29183echo "$as_me:$LINENO: checking for $ac_func" >&5
29184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29185if eval "test \"\${$as_ac_var+set}\" = set"; then
29186 echo $ECHO_N "(cached) $ECHO_C" >&6
29187else
29188 cat >conftest.$ac_ext <<_ACEOF
de59c161 29189#line $LINENO "configure"
a848cd7e
SC
29190/* confdefs.h. */
29191_ACEOF
29192cat confdefs.h >>conftest.$ac_ext
29193cat >>conftest.$ac_ext <<_ACEOF
29194/* end confdefs.h. */
a848cd7e
SC
29195/* System header to define __stub macros and hopefully few prototypes,
29196 which can conflict with char $ac_func (); below.
29197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29198 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29199#ifdef __STDC__
29200# include <limits.h>
29201#else
29202# include <assert.h>
29203#endif
a848cd7e
SC
29204/* Override any gcc2 internal prototype to avoid an error. */
29205#ifdef __cplusplus
29206extern "C"
29207{
29208#endif
29209/* We use char because int might match the return type of a gcc2
29210 builtin and then its argument prototype would still apply. */
29211char $ac_func ();
29212/* The GNU C library defines this for functions which it implements
29213 to always fail with ENOSYS. Some functions are actually named
29214 something starting with __ and the normal name is an alias. */
29215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29216choke me
29217#else
29218char (*f) () = $ac_func;
29219#endif
29220#ifdef __cplusplus
29221}
29222#endif
29223
29224int
29225main ()
29226{
29227return f != $ac_func;
29228 ;
29229 return 0;
29230}
29231_ACEOF
29232rm -f conftest.$ac_objext conftest$ac_exeext
29233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29234 (eval $ac_link) 2>&5
a848cd7e 29235 ac_status=$?
a848cd7e
SC
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); } &&
de59c161 29238 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29240 (eval $ac_try) 2>&5
29241 ac_status=$?
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); }; }; then
29244 eval "$as_ac_var=yes"
29245else
29246 echo "$as_me: failed program was:" >&5
29247sed 's/^/| /' conftest.$ac_ext >&5
29248
29249eval "$as_ac_var=no"
29250fi
de59c161 29251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29252fi
29253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29255if test `eval echo '${'$as_ac_var'}'` = yes; then
29256 cat >>confdefs.h <<_ACEOF
29257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29258_ACEOF
29259 break
29260fi
29261done
29262
29263
29264HAVE_SOME_SLEEP_FUNC=0
29265if test "$USE_BEOS" = 1; then
29266 cat >>confdefs.h <<\_ACEOF
29267#define HAVE_SLEEP 1
29268_ACEOF
29269
29270 HAVE_SOME_SLEEP_FUNC=1
29271fi
29272
29273if test "$USE_DARWIN" = 1; then
29274 cat >>confdefs.h <<\_ACEOF
29275#define HAVE_USLEEP 1
29276_ACEOF
29277
29278 HAVE_SOME_SLEEP_FUNC=1
29279fi
29280
29281if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
29282 POSIX4_LINK=
29283
29284for ac_func in nanosleep
29285do
29286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29287echo "$as_me:$LINENO: checking for $ac_func" >&5
29288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29289if eval "test \"\${$as_ac_var+set}\" = set"; then
29290 echo $ECHO_N "(cached) $ECHO_C" >&6
29291else
29292 cat >conftest.$ac_ext <<_ACEOF
de59c161 29293#line $LINENO "configure"
a848cd7e
SC
29294/* confdefs.h. */
29295_ACEOF
29296cat confdefs.h >>conftest.$ac_ext
29297cat >>conftest.$ac_ext <<_ACEOF
29298/* end confdefs.h. */
a848cd7e
SC
29299/* System header to define __stub macros and hopefully few prototypes,
29300 which can conflict with char $ac_func (); below.
29301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29302 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29303#ifdef __STDC__
29304# include <limits.h>
29305#else
29306# include <assert.h>
29307#endif
a848cd7e
SC
29308/* Override any gcc2 internal prototype to avoid an error. */
29309#ifdef __cplusplus
29310extern "C"
29311{
29312#endif
29313/* We use char because int might match the return type of a gcc2
29314 builtin and then its argument prototype would still apply. */
29315char $ac_func ();
29316/* The GNU C library defines this for functions which it implements
29317 to always fail with ENOSYS. Some functions are actually named
29318 something starting with __ and the normal name is an alias. */
29319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29320choke me
29321#else
29322char (*f) () = $ac_func;
29323#endif
29324#ifdef __cplusplus
29325}
29326#endif
29327
29328int
29329main ()
29330{
29331return f != $ac_func;
29332 ;
29333 return 0;
29334}
29335_ACEOF
29336rm -f conftest.$ac_objext conftest$ac_exeext
29337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29338 (eval $ac_link) 2>&5
a848cd7e 29339 ac_status=$?
a848cd7e
SC
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); } &&
de59c161 29342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29345 ac_status=$?
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 eval "$as_ac_var=yes"
29349else
29350 echo "$as_me: failed program was:" >&5
29351sed 's/^/| /' conftest.$ac_ext >&5
29352
29353eval "$as_ac_var=no"
29354fi
de59c161 29355rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29356fi
29357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29358echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29359if test `eval echo '${'$as_ac_var'}'` = yes; then
29360 cat >>confdefs.h <<_ACEOF
29361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29362_ACEOF
29363 cat >>confdefs.h <<\_ACEOF
29364#define HAVE_NANOSLEEP 1
29365_ACEOF
29366
29367else
29368
29369 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
29370echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
29371if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
29372 echo $ECHO_N "(cached) $ECHO_C" >&6
29373else
29374 ac_check_lib_save_LIBS=$LIBS
29375LIBS="-lposix4 $LIBS"
29376cat >conftest.$ac_ext <<_ACEOF
de59c161 29377#line $LINENO "configure"
a848cd7e
SC
29378/* confdefs.h. */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h. */
29383
29384/* Override any gcc2 internal prototype to avoid an error. */
29385#ifdef __cplusplus
29386extern "C"
29387#endif
29388/* We use char because int might match the return type of a gcc2
29389 builtin and then its argument prototype would still apply. */
29390char nanosleep ();
29391int
29392main ()
29393{
29394nanosleep ();
29395 ;
29396 return 0;
29397}
29398_ACEOF
29399rm -f conftest.$ac_objext conftest$ac_exeext
29400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29401 (eval $ac_link) 2>&5
a848cd7e 29402 ac_status=$?
a848cd7e
SC
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); } &&
de59c161 29405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29408 ac_status=$?
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; }; then
29411 ac_cv_lib_posix4_nanosleep=yes
29412else
29413 echo "$as_me: failed program was:" >&5
29414sed 's/^/| /' conftest.$ac_ext >&5
29415
29416ac_cv_lib_posix4_nanosleep=no
29417fi
de59c161 29418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29419LIBS=$ac_check_lib_save_LIBS
29420fi
29421echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
29422echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
29423if test $ac_cv_lib_posix4_nanosleep = yes; then
29424
29425 cat >>confdefs.h <<\_ACEOF
29426#define HAVE_NANOSLEEP 1
29427_ACEOF
29428
29429 POSIX4_LINK=" -lposix4"
29430
29431else
29432
29433
29434for ac_func in usleep
29435do
29436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29437echo "$as_me:$LINENO: checking for $ac_func" >&5
29438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29439if eval "test \"\${$as_ac_var+set}\" = set"; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29441else
29442 cat >conftest.$ac_ext <<_ACEOF
de59c161 29443#line $LINENO "configure"
a848cd7e
SC
29444/* confdefs.h. */
29445_ACEOF
29446cat confdefs.h >>conftest.$ac_ext
29447cat >>conftest.$ac_ext <<_ACEOF
29448/* end confdefs.h. */
a848cd7e
SC
29449/* System header to define __stub macros and hopefully few prototypes,
29450 which can conflict with char $ac_func (); below.
29451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29452 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29453#ifdef __STDC__
29454# include <limits.h>
29455#else
29456# include <assert.h>
29457#endif
a848cd7e
SC
29458/* Override any gcc2 internal prototype to avoid an error. */
29459#ifdef __cplusplus
29460extern "C"
29461{
29462#endif
29463/* We use char because int might match the return type of a gcc2
29464 builtin and then its argument prototype would still apply. */
29465char $ac_func ();
29466/* The GNU C library defines this for functions which it implements
29467 to always fail with ENOSYS. Some functions are actually named
29468 something starting with __ and the normal name is an alias. */
29469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29470choke me
29471#else
29472char (*f) () = $ac_func;
29473#endif
29474#ifdef __cplusplus
29475}
29476#endif
29477
29478int
29479main ()
29480{
29481return f != $ac_func;
29482 ;
29483 return 0;
29484}
29485_ACEOF
29486rm -f conftest.$ac_objext conftest$ac_exeext
29487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29488 (eval $ac_link) 2>&5
a848cd7e 29489 ac_status=$?
a848cd7e
SC
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); } &&
de59c161 29492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29494 (eval $ac_try) 2>&5
29495 ac_status=$?
29496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); }; }; then
29498 eval "$as_ac_var=yes"
29499else
29500 echo "$as_me: failed program was:" >&5
29501sed 's/^/| /' conftest.$ac_ext >&5
29502
29503eval "$as_ac_var=no"
29504fi
de59c161 29505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29506fi
29507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29509if test `eval echo '${'$as_ac_var'}'` = yes; then
29510 cat >>confdefs.h <<_ACEOF
29511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29512_ACEOF
29513 cat >>confdefs.h <<\_ACEOF
29514#define HAVE_USLEEP 1
29515_ACEOF
29516
29517else
29518 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
29519echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
29520
29521fi
29522done
29523
29524
29525
29526fi
29527
29528
29529
29530fi
29531done
29532
29533fi
29534
29535
29536
29537for ac_func in uname gethostname
29538do
29539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29540echo "$as_me:$LINENO: checking for $ac_func" >&5
29541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29542if eval "test \"\${$as_ac_var+set}\" = set"; then
29543 echo $ECHO_N "(cached) $ECHO_C" >&6
29544else
29545 cat >conftest.$ac_ext <<_ACEOF
de59c161 29546#line $LINENO "configure"
a848cd7e
SC
29547/* confdefs.h. */
29548_ACEOF
29549cat confdefs.h >>conftest.$ac_ext
29550cat >>conftest.$ac_ext <<_ACEOF
29551/* end confdefs.h. */
a848cd7e
SC
29552/* System header to define __stub macros and hopefully few prototypes,
29553 which can conflict with char $ac_func (); below.
29554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29555 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29556#ifdef __STDC__
29557# include <limits.h>
29558#else
29559# include <assert.h>
29560#endif
a848cd7e
SC
29561/* Override any gcc2 internal prototype to avoid an error. */
29562#ifdef __cplusplus
29563extern "C"
29564{
29565#endif
29566/* We use char because int might match the return type of a gcc2
29567 builtin and then its argument prototype would still apply. */
29568char $ac_func ();
29569/* The GNU C library defines this for functions which it implements
29570 to always fail with ENOSYS. Some functions are actually named
29571 something starting with __ and the normal name is an alias. */
29572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29573choke me
29574#else
29575char (*f) () = $ac_func;
29576#endif
29577#ifdef __cplusplus
29578}
29579#endif
29580
29581int
29582main ()
29583{
29584return f != $ac_func;
29585 ;
29586 return 0;
29587}
29588_ACEOF
29589rm -f conftest.$ac_objext conftest$ac_exeext
29590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29591 (eval $ac_link) 2>&5
a848cd7e 29592 ac_status=$?
a848cd7e
SC
29593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); } &&
de59c161 29595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29597 (eval $ac_try) 2>&5
29598 ac_status=$?
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); }; }; then
29601 eval "$as_ac_var=yes"
29602else
29603 echo "$as_me: failed program was:" >&5
29604sed 's/^/| /' conftest.$ac_ext >&5
29605
29606eval "$as_ac_var=no"
29607fi
de59c161 29608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29609fi
29610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29611echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29612if test `eval echo '${'$as_ac_var'}'` = yes; then
29613 cat >>confdefs.h <<_ACEOF
29614#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29615_ACEOF
29616 break
29617fi
29618done
29619
29620
29621
29622
29623ac_ext=cc
29624ac_cpp='$CXXCPP $CPPFLAGS'
29625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29628
29629
29630
29631for ac_func in strtok_r
29632do
29633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29634echo "$as_me:$LINENO: checking for $ac_func" >&5
29635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29636if eval "test \"\${$as_ac_var+set}\" = set"; then
29637 echo $ECHO_N "(cached) $ECHO_C" >&6
29638else
29639 cat >conftest.$ac_ext <<_ACEOF
de59c161 29640#line $LINENO "configure"
a848cd7e
SC
29641/* confdefs.h. */
29642_ACEOF
29643cat confdefs.h >>conftest.$ac_ext
29644cat >>conftest.$ac_ext <<_ACEOF
29645/* end confdefs.h. */
a848cd7e
SC
29646/* System header to define __stub macros and hopefully few prototypes,
29647 which can conflict with char $ac_func (); below.
29648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29649 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29650#ifdef __STDC__
29651# include <limits.h>
29652#else
29653# include <assert.h>
29654#endif
a848cd7e
SC
29655/* Override any gcc2 internal prototype to avoid an error. */
29656#ifdef __cplusplus
29657extern "C"
29658{
29659#endif
29660/* We use char because int might match the return type of a gcc2
29661 builtin and then its argument prototype would still apply. */
29662char $ac_func ();
29663/* The GNU C library defines this for functions which it implements
29664 to always fail with ENOSYS. Some functions are actually named
29665 something starting with __ and the normal name is an alias. */
29666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29667choke me
29668#else
29669char (*f) () = $ac_func;
29670#endif
29671#ifdef __cplusplus
29672}
29673#endif
29674
29675int
29676main ()
29677{
29678return f != $ac_func;
29679 ;
29680 return 0;
29681}
29682_ACEOF
29683rm -f conftest.$ac_objext conftest$ac_exeext
29684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29685 (eval $ac_link) 2>&5
a848cd7e 29686 ac_status=$?
a848cd7e
SC
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); } &&
de59c161 29689 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691 (eval $ac_try) 2>&5
29692 ac_status=$?
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; }; then
29695 eval "$as_ac_var=yes"
29696else
29697 echo "$as_me: failed program was:" >&5
29698sed 's/^/| /' conftest.$ac_ext >&5
29699
29700eval "$as_ac_var=no"
29701fi
de59c161 29702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29703fi
29704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29705echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29706if test `eval echo '${'$as_ac_var'}'` = yes; then
29707 cat >>confdefs.h <<_ACEOF
29708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29709_ACEOF
29710
29711fi
29712done
29713
29714
29715ac_ext=c
29716ac_cpp='$CPP $CPPFLAGS'
29717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29719ac_compiler_gnu=$ac_cv_c_compiler_gnu
29720
29721
29722INET_LINK=
29723
29724for ac_func in inet_addr
29725do
29726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29727echo "$as_me:$LINENO: checking for $ac_func" >&5
29728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29729if eval "test \"\${$as_ac_var+set}\" = set"; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29731else
29732 cat >conftest.$ac_ext <<_ACEOF
de59c161 29733#line $LINENO "configure"
a848cd7e
SC
29734/* confdefs.h. */
29735_ACEOF
29736cat confdefs.h >>conftest.$ac_ext
29737cat >>conftest.$ac_ext <<_ACEOF
29738/* end confdefs.h. */
a848cd7e
SC
29739/* System header to define __stub macros and hopefully few prototypes,
29740 which can conflict with char $ac_func (); below.
29741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29742 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29743#ifdef __STDC__
29744# include <limits.h>
29745#else
29746# include <assert.h>
29747#endif
a848cd7e
SC
29748/* Override any gcc2 internal prototype to avoid an error. */
29749#ifdef __cplusplus
29750extern "C"
29751{
29752#endif
29753/* We use char because int might match the return type of a gcc2
29754 builtin and then its argument prototype would still apply. */
29755char $ac_func ();
29756/* The GNU C library defines this for functions which it implements
29757 to always fail with ENOSYS. Some functions are actually named
29758 something starting with __ and the normal name is an alias. */
29759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29760choke me
29761#else
29762char (*f) () = $ac_func;
29763#endif
29764#ifdef __cplusplus
29765}
29766#endif
29767
29768int
29769main ()
29770{
29771return f != $ac_func;
29772 ;
29773 return 0;
29774}
29775_ACEOF
29776rm -f conftest.$ac_objext conftest$ac_exeext
29777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29778 (eval $ac_link) 2>&5
a848cd7e 29779 ac_status=$?
a848cd7e
SC
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); } &&
de59c161 29782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29784 (eval $ac_try) 2>&5
29785 ac_status=$?
29786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787 (exit $ac_status); }; }; then
29788 eval "$as_ac_var=yes"
29789else
29790 echo "$as_me: failed program was:" >&5
29791sed 's/^/| /' conftest.$ac_ext >&5
29792
29793eval "$as_ac_var=no"
29794fi
de59c161 29795rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29796fi
29797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29799if test `eval echo '${'$as_ac_var'}'` = yes; then
29800 cat >>confdefs.h <<_ACEOF
29801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29802_ACEOF
29803 cat >>confdefs.h <<\_ACEOF
29804#define HAVE_INET_ADDR 1
29805_ACEOF
29806
29807else
29808
29809 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
29810echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
29811if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
29812 echo $ECHO_N "(cached) $ECHO_C" >&6
29813else
29814 ac_check_lib_save_LIBS=$LIBS
29815LIBS="-lnsl $LIBS"
29816cat >conftest.$ac_ext <<_ACEOF
de59c161 29817#line $LINENO "configure"
a848cd7e
SC
29818/* confdefs.h. */
29819_ACEOF
29820cat confdefs.h >>conftest.$ac_ext
29821cat >>conftest.$ac_ext <<_ACEOF
29822/* end confdefs.h. */
29823
29824/* Override any gcc2 internal prototype to avoid an error. */
29825#ifdef __cplusplus
29826extern "C"
29827#endif
29828/* We use char because int might match the return type of a gcc2
29829 builtin and then its argument prototype would still apply. */
29830char inet_addr ();
29831int
29832main ()
29833{
29834inet_addr ();
29835 ;
29836 return 0;
29837}
29838_ACEOF
29839rm -f conftest.$ac_objext conftest$ac_exeext
29840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29841 (eval $ac_link) 2>&5
a848cd7e 29842 ac_status=$?
a848cd7e
SC
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); } &&
de59c161 29845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29848 ac_status=$?
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; }; then
29851 ac_cv_lib_nsl_inet_addr=yes
29852else
29853 echo "$as_me: failed program was:" >&5
29854sed 's/^/| /' conftest.$ac_ext >&5
29855
29856ac_cv_lib_nsl_inet_addr=no
29857fi
de59c161 29858rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29859LIBS=$ac_check_lib_save_LIBS
29860fi
29861echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
29862echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
29863if test $ac_cv_lib_nsl_inet_addr = yes; then
29864 INET_LINK="nsl"
29865else
29866
29867 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
29868echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
29869if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
29870 echo $ECHO_N "(cached) $ECHO_C" >&6
29871else
29872 ac_check_lib_save_LIBS=$LIBS
29873LIBS="-lresolv $LIBS"
29874cat >conftest.$ac_ext <<_ACEOF
de59c161 29875#line $LINENO "configure"
a848cd7e
SC
29876/* confdefs.h. */
29877_ACEOF
29878cat confdefs.h >>conftest.$ac_ext
29879cat >>conftest.$ac_ext <<_ACEOF
29880/* end confdefs.h. */
29881
29882/* Override any gcc2 internal prototype to avoid an error. */
29883#ifdef __cplusplus
29884extern "C"
29885#endif
29886/* We use char because int might match the return type of a gcc2
29887 builtin and then its argument prototype would still apply. */
29888char inet_addr ();
29889int
29890main ()
29891{
29892inet_addr ();
29893 ;
29894 return 0;
29895}
29896_ACEOF
29897rm -f conftest.$ac_objext conftest$ac_exeext
29898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29899 (eval $ac_link) 2>&5
a848cd7e 29900 ac_status=$?
a848cd7e
SC
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); } &&
de59c161 29903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29905 (eval $ac_try) 2>&5
29906 ac_status=$?
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; }; then
29909 ac_cv_lib_resolv_inet_addr=yes
29910else
29911 echo "$as_me: failed program was:" >&5
29912sed 's/^/| /' conftest.$ac_ext >&5
29913
29914ac_cv_lib_resolv_inet_addr=no
29915fi
de59c161 29916rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29917LIBS=$ac_check_lib_save_LIBS
29918fi
29919echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
29920echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
29921if test $ac_cv_lib_resolv_inet_addr = yes; then
29922 INET_LINK="resolv"
29923else
29924
29925 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
29926echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
29927if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
29928 echo $ECHO_N "(cached) $ECHO_C" >&6
29929else
29930 ac_check_lib_save_LIBS=$LIBS
29931LIBS="-lsocket $LIBS"
29932cat >conftest.$ac_ext <<_ACEOF
de59c161 29933#line $LINENO "configure"
a848cd7e
SC
29934/* confdefs.h. */
29935_ACEOF
29936cat confdefs.h >>conftest.$ac_ext
29937cat >>conftest.$ac_ext <<_ACEOF
29938/* end confdefs.h. */
29939
29940/* Override any gcc2 internal prototype to avoid an error. */
29941#ifdef __cplusplus
29942extern "C"
29943#endif
29944/* We use char because int might match the return type of a gcc2
29945 builtin and then its argument prototype would still apply. */
29946char inet_addr ();
29947int
29948main ()
29949{
29950inet_addr ();
29951 ;
29952 return 0;
29953}
29954_ACEOF
29955rm -f conftest.$ac_objext conftest$ac_exeext
29956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 29957 (eval $ac_link) 2>&5
a848cd7e 29958 ac_status=$?
a848cd7e
SC
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); } &&
de59c161 29961 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29963 (eval $ac_try) 2>&5
29964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; }; then
29967 ac_cv_lib_socket_inet_addr=yes
29968else
29969 echo "$as_me: failed program was:" >&5
29970sed 's/^/| /' conftest.$ac_ext >&5
29971
29972ac_cv_lib_socket_inet_addr=no
29973fi
de59c161 29974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29975LIBS=$ac_check_lib_save_LIBS
29976fi
29977echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
29978echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
29979if test $ac_cv_lib_socket_inet_addr = yes; then
29980 INET_LINK="socket"
29981
29982fi
29983
29984
29985
29986fi
29987
29988
29989
29990fi
29991
29992
29993
29994fi
29995done
29996
29997
29998
29999for ac_func in inet_aton
30000do
30001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30002echo "$as_me:$LINENO: checking for $ac_func" >&5
30003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30004if eval "test \"\${$as_ac_var+set}\" = set"; then
30005 echo $ECHO_N "(cached) $ECHO_C" >&6
30006else
30007 cat >conftest.$ac_ext <<_ACEOF
de59c161 30008#line $LINENO "configure"
a848cd7e
SC
30009/* confdefs.h. */
30010_ACEOF
30011cat confdefs.h >>conftest.$ac_ext
30012cat >>conftest.$ac_ext <<_ACEOF
30013/* end confdefs.h. */
a848cd7e
SC
30014/* System header to define __stub macros and hopefully few prototypes,
30015 which can conflict with char $ac_func (); below.
30016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30017 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
30018#ifdef __STDC__
30019# include <limits.h>
30020#else
30021# include <assert.h>
30022#endif
a848cd7e
SC
30023/* Override any gcc2 internal prototype to avoid an error. */
30024#ifdef __cplusplus
30025extern "C"
30026{
30027#endif
30028/* We use char because int might match the return type of a gcc2
30029 builtin and then its argument prototype would still apply. */
30030char $ac_func ();
30031/* The GNU C library defines this for functions which it implements
30032 to always fail with ENOSYS. Some functions are actually named
30033 something starting with __ and the normal name is an alias. */
30034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30035choke me
30036#else
30037char (*f) () = $ac_func;
30038#endif
30039#ifdef __cplusplus
30040}
30041#endif
30042
30043int
30044main ()
30045{
30046return f != $ac_func;
30047 ;
30048 return 0;
30049}
30050_ACEOF
30051rm -f conftest.$ac_objext conftest$ac_exeext
30052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 30053 (eval $ac_link) 2>&5
a848cd7e 30054 ac_status=$?
a848cd7e
SC
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); } &&
de59c161 30057 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30059 (eval $ac_try) 2>&5
30060 ac_status=$?
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); }; }; then
30063 eval "$as_ac_var=yes"
30064else
30065 echo "$as_me: failed program was:" >&5
30066sed 's/^/| /' conftest.$ac_ext >&5
30067
30068eval "$as_ac_var=no"
30069fi
de59c161 30070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30071fi
30072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30073echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30074if test `eval echo '${'$as_ac_var'}'` = yes; then
30075 cat >>confdefs.h <<_ACEOF
30076#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30077_ACEOF
30078 cat >>confdefs.h <<\_ACEOF
30079#define HAVE_INET_ATON 1
30080_ACEOF
30081
30082else
30083
30084 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
30085echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
30086echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
30087if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30088 echo $ECHO_N "(cached) $ECHO_C" >&6
30089else
30090 ac_check_lib_save_LIBS=$LIBS
30091LIBS="-l$INET_LINK $LIBS"
30092cat >conftest.$ac_ext <<_ACEOF
de59c161 30093#line $LINENO "configure"
a848cd7e
SC
30094/* confdefs.h. */
30095_ACEOF
30096cat confdefs.h >>conftest.$ac_ext
30097cat >>conftest.$ac_ext <<_ACEOF
30098/* end confdefs.h. */
30099
30100/* Override any gcc2 internal prototype to avoid an error. */
30101#ifdef __cplusplus
30102extern "C"
30103#endif
30104/* We use char because int might match the return type of a gcc2
30105 builtin and then its argument prototype would still apply. */
30106char inet_aton ();
30107int
30108main ()
30109{
30110inet_aton ();
30111 ;
30112 return 0;
30113}
30114_ACEOF
30115rm -f conftest.$ac_objext conftest$ac_exeext
30116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 30117 (eval $ac_link) 2>&5
a848cd7e 30118 ac_status=$?
a848cd7e
SC
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); } &&
de59c161 30121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30123 (eval $ac_try) 2>&5
30124 ac_status=$?
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; }; then
30127 eval "$as_ac_Lib=yes"
30128else
30129 echo "$as_me: failed program was:" >&5
30130sed 's/^/| /' conftest.$ac_ext >&5
30131
30132eval "$as_ac_Lib=no"
30133fi
de59c161 30134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30135LIBS=$ac_check_lib_save_LIBS
30136fi
30137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30138echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30139if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30140 cat >>confdefs.h <<\_ACEOF
30141#define HAVE_INET_ATON 1
30142_ACEOF
30143
30144fi
30145
30146
30147fi
30148done
30149
30150
30151if test "x$INET_LINK" != "x"; then
30152 cat >>confdefs.h <<\_ACEOF
30153#define HAVE_INET_ADDR 1
30154_ACEOF
30155
30156 INET_LINK=" -l$INET_LINK"
30157fi
30158
30159fi
30160
30161
30162
30163EXTRALIBS_ESD=
30164echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
30165echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
30166if test "${ac_cv_lib_esd_esd_close+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30168else
30169 ac_check_lib_save_LIBS=$LIBS
30170LIBS="-lesd $LIBS"
30171cat >conftest.$ac_ext <<_ACEOF
de59c161 30172#line $LINENO "configure"
a848cd7e
SC
30173/* confdefs.h. */
30174_ACEOF
30175cat confdefs.h >>conftest.$ac_ext
30176cat >>conftest.$ac_ext <<_ACEOF
30177/* end confdefs.h. */
30178
30179/* Override any gcc2 internal prototype to avoid an error. */
30180#ifdef __cplusplus
30181extern "C"
30182#endif
30183/* We use char because int might match the return type of a gcc2
30184 builtin and then its argument prototype would still apply. */
30185char esd_close ();
30186int
30187main ()
30188{
30189esd_close ();
30190 ;
30191 return 0;
30192}
30193_ACEOF
30194rm -f conftest.$ac_objext conftest$ac_exeext
30195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 30196 (eval $ac_link) 2>&5
a848cd7e 30197 ac_status=$?
a848cd7e
SC
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); } &&
de59c161 30200 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30202 (eval $ac_try) 2>&5
30203 ac_status=$?
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; }; then
30206 ac_cv_lib_esd_esd_close=yes
30207else
30208 echo "$as_me: failed program was:" >&5
30209sed 's/^/| /' conftest.$ac_ext >&5
30210
30211ac_cv_lib_esd_esd_close=no
30212fi
de59c161 30213rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30214LIBS=$ac_check_lib_save_LIBS
30215fi
30216echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
30217echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
30218if test $ac_cv_lib_esd_esd_close = yes; then
30219
30220
30221for ac_header in esd.h
30222do
30223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30224if eval "test \"\${$as_ac_Header+set}\" = set"; then
30225 echo "$as_me:$LINENO: checking for $ac_header" >&5
30226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30227if eval "test \"\${$as_ac_Header+set}\" = set"; then
30228 echo $ECHO_N "(cached) $ECHO_C" >&6
30229fi
30230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30232else
30233 # Is the header compilable?
30234echo "$as_me:$LINENO: checking $ac_header usability" >&5
30235echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30236cat >conftest.$ac_ext <<_ACEOF
de59c161 30237#line $LINENO "configure"
a848cd7e
SC
30238/* confdefs.h. */
30239_ACEOF
30240cat confdefs.h >>conftest.$ac_ext
30241cat >>conftest.$ac_ext <<_ACEOF
30242/* end confdefs.h. */
30243$ac_includes_default
30244#include <$ac_header>
30245_ACEOF
30246rm -f conftest.$ac_objext
30247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 30248 (eval $ac_compile) 2>&5
a848cd7e 30249 ac_status=$?
a848cd7e
SC
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); } &&
de59c161 30252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254 (eval $ac_try) 2>&5
30255 ac_status=$?
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; }; then
30258 ac_header_compiler=yes
30259else
30260 echo "$as_me: failed program was:" >&5
30261sed 's/^/| /' conftest.$ac_ext >&5
30262
30263ac_header_compiler=no
30264fi
de59c161 30265rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30267echo "${ECHO_T}$ac_header_compiler" >&6
30268
30269# Is the header present?
30270echo "$as_me:$LINENO: checking $ac_header presence" >&5
30271echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30272cat >conftest.$ac_ext <<_ACEOF
de59c161 30273#line $LINENO "configure"
a848cd7e
SC
30274/* confdefs.h. */
30275_ACEOF
30276cat confdefs.h >>conftest.$ac_ext
30277cat >>conftest.$ac_ext <<_ACEOF
30278/* end confdefs.h. */
30279#include <$ac_header>
30280_ACEOF
30281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30283 ac_status=$?
30284 grep -v '^ *+' conftest.er1 >conftest.err
30285 rm -f conftest.er1
30286 cat conftest.err >&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); } >/dev/null; then
30289 if test -s conftest.err; then
30290 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
30291 else
30292 ac_cpp_err=
30293 fi
30294else
30295 ac_cpp_err=yes
30296fi
30297if test -z "$ac_cpp_err"; then
30298 ac_header_preproc=yes
30299else
30300 echo "$as_me: failed program was:" >&5
30301sed 's/^/| /' conftest.$ac_ext >&5
30302
30303 ac_header_preproc=no
30304fi
30305rm -f conftest.err conftest.$ac_ext
30306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30307echo "${ECHO_T}$ac_header_preproc" >&6
30308
30309# So? What about this header?
de59c161
RD
30310case $ac_header_compiler:$ac_header_preproc in
30311 yes:no )
a848cd7e
SC
30312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30313echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
30314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30316 (
30317 cat <<\_ASBOX
30318## ------------------------------------ ##
30319## Report this to bug-autoconf@gnu.org. ##
30320## ------------------------------------ ##
30321_ASBOX
30322 ) |
30323 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 30324 ;;
de59c161 30325 no:yes )
a848cd7e
SC
30326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30327echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
30328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30329echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
30330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
30332 (
30333 cat <<\_ASBOX
de59c161
RD
30334## ------------------------------------ ##
30335## Report this to bug-autoconf@gnu.org. ##
30336## ------------------------------------ ##
a848cd7e
SC
30337_ASBOX
30338 ) |
30339 sed "s/^/$as_me: WARNING: /" >&2
30340 ;;
30341esac
30342echo "$as_me:$LINENO: checking for $ac_header" >&5
30343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30344if eval "test \"\${$as_ac_Header+set}\" = set"; then
30345 echo $ECHO_N "(cached) $ECHO_C" >&6
30346else
de59c161 30347 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
30348fi
30349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30351
30352fi
30353if test `eval echo '${'$as_ac_Header'}'` = yes; then
30354 cat >>confdefs.h <<_ACEOF
30355#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30356_ACEOF
30357
30358 EXTRALIBS_ESD="-lesd"
30359
30360fi
30361
30362done
30363
30364
30365fi
30366
30367
30368
30369echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
30370echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
30371cat >conftest.$ac_ext <<_ACEOF
de59c161 30372#line $LINENO "configure"
a848cd7e
SC
30373/* confdefs.h. */
30374_ACEOF
30375cat confdefs.h >>conftest.$ac_ext
30376cat >>conftest.$ac_ext <<_ACEOF
30377/* end confdefs.h. */
30378#ifdef __linux__
30379 #include <linux/cdrom.h>
30380 #else
30381 /* For Solaris */
30382 #include <sys/cdio.h>
30383 #endif
30384
30385int
30386main ()
30387{
30388struct cdrom_tocentry entry, old_entry;
30389 ;
30390 return 0;
30391}
30392_ACEOF
30393rm -f conftest.$ac_objext
30394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 30395 (eval $ac_compile) 2>&5
a848cd7e 30396 ac_status=$?
a848cd7e
SC
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } &&
de59c161 30399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30401 (eval $ac_try) 2>&5
30402 ac_status=$?
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); }; }; then
30405 echo "$as_me:$LINENO: result: yes" >&5
30406echo "${ECHO_T}yes" >&6
30407 cat >>confdefs.h <<\_ACEOF
30408#define HAVE_KNOWN_CDROM_INTERFACE 1
30409_ACEOF
30410
30411else
30412 echo "$as_me: failed program was:" >&5
30413sed 's/^/| /' conftest.$ac_ext >&5
30414
30415echo "$as_me:$LINENO: result: no" >&5
30416echo "${ECHO_T}no" >&6
30417fi
de59c161 30418rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30419
30420
30421cat >confcache <<\_ACEOF
30422# This file is a shell script that caches the results of configure
30423# tests run on this system so they can be shared between configure
30424# scripts and configure runs, see configure's option --config-cache.
30425# It is not useful on other systems. If it contains results you don't
30426# want to keep, you may remove or edit it.
30427#
30428# config.status only pays attention to the cache file if you give it
30429# the --recheck option to rerun configure.
30430#
30431# `ac_cv_env_foo' variables (set or unset) will be overridden when
30432# loading this file, other *unset* `ac_cv_foo' will be assigned the
30433# following values.
30434
30435_ACEOF
30436
30437# The following way of writing the cache mishandles newlines in values,
30438# but we know of no workaround that is simple, portable, and efficient.
30439# So, don't put newlines in cache variables' values.
30440# Ultrix sh set writes to stderr and can't be redirected directly,
30441# and sets the high bit in the cache file unless we assign to the vars.
30442{
30443 (set) 2>&1 |
30444 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30445 *ac_space=\ *)
30446 # `set' does not quote correctly, so add quotes (double-quote
30447 # substitution turns \\\\ into \\, and sed turns \\ into \).
30448 sed -n \
de59c161
RD
30449 "s/'/'\\\\''/g;
30450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
30451 ;;
30452 *)
30453 # `set' quotes correctly as required by POSIX, so do not add quotes.
30454 sed -n \
de59c161 30455 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
30456 ;;
30457 esac;
30458} |
30459 sed '
30460 t clear
30461 : clear
30462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30463 t end
30464 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30465 : end' >>confcache
30466if diff $cache_file confcache >/dev/null 2>&1; then :; else
30467 if test -w $cache_file; then
30468 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30469 cat confcache >$cache_file
30470 else
30471 echo "not updating unwritable cache $cache_file"
30472 fi
30473fi
30474rm -f confcache
30475
30476
30477CPP_MT_FLAG=
30478if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
30479
30480
30481 THREADS_LINK=
30482 THREADS_CFLAGS=
30483
30484 if test "$wxUSE_THREADS" = "yes" ; then
30485 if test "$USE_BEOS" = 1; then
30486 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
30487echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
30488 wxUSE_THREADS="no"
30489 fi
30490 fi
30491
30492 if test "$wxUSE_THREADS" = "yes" ; then
30493
30494
30495 THREAD_OPTS="-pthread"
30496 case "${host}" in
30497 *-*-solaris2* | *-*-sunos4* )
30498 if test "x$GCC" = "xyes"; then
30499 THREAD_OPTS="-pthreads $THREAD_OPTS"
30500 else
30501 THREAD_OPTS="-mt $THREAD_OPTS"
30502 fi
30503 ;;
30504 *-*-freebsd*)
30505 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
30506 ;;
30507 *-*-darwin* | *-*-cygwin* )
30508 THREAD_OPTS=""
30509 ;;
30510 *-*-aix*)
30511 THREAD_OPTS="pthreads"
30512 ;;
30513 *-hp-hpux* )
30514 if test "x$GCC" != "xyes"; then
30515 THREAD_OPTS=""
30516 fi
30517 ;;
30518
30519 *-*-irix* )
30520 if test "x$GCC" = "xyes"; then
30521 THREAD_OPTS=""
30522 fi
30523 ;;
30524
30525 *-*-*UnixWare*)
30526 if test "x$GCC" != "xyes"; then
30527 THREAD_OPTS="-Ethread"
30528 fi
30529 ;;
30530 esac
30531
30532 THREAD_OPTS="$THREAD_OPTS pthread none"
30533
30534 THREADS_OK=no
30535 for flag in $THREAD_OPTS; do
30536 case $flag in
30537 none)
30538 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
30539echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
30540 ;;
30541
30542 -*)
30543 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
30544echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
30545 THREADS_CFLAGS="$flag"
30546 ;;
30547
30548 *)
30549 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
30550echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
30551 THREADS_LINK="-l$flag"
30552 ;;
30553 esac
30554
30555 save_LIBS="$LIBS"
30556 save_CFLAGS="$CFLAGS"
30557 LIBS="$THREADS_LINK $LIBS"
30558 CFLAGS="$THREADS_CFLAGS $CFLAGS"
30559
30560 cat >conftest.$ac_ext <<_ACEOF
de59c161 30561#line $LINENO "configure"
a848cd7e
SC
30562/* confdefs.h. */
30563_ACEOF
30564cat confdefs.h >>conftest.$ac_ext
30565cat >>conftest.$ac_ext <<_ACEOF
30566/* end confdefs.h. */
30567#include <pthread.h>
30568int
30569main ()
30570{
30571pthread_create(0,0,0,0);
30572 ;
30573 return 0;
30574}
30575_ACEOF
30576rm -f conftest.$ac_objext conftest$ac_exeext
30577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 30578 (eval $ac_link) 2>&5
a848cd7e 30579 ac_status=$?
a848cd7e
SC
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); } &&
de59c161 30582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; }; then
30588 THREADS_OK=yes
30589else
30590 echo "$as_me: failed program was:" >&5
30591sed 's/^/| /' conftest.$ac_ext >&5
30592
30593fi
de59c161 30594rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30595
30596 LIBS="$save_LIBS"
30597 CFLAGS="$save_CFLAGS"
30598
30599 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
30600echo "${ECHO_T}$THREADS_OK" >&6
30601 if test "x$THREADS_OK" = "xyes"; then
30602 break;
30603 fi
30604
30605 THREADS_LINK=""
30606 THREADS_CFLAGS=""
30607 done
30608
30609 if test "x$THREADS_OK" != "xyes"; then
30610 wxUSE_THREADS=no
30611 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
30612echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
30613 else
30614 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
30615 LIBS="$THREADS_LINK $LIBS"
30616
30617 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
30618echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
30619 flag=no
30620 case "${host}" in
30621 *-aix*)
30622 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
30623 flag="-D_THREAD_SAFE"
30624 ;;
30625 *-freebsd*)
30626 flag="-D_THREAD_SAFE"
30627 ;;
30628 *-hp-hpux* )
30629 flag="-D_REENTRANT"
30630 if test "x$GCC" != "xyes"; then
30631 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
30632
30633 LIBS="$LIBS -lcma"
a848cd7e
SC
30634 fi
30635 ;;
30636 *solaris* | alpha*-osf*)
30637 flag="-D_REENTRANT"
30638 ;;
30639 esac
30640 echo "$as_me:$LINENO: result: ${flag}" >&5
30641echo "${ECHO_T}${flag}" >&6
30642 if test "x$flag" != xno; then
30643 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
30644 fi
30645
30646 if test "x$THREADS_CFLAGS" != "x"; then
30647 CFLAGS="$CFLAGS $THREADS_CFLAGS"
30648 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
30649 fi
30650 fi
30651 fi
30652
30653 if test "$wxUSE_THREADS" = "yes" ; then
30654
30655for ac_func in thr_setconcurrency
30656do
30657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30658echo "$as_me:$LINENO: checking for $ac_func" >&5
30659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30660if eval "test \"\${$as_ac_var+set}\" = set"; then
30661 echo $ECHO_N "(cached) $ECHO_C" >&6
30662else
30663 cat >conftest.$ac_ext <<_ACEOF
de59c161 30664#line $LINENO "configure"
a848cd7e
SC
30665/* confdefs.h. */
30666_ACEOF
30667cat confdefs.h >>conftest.$ac_ext
30668cat >>conftest.$ac_ext <<_ACEOF
30669/* end confdefs.h. */
a848cd7e
SC
30670/* System header to define __stub macros and hopefully few prototypes,
30671 which can conflict with char $ac_func (); below.
30672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30673 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
30674#ifdef __STDC__
30675# include <limits.h>
30676#else
30677# include <assert.h>
30678#endif
a848cd7e
SC
30679/* Override any gcc2 internal prototype to avoid an error. */
30680#ifdef __cplusplus
30681extern "C"
30682{
30683#endif
30684/* We use char because int might match the return type of a gcc2
30685 builtin and then its argument prototype would still apply. */
30686char $ac_func ();
30687/* The GNU C library defines this for functions which it implements
30688 to always fail with ENOSYS. Some functions are actually named
30689 something starting with __ and the normal name is an alias. */
30690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30691choke me
30692#else
30693char (*f) () = $ac_func;
30694#endif
30695#ifdef __cplusplus
30696}
30697#endif
30698
30699int
30700main ()
30701{
30702return f != $ac_func;
30703 ;
30704 return 0;
30705}
30706_ACEOF
30707rm -f conftest.$ac_objext conftest$ac_exeext
30708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 30709 (eval $ac_link) 2>&5
a848cd7e 30710 ac_status=$?
a848cd7e
SC
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); } &&
de59c161 30713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30715 (eval $ac_try) 2>&5
30716 ac_status=$?
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); }; }; then
30719 eval "$as_ac_var=yes"
30720else
30721 echo "$as_me: failed program was:" >&5
30722sed 's/^/| /' conftest.$ac_ext >&5
30723
30724eval "$as_ac_var=no"
30725fi
de59c161 30726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30727fi
30728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30729echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30730if test `eval echo '${'$as_ac_var'}'` = yes; then
30731 cat >>confdefs.h <<_ACEOF
30732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30733_ACEOF
30734
30735fi
30736done
30737
30738
30739
30740for ac_header in sched.h
30741do
30742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30743if eval "test \"\${$as_ac_Header+set}\" = set"; then
30744 echo "$as_me:$LINENO: checking for $ac_header" >&5
30745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30746if eval "test \"\${$as_ac_Header+set}\" = set"; then
30747 echo $ECHO_N "(cached) $ECHO_C" >&6
30748fi
30749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30751else
30752 # Is the header compilable?
30753echo "$as_me:$LINENO: checking $ac_header usability" >&5
30754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30755cat >conftest.$ac_ext <<_ACEOF
de59c161 30756#line $LINENO "configure"
a848cd7e
SC
30757/* confdefs.h. */
30758_ACEOF
30759cat confdefs.h >>conftest.$ac_ext
30760cat >>conftest.$ac_ext <<_ACEOF
30761/* end confdefs.h. */
30762$ac_includes_default
30763#include <$ac_header>
30764_ACEOF
30765rm -f conftest.$ac_objext
30766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 30767 (eval $ac_compile) 2>&5
a848cd7e 30768 ac_status=$?
a848cd7e
SC
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); } &&
de59c161 30771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30773 (eval $ac_try) 2>&5
30774 ac_status=$?
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); }; }; then
30777 ac_header_compiler=yes
30778else
30779 echo "$as_me: failed program was:" >&5
30780sed 's/^/| /' conftest.$ac_ext >&5
30781
30782ac_header_compiler=no
30783fi
de59c161 30784rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30786echo "${ECHO_T}$ac_header_compiler" >&6
30787
30788# Is the header present?
30789echo "$as_me:$LINENO: checking $ac_header presence" >&5
30790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30791cat >conftest.$ac_ext <<_ACEOF
de59c161 30792#line $LINENO "configure"
a848cd7e
SC
30793/* confdefs.h. */
30794_ACEOF
30795cat confdefs.h >>conftest.$ac_ext
30796cat >>conftest.$ac_ext <<_ACEOF
30797/* end confdefs.h. */
30798#include <$ac_header>
30799_ACEOF
30800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30802 ac_status=$?
30803 grep -v '^ *+' conftest.er1 >conftest.err
30804 rm -f conftest.er1
30805 cat conftest.err >&5
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); } >/dev/null; then
30808 if test -s conftest.err; then
30809 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
30810 else
30811 ac_cpp_err=
30812 fi
30813else
30814 ac_cpp_err=yes
30815fi
30816if test -z "$ac_cpp_err"; then
30817 ac_header_preproc=yes
30818else
30819 echo "$as_me: failed program was:" >&5
30820sed 's/^/| /' conftest.$ac_ext >&5
30821
30822 ac_header_preproc=no
30823fi
30824rm -f conftest.err conftest.$ac_ext
30825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30826echo "${ECHO_T}$ac_header_preproc" >&6
30827
30828# So? What about this header?
de59c161
RD
30829case $ac_header_compiler:$ac_header_preproc in
30830 yes:no )
a848cd7e
SC
30831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30832echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
30833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30835 (
30836 cat <<\_ASBOX
30837## ------------------------------------ ##
30838## Report this to bug-autoconf@gnu.org. ##
30839## ------------------------------------ ##
30840_ASBOX
30841 ) |
30842 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 30843 ;;
de59c161 30844 no:yes )
a848cd7e
SC
30845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30846echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
30847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30848echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
30849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
30851 (
30852 cat <<\_ASBOX
de59c161
RD
30853## ------------------------------------ ##
30854## Report this to bug-autoconf@gnu.org. ##
30855## ------------------------------------ ##
a848cd7e
SC
30856_ASBOX
30857 ) |
30858 sed "s/^/$as_me: WARNING: /" >&2
30859 ;;
30860esac
30861echo "$as_me:$LINENO: checking for $ac_header" >&5
30862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30863if eval "test \"\${$as_ac_Header+set}\" = set"; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30865else
de59c161 30866 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
30867fi
30868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30870
30871fi
30872if test `eval echo '${'$as_ac_Header'}'` = yes; then
30873 cat >>confdefs.h <<_ACEOF
30874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30875_ACEOF
30876
30877fi
30878
30879done
30880
30881 if test "$ac_cv_header_sched_h" = "yes"; then
30882 echo "$as_me:$LINENO: checking for sched_yield" >&5
30883echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
30884if test "${ac_cv_func_sched_yield+set}" = set; then
30885 echo $ECHO_N "(cached) $ECHO_C" >&6
30886else
30887 cat >conftest.$ac_ext <<_ACEOF
de59c161 30888#line $LINENO "configure"
a848cd7e
SC
30889/* confdefs.h. */
30890_ACEOF
30891cat confdefs.h >>conftest.$ac_ext
30892cat >>conftest.$ac_ext <<_ACEOF
30893/* end confdefs.h. */
a848cd7e
SC
30894/* System header to define __stub macros and hopefully few prototypes,
30895 which can conflict with char sched_yield (); below.
30896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30897 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
30898#ifdef __STDC__
30899# include <limits.h>
30900#else
30901# include <assert.h>
30902#endif
a848cd7e
SC
30903/* Override any gcc2 internal prototype to avoid an error. */
30904#ifdef __cplusplus
30905extern "C"
30906{
30907#endif
30908/* We use char because int might match the return type of a gcc2
30909 builtin and then its argument prototype would still apply. */
30910char sched_yield ();
30911/* The GNU C library defines this for functions which it implements
30912 to always fail with ENOSYS. Some functions are actually named
30913 something starting with __ and the normal name is an alias. */
30914#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
30915choke me
30916#else
30917char (*f) () = sched_yield;
30918#endif
30919#ifdef __cplusplus
30920}
30921#endif
30922
30923int
30924main ()
30925{
30926return f != sched_yield;
30927 ;
30928 return 0;
30929}
30930_ACEOF
30931rm -f conftest.$ac_objext conftest$ac_exeext
30932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 30933 (eval $ac_link) 2>&5
a848cd7e 30934 ac_status=$?
a848cd7e
SC
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); } &&
de59c161 30937 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30939 (eval $ac_try) 2>&5
30940 ac_status=$?
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); }; }; then
30943 ac_cv_func_sched_yield=yes
30944else
30945 echo "$as_me: failed program was:" >&5
30946sed 's/^/| /' conftest.$ac_ext >&5
30947
30948ac_cv_func_sched_yield=no
30949fi
de59c161 30950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30951fi
30952echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
30953echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
30954if test $ac_cv_func_sched_yield = yes; then
30955 cat >>confdefs.h <<\_ACEOF
30956#define HAVE_SCHED_YIELD 1
30957_ACEOF
30958
30959else
30960
30961 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
30962echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
30963if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
30964 echo $ECHO_N "(cached) $ECHO_C" >&6
30965else
30966 ac_check_lib_save_LIBS=$LIBS
30967LIBS="-lposix4 $LIBS"
30968cat >conftest.$ac_ext <<_ACEOF
de59c161 30969#line $LINENO "configure"
a848cd7e
SC
30970/* confdefs.h. */
30971_ACEOF
30972cat confdefs.h >>conftest.$ac_ext
30973cat >>conftest.$ac_ext <<_ACEOF
30974/* end confdefs.h. */
30975
30976/* Override any gcc2 internal prototype to avoid an error. */
30977#ifdef __cplusplus
30978extern "C"
30979#endif
30980/* We use char because int might match the return type of a gcc2
30981 builtin and then its argument prototype would still apply. */
30982char sched_yield ();
30983int
30984main ()
30985{
30986sched_yield ();
30987 ;
30988 return 0;
30989}
30990_ACEOF
30991rm -f conftest.$ac_objext conftest$ac_exeext
30992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 30993 (eval $ac_link) 2>&5
a848cd7e 30994 ac_status=$?
a848cd7e
SC
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); } &&
de59c161 30997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; }; then
31003 ac_cv_lib_posix4_sched_yield=yes
31004else
31005 echo "$as_me: failed program was:" >&5
31006sed 's/^/| /' conftest.$ac_ext >&5
31007
31008ac_cv_lib_posix4_sched_yield=no
31009fi
de59c161 31010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31011LIBS=$ac_check_lib_save_LIBS
31012fi
31013echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
31014echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
31015if test $ac_cv_lib_posix4_sched_yield = yes; then
31016 cat >>confdefs.h <<\_ACEOF
31017#define HAVE_SCHED_YIELD 1
31018_ACEOF
31019 POSIX4_LINK=" -lposix4"
31020else
31021 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
31022echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
31023
31024fi
31025
31026
31027
31028fi
31029
31030 fi
31031
31032 HAVE_PRIOR_FUNCS=0
31033 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
31034echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
31035if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31037else
31038 cat >conftest.$ac_ext <<_ACEOF
de59c161 31039#line $LINENO "configure"
a848cd7e
SC
31040/* confdefs.h. */
31041_ACEOF
31042cat confdefs.h >>conftest.$ac_ext
31043cat >>conftest.$ac_ext <<_ACEOF
31044/* end confdefs.h. */
a848cd7e
SC
31045/* System header to define __stub macros and hopefully few prototypes,
31046 which can conflict with char pthread_attr_getschedpolicy (); below.
31047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31048 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
31049#ifdef __STDC__
31050# include <limits.h>
31051#else
31052# include <assert.h>
31053#endif
a848cd7e
SC
31054/* Override any gcc2 internal prototype to avoid an error. */
31055#ifdef __cplusplus
31056extern "C"
31057{
31058#endif
31059/* We use char because int might match the return type of a gcc2
31060 builtin and then its argument prototype would still apply. */
31061char pthread_attr_getschedpolicy ();
31062/* The GNU C library defines this for functions which it implements
31063 to always fail with ENOSYS. Some functions are actually named
31064 something starting with __ and the normal name is an alias. */
31065#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
31066choke me
31067#else
31068char (*f) () = pthread_attr_getschedpolicy;
31069#endif
31070#ifdef __cplusplus
31071}
31072#endif
31073
31074int
31075main ()
31076{
31077return f != pthread_attr_getschedpolicy;
31078 ;
31079 return 0;
31080}
31081_ACEOF
31082rm -f conftest.$ac_objext conftest$ac_exeext
31083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 31084 (eval $ac_link) 2>&5
a848cd7e 31085 ac_status=$?
a848cd7e
SC
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); } &&
de59c161 31088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31090 (eval $ac_try) 2>&5
31091 ac_status=$?
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); }; }; then
31094 ac_cv_func_pthread_attr_getschedpolicy=yes
31095else
31096 echo "$as_me: failed program was:" >&5
31097sed 's/^/| /' conftest.$ac_ext >&5
31098
31099ac_cv_func_pthread_attr_getschedpolicy=no
31100fi
de59c161 31101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31102fi
31103echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
31104echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
31105if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
31106 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
31107echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
31108if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31110else
31111 cat >conftest.$ac_ext <<_ACEOF
de59c161 31112#line $LINENO "configure"
a848cd7e
SC
31113/* confdefs.h. */
31114_ACEOF
31115cat confdefs.h >>conftest.$ac_ext
31116cat >>conftest.$ac_ext <<_ACEOF
31117/* end confdefs.h. */
a848cd7e
SC
31118/* System header to define __stub macros and hopefully few prototypes,
31119 which can conflict with char pthread_attr_setschedparam (); below.
31120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31121 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
31122#ifdef __STDC__
31123# include <limits.h>
31124#else
31125# include <assert.h>
31126#endif
a848cd7e
SC
31127/* Override any gcc2 internal prototype to avoid an error. */
31128#ifdef __cplusplus
31129extern "C"
31130{
31131#endif
31132/* We use char because int might match the return type of a gcc2
31133 builtin and then its argument prototype would still apply. */
31134char pthread_attr_setschedparam ();
31135/* The GNU C library defines this for functions which it implements
31136 to always fail with ENOSYS. Some functions are actually named
31137 something starting with __ and the normal name is an alias. */
31138#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
31139choke me
31140#else
31141char (*f) () = pthread_attr_setschedparam;
31142#endif
31143#ifdef __cplusplus
31144}
31145#endif
31146
31147int
31148main ()
31149{
31150return f != pthread_attr_setschedparam;
31151 ;
31152 return 0;
31153}
31154_ACEOF
31155rm -f conftest.$ac_objext conftest$ac_exeext
31156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 31157 (eval $ac_link) 2>&5
a848cd7e 31158 ac_status=$?
a848cd7e
SC
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); } &&
de59c161 31161 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; }; then
31167 ac_cv_func_pthread_attr_setschedparam=yes
31168else
31169 echo "$as_me: failed program was:" >&5
31170sed 's/^/| /' conftest.$ac_ext >&5
31171
31172ac_cv_func_pthread_attr_setschedparam=no
31173fi
de59c161 31174rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31175fi
31176echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
31177echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
31178if test $ac_cv_func_pthread_attr_setschedparam = yes; then
31179 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
31180echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
31181if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
31182 echo $ECHO_N "(cached) $ECHO_C" >&6
31183else
31184 cat >conftest.$ac_ext <<_ACEOF
de59c161 31185#line $LINENO "configure"
a848cd7e
SC
31186/* confdefs.h. */
31187_ACEOF
31188cat confdefs.h >>conftest.$ac_ext
31189cat >>conftest.$ac_ext <<_ACEOF
31190/* end confdefs.h. */
a848cd7e
SC
31191/* System header to define __stub macros and hopefully few prototypes,
31192 which can conflict with char sched_get_priority_max (); below.
31193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31194 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
31195#ifdef __STDC__
31196# include <limits.h>
31197#else
31198# include <assert.h>
31199#endif
a848cd7e
SC
31200/* Override any gcc2 internal prototype to avoid an error. */
31201#ifdef __cplusplus
31202extern "C"
31203{
31204#endif
31205/* We use char because int might match the return type of a gcc2
31206 builtin and then its argument prototype would still apply. */
31207char sched_get_priority_max ();
31208/* The GNU C library defines this for functions which it implements
31209 to always fail with ENOSYS. Some functions are actually named
31210 something starting with __ and the normal name is an alias. */
31211#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
31212choke me
31213#else
31214char (*f) () = sched_get_priority_max;
31215#endif
31216#ifdef __cplusplus
31217}
31218#endif
31219
31220int
31221main ()
31222{
31223return f != sched_get_priority_max;
31224 ;
31225 return 0;
31226}
31227_ACEOF
31228rm -f conftest.$ac_objext conftest$ac_exeext
31229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 31230 (eval $ac_link) 2>&5
a848cd7e 31231 ac_status=$?
a848cd7e
SC
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); } &&
de59c161 31234 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31236 (eval $ac_try) 2>&5
31237 ac_status=$?
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; }; then
31240 ac_cv_func_sched_get_priority_max=yes
31241else
31242 echo "$as_me: failed program was:" >&5
31243sed 's/^/| /' conftest.$ac_ext >&5
31244
31245ac_cv_func_sched_get_priority_max=no
31246fi
de59c161 31247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31248fi
31249echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
31250echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
31251if test $ac_cv_func_sched_get_priority_max = yes; then
31252 HAVE_PRIOR_FUNCS=1
31253else
31254 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
31255echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
31256if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
31257 echo $ECHO_N "(cached) $ECHO_C" >&6
31258else
31259 ac_check_lib_save_LIBS=$LIBS
31260LIBS="-lposix4 $LIBS"
31261cat >conftest.$ac_ext <<_ACEOF
de59c161 31262#line $LINENO "configure"
a848cd7e
SC
31263/* confdefs.h. */
31264_ACEOF
31265cat confdefs.h >>conftest.$ac_ext
31266cat >>conftest.$ac_ext <<_ACEOF
31267/* end confdefs.h. */
31268
31269/* Override any gcc2 internal prototype to avoid an error. */
31270#ifdef __cplusplus
31271extern "C"
31272#endif
31273/* We use char because int might match the return type of a gcc2
31274 builtin and then its argument prototype would still apply. */
31275char sched_get_priority_max ();
31276int
31277main ()
31278{
31279sched_get_priority_max ();
31280 ;
31281 return 0;
31282}
31283_ACEOF
31284rm -f conftest.$ac_objext conftest$ac_exeext
31285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 31286 (eval $ac_link) 2>&5
a848cd7e 31287 ac_status=$?
a848cd7e
SC
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); } &&
de59c161 31290 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31292 (eval $ac_try) 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; }; then
31296 ac_cv_lib_posix4_sched_get_priority_max=yes
31297else
31298 echo "$as_me: failed program was:" >&5
31299sed 's/^/| /' conftest.$ac_ext >&5
31300
31301ac_cv_lib_posix4_sched_get_priority_max=no
31302fi
de59c161 31303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31304LIBS=$ac_check_lib_save_LIBS
31305fi
31306echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
31307echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
31308if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
31309
31310 HAVE_PRIOR_FUNCS=1
31311 POSIX4_LINK=" -lposix4"
31312
31313fi
31314
31315
31316fi
31317
31318
31319fi
31320
31321
31322fi
31323
31324
31325 if test "$HAVE_PRIOR_FUNCS" = 1; then
31326 cat >>confdefs.h <<\_ACEOF
31327#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
31328_ACEOF
31329
31330 else
31331 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
31332echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
31333 fi
31334
31335 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
31336echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
31337if test "${ac_cv_func_pthread_cancel+set}" = set; then
31338 echo $ECHO_N "(cached) $ECHO_C" >&6
31339else
31340 cat >conftest.$ac_ext <<_ACEOF
de59c161 31341#line $LINENO "configure"
a848cd7e
SC
31342/* confdefs.h. */
31343_ACEOF
31344cat confdefs.h >>conftest.$ac_ext
31345cat >>conftest.$ac_ext <<_ACEOF
31346/* end confdefs.h. */
a848cd7e
SC
31347/* System header to define __stub macros and hopefully few prototypes,
31348 which can conflict with char pthread_cancel (); below.
31349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31350 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
31351#ifdef __STDC__
31352# include <limits.h>
31353#else
31354# include <assert.h>
31355#endif
a848cd7e
SC
31356/* Override any gcc2 internal prototype to avoid an error. */
31357#ifdef __cplusplus
31358extern "C"
31359{
31360#endif
31361/* We use char because int might match the return type of a gcc2
31362 builtin and then its argument prototype would still apply. */
31363char pthread_cancel ();
31364/* The GNU C library defines this for functions which it implements
31365 to always fail with ENOSYS. Some functions are actually named
31366 something starting with __ and the normal name is an alias. */
31367#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
31368choke me
31369#else
31370char (*f) () = pthread_cancel;
31371#endif
31372#ifdef __cplusplus
31373}
31374#endif
31375
31376int
31377main ()
31378{
31379return f != pthread_cancel;
31380 ;
31381 return 0;
31382}
31383_ACEOF
31384rm -f conftest.$ac_objext conftest$ac_exeext
31385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 31386 (eval $ac_link) 2>&5
a848cd7e 31387 ac_status=$?
a848cd7e
SC
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); } &&
de59c161 31390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31396 ac_cv_func_pthread_cancel=yes
31397else
31398 echo "$as_me: failed program was:" >&5
31399sed 's/^/| /' conftest.$ac_ext >&5
31400
31401ac_cv_func_pthread_cancel=no
31402fi
de59c161 31403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31404fi
31405echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
31406echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
31407if test $ac_cv_func_pthread_cancel = yes; then
31408 cat >>confdefs.h <<\_ACEOF
31409#define HAVE_PTHREAD_CANCEL 1
31410_ACEOF
31411
31412else
31413 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
31414echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
31415fi
31416
31417
31418
31419
31420 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
31421echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
31422if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
31423 echo $ECHO_N "(cached) $ECHO_C" >&6
31424else
31425
31426 cat >conftest.$ac_ext <<_ACEOF
de59c161 31427#line $LINENO "configure"
a848cd7e
SC
31428/* confdefs.h. */
31429_ACEOF
31430cat confdefs.h >>conftest.$ac_ext
31431cat >>conftest.$ac_ext <<_ACEOF
31432/* end confdefs.h. */
31433#include <pthread.h>
31434int
31435main ()
31436{
31437
31438 pthread_mutexattr_t attr;
31439 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
31440
31441 ;
31442 return 0;
31443}
31444_ACEOF
31445rm -f conftest.$ac_objext
31446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 31447 (eval $ac_compile) 2>&5
a848cd7e 31448 ac_status=$?
a848cd7e
SC
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); } &&
de59c161 31451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453 (eval $ac_try) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; }; then
31457
31458 wx_cv_type_pthread_mutexattr_t=yes
31459
31460else
31461 echo "$as_me: failed program was:" >&5
31462sed 's/^/| /' conftest.$ac_ext >&5
31463
31464
31465 wx_cv_type_pthread_mutexattr_t=no
31466
31467
31468fi
de59c161 31469rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31470
31471fi
31472echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
31473echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
31474
31475 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
31476 cat >>confdefs.h <<\_ACEOF
31477#define HAVE_PTHREAD_MUTEXATTR_T 1
31478_ACEOF
31479
31480 else
31481 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
31482echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
31483if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31485else
31486
31487 cat >conftest.$ac_ext <<_ACEOF
de59c161 31488#line $LINENO "configure"
a848cd7e
SC
31489/* confdefs.h. */
31490_ACEOF
31491cat confdefs.h >>conftest.$ac_ext
31492cat >>conftest.$ac_ext <<_ACEOF
31493/* end confdefs.h. */
31494#include <pthread.h>
31495int
31496main ()
31497{
31498
31499 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
31500
31501 ;
31502 return 0;
31503}
31504_ACEOF
31505rm -f conftest.$ac_objext
31506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 31507 (eval $ac_compile) 2>&5
a848cd7e 31508 ac_status=$?
a848cd7e
SC
31509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31510 (exit $ac_status); } &&
de59c161 31511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31513 (eval $ac_try) 2>&5
31514 ac_status=$?
31515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516 (exit $ac_status); }; }; then
31517
31518 wx_cv_type_pthread_rec_mutex_init=yes
31519
31520else
31521 echo "$as_me: failed program was:" >&5
31522sed 's/^/| /' conftest.$ac_ext >&5
31523
31524
31525 wx_cv_type_pthread_rec_mutex_init=no
31526
31527
31528fi
de59c161 31529rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31530
31531fi
31532echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
31533echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
31534 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
31535 cat >>confdefs.h <<\_ACEOF
31536#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
31537_ACEOF
31538
31539 else
31540 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
31541echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
31542 fi
31543 fi
31544 fi
31545
31546else
31547 if test "$wxUSE_THREADS" = "yes" ; then
31548 case "${host}" in
31549 *-*-mingw32* )
31550 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
31551echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
31552if test "${wx_cv_cflags_mthread+set}" = set; then
31553 echo $ECHO_N "(cached) $ECHO_C" >&6
31554else
31555
31556 CFLAGS_OLD="$CFLAGS"
31557 CFLAGS="$CFLAGS -mthreads"
31558 cat >conftest.$ac_ext <<_ACEOF
de59c161 31559#line $LINENO "configure"
a848cd7e
SC
31560/* confdefs.h. */
31561_ACEOF
31562cat confdefs.h >>conftest.$ac_ext
31563cat >>conftest.$ac_ext <<_ACEOF
31564/* end confdefs.h. */
31565
31566int
31567main ()
31568{
31569
31570 ;
31571 return 0;
31572}
31573_ACEOF
31574rm -f conftest.$ac_objext
31575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 31576 (eval $ac_compile) 2>&5
a848cd7e 31577 ac_status=$?
a848cd7e
SC
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); } &&
de59c161 31580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31582 (eval $ac_try) 2>&5
31583 ac_status=$?
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); }; }; then
31586 wx_cv_cflags_mthread=yes
31587else
31588 echo "$as_me: failed program was:" >&5
31589sed 's/^/| /' conftest.$ac_ext >&5
31590
31591wx_cv_cflags_mthread=no
31592
31593fi
de59c161 31594rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31595
31596
31597fi
31598echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
31599echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
31600
31601 if test "$wx_cv_cflags_mthread" = "yes"; then
31602 CXXFLAGS="$CXXFLAGS -mthreads"
31603 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
31604 LDFLAGS="$LDFLAGS -mthreads"
31605 else
31606 CFLAGS="$CFLAGS_OLD"
31607 fi
31608 ;;
31609 *-pc-os2*emx )
31610 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
31611 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
31612 LDFLAGS="$LDFLAGS -Zmt"
31613 ;;
31614 esac
31615 fi
31616fi
31617
31618if test "$wxUSE_THREADS" = "yes"; then
31619 cat >>confdefs.h <<\_ACEOF
31620#define wxUSE_THREADS 1
31621_ACEOF
31622
31623
31624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
31625else
31626 if test "$ac_cv_func_strtok_r" = "yes"; then
31627 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
31628echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
31629 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
31630 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
31631 echo "$as_me:$LINENO: result: yes" >&5
31632echo "${ECHO_T}yes" >&6
31633 else
31634 echo "$as_me:$LINENO: result: no" >&5
31635echo "${ECHO_T}no" >&6
31636 fi
31637 fi
31638fi
31639
31640if test "$WXGTK20" = 1 ; then
31641 cat >>confdefs.h <<_ACEOF
31642#define __WXGTK20__ $WXGTK20
31643_ACEOF
31644
31645 WXGTK12=1
31646fi
31647
31648if test "$WXGTK12" = 1 ; then
31649 cat >>confdefs.h <<_ACEOF
31650#define __WXGTK12__ $WXGTK12
31651_ACEOF
31652
31653fi
31654
31655if test "$WXGTK127" = 1 ; then
31656 cat >>confdefs.h <<_ACEOF
31657#define __WXGTK127__ $WXGTK127
31658_ACEOF
31659
31660fi
31661
31662if test "$WXGPE" = 1 ; then
31663 cat >>confdefs.h <<_ACEOF
31664#define __WXGPE__ $WXGPE
31665_ACEOF
31666
31667fi
31668
31669WXDEBUG=
31670
31671if test "$wxUSE_DEBUG_INFO" = "yes" ; then
31672 WXDEBUG="-g"
31673 wxUSE_OPTIMISE=no
31674fi
31675
31676if test "$wxUSE_DEBUG_GDB" = "yes" ; then
31677 wxUSE_DEBUG_INFO=yes
31678 WXDEBUG="-ggdb"
31679fi
31680
31681if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
31682 cat >>confdefs.h <<\_ACEOF
31683#define WXDEBUG 1
31684_ACEOF
31685
31686 WXDEBUG_DEFINE="-D__WXDEBUG__"
31687else
31688 if test "$wxUSE_GTK" = 1 ; then
31689 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
31690 fi
31691fi
31692
31693if test "$wxUSE_MEM_TRACING" = "yes" ; then
31694 cat >>confdefs.h <<\_ACEOF
31695#define wxUSE_MEMORY_TRACING 1
31696_ACEOF
31697
31698 cat >>confdefs.h <<\_ACEOF
31699#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
31700_ACEOF
31701
31702 cat >>confdefs.h <<\_ACEOF
31703#define wxUSE_DEBUG_NEW_ALWAYS 1
31704_ACEOF
31705
31706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
31707fi
31708
31709if test "$wxUSE_DMALLOC" = "yes" ; then
31710 DMALLOC_LIBS="-ldmalloc"
31711fi
31712
31713PROFILE=
31714if test "$wxUSE_PROFILE" = "yes" ; then
31715 PROFILE=" -pg"
31716fi
31717
31718CODE_GEN_FLAGS=
31719CODE_GEN_FLAGS_CXX=
31720if test "$GCC" = "yes" ; then
31721 if test "$wxUSE_NO_RTTI" = "yes" ; then
31722 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
31723 fi
31724 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
31725 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
31726 fi
31727 if test "$wxUSE_PERMISSIVE" = "yes" ; then
31728 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
31729 fi
31730
31731 case "${host}" in
31732 powerpc*-*-aix* )
31733 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
31734 ;;
31735 *-hppa* )
31736 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
31737 ;;
31738 esac
31739fi
31740
31741OPTIMISE=
31742if test "$wxUSE_OPTIMISE" = "no" ; then
31743 if test "$GCC" = yes ; then
31744 OPTIMISE="-O0"
31745 fi
31746else
31747 if test "$GCC" = yes ; then
31748 OPTIMISE="-O2"
31749
31750 case "${host}" in
31751 i586-*-*|i686-*-* )
31752 OPTIMISE="${OPTIMISE} "
31753 ;;
31754 esac
31755 else
31756 OPTIMISE="-O"
31757 fi
31758fi
31759
31760
31761if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
31762 cat >>confdefs.h <<\_ACEOF
31763#define WXWIN_COMPATIBILITY_2_2 1
31764_ACEOF
31765
31766
31767 WXWIN_COMPATIBILITY_2_4="yes"
31768fi
31769
31770if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
31771 cat >>confdefs.h <<\_ACEOF
31772#define WXWIN_COMPATIBILITY_2_4 1
31773_ACEOF
31774
31775fi
31776
31777
31778if test "$wxUSE_GUI" = "yes"; then
31779 cat >>confdefs.h <<\_ACEOF
31780#define wxUSE_GUI 1
31781_ACEOF
31782
31783
31784 else
31785 cat >>confdefs.h <<\_ACEOF
31786#define wxUSE_NOGUI 1
31787_ACEOF
31788
31789fi
31790
31791
31792if test "$wxUSE_UNIX" = "yes"; then
31793 cat >>confdefs.h <<\_ACEOF
31794#define wxUSE_UNIX 1
31795_ACEOF
31796
31797fi
31798
31799
31800if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31801
31802 HAVE_DL_FUNCS=0
31803 HAVE_SHL_FUNCS=0
31804 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31805 if test "$USE_DARWIN" = 1; then
31806 HAVE_DL_FUNCS=1
31807 else
31808
31809for ac_func in dlopen
31810do
31811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31812echo "$as_me:$LINENO: checking for $ac_func" >&5
31813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31814if eval "test \"\${$as_ac_var+set}\" = set"; then
31815 echo $ECHO_N "(cached) $ECHO_C" >&6
31816else
31817 cat >conftest.$ac_ext <<_ACEOF
de59c161 31818#line $LINENO "configure"
a848cd7e
SC
31819/* confdefs.h. */
31820_ACEOF
31821cat confdefs.h >>conftest.$ac_ext
31822cat >>conftest.$ac_ext <<_ACEOF
31823/* end confdefs.h. */
a848cd7e
SC
31824/* System header to define __stub macros and hopefully few prototypes,
31825 which can conflict with char $ac_func (); below.
31826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31827 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
31828#ifdef __STDC__
31829# include <limits.h>
31830#else
31831# include <assert.h>
31832#endif
a848cd7e
SC
31833/* Override any gcc2 internal prototype to avoid an error. */
31834#ifdef __cplusplus
31835extern "C"
31836{
31837#endif
31838/* We use char because int might match the return type of a gcc2
31839 builtin and then its argument prototype would still apply. */
31840char $ac_func ();
31841/* The GNU C library defines this for functions which it implements
31842 to always fail with ENOSYS. Some functions are actually named
31843 something starting with __ and the normal name is an alias. */
31844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31845choke me
31846#else
31847char (*f) () = $ac_func;
31848#endif
31849#ifdef __cplusplus
31850}
31851#endif
31852
31853int
31854main ()
31855{
31856return f != $ac_func;
31857 ;
31858 return 0;
31859}
31860_ACEOF
31861rm -f conftest.$ac_objext conftest$ac_exeext
31862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 31863 (eval $ac_link) 2>&5
a848cd7e 31864 ac_status=$?
a848cd7e
SC
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); } &&
de59c161 31867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31869 (eval $ac_try) 2>&5
31870 ac_status=$?
31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872 (exit $ac_status); }; }; then
31873 eval "$as_ac_var=yes"
31874else
31875 echo "$as_me: failed program was:" >&5
31876sed 's/^/| /' conftest.$ac_ext >&5
31877
31878eval "$as_ac_var=no"
31879fi
de59c161 31880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31881fi
31882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31884if test `eval echo '${'$as_ac_var'}'` = yes; then
31885 cat >>confdefs.h <<_ACEOF
31886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31887_ACEOF
31888
31889 cat >>confdefs.h <<\_ACEOF
31890#define HAVE_DLOPEN 1
31891_ACEOF
31892
31893 HAVE_DL_FUNCS=1
31894
31895else
31896
31897 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31898echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31899if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31900 echo $ECHO_N "(cached) $ECHO_C" >&6
31901else
31902 ac_check_lib_save_LIBS=$LIBS
31903LIBS="-ldl $LIBS"
31904cat >conftest.$ac_ext <<_ACEOF
de59c161 31905#line $LINENO "configure"
a848cd7e
SC
31906/* confdefs.h. */
31907_ACEOF
31908cat confdefs.h >>conftest.$ac_ext
31909cat >>conftest.$ac_ext <<_ACEOF
31910/* end confdefs.h. */
31911
31912/* Override any gcc2 internal prototype to avoid an error. */
31913#ifdef __cplusplus
31914extern "C"
31915#endif
31916/* We use char because int might match the return type of a gcc2
31917 builtin and then its argument prototype would still apply. */
31918char dlopen ();
31919int
31920main ()
31921{
31922dlopen ();
31923 ;
31924 return 0;
31925}
31926_ACEOF
31927rm -f conftest.$ac_objext conftest$ac_exeext
31928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 31929 (eval $ac_link) 2>&5
a848cd7e 31930 ac_status=$?
a848cd7e
SC
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); } &&
de59c161 31933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31935 (eval $ac_try) 2>&5
31936 ac_status=$?
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; }; then
31939 ac_cv_lib_dl_dlopen=yes
31940else
31941 echo "$as_me: failed program was:" >&5
31942sed 's/^/| /' conftest.$ac_ext >&5
31943
31944ac_cv_lib_dl_dlopen=no
31945fi
de59c161 31946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31947LIBS=$ac_check_lib_save_LIBS
31948fi
31949echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31950echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31951if test $ac_cv_lib_dl_dlopen = yes; then
31952
31953 cat >>confdefs.h <<\_ACEOF
31954#define HAVE_DLOPEN 1
31955_ACEOF
31956
31957 HAVE_DL_FUNCS=1
31958 DL_LINK=" -ldl$DL_LINK"
31959
31960else
31961
31962
31963for ac_func in shl_load
31964do
31965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31966echo "$as_me:$LINENO: checking for $ac_func" >&5
31967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31968if eval "test \"\${$as_ac_var+set}\" = set"; then
31969 echo $ECHO_N "(cached) $ECHO_C" >&6
31970else
31971 cat >conftest.$ac_ext <<_ACEOF
de59c161 31972#line $LINENO "configure"
a848cd7e
SC
31973/* confdefs.h. */
31974_ACEOF
31975cat confdefs.h >>conftest.$ac_ext
31976cat >>conftest.$ac_ext <<_ACEOF
31977/* end confdefs.h. */
a848cd7e
SC
31978/* System header to define __stub macros and hopefully few prototypes,
31979 which can conflict with char $ac_func (); below.
31980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31981 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
31982#ifdef __STDC__
31983# include <limits.h>
31984#else
31985# include <assert.h>
31986#endif
a848cd7e
SC
31987/* Override any gcc2 internal prototype to avoid an error. */
31988#ifdef __cplusplus
31989extern "C"
31990{
31991#endif
31992/* We use char because int might match the return type of a gcc2
31993 builtin and then its argument prototype would still apply. */
31994char $ac_func ();
31995/* The GNU C library defines this for functions which it implements
31996 to always fail with ENOSYS. Some functions are actually named
31997 something starting with __ and the normal name is an alias. */
31998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31999choke me
32000#else
32001char (*f) () = $ac_func;
32002#endif
32003#ifdef __cplusplus
32004}
32005#endif
32006
32007int
32008main ()
32009{
32010return f != $ac_func;
32011 ;
32012 return 0;
32013}
32014_ACEOF
32015rm -f conftest.$ac_objext conftest$ac_exeext
32016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 32017 (eval $ac_link) 2>&5
a848cd7e 32018 ac_status=$?
a848cd7e
SC
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); } &&
de59c161 32021 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32023 (eval $ac_try) 2>&5
32024 ac_status=$?
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); }; }; then
32027 eval "$as_ac_var=yes"
32028else
32029 echo "$as_me: failed program was:" >&5
32030sed 's/^/| /' conftest.$ac_ext >&5
32031
32032eval "$as_ac_var=no"
32033fi
de59c161 32034rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32035fi
32036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32037echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32038if test `eval echo '${'$as_ac_var'}'` = yes; then
32039 cat >>confdefs.h <<_ACEOF
32040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32041_ACEOF
32042
32043 cat >>confdefs.h <<\_ACEOF
32044#define HAVE_SHL_LOAD 1
32045_ACEOF
32046
32047 HAVE_SHL_FUNCS=1
32048
32049else
32050
32051 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
32052echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
32053if test "${ac_cv_lib_shl_load_dld+set}" = set; then
32054 echo $ECHO_N "(cached) $ECHO_C" >&6
32055else
32056 ac_check_lib_save_LIBS=$LIBS
32057LIBS="-lshl_load $LIBS"
32058cat >conftest.$ac_ext <<_ACEOF
de59c161 32059#line $LINENO "configure"
a848cd7e
SC
32060/* confdefs.h. */
32061_ACEOF
32062cat confdefs.h >>conftest.$ac_ext
32063cat >>conftest.$ac_ext <<_ACEOF
32064/* end confdefs.h. */
32065
32066/* Override any gcc2 internal prototype to avoid an error. */
32067#ifdef __cplusplus
32068extern "C"
32069#endif
32070/* We use char because int might match the return type of a gcc2
32071 builtin and then its argument prototype would still apply. */
32072char dld ();
32073int
32074main ()
32075{
32076dld ();
32077 ;
32078 return 0;
32079}
32080_ACEOF
32081rm -f conftest.$ac_objext conftest$ac_exeext
32082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 32083 (eval $ac_link) 2>&5
a848cd7e 32084 ac_status=$?
a848cd7e
SC
32085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086 (exit $ac_status); } &&
de59c161 32087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32089 (eval $ac_try) 2>&5
32090 ac_status=$?
32091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092 (exit $ac_status); }; }; then
32093 ac_cv_lib_shl_load_dld=yes
32094else
32095 echo "$as_me: failed program was:" >&5
32096sed 's/^/| /' conftest.$ac_ext >&5
32097
32098ac_cv_lib_shl_load_dld=no
32099fi
de59c161 32100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32101LIBS=$ac_check_lib_save_LIBS
32102fi
32103echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
32104echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
32105if test $ac_cv_lib_shl_load_dld = yes; then
32106
32107 HAVE_SHL_FUNCS=1
32108 DL_LINK=" -ldld$DL_LINK"
32109
32110fi
32111
32112
32113fi
32114done
32115
32116
32117fi
32118
32119
32120fi
32121done
32122
32123
32124 if test "$HAVE_DL_FUNCS" = 1; then
32125
32126for ac_func in dlerror
32127do
32128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32129echo "$as_me:$LINENO: checking for $ac_func" >&5
32130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32131if eval "test \"\${$as_ac_var+set}\" = set"; then
32132 echo $ECHO_N "(cached) $ECHO_C" >&6
32133else
32134 cat >conftest.$ac_ext <<_ACEOF
de59c161 32135#line $LINENO "configure"
a848cd7e
SC
32136/* confdefs.h. */
32137_ACEOF
32138cat confdefs.h >>conftest.$ac_ext
32139cat >>conftest.$ac_ext <<_ACEOF
32140/* end confdefs.h. */
a848cd7e
SC
32141/* System header to define __stub macros and hopefully few prototypes,
32142 which can conflict with char $ac_func (); below.
32143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32144 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
32145#ifdef __STDC__
32146# include <limits.h>
32147#else
32148# include <assert.h>
32149#endif
a848cd7e
SC
32150/* Override any gcc2 internal prototype to avoid an error. */
32151#ifdef __cplusplus
32152extern "C"
32153{
32154#endif
32155/* We use char because int might match the return type of a gcc2
32156 builtin and then its argument prototype would still apply. */
32157char $ac_func ();
32158/* The GNU C library defines this for functions which it implements
32159 to always fail with ENOSYS. Some functions are actually named
32160 something starting with __ and the normal name is an alias. */
32161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32162choke me
32163#else
32164char (*f) () = $ac_func;
32165#endif
32166#ifdef __cplusplus
32167}
32168#endif
32169
32170int
32171main ()
32172{
32173return f != $ac_func;
32174 ;
32175 return 0;
32176}
32177_ACEOF
32178rm -f conftest.$ac_objext conftest$ac_exeext
32179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 32180 (eval $ac_link) 2>&5
a848cd7e 32181 ac_status=$?
a848cd7e
SC
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } &&
de59c161 32184 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186 (eval $ac_try) 2>&5
32187 ac_status=$?
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; }; then
32190 eval "$as_ac_var=yes"
32191else
32192 echo "$as_me: failed program was:" >&5
32193sed 's/^/| /' conftest.$ac_ext >&5
32194
32195eval "$as_ac_var=no"
32196fi
de59c161 32197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32198fi
32199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32200echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32201if test `eval echo '${'$as_ac_var'}'` = yes; then
32202 cat >>confdefs.h <<_ACEOF
32203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32204_ACEOF
32205 cat >>confdefs.h <<\_ACEOF
32206#define HAVE_DLERROR 1
32207_ACEOF
32208
32209else
32210
32211 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
32212echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32213if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32214 echo $ECHO_N "(cached) $ECHO_C" >&6
32215else
32216 ac_check_lib_save_LIBS=$LIBS
32217LIBS="-ldl $LIBS"
32218cat >conftest.$ac_ext <<_ACEOF
de59c161 32219#line $LINENO "configure"
a848cd7e
SC
32220/* confdefs.h. */
32221_ACEOF
32222cat confdefs.h >>conftest.$ac_ext
32223cat >>conftest.$ac_ext <<_ACEOF
32224/* end confdefs.h. */
32225
32226/* Override any gcc2 internal prototype to avoid an error. */
32227#ifdef __cplusplus
32228extern "C"
32229#endif
32230/* We use char because int might match the return type of a gcc2
32231 builtin and then its argument prototype would still apply. */
32232char dlerror ();
32233int
32234main ()
32235{
32236dlerror ();
32237 ;
32238 return 0;
32239}
32240_ACEOF
32241rm -f conftest.$ac_objext conftest$ac_exeext
32242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 32243 (eval $ac_link) 2>&5
a848cd7e 32244 ac_status=$?
a848cd7e
SC
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); } &&
de59c161 32247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32249 (eval $ac_try) 2>&5
32250 ac_status=$?
32251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252 (exit $ac_status); }; }; then
32253 ac_cv_lib_dl_dlerror=yes
32254else
32255 echo "$as_me: failed program was:" >&5
32256sed 's/^/| /' conftest.$ac_ext >&5
32257
32258ac_cv_lib_dl_dlerror=no
32259fi
de59c161 32260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32261LIBS=$ac_check_lib_save_LIBS
32262fi
32263echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32264echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32265if test $ac_cv_lib_dl_dlerror = yes; then
32266 cat >>confdefs.h <<\_ACEOF
32267#define HAVE_DLERROR 1
32268_ACEOF
32269
32270fi
32271
32272
32273
32274fi
32275done
32276
32277 fi
32278 fi
32279
32280 if test "$HAVE_DL_FUNCS" = 0; then
32281 if test "$HAVE_SHL_FUNCS" = 0; then
32282 if test "$USE_UNIX" = 1; then
32283 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32284echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
32285 wxUSE_DYNAMIC_LOADER=no
32286 wxUSE_DYNLIB_CLASS=no
32287 else
32288 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32289echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
32290 fi
32291 fi
32292 fi
32293 fi
32294fi
32295
32296if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
32297 cat >>confdefs.h <<\_ACEOF
32298#define wxUSE_DYNAMIC_LOADER 1
32299_ACEOF
32300
32301fi
32302if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
32303 cat >>confdefs.h <<\_ACEOF
32304#define wxUSE_DYNLIB_CLASS 1
32305_ACEOF
32306
32307fi
32308
32309
32310
32311if test "$wxUSE_PLUGINS" = "yes" ; then
32312 if test "$wxUSE_SHARED" = "no" ; then
32313 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
32314echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
32315 wxUSE_PLUGINS=no
32316 fi
32317 if test "$wxUSE_MONOLITHIC" = "yes" ; then
32318 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
32319echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
32320 wxUSE_PLUGINS=no
32321 fi
32322 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
32323 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
32324echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
32325 wxUSE_PLUGINS=no
32326 fi
32327 if test "$wxUSE_PLUGINS" = "yes" ; then
32328 cat >>confdefs.h <<\_ACEOF
32329#define wxUSE_PLUGINS 1
32330_ACEOF
32331
32332 fi
32333fi
32334
32335
32336if test "$wxUSE_STL" = "yes"; then
32337 cat >>confdefs.h <<\_ACEOF
32338#define wxUSE_STL 1
32339_ACEOF
32340
32341fi
32342
32343if test "$wxUSE_APPLE_IEEE" = "yes"; then
32344 cat >>confdefs.h <<\_ACEOF
32345#define wxUSE_APPLE_IEEE 1
32346_ACEOF
32347
32348fi
32349
32350if test "$wxUSE_TIMER" = "yes"; then
32351 cat >>confdefs.h <<\_ACEOF
32352#define wxUSE_TIMER 1
32353_ACEOF
32354
32355fi
32356
32357WITH_PLUGIN_SDL=0
32358if test "$wxUSE_SOUND" = "yes"; then
32359 if test "$USE_UNIX" = "1" ; then
32360
32361for ac_header in sys/soundcard.h
32362do
32363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32364if eval "test \"\${$as_ac_Header+set}\" = set"; then
32365 echo "$as_me:$LINENO: checking for $ac_header" >&5
32366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32367if eval "test \"\${$as_ac_Header+set}\" = set"; then
32368 echo $ECHO_N "(cached) $ECHO_C" >&6
32369fi
32370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32372else
32373 # Is the header compilable?
32374echo "$as_me:$LINENO: checking $ac_header usability" >&5
32375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32376cat >conftest.$ac_ext <<_ACEOF
de59c161 32377#line $LINENO "configure"
a848cd7e
SC
32378/* confdefs.h. */
32379_ACEOF
32380cat confdefs.h >>conftest.$ac_ext
32381cat >>conftest.$ac_ext <<_ACEOF
32382/* end confdefs.h. */
32383$ac_includes_default
32384#include <$ac_header>
32385_ACEOF
32386rm -f conftest.$ac_objext
32387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 32388 (eval $ac_compile) 2>&5
a848cd7e 32389 ac_status=$?
a848cd7e
SC
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } &&
de59c161 32392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32394 (eval $ac_try) 2>&5
32395 ac_status=$?
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; }; then
32398 ac_header_compiler=yes
32399else
32400 echo "$as_me: failed program was:" >&5
32401sed 's/^/| /' conftest.$ac_ext >&5
32402
32403ac_header_compiler=no
32404fi
de59c161 32405rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32407echo "${ECHO_T}$ac_header_compiler" >&6
32408
32409# Is the header present?
32410echo "$as_me:$LINENO: checking $ac_header presence" >&5
32411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32412cat >conftest.$ac_ext <<_ACEOF
de59c161 32413#line $LINENO "configure"
a848cd7e
SC
32414/* confdefs.h. */
32415_ACEOF
32416cat confdefs.h >>conftest.$ac_ext
32417cat >>conftest.$ac_ext <<_ACEOF
32418/* end confdefs.h. */
32419#include <$ac_header>
32420_ACEOF
32421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32423 ac_status=$?
32424 grep -v '^ *+' conftest.er1 >conftest.err
32425 rm -f conftest.er1
32426 cat conftest.err >&5
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); } >/dev/null; then
32429 if test -s conftest.err; then
32430 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
32431 else
32432 ac_cpp_err=
32433 fi
32434else
32435 ac_cpp_err=yes
32436fi
32437if test -z "$ac_cpp_err"; then
32438 ac_header_preproc=yes
32439else
32440 echo "$as_me: failed program was:" >&5
32441sed 's/^/| /' conftest.$ac_ext >&5
32442
32443 ac_header_preproc=no
32444fi
32445rm -f conftest.err conftest.$ac_ext
32446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32447echo "${ECHO_T}$ac_header_preproc" >&6
32448
32449# So? What about this header?
de59c161
RD
32450case $ac_header_compiler:$ac_header_preproc in
32451 yes:no )
a848cd7e
SC
32452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
32454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32456 (
32457 cat <<\_ASBOX
32458## ------------------------------------ ##
32459## Report this to bug-autoconf@gnu.org. ##
32460## ------------------------------------ ##
32461_ASBOX
32462 ) |
32463 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 32464 ;;
de59c161 32465 no:yes )
a848cd7e
SC
32466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
32468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
32470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32471echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
32472 (
32473 cat <<\_ASBOX
de59c161
RD
32474## ------------------------------------ ##
32475## Report this to bug-autoconf@gnu.org. ##
32476## ------------------------------------ ##
a848cd7e
SC
32477_ASBOX
32478 ) |
32479 sed "s/^/$as_me: WARNING: /" >&2
32480 ;;
32481esac
32482echo "$as_me:$LINENO: checking for $ac_header" >&5
32483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32484if eval "test \"\${$as_ac_Header+set}\" = set"; then
32485 echo $ECHO_N "(cached) $ECHO_C" >&6
32486else
de59c161 32487 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
32488fi
32489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32491
32492fi
32493if test `eval echo '${'$as_ac_Header'}'` = yes; then
32494 cat >>confdefs.h <<_ACEOF
32495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32496_ACEOF
32497
32498fi
32499
32500done
32501
32502
32503 if test "$wxUSE_LIBSDL" != "no"; then
32504
32505# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
32506if test "${with_sdl_prefix+set}" = set; then
32507 withval="$with_sdl_prefix"
32508 sdl_prefix="$withval"
32509else
32510 sdl_prefix=""
32511fi;
32512
32513# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
32514if test "${with_sdl_exec_prefix+set}" = set; then
32515 withval="$with_sdl_exec_prefix"
32516 sdl_exec_prefix="$withval"
32517else
32518 sdl_exec_prefix=""
32519fi;
32520# Check whether --enable-sdltest or --disable-sdltest was given.
32521if test "${enable_sdltest+set}" = set; then
32522 enableval="$enable_sdltest"
32523
32524else
32525 enable_sdltest=yes
32526fi;
32527
32528 if test x$sdl_exec_prefix != x ; then
32529 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
32530 if test x${SDL_CONFIG+set} != xset ; then
32531 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
32532 fi
32533 fi
32534 if test x$sdl_prefix != x ; then
32535 sdl_args="$sdl_args --prefix=$sdl_prefix"
32536 if test x${SDL_CONFIG+set} != xset ; then
32537 SDL_CONFIG=$sdl_prefix/bin/sdl-config
32538 fi
32539 fi
32540
32541
32542 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
32543 # Extract the first word of "sdl-config", so it can be a program name with args.
32544set dummy sdl-config; ac_word=$2
32545echo "$as_me:$LINENO: checking for $ac_word" >&5
32546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32547if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32549else
32550 case $SDL_CONFIG in
32551 [\\/]* | ?:[\\/]*)
32552 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
32553 ;;
32554 *)
32555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32556for as_dir in $PATH
32557do
32558 IFS=$as_save_IFS
32559 test -z "$as_dir" && as_dir=.
32560 for ac_exec_ext in '' $ac_executable_extensions; do
32561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32562 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32564 break 2
32565 fi
32566done
32567done
32568
32569 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
32570 ;;
32571esac
32572fi
32573SDL_CONFIG=$ac_cv_path_SDL_CONFIG
32574
32575if test -n "$SDL_CONFIG"; then
32576 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
32577echo "${ECHO_T}$SDL_CONFIG" >&6
32578else
32579 echo "$as_me:$LINENO: result: no" >&5
32580echo "${ECHO_T}no" >&6
32581fi
32582
32583 min_sdl_version=1.2.0
32584 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
32585echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
32586 no_sdl=""
32587 if test "$SDL_CONFIG" = "no" ; then
32588 no_sdl=yes
32589 else
32590 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
32591 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
32592
32593 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
32594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32595 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
32596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32597 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
32598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32599 if test "x$enable_sdltest" = "xyes" ; then
32600 ac_save_CFLAGS="$CFLAGS"
32601 ac_save_LIBS="$LIBS"
32602 CFLAGS="$CFLAGS $SDL_CFLAGS"
32603 LIBS="$LIBS $SDL_LIBS"
32604 rm -f conf.sdltest
32605 if test "$cross_compiling" = yes; then
32606 echo $ac_n "cross compiling; assumed OK... $ac_c"
32607else
32608 cat >conftest.$ac_ext <<_ACEOF
de59c161 32609#line $LINENO "configure"
a848cd7e
SC
32610/* confdefs.h. */
32611_ACEOF
32612cat confdefs.h >>conftest.$ac_ext
32613cat >>conftest.$ac_ext <<_ACEOF
32614/* end confdefs.h. */
32615
32616#include <stdio.h>
32617#include <stdlib.h>
32618#include <string.h>
32619#include "SDL.h"
32620
32621char*
32622my_strdup (char *str)
32623{
32624 char *new_str;
32625
32626 if (str)
32627 {
32628 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
32629 strcpy (new_str, str);
32630 }
32631 else
32632 new_str = NULL;
32633
32634 return new_str;
32635}
32636
32637int main (int argc, char *argv[])
32638{
32639 int major, minor, micro;
32640 char *tmp_version;
32641
32642 /* This hangs on some systems (?)
32643 system ("touch conf.sdltest");
32644 */
32645 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
32646
32647 /* HP/UX 9 (%@#!) writes to sscanf strings */
32648 tmp_version = my_strdup("$min_sdl_version");
32649 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
32650 printf("%s, bad version string\n", "$min_sdl_version");
32651 exit(1);
32652 }
32653
32654 if (($sdl_major_version > major) ||
32655 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
32656 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
32657 {
32658 return 0;
32659 }
32660 else
32661 {
32662 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
32663 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
32664 printf("*** best to upgrade to the required version.\n");
32665 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
32666 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
32667 printf("*** config.cache before re-running configure\n");
32668 return 1;
32669 }
32670}
32671
32672
32673_ACEOF
32674rm -f conftest$ac_exeext
32675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32676 (eval $ac_link) 2>&5
32677 ac_status=$?
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32681 (eval $ac_try) 2>&5
32682 ac_status=$?
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); }; }; then
32685 :
32686else
32687 echo "$as_me: program exited with status $ac_status" >&5
32688echo "$as_me: failed program was:" >&5
32689sed 's/^/| /' conftest.$ac_ext >&5
32690
32691( exit $ac_status )
32692no_sdl=yes
32693fi
de59c161 32694rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32695fi
32696 CFLAGS="$ac_save_CFLAGS"
32697 LIBS="$ac_save_LIBS"
32698 fi
32699 fi
32700 if test "x$no_sdl" = x ; then
32701 echo "$as_me:$LINENO: result: yes" >&5
32702echo "${ECHO_T}yes" >&6
32703
32704 EXTRALIBS_SDL="$SDL_LIBS"
32705 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
32706 cat >>confdefs.h <<\_ACEOF
32707#define wxUSE_LIBSDL 1
32708_ACEOF
32709
32710
32711 else
32712 echo "$as_me:$LINENO: result: no" >&5
32713echo "${ECHO_T}no" >&6
32714 if test "$SDL_CONFIG" = "no" ; then
32715 echo "*** The sdl-config script installed by SDL could not be found"
32716 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
32717 echo "*** your path, or set the SDL_CONFIG environment variable to the"
32718 echo "*** full path to sdl-config."
32719 else
32720 if test -f conf.sdltest ; then
32721 :
32722 else
32723 echo "*** Could not run SDL test program, checking why..."
32724 CFLAGS="$CFLAGS $SDL_CFLAGS"
32725 LIBS="$LIBS $SDL_LIBS"
32726 cat >conftest.$ac_ext <<_ACEOF
de59c161 32727#line $LINENO "configure"
a848cd7e
SC
32728/* confdefs.h. */
32729_ACEOF
32730cat confdefs.h >>conftest.$ac_ext
32731cat >>conftest.$ac_ext <<_ACEOF
32732/* end confdefs.h. */
32733
32734#include <stdio.h>
32735#include "SDL.h"
32736
32737int main(int argc, char *argv[])
32738{ return 0; }
32739#undef main
32740#define main K_and_R_C_main
32741
32742int
32743main ()
32744{
32745 return 0;
32746 ;
32747 return 0;
32748}
32749_ACEOF
32750rm -f conftest.$ac_objext conftest$ac_exeext
32751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 32752 (eval $ac_link) 2>&5
a848cd7e 32753 ac_status=$?
a848cd7e
SC
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } &&
de59c161 32756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758 (eval $ac_try) 2>&5
32759 ac_status=$?
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); }; }; then
32762 echo "*** The test program compiled, but did not run. This usually means"
32763 echo "*** that the run-time linker is not finding SDL or finding the wrong"
32764 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
32765 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32766 echo "*** to the installed location Also, make sure you have run ldconfig if that"
32767 echo "*** is required on your system"
32768 echo "***"
32769 echo "*** If you have an old version installed, it is best to remove it, although"
32770 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32771else
32772 echo "$as_me: failed program was:" >&5
32773sed 's/^/| /' conftest.$ac_ext >&5
32774
32775 echo "*** The test program failed to compile or link. See the file config.log for the"
32776 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
32777 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
32778 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
32779fi
de59c161 32780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32781 CFLAGS="$ac_save_CFLAGS"
32782 LIBS="$ac_save_LIBS"
32783 fi
32784 fi
32785 SDL_CFLAGS=""
32786 SDL_LIBS=""
32787 wxUSE_LIBSDL="no"
32788 fi
32789
32790
32791 rm -f conf.sdltest
32792
32793 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
32794 WITH_PLUGIN_SDL=1
32795 fi
32796 fi
32797 fi
32798
32799 cat >>confdefs.h <<\_ACEOF
32800#define wxUSE_SOUND 1
32801_ACEOF
32802
32803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
32804fi
32805
32806if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
32807 cat >>confdefs.h <<\_ACEOF
32808#define wxUSE_CMDLINE_PARSER 1
32809_ACEOF
32810
32811fi
32812
32813if test "$wxUSE_STOPWATCH" = "yes"; then
32814 cat >>confdefs.h <<\_ACEOF
32815#define wxUSE_STOPWATCH 1
32816_ACEOF
32817
32818fi
32819
32820if test "$wxUSE_DATETIME" = "yes"; then
32821 cat >>confdefs.h <<\_ACEOF
32822#define wxUSE_DATETIME 1
32823_ACEOF
32824
32825fi
32826
32827if test "$wxUSE_FILE" = "yes"; then
32828 cat >>confdefs.h <<\_ACEOF
32829#define wxUSE_FILE 1
32830_ACEOF
32831
32832fi
32833
32834if test "$wxUSE_FFILE" = "yes"; then
32835 cat >>confdefs.h <<\_ACEOF
32836#define wxUSE_FFILE 1
32837_ACEOF
32838
32839fi
32840
32841if test "$wxUSE_FILESYSTEM" = "yes"; then
32842 cat >>confdefs.h <<\_ACEOF
32843#define wxUSE_FILESYSTEM 1
32844_ACEOF
32845
32846fi
32847
32848if test "$wxUSE_FS_ZIP" = "yes"; then
32849 cat >>confdefs.h <<\_ACEOF
32850#define wxUSE_FS_ZIP 1
32851_ACEOF
32852
32853fi
32854
32855if test "$wxUSE_ZIPSTREAM" = "yes"; then
32856 cat >>confdefs.h <<\_ACEOF
32857#define wxUSE_ZIPSTREAM 1
32858_ACEOF
32859
32860fi
32861
a848cd7e
SC
32862if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32863 cat >>confdefs.h <<\_ACEOF
32864#define wxUSE_ON_FATAL_EXCEPTION 1
32865_ACEOF
32866
32867fi
32868
32869if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32870 cat >>confdefs.h <<\_ACEOF
32871#define wxUSE_SNGLINST_CHECKER 1
32872_ACEOF
32873
32874fi
32875
32876if test "$wxUSE_BUSYINFO" = "yes"; then
32877 cat >>confdefs.h <<\_ACEOF
32878#define wxUSE_BUSYINFO 1
32879_ACEOF
32880
32881fi
32882
32883if test "$wxUSE_STD_IOSTREAM" = "yes"; then
32884 cat >>confdefs.h <<\_ACEOF
32885#define wxUSE_STD_IOSTREAM 1
32886_ACEOF
32887
32888fi
32889
32890if test "$wxUSE_TEXTBUFFER" = "yes"; then
32891 cat >>confdefs.h <<\_ACEOF
32892#define wxUSE_TEXTBUFFER 1
32893_ACEOF
32894
32895fi
32896
32897if test "$wxUSE_TEXTFILE" = "yes"; then
32898 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
32899 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32900echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
32901 else
32902 cat >>confdefs.h <<\_ACEOF
32903#define wxUSE_TEXTFILE 1
32904_ACEOF
32905
32906 fi
32907fi
32908
32909if test "$wxUSE_CONFIG" = "yes" ; then
32910 if test "$wxUSE_TEXTFILE" != "yes"; then
32911 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32912echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
32913 else
32914 cat >>confdefs.h <<\_ACEOF
32915#define wxUSE_CONFIG 1
32916_ACEOF
32917
32918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32919 fi
32920fi
32921
32922if test "$wxUSE_INTL" = "yes" ; then
32923 if test "$wxUSE_FILE" != "yes"; then
32924 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32925echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
32926 else
32927 cat >>confdefs.h <<\_ACEOF
32928#define wxUSE_INTL 1
32929_ACEOF
32930
32931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
32932 GUIDIST="$GUIDIST INTL_DIST"
32933 fi
32934fi
32935
32936if test "$wxUSE_LOG" = "yes"; then
32937 cat >>confdefs.h <<\_ACEOF
32938#define wxUSE_LOG 1
32939_ACEOF
32940
32941
32942 if test "$wxUSE_LOGGUI" = "yes"; then
32943 cat >>confdefs.h <<\_ACEOF
32944#define wxUSE_LOGGUI 1
32945_ACEOF
32946
32947 fi
32948
32949 if test "$wxUSE_LOGWINDOW" = "yes"; then
32950 cat >>confdefs.h <<\_ACEOF
32951#define wxUSE_LOGWINDOW 1
32952_ACEOF
32953
32954 fi
32955
32956 if test "$wxUSE_LOGDIALOG" = "yes"; then
32957 cat >>confdefs.h <<\_ACEOF
32958#define wxUSE_LOG_DIALOG 1
32959_ACEOF
32960
32961 fi
32962fi
32963
32964if test "$wxUSE_LONGLONG" = "yes"; then
32965 cat >>confdefs.h <<\_ACEOF
32966#define wxUSE_LONGLONG 1
32967_ACEOF
32968
32969fi
32970
32971if test "$wxUSE_GEOMETRY" = "yes"; then
32972 cat >>confdefs.h <<\_ACEOF
32973#define wxUSE_GEOMETRY 1
32974_ACEOF
32975
32976fi
32977
32978if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
32979 cat >>confdefs.h <<\_ACEOF
32980#define wxUSE_DIALUP_MANAGER 1
32981_ACEOF
32982
32983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
32984fi
32985
32986if test "$wxUSE_STREAMS" = "yes" ; then
32987 cat >>confdefs.h <<\_ACEOF
32988#define wxUSE_STREAMS 1
32989_ACEOF
32990
32991fi
32992
32993
32994if test "$wxUSE_DATETIME" = "yes"; then
32995
32996for ac_func in strptime
32997do
32998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32999echo "$as_me:$LINENO: checking for $ac_func" >&5
33000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33001if eval "test \"\${$as_ac_var+set}\" = set"; then
33002 echo $ECHO_N "(cached) $ECHO_C" >&6
33003else
33004 cat >conftest.$ac_ext <<_ACEOF
de59c161 33005#line $LINENO "configure"
a848cd7e
SC
33006/* confdefs.h. */
33007_ACEOF
33008cat confdefs.h >>conftest.$ac_ext
33009cat >>conftest.$ac_ext <<_ACEOF
33010/* end confdefs.h. */
a848cd7e
SC
33011/* System header to define __stub macros and hopefully few prototypes,
33012 which can conflict with char $ac_func (); below.
33013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33014 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
33015#ifdef __STDC__
33016# include <limits.h>
33017#else
33018# include <assert.h>
33019#endif
a848cd7e
SC
33020/* Override any gcc2 internal prototype to avoid an error. */
33021#ifdef __cplusplus
33022extern "C"
33023{
33024#endif
33025/* We use char because int might match the return type of a gcc2
33026 builtin and then its argument prototype would still apply. */
33027char $ac_func ();
33028/* The GNU C library defines this for functions which it implements
33029 to always fail with ENOSYS. Some functions are actually named
33030 something starting with __ and the normal name is an alias. */
33031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33032choke me
33033#else
33034char (*f) () = $ac_func;
33035#endif
33036#ifdef __cplusplus
33037}
33038#endif
33039
33040int
33041main ()
33042{
33043return f != $ac_func;
33044 ;
33045 return 0;
33046}
33047_ACEOF
33048rm -f conftest.$ac_objext conftest$ac_exeext
33049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 33050 (eval $ac_link) 2>&5
a848cd7e 33051 ac_status=$?
a848cd7e
SC
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); } &&
de59c161 33054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056 (eval $ac_try) 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; }; then
33060 eval "$as_ac_var=yes"
33061else
33062 echo "$as_me: failed program was:" >&5
33063sed 's/^/| /' conftest.$ac_ext >&5
33064
33065eval "$as_ac_var=no"
33066fi
de59c161 33067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33068fi
33069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33071if test `eval echo '${'$as_ac_var'}'` = yes; then
33072 cat >>confdefs.h <<_ACEOF
33073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33074_ACEOF
33075
33076fi
33077done
33078
33079
33080 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
33081echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
33082if test "${wx_cv_var_timezone+set}" = set; then
33083 echo $ECHO_N "(cached) $ECHO_C" >&6
33084else
33085
33086 cat >conftest.$ac_ext <<_ACEOF
de59c161 33087#line $LINENO "configure"
a848cd7e
SC
33088/* confdefs.h. */
33089_ACEOF
33090cat confdefs.h >>conftest.$ac_ext
33091cat >>conftest.$ac_ext <<_ACEOF
33092/* end confdefs.h. */
33093
33094 #include <time.h>
33095
33096int
33097main ()
33098{
33099
33100 int tz;
33101 tz = timezone;
33102
33103 ;
33104 return 0;
33105}
33106_ACEOF
33107rm -f conftest.$ac_objext
33108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 33109 (eval $ac_compile) 2>&5
a848cd7e 33110 ac_status=$?
a848cd7e
SC
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); } &&
de59c161 33113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33115 (eval $ac_try) 2>&5
33116 ac_status=$?
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; }; then
33119
33120 wx_cv_var_timezone=timezone
33121
33122else
33123 echo "$as_me: failed program was:" >&5
33124sed 's/^/| /' conftest.$ac_ext >&5
33125
33126
33127 cat >conftest.$ac_ext <<_ACEOF
de59c161 33128#line $LINENO "configure"
a848cd7e
SC
33129/* confdefs.h. */
33130_ACEOF
33131cat confdefs.h >>conftest.$ac_ext
33132cat >>conftest.$ac_ext <<_ACEOF
33133/* end confdefs.h. */
33134
33135 #include <time.h>
33136
33137int
33138main ()
33139{
33140
33141 int tz;
33142 tz = _timezone;
33143
33144 ;
33145 return 0;
33146}
33147_ACEOF
33148rm -f conftest.$ac_objext
33149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 33150 (eval $ac_compile) 2>&5
a848cd7e 33151 ac_status=$?
a848cd7e
SC
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); } &&
de59c161 33154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33156 (eval $ac_try) 2>&5
33157 ac_status=$?
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); }; }; then
33160
33161 wx_cv_var_timezone=_timezone
33162
33163else
33164 echo "$as_me: failed program was:" >&5
33165sed 's/^/| /' conftest.$ac_ext >&5
33166
33167
33168 cat >conftest.$ac_ext <<_ACEOF
de59c161 33169#line $LINENO "configure"
a848cd7e
SC
33170/* confdefs.h. */
33171_ACEOF
33172cat confdefs.h >>conftest.$ac_ext
33173cat >>conftest.$ac_ext <<_ACEOF
33174/* end confdefs.h. */
33175
33176 #include <time.h>
33177
33178int
33179main ()
33180{
33181
33182 int tz;
33183 tz = __timezone;
33184
33185 ;
33186 return 0;
33187}
33188_ACEOF
33189rm -f conftest.$ac_objext
33190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 33191 (eval $ac_compile) 2>&5
a848cd7e 33192 ac_status=$?
a848cd7e
SC
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); } &&
de59c161 33195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33197 (eval $ac_try) 2>&5
33198 ac_status=$?
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); }; }; then
33201
33202 wx_cv_var_timezone=__timezone
33203
33204else
33205 echo "$as_me: failed program was:" >&5
33206sed 's/^/| /' conftest.$ac_ext >&5
33207
33208
33209 if test "$USE_DOS" = 0 ; then
33210 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
33211echo "$as_me: WARNING: no timezone variable" >&2;}
33212 fi
33213
33214
33215fi
de59c161 33216rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33217
33218
33219fi
de59c161 33220rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33221
33222
33223fi
de59c161 33224rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33225
33226
33227fi
33228echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
33229echo "${ECHO_T}$wx_cv_var_timezone" >&6
33230
33231 if test "x$wx_cv_var_timezone" != x ; then
33232 cat >>confdefs.h <<_ACEOF
33233#define WX_TIMEZONE $wx_cv_var_timezone
33234_ACEOF
33235
33236 fi
33237
33238
33239for ac_func in localtime
33240do
33241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33242echo "$as_me:$LINENO: checking for $ac_func" >&5
33243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33244if eval "test \"\${$as_ac_var+set}\" = set"; then
33245 echo $ECHO_N "(cached) $ECHO_C" >&6
33246else
33247 cat >conftest.$ac_ext <<_ACEOF
de59c161 33248#line $LINENO "configure"
a848cd7e
SC
33249/* confdefs.h. */
33250_ACEOF
33251cat confdefs.h >>conftest.$ac_ext
33252cat >>conftest.$ac_ext <<_ACEOF
33253/* end confdefs.h. */
a848cd7e
SC
33254/* System header to define __stub macros and hopefully few prototypes,
33255 which can conflict with char $ac_func (); below.
33256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33257 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
33258#ifdef __STDC__
33259# include <limits.h>
33260#else
33261# include <assert.h>
33262#endif
a848cd7e
SC
33263/* Override any gcc2 internal prototype to avoid an error. */
33264#ifdef __cplusplus
33265extern "C"
33266{
33267#endif
33268/* We use char because int might match the return type of a gcc2
33269 builtin and then its argument prototype would still apply. */
33270char $ac_func ();
33271/* The GNU C library defines this for functions which it implements
33272 to always fail with ENOSYS. Some functions are actually named
33273 something starting with __ and the normal name is an alias. */
33274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33275choke me
33276#else
33277char (*f) () = $ac_func;
33278#endif
33279#ifdef __cplusplus
33280}
33281#endif
33282
33283int
33284main ()
33285{
33286return f != $ac_func;
33287 ;
33288 return 0;
33289}
33290_ACEOF
33291rm -f conftest.$ac_objext conftest$ac_exeext
33292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 33293 (eval $ac_link) 2>&5
a848cd7e 33294 ac_status=$?
a848cd7e
SC
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); } &&
de59c161 33297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33299 (eval $ac_try) 2>&5
33300 ac_status=$?
33301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302 (exit $ac_status); }; }; then
33303 eval "$as_ac_var=yes"
33304else
33305 echo "$as_me: failed program was:" >&5
33306sed 's/^/| /' conftest.$ac_ext >&5
33307
33308eval "$as_ac_var=no"
33309fi
de59c161 33310rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33311fi
33312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33314if test `eval echo '${'$as_ac_var'}'` = yes; then
33315 cat >>confdefs.h <<_ACEOF
33316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33317_ACEOF
33318
33319fi
33320done
33321
33322
33323 if test "$ac_cv_func_localtime" = "yes"; then
33324 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
33325echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
33326if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
33327 echo $ECHO_N "(cached) $ECHO_C" >&6
33328else
33329
33330 cat >conftest.$ac_ext <<_ACEOF
de59c161 33331#line $LINENO "configure"
a848cd7e
SC
33332/* confdefs.h. */
33333_ACEOF
33334cat confdefs.h >>conftest.$ac_ext
33335cat >>conftest.$ac_ext <<_ACEOF
33336/* end confdefs.h. */
33337
33338 #include <time.h>
33339
33340int
33341main ()
33342{
33343
33344 struct tm tm;
33345 tm.tm_gmtoff++;
33346
33347 ;
33348 return 0;
33349}
33350_ACEOF
33351rm -f conftest.$ac_objext
33352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 33353 (eval $ac_compile) 2>&5
a848cd7e 33354 ac_status=$?
a848cd7e
SC
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } &&
de59c161 33357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359 (eval $ac_try) 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; }; then
33363
33364 wx_cv_struct_tm_has_gmtoff=yes
33365
33366else
33367 echo "$as_me: failed program was:" >&5
33368sed 's/^/| /' conftest.$ac_ext >&5
33369
33370wx_cv_struct_tm_has_gmtoff=no
33371
33372fi
de59c161 33373rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33374
33375fi
33376echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
33377echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
33378 fi
33379
33380 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
33381 cat >>confdefs.h <<\_ACEOF
33382#define WX_GMTOFF_IN_TM 1
33383_ACEOF
33384
33385 fi
33386
33387
33388
33389for ac_func in gettimeofday ftime
33390do
33391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33392echo "$as_me:$LINENO: checking for $ac_func" >&5
33393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33394if eval "test \"\${$as_ac_var+set}\" = set"; then
33395 echo $ECHO_N "(cached) $ECHO_C" >&6
33396else
33397 cat >conftest.$ac_ext <<_ACEOF
de59c161 33398#line $LINENO "configure"
a848cd7e
SC
33399/* confdefs.h. */
33400_ACEOF
33401cat confdefs.h >>conftest.$ac_ext
33402cat >>conftest.$ac_ext <<_ACEOF
33403/* end confdefs.h. */
a848cd7e
SC
33404/* System header to define __stub macros and hopefully few prototypes,
33405 which can conflict with char $ac_func (); below.
33406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33407 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
33408#ifdef __STDC__
33409# include <limits.h>
33410#else
33411# include <assert.h>
33412#endif
a848cd7e
SC
33413/* Override any gcc2 internal prototype to avoid an error. */
33414#ifdef __cplusplus
33415extern "C"
33416{
33417#endif
33418/* We use char because int might match the return type of a gcc2
33419 builtin and then its argument prototype would still apply. */
33420char $ac_func ();
33421/* The GNU C library defines this for functions which it implements
33422 to always fail with ENOSYS. Some functions are actually named
33423 something starting with __ and the normal name is an alias. */
33424#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33425choke me
33426#else
33427char (*f) () = $ac_func;
33428#endif
33429#ifdef __cplusplus
33430}
33431#endif
33432
33433int
33434main ()
33435{
33436return f != $ac_func;
33437 ;
33438 return 0;
33439}
33440_ACEOF
33441rm -f conftest.$ac_objext conftest$ac_exeext
33442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 33443 (eval $ac_link) 2>&5
a848cd7e 33444 ac_status=$?
a848cd7e
SC
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); } &&
de59c161 33447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33449 (eval $ac_try) 2>&5
33450 ac_status=$?
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); }; }; then
33453 eval "$as_ac_var=yes"
33454else
33455 echo "$as_me: failed program was:" >&5
33456sed 's/^/| /' conftest.$ac_ext >&5
33457
33458eval "$as_ac_var=no"
33459fi
de59c161 33460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33461fi
33462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33463echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33464if test `eval echo '${'$as_ac_var'}'` = yes; then
33465 cat >>confdefs.h <<_ACEOF
33466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33467_ACEOF
33468 break
33469fi
33470done
33471
33472
33473 if test "$ac_cv_func_gettimeofday" = "yes"; then
33474 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
33475echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
33476if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
33477 echo $ECHO_N "(cached) $ECHO_C" >&6
33478else
33479
33480
33481
33482 ac_ext=cc
33483ac_cpp='$CXXCPP $CPPFLAGS'
33484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33487
33488
33489 cat >conftest.$ac_ext <<_ACEOF
de59c161 33490#line $LINENO "configure"
a848cd7e
SC
33491/* confdefs.h. */
33492_ACEOF
33493cat confdefs.h >>conftest.$ac_ext
33494cat >>conftest.$ac_ext <<_ACEOF
33495/* end confdefs.h. */
33496
33497 #include <sys/time.h>
33498 #include <unistd.h>
33499
33500int
33501main ()
33502{
33503
33504 struct timeval tv;
33505 gettimeofday(&tv, NULL);
33506
33507 ;
33508 return 0;
33509}
33510_ACEOF
33511rm -f conftest.$ac_objext
33512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 33513 (eval $ac_compile) 2>&5
a848cd7e 33514 ac_status=$?
a848cd7e
SC
33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); } &&
de59c161 33517 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519 (eval $ac_try) 2>&5
33520 ac_status=$?
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); }; }; then
33523 wx_cv_func_gettimeofday_has_2_args=yes
33524else
33525 echo "$as_me: failed program was:" >&5
33526sed 's/^/| /' conftest.$ac_ext >&5
33527
33528cat >conftest.$ac_ext <<_ACEOF
de59c161 33529#line $LINENO "configure"
a848cd7e
SC
33530/* confdefs.h. */
33531_ACEOF
33532cat confdefs.h >>conftest.$ac_ext
33533cat >>conftest.$ac_ext <<_ACEOF
33534/* end confdefs.h. */
33535
33536 #include <sys/time.h>
33537 #include <unistd.h>
33538
33539int
33540main ()
33541{
33542
33543 struct timeval tv;
33544 gettimeofday(&tv);
33545
33546 ;
33547 return 0;
33548}
33549_ACEOF
33550rm -f conftest.$ac_objext
33551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 33552 (eval $ac_compile) 2>&5
a848cd7e 33553 ac_status=$?
a848cd7e
SC
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); } &&
de59c161 33556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558 (eval $ac_try) 2>&5
33559 ac_status=$?
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
33562 wx_cv_func_gettimeofday_has_2_args=no
33563else
33564 echo "$as_me: failed program was:" >&5
33565sed 's/^/| /' conftest.$ac_ext >&5
33566
33567
33568 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
33569echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
33570 wx_cv_func_gettimeofday_has_2_args=unknown
33571
33572
33573fi
de59c161 33574rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33575
33576fi
de59c161 33577rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33578 ac_ext=c
33579ac_cpp='$CPP $CPPFLAGS'
33580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33582ac_compiler_gnu=$ac_cv_c_compiler_gnu
33583
33584
33585fi
33586echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
33587echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
33588
33589 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
33590 cat >>confdefs.h <<\_ACEOF
33591#define WX_GETTIMEOFDAY_NO_TZ 1
33592_ACEOF
33593
33594 fi
33595 fi
33596
33597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
33598fi
33599
33600
33601if test "$wxUSE_SOCKETS" = "yes"; then
33602 if test "$wxUSE_MGL" = "1"; then
33603 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
33604echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
33605 wxUSE_SOCKETS="no"
33606 fi
33607fi
33608
33609if test "$wxUSE_SOCKETS" = "yes"; then
33610 if test "$TOOLKIT" != "MSW"; then
33611 echo "$as_me:$LINENO: checking for socket" >&5
33612echo $ECHO_N "checking for socket... $ECHO_C" >&6
33613if test "${ac_cv_func_socket+set}" = set; then
33614 echo $ECHO_N "(cached) $ECHO_C" >&6
33615else
33616 cat >conftest.$ac_ext <<_ACEOF
de59c161 33617#line $LINENO "configure"
a848cd7e
SC
33618/* confdefs.h. */
33619_ACEOF
33620cat confdefs.h >>conftest.$ac_ext
33621cat >>conftest.$ac_ext <<_ACEOF
33622/* end confdefs.h. */
a848cd7e
SC
33623/* System header to define __stub macros and hopefully few prototypes,
33624 which can conflict with char socket (); below.
33625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33626 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
33627#ifdef __STDC__
33628# include <limits.h>
33629#else
33630# include <assert.h>
33631#endif
a848cd7e
SC
33632/* Override any gcc2 internal prototype to avoid an error. */
33633#ifdef __cplusplus
33634extern "C"
33635{
33636#endif
33637/* We use char because int might match the return type of a gcc2
33638 builtin and then its argument prototype would still apply. */
33639char socket ();
33640/* The GNU C library defines this for functions which it implements
33641 to always fail with ENOSYS. Some functions are actually named
33642 something starting with __ and the normal name is an alias. */
33643#if defined (__stub_socket) || defined (__stub___socket)
33644choke me
33645#else
33646char (*f) () = socket;
33647#endif
33648#ifdef __cplusplus
33649}
33650#endif
33651
33652int
33653main ()
33654{
33655return f != socket;
33656 ;
33657 return 0;
33658}
33659_ACEOF
33660rm -f conftest.$ac_objext conftest$ac_exeext
33661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 33662 (eval $ac_link) 2>&5
a848cd7e 33663 ac_status=$?
a848cd7e
SC
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); } &&
de59c161 33666 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33668 (eval $ac_try) 2>&5
33669 ac_status=$?
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); }; }; then
33672 ac_cv_func_socket=yes
33673else
33674 echo "$as_me: failed program was:" >&5
33675sed 's/^/| /' conftest.$ac_ext >&5
33676
33677ac_cv_func_socket=no
33678fi
de59c161 33679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33680fi
33681echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
33682echo "${ECHO_T}$ac_cv_func_socket" >&6
33683if test $ac_cv_func_socket = yes; then
33684 :
33685else
33686
33687 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
33688echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
33689if test "${ac_cv_lib_socket_socket+set}" = set; then
33690 echo $ECHO_N "(cached) $ECHO_C" >&6
33691else
33692 ac_check_lib_save_LIBS=$LIBS
33693LIBS="-lsocket $LIBS"
33694cat >conftest.$ac_ext <<_ACEOF
de59c161 33695#line $LINENO "configure"
a848cd7e
SC
33696/* confdefs.h. */
33697_ACEOF
33698cat confdefs.h >>conftest.$ac_ext
33699cat >>conftest.$ac_ext <<_ACEOF
33700/* end confdefs.h. */
33701
33702/* Override any gcc2 internal prototype to avoid an error. */
33703#ifdef __cplusplus
33704extern "C"
33705#endif
33706/* We use char because int might match the return type of a gcc2
33707 builtin and then its argument prototype would still apply. */
33708char socket ();
33709int
33710main ()
33711{
33712socket ();
33713 ;
33714 return 0;
33715}
33716_ACEOF
33717rm -f conftest.$ac_objext conftest$ac_exeext
33718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 33719 (eval $ac_link) 2>&5
a848cd7e 33720 ac_status=$?
a848cd7e
SC
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); } &&
de59c161 33723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725 (eval $ac_try) 2>&5
33726 ac_status=$?
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); }; }; then
33729 ac_cv_lib_socket_socket=yes
33730else
33731 echo "$as_me: failed program was:" >&5
33732sed 's/^/| /' conftest.$ac_ext >&5
33733
33734ac_cv_lib_socket_socket=no
33735fi
de59c161 33736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33737LIBS=$ac_check_lib_save_LIBS
33738fi
33739echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
33740echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
33741if test $ac_cv_lib_socket_socket = yes; then
33742 if test "$INET_LINK" != " -lsocket"; then
33743 INET_LINK="$INET_LINK -lsocket"
33744 fi
33745else
33746
33747 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
33748echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
33749 wxUSE_SOCKETS=no
33750
33751
33752fi
33753
33754
33755
33756fi
33757
33758 fi
33759fi
33760
33761if test "$wxUSE_SOCKETS" = "yes" ; then
33762 if test "$TOOLKIT" != "MSW"; then
33763 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33764echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33765if test "${wx_cv_type_getsockname3+set}" = set; then
33766 echo $ECHO_N "(cached) $ECHO_C" >&6
33767else
33768
33769 cat >conftest.$ac_ext <<_ACEOF
de59c161 33770#line $LINENO "configure"
a848cd7e
SC
33771/* confdefs.h. */
33772_ACEOF
33773cat confdefs.h >>conftest.$ac_ext
33774cat >>conftest.$ac_ext <<_ACEOF
33775/* end confdefs.h. */
33776
33777 #include <sys/types.h>
33778 #include <sys/socket.h>
33779
33780int
33781main ()
33782{
33783
33784 socklen_t len;
33785 getsockname(0, 0, &len);
33786
33787 ;
33788 return 0;
33789}
33790_ACEOF
33791rm -f conftest.$ac_objext
33792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 33793 (eval $ac_compile) 2>&5
a848cd7e 33794 ac_status=$?
a848cd7e
SC
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); } &&
de59c161 33797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799 (eval $ac_try) 2>&5
33800 ac_status=$?
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; }; then
33803 wx_cv_type_getsockname3=socklen_t
33804else
33805 echo "$as_me: failed program was:" >&5
33806sed 's/^/| /' conftest.$ac_ext >&5
33807
33808
33809 CFLAGS_OLD="$CFLAGS"
33810 if test "$GCC" = yes ; then
33811 CFLAGS="$CFLAGS -Werror"
33812 fi
33813
33814 cat >conftest.$ac_ext <<_ACEOF
de59c161 33815#line $LINENO "configure"
a848cd7e
SC
33816/* confdefs.h. */
33817_ACEOF
33818cat confdefs.h >>conftest.$ac_ext
33819cat >>conftest.$ac_ext <<_ACEOF
33820/* end confdefs.h. */
33821
33822 #include <sys/types.h>
33823 #include <sys/socket.h>
33824
33825int
33826main ()
33827{
33828
33829 size_t len;
33830 getsockname(0, 0, &len);
33831
33832 ;
33833 return 0;
33834}
33835_ACEOF
33836rm -f conftest.$ac_objext
33837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 33838 (eval $ac_compile) 2>&5
a848cd7e 33839 ac_status=$?
a848cd7e
SC
33840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841 (exit $ac_status); } &&
de59c161 33842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33844 (eval $ac_try) 2>&5
33845 ac_status=$?
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; }; then
33848 wx_cv_type_getsockname3=size_t
33849else
33850 echo "$as_me: failed program was:" >&5
33851sed 's/^/| /' conftest.$ac_ext >&5
33852
33853cat >conftest.$ac_ext <<_ACEOF
de59c161 33854#line $LINENO "configure"
a848cd7e
SC
33855/* confdefs.h. */
33856_ACEOF
33857cat confdefs.h >>conftest.$ac_ext
33858cat >>conftest.$ac_ext <<_ACEOF
33859/* end confdefs.h. */
33860
33861 #include <sys/types.h>
33862 #include <sys/socket.h>
33863
33864int
33865main ()
33866{
33867
33868 int len;
33869 getsockname(0, 0, &len);
33870
33871 ;
33872 return 0;
33873}
33874_ACEOF
33875rm -f conftest.$ac_objext
33876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 33877 (eval $ac_compile) 2>&5
a848cd7e 33878 ac_status=$?
a848cd7e
SC
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); } &&
de59c161 33881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33883 (eval $ac_try) 2>&5
33884 ac_status=$?
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); }; }; then
33887 wx_cv_type_getsockname3=int
33888else
33889 echo "$as_me: failed program was:" >&5
33890sed 's/^/| /' conftest.$ac_ext >&5
33891
33892wx_cv_type_getsockname3=unknown
33893
33894fi
de59c161 33895rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33896
33897fi
de59c161 33898rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33899
33900 CFLAGS="$CFLAGS_OLD"
33901
33902
33903fi
de59c161 33904rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33905
33906fi
33907echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
33908echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
33909
33910 if test "$wx_cv_type_getsockname3" = "unknown"; then
33911 wxUSE_SOCKETS=no
33912 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
33913echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
33914 else
33915 cat >>confdefs.h <<_ACEOF
33916#define SOCKLEN_T $wx_cv_type_getsockname3
33917_ACEOF
33918
33919 fi
33920 fi
33921fi
33922
33923if test "$wxUSE_SOCKETS" = "yes" ; then
33924 cat >>confdefs.h <<\_ACEOF
33925#define wxUSE_SOCKETS 1
33926_ACEOF
33927
33928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
33929fi
33930
33931if test "$wxUSE_PROTOCOL" = "yes"; then
33932 if test "$wxUSE_SOCKETS" != "yes"; then
33933 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
33934echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
33935 wxUSE_PROTOCOL=no
33936 fi
33937fi
33938
33939if test "$wxUSE_PROTOCOL" = "yes"; then
33940 cat >>confdefs.h <<\_ACEOF
33941#define wxUSE_PROTOCOL 1
33942_ACEOF
33943
33944
33945 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
33946 cat >>confdefs.h <<\_ACEOF
33947#define wxUSE_PROTOCOL_HTTP 1
33948_ACEOF
33949
33950 fi
33951 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
33952 cat >>confdefs.h <<\_ACEOF
33953#define wxUSE_PROTOCOL_FTP 1
33954_ACEOF
33955
33956 fi
33957 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
33958 cat >>confdefs.h <<\_ACEOF
33959#define wxUSE_PROTOCOL_FILE 1
33960_ACEOF
33961
33962 fi
33963else
33964 if test "$wxUSE_FS_INET" = "yes"; then
33965 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
33966echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
33967 wxUSE_FS_INET="no"
33968 fi
33969fi
33970
33971if test "$wxUSE_URL" = "yes"; then
33972 if test "$wxUSE_PROTOCOL" != "yes"; then
33973 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
33974echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
33975 wxUSE_URL=no
33976 fi
33977 if test "$wxUSE_URL" = "yes"; then
33978 cat >>confdefs.h <<\_ACEOF
33979#define wxUSE_URL 1
33980_ACEOF
33981
33982 fi
33983fi
33984
33985if test "$wxUSE_FS_INET" = "yes"; then
33986 cat >>confdefs.h <<\_ACEOF
33987#define wxUSE_FS_INET 1
33988_ACEOF
33989
33990fi
33991
33992
33993if test "$wxUSE_GUI" = "yes"; then
33994
33995 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
33996 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
33997echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
33998 wxUSE_JOYSTICK=no
33999 fi
34000
34001 if test "$TOOLKIT" != "MSW"; then
34002 if test "$wxUSE_JOYSTICK" = "yes"; then
34003
34004for ac_header in linux/joystick.h
34005do
34006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34007if eval "test \"\${$as_ac_Header+set}\" = set"; then
34008 echo "$as_me:$LINENO: checking for $ac_header" >&5
34009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34010if eval "test \"\${$as_ac_Header+set}\" = set"; then
34011 echo $ECHO_N "(cached) $ECHO_C" >&6
34012fi
34013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34015else
34016 # Is the header compilable?
34017echo "$as_me:$LINENO: checking $ac_header usability" >&5
34018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34019cat >conftest.$ac_ext <<_ACEOF
de59c161 34020#line $LINENO "configure"
a848cd7e
SC
34021/* confdefs.h. */
34022_ACEOF
34023cat confdefs.h >>conftest.$ac_ext
34024cat >>conftest.$ac_ext <<_ACEOF
34025/* end confdefs.h. */
34026$ac_includes_default
34027#include <$ac_header>
34028_ACEOF
34029rm -f conftest.$ac_objext
34030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 34031 (eval $ac_compile) 2>&5
a848cd7e 34032 ac_status=$?
a848cd7e
SC
34033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); } &&
de59c161 34035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34037 (eval $ac_try) 2>&5
34038 ac_status=$?
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; }; then
34041 ac_header_compiler=yes
34042else
34043 echo "$as_me: failed program was:" >&5
34044sed 's/^/| /' conftest.$ac_ext >&5
34045
34046ac_header_compiler=no
34047fi
de59c161 34048rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34050echo "${ECHO_T}$ac_header_compiler" >&6
34051
34052# Is the header present?
34053echo "$as_me:$LINENO: checking $ac_header presence" >&5
34054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34055cat >conftest.$ac_ext <<_ACEOF
de59c161 34056#line $LINENO "configure"
a848cd7e
SC
34057/* confdefs.h. */
34058_ACEOF
34059cat confdefs.h >>conftest.$ac_ext
34060cat >>conftest.$ac_ext <<_ACEOF
34061/* end confdefs.h. */
34062#include <$ac_header>
34063_ACEOF
34064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34066 ac_status=$?
34067 grep -v '^ *+' conftest.er1 >conftest.err
34068 rm -f conftest.er1
34069 cat conftest.err >&5
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); } >/dev/null; then
34072 if test -s conftest.err; then
34073 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
34074 else
34075 ac_cpp_err=
34076 fi
34077else
34078 ac_cpp_err=yes
34079fi
34080if test -z "$ac_cpp_err"; then
34081 ac_header_preproc=yes
34082else
34083 echo "$as_me: failed program was:" >&5
34084sed 's/^/| /' conftest.$ac_ext >&5
34085
34086 ac_header_preproc=no
34087fi
34088rm -f conftest.err conftest.$ac_ext
34089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34090echo "${ECHO_T}$ac_header_preproc" >&6
34091
34092# So? What about this header?
de59c161
RD
34093case $ac_header_compiler:$ac_header_preproc in
34094 yes:no )
a848cd7e
SC
34095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
34097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34099 (
34100 cat <<\_ASBOX
34101## ------------------------------------ ##
34102## Report this to bug-autoconf@gnu.org. ##
34103## ------------------------------------ ##
34104_ASBOX
34105 ) |
34106 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 34107 ;;
de59c161 34108 no:yes )
a848cd7e
SC
34109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34110echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
34111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34112echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
34113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
34115 (
34116 cat <<\_ASBOX
de59c161
RD
34117## ------------------------------------ ##
34118## Report this to bug-autoconf@gnu.org. ##
34119## ------------------------------------ ##
a848cd7e
SC
34120_ASBOX
34121 ) |
34122 sed "s/^/$as_me: WARNING: /" >&2
34123 ;;
34124esac
34125echo "$as_me:$LINENO: checking for $ac_header" >&5
34126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34127if eval "test \"\${$as_ac_Header+set}\" = set"; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
34129else
de59c161 34130 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
34131fi
34132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34134
34135fi
34136if test `eval echo '${'$as_ac_Header'}'` = yes; then
34137 cat >>confdefs.h <<_ACEOF
34138#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34139_ACEOF
34140
34141fi
34142
34143done
34144
34145 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
34146 wxUSE_JOYSTICK=no
34147 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
34148echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
34149 fi
34150 fi
34151 fi
34152
34153 if test "$wxUSE_JOYSTICK" = "yes"; then
34154 cat >>confdefs.h <<\_ACEOF
34155#define wxUSE_JOYSTICK 1
34156_ACEOF
34157
34158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
34159 fi
34160fi
34161
34162
34163
34164if test "$wxUSE_FONTMAP" = "yes" ; then
34165 cat >>confdefs.h <<\_ACEOF
34166#define wxUSE_FONTMAP 1
34167_ACEOF
34168
34169fi
34170
34171if test "$wxUSE_UNICODE" = "yes" ; then
34172 cat >>confdefs.h <<\_ACEOF
34173#define wxUSE_UNICODE 1
34174_ACEOF
34175
34176
34177 if test "$USE_WIN32" != 1; then
34178 wxUSE_UNICODE_MSLU=no
34179 fi
34180
34181 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
34182 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
34183echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
34184if test "${ac_cv_lib_unicows_main+set}" = set; then
34185 echo $ECHO_N "(cached) $ECHO_C" >&6
34186else
34187 ac_check_lib_save_LIBS=$LIBS
34188LIBS="-lunicows $LIBS"
34189cat >conftest.$ac_ext <<_ACEOF
de59c161 34190#line $LINENO "configure"
a848cd7e
SC
34191/* confdefs.h. */
34192_ACEOF
34193cat confdefs.h >>conftest.$ac_ext
34194cat >>conftest.$ac_ext <<_ACEOF
34195/* end confdefs.h. */
34196
34197
34198int
34199main ()
34200{
34201main ();
34202 ;
34203 return 0;
34204}
34205_ACEOF
34206rm -f conftest.$ac_objext conftest$ac_exeext
34207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 34208 (eval $ac_link) 2>&5
a848cd7e 34209 ac_status=$?
a848cd7e
SC
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } &&
de59c161 34212 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34214 (eval $ac_try) 2>&5
34215 ac_status=$?
34216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217 (exit $ac_status); }; }; then
34218 ac_cv_lib_unicows_main=yes
34219else
34220 echo "$as_me: failed program was:" >&5
34221sed 's/^/| /' conftest.$ac_ext >&5
34222
34223ac_cv_lib_unicows_main=no
34224fi
de59c161 34225rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34226LIBS=$ac_check_lib_save_LIBS
34227fi
34228echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
34229echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
34230if test $ac_cv_lib_unicows_main = yes; then
34231
34232 cat >>confdefs.h <<\_ACEOF
34233#define wxUSE_UNICODE_MSLU 1
34234_ACEOF
34235
34236
34237else
34238
34239 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
34240 Applications will only run on Windows NT/2000/XP!" >&5
34241echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
34242 Applications will only run on Windows NT/2000/XP!" >&2;}
34243 wxUSE_UNICODE_MSLU=no
34244
34245fi
34246
34247 fi
34248fi
34249
34250if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
34251 cat >>confdefs.h <<\_ACEOF
34252#define wxUSE_EXPERIMENTAL_PRINTF 1
34253_ACEOF
34254
34255fi
34256
34257
34258if test "$wxUSE_POSTSCRIPT" = "yes" ; then
34259 cat >>confdefs.h <<\_ACEOF
34260#define wxUSE_POSTSCRIPT 1
34261_ACEOF
34262
34263fi
34264
34265cat >>confdefs.h <<\_ACEOF
34266#define wxUSE_AFM_FOR_POSTSCRIPT 1
34267_ACEOF
34268
34269
34270cat >>confdefs.h <<\_ACEOF
34271#define wxUSE_NORMALIZED_PS_FONTS 1
34272_ACEOF
34273
34274
34275
34276if test "$wxUSE_CONSTRAINTS" = "yes"; then
34277 cat >>confdefs.h <<\_ACEOF
34278#define wxUSE_CONSTRAINTS 1
34279_ACEOF
34280
34281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
34282fi
34283
8a7b1113
VZ
34284if test "$wxUSE_MDI" = "yes"; then
34285 cat >>confdefs.h <<\_ACEOF
34286#define wxUSE_MDI 1
34287_ACEOF
34288
34289
34290 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
34291 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34292#define wxUSE_MDI_ARCHITECTURE 1
34293_ACEOF
34294
8a7b1113
VZ
34295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
34296 fi
a848cd7e
SC
34297fi
34298
34299if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
34300 cat >>confdefs.h <<\_ACEOF
34301#define wxUSE_DOC_VIEW_ARCHITECTURE 1
34302_ACEOF
34303
34304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
34305 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
34306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
34307 fi
34308fi
34309
34310if test "$wxUSE_HELP" = "yes"; then
34311 cat >>confdefs.h <<\_ACEOF
34312#define wxUSE_HELP 1
34313_ACEOF
34314
34315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
34316
34317 if test "$wxUSE_MSW" = 1; then
34318 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
34319 cat >>confdefs.h <<\_ACEOF
34320#define wxUSE_MS_HTML_HELP 1
34321_ACEOF
34322
34323 fi
34324 fi
34325
34326 if test "$wxUSE_WXHTML_HELP" = "yes"; then
34327 if test "$wxUSE_HTML" = "yes"; then
34328 cat >>confdefs.h <<\_ACEOF
34329#define wxUSE_WXHTML_HELP 1
34330_ACEOF
34331
34332 else
34333 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
34334echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
34335 wxUSE_WXHTML_HELP=no
34336 fi
34337 fi
34338fi
34339
34340if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
34341 if test "$wxUSE_CONSTRAINTS" != "yes"; then
34342 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
34343echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
34344 else
34345 cat >>confdefs.h <<\_ACEOF
34346#define wxUSE_PRINTING_ARCHITECTURE 1
34347_ACEOF
34348
34349 fi
34350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
34351fi
34352
34353if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
34354 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
34355echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
34356 { (exit 1); exit 1; }; }
34357fi
34358
34359
34360if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
34361 -o "$wxUSE_CLIPBOARD" = "yes" \
34362 -o "$wxUSE_OLE" = "yes" \
34363 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
34364
34365for ac_header in ole2.h
34366do
34367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34368if eval "test \"\${$as_ac_Header+set}\" = set"; then
34369 echo "$as_me:$LINENO: checking for $ac_header" >&5
34370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34371if eval "test \"\${$as_ac_Header+set}\" = set"; then
34372 echo $ECHO_N "(cached) $ECHO_C" >&6
34373fi
34374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34376else
34377 # Is the header compilable?
34378echo "$as_me:$LINENO: checking $ac_header usability" >&5
34379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34380cat >conftest.$ac_ext <<_ACEOF
de59c161 34381#line $LINENO "configure"
a848cd7e
SC
34382/* confdefs.h. */
34383_ACEOF
34384cat confdefs.h >>conftest.$ac_ext
34385cat >>conftest.$ac_ext <<_ACEOF
34386/* end confdefs.h. */
34387$ac_includes_default
34388#include <$ac_header>
34389_ACEOF
34390rm -f conftest.$ac_objext
34391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 34392 (eval $ac_compile) 2>&5
a848cd7e 34393 ac_status=$?
a848cd7e
SC
34394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395 (exit $ac_status); } &&
de59c161 34396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34398 (eval $ac_try) 2>&5
34399 ac_status=$?
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); }; }; then
34402 ac_header_compiler=yes
34403else
34404 echo "$as_me: failed program was:" >&5
34405sed 's/^/| /' conftest.$ac_ext >&5
34406
34407ac_header_compiler=no
34408fi
de59c161 34409rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34410echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34411echo "${ECHO_T}$ac_header_compiler" >&6
34412
34413# Is the header present?
34414echo "$as_me:$LINENO: checking $ac_header presence" >&5
34415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34416cat >conftest.$ac_ext <<_ACEOF
de59c161 34417#line $LINENO "configure"
a848cd7e
SC
34418/* confdefs.h. */
34419_ACEOF
34420cat confdefs.h >>conftest.$ac_ext
34421cat >>conftest.$ac_ext <<_ACEOF
34422/* end confdefs.h. */
34423#include <$ac_header>
34424_ACEOF
34425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34427 ac_status=$?
34428 grep -v '^ *+' conftest.er1 >conftest.err
34429 rm -f conftest.er1
34430 cat conftest.err >&5
34431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432 (exit $ac_status); } >/dev/null; then
34433 if test -s conftest.err; then
34434 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
34435 else
34436 ac_cpp_err=
34437 fi
34438else
34439 ac_cpp_err=yes
34440fi
34441if test -z "$ac_cpp_err"; then
34442 ac_header_preproc=yes
34443else
34444 echo "$as_me: failed program was:" >&5
34445sed 's/^/| /' conftest.$ac_ext >&5
34446
34447 ac_header_preproc=no
34448fi
34449rm -f conftest.err conftest.$ac_ext
34450echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34451echo "${ECHO_T}$ac_header_preproc" >&6
34452
34453# So? What about this header?
de59c161
RD
34454case $ac_header_compiler:$ac_header_preproc in
34455 yes:no )
a848cd7e
SC
34456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
de59c161
RD
34458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34460 (
34461 cat <<\_ASBOX
34462## ------------------------------------ ##
34463## Report this to bug-autoconf@gnu.org. ##
34464## ------------------------------------ ##
34465_ASBOX
34466 ) |
34467 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 34468 ;;
de59c161 34469 no:yes )
a848cd7e
SC
34470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
de59c161
RD
34472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
34474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
34476 (
34477 cat <<\_ASBOX
de59c161
RD
34478## ------------------------------------ ##
34479## Report this to bug-autoconf@gnu.org. ##
34480## ------------------------------------ ##
a848cd7e
SC
34481_ASBOX
34482 ) |
34483 sed "s/^/$as_me: WARNING: /" >&2
34484 ;;
34485esac
34486echo "$as_me:$LINENO: checking for $ac_header" >&5
34487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34488if eval "test \"\${$as_ac_Header+set}\" = set"; then
34489 echo $ECHO_N "(cached) $ECHO_C" >&6
34490else
de59c161 34491 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
34492fi
34493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34495
34496fi
34497if test `eval echo '${'$as_ac_Header'}'` = yes; then
34498 cat >>confdefs.h <<_ACEOF
34499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34500_ACEOF
34501
34502fi
34503
34504done
34505
34506
34507 if test "$ac_cv_header_ole2_h" = "yes" ; then
34508 if test "$GCC" = yes ; then
34509
34510
34511 ac_ext=cc
34512ac_cpp='$CXXCPP $CPPFLAGS'
34513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34516
34517
34518 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
34519echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
34520 cat >conftest.$ac_ext <<_ACEOF
de59c161 34521#line $LINENO "configure"
a848cd7e
SC
34522/* confdefs.h. */
34523_ACEOF
34524cat confdefs.h >>conftest.$ac_ext
34525cat >>conftest.$ac_ext <<_ACEOF
34526/* end confdefs.h. */
34527#include <windows.h>
34528 #include <ole2.h>
34529int
34530main ()
34531{
34532
34533 ;
34534 return 0;
34535}
34536_ACEOF
34537rm -f conftest.$ac_objext
34538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 34539 (eval $ac_compile) 2>&5
a848cd7e 34540 ac_status=$?
a848cd7e
SC
34541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542 (exit $ac_status); } &&
de59c161 34543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34545 (eval $ac_try) 2>&5
34546 ac_status=$?
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); }; }; then
34549 echo "$as_me:$LINENO: result: no" >&5
34550echo "${ECHO_T}no" >&6
34551else
34552 echo "$as_me: failed program was:" >&5
34553sed 's/^/| /' conftest.$ac_ext >&5
34554
34555echo "$as_me:$LINENO: result: yes" >&5
34556echo "${ECHO_T}yes" >&6
34557 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
34558fi
de59c161 34559rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34560 ac_ext=c
34561ac_cpp='$CPP $CPPFLAGS'
34562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34564ac_compiler_gnu=$ac_cv_c_compiler_gnu
34565
34566 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
34567 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
34568 if test "$wxUSE_OLE" = "yes" ; then
34569 cat >>confdefs.h <<\_ACEOF
34570#define wxUSE_OLE 1
34571_ACEOF
34572
34573 fi
34574 fi
34575
34576 if test "$wxUSE_DATAOBJ" = "yes" ; then
34577 cat >>confdefs.h <<\_ACEOF
34578#define wxUSE_DATAOBJ 1
34579_ACEOF
34580
34581 fi
34582 else
34583 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
34584echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
34585
34586 wxUSE_CLIPBOARD=no
34587 wxUSE_DRAG_AND_DROP=no
34588 wxUSE_DATAOBJ=no
34589 wxUSE_OLE=no
34590 fi
34591
34592 if test "$wxUSE_METAFILE" = "yes"; then
34593 cat >>confdefs.h <<\_ACEOF
34594#define wxUSE_METAFILE 1
34595_ACEOF
34596
34597
34598 cat >>confdefs.h <<\_ACEOF
34599#define wxUSE_ENH_METAFILE 1
34600_ACEOF
34601
34602 fi
34603fi
34604
34605if test "$wxUSE_IPC" = "yes"; then
34606 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
34607 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
34608echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
34609 fi
34610
34611 cat >>confdefs.h <<\_ACEOF
34612#define wxUSE_IPC 1
34613_ACEOF
34614
34615fi
34616
34617if test "$wxUSE_CLIPBOARD" = "yes"; then
34618 if test "$wxUSE_MGL" = 1; then
34619 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
34620echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
34621 wxUSE_CLIPBOARD=no
34622 fi
34623
34624 if test "$wxUSE_CLIPBOARD" = "yes"; then
34625 cat >>confdefs.h <<\_ACEOF
34626#define wxUSE_CLIPBOARD 1
34627_ACEOF
34628
34629
34630 cat >>confdefs.h <<\_ACEOF
34631#define wxUSE_DATAOBJ 1
34632_ACEOF
34633
34634 fi
34635fi
34636
34637if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
34638 if test "$wxUSE_GTK" = 1; then
34639 if test "$WXGTK12" != 1; then
34640 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
34641echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
34642 wxUSE_DRAG_AND_DROP=no
34643 fi
34644 fi
34645
34646 if test "$wxUSE_MOTIF" = 1; then
34647 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
34648echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
34649 wxUSE_DRAG_AND_DROP=no
34650 fi
34651
34652 if test "$wxUSE_X11" = 1; then
34653 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
34654echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
34655 wxUSE_DRAG_AND_DROP=no
34656 fi
34657
34658 if test "$wxUSE_MGL" = 1; then
34659 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
34660echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
34661 wxUSE_DRAG_AND_DROP=no
34662 fi
34663
34664 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
34665 cat >>confdefs.h <<\_ACEOF
34666#define wxUSE_DRAG_AND_DROP 1
34667_ACEOF
34668
34669 fi
34670
34671fi
34672
34673if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
34674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
34675fi
34676
34677if test "$wxUSE_SPLINES" = "yes" ; then
34678 cat >>confdefs.h <<\_ACEOF
34679#define wxUSE_SPLINES 1
34680_ACEOF
34681
34682fi
34683
34684
34685USES_CONTROLS=0
34686if test "$wxUSE_CONTROLS" = "yes"; then
34687 USES_CONTROLS=1
34688fi
34689
34690if test "$wxUSE_ACCEL" = "yes"; then
34691 cat >>confdefs.h <<\_ACEOF
34692#define wxUSE_ACCEL 1
34693_ACEOF
34694
34695 USES_CONTROLS=1
34696fi
34697
34698if test "$wxUSE_BUTTON" = "yes"; then
34699 cat >>confdefs.h <<\_ACEOF
34700#define wxUSE_BUTTON 1
34701_ACEOF
34702
34703 USES_CONTROLS=1
34704fi
34705
34706if test "$wxUSE_BMPBUTTON" = "yes"; then
34707 cat >>confdefs.h <<\_ACEOF
34708#define wxUSE_BMPBUTTON 1
34709_ACEOF
34710
34711 USES_CONTROLS=1
34712fi
34713
34714if test "$wxUSE_CALCTRL" = "yes"; then
34715 cat >>confdefs.h <<\_ACEOF
34716#define wxUSE_CALENDARCTRL 1
34717_ACEOF
34718
34719 USES_CONTROLS=1
34720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
34721fi
34722
34723if test "$wxUSE_CARET" = "yes"; then
34724 cat >>confdefs.h <<\_ACEOF
34725#define wxUSE_CARET 1
34726_ACEOF
34727
34728 USES_CONTROLS=1
34729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
34730fi
34731
34732if test "$wxUSE_COMBOBOX" = "yes"; then
34733 cat >>confdefs.h <<\_ACEOF
34734#define wxUSE_COMBOBOX 1
34735_ACEOF
34736
34737 USES_CONTROLS=1
34738fi
34739
34740if test "$wxUSE_CHOICE" = "yes"; then
34741 cat >>confdefs.h <<\_ACEOF
34742#define wxUSE_CHOICE 1
34743_ACEOF
34744
34745 USES_CONTROLS=1
34746fi
34747
34748if test "$wxUSE_CHECKBOX" = "yes"; then
34749 cat >>confdefs.h <<\_ACEOF
34750#define wxUSE_CHECKBOX 1
34751_ACEOF
34752
34753 USES_CONTROLS=1
34754fi
34755
34756if test "$wxUSE_CHECKLST" = "yes"; then
34757 cat >>confdefs.h <<\_ACEOF
34758#define wxUSE_CHECKLISTBOX 1
34759_ACEOF
34760
34761 USES_CONTROLS=1
34762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
34763fi
34764
34765if test "$wxUSE_DISPLAY" = "yes"; then
34766 cat >>confdefs.h <<\_ACEOF
34767#define wxUSE_DISPLAY 1
34768_ACEOF
34769
34770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
34771fi
34772
34773if test "$wxUSE_GAUGE" = "yes"; then
34774 cat >>confdefs.h <<\_ACEOF
34775#define wxUSE_GAUGE 1
34776_ACEOF
34777
34778 USES_CONTROLS=1
34779fi
34780
34781if test "$wxUSE_GRID" = "yes"; then
34782 cat >>confdefs.h <<\_ACEOF
34783#define wxUSE_GRID 1
34784_ACEOF
34785
34786 USES_CONTROLS=1
34787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
34788fi
34789
34790if test "$wxUSE_IMAGLIST" = "yes"; then
34791 cat >>confdefs.h <<\_ACEOF
34792#define wxUSE_IMAGLIST 1
34793_ACEOF
34794
34795fi
34796
34797if test "$wxUSE_LISTBOOK" = "yes"; then
34798 cat >>confdefs.h <<\_ACEOF
34799#define wxUSE_LISTBOOK 1
34800_ACEOF
34801
34802 USES_CONTROLS=1
34803fi
34804
34805if test "$wxUSE_LISTBOX" = "yes"; then
34806 cat >>confdefs.h <<\_ACEOF
34807#define wxUSE_LISTBOX 1
34808_ACEOF
34809
34810 USES_CONTROLS=1
34811fi
34812
34813if test "$wxUSE_LISTCTRL" = "yes"; then
34814 if test "$wxUSE_IMAGLIST" = "yes"; then
34815 cat >>confdefs.h <<\_ACEOF
34816#define wxUSE_LISTCTRL 1
34817_ACEOF
34818
34819 USES_CONTROLS=1
34820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
34821 else
34822 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
34823echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
34824 fi
34825fi
34826
34827if test "$wxUSE_NOTEBOOK" = "yes"; then
34828 cat >>confdefs.h <<\_ACEOF
34829#define wxUSE_NOTEBOOK 1
34830_ACEOF
34831
34832 USES_CONTROLS=1
34833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
34834fi
34835
34836
34837if test "$wxUSE_RADIOBOX" = "yes"; then
34838 cat >>confdefs.h <<\_ACEOF
34839#define wxUSE_RADIOBOX 1
34840_ACEOF
34841
34842 USES_CONTROLS=1
34843fi
34844
34845if test "$wxUSE_RADIOBTN" = "yes"; then
34846 cat >>confdefs.h <<\_ACEOF
34847#define wxUSE_RADIOBTN 1
34848_ACEOF
34849
34850 USES_CONTROLS=1
34851fi
34852
34853if test "$wxUSE_SASH" = "yes"; then
34854 cat >>confdefs.h <<\_ACEOF
34855#define wxUSE_SASH 1
34856_ACEOF
34857
34858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
34859fi
34860
34861if test "$wxUSE_SCROLLBAR" = "yes"; then
34862 cat >>confdefs.h <<\_ACEOF
34863#define wxUSE_SCROLLBAR 1
34864_ACEOF
34865
34866 USES_CONTROLS=1
34867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
34868fi
34869
34870if test "$wxUSE_SLIDER" = "yes"; then
34871 cat >>confdefs.h <<\_ACEOF
34872#define wxUSE_SLIDER 1
34873_ACEOF
34874
34875 USES_CONTROLS=1
34876fi
34877
34878if test "$wxUSE_SPINBTN" = "yes"; then
34879 cat >>confdefs.h <<\_ACEOF
34880#define wxUSE_SPINBTN 1
34881_ACEOF
34882
34883 USES_CONTROLS=1
34884fi
34885
34886if test "$wxUSE_SPINCTRL" = "yes"; then
34887 cat >>confdefs.h <<\_ACEOF
34888#define wxUSE_SPINCTRL 1
34889_ACEOF
34890
34891 USES_CONTROLS=1
34892fi
34893
34894if test "$wxUSE_SPLITTER" = "yes"; then
34895 cat >>confdefs.h <<\_ACEOF
34896#define wxUSE_SPLITTER 1
34897_ACEOF
34898
34899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
34900fi
34901
34902if test "$wxUSE_STATBMP" = "yes"; then
34903 cat >>confdefs.h <<\_ACEOF
34904#define wxUSE_STATBMP 1
34905_ACEOF
34906
34907 USES_CONTROLS=1
34908fi
34909
34910if test "$wxUSE_STATBOX" = "yes"; then
34911 cat >>confdefs.h <<\_ACEOF
34912#define wxUSE_STATBOX 1
34913_ACEOF
34914
34915 USES_CONTROLS=1
34916fi
34917
34918if test "$wxUSE_STATTEXT" = "yes"; then
34919 cat >>confdefs.h <<\_ACEOF
34920#define wxUSE_STATTEXT 1
34921_ACEOF
34922
34923 USES_CONTROLS=1
34924fi
34925
34926if test "$wxUSE_STATLINE" = "yes"; then
34927 cat >>confdefs.h <<\_ACEOF
34928#define wxUSE_STATLINE 1
34929_ACEOF
34930
34931 USES_CONTROLS=1
34932fi
34933
34934if test "$wxUSE_STATUSBAR" = "yes"; then
34935 cat >>confdefs.h <<\_ACEOF
34936#define wxUSE_STATUSBAR 1
34937_ACEOF
34938
34939 USES_CONTROLS=1
34940
34941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
34942fi
34943
34944if test "$wxUSE_TABDIALOG" = "yes"; then
34945 cat >>confdefs.h <<\_ACEOF
34946#define wxUSE_TAB_DIALOG 1
34947_ACEOF
34948
34949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
34950fi
34951
34952if test "$wxUSE_TEXTCTRL" = "yes"; then
34953 cat >>confdefs.h <<\_ACEOF
34954#define wxUSE_TEXTCTRL 1
34955_ACEOF
34956
34957 USES_CONTROLS=1
34958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
34959fi
34960
34961if test "$wxUSE_TOGGLEBTN" = "yes"; then
34962 if test "$wxUSE_COCOA" = 1 ; then
34963 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
34964echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
34965 wxUSE_TOGGLEBTN=no
bdcade0a
MB
34966 else
34967 if test "$wxUSE_PM" = 1; then
34968 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
34969echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
34970 wxUSE_TOGGLEBTN=no
34971 fi
a848cd7e
SC
34972 fi
34973 if test "$wxUSE_UNIVERSAL" = "yes"; then
34974 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
34975echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
34976 wxUSE_TOGGLEBTN=no
34977 fi
34978
34979 if test "$wxUSE_TOGGLEBTN" = "yes"; then
34980 cat >>confdefs.h <<\_ACEOF
34981#define wxUSE_TOGGLEBTN 1
34982_ACEOF
34983
34984 USES_CONTROLS=1
34985 fi
34986fi
34987
34988if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
34989 cat >>confdefs.h <<\_ACEOF
34990#define wxUSE_TOOLBAR_SIMPLE 1
34991_ACEOF
34992
34993 wxUSE_TOOLBAR="yes"
34994 USES_CONTROLS=1
34995fi
34996
34997if test "$wxUSE_TOOLBAR" = "yes"; then
34998 cat >>confdefs.h <<\_ACEOF
34999#define wxUSE_TOOLBAR 1
35000_ACEOF
35001
35002 USES_CONTROLS=1
35003
35004 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
35005 wxUSE_TOOLBAR_NATIVE="yes"
35006 fi
35007
35008 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
35009 cat >>confdefs.h <<\_ACEOF
35010#define wxUSE_TOOLBAR_NATIVE 1
35011_ACEOF
35012
35013 USES_CONTROLS=1
35014 fi
35015
35016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
35017fi
35018
35019if test "$wxUSE_TOOLTIPS" = "yes"; then
35020 if test "$wxUSE_MOTIF" = 1; then
35021 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
35022echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
35023 else
35024 if test "$wxUSE_UNIVERSAL" = "yes"; then
35025 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
35026echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
35027 else
35028 cat >>confdefs.h <<\_ACEOF
35029#define wxUSE_TOOLTIPS 1
35030_ACEOF
35031
35032 fi
35033 fi
35034fi
35035
35036if test "$wxUSE_TREECTRL" = "yes"; then
35037 if test "$wxUSE_IMAGLIST" = "yes"; then
35038 cat >>confdefs.h <<\_ACEOF
35039#define wxUSE_TREECTRL 1
35040_ACEOF
35041
35042 USES_CONTROLS=1
35043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
35044 else
35045 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
35046echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
35047 fi
35048fi
35049
35050if test "$wxUSE_POPUPWIN" = "yes"; then
35051 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
35052 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
35053echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
35054 else
35055 if test "$wxUSE_PM" = 1; then
35056 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
35057echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
35058 else
35059 cat >>confdefs.h <<\_ACEOF
35060#define wxUSE_POPUPWIN 1
35061_ACEOF
35062
35063
35064 USES_CONTROLS=1
35065 fi
35066 fi
35067fi
35068
35069if test "$wxUSE_TIPWINDOW" = "yes"; then
35070 if test "$wxUSE_PM" = 1; then
35071 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
35072echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
35073 else
35074 cat >>confdefs.h <<\_ACEOF
35075#define wxUSE_TIPWINDOW 1
35076_ACEOF
35077
35078 fi
35079fi
35080
35081if test "$USES_CONTROLS" = 1; then
35082 cat >>confdefs.h <<\_ACEOF
35083#define wxUSE_CONTROLS 1
35084_ACEOF
35085
35086fi
35087
35088
35089if test "$wxUSE_ACCESSIBILITY" = "yes"; then
35090 cat >>confdefs.h <<\_ACEOF
35091#define wxUSE_ACCESSIBILITY 1
35092_ACEOF
35093
35094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
35095fi
35096
35097if test "$wxUSE_DRAGIMAGE" = "yes"; then
35098 cat >>confdefs.h <<\_ACEOF
35099#define wxUSE_DRAGIMAGE 1
35100_ACEOF
35101
35102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
35103fi
35104
35105if test "$wxUSE_EXCEPTIONS" = "yes"; then
35106 cat >>confdefs.h <<\_ACEOF
35107#define wxUSE_EXCEPTIONS 1
35108_ACEOF
35109
35110fi
35111
35112USE_HTML=0
35113if test "$wxUSE_HTML" = "yes"; then
35114 cat >>confdefs.h <<\_ACEOF
35115#define wxUSE_HTML 1
35116_ACEOF
35117
35118 USE_HTML=1
35119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
35120 if test "$wxUSE_MAC" = 1; then
35121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
35122 fi
a848cd7e
SC
35123fi
35124
35125if test "$wxUSE_MENUS" = "yes"; then
35126 cat >>confdefs.h <<\_ACEOF
35127#define wxUSE_MENUS 1
35128_ACEOF
35129
35130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
35131fi
35132
35133if test "$wxUSE_METAFILE" = "yes"; then
35134 cat >>confdefs.h <<\_ACEOF
35135#define wxUSE_METAFILE 1
35136_ACEOF
35137
35138fi
35139
35140if test "$wxUSE_MIMETYPE" = "yes"; then
35141 cat >>confdefs.h <<\_ACEOF
35142#define wxUSE_MIMETYPE 1
35143_ACEOF
35144
35145fi
35146
35147if test "$wxUSE_MINIFRAME" = "yes"; then
35148 cat >>confdefs.h <<\_ACEOF
35149#define wxUSE_MINIFRAME 1
35150_ACEOF
35151
35152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
35153fi
35154
35155if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
35156 cat >>confdefs.h <<\_ACEOF
35157#define wxUSE_SYSTEM_OPTIONS 1
35158_ACEOF
35159
35160 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
35161 "$TOOLKIT" = "MOTIF"; then
35162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
35163 fi
35164fi
35165
35166
35167if test "$wxUSE_VALIDATORS" = "yes"; then
35168 cat >>confdefs.h <<\_ACEOF
35169#define wxUSE_VALIDATORS 1
35170_ACEOF
35171
35172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
35173fi
35174
35175if test "$wxUSE_PALETTE" = "yes" ; then
35176 cat >>confdefs.h <<\_ACEOF
35177#define wxUSE_PALETTE 1
35178_ACEOF
35179
35180fi
35181
35182if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
35183 LIBS=" -lunicows $LIBS"
35184fi
35185
35186
35187if test "$wxUSE_IMAGE" = "yes" ; then
35188 cat >>confdefs.h <<\_ACEOF
35189#define wxUSE_IMAGE 1
35190_ACEOF
35191
35192
35193 if test "$wxUSE_GIF" = "yes" ; then
35194 cat >>confdefs.h <<\_ACEOF
35195#define wxUSE_GIF 1
35196_ACEOF
35197
35198 fi
35199
35200 if test "$wxUSE_PCX" = "yes" ; then
35201 cat >>confdefs.h <<\_ACEOF
35202#define wxUSE_PCX 1
35203_ACEOF
35204
35205 fi
35206
35207 if test "$wxUSE_IFF" = "yes" ; then
35208 cat >>confdefs.h <<\_ACEOF
35209#define wxUSE_IFF 1
35210_ACEOF
35211
35212 fi
35213
35214 if test "$wxUSE_PNM" = "yes" ; then
35215 cat >>confdefs.h <<\_ACEOF
35216#define wxUSE_PNM 1
35217_ACEOF
35218
35219 fi
35220
35221 if test "$wxUSE_XPM" = "yes" ; then
35222 cat >>confdefs.h <<\_ACEOF
35223#define wxUSE_XPM 1
35224_ACEOF
35225
35226 fi
35227
35228 if test "$wxUSE_ICO_CUR" = "yes" ; then
35229 cat >>confdefs.h <<\_ACEOF
35230#define wxUSE_ICO_CUR 1
35231_ACEOF
35232
35233 fi
35234fi
35235
35236
35237if test "$wxUSE_CHOICEDLG" = "yes"; then
35238 cat >>confdefs.h <<\_ACEOF
35239#define wxUSE_CHOICEDLG 1
35240_ACEOF
35241
35242fi
35243
35244if test "$wxUSE_COLOURDLG" = "yes"; then
35245 cat >>confdefs.h <<\_ACEOF
35246#define wxUSE_COLOURDLG 1
35247_ACEOF
35248
35249fi
35250
35251if test "$wxUSE_FILEDLG" = "yes"; then
35252 cat >>confdefs.h <<\_ACEOF
35253#define wxUSE_FILEDLG 1
35254_ACEOF
35255
35256fi
35257
35258if test "$wxUSE_FINDREPLDLG" = "yes"; then
35259 cat >>confdefs.h <<\_ACEOF
35260#define wxUSE_FINDREPLDLG 1
35261_ACEOF
35262
35263fi
35264
35265if test "$wxUSE_FONTDLG" = "yes"; then
35266 cat >>confdefs.h <<\_ACEOF
35267#define wxUSE_FONTDLG 1
35268_ACEOF
35269
35270fi
35271
35272if test "$wxUSE_DIRDLG" = "yes"; then
35273 if test "$wxUSE_TREECTRL" != "yes"; then
35274 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
35275echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
35276 else
35277 cat >>confdefs.h <<\_ACEOF
35278#define wxUSE_DIRDLG 1
35279_ACEOF
35280
35281 fi
35282fi
35283
35284if test "$wxUSE_MSGDLG" = "yes"; then
35285 cat >>confdefs.h <<\_ACEOF
35286#define wxUSE_MSGDLG 1
35287_ACEOF
35288
35289fi
35290
35291if test "$wxUSE_NUMBERDLG" = "yes"; then
35292 cat >>confdefs.h <<\_ACEOF
35293#define wxUSE_NUMBERDLG 1
35294_ACEOF
35295
35296fi
35297
35298if test "$wxUSE_PROGRESSDLG" = "yes"; then
35299 if test "$wxUSE_CONSTRAINTS" != "yes"; then
35300 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
35301echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
35302 else
35303 cat >>confdefs.h <<\_ACEOF
35304#define wxUSE_PROGRESSDLG 1
35305_ACEOF
35306
35307 fi
35308fi
35309
35310if test "$wxUSE_SPLASH" = "yes"; then
35311 cat >>confdefs.h <<\_ACEOF
35312#define wxUSE_SPLASH 1
35313_ACEOF
35314
35315fi
35316
35317if test "$wxUSE_STARTUP_TIPS" = "yes"; then
35318 if test "$wxUSE_CONSTRAINTS" != "yes"; then
35319 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
35320echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
35321 else
35322 cat >>confdefs.h <<\_ACEOF
35323#define wxUSE_STARTUP_TIPS 1
35324_ACEOF
35325
35326 fi
35327fi
35328
35329if test "$wxUSE_TEXTDLG" = "yes"; then
35330 cat >>confdefs.h <<\_ACEOF
35331#define wxUSE_TEXTDLG 1
35332_ACEOF
35333
35334fi
35335
35336if test "$wxUSE_WIZARDDLG" = "yes"; then
35337 cat >>confdefs.h <<\_ACEOF
35338#define wxUSE_WIZARDDLG 1
35339_ACEOF
35340
35341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
35342fi
35343
35344
35345if test "$cross_compiling" = "yes"; then
35346 OSINFO="\"$host\""
35347else
35348 OSINFO=`uname -s -r -m`
35349 OSINFO="\"$OSINFO\""
35350fi
35351
35352cat >>confdefs.h <<_ACEOF
35353#define WXWIN_OS_DESCRIPTION $OSINFO
35354_ACEOF
35355
35356
35357
35358if test "x$prefix" != "xNONE"; then
35359 wxPREFIX=$prefix
35360else
35361 wxPREFIX=$ac_default_prefix
35362fi
35363
35364cat >>confdefs.h <<_ACEOF
35365#define wxINSTALL_PREFIX "$wxPREFIX"
35366_ACEOF
35367
35368
35369top_builddir_wxconfig=`pwd`
35370
35371
35372
35373CORE_BASE_LIBS="net base"
35374CORE_GUI_LIBS="adv core"
35375
35376if test "$wxUSE_XML" = "yes" ; then
35377 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
35378fi
35379if test "$wxUSE_ODBC" != "no" ; then
35380 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
35381 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
35382fi
35383if test "$wxUSE_HTML" = "yes" ; then
35384 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
35385fi
35386
35387if test "$wxUSE_GUI" != "yes"; then
35388 CORE_GUI_LIBS=""
35389fi
35390
35391
35392
35393
35394
35395
35396
35397
35398if test "$wxUSE_MAC" = 1 ; then
de59c161 35399 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework WebKit -framework System"
a848cd7e
SC
35400fi
35401if test "$wxUSE_COCOA" = 1 ; then
35402 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
35403fi
35404
35405
35406LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
35407
35408have_cos=0
35409have_floor=0
35410
35411for ac_func in cos
35412do
35413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35414echo "$as_me:$LINENO: checking for $ac_func" >&5
35415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35416if eval "test \"\${$as_ac_var+set}\" = set"; then
35417 echo $ECHO_N "(cached) $ECHO_C" >&6
35418else
35419 cat >conftest.$ac_ext <<_ACEOF
de59c161 35420#line $LINENO "configure"
a848cd7e
SC
35421/* confdefs.h. */
35422_ACEOF
35423cat confdefs.h >>conftest.$ac_ext
35424cat >>conftest.$ac_ext <<_ACEOF
35425/* end confdefs.h. */
a848cd7e
SC
35426/* System header to define __stub macros and hopefully few prototypes,
35427 which can conflict with char $ac_func (); below.
35428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35429 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
35430#ifdef __STDC__
35431# include <limits.h>
35432#else
35433# include <assert.h>
35434#endif
a848cd7e
SC
35435/* Override any gcc2 internal prototype to avoid an error. */
35436#ifdef __cplusplus
35437extern "C"
35438{
35439#endif
35440/* We use char because int might match the return type of a gcc2
35441 builtin and then its argument prototype would still apply. */
35442char $ac_func ();
35443/* The GNU C library defines this for functions which it implements
35444 to always fail with ENOSYS. Some functions are actually named
35445 something starting with __ and the normal name is an alias. */
35446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35447choke me
35448#else
35449char (*f) () = $ac_func;
35450#endif
35451#ifdef __cplusplus
35452}
35453#endif
35454
35455int
35456main ()
35457{
35458return f != $ac_func;
35459 ;
35460 return 0;
35461}
35462_ACEOF
35463rm -f conftest.$ac_objext conftest$ac_exeext
35464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 35465 (eval $ac_link) 2>&5
a848cd7e 35466 ac_status=$?
a848cd7e
SC
35467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468 (exit $ac_status); } &&
de59c161 35469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35471 (eval $ac_try) 2>&5
35472 ac_status=$?
35473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); }; }; then
35475 eval "$as_ac_var=yes"
35476else
35477 echo "$as_me: failed program was:" >&5
35478sed 's/^/| /' conftest.$ac_ext >&5
35479
35480eval "$as_ac_var=no"
35481fi
de59c161 35482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35483fi
35484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35486if test `eval echo '${'$as_ac_var'}'` = yes; then
35487 cat >>confdefs.h <<_ACEOF
35488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35489_ACEOF
35490 have_cos=1
35491fi
35492done
35493
35494
35495for ac_func in floor
35496do
35497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35498echo "$as_me:$LINENO: checking for $ac_func" >&5
35499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35500if eval "test \"\${$as_ac_var+set}\" = set"; then
35501 echo $ECHO_N "(cached) $ECHO_C" >&6
35502else
35503 cat >conftest.$ac_ext <<_ACEOF
de59c161 35504#line $LINENO "configure"
a848cd7e
SC
35505/* confdefs.h. */
35506_ACEOF
35507cat confdefs.h >>conftest.$ac_ext
35508cat >>conftest.$ac_ext <<_ACEOF
35509/* end confdefs.h. */
a848cd7e
SC
35510/* System header to define __stub macros and hopefully few prototypes,
35511 which can conflict with char $ac_func (); below.
35512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35513 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
35514#ifdef __STDC__
35515# include <limits.h>
35516#else
35517# include <assert.h>
35518#endif
a848cd7e
SC
35519/* Override any gcc2 internal prototype to avoid an error. */
35520#ifdef __cplusplus
35521extern "C"
35522{
35523#endif
35524/* We use char because int might match the return type of a gcc2
35525 builtin and then its argument prototype would still apply. */
35526char $ac_func ();
35527/* The GNU C library defines this for functions which it implements
35528 to always fail with ENOSYS. Some functions are actually named
35529 something starting with __ and the normal name is an alias. */
35530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35531choke me
35532#else
35533char (*f) () = $ac_func;
35534#endif
35535#ifdef __cplusplus
35536}
35537#endif
35538
35539int
35540main ()
35541{
35542return f != $ac_func;
35543 ;
35544 return 0;
35545}
35546_ACEOF
35547rm -f conftest.$ac_objext conftest$ac_exeext
35548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 35549 (eval $ac_link) 2>&5
a848cd7e 35550 ac_status=$?
a848cd7e
SC
35551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552 (exit $ac_status); } &&
de59c161 35553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35555 (eval $ac_try) 2>&5
35556 ac_status=$?
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); }; }; then
35559 eval "$as_ac_var=yes"
35560else
35561 echo "$as_me: failed program was:" >&5
35562sed 's/^/| /' conftest.$ac_ext >&5
35563
35564eval "$as_ac_var=no"
35565fi
de59c161 35566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35567fi
35568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35570if test `eval echo '${'$as_ac_var'}'` = yes; then
35571 cat >>confdefs.h <<_ACEOF
35572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35573_ACEOF
35574 have_floor=1
35575fi
35576done
35577
35578echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
35579echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
35580if test "$have_cos" = 1 -a "$have_floor" = 1; then
35581 echo "$as_me:$LINENO: result: yes" >&5
35582echo "${ECHO_T}yes" >&6
35583else
35584 echo "$as_me:$LINENO: result: no" >&5
35585echo "${ECHO_T}no" >&6
35586 LIBS="$LIBS -lm"
35587 # use different functions to avoid configure caching
35588 have_sin=0
35589 have_ceil=0
35590
35591for ac_func in sin
35592do
35593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35594echo "$as_me:$LINENO: checking for $ac_func" >&5
35595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35596if eval "test \"\${$as_ac_var+set}\" = set"; then
35597 echo $ECHO_N "(cached) $ECHO_C" >&6
35598else
35599 cat >conftest.$ac_ext <<_ACEOF
de59c161 35600#line $LINENO "configure"
a848cd7e
SC
35601/* confdefs.h. */
35602_ACEOF
35603cat confdefs.h >>conftest.$ac_ext
35604cat >>conftest.$ac_ext <<_ACEOF
35605/* end confdefs.h. */
a848cd7e
SC
35606/* System header to define __stub macros and hopefully few prototypes,
35607 which can conflict with char $ac_func (); below.
35608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35609 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
35610#ifdef __STDC__
35611# include <limits.h>
35612#else
35613# include <assert.h>
35614#endif
a848cd7e
SC
35615/* Override any gcc2 internal prototype to avoid an error. */
35616#ifdef __cplusplus
35617extern "C"
35618{
35619#endif
35620/* We use char because int might match the return type of a gcc2
35621 builtin and then its argument prototype would still apply. */
35622char $ac_func ();
35623/* The GNU C library defines this for functions which it implements
35624 to always fail with ENOSYS. Some functions are actually named
35625 something starting with __ and the normal name is an alias. */
35626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35627choke me
35628#else
35629char (*f) () = $ac_func;
35630#endif
35631#ifdef __cplusplus
35632}
35633#endif
35634
35635int
35636main ()
35637{
35638return f != $ac_func;
35639 ;
35640 return 0;
35641}
35642_ACEOF
35643rm -f conftest.$ac_objext conftest$ac_exeext
35644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 35645 (eval $ac_link) 2>&5
a848cd7e 35646 ac_status=$?
a848cd7e
SC
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } &&
de59c161 35649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35651 (eval $ac_try) 2>&5
35652 ac_status=$?
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); }; }; then
35655 eval "$as_ac_var=yes"
35656else
35657 echo "$as_me: failed program was:" >&5
35658sed 's/^/| /' conftest.$ac_ext >&5
35659
35660eval "$as_ac_var=no"
35661fi
de59c161 35662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35663fi
35664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35665echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35666if test `eval echo '${'$as_ac_var'}'` = yes; then
35667 cat >>confdefs.h <<_ACEOF
35668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35669_ACEOF
35670 have_sin=1
35671fi
35672done
35673
35674
35675for ac_func in ceil
35676do
35677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35678echo "$as_me:$LINENO: checking for $ac_func" >&5
35679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35680if eval "test \"\${$as_ac_var+set}\" = set"; then
35681 echo $ECHO_N "(cached) $ECHO_C" >&6
35682else
35683 cat >conftest.$ac_ext <<_ACEOF
de59c161 35684#line $LINENO "configure"
a848cd7e
SC
35685/* confdefs.h. */
35686_ACEOF
35687cat confdefs.h >>conftest.$ac_ext
35688cat >>conftest.$ac_ext <<_ACEOF
35689/* end confdefs.h. */
a848cd7e
SC
35690/* System header to define __stub macros and hopefully few prototypes,
35691 which can conflict with char $ac_func (); below.
35692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35693 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
35694#ifdef __STDC__
35695# include <limits.h>
35696#else
35697# include <assert.h>
35698#endif
a848cd7e
SC
35699/* Override any gcc2 internal prototype to avoid an error. */
35700#ifdef __cplusplus
35701extern "C"
35702{
35703#endif
35704/* We use char because int might match the return type of a gcc2
35705 builtin and then its argument prototype would still apply. */
35706char $ac_func ();
35707/* The GNU C library defines this for functions which it implements
35708 to always fail with ENOSYS. Some functions are actually named
35709 something starting with __ and the normal name is an alias. */
35710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35711choke me
35712#else
35713char (*f) () = $ac_func;
35714#endif
35715#ifdef __cplusplus
35716}
35717#endif
35718
35719int
35720main ()
35721{
35722return f != $ac_func;
35723 ;
35724 return 0;
35725}
35726_ACEOF
35727rm -f conftest.$ac_objext conftest$ac_exeext
35728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
de59c161 35729 (eval $ac_link) 2>&5
a848cd7e 35730 ac_status=$?
a848cd7e
SC
35731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732 (exit $ac_status); } &&
de59c161 35733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35735 (eval $ac_try) 2>&5
35736 ac_status=$?
35737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738 (exit $ac_status); }; }; then
35739 eval "$as_ac_var=yes"
35740else
35741 echo "$as_me: failed program was:" >&5
35742sed 's/^/| /' conftest.$ac_ext >&5
35743
35744eval "$as_ac_var=no"
35745fi
de59c161 35746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35747fi
35748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35750if test `eval echo '${'$as_ac_var'}'` = yes; then
35751 cat >>confdefs.h <<_ACEOF
35752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35753_ACEOF
35754 have_ceil=1
35755fi
35756done
35757
35758 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
35759echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
35760 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
35761 echo "$as_me:$LINENO: result: yes" >&5
35762echo "${ECHO_T}yes" >&6
35763 else
35764 echo "$as_me:$LINENO: result: no" >&5
35765echo "${ECHO_T}no" >&6
35766 # not sure we should warn the user, crash, etc.
35767 fi
35768fi
35769
35770if test "$wxUSE_GUI" = "yes"; then
35771
35772
35773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
35774 drawing dynamic erase event exec font image \
35775 minimal propsize rotate shaped widgets render"
35776
35777 if test "$wxUSE_MONOLITHIC" != "yes"; then
35778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
35779 fi
35780else
35781 SAMPLES_SUBDIRS="console"
35782fi
35783
35784
35785INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
35786-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
35787
35788if test "$GXX" = yes ; then
35789 CXXWARNINGS="-Wall"
35790 fi
35791
35792EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
35793
35794CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
35795CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
35796CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
35797
35798
35799LIBS=`echo $LIBS | sed 's/ \+/ /g'`
35800EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
35801EXTRALIBS_XML="$EXPAT_LINK"
35802EXTRALIBS_HTML="$MSPACK_LINK"
35803EXTRALIBS_ODBC="$ODBC_LINK"
35804if test "$wxUSE_GUI" = "yes"; then
35805 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
35806fi
35807if test "$wxUSE_OPENGL" = "yes"; then
35808 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
35809fi
35810
35811LDFLAGS="$LDFLAGS $PROFILE"
35812
35813if test "$wxUSE_GTK" = 1; then
35814 WXCONFIG_INCLUDE=
35815else
35816 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
35817fi
35818
35819WXCONFIG_EXTRALIBS="$LIBS"
35820
35821if test "$wxUSE_REGEX" = "builtin" ; then
35822 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
35823fi
35824if test "$wxUSE_EXPAT" = "builtin" ; then
35825 wxconfig_3rdparty="$wxconfig_3rdparty expat"
35826fi
35827if test "$wxUSE_ODBC" = "builtin" ; then
35828 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35829fi
35830if test "$wxUSE_LIBTIFF" = "builtin" ; then
35831 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
35832fi
35833if test "$wxUSE_LIBJPEG" = "builtin" ; then
35834 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
35835fi
35836if test "$wxUSE_LIBPNG" = "builtin" ; then
35837 wxconfig_3rdparty="$wxconfig_3rdparty png"
35838fi
35839if test "$wxUSE_ZLIB" = "builtin" ; then
35840 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
35841fi
35842if test "$wxUSE_ODBC" = "builtin" ; then
35843 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35844fi
35845
35846for i in $wxconfig_3rdparty ; do
35847 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
35848done
35849
35850
35851if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
35852 WXUNIV=1
35853else
35854 WXUNIV=0
35855fi
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865if test $wxUSE_MONOLITHIC = "yes" ; then
35866 MONOLITHIC=1
35867else
35868 MONOLITHIC=0
35869fi
35870
35871if test $wxUSE_PLUGINS = "yes" ; then
35872 USE_PLUGINS=1
35873else
35874 USE_PLUGINS=0
35875fi
35876
35877if test $wxUSE_ODBC != "no" ; then
35878 USE_ODBC=1
35879else
35880 USE_ODBC=0
35881fi
35882
35883if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
35884 OFFICIAL_BUILD=1
35885else
35886 OFFICIAL_BUILD=0
35887fi
35888
35889
35890
35891
35892
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919 if test "x$BAKEFILE_HOST" = "x"; then
35920 BAKEFILE_HOST="${host}"
35921 fi
35922
35923 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
35924
35925 if test -n "$ac_tool_prefix"; then
35926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
35927set dummy ${ac_tool_prefix}ranlib; ac_word=$2
35928echo "$as_me:$LINENO: checking for $ac_word" >&5
35929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35930if test "${ac_cv_prog_RANLIB+set}" = set; then
35931 echo $ECHO_N "(cached) $ECHO_C" >&6
35932else
35933 if test -n "$RANLIB"; then
35934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
35935else
35936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35937for as_dir in $PATH
35938do
35939 IFS=$as_save_IFS
35940 test -z "$as_dir" && as_dir=.
35941 for ac_exec_ext in '' $ac_executable_extensions; do
35942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
35944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35945 break 2
35946 fi
35947done
35948done
35949
35950fi
35951fi
35952RANLIB=$ac_cv_prog_RANLIB
35953if test -n "$RANLIB"; then
35954 echo "$as_me:$LINENO: result: $RANLIB" >&5
35955echo "${ECHO_T}$RANLIB" >&6
35956else
35957 echo "$as_me:$LINENO: result: no" >&5
35958echo "${ECHO_T}no" >&6
35959fi
35960
35961fi
35962if test -z "$ac_cv_prog_RANLIB"; then
35963 ac_ct_RANLIB=$RANLIB
35964 # Extract the first word of "ranlib", so it can be a program name with args.
35965set dummy ranlib; ac_word=$2
35966echo "$as_me:$LINENO: checking for $ac_word" >&5
35967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35968if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
35969 echo $ECHO_N "(cached) $ECHO_C" >&6
35970else
35971 if test -n "$ac_ct_RANLIB"; then
35972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
35973else
35974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35975for as_dir in $PATH
35976do
35977 IFS=$as_save_IFS
35978 test -z "$as_dir" && as_dir=.
35979 for ac_exec_ext in '' $ac_executable_extensions; do
35980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35981 ac_cv_prog_ac_ct_RANLIB="ranlib"
35982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35983 break 2
35984 fi
35985done
35986done
35987
35988 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
35989fi
35990fi
35991ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
35992if test -n "$ac_ct_RANLIB"; then
35993 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
35994echo "${ECHO_T}$ac_ct_RANLIB" >&6
35995else
35996 echo "$as_me:$LINENO: result: no" >&5
35997echo "${ECHO_T}no" >&6
35998fi
35999
36000 RANLIB=$ac_ct_RANLIB
36001else
36002 RANLIB="$ac_cv_prog_RANLIB"
36003fi
36004
36005 # Find a good install program. We prefer a C program (faster),
36006# so one script is as good as another. But avoid the broken or
36007# incompatible versions:
36008# SysV /etc/install, /usr/sbin/install
36009# SunOS /usr/etc/install
36010# IRIX /sbin/install
36011# AIX /bin/install
36012# AmigaOS /C/install, which installs bootblocks on floppy discs
36013# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
36014# AFS /usr/afsws/bin/install, which mishandles nonexistent args
36015# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a848cd7e
SC
36016# ./install, which can be erroneously created by make from ./install.sh.
36017echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
36018echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
36019if test -z "$INSTALL"; then
36020if test "${ac_cv_path_install+set}" = set; then
36021 echo $ECHO_N "(cached) $ECHO_C" >&6
36022else
36023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36024for as_dir in $PATH
36025do
36026 IFS=$as_save_IFS
36027 test -z "$as_dir" && as_dir=.
36028 # Account for people who put trailing slashes in PATH elements.
36029case $as_dir/ in
36030 ./ | .// | /cC/* | \
36031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a848cd7e
SC
36032 /usr/ucb/* ) ;;
36033 *)
36034 # OSF1 and SCO ODT 3.0 have their own names for install.
36035 # Don't use installbsd from OSF since it installs stuff as root
36036 # by default.
36037 for ac_prog in ginstall scoinst install; do
36038 for ac_exec_ext in '' $ac_executable_extensions; do
de59c161
RD
36039 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
36040 if test $ac_prog = install &&
36041 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36042 # AIX install. It has an incompatible calling convention.
36043 :
36044 elif test $ac_prog = install &&
36045 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36046 # program-specific install script used by HP pwplus--don't use.
36047 :
36048 else
36049 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
36050 break 3
36051 fi
36052 fi
a848cd7e
SC
36053 done
36054 done
36055 ;;
36056esac
36057done
36058
36059
36060fi
36061 if test "${ac_cv_path_install+set}" = set; then
36062 INSTALL=$ac_cv_path_install
36063 else
36064 # As a last resort, use the slow shell script. We don't cache a
36065 # path for INSTALL within a source directory, because that will
36066 # break other packages using the cache if that directory is
36067 # removed, or if the path is relative.
36068 INSTALL=$ac_install_sh
36069 fi
36070fi
36071echo "$as_me:$LINENO: result: $INSTALL" >&5
36072echo "${ECHO_T}$INSTALL" >&6
36073
36074# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36075# It thinks the first close brace ends the variable substitution.
36076test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36077
36078test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36079
36080test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36081
36082 echo "$as_me:$LINENO: checking whether ln -s works" >&5
36083echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
36084LN_S=$as_ln_s
36085if test "$LN_S" = "ln -s"; then
36086 echo "$as_me:$LINENO: result: yes" >&5
36087echo "${ECHO_T}yes" >&6
36088else
36089 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
36090echo "${ECHO_T}no, using $LN_S" >&6
36091fi
36092
36093
36094 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
36095echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
de59c161 36096set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
a848cd7e
SC
36097if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
36098 echo $ECHO_N "(cached) $ECHO_C" >&6
36099else
36100 cat >conftest.make <<\_ACEOF
36101all:
36102 @echo 'ac_maketemp="$(MAKE)"'
36103_ACEOF
36104# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
36105eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
36106if test -n "$ac_maketemp"; then
36107 eval ac_cv_prog_make_${ac_make}_set=yes
36108else
36109 eval ac_cv_prog_make_${ac_make}_set=no
36110fi
36111rm -f conftest.make
36112fi
36113if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
36114 echo "$as_me:$LINENO: result: yes" >&5
36115echo "${ECHO_T}yes" >&6
36116 SET_MAKE=
36117else
36118 echo "$as_me:$LINENO: result: no" >&5
36119echo "${ECHO_T}no" >&6
36120 SET_MAKE="MAKE=${MAKE-make}"
36121fi
36122
36123
36124
36125 if test -n "$ac_tool_prefix"; then
36126 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
36127set dummy ${ac_tool_prefix}ar; ac_word=$2
36128echo "$as_me:$LINENO: checking for $ac_word" >&5
36129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36130if test "${ac_cv_prog_AR+set}" = set; then
36131 echo $ECHO_N "(cached) $ECHO_C" >&6
36132else
36133 if test -n "$AR"; then
36134 ac_cv_prog_AR="$AR" # Let the user override the test.
36135else
36136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36137for as_dir in $PATH
36138do
36139 IFS=$as_save_IFS
36140 test -z "$as_dir" && as_dir=.
36141 for ac_exec_ext in '' $ac_executable_extensions; do
36142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36143 ac_cv_prog_AR="${ac_tool_prefix}ar"
36144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36145 break 2
36146 fi
36147done
36148done
36149
36150fi
36151fi
36152AR=$ac_cv_prog_AR
36153if test -n "$AR"; then
36154 echo "$as_me:$LINENO: result: $AR" >&5
36155echo "${ECHO_T}$AR" >&6
36156else
36157 echo "$as_me:$LINENO: result: no" >&5
36158echo "${ECHO_T}no" >&6
36159fi
36160
36161fi
36162if test -z "$ac_cv_prog_AR"; then
36163 ac_ct_AR=$AR
36164 # Extract the first word of "ar", so it can be a program name with args.
36165set dummy ar; ac_word=$2
36166echo "$as_me:$LINENO: checking for $ac_word" >&5
36167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36168if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
36169 echo $ECHO_N "(cached) $ECHO_C" >&6
36170else
36171 if test -n "$ac_ct_AR"; then
36172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36173else
36174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36175for as_dir in $PATH
36176do
36177 IFS=$as_save_IFS
36178 test -z "$as_dir" && as_dir=.
36179 for ac_exec_ext in '' $ac_executable_extensions; do
36180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36181 ac_cv_prog_ac_ct_AR="ar"
36182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36183 break 2
36184 fi
36185done
36186done
36187
36188 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
36189fi
36190fi
36191ac_ct_AR=$ac_cv_prog_ac_ct_AR
36192if test -n "$ac_ct_AR"; then
36193 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
36194echo "${ECHO_T}$ac_ct_AR" >&6
36195else
36196 echo "$as_me:$LINENO: result: no" >&5
36197echo "${ECHO_T}no" >&6
36198fi
36199
36200 AR=$ac_ct_AR
36201else
36202 AR="$ac_cv_prog_AR"
36203fi
36204
36205 if test -n "$ac_tool_prefix"; then
36206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
36207set dummy ${ac_tool_prefix}strip; ac_word=$2
36208echo "$as_me:$LINENO: checking for $ac_word" >&5
36209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36210if test "${ac_cv_prog_STRIP+set}" = set; then
36211 echo $ECHO_N "(cached) $ECHO_C" >&6
36212else
36213 if test -n "$STRIP"; then
36214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
36215else
36216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36217for as_dir in $PATH
36218do
36219 IFS=$as_save_IFS
36220 test -z "$as_dir" && as_dir=.
36221 for ac_exec_ext in '' $ac_executable_extensions; do
36222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36223 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
36224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36225 break 2
36226 fi
36227done
36228done
36229
36230fi
36231fi
36232STRIP=$ac_cv_prog_STRIP
36233if test -n "$STRIP"; then
36234 echo "$as_me:$LINENO: result: $STRIP" >&5
36235echo "${ECHO_T}$STRIP" >&6
36236else
36237 echo "$as_me:$LINENO: result: no" >&5
36238echo "${ECHO_T}no" >&6
36239fi
36240
36241fi
36242if test -z "$ac_cv_prog_STRIP"; then
36243 ac_ct_STRIP=$STRIP
36244 # Extract the first word of "strip", so it can be a program name with args.
36245set dummy strip; ac_word=$2
36246echo "$as_me:$LINENO: checking for $ac_word" >&5
36247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36248if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
36249 echo $ECHO_N "(cached) $ECHO_C" >&6
36250else
36251 if test -n "$ac_ct_STRIP"; then
36252 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
36253else
36254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36255for as_dir in $PATH
36256do
36257 IFS=$as_save_IFS
36258 test -z "$as_dir" && as_dir=.
36259 for ac_exec_ext in '' $ac_executable_extensions; do
36260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36261 ac_cv_prog_ac_ct_STRIP="strip"
36262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36263 break 2
36264 fi
36265done
36266done
36267
36268 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
36269fi
36270fi
36271ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
36272if test -n "$ac_ct_STRIP"; then
36273 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
36274echo "${ECHO_T}$ac_ct_STRIP" >&6
36275else
36276 echo "$as_me:$LINENO: result: no" >&5
36277echo "${ECHO_T}no" >&6
36278fi
36279
36280 STRIP=$ac_ct_STRIP
36281else
36282 STRIP="$ac_cv_prog_STRIP"
36283fi
36284
36285 if test -n "$ac_tool_prefix"; then
36286 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
36287set dummy ${ac_tool_prefix}nm; ac_word=$2
36288echo "$as_me:$LINENO: checking for $ac_word" >&5
36289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36290if test "${ac_cv_prog_NM+set}" = set; then
36291 echo $ECHO_N "(cached) $ECHO_C" >&6
36292else
36293 if test -n "$NM"; then
36294 ac_cv_prog_NM="$NM" # Let the user override the test.
36295else
36296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36297for as_dir in $PATH
36298do
36299 IFS=$as_save_IFS
36300 test -z "$as_dir" && as_dir=.
36301 for ac_exec_ext in '' $ac_executable_extensions; do
36302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36303 ac_cv_prog_NM="${ac_tool_prefix}nm"
36304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36305 break 2
36306 fi
36307done
36308done
36309
36310fi
36311fi
36312NM=$ac_cv_prog_NM
36313if test -n "$NM"; then
36314 echo "$as_me:$LINENO: result: $NM" >&5
36315echo "${ECHO_T}$NM" >&6
36316else
36317 echo "$as_me:$LINENO: result: no" >&5
36318echo "${ECHO_T}no" >&6
36319fi
36320
36321fi
36322if test -z "$ac_cv_prog_NM"; then
36323 ac_ct_NM=$NM
36324 # Extract the first word of "nm", so it can be a program name with args.
36325set dummy nm; ac_word=$2
36326echo "$as_me:$LINENO: checking for $ac_word" >&5
36327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36328if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
36329 echo $ECHO_N "(cached) $ECHO_C" >&6
36330else
36331 if test -n "$ac_ct_NM"; then
36332 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
36333else
36334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36335for as_dir in $PATH
36336do
36337 IFS=$as_save_IFS
36338 test -z "$as_dir" && as_dir=.
36339 for ac_exec_ext in '' $ac_executable_extensions; do
36340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36341 ac_cv_prog_ac_ct_NM="nm"
36342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36343 break 2
36344 fi
36345done
36346done
36347
36348 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
36349fi
36350fi
36351ac_ct_NM=$ac_cv_prog_ac_ct_NM
36352if test -n "$ac_ct_NM"; then
36353 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
36354echo "${ECHO_T}$ac_ct_NM" >&6
36355else
36356 echo "$as_me:$LINENO: result: no" >&5
36357echo "${ECHO_T}no" >&6
36358fi
36359
36360 NM=$ac_ct_NM
36361else
36362 NM="$ac_cv_prog_NM"
36363fi
36364
36365
36366 case ${BAKEFILE_HOST} in
36367 *-hp-hpux* )
36368 INSTALL_DIR="mkdir"
36369 ;;
36370 *) INSTALL_DIR="$INSTALL -d"
36371 ;;
36372 esac
36373
36374
36375 LDFLAGS_GUI=
36376 case ${BAKEFILE_HOST} in
36377 *-*-cygwin* | *-*-mingw32* )
36378 LDFLAGS_GUI="-mwindows"
36379 esac
36380
36381
36382 fi
36383
36384 echo "$as_me:$LINENO: checking if make is GNU make" >&5
36385echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
36386if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
36387 echo $ECHO_N "(cached) $ECHO_C" >&6
36388else
36389
36390 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
36391 egrep -s GNU > /dev/null); then
36392 bakefile_cv_prog_makeisgnu="yes"
36393 else
36394 bakefile_cv_prog_makeisgnu="no"
36395 fi
36396
36397fi
36398echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
36399echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
36400
36401 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
36402 IF_GNU_MAKE=""
36403 else
36404 IF_GNU_MAKE="#"
36405 fi
36406
36407
36408
36409 PLATFORM_UNIX=0
36410 PLATFORM_WIN32=0
36411 PLATFORM_MSDOS=0
36412 PLATFORM_MAC=0
36413 PLATFORM_MACOSX=0
36414 PLATFORM_OS2=0
36415
36416 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
36417 case "${BAKEFILE_HOST}" in
36418 *-*-cygwin* | *-*-mingw32* )
36419 PLATFORM_WIN32=1
36420 ;;
36421 *-pc-msdosdjgpp )
36422 PLATFORM_MSDOS=1
36423 ;;
36424 *-pc-os2_emx | *-pc-os2-emx )
36425 PLATFORM_OS2=1
36426 ;;
36427 powerpc-*-darwin* )
36428 PLATFORM_MAC=1
36429 PLATFORM_MACOSX=1
36430 ;;
36431 * )
36432 PLATFORM_UNIX=1
36433 ;;
36434 esac
36435 else
36436 case "$BAKEFILE_FORCE_PLATFORM" in
36437 win32 )
36438 PLATFORM_WIN32=1
36439 ;;
36440 msdos )
36441 PLATFORM_MSDOS=1
36442 ;;
36443 os2 )
36444 PLATFORM_OS2=1
36445 ;;
36446 darwin )
36447 PLATFORM_MAC=1
36448 PLATFORM_MACOSX=1
36449 ;;
36450 unix )
36451 PLATFORM_UNIX=1
36452 ;;
36453 * )
36454 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
36455echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
36456 { (exit 1); exit 1; }; }
36457 ;;
36458 esac
36459 fi
36460
36461
36462
36463
36464
36465
36466
36467
36468
36469 # Check whether --enable-omf or --disable-omf was given.
36470if test "${enable_omf+set}" = set; then
36471 enableval="$enable_omf"
36472 bk_os2_use_omf="$enableval"
36473fi;
36474
36475 case "${BAKEFILE_HOST}" in
36476 *-*-darwin* )
36477 CFLAGS="$CFLAGS -fno-common"
36478 CXXFLAGS="$CXXFLAGS -fno-common"
36479 ;;
36480
36481 *-pc-os2_emx | *-pc-os2-emx )
36482 if test "x$bk_os2_use_omf" = "xyes" ; then
36483 AR=emxomfar
36484 RANLIB=:
36485 LDFLAGS="-Zomf $LDFLAGS"
36486 CFLAGS="-Zomf $CFLAGS"
36487 CXXFLAGS="-Zomf $CXXFLAGS"
36488 OS2_LIBEXT="lib"
36489 else
36490 OS2_LIBEXT="a"
36491 fi
36492 ;;
36493 esac
36494
36495
36496 SO_SUFFIX="so"
36497 SO_SUFFIX_MODULE="so"
36498 EXEEXT=""
36499 LIBPREFIX="lib"
36500 LIBEXT=".a"
36501 DLLPREFIX="lib"
36502 DLLPREFIX_MODULE=""
36503 DLLIMP_SUFFIX=""
36504
36505 case "${BAKEFILE_HOST}" in
36506 *-hp-hpux* )
36507 SO_SUFFIX="sl"
36508 SO_SUFFIX_MODULE="sl"
36509 ;;
36510 *-*-aix* )
36511 SO_SUFFIX="a"
36512 SO_SUFFIX_MODULE="a"
36513 ;;
36514 *-*-cygwin* | *-*-mingw32* )
36515 SO_SUFFIX="dll"
36516 SO_SUFFIX_MODULE="dll"
36517 DLLIMP_SUFFIX="dll.a"
36518 EXEEXT=".exe"
36519 DLLPREFIX=""
36520 ;;
36521 *-pc-msdosdjgpp )
36522 EXEEXT=".exe"
36523 DLLPREFIX=""
36524 ;;
36525 *-pc-os2_emx | *-pc-os2-emx )
36526 SO_SUFFIX="dll"
36527 SO_SUFFIX_MODULE="dll"
36528 DLLIMP_SUFFIX=$OS2_LIBEXT
36529 EXEEXT=".exe"
36530 DLLPREFIX=""
36531 LIBPREFIX=""
36532 LIBEXT=".$OS2_LIBEXT"
36533 ;;
36534 powerpc-*-darwin* )
36535 SO_SUFFIX="dylib"
36536 SO_SUFFIX_MODULE="bundle"
36537 ;;
36538 esac
36539
36540 if test "x$DLLIMP_SUFFIX" = "x" ; then
36541 DLLIMP_SUFFIX="$SO_SUFFIX"
36542 fi
36543
36544
36545
36546
36547
36548
36549
36550
36551
36552
36553
36554 SHARED_LD_CC="\$(CC) -shared -o"
36555 SHARED_LD_CXX="\$(CXX) -shared -o"
36556
36557 if test "x$GCC" = "xyes"; then
36558 PIC_FLAG="-fPIC"
36559 fi
36560
36561 case "${BAKEFILE_HOST}" in
36562 *-hp-hpux* )
36563 if test "x$GCC" = "xyes"; then
36564 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
36565 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
36566 else
36567 LDFLAGS="$LDFLAGS -L/usr/lib"
36568
36569 SHARED_LD_CC="${CC} -b -o"
36570 SHARED_LD_CXX="${CXX} -b -o"
36571 PIC_FLAG="+Z"
36572 fi
36573 ;;
36574
36575 *-*-linux* )
36576 if test "x$GCC" != "xyes"; then
36577 echo "$as_me:$LINENO: checking for Intel compiler" >&5
36578echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
36579if test "${bakefile_cv_prog_icc+set}" = set; then
36580 echo $ECHO_N "(cached) $ECHO_C" >&6
36581else
36582
36583 cat >conftest.$ac_ext <<_ACEOF
de59c161 36584#line $LINENO "configure"
a848cd7e
SC
36585/* confdefs.h. */
36586_ACEOF
36587cat confdefs.h >>conftest.$ac_ext
36588cat >>conftest.$ac_ext <<_ACEOF
36589/* end confdefs.h. */
36590
36591int
36592main ()
36593{
36594
36595 #ifndef __INTEL_COMPILER
36596 #error Not icc
36597 #endif
36598
36599 ;
36600 return 0;
36601}
36602_ACEOF
36603rm -f conftest.$ac_objext
36604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 36605 (eval $ac_compile) 2>&5
a848cd7e 36606 ac_status=$?
a848cd7e
SC
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); } &&
de59c161 36609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36611 (eval $ac_try) 2>&5
36612 ac_status=$?
36613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614 (exit $ac_status); }; }; then
36615 bakefile_cv_prog_icc=yes
36616else
36617 echo "$as_me: failed program was:" >&5
36618sed 's/^/| /' conftest.$ac_ext >&5
36619
36620bakefile_cv_prog_icc=no
36621
36622fi
de59c161 36623rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36624
36625fi
36626echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
36627echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
36628 if test "$bakefile_cv_prog_icc" = "yes"; then
36629 PIC_FLAG="-KPIC"
36630 fi
36631 fi
36632 ;;
36633
36634 *-*-solaris2* )
36635 if test "x$GCC" != xyes ; then
36636 SHARED_LD_CC="${CC} -G -o"
36637 SHARED_LD_CXX="${CXX} -G -o"
36638 PIC_FLAG="-KPIC"
36639 fi
36640 ;;
36641
36642 *-*-darwin* )
36643
36644 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
36645echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
36646if test "${wx_cv_gcc31+set}" = set; then
36647 echo $ECHO_N "(cached) $ECHO_C" >&6
36648else
36649
36650 cat >conftest.$ac_ext <<_ACEOF
de59c161 36651#line $LINENO "configure"
a848cd7e
SC
36652/* confdefs.h. */
36653_ACEOF
36654cat confdefs.h >>conftest.$ac_ext
36655cat >>conftest.$ac_ext <<_ACEOF
36656/* end confdefs.h. */
36657
36658int
36659main ()
36660{
36661
36662 #if (__GNUC__ < 3) || \
36663 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
36664 #error old gcc
36665 #endif
36666
36667 ;
36668 return 0;
36669}
36670_ACEOF
36671rm -f conftest.$ac_objext
36672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 36673 (eval $ac_compile) 2>&5
a848cd7e 36674 ac_status=$?
a848cd7e
SC
36675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676 (exit $ac_status); } &&
de59c161 36677 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36679 (eval $ac_try) 2>&5
36680 ac_status=$?
36681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682 (exit $ac_status); }; }; then
36683
36684 wx_cv_gcc31=yes
36685
36686else
36687 echo "$as_me: failed program was:" >&5
36688sed 's/^/| /' conftest.$ac_ext >&5
36689
36690
36691 wx_cv_gcc31=no
36692
36693
36694fi
de59c161 36695rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36696
36697fi
36698echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
36699echo "${ECHO_T}$wx_cv_gcc31" >&6
36700 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
36701
36702D='$'
36703cat <<EOF >shared-ld-sh
a848cd7e
SC
36704#!/bin/sh
36705#-----------------------------------------------------------------------------
36706#-- Name: distrib/mac/shared-ld-sh
36707#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
36708#-- Author: Gilles Depeyrot
36709#-- Copyright: (c) 2002 Gilles Depeyrot
36710#-- Licence: any use permitted
36711#-----------------------------------------------------------------------------
36712
36713verbose=0
36714args=""
36715objects=""
36716linking_flag="-dynamiclib"
36717
473276a9
VS
36718while test ${D}# -gt 0; do
36719 case ${D}1 in
a848cd7e
SC
36720
36721 -v)
36722 verbose=1
36723 ;;
36724
36725 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
36726 # collect these options and values
473276a9 36727 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
36728 shift
36729 ;;
36730
36731 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
36732 # collect these options
473276a9 36733 args="${D}{args} ${D}1"
a848cd7e
SC
36734 ;;
36735
36736 -dynamiclib|-bundle)
473276a9 36737 linking_flag="${D}1"
a848cd7e
SC
36738 ;;
36739
36740 -*)
473276a9 36741 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
36742 exit 1
36743 ;;
36744
36745 *.o | *.a | *.dylib)
36746 # collect object files
473276a9 36747 objects="${D}{objects} ${D}1"
a848cd7e
SC
36748 ;;
36749
36750 *)
473276a9 36751 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
36752 exit 1
36753 ;;
36754
36755 esac
36756 shift
36757done
36758
36759#
36760# Link one module containing all the others
36761#
473276a9
VS
36762if test ${D}{verbose} = 1; then
36763 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 36764fi
473276a9
VS
36765c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
36766status=${D}?
36767if test ${D}{status} != 0; then
36768 exit ${D}{status}
a848cd7e
SC
36769fi
36770
36771#
36772# Link the shared library from the single module created
36773#
473276a9
VS
36774if test ${D}{verbose} = 1; then
36775 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 36776fi
473276a9
VS
36777c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
36778status=${D}?
36779if test ${D}{status} != 0; then
36780 exit ${D}{status}
a848cd7e
SC
36781fi
36782
36783#
36784# Remove intermediate module
36785#
473276a9 36786rm -f master.${D}${D}.o
a848cd7e
SC
36787
36788exit 0
36789EOF
473276a9 36790
a848cd7e
SC
36791 chmod +x shared-ld-sh
36792
36793 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
36794 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
36795 SHARED_LD_CXX="$SHARED_LD_CC"
36796 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
36797 else
36798 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
36799 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
36800 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
36801 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
36802 fi
36803
36804 PIC_FLAG="-dynamic -fPIC"
36805 ;;
36806
36807 *-*-aix* )
36808 if test "x$GCC" != "xyes"; then
36809 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
36810set dummy makeC++SharedLib; ac_word=$2
36811echo "$as_me:$LINENO: checking for $ac_word" >&5
36812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36813if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
36814 echo $ECHO_N "(cached) $ECHO_C" >&6
36815else
36816 if test -n "$AIX_CXX_LD"; then
36817 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
36818else
36819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36820for as_dir in $PATH
36821do
36822 IFS=$as_save_IFS
36823 test -z "$as_dir" && as_dir=.
36824 for ac_exec_ext in '' $ac_executable_extensions; do
36825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36826 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
36827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36828 break 2
36829 fi
36830done
36831done
36832
36833 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
36834fi
36835fi
36836AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
36837if test -n "$AIX_CXX_LD"; then
36838 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
36839echo "${ECHO_T}$AIX_CXX_LD" >&6
36840else
36841 echo "$as_me:$LINENO: result: no" >&5
36842echo "${ECHO_T}no" >&6
36843fi
36844
36845 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
36846 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
36847 fi
36848 ;;
36849
36850 *-*-beos* )
36851 SHARED_LD_CC="${LD} -shared -o"
36852 SHARED_LD_CXX="${LD} -shared -o"
36853 ;;
36854
36855 *-*-irix* )
36856 if test "x$GCC" != "xyes"; then
36857 PIC_FLAG="-KPIC"
36858 fi
36859 ;;
36860
36861 *-*-cygwin* | *-*-mingw32* )
36862 PIC_FLAG=""
36863 ;;
36864
36865 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
36866 SHARED_LD_CC="`pwd`/dllar.sh -o"
36867 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 36868 PIC_FLAG=""
473276a9
VS
36869
36870D='$'
36871cat <<EOF >dllar.sh
36872#!/bin/sh
36873#
36874# dllar - a tool to build both a .dll and an .a file
36875# from a set of object (.o) files for EMX/OS2.
36876#
36877# Written by Andrew Zabolotny, bit@freya.etu.ru
36878# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
36879#
36880# This script will accept a set of files on the command line.
36881# All the public symbols from the .o files will be exported into
36882# a .DEF file, then linker will be run (through gcc) against them to
36883# build a shared library consisting of all given .o files. All libraries
36884# (.a) will be first decompressed into component .o files then act as
36885# described above. You can optionally give a description (-d "description")
36886# which will be put into .DLL. To see the list of accepted options (as well
36887# as command-line format) simply run this program without options. The .DLL
36888# is built to be imported by name (there is no guarantee that new versions
36889# of the library you build will have same ordinals for same symbols).
36890#
36891# dllar is free software; you can redistribute it and/or modify
36892# it under the terms of the GNU General Public License as published by
36893# the Free Software Foundation; either version 2, or (at your option)
36894# any later version.
36895#
36896# dllar is distributed in the hope that it will be useful,
36897# but WITHOUT ANY WARRANTY; without even the implied warranty of
36898# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36899# GNU General Public License for more details.
36900#
36901# You should have received a copy of the GNU General Public License
36902# along with dllar; see the file COPYING. If not, write to the Free
36903# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
36904# 02111-1307, USA.
36905
36906# To successfuly run this program you will need:
36907# - Current drive should have LFN support (HPFS, ext2, network, etc)
36908# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
36909# - gcc
36910# (used to build the .dll)
36911# - emxexp
36912# (used to create .def file from .o files)
36913# - emximp
36914# (used to create .a file from .def file)
36915# - GNU text utilites (cat, sort, uniq)
36916# used to process emxexp output
36917# - GNU file utilities (mv, rm)
36918# - GNU sed
36919# - lxlite (optional, see flag below)
36920# (used for general .dll cleanup)
36921#
36922
36923flag_USE_LXLITE=1;
36924
36925#
36926# helper functions
36927# basnam, variant of basename, which does _not_ remove the path, _iff_
36928# second argument (suffix to remove) is given
36929basnam(){
36930 case ${D}# in
36931 1)
36932 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
36933 ;;
36934 2)
36935 echo ${D}1 | sed 's/'${D}2'${D}//'
36936 ;;
36937 *)
36938 echo "error in basnam ${D}*"
36939 exit 8
36940 ;;
36941 esac
36942}
36943
36944# Cleanup temporary files and output
36945CleanUp() {
36946 cd ${D}curDir
36947 for i in ${D}inputFiles ; do
36948 case ${D}i in
36949 *!)
36950 rm -rf \`basnam ${D}i !\`
36951 ;;
36952 *)
36953 ;;
36954 esac
36955 done
36956
36957 # Kill result in case of failure as there is just to many stupid make/nmake
36958 # things out there which doesn't do this.
36959 if ${D}# -eq 0 ; then
36960 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
36961 fi
36962}
36963
36964# Print usage and exit script with rc=1.
36965PrintHelp() {
36966 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
36967 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
36968 echo ' -ord[inals] -exclude "symbol(s)"'
36969 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
36970 echo ' *.o *.a'
36971 echo '*> "output_file" should have no extension.'
36972 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
36973 echo ' The import library name is derived from this and is set to "name".a,'
36974 echo ' unless overridden by -import'
36975 echo '*> "importlib_name" should have no extension.'
36976 echo ' If it has the .o, or .a extension, it is automatically removed.'
36977 echo ' This name is used as the import library name and may be longer and'
36978 echo ' more descriptive than the DLL name which has to follow the old '
36979 echo ' 8.3 convention of FAT.'
36980 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
36981 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
36982 echo ' These flags will be put at the start of GCC command line.'
36983 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
36984 echo '*> -exclude defines symbols which will not be exported. You can define'
36985 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
36986 echo ' If the last character of a symbol is "*", all symbols beginning'
36987 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
36988 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
36989 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
36990 echo '*> -nocrtdll switch will disable linking the library against emx''s'
36991 echo ' C runtime DLLs.'
36992 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
36993 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
36994 echo ' unchanged to GCC at the end of command line.'
36995 echo '*> If you create a DLL from a library and you do not specify -o,'
36996 echo ' the basename for DLL and import library will be set to library name,'
36997 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
36998 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
36999 echo ' library will be renamed into gcc_s.a.'
37000 echo '--------'
37001 echo 'Example:'
37002 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
37003 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
37004 CleanUp
37005 exit 1
37006}
37007
37008# Execute a command.
37009# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
37010# @Uses Whatever CleanUp() uses.
37011doCommand() {
37012 echo "${D}*"
37013 eval ${D}*
37014 rcCmd=${D}?
37015
37016 if ${D}rcCmd -ne 0 ; then
37017 echo "command failed, exit code="${D}rcCmd
37018 CleanUp
37019 exit ${D}rcCmd
37020 fi
37021}
37022
37023# main routine
37024# setup globals
37025cmdLine=${D}*
37026outFile=""
37027outimpFile=""
37028inputFiles=""
37029description=""
37030CC=gcc.exe
37031CFLAGS="-s -Zcrtdll"
37032EXTRA_CFLAGS=""
37033EXPORT_BY_ORDINALS=0
37034exclude_symbols=""
37035library_flags=""
37036curDir=\`pwd\`
37037curDirS=curDir
37038case ${D}curDirS in
37039*/)
37040 ;;
37041*)
37042 curDirS=${D}{curDirS}"/"
37043 ;;
37044esac
37045# Parse commandline
37046libsToLink=0
37047while ${D}1 ; do
37048 case ${D}1 in
37049 -ord*)
37050 EXPORT_BY_ORDINALS=1;
37051 ;;
37052 -o*)
37053 shift
37054 outFile=${D}1
37055 ;;
37056 -i*)
37057 shift
37058 outimpFile=${D}1
37059 ;;
37060 -d*)
37061 shift
37062 description=${D}1
37063 ;;
37064 -f*)
37065 shift
37066 CFLAGS=${D}1
37067 ;;
37068 -c*)
37069 shift
37070 CC=${D}1
37071 ;;
37072 -h*)
37073 PrintHelp
37074 ;;
37075 -ex*)
37076 shift
37077 exclude_symbols=${D}{exclude_symbols}${D}1" "
37078 ;;
37079 -libf*)
37080 shift
37081 library_flags=${D}{library_flags}${D}1" "
37082 ;;
37083 -nocrt*)
37084 CFLAGS="-s"
37085 ;;
37086 -nolxl*)
37087 flag_USE_LXLITE=0
37088 ;;
37089 -* | /*)
37090 case ${D}1 in
37091 -L* | -l*)
37092 libsToLink=1
37093 ;;
37094 *)
37095 ;;
37096 esac
37097 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
37098 ;;
37099 *)
37100 found=0;
37101 if ${D}libsToLink -ne 0 ; then
37102 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
37103 else
37104 for file in ${D}1 ; do
37105 if -f ${D}file ; then
37106 inputFiles="${D}{inputFiles} ${D}file"
37107 found=1
37108 fi
37109 done
37110 if ${D}found -eq 0 ; then
37111 echo "ERROR: No file(s) found: "${D}1
37112 exit 8
37113 fi
37114 fi
37115 ;;
37116 esac
37117 shift
37118done # iterate cmdline words
37119
37120#
37121if -z "${D}inputFiles" ; then
37122 echo "dllar: no input files"
37123 PrintHelp
37124fi
37125
37126# Now extract all .o files from .a files
37127newInputFiles=""
37128for file in ${D}inputFiles ; do
37129 case ${D}file in
37130 *.a | *.lib)
37131 case ${D}file in
37132 *.a)
37133 suffix=".a"
37134 AR="ar"
37135 ;;
37136 *.lib)
37137 suffix=".lib"
37138 AR="emxomfar"
37139 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
37140 ;;
37141 *)
37142 ;;
37143 esac
37144 dirname=\`basnam ${D}file ${D}suffix\`"_%"
37145 mkdir ${D}dirname
37146 if ${D}? -ne 0 ; then
37147 echo "Failed to create subdirectory ./${D}dirname"
37148 CleanUp
37149 exit 8;
37150 fi
37151 # Append '!' to indicate archive
37152 newInputFiles="${D}newInputFiles ${D}{dirname}!"
37153 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
37154 cd ${D}curDir
37155 found=0;
37156 for subfile in ${D}dirname/*.o* ; do
37157 if -f ${D}subfile ; then
37158 found=1
37159 if -s ${D}subfile ; then
37160 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
37161 newInputFiles="${D}newInputFiles ${D}subfile"
37162 fi
37163 fi
37164 done
37165 if ${D}found -eq 0 ; then
37166 echo "WARNING: there are no files in archive \'${D}file\'"
37167 fi
37168 ;;
37169 *)
37170 newInputFiles="${D}{newInputFiles} ${D}file"
37171 ;;
37172 esac
37173done
37174inputFiles="${D}newInputFiles"
37175
37176# Output filename(s).
37177do_backup=0;
37178if -z ${D}outFile ; then
37179 do_backup=1;
37180 set outFile ${D}inputFiles; outFile=${D}2
37181fi
37182
37183# If it is an archive, remove the '!' and the '_%' suffixes
37184case ${D}outFile in
37185*_%!)
37186 outFile=\`basnam ${D}outFile _%!\`
37187 ;;
37188*)
37189 ;;
37190esac
37191case ${D}outFile in
37192*.dll)
37193 outFile=\`basnam ${D}outFile .dll\`
37194 ;;
37195*.DLL)
37196 outFile=\`basnam ${D}outFile .DLL\`
37197 ;;
37198*.o)
37199 outFile=\`basnam ${D}outFile .o\`
37200 ;;
37201*.obj)
37202 outFile=\`basnam ${D}outFile .obj\`
37203 ;;
37204*.a)
37205 outFile=\`basnam ${D}outFile .a\`
37206 ;;
37207*.lib)
37208 outFile=\`basnam ${D}outFile .lib\`
37209 ;;
37210*)
37211 ;;
37212esac
37213case ${D}outimpFile in
37214*.a)
37215 outimpFile=\`basnam ${D}outimpFile .a\`
37216 ;;
37217*.lib)
37218 outimpFile=\`basnam ${D}outimpFile .lib\`
37219 ;;
37220*)
37221 ;;
37222esac
37223if -z ${D}outimpFile ; then
37224 outimpFile=${D}outFile
37225fi
37226defFile="${D}{outFile}.def"
37227arcFile="${D}{outimpFile}.a"
37228arcFile2="${D}{outimpFile}.lib"
37229dllFile="${D}outFile"
37230# Add suffix to dllFile later, first we need a version to use as
37231# name in .def file.
37232
37233if ${D}do_backup -ne 0 ; then
37234 if -f ${D}arcFile ; then
37235 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
37236 fi
37237 if -f ${D}arcFile2 ; then
37238 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
37239 fi
37240fi
37241
37242# Extract public symbols from all the object files.
37243tmpdefFile=${D}{defFile}_%
37244rm -f ${D}tmpdefFile
37245for file in ${D}inputFiles ; do
37246 case ${D}file in
37247 *!)
37248 ;;
37249 *)
37250 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
37251 ;;
37252 esac
37253done
37254
37255# Create the def file.
37256rm -f ${D}defFile
37257echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
37258dllFile="${D}dllFile.dll"
37259if -n ${D}description ; then
37260 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
37261fi
37262echo "EXPORTS" >> ${D}defFile
37263
37264doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
37265grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
37266
37267# Checks if the export is ok or not.
37268for word in ${D}exclude_symbols; do
37269 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
37270 mv ${D}{tmpdefFile}% ${D}tmpdefFile
37271done
37272
37273
37274if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
37275 sed "=" < ${D}tmpdefFile | \
37276 sed '
37277 N
37278 : loop
37279 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
37280 t loop
37281 ' > ${D}{tmpdefFile}%
37282 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
37283else
37284 rm -f ${D}{tmpdefFile}%
37285fi
37286cat ${D}tmpdefFile >> ${D}defFile
37287rm -f ${D}tmpdefFile
37288
37289# Do linking, create implib, and apply lxlite.
37290gccCmdl="";
37291for file in ${D}inputFiles ; do
37292 case ${D}file in
37293 *!)
37294 ;;
37295 *)
37296 gccCmdl="${D}gccCmdl ${D}file"
37297 ;;
37298 esac
37299done
37300doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
37301touch "${D}{outFile}.dll"
37302
37303doCommand "emximp -o ${D}arcFile ${D}defFile"
37304if ${D}flag_USE_LXLITE -ne 0 ; then
37305 add_flags="";
37306 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
37307 add_flags="-ynd"
37308 fi
37309 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
37310fi
37311doCommand "emxomf -s -l ${D}arcFile"
37312
37313# Successful exit.
37314CleanUp 1
37315exit 0
37316EOF
37317
37318 chmod +x dllar.sh
a848cd7e
SC
37319 ;;
37320
37321 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
37322 *-*-sunos4* | \
37323 *-*-osf* | \
37324 *-*-dgux5* | \
37325 *-*-sysv5* )
37326 ;;
37327
37328 *)
37329 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
37330echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
37331 { (exit 1); exit 1; }; }
37332 esac
37333
37334 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
37335 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
37336 fi
37337 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
37338 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
37339 fi
37340
37341
37342
37343
37344
37345
37346
37347
37348 USE_SOVERSION=0
37349 USE_SOVERLINUX=0
37350 USE_SOVERSOLARIS=0
37351 USE_SOSYMLINKS=0
37352 USE_MACVERSION=0
37353 SONAME_FLAG=
37354
37355 case "${BAKEFILE_HOST}" in
37356 *-*-linux* )
37357 SONAME_FLAG="-Wl,-soname,"
37358 USE_SOVERSION=1
37359 USE_SOVERLINUX=1
37360 USE_SOSYMLINKS=1
37361 ;;
37362
37363 *-*-solaris2* )
37364 SONAME_FLAG="-h "
37365 USE_SOVERSION=1
37366 USE_SOVERSOLARIS=1
37367 USE_SOSYMLINKS=1
37368 ;;
37369
37370 *-*-darwin* )
37371 USE_MACVERSION=1
37372 USE_SOVERSION=1
37373 USE_SOSYMLINKS=1
37374 ;;
37375 esac
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
37386echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
37387 DEPS_TRACKING=0
37388
37389 if test "x$GCC" = "xyes"; then
37390 DEPSMODE=gcc
37391 DEPS_TRACKING=1
37392 case "${BAKEFILE_HOST}" in
37393 powerpc-*-darwin* )
37394 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
37395 ;;
37396 * )
37397 DEPSFLAG_GCC="-MMD"
37398 ;;
37399 esac
37400 echo "$as_me:$LINENO: result: gcc" >&5
37401echo "${ECHO_T}gcc" >&6
37402 else
37403 echo "$as_me:$LINENO: result: none" >&5
37404echo "${ECHO_T}none" >&6
37405 fi
37406
37407 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
37408
37409D='$'
37410cat <<EOF >bk-deps
a848cd7e
SC
37411#!/bin/sh
37412
37413# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37414# script. It is used to track C/C++ files dependencies in portable way.
37415#
37416# Permission is given to use this file in any way.
37417
473276a9 37418DEPSMODE=${DEPSMODE}
a848cd7e 37419DEPSDIR=.deps
473276a9 37420DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 37421
473276a9 37422mkdir -p ${D}DEPSDIR
a848cd7e 37423
473276a9
VS
37424if test ${D}DEPSMODE = gcc ; then
37425 ${D}* ${D}{DEPSFLAG_GCC}
37426 status=${D}?
37427 if test ${D}{status} != 0 ; then
37428 exit ${D}{status}
a848cd7e
SC
37429 fi
37430 # move created file to the location we want it in:
473276a9
VS
37431 while test ${D}# -gt 0; do
37432 case "${D}1" in
a848cd7e
SC
37433 -o )
37434 shift
473276a9 37435 objfile=${D}1
a848cd7e
SC
37436 ;;
37437 -* )
37438 ;;
37439 * )
473276a9 37440 srcfile=${D}1
a848cd7e
SC
37441 ;;
37442 esac
37443 shift
37444 done
473276a9
VS
37445 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
37446 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
37447 if test -f ${D}depfile ; then
37448 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
37449 rm -f ${D}depfile
a848cd7e 37450 else
473276a9
VS
37451 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
37452 if test -f ${D}depfile ; then
37453 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
37454 rm -f ${D}depfile
a848cd7e
SC
37455 fi
37456 fi
37457 exit 0
37458else
473276a9
VS
37459 ${D}*
37460 exit ${D}?
a848cd7e
SC
37461fi
37462EOF
473276a9 37463
a848cd7e
SC
37464 chmod +x bk-deps
37465 fi
37466
37467
37468
37469
37470 RESCOMP=
37471 SETFILE=
37472
37473 case ${BAKEFILE_HOST} in
37474 *-*-cygwin* | *-*-mingw32* )
37475 if test "$build" != "$host" ; then
37476 RESCOMP=$host_alias-windres
37477 else
37478 # Extract the first word of "windres", so it can be a program name with args.
37479set dummy windres; ac_word=$2
37480echo "$as_me:$LINENO: checking for $ac_word" >&5
37481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37482if test "${ac_cv_prog_RESCOMP+set}" = set; then
37483 echo $ECHO_N "(cached) $ECHO_C" >&6
37484else
37485 if test -n "$RESCOMP"; then
37486 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37487else
37488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37489for as_dir in $PATH
37490do
37491 IFS=$as_save_IFS
37492 test -z "$as_dir" && as_dir=.
37493 for ac_exec_ext in '' $ac_executable_extensions; do
37494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37495 ac_cv_prog_RESCOMP="windres"
37496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37497 break 2
37498 fi
37499done
37500done
37501
37502 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
37503fi
37504fi
37505RESCOMP=$ac_cv_prog_RESCOMP
37506if test -n "$RESCOMP"; then
37507 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37508echo "${ECHO_T}$RESCOMP" >&6
37509else
37510 echo "$as_me:$LINENO: result: no" >&5
37511echo "${ECHO_T}no" >&6
37512fi
37513
37514 fi
37515 ;;
37516
37517 *-*-darwin* )
37518 # Extract the first word of "Rez", so it can be a program name with args.
37519set dummy Rez; ac_word=$2
37520echo "$as_me:$LINENO: checking for $ac_word" >&5
37521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37522if test "${ac_cv_prog_RESCOMP+set}" = set; then
37523 echo $ECHO_N "(cached) $ECHO_C" >&6
37524else
37525 if test -n "$RESCOMP"; then
37526 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37527else
37528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37529for as_dir in $PATH
37530do
37531 IFS=$as_save_IFS
37532 test -z "$as_dir" && as_dir=.
37533 for ac_exec_ext in '' $ac_executable_extensions; do
37534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37535 ac_cv_prog_RESCOMP="Rez"
37536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37537 break 2
37538 fi
37539done
37540done
37541
37542 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
37543fi
37544fi
37545RESCOMP=$ac_cv_prog_RESCOMP
37546if test -n "$RESCOMP"; then
37547 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37548echo "${ECHO_T}$RESCOMP" >&6
37549else
37550 echo "$as_me:$LINENO: result: no" >&5
37551echo "${ECHO_T}no" >&6
37552fi
37553
37554 # Extract the first word of "SetFile", so it can be a program name with args.
37555set dummy SetFile; ac_word=$2
37556echo "$as_me:$LINENO: checking for $ac_word" >&5
37557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37558if test "${ac_cv_prog_SETFILE+set}" = set; then
37559 echo $ECHO_N "(cached) $ECHO_C" >&6
37560else
37561 if test -n "$SETFILE"; then
37562 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37563else
37564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37565for as_dir in $PATH
37566do
37567 IFS=$as_save_IFS
37568 test -z "$as_dir" && as_dir=.
37569 for ac_exec_ext in '' $ac_executable_extensions; do
37570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37571 ac_cv_prog_SETFILE="SetFile"
37572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37573 break 2
37574 fi
37575done
37576done
37577
37578 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37579fi
37580fi
37581SETFILE=$ac_cv_prog_SETFILE
37582if test -n "$SETFILE"; then
37583 echo "$as_me:$LINENO: result: $SETFILE" >&5
37584echo "${ECHO_T}$SETFILE" >&6
37585else
37586 echo "$as_me:$LINENO: result: no" >&5
37587echo "${ECHO_T}no" >&6
37588fi
37589
37590 ;;
37591 esac
37592
37593
37594
37595
37596
37597
de59c161
RD
37598
37599
37600
dcc1b6ad
VS
37601BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
37602
37603
a848cd7e 37604
a848cd7e
SC
37605 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
37606if test "${enable_precomp_headers+set}" = set; then
37607 enableval="$enable_precomp_headers"
37608 bk_use_pch="$enableval"
37609fi;
37610
37611 GCC_PCH=0
37612
37613 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
37614 if test "x$GCC" = "xyes"; then
37615 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
37616echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
37617 cat >conftest.$ac_ext <<_ACEOF
de59c161 37618#line $LINENO "configure"
a848cd7e
SC
37619/* confdefs.h. */
37620_ACEOF
37621cat confdefs.h >>conftest.$ac_ext
37622cat >>conftest.$ac_ext <<_ACEOF
37623/* end confdefs.h. */
37624
37625int
37626main ()
37627{
37628
37629 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
37630 #error "no pch support"
37631 #endif
37632 #if (__GNUC__ < 3)
37633 #error "no pch support"
37634 #endif
37635 #if (__GNUC__ == 3) && \
37636 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
37637 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
37638 #error "no pch support"
37639 #endif
37640
37641 ;
37642 return 0;
37643}
37644_ACEOF
37645rm -f conftest.$ac_objext
37646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 37647 (eval $ac_compile) 2>&5
a848cd7e 37648 ac_status=$?
a848cd7e
SC
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); } &&
de59c161 37651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653 (eval $ac_try) 2>&5
37654 ac_status=$?
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); }; }; then
37657
37658 echo "$as_me:$LINENO: result: yes" >&5
37659echo "${ECHO_T}yes" >&6
37660 CPPFLAGS="-fpch-deps $CPPFLAGS"
37661 GCC_PCH=1
37662
37663else
37664 echo "$as_me: failed program was:" >&5
37665sed 's/^/| /' conftest.$ac_ext >&5
37666
37667
37668 echo "$as_me:$LINENO: result: no" >&5
37669echo "${ECHO_T}no" >&6
37670
37671fi
de59c161 37672rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37673 if test $GCC_PCH = 1 ; then
37674 cat <<EOF >bk-make-pch
37675#!/bin/sh
37676
37677# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37678# script. It is used to generated precompiled headers.
37679#
37680# Permission is given to use this file in any way.
37681
37682outfile="\${1}"
37683header="\${2}"
37684shift
37685shift
37686
37687compiler=
37688headerfile=
37689while test \${#} -gt 0; do
37690 case "\${1}" in
37691 -I* )
37692 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
37693 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
37694 headerfile="\${incdir}/\${header}"
37695 fi
37696 ;;
37697 esac
37698 compiler="\${compiler} \${1}"
37699 shift
37700done
37701
37702if test "x\${headerfile}" = "x" ; then
37703 echo "error: can't find header \${header} in include paths" >2
37704else
37705 if test -f \${outfile} ; then
37706 rm -f \${outfile}
37707 else
37708 mkdir -p \`dirname \${outfile}\`
37709 fi
37710 depsfile=".deps/\`basename \${outfile}\`.d"
37711 mkdir -p .deps
37712 # can do this because gcc is >= 3.4:
37713 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
37714 exit \${?}
37715fi
37716EOF
37717 chmod +x bk-make-pch
37718 fi
37719 fi
37720 fi
37721
37722
37723
37724
37725
dcc1b6ad
VS
37726
37727
37728 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
37729if test "${enable_precomp_headers+set}" = set; then
37730 enableval="$enable_precomp_headers"
37731 bk_use_pch="$enableval"
37732fi;
37733
37734 GCC_PCH=0
37735
37736 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
37737 if test "x$GCC" = "xyes"; then
37738 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
37739echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
37740 cat >conftest.$ac_ext <<_ACEOF
de59c161 37741#line $LINENO "configure"
dcc1b6ad
VS
37742/* confdefs.h. */
37743_ACEOF
37744cat confdefs.h >>conftest.$ac_ext
37745cat >>conftest.$ac_ext <<_ACEOF
37746/* end confdefs.h. */
37747
37748int
37749main ()
37750{
37751
37752 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
37753 #error "no pch support"
37754 #endif
37755 #if (__GNUC__ < 3)
37756 #error "no pch support"
37757 #endif
37758 #if (__GNUC__ == 3) && \
37759 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
37760 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
37761 #error "no pch support"
37762 #endif
37763
37764 ;
37765 return 0;
37766}
37767_ACEOF
37768rm -f conftest.$ac_objext
37769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 37770 (eval $ac_compile) 2>&5
dcc1b6ad 37771 ac_status=$?
dcc1b6ad
VS
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); } &&
de59c161 37774 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
37775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37776 (eval $ac_try) 2>&5
37777 ac_status=$?
37778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37779 (exit $ac_status); }; }; then
37780
37781 echo "$as_me:$LINENO: result: yes" >&5
37782echo "${ECHO_T}yes" >&6
37783 CPPFLAGS="-fpch-deps $CPPFLAGS"
37784 GCC_PCH=1
37785
37786else
37787 echo "$as_me: failed program was:" >&5
37788sed 's/^/| /' conftest.$ac_ext >&5
37789
37790
37791 echo "$as_me:$LINENO: result: no" >&5
37792echo "${ECHO_T}no" >&6
37793
37794fi
de59c161 37795rm -f conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
37796 if test $GCC_PCH = 1 ; then
37797 cat <<EOF >bk-make-pch
37798#!/bin/sh
37799
37800# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37801# script. It is used to generated precompiled headers.
37802#
37803# Permission is given to use this file in any way.
37804
37805outfile="\${1}"
37806header="\${2}"
37807shift
37808shift
37809
37810compiler=
37811headerfile=
37812while test \${#} -gt 0; do
37813 case "\${1}" in
37814 -I* )
37815 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
37816 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
37817 headerfile="\${incdir}/\${header}"
37818 fi
37819 ;;
37820 esac
37821 compiler="\${compiler} \${1}"
37822 shift
37823done
37824
37825if test "x\${headerfile}" = "x" ; then
37826 echo "error: can't find header \${header} in include paths" >2
37827else
37828 if test -f \${outfile} ; then
37829 rm -f \${outfile}
37830 else
37831 mkdir -p \`dirname \${outfile}\`
37832 fi
37833 depsfile=".deps/\`basename \${outfile}\`.d"
37834 mkdir -p .deps
37835 # can do this because gcc is >= 3.4:
37836 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
37837 exit \${?}
37838fi
37839EOF
37840 chmod +x bk-make-pch
37841 fi
37842 fi
37843 fi
37844
37845
37846
37847
a848cd7e
SC
37848 COND_BUILD_DEBUG="#"
37849 if test "x$BUILD" = "xdebug" ; then
37850 COND_BUILD_DEBUG=""
37851 fi
37852
37853 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
37854 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
37855 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
37856 fi
37857
37858 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
37859 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
37860 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
37861 fi
37862
37863 COND_BUILD_DEBUG_UNICODE_0="#"
37864 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
37865 COND_BUILD_DEBUG_UNICODE_0=""
37866 fi
37867
37868 COND_BUILD_DEBUG_UNICODE_1="#"
37869 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
37870 COND_BUILD_DEBUG_UNICODE_1=""
37871 fi
37872
37873 COND_BUILD_RELEASE="#"
37874 if test "x$BUILD" = "xrelease" ; then
37875 COND_BUILD_RELEASE=""
37876 fi
37877
37878 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
37879 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
37880 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
37881 fi
37882
37883 COND_BUILD_RELEASE_UNICODE_0="#"
37884 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
37885 COND_BUILD_RELEASE_UNICODE_0=""
37886 fi
37887
37888 COND_BUILD_RELEASE_UNICODE_1="#"
37889 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
37890 COND_BUILD_RELEASE_UNICODE_1=""
37891 fi
37892
37893 COND_DEBUG_FLAG_1="#"
37894 if test "x$DEBUG_FLAG" = "x1" ; then
37895 COND_DEBUG_FLAG_1=""
37896 fi
37897
37898 COND_DEBUG_INFO_0="#"
37899 if test "x$DEBUG_INFO" = "x0" ; then
37900 COND_DEBUG_INFO_0=""
37901 fi
37902
37903 COND_DEBUG_INFO_1="#"
37904 if test "x$DEBUG_INFO" = "x1" ; then
37905 COND_DEBUG_INFO_1=""
37906 fi
37907
37908 COND_DEPS_TRACKING_0="#"
37909 if test "x$DEPS_TRACKING" = "x0" ; then
37910 COND_DEPS_TRACKING_0=""
37911 fi
37912
37913 COND_DEPS_TRACKING_1="#"
37914 if test "x$DEPS_TRACKING" = "x1" ; then
37915 COND_DEPS_TRACKING_1=""
37916 fi
37917
37918 COND_GCC_PCH_1="#"
37919 if test "x$GCC_PCH" = "x1" ; then
37920 COND_GCC_PCH_1=""
37921 fi
37922
37923 COND_MONOLITHIC_0="#"
37924 if test "x$MONOLITHIC" = "x0" ; then
37925 COND_MONOLITHIC_0=""
37926 fi
37927
37928 COND_MONOLITHIC_0_SHARED_0="#"
37929 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
37930 COND_MONOLITHIC_0_SHARED_0=""
37931 fi
37932
37933 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
37934 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
37935 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
37936 fi
37937
37938 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
37939 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
37940 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
37941 fi
37942
37943 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
37944 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
37945 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
37946 fi
37947
37948 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
37949 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
37950 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
37951 fi
37952
37953 COND_MONOLITHIC_0_SHARED_1="#"
37954 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
37955 COND_MONOLITHIC_0_SHARED_1=""
37956 fi
37957
37958 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
37959 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
37960 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
37961 fi
37962
37963 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
37964 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
37965 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
37966 fi
37967
37968 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
37969 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
37970 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
37971 fi
37972
37973 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
37974 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
37975 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
37976 fi
37977
37978 COND_MONOLITHIC_0_USE_ODBC_1="#"
37979 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
37980 COND_MONOLITHIC_0_USE_ODBC_1=""
37981 fi
37982
37983 COND_MONOLITHIC_1="#"
37984 if test "x$MONOLITHIC" = "x1" ; then
37985 COND_MONOLITHIC_1=""
37986 fi
37987
37988 COND_MONOLITHIC_1_SHARED_0="#"
37989 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
37990 COND_MONOLITHIC_1_SHARED_0=""
37991 fi
37992
37993 COND_MONOLITHIC_1_SHARED_1="#"
37994 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
37995 COND_MONOLITHIC_1_SHARED_1=""
37996 fi
37997
37998 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
37999 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38000 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38001 fi
38002
38003 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38004 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38005 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38006 fi
38007
38008 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38009 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38010 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38011 fi
38012
38013 COND_PLATFORM_MACOSX_1="#"
38014 if test "x$PLATFORM_MACOSX" = "x1" ; then
38015 COND_PLATFORM_MACOSX_1=""
38016 fi
38017
38018 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38019 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38020 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38021 fi
38022
38023 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38024 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38025 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38026 fi
38027
38028 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38029 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38030 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38031 fi
38032
38033 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38034 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38035 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38036 fi
38037
38038 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38039 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38040 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38041 fi
38042
38043 COND_PLATFORM_MAC_1="#"
38044 if test "x$PLATFORM_MAC" = "x1" ; then
38045 COND_PLATFORM_MAC_1=""
38046 fi
38047
38048 COND_PLATFORM_OS2_1="#"
38049 if test "x$PLATFORM_OS2" = "x1" ; then
38050 COND_PLATFORM_OS2_1=""
38051 fi
38052
38053 COND_PLATFORM_UNIX_0="#"
38054 if test "x$PLATFORM_UNIX" = "x0" ; then
38055 COND_PLATFORM_UNIX_0=""
38056 fi
38057
38058 COND_PLATFORM_UNIX_1="#"
38059 if test "x$PLATFORM_UNIX" = "x1" ; then
38060 COND_PLATFORM_UNIX_1=""
38061 fi
38062
38063 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38064 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38065 COND_PLATFORM_UNIX_1_USE_GUI_1=""
38066 fi
38067
38068 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
38069 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
38070 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
38071 fi
38072
38073 COND_PLATFORM_WIN32_0="#"
38074 if test "x$PLATFORM_WIN32" = "x0" ; then
38075 COND_PLATFORM_WIN32_0=""
38076 fi
38077
38078 COND_PLATFORM_WIN32_1="#"
38079 if test "x$PLATFORM_WIN32" = "x1" ; then
38080 COND_PLATFORM_WIN32_1=""
38081 fi
38082
38083 COND_SHARED_0="#"
38084 if test "x$SHARED" = "x0" ; then
38085 COND_SHARED_0=""
38086 fi
38087
38088 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38089 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38090 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38091 fi
38092
38093 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38094 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38095 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38096 fi
38097
38098 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38099 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38100 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38101 fi
38102
38103 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38104 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38105 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38106 fi
38107
38108 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38109 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38110 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38111 fi
38112
38113 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38114 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38115 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38116 fi
38117
38118 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38119 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38120 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38121 fi
38122
38123 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38124 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38125 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38126 fi
38127
38128 COND_SHARED_1="#"
38129 if test "x$SHARED" = "x1" ; then
38130 COND_SHARED_1=""
38131 fi
38132
38133 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38134 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38135 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38136 fi
38137
38138 COND_TOOLKIT_COCOA="#"
38139 if test "x$TOOLKIT" = "xCOCOA" ; then
38140 COND_TOOLKIT_COCOA=""
38141 fi
38142
38143 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38144 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38145 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
38146 fi
38147
38148 COND_TOOLKIT_GTK="#"
38149 if test "x$TOOLKIT" = "xGTK" ; then
38150 COND_TOOLKIT_GTK=""
38151 fi
38152
38153 COND_TOOLKIT_GTK_USE_GUI_1="#"
38154 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38155 COND_TOOLKIT_GTK_USE_GUI_1=""
38156 fi
38157
38158 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38159 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38160 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
38161 fi
38162
38163 COND_TOOLKIT_MAC="#"
38164 if test "x$TOOLKIT" = "xMAC" ; then
38165 COND_TOOLKIT_MAC=""
38166 fi
38167
38168 COND_TOOLKIT_MAC_USE_GUI_1="#"
38169 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38170 COND_TOOLKIT_MAC_USE_GUI_1=""
38171 fi
38172
38173 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38174 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38175 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
38176 fi
38177
38178 COND_TOOLKIT_MGL="#"
38179 if test "x$TOOLKIT" = "xMGL" ; then
38180 COND_TOOLKIT_MGL=""
38181 fi
38182
38183 COND_TOOLKIT_MGL_USE_GUI_1="#"
38184 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38185 COND_TOOLKIT_MGL_USE_GUI_1=""
38186 fi
38187
38188 COND_TOOLKIT_MOTIF="#"
38189 if test "x$TOOLKIT" = "xMOTIF" ; then
38190 COND_TOOLKIT_MOTIF=""
38191 fi
38192
38193 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
38194 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
38195 COND_TOOLKIT_MOTIF_USE_GUI_1=""
38196 fi
38197
38198 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
38199 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38200 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
38201 fi
38202
38203 COND_TOOLKIT_MSW="#"
38204 if test "x$TOOLKIT" = "xMSW" ; then
38205 COND_TOOLKIT_MSW=""
38206 fi
38207
38208 COND_TOOLKIT_MSW_USE_GUI_1="#"
38209 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
38210 COND_TOOLKIT_MSW_USE_GUI_1=""
38211 fi
38212
38213 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
38214 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38215 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
38216 fi
38217
38218 COND_TOOLKIT_PM="#"
38219 if test "x$TOOLKIT" = "xPM" ; then
38220 COND_TOOLKIT_PM=""
38221 fi
38222
38223 COND_TOOLKIT_PM_USE_GUI_1="#"
38224 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
38225 COND_TOOLKIT_PM_USE_GUI_1=""
38226 fi
38227
38228 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
38229 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38230 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
38231 fi
38232
3fd9c298
DE
38233 COND_TOOLKIT_WINCE="#"
38234 if test "x$TOOLKIT" = "xWINCE" ; then
38235 COND_TOOLKIT_WINCE=""
38236 fi
38237
38238 COND_TOOLKIT_WINCE_USE_GUI_1="#"
38239 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
38240 COND_TOOLKIT_WINCE_USE_GUI_1=""
38241 fi
38242
38243 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
38244 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38245 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
38246 fi
38247
a848cd7e
SC
38248 COND_TOOLKIT_X11="#"
38249 if test "x$TOOLKIT" = "xX11" ; then
38250 COND_TOOLKIT_X11=""
38251 fi
38252
38253 COND_TOOLKIT_X11_USE_GUI_1="#"
38254 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
38255 COND_TOOLKIT_X11_USE_GUI_1=""
38256 fi
38257
38258 COND_UNICODE_1="#"
38259 if test "x$UNICODE" = "x1" ; then
38260 COND_UNICODE_1=""
38261 fi
38262
38263 COND_USE_EXCEPTIONS_0="#"
38264 if test "x$USE_EXCEPTIONS" = "x0" ; then
38265 COND_USE_EXCEPTIONS_0=""
38266 fi
38267
38268 COND_USE_EXCEPTIONS_1="#"
38269 if test "x$USE_EXCEPTIONS" = "x1" ; then
38270 COND_USE_EXCEPTIONS_1=""
38271 fi
38272
38273 COND_USE_GUI_0="#"
38274 if test "x$USE_GUI" = "x0" ; then
38275 COND_USE_GUI_0=""
38276 fi
38277
38278 COND_USE_GUI_1="#"
38279 if test "x$USE_GUI" = "x1" ; then
38280 COND_USE_GUI_1=""
38281 fi
38282
38283 COND_USE_GUI_1_WXUNIV_0="#"
38284 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38285 COND_USE_GUI_1_WXUNIV_0=""
38286 fi
38287
38288 COND_USE_GUI_1_WXUNIV_1="#"
38289 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
38290 COND_USE_GUI_1_WXUNIV_1=""
38291 fi
38292
38293 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38294 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38295 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38296 fi
38297
38298 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38299 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38300 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38301 fi
38302
38303 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38304 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38305 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38306 fi
38307
38308 COND_USE_ODBC_1="#"
38309 if test "x$USE_ODBC" = "x1" ; then
38310 COND_USE_ODBC_1=""
38311 fi
38312
38313 COND_USE_PLUGINS_0="#"
38314 if test "x$USE_PLUGINS" = "x0" ; then
38315 COND_USE_PLUGINS_0=""
38316 fi
38317
38318 COND_USE_SOSYMLINKS_1="#"
38319 if test "x$USE_SOSYMLINKS" = "x1" ; then
38320 COND_USE_SOSYMLINKS_1=""
38321 fi
38322
38323 COND_USE_SOVERLINUX_1="#"
38324 if test "x$USE_SOVERLINUX" = "x1" ; then
38325 COND_USE_SOVERLINUX_1=""
38326 fi
38327
38328 COND_USE_SOVERSION_0="#"
38329 if test "x$USE_SOVERSION" = "x0" ; then
38330 COND_USE_SOVERSION_0=""
38331 fi
38332
38333 COND_USE_SOVERSOLARIS_1="#"
38334 if test "x$USE_SOVERSOLARIS" = "x1" ; then
38335 COND_USE_SOVERSOLARIS_1=""
38336 fi
38337
38338 COND_WITH_PLUGIN_SDL_1="#"
38339 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
38340 COND_WITH_PLUGIN_SDL_1=""
38341 fi
38342
38343 COND_WITH_SDL_1="#"
38344 if test "x$WITH_SDL" = "x1" ; then
38345 COND_WITH_SDL_1=""
38346 fi
38347
38348 COND_WXUNIV_1="#"
38349 if test "x$WXUNIV" = "x1" ; then
38350 COND_WXUNIV_1=""
38351 fi
38352
38353 COND_WXUSE_EXPAT_BUILTIN="#"
38354 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
38355 COND_WXUSE_EXPAT_BUILTIN=""
38356 fi
38357
38358 COND_WXUSE_LIBJPEG_BUILTIN="#"
38359 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38360 COND_WXUSE_LIBJPEG_BUILTIN=""
38361 fi
38362
38363 COND_WXUSE_LIBPNG_BUILTIN="#"
38364 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38365 COND_WXUSE_LIBPNG_BUILTIN=""
38366 fi
38367
38368 COND_WXUSE_LIBTIFF_BUILTIN="#"
38369 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38370 COND_WXUSE_LIBTIFF_BUILTIN=""
38371 fi
38372
38373 COND_WXUSE_ODBC_BUILTIN="#"
38374 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
38375 COND_WXUSE_ODBC_BUILTIN=""
38376 fi
38377
38378 COND_WXUSE_REGEX_BUILTIN="#"
38379 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
38380 COND_WXUSE_REGEX_BUILTIN=""
38381 fi
38382
38383 COND_WXUSE_ZLIB_BUILTIN="#"
38384 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
38385 COND_WXUSE_ZLIB_BUILTIN=""
38386 fi
38387
dcc1b6ad
VS
38388 COND_BUILD_DEBUG="#"
38389 if test "x$BUILD" = "xdebug" ; then
38390 COND_BUILD_DEBUG=""
38391 fi
38392
38393 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
38394 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
38395 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
38396 fi
38397
38398 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
38399 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
38400 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
38401 fi
38402
38403 COND_BUILD_DEBUG_UNICODE_0="#"
38404 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
38405 COND_BUILD_DEBUG_UNICODE_0=""
38406 fi
38407
38408 COND_BUILD_DEBUG_UNICODE_1="#"
38409 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
38410 COND_BUILD_DEBUG_UNICODE_1=""
38411 fi
38412
38413 COND_BUILD_RELEASE="#"
38414 if test "x$BUILD" = "xrelease" ; then
38415 COND_BUILD_RELEASE=""
38416 fi
38417
38418 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
38419 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
38420 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
38421 fi
38422
38423 COND_BUILD_RELEASE_UNICODE_0="#"
38424 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
38425 COND_BUILD_RELEASE_UNICODE_0=""
38426 fi
38427
38428 COND_BUILD_RELEASE_UNICODE_1="#"
38429 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
38430 COND_BUILD_RELEASE_UNICODE_1=""
38431 fi
38432
38433 COND_DEBUG_FLAG_1="#"
38434 if test "x$DEBUG_FLAG" = "x1" ; then
38435 COND_DEBUG_FLAG_1=""
38436 fi
38437
38438 COND_DEBUG_INFO_0="#"
38439 if test "x$DEBUG_INFO" = "x0" ; then
38440 COND_DEBUG_INFO_0=""
38441 fi
38442
38443 COND_DEBUG_INFO_1="#"
38444 if test "x$DEBUG_INFO" = "x1" ; then
38445 COND_DEBUG_INFO_1=""
38446 fi
38447
38448 COND_DEPS_TRACKING_0="#"
38449 if test "x$DEPS_TRACKING" = "x0" ; then
38450 COND_DEPS_TRACKING_0=""
38451 fi
38452
38453 COND_DEPS_TRACKING_1="#"
38454 if test "x$DEPS_TRACKING" = "x1" ; then
38455 COND_DEPS_TRACKING_1=""
38456 fi
38457
38458 COND_GCC_PCH_1="#"
38459 if test "x$GCC_PCH" = "x1" ; then
38460 COND_GCC_PCH_1=""
38461 fi
38462
38463 COND_MONOLITHIC_0="#"
38464 if test "x$MONOLITHIC" = "x0" ; then
38465 COND_MONOLITHIC_0=""
38466 fi
38467
38468 COND_MONOLITHIC_0_SHARED_0="#"
38469 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
38470 COND_MONOLITHIC_0_SHARED_0=""
38471 fi
38472
38473 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
38474 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
38475 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
38476 fi
38477
38478 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
38479 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38480 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
38481 fi
38482
38483 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
38484 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
38485 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
38486 fi
38487
38488 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
38489 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
38490 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
38491 fi
38492
38493 COND_MONOLITHIC_0_SHARED_1="#"
38494 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
38495 COND_MONOLITHIC_0_SHARED_1=""
38496 fi
38497
38498 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
38499 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
38500 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
38501 fi
38502
38503 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
38504 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38505 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
38506 fi
38507
38508 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
38509 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
38510 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
38511 fi
38512
38513 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
38514 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
38515 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
38516 fi
38517
38518 COND_MONOLITHIC_0_USE_ODBC_1="#"
38519 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
38520 COND_MONOLITHIC_0_USE_ODBC_1=""
38521 fi
38522
38523 COND_MONOLITHIC_1="#"
38524 if test "x$MONOLITHIC" = "x1" ; then
38525 COND_MONOLITHIC_1=""
38526 fi
38527
38528 COND_MONOLITHIC_1_SHARED_0="#"
38529 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
38530 COND_MONOLITHIC_1_SHARED_0=""
38531 fi
38532
38533 COND_MONOLITHIC_1_SHARED_1="#"
38534 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
38535 COND_MONOLITHIC_1_SHARED_1=""
38536 fi
38537
38538 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
38539 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38540 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38541 fi
38542
38543 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38544 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38545 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38546 fi
38547
38548 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38549 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38550 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38551 fi
38552
38553 COND_PLATFORM_MACOSX_1="#"
38554 if test "x$PLATFORM_MACOSX" = "x1" ; then
38555 COND_PLATFORM_MACOSX_1=""
38556 fi
38557
38558 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38559 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38560 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38561 fi
38562
38563 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38564 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38565 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38566 fi
38567
38568 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38569 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38570 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38571 fi
38572
38573 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38574 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38575 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38576 fi
38577
38578 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38579 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38580 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38581 fi
38582
38583 COND_PLATFORM_MAC_1="#"
38584 if test "x$PLATFORM_MAC" = "x1" ; then
38585 COND_PLATFORM_MAC_1=""
38586 fi
38587
38588 COND_PLATFORM_OS2_1="#"
38589 if test "x$PLATFORM_OS2" = "x1" ; then
38590 COND_PLATFORM_OS2_1=""
38591 fi
38592
38593 COND_PLATFORM_UNIX_0="#"
38594 if test "x$PLATFORM_UNIX" = "x0" ; then
38595 COND_PLATFORM_UNIX_0=""
38596 fi
38597
38598 COND_PLATFORM_UNIX_1="#"
38599 if test "x$PLATFORM_UNIX" = "x1" ; then
38600 COND_PLATFORM_UNIX_1=""
38601 fi
38602
38603 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38604 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38605 COND_PLATFORM_UNIX_1_USE_GUI_1=""
38606 fi
38607
38608 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
38609 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
38610 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
38611 fi
38612
38613 COND_PLATFORM_WIN32_0="#"
38614 if test "x$PLATFORM_WIN32" = "x0" ; then
38615 COND_PLATFORM_WIN32_0=""
38616 fi
38617
38618 COND_PLATFORM_WIN32_1="#"
38619 if test "x$PLATFORM_WIN32" = "x1" ; then
38620 COND_PLATFORM_WIN32_1=""
38621 fi
38622
38623 COND_SHARED_0="#"
38624 if test "x$SHARED" = "x0" ; then
38625 COND_SHARED_0=""
38626 fi
38627
38628 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38629 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38630 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38631 fi
38632
38633 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38634 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38635 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38636 fi
38637
38638 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38639 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38640 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38641 fi
38642
38643 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38644 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38645 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38646 fi
38647
38648 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38649 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38650 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38651 fi
38652
38653 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38654 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38655 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38656 fi
38657
38658 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38659 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38660 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38661 fi
38662
38663 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38664 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38665 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38666 fi
38667
38668 COND_SHARED_1="#"
38669 if test "x$SHARED" = "x1" ; then
38670 COND_SHARED_1=""
38671 fi
38672
38673 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38674 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38675 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38676 fi
38677
38678 COND_TOOLKIT_COCOA="#"
38679 if test "x$TOOLKIT" = "xCOCOA" ; then
38680 COND_TOOLKIT_COCOA=""
38681 fi
38682
38683 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38684 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38685 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
38686 fi
38687
38688 COND_TOOLKIT_GTK="#"
38689 if test "x$TOOLKIT" = "xGTK" ; then
38690 COND_TOOLKIT_GTK=""
38691 fi
38692
38693 COND_TOOLKIT_GTK_USE_GUI_1="#"
38694 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38695 COND_TOOLKIT_GTK_USE_GUI_1=""
38696 fi
38697
38698 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38699 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38700 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
38701 fi
38702
38703 COND_TOOLKIT_MAC="#"
38704 if test "x$TOOLKIT" = "xMAC" ; then
38705 COND_TOOLKIT_MAC=""
38706 fi
38707
38708 COND_TOOLKIT_MAC_USE_GUI_1="#"
38709 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38710 COND_TOOLKIT_MAC_USE_GUI_1=""
38711 fi
38712
38713 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38714 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38715 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
38716 fi
38717
38718 COND_TOOLKIT_MGL="#"
38719 if test "x$TOOLKIT" = "xMGL" ; then
38720 COND_TOOLKIT_MGL=""
38721 fi
38722
38723 COND_TOOLKIT_MGL_USE_GUI_1="#"
38724 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38725 COND_TOOLKIT_MGL_USE_GUI_1=""
38726 fi
38727
38728 COND_TOOLKIT_MOTIF="#"
38729 if test "x$TOOLKIT" = "xMOTIF" ; then
38730 COND_TOOLKIT_MOTIF=""
38731 fi
38732
38733 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
38734 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
38735 COND_TOOLKIT_MOTIF_USE_GUI_1=""
38736 fi
38737
38738 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
38739 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38740 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
38741 fi
38742
38743 COND_TOOLKIT_MSW="#"
38744 if test "x$TOOLKIT" = "xMSW" ; then
38745 COND_TOOLKIT_MSW=""
38746 fi
38747
38748 COND_TOOLKIT_MSW_USE_GUI_1="#"
38749 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
38750 COND_TOOLKIT_MSW_USE_GUI_1=""
38751 fi
38752
38753 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
38754 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38755 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
38756 fi
38757
38758 COND_TOOLKIT_PM="#"
38759 if test "x$TOOLKIT" = "xPM" ; then
38760 COND_TOOLKIT_PM=""
38761 fi
38762
38763 COND_TOOLKIT_PM_USE_GUI_1="#"
38764 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
38765 COND_TOOLKIT_PM_USE_GUI_1=""
38766 fi
38767
38768 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
38769 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38770 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
38771 fi
38772
38773 COND_TOOLKIT_WINCE="#"
38774 if test "x$TOOLKIT" = "xWINCE" ; then
38775 COND_TOOLKIT_WINCE=""
38776 fi
38777
38778 COND_TOOLKIT_WINCE_USE_GUI_1="#"
38779 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
38780 COND_TOOLKIT_WINCE_USE_GUI_1=""
38781 fi
38782
38783 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
38784 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38785 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
38786 fi
38787
38788 COND_TOOLKIT_X11="#"
38789 if test "x$TOOLKIT" = "xX11" ; then
38790 COND_TOOLKIT_X11=""
38791 fi
38792
38793 COND_TOOLKIT_X11_USE_GUI_1="#"
38794 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
38795 COND_TOOLKIT_X11_USE_GUI_1=""
38796 fi
38797
38798 COND_UNICODE_1="#"
38799 if test "x$UNICODE" = "x1" ; then
38800 COND_UNICODE_1=""
38801 fi
38802
38803 COND_USE_EXCEPTIONS_0="#"
38804 if test "x$USE_EXCEPTIONS" = "x0" ; then
38805 COND_USE_EXCEPTIONS_0=""
38806 fi
38807
38808 COND_USE_EXCEPTIONS_1="#"
38809 if test "x$USE_EXCEPTIONS" = "x1" ; then
38810 COND_USE_EXCEPTIONS_1=""
38811 fi
38812
38813 COND_USE_GUI_0="#"
38814 if test "x$USE_GUI" = "x0" ; then
38815 COND_USE_GUI_0=""
38816 fi
38817
38818 COND_USE_GUI_1="#"
38819 if test "x$USE_GUI" = "x1" ; then
38820 COND_USE_GUI_1=""
38821 fi
38822
38823 COND_USE_GUI_1_WXUNIV_0="#"
38824 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38825 COND_USE_GUI_1_WXUNIV_0=""
38826 fi
38827
38828 COND_USE_GUI_1_WXUNIV_1="#"
38829 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
38830 COND_USE_GUI_1_WXUNIV_1=""
38831 fi
38832
38833 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38834 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38835 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38836 fi
38837
38838 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38839 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38840 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38841 fi
38842
38843 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38844 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38845 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38846 fi
38847
38848 COND_USE_ODBC_1="#"
38849 if test "x$USE_ODBC" = "x1" ; then
38850 COND_USE_ODBC_1=""
38851 fi
38852
38853 COND_USE_PLUGINS_0="#"
38854 if test "x$USE_PLUGINS" = "x0" ; then
38855 COND_USE_PLUGINS_0=""
38856 fi
38857
38858 COND_USE_SOSYMLINKS_1="#"
38859 if test "x$USE_SOSYMLINKS" = "x1" ; then
38860 COND_USE_SOSYMLINKS_1=""
38861 fi
38862
38863 COND_USE_SOVERLINUX_1="#"
38864 if test "x$USE_SOVERLINUX" = "x1" ; then
38865 COND_USE_SOVERLINUX_1=""
38866 fi
38867
38868 COND_USE_SOVERSION_0="#"
38869 if test "x$USE_SOVERSION" = "x0" ; then
38870 COND_USE_SOVERSION_0=""
38871 fi
38872
38873 COND_USE_SOVERSOLARIS_1="#"
38874 if test "x$USE_SOVERSOLARIS" = "x1" ; then
38875 COND_USE_SOVERSOLARIS_1=""
38876 fi
38877
38878 COND_WITH_PLUGIN_SDL_1="#"
38879 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
38880 COND_WITH_PLUGIN_SDL_1=""
38881 fi
38882
38883 COND_WXUNIV_1="#"
38884 if test "x$WXUNIV" = "x1" ; then
38885 COND_WXUNIV_1=""
38886 fi
38887
38888 COND_WXUSE_EXPAT_BUILTIN="#"
38889 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
38890 COND_WXUSE_EXPAT_BUILTIN=""
38891 fi
38892
38893 COND_WXUSE_LIBJPEG_BUILTIN="#"
38894 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38895 COND_WXUSE_LIBJPEG_BUILTIN=""
38896 fi
38897
38898 COND_WXUSE_LIBPNG_BUILTIN="#"
38899 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38900 COND_WXUSE_LIBPNG_BUILTIN=""
38901 fi
38902
38903 COND_WXUSE_LIBTIFF_BUILTIN="#"
38904 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38905 COND_WXUSE_LIBTIFF_BUILTIN=""
38906 fi
38907
38908 COND_WXUSE_ODBC_BUILTIN="#"
38909 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
38910 COND_WXUSE_ODBC_BUILTIN=""
38911 fi
38912
38913 COND_WXUSE_REGEX_BUILTIN="#"
38914 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
38915 COND_WXUSE_REGEX_BUILTIN=""
38916 fi
38917
38918 COND_WXUSE_ZLIB_BUILTIN="#"
38919 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
38920 COND_WXUSE_ZLIB_BUILTIN=""
38921 fi
38922
a848cd7e
SC
38923
38924
38925
38926
38927if test $GCC_PCH = 1 ; then
38928 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38929 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
38930else
38931 case "${host}" in
38932 powerpc-*-darwin* )
38933 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38934 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
38935 ;;
bea8e651
MB
38936 *-*-mingw32* )
38937 if test "$wxUSE_STL" = "yes"; then
38938 echo "$as_me:$LINENO: checking If this MinGW version needs -DNO_GCC_PRAGMA" >&5
38939echo $ECHO_N "checking If this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
38940 cat >conftest.$ac_ext <<_ACEOF
de59c161 38941#line $LINENO "configure"
bea8e651
MB
38942/* confdefs.h. */
38943_ACEOF
38944cat confdefs.h >>conftest.$ac_ext
38945cat >>conftest.$ac_ext <<_ACEOF
38946/* end confdefs.h. */
38947
38948int
38949main ()
38950{
38951#if !(__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
38952 #error "Not GCC 3.2 or greater"
38953 #endif
38954
38955 ;
38956 return 0;
38957}
38958_ACEOF
38959rm -f conftest.$ac_objext
38960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
de59c161 38961 (eval $ac_compile) 2>&5
bea8e651 38962 ac_status=$?
bea8e651
MB
38963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38964 (exit $ac_status); } &&
de59c161 38965 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
38966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38967 (eval $ac_try) 2>&5
38968 ac_status=$?
38969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970 (exit $ac_status); }; }; then
38971 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38972 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
38973 echo "$as_me:$LINENO: result: yes" >&5
38974echo "${ECHO_T}yes" >&6
38975else
38976 echo "$as_me: failed program was:" >&5
38977sed 's/^/| /' conftest.$ac_ext >&5
38978
38979echo "$as_me:$LINENO: result: no" >&5
38980echo "${ECHO_T}no" >&6
38981fi
de59c161 38982rm -f conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
38983 fi
38984 ;;
a848cd7e
SC
38985 esac
38986fi
38987
38988
38989SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059
39060
39061
39062
39063
39064
39065
39066
39067
39068
39069
39070
39071
39072
39073
39074
39075
39076
39077
39078
39079
39080
39081
39082
39083
39084
39085
39086
39087
39088
39089
39090echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39091echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
de59c161 39092set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
a848cd7e
SC
39093if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39094 echo $ECHO_N "(cached) $ECHO_C" >&6
39095else
39096 cat >conftest.make <<\_ACEOF
39097all:
39098 @echo 'ac_maketemp="$(MAKE)"'
39099_ACEOF
39100# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39101eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39102if test -n "$ac_maketemp"; then
39103 eval ac_cv_prog_make_${ac_make}_set=yes
39104else
39105 eval ac_cv_prog_make_${ac_make}_set=no
39106fi
39107rm -f conftest.make
39108fi
39109if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39110 echo "$as_me:$LINENO: result: yes" >&5
39111echo "${ECHO_T}yes" >&6
39112 SET_MAKE=
39113else
39114 echo "$as_me:$LINENO: result: no" >&5
39115echo "${ECHO_T}no" >&6
39116 SET_MAKE="MAKE=${MAKE-make}"
39117fi
39118
39119
39120if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
39121 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
39122fi
39123
39124 ac_config_headers="$ac_config_headers setup.h"
39125
39126
39127 ac_config_files="$ac_config_files wx-config version-script Makefile"
39128
39129
39130 ac_config_commands="$ac_config_commands default"
39131
39132
39133
39134if test "$wxUSE_GUI" = "yes"; then
39135 SUBDIRS="samples demos utils contrib"
39136else SUBDIRS="samples utils"
39137fi
39138
39139
39140
39141# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
39142if test "${with_cppunit_prefix+set}" = set; then
39143 withval="$with_cppunit_prefix"
39144 cppunit_config_prefix="$withval"
39145else
39146 cppunit_config_prefix=""
39147fi;
39148
39149# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
39150if test "${with_cppunit_exec_prefix+set}" = set; then
39151 withval="$with_cppunit_exec_prefix"
39152 cppunit_config_exec_prefix="$withval"
39153else
39154 cppunit_config_exec_prefix=""
39155fi;
39156
39157 if test x$cppunit_config_exec_prefix != x ; then
39158 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
39159 if test x${CPPUNIT_CONFIG+set} != xset ; then
39160 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
39161 fi
39162 fi
39163 if test x$cppunit_config_prefix != x ; then
39164 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
39165 if test x${CPPUNIT_CONFIG+set} != xset ; then
39166 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
39167 fi
39168 fi
39169
39170 # Extract the first word of "cppunit-config", so it can be a program name with args.
39171set dummy cppunit-config; ac_word=$2
39172echo "$as_me:$LINENO: checking for $ac_word" >&5
39173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39174if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
39175 echo $ECHO_N "(cached) $ECHO_C" >&6
39176else
39177 case $CPPUNIT_CONFIG in
39178 [\\/]* | ?:[\\/]*)
39179 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
39180 ;;
39181 *)
39182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39183for as_dir in $PATH
39184do
39185 IFS=$as_save_IFS
39186 test -z "$as_dir" && as_dir=.
39187 for ac_exec_ext in '' $ac_executable_extensions; do
39188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39189 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39191 break 2
39192 fi
39193done
39194done
39195
39196 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
39197 ;;
39198esac
39199fi
39200CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
39201
39202if test -n "$CPPUNIT_CONFIG"; then
39203 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
39204echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
39205else
39206 echo "$as_me:$LINENO: result: no" >&5
39207echo "${ECHO_T}no" >&6
39208fi
39209
39210 cppunit_version_min=1.8.0
39211
39212 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
39213echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
39214 no_cppunit=""
39215 if test "$CPPUNIT_CONFIG" = "no" ; then
39216 no_cppunit=yes
c2218763
VS
39217 echo "$as_me:$LINENO: result: no" >&5
39218echo "${ECHO_T}no" >&6
a848cd7e
SC
39219 else
39220 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
39221 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
39222 cppunit_version=`$CPPUNIT_CONFIG --version`
39223
39224 cppunit_major_version=`echo $cppunit_version | \
39225 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
39226 cppunit_minor_version=`echo $cppunit_version | \
39227 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
39228 cppunit_micro_version=`echo $cppunit_version | \
39229 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
39230
39231 cppunit_major_min=`echo $cppunit_version_min | \
39232 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
39233 cppunit_minor_min=`echo $cppunit_version_min | \
39234 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
39235 cppunit_micro_min=`echo $cppunit_version_min | \
39236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
39237
39238 cppunit_version_proper=`expr \
39239 $cppunit_major_version \> $cppunit_major_min \| \
39240 $cppunit_major_version \= $cppunit_major_min \& \
39241 $cppunit_minor_version \> $cppunit_minor_min \| \
39242 $cppunit_major_version \= $cppunit_major_min \& \
39243 $cppunit_minor_version \= $cppunit_minor_min \& \
39244 $cppunit_micro_version \>= $cppunit_micro_min `
39245
39246 if test "$cppunit_version_proper" = "1" ; then
39247 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
39248echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
39249 else
39250 echo "$as_me:$LINENO: result: no" >&5
39251echo "${ECHO_T}no" >&6
39252 no_cppunit=yes
39253 fi
39254 fi
39255
39256 if test "x$no_cppunit" = x ; then
c2218763 39257 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
39258 else
39259 CPPUNIT_CFLAGS=""
39260 CPPUNIT_LIBS=""
c2218763 39261 :
a848cd7e
SC
39262 fi
39263
39264
39265
39266
39267
39268for subdir in `echo $SUBDIRS`; do
39269 if test -d ${srcdir}/${subdir} ; then
39270 if test "$wxUSE_GUI" = "yes"; then
39271 if test ${subdir} = "samples"; then
39272 makefiles="samples/Makefile.in $makefiles"
39273 for sample in `echo $SAMPLES_SUBDIRS`; do
39274 if test -d $srcdir/samples/$sample; then
39275 makefiles="samples/$sample/Makefile.in $makefiles"
39276 fi
39277 done
39278 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
39279 fi
39280 else if test ${subdir} = "samples"; then
39281 makefiles="samples/Makefile.in samples/console/Makefile.in"
39282 elif test ${subdir} = "utils"; then
39283 makefiles="utils/HelpGen/Makefile.in \
39284 utils/HelpGen/src/Makefile.in \
39285 utils/tex2rtf/Makefile.in \
39286 utils/tex2rtf/src/Makefile.in"
39287 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
39288 fi
39289 fi
39290
39291 for mkin in $makefiles ; do
39292 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
39293 ac_config_files="$ac_config_files $mk"
39294
39295 done
39296 fi
39297done
39298
39299
39300cat >confcache <<\_ACEOF
39301# This file is a shell script that caches the results of configure
39302# tests run on this system so they can be shared between configure
39303# scripts and configure runs, see configure's option --config-cache.
39304# It is not useful on other systems. If it contains results you don't
39305# want to keep, you may remove or edit it.
39306#
39307# config.status only pays attention to the cache file if you give it
39308# the --recheck option to rerun configure.
39309#
39310# `ac_cv_env_foo' variables (set or unset) will be overridden when
39311# loading this file, other *unset* `ac_cv_foo' will be assigned the
39312# following values.
39313
39314_ACEOF
39315
39316# The following way of writing the cache mishandles newlines in values,
39317# but we know of no workaround that is simple, portable, and efficient.
39318# So, don't put newlines in cache variables' values.
39319# Ultrix sh set writes to stderr and can't be redirected directly,
39320# and sets the high bit in the cache file unless we assign to the vars.
39321{
39322 (set) 2>&1 |
39323 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39324 *ac_space=\ *)
39325 # `set' does not quote correctly, so add quotes (double-quote
39326 # substitution turns \\\\ into \\, and sed turns \\ into \).
39327 sed -n \
de59c161
RD
39328 "s/'/'\\\\''/g;
39329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
39330 ;;
39331 *)
39332 # `set' quotes correctly as required by POSIX, so do not add quotes.
39333 sed -n \
de59c161 39334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
39335 ;;
39336 esac;
39337} |
39338 sed '
39339 t clear
39340 : clear
39341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39342 t end
39343 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39344 : end' >>confcache
39345if diff $cache_file confcache >/dev/null 2>&1; then :; else
39346 if test -w $cache_file; then
39347 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39348 cat confcache >$cache_file
39349 else
39350 echo "not updating unwritable cache $cache_file"
39351 fi
39352fi
39353rm -f confcache
39354
39355test "x$prefix" = xNONE && prefix=$ac_default_prefix
39356# Let make expand exec_prefix.
39357test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39358
39359# VPATH may cause trouble with some makes, so we remove $(srcdir),
39360# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39361# trailing colons and then remove the whole line if VPATH becomes empty
39362# (actually we leave an empty line to preserve line numbers).
39363if test "x$srcdir" = x.; then
de59c161 39364 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
39365s/:*\$(srcdir):*/:/;
39366s/:*\${srcdir}:*/:/;
39367s/:*@srcdir@:*/:/;
de59c161 39368s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 39369s/:*$//;
de59c161 39370s/^[^=]*=[ ]*$//;
a848cd7e
SC
39371}'
39372fi
39373
39374DEFS=-DHAVE_CONFIG_H
39375
39376ac_libobjs=
39377ac_ltlibobjs=
39378for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39379 # 1. Remove the extension, and $U if already installed.
39380 ac_i=`echo "$ac_i" |
de59c161 39381 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
39382 # 2. Add them.
39383 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39384 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39385done
39386LIBOBJS=$ac_libobjs
39387
39388LTLIBOBJS=$ac_ltlibobjs
39389
39390
39391
39392: ${CONFIG_STATUS=./config.status}
39393ac_clean_files_save=$ac_clean_files
39394ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39395{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39396echo "$as_me: creating $CONFIG_STATUS" >&6;}
39397cat >$CONFIG_STATUS <<_ACEOF
39398#! $SHELL
39399# Generated by $as_me.
39400# Run this file to recreate the current configuration.
39401# Compiler output produced by configure, useful for debugging
39402# configure, is in config.log if it exists.
39403
39404debug=false
39405ac_cs_recheck=false
39406ac_cs_silent=false
39407SHELL=\${CONFIG_SHELL-$SHELL}
39408_ACEOF
39409
39410cat >>$CONFIG_STATUS <<\_ACEOF
39411## --------------------- ##
39412## M4sh Initialization. ##
39413## --------------------- ##
39414
39415# Be Bourne compatible
39416if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39417 emulate sh
39418 NULLCMD=:
39419 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39420 # is contrary to our usage. Disable this feature.
39421 alias -g '${1+"$@"}'='"$@"'
39422elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39423 set -o posix
39424fi
a848cd7e
SC
39425
39426# Support unset when possible.
de59c161 39427if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
a848cd7e
SC
39428 as_unset=unset
39429else
39430 as_unset=false
39431fi
39432
39433
39434# Work around bugs in pre-3.0 UWIN ksh.
39435$as_unset ENV MAIL MAILPATH
39436PS1='$ '
39437PS2='> '
39438PS4='+ '
39439
39440# NLS nuisances.
39441for as_var in \
39442 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39443 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39444 LC_TELEPHONE LC_TIME
39445do
de59c161 39446 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
39447 eval $as_var=C; export $as_var
39448 else
39449 $as_unset $as_var
39450 fi
39451done
39452
39453# Required to use basename.
39454if expr a : '\(a\)' >/dev/null 2>&1; then
39455 as_expr=expr
39456else
39457 as_expr=false
39458fi
39459
39460if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39461 as_basename=basename
39462else
39463 as_basename=false
39464fi
39465
39466
39467# Name of the executable.
39468as_me=`$as_basename "$0" ||
39469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39470 X"$0" : 'X\(//\)$' \| \
39471 X"$0" : 'X\(/\)$' \| \
39472 . : '\(.\)' 2>/dev/null ||
39473echo X/"$0" |
39474 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39475 /^X\/\(\/\/\)$/{ s//\1/; q; }
39476 /^X\/\(\/\).*/{ s//\1/; q; }
39477 s/.*/./; q'`
39478
39479
39480# PATH needs CR, and LINENO needs CR and PATH.
39481# Avoid depending upon Character Ranges.
39482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39485as_cr_digits='0123456789'
39486as_cr_alnum=$as_cr_Letters$as_cr_digits
39487
39488# The user is always right.
39489if test "${PATH_SEPARATOR+set}" != set; then
39490 echo "#! /bin/sh" >conf$$.sh
39491 echo "exit 0" >>conf$$.sh
39492 chmod +x conf$$.sh
39493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39494 PATH_SEPARATOR=';'
39495 else
39496 PATH_SEPARATOR=:
39497 fi
39498 rm -f conf$$.sh
39499fi
39500
39501
39502 as_lineno_1=$LINENO
39503 as_lineno_2=$LINENO
39504 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39505 test "x$as_lineno_1" != "x$as_lineno_2" &&
39506 test "x$as_lineno_3" = "x$as_lineno_2" || {
39507 # Find who we are. Look in the path if we contain no path at all
39508 # relative or not.
39509 case $0 in
39510 *[\\/]* ) as_myself=$0 ;;
39511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39512for as_dir in $PATH
39513do
39514 IFS=$as_save_IFS
39515 test -z "$as_dir" && as_dir=.
39516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39517done
39518
39519 ;;
39520 esac
39521 # We did not find ourselves, most probably we were run as `sh COMMAND'
39522 # in which case we are not to be found in the path.
39523 if test "x$as_myself" = x; then
39524 as_myself=$0
39525 fi
39526 if test ! -f "$as_myself"; then
39527 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39528echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39529 { (exit 1); exit 1; }; }
39530 fi
39531 case $CONFIG_SHELL in
39532 '')
39533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39534for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39535do
39536 IFS=$as_save_IFS
39537 test -z "$as_dir" && as_dir=.
39538 for as_base in sh bash ksh sh5; do
39539 case $as_dir in
39540 /*)
39541 if ("$as_dir/$as_base" -c '
39542 as_lineno_1=$LINENO
39543 as_lineno_2=$LINENO
39544 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39545 test "x$as_lineno_1" != "x$as_lineno_2" &&
39546 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39547 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39548 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39549 CONFIG_SHELL=$as_dir/$as_base
39550 export CONFIG_SHELL
39551 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39552 fi;;
39553 esac
39554 done
39555done
39556;;
39557 esac
39558
39559 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39560 # uniformly replaced by the line number. The first 'sed' inserts a
39561 # line-number line before each line; the second 'sed' does the real
39562 # work. The second script uses 'N' to pair each line-number line
39563 # with the numbered line, and appends trailing '-' during
39564 # substitution so that $LINENO is not a special case at line end.
39565 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39566 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39567 sed '=' <$as_myself |
39568 sed '
39569 N
39570 s,$,-,
39571 : loop
39572 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39573 t loop
39574 s,-$,,
39575 s,^['$as_cr_digits']*\n,,
39576 ' >$as_me.lineno &&
39577 chmod +x $as_me.lineno ||
39578 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39579echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39580 { (exit 1); exit 1; }; }
39581
39582 # Don't try to exec as it changes $[0], causing all sort of problems
39583 # (the dirname of $[0] is not the place where we might find the
39584 # original and so on. Autoconf is especially sensible to this).
39585 . ./$as_me.lineno
39586 # Exit status is that of the last command.
39587 exit
39588}
39589
39590
39591case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39592 *c*,-n*) ECHO_N= ECHO_C='
39593' ECHO_T=' ' ;;
39594 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39595 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39596esac
39597
39598if expr a : '\(a\)' >/dev/null 2>&1; then
39599 as_expr=expr
39600else
39601 as_expr=false
39602fi
39603
39604rm -f conf$$ conf$$.exe conf$$.file
39605echo >conf$$.file
39606if ln -s conf$$.file conf$$ 2>/dev/null; then
39607 # We could just check for DJGPP; but this test a) works b) is more generic
39608 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39609 if test -f conf$$.exe; then
39610 # Don't use ln at all; we don't have any links
39611 as_ln_s='cp -p'
39612 else
39613 as_ln_s='ln -s'
39614 fi
39615elif ln conf$$.file conf$$ 2>/dev/null; then
39616 as_ln_s=ln
39617else
39618 as_ln_s='cp -p'
39619fi
39620rm -f conf$$ conf$$.exe conf$$.file
39621
39622if mkdir -p . 2>/dev/null; then
39623 as_mkdir_p=:
39624else
a848cd7e
SC
39625 as_mkdir_p=false
39626fi
39627
39628as_executable_p="test -f"
39629
39630# Sed expression to map a string onto a valid CPP name.
de59c161 39631as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
a848cd7e
SC
39632
39633# Sed expression to map a string onto a valid variable name.
de59c161 39634as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
a848cd7e
SC
39635
39636
39637# IFS
39638# We need space, tab and new line, in precisely that order.
39639as_nl='
39640'
39641IFS=" $as_nl"
39642
39643# CDPATH.
39644$as_unset CDPATH
39645
39646exec 6>&1
39647
39648# Open the log real soon, to keep \$[0] and so on meaningful, and to
39649# report actual input values of CONFIG_FILES etc. instead of their
39650# values after options handling. Logging --version etc. is OK.
39651exec 5>>config.log
39652{
39653 echo
39654 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39655## Running $as_me. ##
39656_ASBOX
39657} >&5
39658cat >&5 <<_CSEOF
39659
77ffb593 39660This file was extended by wxWidgets $as_me 2.5.2, which was
de59c161 39661generated by GNU Autoconf 2.57. Invocation command line was
a848cd7e
SC
39662
39663 CONFIG_FILES = $CONFIG_FILES
39664 CONFIG_HEADERS = $CONFIG_HEADERS
39665 CONFIG_LINKS = $CONFIG_LINKS
39666 CONFIG_COMMANDS = $CONFIG_COMMANDS
39667 $ $0 $@
39668
39669_CSEOF
39670echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39671echo >&5
39672_ACEOF
39673
39674# Files that config.status was made for.
39675if test -n "$ac_config_files"; then
39676 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39677fi
39678
39679if test -n "$ac_config_headers"; then
39680 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39681fi
39682
39683if test -n "$ac_config_links"; then
39684 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39685fi
39686
39687if test -n "$ac_config_commands"; then
39688 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39689fi
39690
39691cat >>$CONFIG_STATUS <<\_ACEOF
39692
39693ac_cs_usage="\
39694\`$as_me' instantiates files from templates according to the
39695current configuration.
39696
39697Usage: $0 [OPTIONS] [FILE]...
39698
39699 -h, --help print this help, then exit
39700 -V, --version print version number, then exit
39701 -q, --quiet do not print progress messages
39702 -d, --debug don't remove temporary files
39703 --recheck update $as_me by reconfiguring in the same conditions
39704 --file=FILE[:TEMPLATE]
de59c161 39705 instantiate the configuration file FILE
a848cd7e 39706 --header=FILE[:TEMPLATE]
de59c161 39707 instantiate the configuration header FILE
a848cd7e
SC
39708
39709Configuration files:
39710$config_files
39711
39712Configuration headers:
39713$config_headers
39714
39715Configuration commands:
39716$config_commands
39717
39718Report bugs to <bug-autoconf@gnu.org>."
39719_ACEOF
39720
39721cat >>$CONFIG_STATUS <<_ACEOF
39722ac_cs_version="\\
77ffb593 39723wxWidgets config.status 2.5.2
de59c161 39724configured by $0, generated by GNU Autoconf 2.57,
a848cd7e
SC
39725 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39726
de59c161
RD
39727Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
39728Free Software Foundation, Inc.
a848cd7e
SC
39729This config.status script is free software; the Free Software Foundation
39730gives unlimited permission to copy, distribute and modify it."
39731srcdir=$srcdir
39732INSTALL="$INSTALL"
39733_ACEOF
39734
39735cat >>$CONFIG_STATUS <<\_ACEOF
39736# If no file are specified by the user, then we need to provide default
39737# value. By we need to know if files were specified by the user.
39738ac_need_defaults=:
39739while test $# != 0
39740do
39741 case $1 in
39742 --*=*)
39743 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39744 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39745 ac_shift=:
39746 ;;
39747 -*)
39748 ac_option=$1
39749 ac_optarg=$2
39750 ac_shift=shift
39751 ;;
39752 *) # This is not an option, so the user has probably given explicit
39753 # arguments.
39754 ac_option=$1
39755 ac_need_defaults=false;;
39756 esac
39757
39758 case $ac_option in
39759 # Handling of the options.
39760_ACEOF
39761cat >>$CONFIG_STATUS <<\_ACEOF
39762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39763 ac_cs_recheck=: ;;
39764 --version | --vers* | -V )
39765 echo "$ac_cs_version"; exit 0 ;;
39766 --he | --h)
39767 # Conflict between --help and --header
39768 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39769Try \`$0 --help' for more information." >&5
39770echo "$as_me: error: ambiguous option: $1
39771Try \`$0 --help' for more information." >&2;}
39772 { (exit 1); exit 1; }; };;
39773 --help | --hel | -h )
39774 echo "$ac_cs_usage"; exit 0 ;;
39775 --debug | --d* | -d )
39776 debug=: ;;
39777 --file | --fil | --fi | --f )
39778 $ac_shift
39779 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39780 ac_need_defaults=false;;
39781 --header | --heade | --head | --hea )
39782 $ac_shift
39783 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39784 ac_need_defaults=false;;
39785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39786 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39787 ac_cs_silent=: ;;
39788
39789 # This is an error.
39790 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39791Try \`$0 --help' for more information." >&5
39792echo "$as_me: error: unrecognized option: $1
39793Try \`$0 --help' for more information." >&2;}
39794 { (exit 1); exit 1; }; } ;;
39795
39796 *) ac_config_targets="$ac_config_targets $1" ;;
39797
39798 esac
39799 shift
39800done
39801
39802ac_configure_extra_args=
39803
39804if $ac_cs_silent; then
39805 exec 6>/dev/null
39806 ac_configure_extra_args="$ac_configure_extra_args --silent"
39807fi
39808
39809_ACEOF
39810cat >>$CONFIG_STATUS <<_ACEOF
39811if \$ac_cs_recheck; then
39812 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39813 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39814fi
39815
39816_ACEOF
39817
39818cat >>$CONFIG_STATUS <<_ACEOF
39819#
39820# INIT-COMMANDS section.
39821#
39822
39823
39824 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
39825 LN_S="${LN_S}"
39826
39827
39828
39829_ACEOF
39830
39831
39832
39833cat >>$CONFIG_STATUS <<\_ACEOF
39834for ac_config_target in $ac_config_targets
39835do
39836 case "$ac_config_target" in
39837 # Handling of arguments.
39838 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
39839 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
39840 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39841 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
39842 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39843 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
39844 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39845echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39846 { (exit 1); exit 1; }; };;
39847 esac
39848done
39849
39850# If the user did not use the arguments to specify the items to instantiate,
39851# then the envvar interface is used. Set only those that are not.
39852# We use the long form for the default assignment because of an extremely
39853# bizarre bug on SunOS 4.1.3.
39854if $ac_need_defaults; then
39855 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39856 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39857 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39858fi
39859
39860# Have a temporary directory for convenience. Make it in the build tree
39861# simply because there is no reason to put it here, and in addition,
39862# creating and moving files from /tmp can sometimes cause problems.
39863# Create a temporary directory, and hook for its removal unless debugging.
39864$debug ||
39865{
39866 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39867 trap '{ (exit 1); exit 1; }' 1 2 13 15
39868}
39869
39870# Create a (secure) tmp directory for tmp files.
39871
39872{
39873 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39874 test -n "$tmp" && test -d "$tmp"
39875} ||
39876{
39877 tmp=./confstat$$-$RANDOM
39878 (umask 077 && mkdir $tmp)
39879} ||
39880{
39881 echo "$me: cannot create a temporary directory in ." >&2
39882 { (exit 1); exit 1; }
39883}
39884
39885_ACEOF
39886
39887cat >>$CONFIG_STATUS <<_ACEOF
39888
39889#
39890# CONFIG_FILES section.
39891#
39892
39893# No need to generate the scripts if there are no CONFIG_FILES.
39894# This happens for instance when ./config.status config.h
39895if test -n "\$CONFIG_FILES"; then
39896 # Protect against being on the right side of a sed subst in config.status.
39897 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39898 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39899s,@SHELL@,$SHELL,;t t
39900s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39901s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39902s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39903s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39904s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39905s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39906s,@exec_prefix@,$exec_prefix,;t t
39907s,@prefix@,$prefix,;t t
39908s,@program_transform_name@,$program_transform_name,;t t
39909s,@bindir@,$bindir,;t t
39910s,@sbindir@,$sbindir,;t t
39911s,@libexecdir@,$libexecdir,;t t
39912s,@datadir@,$datadir,;t t
39913s,@sysconfdir@,$sysconfdir,;t t
39914s,@sharedstatedir@,$sharedstatedir,;t t
39915s,@localstatedir@,$localstatedir,;t t
39916s,@libdir@,$libdir,;t t
39917s,@includedir@,$includedir,;t t
39918s,@oldincludedir@,$oldincludedir,;t t
39919s,@infodir@,$infodir,;t t
39920s,@mandir@,$mandir,;t t
39921s,@build_alias@,$build_alias,;t t
39922s,@host_alias@,$host_alias,;t t
39923s,@target_alias@,$target_alias,;t t
39924s,@DEFS@,$DEFS,;t t
39925s,@ECHO_C@,$ECHO_C,;t t
39926s,@ECHO_N@,$ECHO_N,;t t
39927s,@ECHO_T@,$ECHO_T,;t t
39928s,@LIBS@,$LIBS,;t t
39929s,@build@,$build,;t t
39930s,@build_cpu@,$build_cpu,;t t
39931s,@build_vendor@,$build_vendor,;t t
39932s,@build_os@,$build_os,;t t
39933s,@host@,$host,;t t
39934s,@host_cpu@,$host_cpu,;t t
39935s,@host_vendor@,$host_vendor,;t t
39936s,@host_os@,$host_os,;t t
39937s,@target@,$target,;t t
39938s,@target_cpu@,$target_cpu,;t t
39939s,@target_vendor@,$target_vendor,;t t
39940s,@target_os@,$target_os,;t t
39941s,@CC@,$CC,;t t
39942s,@CFLAGS@,$CFLAGS,;t t
39943s,@LDFLAGS@,$LDFLAGS,;t t
39944s,@CPPFLAGS@,$CPPFLAGS,;t t
39945s,@ac_ct_CC@,$ac_ct_CC,;t t
39946s,@EXEEXT@,$EXEEXT,;t t
39947s,@OBJEXT@,$OBJEXT,;t t
39948s,@CPP@,$CPP,;t t
39949s,@EGREP@,$EGREP,;t t
39950s,@CXX@,$CXX,;t t
39951s,@CXXFLAGS@,$CXXFLAGS,;t t
39952s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39953s,@RANLIB@,$RANLIB,;t t
39954s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39955s,@AR@,$AR,;t t
39956s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39957s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39958s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39959s,@STRIP@,$STRIP,;t t
39960s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
39961s,@LN_S@,$LN_S,;t t
39962s,@CXXCPP@,$CXXCPP,;t t
39963s,@subdirs@,$subdirs,;t t
39964s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39965s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
39966s,@GTK_LIBS@,$GTK_LIBS,;t t
39967s,@GTK_CONFIG@,$GTK_CONFIG,;t t
39968s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
39969s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
39970s,@X_CFLAGS@,$X_CFLAGS,;t t
39971s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
39972s,@X_LIBS@,$X_LIBS,;t t
39973s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
39974s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
39975s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
39976s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
39977s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
39978s,@RESCOMP@,$RESCOMP,;t t
39979s,@DEREZ@,$DEREZ,;t t
39980s,@SETFILE@,$SETFILE,;t t
39981s,@LIBICONV@,$LIBICONV,;t t
39982s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
39983s,@SDL_CONFIG@,$SDL_CONFIG,;t t
39984s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
39985s,@SDL_LIBS@,$SDL_LIBS,;t t
39986s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
39987s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
39988s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
39989s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
39990s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
39991s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
39992s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
39993s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
39994s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
39995s,@VENDOR@,$VENDOR,;t t
39996s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
39997s,@WXUNIV@,$WXUNIV,;t t
39998s,@MONOLITHIC@,$MONOLITHIC,;t t
39999s,@USE_PLUGINS@,$USE_PLUGINS,;t t
40000s,@EXTRALIBS@,$EXTRALIBS,;t t
40001s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
40002s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
40003s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
40004s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
40005s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
40006s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40007s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
40008s,@UNICODE@,$UNICODE,;t t
40009s,@BUILD@,$BUILD,;t t
40010s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40011s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
40012s,@SHARED@,$SHARED,;t t
40013s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40014s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40015s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
40016s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
40017s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
40018s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
40019s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
40020s,@SET_MAKE@,$SET_MAKE,;t t
40021s,@MAKE_SET@,$MAKE_SET,;t t
40022s,@ac_ct_AR@,$ac_ct_AR,;t t
40023s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40024s,@NM@,$NM,;t t
40025s,@ac_ct_NM@,$ac_ct_NM,;t t
40026s,@INSTALL_DIR@,$INSTALL_DIR,;t t
40027s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
40028s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40029s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40030s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40031s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40032s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
40033s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
40034s,@SO_SUFFIX@,$SO_SUFFIX,;t t
40035s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
40036s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
40037s,@LIBPREFIX@,$LIBPREFIX,;t t
40038s,@LIBEXT@,$LIBEXT,;t t
40039s,@DLLPREFIX@,$DLLPREFIX,;t t
40040s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
40041s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
40042s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
40043s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
40044s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
40045s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
40046s,@PIC_FLAG@,$PIC_FLAG,;t t
40047s,@USE_SOVERSION@,$USE_SOVERSION,;t t
40048s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
40049s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
40050s,@USE_MACVERSION@,$USE_MACVERSION,;t t
40051s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
40052s,@SONAME_FLAG@,$SONAME_FLAG,;t t
40053s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
40054s,@GCC_PCH@,$GCC_PCH,;t t
40055s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
40056s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
40057s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
40058s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
40059s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
40060s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
40061s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
40062s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
40063s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
40064s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
40065s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
40066s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
40067s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
40068s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
40069s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
40070s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
40071s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
40072s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
40073s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
40074s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
40075s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
40076s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
40077s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
40078s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
40079s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
40080s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
40081s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
40082s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
40083s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
40084s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
40085s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
40086s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
40087s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
40088s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
40089s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
40090s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
40091s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
40092s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
40093s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
40094s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
40095s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
40096s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
40097s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
40098s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
40099s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
40100s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
40101s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
40102s,@COND_SHARED_0@,$COND_SHARED_0,;t t
40103s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
40104s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40105s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40106s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40107s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
40108s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
40109s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
40110s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
40111s,@COND_SHARED_1@,$COND_SHARED_1,;t t
40112s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
40113s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
40114s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
40115s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
40116s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
40117s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
40118s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
40119s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
40120s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
40121s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
40122s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
40123s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
40124s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
40125s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
40126s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
40127s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
40128s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
40129s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
40130s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
40131s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
40132s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
40133s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
40134s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
40135s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
40136s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
40137s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
40138s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
40139s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
40140s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
40141s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
40142s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
40143s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
40144s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40145s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40146s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40147s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
40148s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
40149s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
40150s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
40151s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
40152s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
40153s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
40154s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
40155s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
40156s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
40157s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
40158s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
40159s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
40160s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
40161s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
40162s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
40163s,@PATH_IFS@,$PATH_IFS,;t t
40164s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
40165s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
40166s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
40167s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
40168s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
40169s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
40170s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
40171s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
40172s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
40173s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
40174s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
40175s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
40176s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
40177s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
40178s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
40179s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
40180s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
40181s,@WX_ALL@,$WX_ALL,;t t
40182s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
40183s,@SHARED_LD@,$SHARED_LD,;t t
40184s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
40185s,@STATIC_FLAG@,$STATIC_FLAG,;t t
40186s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
40187s,@USE_GUI@,$USE_GUI,;t t
40188s,@AFMINSTALL@,$AFMINSTALL,;t t
40189s,@WIN32INSTALL@,$WIN32INSTALL,;t t
40190s,@TOOLKIT@,$TOOLKIT,;t t
40191s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
40192s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
40193s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
40194s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
40195s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
40196s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
40197s,@cross_compiling@,$cross_compiling,;t t
40198s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
40199s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
40200s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
40201s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
40202s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
40203s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
40204s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
40205s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
40206s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
40207s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
40208s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
40209s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
40210s,@ALL_HEADERS@,$ALL_HEADERS,;t t
40211s,@ALL_SOURCES@,$ALL_SOURCES,;t t
40212s,@GUIDIST@,$GUIDIST,;t t
40213s,@PORT_FILES@,$PORT_FILES,;t t
40214s,@DISTDIR@,$DISTDIR,;t t
40215s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
40216s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
40217s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
40218s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
40219s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
40220s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
40221s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
40222s,@RESFLAGS@,$RESFLAGS,;t t
40223s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
40224s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
40225s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
40226s,@LIBWXMACRES@,$LIBWXMACRES,;t t
40227s,@MACRESCOMP@,$MACRESCOMP,;t t
40228s,@MACSETFILE@,$MACSETFILE,;t t
40229s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
40230s,@GCC@,$GCC,;t t
40231s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
40232s,@DLLTOOL@,$DLLTOOL,;t t
40233s,@AS@,$AS,;t t
40234s,@LD@,$LD,;t t
40235s,@MAKEINFO@,$MAKEINFO,;t t
40236s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
40237s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
40238s,@LIBOBJS@,$LIBOBJS,;t t
40239s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40240CEOF
40241
40242_ACEOF
40243
40244 cat >>$CONFIG_STATUS <<\_ACEOF
40245 # Split the substitutions into bite-sized pieces for seds with
40246 # small command number limits, like on Digital OSF/1 and HP-UX.
40247 ac_max_sed_lines=48
40248 ac_sed_frag=1 # Number of current file.
40249 ac_beg=1 # First line for current file.
40250 ac_end=$ac_max_sed_lines # Line after last line for current file.
40251 ac_more_lines=:
40252 ac_sed_cmds=
40253 while $ac_more_lines; do
40254 if test $ac_beg -gt 1; then
40255 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40256 else
40257 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40258 fi
40259 if test ! -s $tmp/subs.frag; then
40260 ac_more_lines=false
40261 else
40262 # The purpose of the label and of the branching condition is to
40263 # speed up the sed processing (if there are no `@' at all, there
40264 # is no need to browse any of the substitutions).
40265 # These are the two extra sed commands mentioned above.
40266 (echo ':t
40267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40268 if test -z "$ac_sed_cmds"; then
de59c161 40269 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 40270 else
de59c161 40271 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
40272 fi
40273 ac_sed_frag=`expr $ac_sed_frag + 1`
40274 ac_beg=$ac_end
40275 ac_end=`expr $ac_end + $ac_max_sed_lines`
40276 fi
40277 done
40278 if test -z "$ac_sed_cmds"; then
40279 ac_sed_cmds=cat
40280 fi
40281fi # test -n "$CONFIG_FILES"
40282
40283_ACEOF
40284cat >>$CONFIG_STATUS <<\_ACEOF
40285for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40286 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40287 case $ac_file in
40288 - | *:- | *:-:* ) # input from stdin
de59c161
RD
40289 cat >$tmp/stdin
40290 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 40292 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
de59c161 40293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
40294 * ) ac_file_in=$ac_file.in ;;
40295 esac
40296
40297 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40298 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40299$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
de59c161
RD
40300 X"$ac_file" : 'X\(//\)[^/]' \| \
40301 X"$ac_file" : 'X\(//\)$' \| \
40302 X"$ac_file" : 'X\(/\)' \| \
40303 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40304echo X"$ac_file" |
40305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40307 /^X\(\/\/\)$/{ s//\1/; q; }
40308 /^X\(\/\).*/{ s//\1/; q; }
40309 s/.*/./; q'`
40310 { if $as_mkdir_p; then
40311 mkdir -p "$ac_dir"
40312 else
40313 as_dir="$ac_dir"
40314 as_dirs=
40315 while test ! -d "$as_dir"; do
40316 as_dirs="$as_dir $as_dirs"
40317 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40318$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
de59c161
RD
40319 X"$as_dir" : 'X\(//\)[^/]' \| \
40320 X"$as_dir" : 'X\(//\)$' \| \
40321 X"$as_dir" : 'X\(/\)' \| \
40322 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40323echo X"$as_dir" |
40324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40326 /^X\(\/\/\)$/{ s//\1/; q; }
40327 /^X\(\/\).*/{ s//\1/; q; }
40328 s/.*/./; q'`
40329 done
40330 test ! -n "$as_dirs" || mkdir $as_dirs
40331 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40332echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40333 { (exit 1); exit 1; }; }; }
40334
40335 ac_builddir=.
40336
40337if test "$ac_dir" != .; then
40338 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40339 # A "../" for each directory in $ac_dir_suffix.
40340 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40341else
40342 ac_dir_suffix= ac_top_builddir=
40343fi
40344
40345case $srcdir in
40346 .) # No --srcdir option. We are building in place.
40347 ac_srcdir=.
40348 if test -z "$ac_top_builddir"; then
40349 ac_top_srcdir=.
40350 else
40351 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40352 fi ;;
40353 [\\/]* | ?:[\\/]* ) # Absolute path.
40354 ac_srcdir=$srcdir$ac_dir_suffix;
40355 ac_top_srcdir=$srcdir ;;
40356 *) # Relative path.
40357 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40358 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40359esac
de59c161
RD
40360# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40361# absolute.
40362ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40363ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40364ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40365ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a848cd7e
SC
40366
40367
40368 case $INSTALL in
40369 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40370 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40371 esac
40372
dcc1b6ad
VS
40373 if test x"$ac_file" != x-; then
40374 { echo "$as_me:$LINENO: creating $ac_file" >&5
40375echo "$as_me: creating $ac_file" >&6;}
40376 rm -f "$ac_file"
40377 fi
a848cd7e
SC
40378 # Let's still pretend it is `configure' which instantiates (i.e., don't
40379 # use $as_me), people would be surprised to read:
40380 # /* config.h. Generated by config.status. */
40381 if test x"$ac_file" = x-; then
40382 configure_input=
40383 else
40384 configure_input="$ac_file. "
40385 fi
40386 configure_input=$configure_input"Generated from `echo $ac_file_in |
de59c161 40387 sed 's,.*/,,'` by configure."
a848cd7e
SC
40388
40389 # First look for the input files in the build tree, otherwise in the
40390 # src tree.
40391 ac_file_inputs=`IFS=:
40392 for f in $ac_file_in; do
40393 case $f in
40394 -) echo $tmp/stdin ;;
40395 [\\/$]*)
de59c161
RD
40396 # Absolute (can't be DOS-style, as IFS=:)
40397 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
40398echo "$as_me: error: cannot find input file: $f" >&2;}
40399 { (exit 1); exit 1; }; }
de59c161 40400 echo $f;;
a848cd7e 40401 *) # Relative
de59c161
RD
40402 if test -f "$f"; then
40403 # Build tree
40404 echo $f
40405 elif test -f "$srcdir/$f"; then
40406 # Source tree
40407 echo $srcdir/$f
40408 else
40409 # /dev/null tree
40410 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
40411echo "$as_me: error: cannot find input file: $f" >&2;}
40412 { (exit 1); exit 1; }; }
de59c161 40413 fi;;
a848cd7e
SC
40414 esac
40415 done` || { (exit 1); exit 1; }
40416_ACEOF
40417cat >>$CONFIG_STATUS <<_ACEOF
40418 sed "$ac_vpsub
40419$extrasub
40420_ACEOF
40421cat >>$CONFIG_STATUS <<\_ACEOF
40422:t
40423/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40424s,@configure_input@,$configure_input,;t t
40425s,@srcdir@,$ac_srcdir,;t t
40426s,@abs_srcdir@,$ac_abs_srcdir,;t t
40427s,@top_srcdir@,$ac_top_srcdir,;t t
40428s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40429s,@builddir@,$ac_builddir,;t t
40430s,@abs_builddir@,$ac_abs_builddir,;t t
40431s,@top_builddir@,$ac_top_builddir,;t t
40432s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40433s,@INSTALL@,$ac_INSTALL,;t t
40434" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40435 rm -f $tmp/stdin
40436 if test x"$ac_file" != x-; then
40437 mv $tmp/out $ac_file
40438 else
40439 cat $tmp/out
40440 rm -f $tmp/out
40441 fi
40442
40443done
40444_ACEOF
40445cat >>$CONFIG_STATUS <<\_ACEOF
40446
40447#
40448# CONFIG_HEADER section.
40449#
40450
40451# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40452# NAME is the cpp macro being defined and VALUE is the value it is being given.
40453#
40454# ac_d sets the value in "#define NAME VALUE" lines.
de59c161
RD
40455ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40456ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
40457ac_dC=' '
40458ac_dD=',;t'
40459# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
de59c161 40460ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
40461ac_uB='$,\1#\2define\3'
40462ac_uC=' '
40463ac_uD=',;t'
40464
40465for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40466 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40467 case $ac_file in
40468 - | *:- | *:-:* ) # input from stdin
de59c161
RD
40469 cat >$tmp/stdin
40470 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40471 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 40472 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
de59c161 40473 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
40474 * ) ac_file_in=$ac_file.in ;;
40475 esac
40476
40477 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40478echo "$as_me: creating $ac_file" >&6;}
40479
40480 # First look for the input files in the build tree, otherwise in the
40481 # src tree.
40482 ac_file_inputs=`IFS=:
40483 for f in $ac_file_in; do
40484 case $f in
40485 -) echo $tmp/stdin ;;
40486 [\\/$]*)
de59c161
RD
40487 # Absolute (can't be DOS-style, as IFS=:)
40488 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
40489echo "$as_me: error: cannot find input file: $f" >&2;}
40490 { (exit 1); exit 1; }; }
de59c161 40491 echo $f;;
a848cd7e 40492 *) # Relative
de59c161
RD
40493 if test -f "$f"; then
40494 # Build tree
40495 echo $f
40496 elif test -f "$srcdir/$f"; then
40497 # Source tree
40498 echo $srcdir/$f
40499 else
40500 # /dev/null tree
40501 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
40502echo "$as_me: error: cannot find input file: $f" >&2;}
40503 { (exit 1); exit 1; }; }
de59c161 40504 fi;;
a848cd7e
SC
40505 esac
40506 done` || { (exit 1); exit 1; }
40507 # Remove the trailing spaces.
de59c161 40508 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
40509
40510_ACEOF
40511
40512# Transform confdefs.h into two sed scripts, `conftest.defines' and
40513# `conftest.undefs', that substitutes the proper values into
40514# config.h.in to produce config.h. The first handles `#define'
40515# templates, and the second `#undef' templates.
40516# And first: Protect against being on the right side of a sed subst in
40517# config.status. Protect against being in an unquoted here document
40518# in config.status.
40519rm -f conftest.defines conftest.undefs
40520# Using a here document instead of a string reduces the quoting nightmare.
40521# Putting comments in sed scripts is not portable.
40522#
40523# `end' is used to avoid that the second main sed command (meant for
40524# 0-ary CPP macros) applies to n-ary macro definitions.
40525# See the Autoconf documentation for `clear'.
40526cat >confdef2sed.sed <<\_ACEOF
40527s/[\\&,]/\\&/g
40528s,[\\$`],\\&,g
40529t clear
40530: clear
de59c161 40531s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 40532t end
de59c161 40533s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
40534: end
40535_ACEOF
40536# If some macros were called several times there might be several times
40537# the same #defines, which is useless. Nevertheless, we may not want to
40538# sort them, since we want the *last* AC-DEFINE to be honored.
40539uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40540sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40541rm -f confdef2sed.sed
40542
40543# This sed command replaces #undef with comments. This is necessary, for
40544# example, in the case of _POSIX_SOURCE, which is predefined and required
40545# on some systems where configure will not decide to define it.
40546cat >>conftest.undefs <<\_ACEOF
de59c161 40547s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
40548_ACEOF
40549
40550# Break up conftest.defines because some shells have a limit on the size
40551# of here documents, and old seds have small limits too (100 cmds).
40552echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
de59c161 40553echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
40554echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40555echo ' :' >>$CONFIG_STATUS
40556rm -f conftest.tail
40557while grep . conftest.defines >/dev/null
40558do
40559 # Write a limited-size here document to $tmp/defines.sed.
40560 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40561 # Speed up: don't consider the non `#define' lines.
de59c161 40562 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
40563 # Work around the forget-to-reset-the-flag bug.
40564 echo 't clr' >>$CONFIG_STATUS
40565 echo ': clr' >>$CONFIG_STATUS
40566 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40567 echo 'CEOF
40568 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40569 rm -f $tmp/in
40570 mv $tmp/out $tmp/in
40571' >>$CONFIG_STATUS
40572 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40573 rm -f conftest.defines
40574 mv conftest.tail conftest.defines
40575done
40576rm -f conftest.defines
40577echo ' fi # grep' >>$CONFIG_STATUS
40578echo >>$CONFIG_STATUS
40579
40580# Break up conftest.undefs because some shells have a limit on the size
40581# of here documents, and old seds have small limits too (100 cmds).
40582echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40583rm -f conftest.tail
40584while grep . conftest.undefs >/dev/null
40585do
40586 # Write a limited-size here document to $tmp/undefs.sed.
40587 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40588 # Speed up: don't consider the non `#undef'
de59c161 40589 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
40590 # Work around the forget-to-reset-the-flag bug.
40591 echo 't clr' >>$CONFIG_STATUS
40592 echo ': clr' >>$CONFIG_STATUS
40593 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40594 echo 'CEOF
40595 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40596 rm -f $tmp/in
40597 mv $tmp/out $tmp/in
40598' >>$CONFIG_STATUS
40599 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40600 rm -f conftest.undefs
40601 mv conftest.tail conftest.undefs
40602done
40603rm -f conftest.undefs
40604
40605cat >>$CONFIG_STATUS <<\_ACEOF
40606 # Let's still pretend it is `configure' which instantiates (i.e., don't
40607 # use $as_me), people would be surprised to read:
40608 # /* config.h. Generated by config.status. */
40609 if test x"$ac_file" = x-; then
40610 echo "/* Generated by configure. */" >$tmp/config.h
40611 else
40612 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40613 fi
40614 cat $tmp/in >>$tmp/config.h
40615 rm -f $tmp/in
40616 if test x"$ac_file" != x-; then
40617 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40619echo "$as_me: $ac_file is unchanged" >&6;}
40620 else
40621 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40622$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
de59c161
RD
40623 X"$ac_file" : 'X\(//\)[^/]' \| \
40624 X"$ac_file" : 'X\(//\)$' \| \
40625 X"$ac_file" : 'X\(/\)' \| \
40626 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40627echo X"$ac_file" |
40628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40630 /^X\(\/\/\)$/{ s//\1/; q; }
40631 /^X\(\/\).*/{ s//\1/; q; }
40632 s/.*/./; q'`
40633 { if $as_mkdir_p; then
40634 mkdir -p "$ac_dir"
40635 else
40636 as_dir="$ac_dir"
40637 as_dirs=
40638 while test ! -d "$as_dir"; do
40639 as_dirs="$as_dir $as_dirs"
40640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40641$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
de59c161
RD
40642 X"$as_dir" : 'X\(//\)[^/]' \| \
40643 X"$as_dir" : 'X\(//\)$' \| \
40644 X"$as_dir" : 'X\(/\)' \| \
40645 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40646echo X"$as_dir" |
40647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40649 /^X\(\/\/\)$/{ s//\1/; q; }
40650 /^X\(\/\).*/{ s//\1/; q; }
40651 s/.*/./; q'`
40652 done
40653 test ! -n "$as_dirs" || mkdir $as_dirs
40654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40655echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40656 { (exit 1); exit 1; }; }; }
40657
40658 rm -f $ac_file
40659 mv $tmp/config.h $ac_file
40660 fi
40661 else
40662 cat $tmp/config.h
40663 rm -f $tmp/config.h
40664 fi
40665done
40666_ACEOF
40667cat >>$CONFIG_STATUS <<\_ACEOF
40668
40669#
40670# CONFIG_COMMANDS section.
40671#
40672for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40673 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40674 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40675 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40676$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
de59c161
RD
40677 X"$ac_dest" : 'X\(//\)[^/]' \| \
40678 X"$ac_dest" : 'X\(//\)$' \| \
40679 X"$ac_dest" : 'X\(/\)' \| \
40680 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40681echo X"$ac_dest" |
40682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40684 /^X\(\/\/\)$/{ s//\1/; q; }
40685 /^X\(\/\).*/{ s//\1/; q; }
40686 s/.*/./; q'`
a848cd7e
SC
40687 ac_builddir=.
40688
40689if test "$ac_dir" != .; then
40690 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40691 # A "../" for each directory in $ac_dir_suffix.
40692 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40693else
40694 ac_dir_suffix= ac_top_builddir=
40695fi
40696
40697case $srcdir in
40698 .) # No --srcdir option. We are building in place.
40699 ac_srcdir=.
40700 if test -z "$ac_top_builddir"; then
40701 ac_top_srcdir=.
40702 else
40703 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40704 fi ;;
40705 [\\/]* | ?:[\\/]* ) # Absolute path.
40706 ac_srcdir=$srcdir$ac_dir_suffix;
40707 ac_top_srcdir=$srcdir ;;
40708 *) # Relative path.
40709 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40710 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40711esac
de59c161
RD
40712# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40713# absolute.
40714ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40715ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40716ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40717ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a848cd7e
SC
40718
40719
40720 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40721echo "$as_me: executing $ac_dest commands" >&6;}
40722 case $ac_dest in
40723 default )
40724 if test ! -h wx-config; then
40725 chmod +x wx-config
40726 mv wx-config wx${TOOLCHAIN_NAME}-config
40727 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
40728 fi
40729
40730 if test ! -d lib; then
40731 mkdir lib
40732 fi
40733 if test ! -d lib/wx; then
40734 mkdir lib/wx
40735 fi
40736 if test ! -d lib/wx/include; then
40737 mkdir lib/wx/include
40738 fi
40739 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
40740 mkdir lib/wx/include/${TOOLCHAIN_NAME}
40741 fi
40742 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
40743 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
40744 fi
40745 if test -f setup.h; then
40746 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
40747 fi
40748 ;;
40749 esac
40750done
40751_ACEOF
40752
40753cat >>$CONFIG_STATUS <<\_ACEOF
40754
40755{ (exit 0); exit 0; }
40756_ACEOF
40757chmod +x $CONFIG_STATUS
40758ac_clean_files=$ac_clean_files_save
40759
40760
40761# configure is writing to config.log, and then calls config.status.
40762# config.status does its own redirection, appending to config.log.
40763# Unfortunately, on DOS this fails, as config.log is still kept open
40764# by configure, so config.status won't be able to write to it; its
40765# output is simply discarded. So we exec the FD to /dev/null,
40766# effectively closing config.log, so it can be properly (re)opened and
40767# appended to by config.status. When coming back to configure, we
40768# need to make the FD available again.
40769if test "$no_create" != yes; then
40770 ac_cs_success=:
40771 ac_config_status_args=
40772 test "$silent" = yes &&
40773 ac_config_status_args="$ac_config_status_args --quiet"
40774 exec 5>/dev/null
40775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40776 exec 5>>config.log
40777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40778 # would make configure fail if this is the last instruction.
40779 $ac_cs_success || { (exit 1); exit 1; }
40780fi
40781
40782#
40783# CONFIG_SUBDIRS section.
40784#
40785if test "$no_recursion" != yes; then
40786
40787 # Remove --cache-file and --srcdir arguments so they do not pile up.
40788 ac_sub_configure_args=
40789 ac_prev=
40790 for ac_arg in $ac_configure_args; do
40791 if test -n "$ac_prev"; then
40792 ac_prev=
40793 continue
40794 fi
40795 case $ac_arg in
40796 -cache-file | --cache-file | --cache-fil | --cache-fi \
40797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40798 ac_prev=cache_file ;;
40799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40801 | --c=*)
40802 ;;
40803 --config-cache | -C)
40804 ;;
40805 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40806 ac_prev=srcdir ;;
40807 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40808 ;;
40809 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40810 ac_prev=prefix ;;
40811 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40812 ;;
40813 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
40814 esac
40815 done
40816
40817 # Always prepend --prefix to ensure using the same prefix
40818 # in subdir configurations.
40819 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
40820
40821 ac_popdir=`pwd`
40822 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40823
40824 # Do not complain, so a configure script can configure whichever
40825 # parts of a large source tree are present.
40826 test -d $srcdir/$ac_dir || continue
40827
40828 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
40829echo "$as_me: configuring in $ac_dir" >&6;}
40830 { if $as_mkdir_p; then
40831 mkdir -p "$ac_dir"
40832 else
40833 as_dir="$ac_dir"
40834 as_dirs=
40835 while test ! -d "$as_dir"; do
40836 as_dirs="$as_dir $as_dirs"
40837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
de59c161
RD
40839 X"$as_dir" : 'X\(//\)[^/]' \| \
40840 X"$as_dir" : 'X\(//\)$' \| \
40841 X"$as_dir" : 'X\(/\)' \| \
40842 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40843echo X"$as_dir" |
40844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40846 /^X\(\/\/\)$/{ s//\1/; q; }
40847 /^X\(\/\).*/{ s//\1/; q; }
40848 s/.*/./; q'`
40849 done
40850 test ! -n "$as_dirs" || mkdir $as_dirs
40851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40852echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40853 { (exit 1); exit 1; }; }; }
40854
40855 ac_builddir=.
40856
40857if test "$ac_dir" != .; then
40858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40859 # A "../" for each directory in $ac_dir_suffix.
40860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40861else
40862 ac_dir_suffix= ac_top_builddir=
40863fi
40864
40865case $srcdir in
40866 .) # No --srcdir option. We are building in place.
40867 ac_srcdir=.
40868 if test -z "$ac_top_builddir"; then
40869 ac_top_srcdir=.
40870 else
40871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40872 fi ;;
40873 [\\/]* | ?:[\\/]* ) # Absolute path.
40874 ac_srcdir=$srcdir$ac_dir_suffix;
40875 ac_top_srcdir=$srcdir ;;
40876 *) # Relative path.
40877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40879esac
de59c161
RD
40880# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40881# absolute.
40882ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40883ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40884ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40885ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a848cd7e
SC
40886
40887
40888 cd $ac_dir
40889
40890 # Check for guested configure; otherwise get Cygnus style configure.
40891 if test -f $ac_srcdir/configure.gnu; then
40892 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
40893 elif test -f $ac_srcdir/configure; then
40894 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
40895 elif test -f $ac_srcdir/configure.in; then
40896 ac_sub_configure=$ac_configure
40897 else
40898 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40899echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40900 ac_sub_configure=
40901 fi
40902
40903 # The recursion is here.
40904 if test -n "$ac_sub_configure"; then
40905 # Make the cache file name correct relative to the subdirectory.
40906 case $cache_file in
40907 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40908 *) # Relative path.
de59c161 40909 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
40910 esac
40911
40912 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40913echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40914 # The eval makes quoting arguments work.
40915 eval $ac_sub_configure $ac_sub_configure_args \
de59c161
RD
40916 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
40917 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
40918echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40919 { (exit 1); exit 1; }; }
40920 fi
40921
dcc1b6ad 40922 cd $ac_popdir
a848cd7e
SC
40923 done
40924fi
40925
40926
40927echo
77ffb593 40928echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 40929echo ""
77ffb593
JS
40930echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
40931echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 40932
77ffb593
JS
40933echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
40934echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
40935echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 40936
77ffb593
JS
40937echo " What level of wxWidgets compatibility should be enabled?"
40938echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
40939echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 40940
77ffb593 40941echo " Which libraries should wxWidgets use?"
a848cd7e
SC
40942echo " jpeg ${wxUSE_LIBJPEG-none}"
40943echo " png ${wxUSE_LIBPNG-none}"
40944echo " regex ${wxUSE_REGEX}"
40945echo " tiff ${wxUSE_LIBTIFF-none}"
40946if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
40947echo " xpm ${wxUSE_LIBXPM-none}"
40948fi
40949echo " zlib ${wxUSE_ZLIB}"
40950echo " odbc ${wxUSE_ODBC}"
40951echo " expat ${wxUSE_EXPAT}"
40952echo " libmspack ${wxUSE_LIBMSPACK}"
40953echo " sdl ${wxUSE_LIBSDL}"
40954
40955echo ""
40956