1#! /bin/sh
2# From configure.in Id.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for wxWidgets 2.8.12.
5#
6# Report bugs to <wx-dev@lists.wxwidgets.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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
47  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48    eval $as_var=C; export $as_var
49  else
50    $as_unset $as_var
51  fi
52done
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
224  test -d ./-p && rmdir ./-p
225  as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" 	$as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete.  It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
273PACKAGE_VERSION='2.8.12'
274PACKAGE_STRING='wxWidgets 2.8.12'
275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292#  include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297#  include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308#  include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os wx_top_builddir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_MEDIA EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HEADER_PAD_OPTION HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS OBJCXXFLAGS SET_MAKE MAKE_SET AROPTIONS NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOTWOSYMLINKS SONAME_FLAG DEPS_TRACKING BK_DEPS GCC_PCH ICC_PCH ICC_PCH_CREATE_SWITCH ICC_PCH_USE_SWITCH BK_MAKE_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_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_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_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_ODBC_1 COND_PLATFORM_MACOSX_1_USE_OPENGL_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_0 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_TOOLKIT_MGL COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_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_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_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_USE_XRC_1 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_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 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_MSW_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_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_CAIRO_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_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOTWOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 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 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360  # If the previous option needs an argument, assign it.
361  if test -n "$ac_prev"; then
362    eval "$ac_prev=\$ac_option"
363    ac_prev=
364    continue
365  fi
366
367  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369  # Accept the important Cygnus configure options, so we can diagnose typos.
370
371  case $ac_option in
372
373  -bindir | --bindir | --bindi | --bind | --bin | --bi)
374    ac_prev=bindir ;;
375  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376    bindir=$ac_optarg ;;
377
378  -build | --build | --buil | --bui | --bu)
379    ac_prev=build_alias ;;
380  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381    build_alias=$ac_optarg ;;
382
383  -cache-file | --cache-file | --cache-fil | --cache-fi \
384  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385    ac_prev=cache_file ;;
386  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388    cache_file=$ac_optarg ;;
389
390  --config-cache | -C)
391    cache_file=config.cache ;;
392
393  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394    ac_prev=datadir ;;
395  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396  | --da=*)
397    datadir=$ac_optarg ;;
398
399  -disable-* | --disable-*)
400    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401    # Reject names that are not valid shell variable names.
402    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404   { (exit 1); exit 1; }; }
405    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406    eval "enable_$ac_feature=no" ;;
407
408  -enable-* | --enable-*)
409    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410    # Reject names that are not valid shell variable names.
411    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413   { (exit 1); exit 1; }; }
414    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415    case $ac_option in
416      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417      *) ac_optarg=yes ;;
418    esac
419    eval "enable_$ac_feature='$ac_optarg'" ;;
420
421  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423  | --exec | --exe | --ex)
424    ac_prev=exec_prefix ;;
425  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427  | --exec=* | --exe=* | --ex=*)
428    exec_prefix=$ac_optarg ;;
429
430  -gas | --gas | --ga | --g)
431    # Obsolete; use --with-gas.
432    with_gas=yes ;;
433
434  -help | --help | --hel | --he | -h)
435    ac_init_help=long ;;
436  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437    ac_init_help=recursive ;;
438  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439    ac_init_help=short ;;
440
441  -host | --host | --hos | --ho)
442    ac_prev=host_alias ;;
443  -host=* | --host=* | --hos=* | --ho=*)
444    host_alias=$ac_optarg ;;
445
446  -includedir | --includedir | --includedi | --included | --include \
447  | --includ | --inclu | --incl | --inc)
448    ac_prev=includedir ;;
449  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450  | --includ=* | --inclu=* | --incl=* | --inc=*)
451    includedir=$ac_optarg ;;
452
453  -infodir | --infodir | --infodi | --infod | --info | --inf)
454    ac_prev=infodir ;;
455  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456    infodir=$ac_optarg ;;
457
458  -libdir | --libdir | --libdi | --libd)
459    ac_prev=libdir ;;
460  -libdir=* | --libdir=* | --libdi=* | --libd=*)
461    libdir=$ac_optarg ;;
462
463  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464  | --libexe | --libex | --libe)
465    ac_prev=libexecdir ;;
466  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467  | --libexe=* | --libex=* | --libe=*)
468    libexecdir=$ac_optarg ;;
469
470  -localstatedir | --localstatedir | --localstatedi | --localstated \
471  | --localstate | --localstat | --localsta | --localst \
472  | --locals | --local | --loca | --loc | --lo)
473    ac_prev=localstatedir ;;
474  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477    localstatedir=$ac_optarg ;;
478
479  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480    ac_prev=mandir ;;
481  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482    mandir=$ac_optarg ;;
483
484  -nfp | --nfp | --nf)
485    # Obsolete; use --without-fp.
486    with_fp=no ;;
487
488  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489  | --no-cr | --no-c | -n)
490    no_create=yes ;;
491
492  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494    no_recursion=yes ;;
495
496  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498  | --oldin | --oldi | --old | --ol | --o)
499    ac_prev=oldincludedir ;;
500  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503    oldincludedir=$ac_optarg ;;
504
505  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506    ac_prev=prefix ;;
507  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508    prefix=$ac_optarg ;;
509
510  -program-prefix | --program-prefix | --program-prefi | --program-pref \
511  | --program-pre | --program-pr | --program-p)
512    ac_prev=program_prefix ;;
513  -program-prefix=* | --program-prefix=* | --program-prefi=* \
514  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515    program_prefix=$ac_optarg ;;
516
517  -program-suffix | --program-suffix | --program-suffi | --program-suff \
518  | --program-suf | --program-su | --program-s)
519    ac_prev=program_suffix ;;
520  -program-suffix=* | --program-suffix=* | --program-suffi=* \
521  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522    program_suffix=$ac_optarg ;;
523
524  -program-transform-name | --program-transform-name \
525  | --program-transform-nam | --program-transform-na \
526  | --program-transform-n | --program-transform- \
527  | --program-transform | --program-transfor \
528  | --program-transfo | --program-transf \
529  | --program-trans | --program-tran \
530  | --progr-tra | --program-tr | --program-t)
531    ac_prev=program_transform_name ;;
532  -program-transform-name=* | --program-transform-name=* \
533  | --program-transform-nam=* | --program-transform-na=* \
534  | --program-transform-n=* | --program-transform-=* \
535  | --program-transform=* | --program-transfor=* \
536  | --program-transfo=* | --program-transf=* \
537  | --program-trans=* | --program-tran=* \
538  | --progr-tra=* | --program-tr=* | --program-t=*)
539    program_transform_name=$ac_optarg ;;
540
541  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542  | -silent | --silent | --silen | --sile | --sil)
543    silent=yes ;;
544
545  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546    ac_prev=sbindir ;;
547  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548  | --sbi=* | --sb=*)
549    sbindir=$ac_optarg ;;
550
551  -sharedstatedir | --sharedstatedir | --sharedstatedi \
552  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553  | --sharedst | --shareds | --shared | --share | --shar \
554  | --sha | --sh)
555    ac_prev=sharedstatedir ;;
556  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559  | --sha=* | --sh=*)
560    sharedstatedir=$ac_optarg ;;
561
562  -site | --site | --sit)
563    ac_prev=site ;;
564  -site=* | --site=* | --sit=*)
565    site=$ac_optarg ;;
566
567  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568    ac_prev=srcdir ;;
569  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570    srcdir=$ac_optarg ;;
571
572  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573  | --syscon | --sysco | --sysc | --sys | --sy)
574    ac_prev=sysconfdir ;;
575  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577    sysconfdir=$ac_optarg ;;
578
579  -target | --target | --targe | --targ | --tar | --ta | --t)
580    ac_prev=target_alias ;;
581  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582    target_alias=$ac_optarg ;;
583
584  -v | -verbose | --verbose | --verbos | --verbo | --verb)
585    verbose=yes ;;
586
587  -version | --version | --versio | --versi | --vers | -V)
588    ac_init_version=: ;;
589
590  -with-* | --with-*)
591    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592    # Reject names that are not valid shell variable names.
593    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594      { echo "$as_me: error: invalid package name: $ac_package" >&2
595   { (exit 1); exit 1; }; }
596    ac_package=`echo $ac_package| sed 's/-/_/g'`
597    case $ac_option in
598      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599      *) ac_optarg=yes ;;
600    esac
601    eval "with_$ac_package='$ac_optarg'" ;;
602
603  -without-* | --without-*)
604    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605    # Reject names that are not valid shell variable names.
606    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607      { echo "$as_me: error: invalid package name: $ac_package" >&2
608   { (exit 1); exit 1; }; }
609    ac_package=`echo $ac_package | sed 's/-/_/g'`
610    eval "with_$ac_package=no" ;;
611
612  --x)
613    # Obsolete; use --with-x.
614    with_x=yes ;;
615
616  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617  | --x-incl | --x-inc | --x-in | --x-i)
618    ac_prev=x_includes ;;
619  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621    x_includes=$ac_optarg ;;
622
623  -x-libraries | --x-libraries | --x-librarie | --x-librari \
624  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625    ac_prev=x_libraries ;;
626  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628    x_libraries=$ac_optarg ;;
629
630  -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632   { (exit 1); exit 1; }; }
633    ;;
634
635  *=*)
636    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637    # Reject names that are not valid shell variable names.
638    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640   { (exit 1); exit 1; }; }
641    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642    eval "$ac_envvar='$ac_optarg'"
643    export $ac_envvar ;;
644
645  *)
646    # FIXME: should be removed in autoconf 3.0.
647    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651    ;;
652
653  esac
654done
655
656if test -n "$ac_prev"; then
657  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658  { echo "$as_me: error: missing argument to $ac_option" >&2
659   { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665  eval ac_val=$`echo $ac_var`
666  case $ac_val in
667    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669   { (exit 1); exit 1; }; };;
670  esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675	      localstatedir libdir includedir oldincludedir infodir mandir
676do
677  eval ac_val=$`echo $ac_var`
678  case $ac_val in
679    [\\/$]* | ?:[\\/]* ) ;;
680    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681   { (exit 1); exit 1; }; };;
682  esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694  if test "x$build_alias" = x; then
695    cross_compiling=maybe
696    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697    If a cross compiler is detected then cross compile mode will be used." >&2
698  elif test "x$build_alias" != "x$host_alias"; then
699    cross_compiling=yes
700  fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711  ac_srcdir_defaulted=yes
712  # Try the directory containing this script, then its parent.
713  ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715	 X"$0" : 'X\(//\)[^/]' \| \
716	 X"$0" : 'X\(//\)$' \| \
717	 X"$0" : 'X\(/\)' \| \
718	 .     : '\(.\)' 2>/dev/null ||
719echo X"$0" |
720    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722  	  /^X\(\/\/\)$/{ s//\1/; q; }
723  	  /^X\(\/\).*/{ s//\1/; q; }
724  	  s/.*/./; q'`
725  srcdir=$ac_confdir
726  if test ! -r $srcdir/$ac_unique_file; then
727    srcdir=..
728  fi
729else
730  ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733  if test "$ac_srcdir_defaulted" = yes; then
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735   { (exit 1); exit 1; }; }
736  else
737    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738   { (exit 1); exit 1; }; }
739  fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743   { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
786ac_env_PKG_CONFIG_value=$PKG_CONFIG
787ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
788ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
789ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
790ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
791ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
792ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
793ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
794ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
795ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
796ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
797ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
798ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
799ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
800ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
801ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
802ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
803ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
804ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
805ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
806ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
807ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
808ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
809ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
810ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
811ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
812ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
813ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
814ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
815ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
816ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
817ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
818ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
819ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
820ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
821ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
822ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
823ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
824ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
825ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
826ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
827ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
828ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
829ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
830ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
831ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
832ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
833ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
834ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
835ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
836ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
837ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
838ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
839ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
840ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
841ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
842ac_env_HILDON_LIBS_value=$HILDON_LIBS
843ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
844ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
845ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
846ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
847ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
848ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
849ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
850ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
851ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
852ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
853ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
854ac_env_GST_CFLAGS_value=$GST_CFLAGS
855ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
856ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
857ac_env_GST_LIBS_set=${GST_LIBS+set}
858ac_env_GST_LIBS_value=$GST_LIBS
859ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
860ac_cv_env_GST_LIBS_value=$GST_LIBS
861
862#
863# Report the --help message.
864#
865if test "$ac_init_help" = "long"; then
866  # Omit some internal or obsolete options to make the list less imposing.
867  # This message is too long to be a string in the A/UX 3.1 sh.
868  cat <<_ACEOF
869\`configure' configures wxWidgets 2.8.12 to adapt to many kinds of systems.
870
871Usage: $0 [OPTION]... [VAR=VALUE]...
872
873To assign environment variables (e.g., CC, CFLAGS...), specify them as
874VAR=VALUE.  See below for descriptions of some of the useful variables.
875
876Defaults for the options are specified in brackets.
877
878Configuration:
879  -h, --help              display this help and exit
880      --help=short        display options specific to this package
881      --help=recursive    display the short help of all the included packages
882  -V, --version           display version information and exit
883  -q, --quiet, --silent   do not print \`checking...' messages
884      --cache-file=FILE   cache test results in FILE [disabled]
885  -C, --config-cache      alias for \`--cache-file=config.cache'
886  -n, --no-create         do not create output files
887      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
888
889_ACEOF
890
891  cat <<_ACEOF
892Installation directories:
893  --prefix=PREFIX         install architecture-independent files in PREFIX
894			  [$ac_default_prefix]
895  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
896			  [PREFIX]
897
898By default, \`make install' will install all the files in
899\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
900an installation prefix other than \`$ac_default_prefix' using \`--prefix',
901for instance \`--prefix=\$HOME'.
902
903For better control, use the options below.
904
905Fine tuning of the installation directories:
906  --bindir=DIR           user executables [EPREFIX/bin]
907  --sbindir=DIR          system admin executables [EPREFIX/sbin]
908  --libexecdir=DIR       program executables [EPREFIX/libexec]
909  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
910  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
911  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
912  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
913  --libdir=DIR           object code libraries [EPREFIX/lib]
914  --includedir=DIR       C header files [PREFIX/include]
915  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
916  --infodir=DIR          info documentation [PREFIX/info]
917  --mandir=DIR           man documentation [PREFIX/man]
918_ACEOF
919
920  cat <<\_ACEOF
921
922X features:
923  --x-includes=DIR    X include files are in DIR
924  --x-libraries=DIR   X library files are in DIR
925
926System types:
927  --build=BUILD     configure for building on BUILD [guessed]
928  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
929  --target=TARGET   configure for building compilers for TARGET [HOST]
930_ACEOF
931fi
932
933if test -n "$ac_init_help"; then
934  case $ac_init_help in
935     short | recursive ) echo "Configuration of wxWidgets 2.8.12:";;
936   esac
937  cat <<\_ACEOF
938
939Optional Features:
940  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
941  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
942  --enable-gui            use GUI classes
943  --enable-monolithic     build wxWidgets as single library
944  --enable-plugins        build parts of wxWidgets as loadable components
945  --enable-universal      use wxWidgets GUI controls instead of native ones
946  --enable-nanox          use NanoX
947  --disable-gtk2          use GTK+ 1.2 instead of 2.0
948  --enable-gpe            use GNOME PDA Environment features if possible
949  --enable-shared         create shared library code
950  --enable-optimise       compile without optimisations
951  --enable-debug          same as debug_flag and debug_info
952  --enable-stl            use STL for containers
953  --enable-omf            use OMF object format
954  --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
955  --enable-debug_info     create code with debugging information
956  --enable-debug_gdb      create code with extra GDB debugging information
957  --enable-debug_cntxt    use wxDebugContext
958  --enable-mem_tracing    create code with memory tracing
959  --enable-profile        create code with profiling information
960  --enable-no_rtti        create code without RTTI information
961  --enable-no_exceptions  create code without C++ exceptions handling
962  --enable-permissive     compile code disregarding strict ANSI
963  --enable-no_deps        create code without dependency information
964  --disable-vararg_macros don't use vararg macros, even if they are supported
965  --enable-universal_binary  create Mac PowerPC and Intel Universal binary
966  --enable-compat24       enable wxWidgets 2.4 compatibility
967  --disable-compat26      disable wxWidgets 2.6 compatibility
968  --disable-rpath         disable use of rpath for uninstalled builds
969  --enable-objc_uniquifying enable Objective-C class name uniquifying
970  --enable-abi-incompatible-features Enables features that break ABI compatibility
971  --enable-intl           use internationalization system
972  --enable-config         use wxConfig (and derived) classes
973  --enable-protocols      use wxProtocol and derived classes
974  --enable-ftp            use wxFTP (requires wxProtocol
975  --enable-http           use wxHTTP (requires wxProtocol
976  --enable-fileproto      use wxFileProto class (requires wxProtocol
977  --enable-sockets        use socket/network classes
978  --enable-ole            use OLE classes (Win32 only)
979  --enable-dataobj        use data object classes
980  --enable-ipc            use interprocess communication (wxSocket etc.)
981  --enable-apple_ieee     use the Apple IEEE codec
982  --enable-arcstream      use wxArchive streams
983  --enable-backtrace      use wxStackWalker class for getting backtraces
984  --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
985  --enable-cmdline        use wxCmdLineParser class
986  --enable-datetime       use wxDateTime class
987  --enable-debugreport    use wxDebugReport class
988  --enable-dialupman      use dialup network classes
989  --enable-dynlib         use wxLibrary class for DLL loading
990  --enable-dynamicloader  use (new) wxDynamicLibrary class
991  --enable-exceptions     build exception-safe library
992  --enable-ffile          use wxFFile class
993  --enable-file           use wxFile class
994  --enable-filesystem     use virtual file systems classes
995  --enable-fontmap        use font encodings conversion classes
996  --enable-fs_archive     use virtual archive filesystems
997  --enable-fs_inet        use virtual HTTP/FTP filesystems
998  --enable-fs_zip         now replaced by fs_archive
999  --enable-geometry       use geometry class
1000  --enable-log            use logging system
1001  --enable-longlong       use wxLongLong class
1002  --enable-mimetype       use wxMimeTypesManager
1003  --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1004  --enable-snglinst       use wxSingleInstanceChecker class
1005  --enable-std_iostreams  use standard C++ stream classes
1006  --enable-std_string     use standard C++ string classes
1007  --enable-stdpaths       use wxStandardPaths class
1008  --enable-stopwatch      use wxStopWatch class
1009  --enable-streams        use wxStream etc classes
1010  --enable-sysoptions     use wxSystemOptions
1011  --enable-tarstream      use wxTar streams
1012  --enable-textbuf        use wxTextBuffer class
1013  --enable-textfile       use wxTextFile class
1014  --enable-timer          use wxTimer class
1015  --enable-unicode        compile wxString with Unicode support
1016  --enable-sound          use wxSound class
1017  --enable-mediactrl      use wxMediaCtrl class
1018  --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1019  --enable-printfposparam use wxVsnprintf() which supports positional parameters
1020  --enable-zipstream      use wxZip streams
1021  --enable-url            use wxURL class
1022  --enable-variant        use wxVariant class
1023  --enable-protocol       use wxProtocol class
1024  --enable-protocol-http  HTTP support in wxProtocol
1025  --enable-protocol-ftp   FTP support in wxProtocol
1026  --enable-protocol-file  FILE support in wxProtocol
1027  --enable-threads        use threads
1028  --enable-docview        use document view architecture
1029  --enable-help           use help subsystem
1030  --enable-mshtmlhelp     use MS HTML Help (win32)
1031  --enable-html           use wxHTML sub-library
1032  --enable-htmlhelp       use wxHTML-based help
1033  --enable-xrc            use XRC resources sub-library
1034  --enable-aui            use AUI docking library
1035  --enable-constraints    use layout-constraints system
1036  --enable-printarch      use printing architecture
1037  --enable-mdi            use multiple document interface architecture
1038  --enable-mdidoc         use docview architecture with MDI
1039  --enable-loggui         use standard GUI logger
1040  --enable-logwin         use wxLogWindow
1041  --enable-logdialog      use wxLogDialog
1042  --enable-webkit         use wxWebKitCtrl (Mac)
1043  --enable-richtext       use wxRichTextCtrl
1044  --enable-graphics_ctx   use graphics context 2D drawing API
1045  --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1046  --enable-prologio       not available; see contrib
1047  --enable-resources      not available; see contrib
1048  --enable-clipboard      use wxClipboard class
1049  --enable-dnd            use Drag'n'Drop classes
1050  --enable-metafile       use win32 metafiles
1051  --enable-controls       use all usual controls
1052  --enable-accel          use accelerators
1053  --enable-animatectrl    use wxAnimationCtrl class
1054  --enable-button         use wxButton class
1055  --enable-bmpbutton      use wxBitmapButton class
1056  --enable-bmpcombobox    use wxBitmapComboBox class
1057  --enable-calendar       use wxCalendarCtrl class
1058  --enable-caret          use wxCaret class
1059  --enable-checkbox       use wxCheckBox class
1060  --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1061  --enable-choice         use wxChoice class
1062  --enable-choicebook     use wxChoicebook class
1063  --enable-collpane       use wxCollapsiblePane class
1064  --enable-colourpicker   use wxColourPickerCtrl class
1065  --enable-combobox       use wxComboBox class
1066  --enable-comboctrl      use wxComboCtrl class
1067  --enable-datepick       use wxDatePickerCtrl class
1068  --enable-dirpicker      use wxDirPickerCtrl class
1069  --enable-display        use wxDisplay class
1070  --enable-detect_sm      use code to detect X11 session manager
1071  --enable-filepicker     use wxFilePickerCtrl class
1072  --enable-fontpicker     use wxFontPickerCtrl class
1073  --enable-gauge          use wxGauge class
1074  --enable-grid           use wxGrid class
1075  --enable-dataviewctrl   use wxDataViewCtrl class
1076  --enable-hyperlink      use wxHyperlinkCtrl class
1077  --enable-imaglist       use wxImageList class
1078  --enable-listbook       use wxListbook class
1079  --enable-listbox        use wxListBox class
1080  --enable-listctrl       use wxListCtrl class
1081  --enable-notebook       use wxNotebook class
1082  --enable-odcombobox     use wxOwnerDrawnComboBox class
1083  --enable-radiobox       use wxRadioBox class
1084  --enable-radiobtn       use wxRadioButton class
1085  --enable-sash           use wxSashWindow class
1086  --enable-scrollbar      use wxScrollBar class and scrollable windows
1087  --enable-searchctrl     use wxSearchCtrl class
1088  --enable-slider         use wxSlider class
1089  --enable-spinbtn        use wxSpinButton class
1090  --enable-spinctrl       use wxSpinCtrl class
1091  --enable-splitter       use wxSplitterWindow class
1092  --enable-statbmp        use wxStaticBitmap class
1093  --enable-statbox        use wxStaticBox class
1094  --enable-statline       use wxStaticLine class
1095  --enable-stattext       use wxStaticText class
1096  --enable-statusbar      use wxStatusBar class
1097  --enable-tabdialog      use wxTabControl class
1098  --enable-textctrl       use wxTextCtrl class
1099  --enable-togglebtn      use wxToggleButton class
1100  --enable-toolbar        use wxToolBar class
1101  --enable-tbarnative     use native wxToolBar class
1102  --enable-treebook       use wxTreebook class
1103  --enable-toolbook       use wxToolbook class
1104  --enable-treectrl       use wxTreeCtrl class
1105  --enable-tipwindow      use wxTipWindow class
1106  --enable-popupwin       use wxPopUpWindow class
1107  --enable-commondlg      use all common dialogs
1108  --enable-aboutdlg       use wxAboutBox
1109  --enable-choicedlg      use wxChoiceDialog
1110  --enable-coldlg         use wxColourDialog
1111  --enable-filedlg        use wxFileDialog
1112  --enable-finddlg        use wxFindReplaceDialog
1113  --enable-fontdlg        use wxFontDialog
1114  --enable-dirdlg         use wxDirDialog
1115  --enable-msgdlg         use wxMessageDialog
1116  --enable-numberdlg      use wxNumberEntryDialog
1117  --enable-splash         use wxSplashScreen
1118  --enable-textdlg        use wxTextDialog
1119  --enable-tipdlg         use startup tips
1120  --enable-progressdlg    use wxProgressDialog
1121  --enable-wizarddlg      use wxWizard
1122  --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1123  --enable-miniframe      use wxMiniFrame class
1124  --enable-tooltips       use wxToolTip class
1125  --enable-splines        use spline drawing code
1126  --enable-mousewheel     use mousewheel
1127  --enable-validators     use wxValidator and derived classes
1128  --enable-busyinfo       use wxBusyInfo
1129  --enable-joystick       use wxJoystick
1130  --enable-metafiles      use wxMetaFile (Win32 only)
1131  --enable-dragimage      use wxDragImage
1132  --enable-accessibility  enable accessibility support
1133  --enable-dccache        cache temporary wxDC objects (Win32 only)
1134  --enable-palette        use wxPalette class
1135  --enable-image          use wxImage class
1136  --enable-gif            use gif images (GIF file format)
1137  --enable-pcx            use pcx images (PCX file format)
1138  --enable-tga            use tga images (TGA file format)
1139  --enable-iff            use iff images (IFF file format)
1140  --enable-pnm            use pnm images (PNM file format)
1141  --enable-xpm            use xpm images (XPM file format)
1142  --enable-icocur         use Windows ICO and CUR formats
1143  --enable-official_build official build of wxWidgets (win32 DLL only)
1144  --enable-vendor=VENDOR  vendor name (win32 DLL only)
1145  --disable-largefile     omit support for large files
1146  --disable-gtktest       do not try to compile and run a test GTK+ program
1147  --disable-gtktest       Do not try to compile and run a test GTK program
1148  --disable-sdltest       Do not try to compile and run a test SDL program
1149  --enable-omf            use OMF object format (OS/2)
1150  --disable-dependency-tracking
1151                          don't use dependency tracking even if the compiler
1152                          can
1153  --disable-precomp-headers
1154                          don't use precompiled headers even if compiler can
1155
1156Optional Packages:
1157  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1158  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1159  --without-subdirs       don't generate makefiles for samples/demos/...
1160  --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1161  --with-motif            use Motif/Lesstif
1162  --with-mac              use Mac OS X
1163  --with-cocoa            use Cocoa
1164  --with-wine             use Wine
1165  --with-msw              use MS-Windows
1166  --with-pm               use OS/2 Presentation Manager
1167  --with-mgl              use SciTech MGL
1168  --with-directfb         use DirectFB
1169  --with-microwin         use MicroWindows
1170  --with-x11              use X11
1171  --with-libpng           use libpng (PNG image format)
1172  --with-libjpeg          use libjpeg (JPEG file format)
1173  --with-libtiff          use libtiff (TIFF file format)
1174  --with-libxpm           use libxpm (XPM file format)
1175  --with-libmspack        use libmspack (CHM help files loading)
1176  --with-sdl              use SDL for audio on Unix
1177  --with-gnomeprint       use GNOME print for printing under GNOME
1178  --with-gnomevfs         use GNOME VFS for associating MIME types
1179  --with-hildon           use Hildon framework for Nokia 770
1180  --with-opengl           use OpenGL (or Mesa)
1181  --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1182  --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1183  --with-regex            enable support for wxRegEx class
1184  --with-zlib             use zlib for LZW compression
1185  --with-odbc             use the IODBC and wxODBC classes
1186  --with-expat            enable XML support using expat parser
1187  --with-macosx-sdk=PATH  use an OS X SDK at PATH
1188  --with-macosx-version-min=VER   build binaries which require at least this OS X version
1189  --with-flavour=NAME     specify a name to identify this build
1190  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1191  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1192  --with-x                use the X Window System
1193  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1194  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1195  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1196  --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1197  --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1198
1199Some influential environment variables:
1200  CC          C compiler command
1201  CFLAGS      C compiler flags
1202  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1203              nonstandard directory <lib dir>
1204  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1205              headers in a nonstandard directory <include dir>
1206  CPP         C preprocessor
1207  CXX         C++ compiler command
1208  CXXFLAGS    C++ compiler flags
1209  PKG_CONFIG  path to pkg-config utility
1210  DIRECTFB_CFLAGS
1211              C compiler flags for DIRECTFB, overriding pkg-config
1212  DIRECTFB_LIBS
1213              linker flags for DIRECTFB, overriding pkg-config
1214  PANGOX_CFLAGS
1215              C compiler flags for PANGOX, overriding pkg-config
1216  PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1217  PANGOFT2_CFLAGS
1218              C compiler flags for PANGOFT2, overriding pkg-config
1219  PANGOFT2_LIBS
1220              linker flags for PANGOFT2, overriding pkg-config
1221  PANGOXFT_CFLAGS
1222              C compiler flags for PANGOXFT, overriding pkg-config
1223  PANGOXFT_LIBS
1224              linker flags for PANGOXFT, overriding pkg-config
1225  LIBGNOMEPRINTUI_CFLAGS
1226              C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1227  LIBGNOMEPRINTUI_LIBS
1228              linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1229  GNOMEVFS_CFLAGS
1230              C compiler flags for GNOMEVFS, overriding pkg-config
1231  GNOMEVFS_LIBS
1232              linker flags for GNOMEVFS, overriding pkg-config
1233  HILDON_CFLAGS
1234              C compiler flags for HILDON, overriding pkg-config
1235  HILDON_LIBS linker flags for HILDON, overriding pkg-config
1236  CAIRO_CFLAGS
1237              C compiler flags for CAIRO, overriding pkg-config
1238  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1239  GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1240  GST_LIBS    linker flags for GST, overriding pkg-config
1241
1242Use these variables to override the choices made by `configure' or to help
1243it to find libraries and programs with nonstandard names/locations.
1244
1245Report bugs to <wx-dev@lists.wxwidgets.org>.
1246_ACEOF
1247fi
1248
1249if test "$ac_init_help" = "recursive"; then
1250  # If there are subdirs, report their specific --help.
1251  ac_popdir=`pwd`
1252  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1253    test -d $ac_dir || continue
1254    ac_builddir=.
1255
1256if test "$ac_dir" != .; then
1257  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1258  # A "../" for each directory in $ac_dir_suffix.
1259  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1260else
1261  ac_dir_suffix= ac_top_builddir=
1262fi
1263
1264case $srcdir in
1265  .)  # No --srcdir option.  We are building in place.
1266    ac_srcdir=.
1267    if test -z "$ac_top_builddir"; then
1268       ac_top_srcdir=.
1269    else
1270       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1271    fi ;;
1272  [\\/]* | ?:[\\/]* )  # Absolute path.
1273    ac_srcdir=$srcdir$ac_dir_suffix;
1274    ac_top_srcdir=$srcdir ;;
1275  *) # Relative path.
1276    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1277    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1278esac
1279
1280# Do not use `cd foo && pwd` to compute absolute paths, because
1281# the directories may not exist.
1282case `pwd` in
1283.) ac_abs_builddir="$ac_dir";;
1284*)
1285  case "$ac_dir" in
1286  .) ac_abs_builddir=`pwd`;;
1287  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1288  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1289  esac;;
1290esac
1291case $ac_abs_builddir in
1292.) ac_abs_top_builddir=${ac_top_builddir}.;;
1293*)
1294  case ${ac_top_builddir}. in
1295  .) ac_abs_top_builddir=$ac_abs_builddir;;
1296  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1297  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1298  esac;;
1299esac
1300case $ac_abs_builddir in
1301.) ac_abs_srcdir=$ac_srcdir;;
1302*)
1303  case $ac_srcdir in
1304  .) ac_abs_srcdir=$ac_abs_builddir;;
1305  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1306  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1307  esac;;
1308esac
1309case $ac_abs_builddir in
1310.) ac_abs_top_srcdir=$ac_top_srcdir;;
1311*)
1312  case $ac_top_srcdir in
1313  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1314  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1315  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1316  esac;;
1317esac
1318
1319    cd $ac_dir
1320    # Check for guested configure; otherwise get Cygnus style configure.
1321    if test -f $ac_srcdir/configure.gnu; then
1322      echo
1323      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1324    elif test -f $ac_srcdir/configure; then
1325      echo
1326      $SHELL $ac_srcdir/configure  --help=recursive
1327    elif test -f $ac_srcdir/configure.ac ||
1328	   test -f $ac_srcdir/configure.in; then
1329      echo
1330      $ac_configure --help
1331    else
1332      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1333    fi
1334    cd "$ac_popdir"
1335  done
1336fi
1337
1338test -n "$ac_init_help" && exit 0
1339if $ac_init_version; then
1340  cat <<\_ACEOF
1341wxWidgets configure 2.8.12
1342generated by GNU Autoconf 2.59
1343
1344Copyright (C) 2003 Free Software Foundation, Inc.
1345This configure script is free software; the Free Software Foundation
1346gives unlimited permission to copy, distribute and modify it.
1347_ACEOF
1348  exit 0
1349fi
1350exec 5>config.log
1351cat >&5 <<_ACEOF
1352This file contains any messages produced by compilers while
1353running configure, to aid debugging if configure makes a mistake.
1354
1355It was created by wxWidgets $as_me 2.8.12, which was
1356generated by GNU Autoconf 2.59.  Invocation command line was
1357
1358  $ $0 $@
1359
1360_ACEOF
1361{
1362cat <<_ASUNAME
1363## --------- ##
1364## Platform. ##
1365## --------- ##
1366
1367hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1368uname -m = `(uname -m) 2>/dev/null || echo unknown`
1369uname -r = `(uname -r) 2>/dev/null || echo unknown`
1370uname -s = `(uname -s) 2>/dev/null || echo unknown`
1371uname -v = `(uname -v) 2>/dev/null || echo unknown`
1372
1373/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1374/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1375
1376/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1377/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1378/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1379hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1380/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1381/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1382/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1383
1384_ASUNAME
1385
1386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387for as_dir in $PATH
1388do
1389  IFS=$as_save_IFS
1390  test -z "$as_dir" && as_dir=.
1391  echo "PATH: $as_dir"
1392done
1393
1394} >&5
1395
1396cat >&5 <<_ACEOF
1397
1398
1399## ----------- ##
1400## Core tests. ##
1401## ----------- ##
1402
1403_ACEOF
1404
1405
1406# Keep a trace of the command line.
1407# Strip out --no-create and --no-recursion so they do not pile up.
1408# Strip out --silent because we don't want to record it for future runs.
1409# Also quote any args containing shell meta-characters.
1410# Make two passes to allow for proper duplicate-argument suppression.
1411ac_configure_args=
1412ac_configure_args0=
1413ac_configure_args1=
1414ac_sep=
1415ac_must_keep_next=false
1416for ac_pass in 1 2
1417do
1418  for ac_arg
1419  do
1420    case $ac_arg in
1421    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1422    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1423    | -silent | --silent | --silen | --sile | --sil)
1424      continue ;;
1425    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1427    esac
1428    case $ac_pass in
1429    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1430    2)
1431      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1432      if test $ac_must_keep_next = true; then
1433	ac_must_keep_next=false # Got value, back to normal.
1434      else
1435	case $ac_arg in
1436	  *=* | --config-cache | -C | -disable-* | --disable-* \
1437	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1438	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1439	  | -with-* | --with-* | -without-* | --without-* | --x)
1440	    case "$ac_configure_args0 " in
1441	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1442	    esac
1443	    ;;
1444	  -* ) ac_must_keep_next=true ;;
1445	esac
1446      fi
1447      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1448      # Get rid of the leading space.
1449      ac_sep=" "
1450      ;;
1451    esac
1452  done
1453done
1454$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1455$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1456
1457# When interrupted or exit'd, cleanup temporary files, and complete
1458# config.log.  We remove comments because anyway the quotes in there
1459# would cause problems or look ugly.
1460# WARNING: Be sure not to use single quotes in there, as some shells,
1461# such as our DU 5.0 friend, will then `close' the trap.
1462trap 'exit_status=$?
1463  # Save into config.log some information that might help in debugging.
1464  {
1465    echo
1466
1467    cat <<\_ASBOX
1468## ---------------- ##
1469## Cache variables. ##
1470## ---------------- ##
1471_ASBOX
1472    echo
1473    # The following way of writing the cache mishandles newlines in values,
1474{
1475  (set) 2>&1 |
1476    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1477    *ac_space=\ *)
1478      sed -n \
1479	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1480	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1481      ;;
1482    *)
1483      sed -n \
1484	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1485      ;;
1486    esac;
1487}
1488    echo
1489
1490    cat <<\_ASBOX
1491## ----------------- ##
1492## Output variables. ##
1493## ----------------- ##
1494_ASBOX
1495    echo
1496    for ac_var in $ac_subst_vars
1497    do
1498      eval ac_val=$`echo $ac_var`
1499      echo "$ac_var='"'"'$ac_val'"'"'"
1500    done | sort
1501    echo
1502
1503    if test -n "$ac_subst_files"; then
1504      cat <<\_ASBOX
1505## ------------- ##
1506## Output files. ##
1507## ------------- ##
1508_ASBOX
1509      echo
1510      for ac_var in $ac_subst_files
1511      do
1512	eval ac_val=$`echo $ac_var`
1513	echo "$ac_var='"'"'$ac_val'"'"'"
1514      done | sort
1515      echo
1516    fi
1517
1518    if test -s confdefs.h; then
1519      cat <<\_ASBOX
1520## ----------- ##
1521## confdefs.h. ##
1522## ----------- ##
1523_ASBOX
1524      echo
1525      sed "/^$/d" confdefs.h | sort
1526      echo
1527    fi
1528    test "$ac_signal" != 0 &&
1529      echo "$as_me: caught signal $ac_signal"
1530    echo "$as_me: exit $exit_status"
1531  } >&5
1532  rm -f core *.core &&
1533  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1534    exit $exit_status
1535     ' 0
1536for ac_signal in 1 2 13 15; do
1537  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1538done
1539ac_signal=0
1540
1541# confdefs.h avoids OS command line length limits that DEFS can exceed.
1542rm -rf conftest* confdefs.h
1543# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1544echo >confdefs.h
1545
1546# Predefined preprocessor variables.
1547
1548cat >>confdefs.h <<_ACEOF
1549#define PACKAGE_NAME "$PACKAGE_NAME"
1550_ACEOF
1551
1552
1553cat >>confdefs.h <<_ACEOF
1554#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1555_ACEOF
1556
1557
1558cat >>confdefs.h <<_ACEOF
1559#define PACKAGE_VERSION "$PACKAGE_VERSION"
1560_ACEOF
1561
1562
1563cat >>confdefs.h <<_ACEOF
1564#define PACKAGE_STRING "$PACKAGE_STRING"
1565_ACEOF
1566
1567
1568cat >>confdefs.h <<_ACEOF
1569#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1570_ACEOF
1571
1572
1573# Let the site file select an alternate cache file if it wants to.
1574# Prefer explicitly selected file to automatically selected ones.
1575if test -z "$CONFIG_SITE"; then
1576  if test "x$prefix" != xNONE; then
1577    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1578  else
1579    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1580  fi
1581fi
1582for ac_site_file in $CONFIG_SITE; do
1583  if test -r "$ac_site_file"; then
1584    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1585echo "$as_me: loading site script $ac_site_file" >&6;}
1586    sed 's/^/| /' "$ac_site_file" >&5
1587    . "$ac_site_file"
1588  fi
1589done
1590
1591if test -r "$cache_file"; then
1592  # Some versions of bash will fail to source /dev/null (special
1593  # files actually), so we avoid doing that.
1594  if test -f "$cache_file"; then
1595    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1596echo "$as_me: loading cache $cache_file" >&6;}
1597    case $cache_file in
1598      [\\/]* | ?:[\\/]* ) . $cache_file;;
1599      *)                      . ./$cache_file;;
1600    esac
1601  fi
1602else
1603  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1604echo "$as_me: creating cache $cache_file" >&6;}
1605  >$cache_file
1606fi
1607
1608# Check that the precious variables saved in the cache have kept the same
1609# value.
1610ac_cache_corrupted=false
1611for ac_var in `(set) 2>&1 |
1612	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1613  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1614  eval ac_new_set=\$ac_env_${ac_var}_set
1615  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1616  eval ac_new_val="\$ac_env_${ac_var}_value"
1617  case $ac_old_set,$ac_new_set in
1618    set,)
1619      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1620echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1621      ac_cache_corrupted=: ;;
1622    ,set)
1623      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1624echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1625      ac_cache_corrupted=: ;;
1626    ,);;
1627    *)
1628      if test "x$ac_old_val" != "x$ac_new_val"; then
1629	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1630echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1631	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1632echo "$as_me:   former value:  $ac_old_val" >&2;}
1633	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1634echo "$as_me:   current value: $ac_new_val" >&2;}
1635	ac_cache_corrupted=:
1636      fi;;
1637  esac
1638  # Pass precious variables to config.status.
1639  if test "$ac_new_set" = set; then
1640    case $ac_new_val in
1641    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1642      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1643    *) ac_arg=$ac_var=$ac_new_val ;;
1644    esac
1645    case " $ac_configure_args " in
1646      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1647      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1648    esac
1649  fi
1650done
1651if $ac_cache_corrupted; then
1652  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1653echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1654  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1655echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1656   { (exit 1); exit 1; }; }
1657fi
1658
1659ac_ext=c
1660ac_cpp='$CPP $CPPFLAGS'
1661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1663ac_compiler_gnu=$ac_cv_c_compiler_gnu
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694ac_aux_dir=
1695for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1696  if test -f $ac_dir/install-sh; then
1697    ac_aux_dir=$ac_dir
1698    ac_install_sh="$ac_aux_dir/install-sh -c"
1699    break
1700  elif test -f $ac_dir/install.sh; then
1701    ac_aux_dir=$ac_dir
1702    ac_install_sh="$ac_aux_dir/install.sh -c"
1703    break
1704  elif test -f $ac_dir/shtool; then
1705    ac_aux_dir=$ac_dir
1706    ac_install_sh="$ac_aux_dir/shtool install -c"
1707    break
1708  fi
1709done
1710if test -z "$ac_aux_dir"; then
1711  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1712echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1713   { (exit 1); exit 1; }; }
1714fi
1715ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1716ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1717ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1718
1719# Make sure we can run config.sub.
1720$ac_config_sub sun4 >/dev/null 2>&1 ||
1721  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1722echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1723   { (exit 1); exit 1; }; }
1724
1725echo "$as_me:$LINENO: checking build system type" >&5
1726echo $ECHO_N "checking build system type... $ECHO_C" >&6
1727if test "${ac_cv_build+set}" = set; then
1728  echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730  ac_cv_build_alias=$build_alias
1731test -z "$ac_cv_build_alias" &&
1732  ac_cv_build_alias=`$ac_config_guess`
1733test -z "$ac_cv_build_alias" &&
1734  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1735echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1736   { (exit 1); exit 1; }; }
1737ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1738  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1739echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1740   { (exit 1); exit 1; }; }
1741
1742fi
1743echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1744echo "${ECHO_T}$ac_cv_build" >&6
1745build=$ac_cv_build
1746build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1749
1750
1751echo "$as_me:$LINENO: checking host system type" >&5
1752echo $ECHO_N "checking host system type... $ECHO_C" >&6
1753if test "${ac_cv_host+set}" = set; then
1754  echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756  ac_cv_host_alias=$host_alias
1757test -z "$ac_cv_host_alias" &&
1758  ac_cv_host_alias=$ac_cv_build_alias
1759ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1760  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1761echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1762   { (exit 1); exit 1; }; }
1763
1764fi
1765echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766echo "${ECHO_T}$ac_cv_host" >&6
1767host=$ac_cv_host
1768host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1771
1772
1773echo "$as_me:$LINENO: checking target system type" >&5
1774echo $ECHO_N "checking target system type... $ECHO_C" >&6
1775if test "${ac_cv_target+set}" = set; then
1776  echo $ECHO_N "(cached) $ECHO_C" >&6
1777else
1778  ac_cv_target_alias=$target_alias
1779test "x$ac_cv_target_alias" = "x" &&
1780  ac_cv_target_alias=$ac_cv_host_alias
1781ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1782  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1783echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1784   { (exit 1); exit 1; }; }
1785
1786fi
1787echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1788echo "${ECHO_T}$ac_cv_target" >&6
1789target=$ac_cv_target
1790target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1791target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1792target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793
1794
1795# The aliases save the names the user supplied, while $host etc.
1796# will get canonicalized.
1797test -n "$target_alias" &&
1798  test "$program_prefix$program_suffix$program_transform_name" = \
1799    NONENONEs,x,x, &&
1800  program_prefix=${target_alias}-
1801
1802
1803
1804wx_major_version_number=2
1805wx_minor_version_number=8
1806wx_release_number=12
1807wx_subrelease_number=0
1808
1809WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1810WX_VERSION=$WX_RELEASE.$wx_release_number
1811WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1812
1813WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1814
1815
1816wx_top_builddir="`pwd`"
1817
1818
1819
1820
1821USE_UNIX=1
1822USE_OS2=0
1823USE_WIN32=0
1824USE_DOS=0
1825USE_BEOS=0
1826USE_MAC=0
1827
1828USE_AIX=
1829USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1830USE_GNU=                            USE_HPUX=
1831USE_LINUX=
1832USE_NETBSD=
1833USE_OPENBSD=
1834USE_OSF=                            USE_SGI=
1835USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1836USE_ULTRIX=
1837USE_UNIXWARE=
1838
1839USE_ALPHA=
1840
1841NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1842
1843ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
1844
1845DEFAULT_wxUSE_COCOA=0
1846DEFAULT_wxUSE_GTK=0
1847DEFAULT_wxUSE_MAC=0
1848DEFAULT_wxUSE_MGL=0
1849DEFAULT_wxUSE_MICROWIN=0
1850DEFAULT_wxUSE_MOTIF=0
1851DEFAULT_wxUSE_MSW=0
1852DEFAULT_wxUSE_PM=0
1853DEFAULT_wxUSE_X11=0
1854DEFAULT_wxUSE_DFB=0
1855
1856DEFAULT_DEFAULT_wxUSE_COCOA=0
1857DEFAULT_DEFAULT_wxUSE_GTK=0
1858DEFAULT_DEFAULT_wxUSE_MAC=0
1859DEFAULT_DEFAULT_wxUSE_MGL=0
1860DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1861DEFAULT_DEFAULT_wxUSE_MOTIF=0
1862DEFAULT_DEFAULT_wxUSE_MSW=0
1863DEFAULT_DEFAULT_wxUSE_PM=0
1864DEFAULT_DEFAULT_wxUSE_X11=0
1865DEFAULT_DEFAULT_wxUSE_DFB=0
1866
1867PROGRAM_EXT=
1868SO_SUFFIX=so
1869SAMPLES_RPATH_FLAG=
1870SAMPLES_RPATH_POSTLINK=
1871
1872DEFAULT_STD_FLAG=yes
1873
1874case "${host}" in
1875  *-hp-hpux* )
1876    USE_HPUX=1
1877    DEFAULT_DEFAULT_wxUSE_MOTIF=1
1878    NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1879    SO_SUFFIX=sl
1880    cat >>confdefs.h <<\_ACEOF
1881#define __HPUX__ 1
1882_ACEOF
1883
1884
1885            CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1886  ;;
1887  *-*-linux* )
1888    USE_LINUX=1
1889    cat >>confdefs.h <<\_ACEOF
1890#define __LINUX__ 1
1891_ACEOF
1892
1893    TMP=`uname -m`
1894    if test "x$TMP" = "xalpha"; then
1895      USE_ALPHA=1
1896      cat >>confdefs.h <<\_ACEOF
1897#define __ALPHA__ 1
1898_ACEOF
1899
1900    fi
1901    DEFAULT_DEFAULT_wxUSE_GTK=1
1902  ;;
1903  *-*-gnu* | *-*-k*bsd*-gnu )
1904    USE_GNU=1
1905    TMP=`uname -m`
1906    if test "x$TMP" = "xalpha"; then
1907      USE_ALPHA=1
1908      cat >>confdefs.h <<\_ACEOF
1909#define __ALPHA__ 1
1910_ACEOF
1911
1912    fi
1913    DEFAULT_DEFAULT_wxUSE_GTK=1
1914  ;;
1915  *-*-irix5* | *-*-irix6* )
1916    USE_SGI=1
1917    USE_SVR4=1
1918    cat >>confdefs.h <<\_ACEOF
1919#define __SGI__ 1
1920_ACEOF
1921
1922    cat >>confdefs.h <<\_ACEOF
1923#define __SVR4__ 1
1924_ACEOF
1925
1926    DEFAULT_DEFAULT_wxUSE_MOTIF=1
1927  ;;
1928  *-*-solaris2* )
1929    USE_SUN=1
1930    USE_SOLARIS=1
1931    USE_SVR4=1
1932    cat >>confdefs.h <<\_ACEOF
1933#define __SUN__ 1
1934_ACEOF
1935
1936    cat >>confdefs.h <<\_ACEOF
1937#define __SOLARIS__ 1
1938_ACEOF
1939
1940    cat >>confdefs.h <<\_ACEOF
1941#define __SVR4__ 1
1942_ACEOF
1943
1944    DEFAULT_DEFAULT_wxUSE_MOTIF=1
1945    NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1946  ;;
1947  *-*-sunos4* )
1948    USE_SUN=1
1949    USE_SUNOS=1
1950    USE_BSD=1
1951    cat >>confdefs.h <<\_ACEOF
1952#define __SUN__ 1
1953_ACEOF
1954
1955    cat >>confdefs.h <<\_ACEOF
1956#define __SUNOS__ 1
1957_ACEOF
1958
1959    cat >>confdefs.h <<\_ACEOF
1960#define __BSD__ 1
1961_ACEOF
1962
1963    DEFAULT_DEFAULT_wxUSE_MOTIF=1
1964  ;;
1965  *-*-freebsd*|*-*-dragonfly*)
1966    USE_BSD=1
1967    USE_FREEBSD=1
1968    cat >>confdefs.h <<\_ACEOF
1969#define __FREEBSD__ 1
1970_ACEOF
1971
1972    cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976    DEFAULT_DEFAULT_wxUSE_GTK=1
1977  ;;
1978  *-*-openbsd*|*-*-mirbsd*)
1979    USE_BSD=1
1980    USE_OPENBSD=1
1981    cat >>confdefs.h <<\_ACEOF
1982#define __OPENBSD__ 1
1983_ACEOF
1984
1985    cat >>confdefs.h <<\_ACEOF
1986#define __BSD__ 1
1987_ACEOF
1988
1989    DEFAULT_DEFAULT_wxUSE_GTK=1
1990  ;;
1991  *-*-netbsd*)
1992    USE_BSD=1
1993    USE_NETBSD=1
1994    cat >>confdefs.h <<\_ACEOF
1995#define __NETBSD__ 1
1996_ACEOF
1997
1998    cat >>confdefs.h <<\_ACEOF
1999#define __BSD__ 1
2000_ACEOF
2001
2002    DEFAULT_DEFAULT_wxUSE_GTK=1
2003    NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2004
2005            CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2006  ;;
2007  *-*-osf* )
2008    USE_ALPHA=1
2009    USE_OSF=1
2010    cat >>confdefs.h <<\_ACEOF
2011#define __ALPHA__ 1
2012_ACEOF
2013
2014    cat >>confdefs.h <<\_ACEOF
2015#define __OSF__ 1
2016_ACEOF
2017
2018    DEFAULT_DEFAULT_wxUSE_MOTIF=1
2019    NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2020  ;;
2021  *-*-dgux5* )
2022    USE_ALPHA=1
2023    USE_SVR4=1
2024    cat >>confdefs.h <<\_ACEOF
2025#define __ALPHA__ 1
2026_ACEOF
2027
2028    cat >>confdefs.h <<\_ACEOF
2029#define __SVR4__ 1
2030_ACEOF
2031
2032    DEFAULT_DEFAULT_wxUSE_MOTIF=1
2033  ;;
2034  *-*-sysv5* )
2035    USE_SYSV=1
2036    USE_SVR4=1
2037    cat >>confdefs.h <<\_ACEOF
2038#define __SYSV__ 1
2039_ACEOF
2040
2041    cat >>confdefs.h <<\_ACEOF
2042#define __SVR4__ 1
2043_ACEOF
2044
2045    DEFAULT_DEFAULT_wxUSE_MOTIF=1
2046  ;;
2047  *-*-aix* )
2048    USE_AIX=1
2049    USE_SYSV=1
2050    USE_SVR4=1
2051                        SO_SUFFIX=a
2052    cat >>confdefs.h <<\_ACEOF
2053#define __AIX__ 1
2054_ACEOF
2055
2056    cat >>confdefs.h <<\_ACEOF
2057#define __SYSV__ 1
2058_ACEOF
2059
2060    cat >>confdefs.h <<\_ACEOF
2061#define __SVR4__ 1
2062_ACEOF
2063
2064    DEFAULT_DEFAULT_wxUSE_MOTIF=1
2065  ;;
2066
2067  *-*-*UnixWare*)
2068    USE_SYSV=1
2069    USE_SVR4=1
2070    USE_UNIXWARE=1
2071    cat >>confdefs.h <<\_ACEOF
2072#define __UNIXWARE__ 1
2073_ACEOF
2074
2075  ;;
2076
2077  *-*-cygwin* | *-*-mingw32* )
2078                SO_SUFFIX=dll
2079    PROGRAM_EXT=".exe"
2080    DEFAULT_DEFAULT_wxUSE_MSW=1
2081  ;;
2082
2083  *-pc-msdosdjgpp )
2084    USE_UNIX=0
2085    USE_DOS=1
2086    cat >>confdefs.h <<\_ACEOF
2087#define __DOS__ 1
2088_ACEOF
2089
2090    PROGRAM_EXT=".exe"
2091    DEFAULT_DEFAULT_wxUSE_MGL=1
2092  ;;
2093
2094  *-pc-os2_emx | *-pc-os2-emx )
2095    cat >>confdefs.h <<\_ACEOF
2096#define __EMX__ 1
2097_ACEOF
2098
2099    USE_OS2=1
2100    cat >>confdefs.h <<\_ACEOF
2101#define __OS2__ 1
2102_ACEOF
2103
2104    PROGRAM_EXT=".exe"
2105    DEFAULT_DEFAULT_wxUSE_PM=1
2106        CXX=gcc
2107    LDFLAGS="$LDFLAGS -Zcrtdll"
2108                        ac_executable_extensions=".exe"
2109    export ac_executable_extensions
2110            ac_save_IFS="$IFS"
2111    IFS='\\'
2112    ac_TEMP_PATH=
2113    for ac_dir in $PATH; do
2114      IFS=$ac_save_IFS
2115      if test -z "$ac_TEMP_PATH"; then
2116        ac_TEMP_PATH="$ac_dir"
2117      else
2118        ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2119      fi
2120    done
2121    export PATH="$ac_TEMP_PATH"
2122    unset ac_TEMP_PATH
2123    DEFAULT_STD_FLAG=no
2124  ;;
2125
2126  *-*-darwin* )
2127        USE_BSD=1
2128    USE_DARWIN=1
2129    SO_SUFFIX=dylib
2130    cat >>confdefs.h <<\_ACEOF
2131#define __BSD__ 1
2132_ACEOF
2133
2134    cat >>confdefs.h <<\_ACEOF
2135#define __DARWIN__ 1
2136_ACEOF
2137
2138    cat >>confdefs.h <<\_ACEOF
2139#define TARGET_CARBON 1
2140_ACEOF
2141
2142    DEFAULT_DEFAULT_wxUSE_MAC=1
2143    DEFAULT_STD_FLAG=no
2144  ;;
2145  powerpc-apple-macos* )
2146        USE_UNIX=0
2147            ac_cv_c_bigendian=yes
2148    SO_SUFFIX=shlib
2149            DEFAULT_DEFAULT_wxUSE_MAC=1
2150    DEFAULT_STD_FLAG=no
2151  ;;
2152
2153  *-*-beos* )
2154        USE_BEOS=1
2155    cat >>confdefs.h <<\_ACEOF
2156#define __BEOS__ 1
2157_ACEOF
2158
2159  ;;
2160
2161  *)
2162    { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2163echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2164    { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2165echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2166
2167    DEFAULT_DEFAULT_wxUSE_X11=1
2168    DEFAULT_wxUSE_SHARED=no
2169esac
2170
2171
2172
2173
2174          wx_arg_cache_file="configarg.cache"
2175          echo "loading argument cache $wx_arg_cache_file"
2176          rm -f ${wx_arg_cache_file}.tmp
2177          touch ${wx_arg_cache_file}.tmp
2178          touch ${wx_arg_cache_file}
2179
2180
2181DEBUG_CONFIGURE=0
2182if test $DEBUG_CONFIGURE = 1; then
2183  DEFAULT_wxUSE_UNIVERSAL=no
2184  DEFAULT_wxUSE_STL=no
2185
2186  DEFAULT_wxUSE_NANOX=no
2187
2188  DEFAULT_wxUSE_THREADS=yes
2189
2190  DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2191  DEFAULT_wxUSE_OPTIMISE=no
2192  DEFAULT_wxUSE_PROFILE=no
2193  DEFAULT_wxUSE_NO_DEPS=no
2194  DEFAULT_wxUSE_VARARG_MACROS=no
2195  DEFAULT_wxUSE_NO_RTTI=no
2196  DEFAULT_wxUSE_NO_EXCEPTIONS=no
2197  DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2198  DEFAULT_wxUSE_RPATH=yes
2199  DEFAULT_wxUSE_PERMISSIVE=no
2200  DEFAULT_wxUSE_DEBUG_FLAG=yes
2201  DEFAULT_wxUSE_DEBUG_INFO=yes
2202  DEFAULT_wxUSE_DEBUG_GDB=yes
2203  DEFAULT_wxUSE_MEM_TRACING=no
2204  DEFAULT_wxUSE_DEBUG_CONTEXT=no
2205  DEFAULT_wxUSE_DMALLOC=no
2206  DEFAULT_wxUSE_APPLE_IEEE=no
2207
2208  DEFAULT_wxUSE_EXCEPTIONS=no
2209  DEFAULT_wxUSE_LOG=yes
2210  DEFAULT_wxUSE_LOGWINDOW=no
2211  DEFAULT_wxUSE_LOGGUI=no
2212  DEFAULT_wxUSE_LOGDIALOG=no
2213
2214  DEFAULT_wxUSE_GUI=yes
2215  DEFAULT_wxUSE_CONTROLS=no
2216
2217  DEFAULT_wxUSE_REGEX=no
2218  DEFAULT_wxUSE_XML=no
2219  DEFAULT_wxUSE_EXPAT=no
2220  DEFAULT_wxUSE_ZLIB=no
2221  DEFAULT_wxUSE_LIBPNG=no
2222  DEFAULT_wxUSE_LIBJPEG=no
2223  DEFAULT_wxUSE_LIBTIFF=no
2224  DEFAULT_wxUSE_LIBXPM=no
2225  DEFAULT_wxUSE_LIBMSPACK=no
2226  DEFAULT_wxUSE_LIBSDL=no
2227  DEFAULT_wxUSE_LIBGNOMEPRINT=no
2228  DEFAULT_wxUSE_LIBGNOMEVFS=no
2229  DEFAULT_wxUSE_LIBHILDON=no
2230  DEFAULT_wxUSE_ODBC=no
2231  DEFAULT_wxUSE_OPENGL=no
2232
2233  DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2234  DEFAULT_wxUSE_STACKWALKER=no
2235  DEFAULT_wxUSE_DEBUGREPORT=no
2236  DEFAULT_wxUSE_SNGLINST_CHECKER=no
2237  DEFAULT_wxUSE_STD_IOSTREAM=no
2238  DEFAULT_wxUSE_STD_STRING=no
2239  DEFAULT_wxUSE_CMDLINE_PARSER=no
2240  DEFAULT_wxUSE_DATETIME=no
2241  DEFAULT_wxUSE_TIMER=no
2242  DEFAULT_wxUSE_STOPWATCH=no
2243  DEFAULT_wxUSE_FILE=no
2244  DEFAULT_wxUSE_FFILE=no
2245  DEFAULT_wxUSE_STDPATHS=no
2246  DEFAULT_wxUSE_TEXTBUFFER=no
2247  DEFAULT_wxUSE_TEXTFILE=no
2248  DEFAULT_wxUSE_SOUND=no
2249  DEFAULT_wxUSE_MEDIACTRL=no
2250  DEFAULT_wxUSE_GSTREAMER8=no
2251  DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2252  DEFAULT_wxUSE_INTL=no
2253  DEFAULT_wxUSE_CONFIG=no
2254  DEFAULT_wxUSE_FONTMAP=no
2255  DEFAULT_wxUSE_STREAMS=no
2256  DEFAULT_wxUSE_SOCKETS=no
2257  DEFAULT_wxUSE_OLE=no
2258  DEFAULT_wxUSE_DATAOBJ=no
2259  DEFAULT_wxUSE_DIALUP_MANAGER=no
2260  DEFAULT_wxUSE_JOYSTICK=no
2261  DEFAULT_wxUSE_DYNLIB_CLASS=no
2262  DEFAULT_wxUSE_DYNAMIC_LOADER=no
2263  DEFAULT_wxUSE_LONGLONG=no
2264  DEFAULT_wxUSE_GEOMETRY=no
2265
2266  DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2267  DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2268  DEFAULT_wxUSE_POSTSCRIPT=no
2269
2270  DEFAULT_wxUSE_CLIPBOARD=no
2271  DEFAULT_wxUSE_TOOLTIPS=no
2272  DEFAULT_wxUSE_DRAG_AND_DROP=no
2273  DEFAULT_wxUSE_DRAGIMAGE=no
2274  DEFAULT_wxUSE_SPLINES=no
2275  DEFAULT_wxUSE_MOUSEWHEEL=no
2276
2277  DEFAULT_wxUSE_MDI=no
2278  DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2279  DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2280  DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2281
2282  DEFAULT_wxUSE_RESOURCES=no
2283  DEFAULT_wxUSE_CONSTRAINTS=no
2284  DEFAULT_wxUSE_IPC=no
2285  DEFAULT_wxUSE_HELP=no
2286  DEFAULT_wxUSE_MS_HTML_HELP=no
2287  DEFAULT_wxUSE_WXHTML_HELP=no
2288  DEFAULT_wxUSE_TREELAYOUT=no
2289  DEFAULT_wxUSE_METAFILE=no
2290  DEFAULT_wxUSE_MIMETYPE=no
2291  DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2292  DEFAULT_wxUSE_PROTOCOL=no
2293  DEFAULT_wxUSE_PROTOCOL_HTTP=no
2294  DEFAULT_wxUSE_PROTOCOL_FTP=no
2295  DEFAULT_wxUSE_PROTOCOL_FILE=no
2296  DEFAULT_wxUSE_URL=no
2297  DEFAULT_wxUSE_VARIANT=no
2298
2299  DEFAULT_wxUSE_ABOUTDLG=no
2300  DEFAULT_wxUSE_COMMONDLGS=no
2301  DEFAULT_wxUSE_CHOICEDLG=no
2302  DEFAULT_wxUSE_COLOURDLG=no
2303  DEFAULT_wxUSE_DIRDLG=no
2304  DEFAULT_wxUSE_FILEDLG=no
2305  DEFAULT_wxUSE_FINDREPLDLG=no
2306  DEFAULT_wxUSE_FONTDLG=no
2307  DEFAULT_wxUSE_MSGDLG=no
2308  DEFAULT_wxUSE_NUMBERDLG=no
2309  DEFAULT_wxUSE_TEXTDLG=no
2310  DEFAULT_wxUSE_SPLASH=no
2311  DEFAULT_wxUSE_STARTUP_TIPS=no
2312  DEFAULT_wxUSE_PROGRESSDLG=no
2313  DEFAULT_wxUSE_WIZARDDLG=no
2314
2315  DEFAULT_wxUSE_MENUS=no
2316  DEFAULT_wxUSE_MINIFRAME=no
2317  DEFAULT_wxUSE_HTML=no
2318  DEFAULT_wxUSE_RICHTEXT=no
2319  DEFAULT_wxUSE_XRC=no
2320  DEFAULT_wxUSE_AUI=no
2321  DEFAULT_wxUSE_WEBKIT=no
2322  DEFAULT_wxUSE_FILESYSTEM=no
2323  DEFAULT_wxUSE_FS_INET=no
2324  DEFAULT_wxUSE_FS_ZIP=no
2325  DEFAULT_wxUSE_FS_ARCHIVE=no
2326  DEFAULT_wxUSE_BUSYINFO=no
2327  DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2328  DEFAULT_wxUSE_ZIPSTREAM=no
2329  DEFAULT_wxUSE_TARSTREAM=no
2330  DEFAULT_wxUSE_VALIDATORS=no
2331
2332  DEFAULT_wxUSE_ACCEL=no
2333  DEFAULT_wxUSE_ANIMATIONCTRL=no
2334  DEFAULT_wxUSE_BUTTON=no
2335  DEFAULT_wxUSE_BMPBUTTON=no
2336  DEFAULT_wxUSE_BITMAPCOMBOBOX=no
2337  DEFAULT_wxUSE_CALCTRL=no
2338  DEFAULT_wxUSE_CARET=no
2339  DEFAULT_wxUSE_CHECKBOX=no
2340  DEFAULT_wxUSE_CHECKLST=no
2341  DEFAULT_wxUSE_CHOICE=no
2342  DEFAULT_wxUSE_CHOICEBOOK=no
2343  DEFAULT_wxUSE_COLLPANE=no
2344  DEFAULT_wxUSE_COLOURPICKERCTRL=no
2345  DEFAULT_wxUSE_COMBOBOX=no
2346  DEFAULT_wxUSE_COMBOCTRL=no
2347  DEFAULT_wxUSE_DATEPICKCTRL=no
2348  DEFAULT_wxUSE_DISPLAY=no
2349  DEFAULT_wxUSE_DETECT_SM=no
2350  DEFAULT_wxUSE_DIRPICKERCTRL=no
2351  DEFAULT_wxUSE_FILEPICKERCTRL=no
2352  DEFAULT_wxUSE_FONTPICKERCTRL=no
2353  DEFAULT_wxUSE_GAUGE=no
2354  DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2355  DEFAULT_wxUSE_GRID=no
2356  DEFAULT_wxUSE_HYPERLINKCTRL=no
2357  DEFAULT_wxUSE_DATAVIEWCTRL=no
2358  DEFAULT_wxUSE_IMAGLIST=no
2359  DEFAULT_wxUSE_LISTBOOK=no
2360  DEFAULT_wxUSE_LISTBOX=no
2361  DEFAULT_wxUSE_LISTCTRL=no
2362  DEFAULT_wxUSE_NOTEBOOK=no
2363  DEFAULT_wxUSE_ODCOMBOBOX=no
2364  DEFAULT_wxUSE_RADIOBOX=no
2365  DEFAULT_wxUSE_RADIOBTN=no
2366  DEFAULT_wxUSE_SASH=no
2367  DEFAULT_wxUSE_SCROLLBAR=no
2368  DEFAULT_wxUSE_SEARCHCTRL=no
2369  DEFAULT_wxUSE_SLIDER=no
2370  DEFAULT_wxUSE_SPINBTN=no
2371  DEFAULT_wxUSE_SPINCTRL=no
2372  DEFAULT_wxUSE_SPLITTER=no
2373  DEFAULT_wxUSE_STATBMP=no
2374  DEFAULT_wxUSE_STATBOX=no
2375  DEFAULT_wxUSE_STATLINE=no
2376  DEFAULT_wxUSE_STATTEXT=no
2377  DEFAULT_wxUSE_STATUSBAR=yes
2378  DEFAULT_wxUSE_TAB_DIALOG=no
2379  DEFAULT_wxUSE_TEXTCTRL=no
2380  DEFAULT_wxUSE_TOGGLEBTN=no
2381  DEFAULT_wxUSE_TOOLBAR=no
2382  DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2383  DEFAULT_wxUSE_TREEBOOK=no
2384  DEFAULT_wxUSE_TOOLBOOK=no
2385  DEFAULT_wxUSE_TREECTRL=no
2386  DEFAULT_wxUSE_POPUPWIN=no
2387  DEFAULT_wxUSE_TIPWINDOW=no
2388
2389  DEFAULT_wxUSE_UNICODE=no
2390  DEFAULT_wxUSE_UNICODE_MSLU=no
2391  DEFAULT_wxUSE_WCSRTOMBS=no
2392
2393  DEFAULT_wxUSE_PALETTE=no
2394  DEFAULT_wxUSE_IMAGE=no
2395  DEFAULT_wxUSE_GIF=no
2396  DEFAULT_wxUSE_PCX=no
2397  DEFAULT_wxUSE_TGA=no
2398  DEFAULT_wxUSE_PNM=no
2399  DEFAULT_wxUSE_IFF=no
2400  DEFAULT_wxUSE_XPM=no
2401  DEFAULT_wxUSE_ICO_CUR=no
2402  DEFAULT_wxUSE_ACCESSIBILITY=no
2403
2404  DEFAULT_wxUSE_MONOLITHIC=no
2405  DEFAULT_wxUSE_PLUGINS=no
2406  DEFAULT_wxUSE_OFFICIAL_BUILD=no
2407else
2408  DEFAULT_wxUSE_UNIVERSAL=no
2409  DEFAULT_wxUSE_STL=no
2410
2411  DEFAULT_wxUSE_NANOX=no
2412
2413  DEFAULT_wxUSE_THREADS=yes
2414
2415  DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2416  DEFAULT_wxUSE_OPTIMISE=yes
2417  DEFAULT_wxUSE_PROFILE=no
2418  DEFAULT_wxUSE_NO_DEPS=no
2419  DEFAULT_wxUSE_VARARG_MACROS=yes
2420  DEFAULT_wxUSE_NO_RTTI=no
2421  DEFAULT_wxUSE_NO_EXCEPTIONS=no
2422  DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2423  DEFAULT_wxUSE_RPATH=yes
2424  DEFAULT_wxUSE_PERMISSIVE=no
2425  DEFAULT_wxUSE_DEBUG_FLAG=no
2426  DEFAULT_wxUSE_DEBUG_INFO=no
2427  DEFAULT_wxUSE_DEBUG_GDB=no
2428  DEFAULT_wxUSE_MEM_TRACING=no
2429  DEFAULT_wxUSE_DEBUG_CONTEXT=no
2430  DEFAULT_wxUSE_DMALLOC=no
2431  DEFAULT_wxUSE_APPLE_IEEE=yes
2432
2433  DEFAULT_wxUSE_EXCEPTIONS=yes
2434  DEFAULT_wxUSE_LOG=yes
2435  DEFAULT_wxUSE_LOGWINDOW=yes
2436  DEFAULT_wxUSE_LOGGUI=yes
2437  DEFAULT_wxUSE_LOGDIALOG=yes
2438
2439  DEFAULT_wxUSE_GUI=yes
2440
2441  DEFAULT_wxUSE_REGEX=yes
2442  DEFAULT_wxUSE_XML=yes
2443  DEFAULT_wxUSE_EXPAT=yes
2444  DEFAULT_wxUSE_ZLIB=yes
2445  DEFAULT_wxUSE_LIBPNG=yes
2446  DEFAULT_wxUSE_LIBJPEG=yes
2447  DEFAULT_wxUSE_LIBTIFF=yes
2448  DEFAULT_wxUSE_LIBXPM=yes
2449  DEFAULT_wxUSE_LIBMSPACK=yes
2450  DEFAULT_wxUSE_LIBSDL=no
2451  DEFAULT_wxUSE_LIBGNOMEPRINT=yes
2452  DEFAULT_wxUSE_LIBGNOMEVFS=no
2453  DEFAULT_wxUSE_LIBHILDON=no
2454  DEFAULT_wxUSE_ODBC=no
2455  DEFAULT_wxUSE_OPENGL=no
2456
2457  DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2458  DEFAULT_wxUSE_STACKWALKER=yes
2459  DEFAULT_wxUSE_DEBUGREPORT=yes
2460  DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2461  DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2462  DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2463  DEFAULT_wxUSE_CMDLINE_PARSER=yes
2464  DEFAULT_wxUSE_DATETIME=yes
2465  DEFAULT_wxUSE_TIMER=yes
2466  DEFAULT_wxUSE_STOPWATCH=yes
2467  DEFAULT_wxUSE_FILE=yes
2468  DEFAULT_wxUSE_FFILE=yes
2469  DEFAULT_wxUSE_STDPATHS=yes
2470  DEFAULT_wxUSE_TEXTBUFFER=yes
2471  DEFAULT_wxUSE_TEXTFILE=yes
2472  DEFAULT_wxUSE_SOUND=yes
2473  DEFAULT_wxUSE_MEDIACTRL=no
2474  DEFAULT_wxUSE_GSTREAMER8=no
2475  DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
2476  DEFAULT_wxUSE_INTL=yes
2477  DEFAULT_wxUSE_CONFIG=yes
2478  DEFAULT_wxUSE_FONTMAP=yes
2479  DEFAULT_wxUSE_STREAMS=yes
2480  DEFAULT_wxUSE_SOCKETS=yes
2481  DEFAULT_wxUSE_OLE=yes
2482  DEFAULT_wxUSE_DATAOBJ=yes
2483  DEFAULT_wxUSE_DIALUP_MANAGER=yes
2484  DEFAULT_wxUSE_JOYSTICK=yes
2485  DEFAULT_wxUSE_DYNLIB_CLASS=yes
2486  DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2487  DEFAULT_wxUSE_LONGLONG=yes
2488  DEFAULT_wxUSE_GEOMETRY=yes
2489
2490  DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2491  DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2492  DEFAULT_wxUSE_POSTSCRIPT=yes
2493
2494  DEFAULT_wxUSE_CLIPBOARD=yes
2495  DEFAULT_wxUSE_TOOLTIPS=yes
2496  DEFAULT_wxUSE_DRAG_AND_DROP=yes
2497  DEFAULT_wxUSE_DRAGIMAGE=yes
2498  DEFAULT_wxUSE_SPLINES=yes
2499  DEFAULT_wxUSE_MOUSEWHEEL=yes
2500
2501  DEFAULT_wxUSE_MDI=yes
2502  DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2503  DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2504  DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2505
2506  DEFAULT_wxUSE_RESOURCES=no
2507  DEFAULT_wxUSE_CONSTRAINTS=yes
2508  DEFAULT_wxUSE_IPC=yes
2509  DEFAULT_wxUSE_HELP=yes
2510  DEFAULT_wxUSE_MS_HTML_HELP=yes
2511  DEFAULT_wxUSE_WXHTML_HELP=yes
2512  DEFAULT_wxUSE_TREELAYOUT=yes
2513  DEFAULT_wxUSE_METAFILE=yes
2514  DEFAULT_wxUSE_MIMETYPE=yes
2515  DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2516  DEFAULT_wxUSE_PROTOCOL=yes
2517  DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2518  DEFAULT_wxUSE_PROTOCOL_FTP=yes
2519  DEFAULT_wxUSE_PROTOCOL_FILE=yes
2520  DEFAULT_wxUSE_URL=yes
2521  DEFAULT_wxUSE_VARIANT=yes
2522
2523  DEFAULT_wxUSE_ABOUTDLG=yes
2524  DEFAULT_wxUSE_COMMONDLGS=yes
2525  DEFAULT_wxUSE_CHOICEDLG=yes
2526  DEFAULT_wxUSE_COLOURDLG=yes
2527  DEFAULT_wxUSE_DIRDLG=yes
2528  DEFAULT_wxUSE_FILEDLG=yes
2529  DEFAULT_wxUSE_FINDREPLDLG=yes
2530  DEFAULT_wxUSE_FONTDLG=yes
2531  DEFAULT_wxUSE_MSGDLG=yes
2532  DEFAULT_wxUSE_NUMBERDLG=yes
2533  DEFAULT_wxUSE_TEXTDLG=yes
2534  DEFAULT_wxUSE_SPLASH=yes
2535  DEFAULT_wxUSE_STARTUP_TIPS=yes
2536  DEFAULT_wxUSE_PROGRESSDLG=yes
2537  DEFAULT_wxUSE_WIZARDDLG=yes
2538
2539  DEFAULT_wxUSE_MENUS=yes
2540  DEFAULT_wxUSE_MINIFRAME=yes
2541  DEFAULT_wxUSE_HTML=yes
2542  DEFAULT_wxUSE_RICHTEXT=yes
2543  DEFAULT_wxUSE_XRC=yes
2544  DEFAULT_wxUSE_AUI=yes
2545  DEFAULT_wxUSE_WEBKIT=yes
2546  DEFAULT_wxUSE_FILESYSTEM=yes
2547  DEFAULT_wxUSE_FS_INET=yes
2548  DEFAULT_wxUSE_FS_ZIP=yes
2549  DEFAULT_wxUSE_FS_ARCHIVE=yes
2550  DEFAULT_wxUSE_BUSYINFO=yes
2551  DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2552  DEFAULT_wxUSE_ZIPSTREAM=yes
2553  DEFAULT_wxUSE_TARSTREAM=yes
2554  DEFAULT_wxUSE_VALIDATORS=yes
2555
2556  DEFAULT_wxUSE_ACCEL=yes
2557  DEFAULT_wxUSE_ANIMATIONCTRL=yes
2558  DEFAULT_wxUSE_BUTTON=yes
2559  DEFAULT_wxUSE_BMPBUTTON=yes
2560  DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
2561  DEFAULT_wxUSE_CALCTRL=yes
2562  DEFAULT_wxUSE_CARET=yes
2563  DEFAULT_wxUSE_CHECKBOX=yes
2564  DEFAULT_wxUSE_CHECKLST=yes
2565  DEFAULT_wxUSE_CHOICE=yes
2566  DEFAULT_wxUSE_CHOICEBOOK=yes
2567  DEFAULT_wxUSE_COLLPANE=yes
2568  DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2569  DEFAULT_wxUSE_COMBOBOX=yes
2570  DEFAULT_wxUSE_COMBOCTRL=yes
2571  DEFAULT_wxUSE_DATEPICKCTRL=yes
2572  DEFAULT_wxUSE_DISPLAY=yes
2573  DEFAULT_wxUSE_DETECT_SM=yes
2574  DEFAULT_wxUSE_DIRPICKERCTRL=yes
2575  DEFAULT_wxUSE_FILEPICKERCTRL=yes
2576  DEFAULT_wxUSE_FONTPICKERCTRL=yes
2577  DEFAULT_wxUSE_GAUGE=yes
2578  DEFAULT_wxUSE_GRID=yes
2579  DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2580  DEFAULT_wxUSE_HYPERLINKCTRL=yes
2581  DEFAULT_wxUSE_DATAVIEWCTRL=no
2582  DEFAULT_wxUSE_IMAGLIST=yes
2583  DEFAULT_wxUSE_LISTBOOK=yes
2584  DEFAULT_wxUSE_LISTBOX=yes
2585  DEFAULT_wxUSE_LISTCTRL=yes
2586  DEFAULT_wxUSE_NOTEBOOK=yes
2587  DEFAULT_wxUSE_ODCOMBOBOX=yes
2588  DEFAULT_wxUSE_RADIOBOX=yes
2589  DEFAULT_wxUSE_RADIOBTN=yes
2590  DEFAULT_wxUSE_SASH=yes
2591  DEFAULT_wxUSE_SCROLLBAR=yes
2592  DEFAULT_wxUSE_SEARCHCTRL=yes
2593  DEFAULT_wxUSE_SLIDER=yes
2594  DEFAULT_wxUSE_SPINBTN=yes
2595  DEFAULT_wxUSE_SPINCTRL=yes
2596  DEFAULT_wxUSE_SPLITTER=yes
2597  DEFAULT_wxUSE_STATBMP=yes
2598  DEFAULT_wxUSE_STATBOX=yes
2599  DEFAULT_wxUSE_STATLINE=yes
2600  DEFAULT_wxUSE_STATTEXT=yes
2601  DEFAULT_wxUSE_STATUSBAR=yes
2602  DEFAULT_wxUSE_TAB_DIALOG=no
2603  DEFAULT_wxUSE_TEXTCTRL=yes
2604  DEFAULT_wxUSE_TOGGLEBTN=yes
2605  DEFAULT_wxUSE_TOOLBAR=yes
2606  DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2607  DEFAULT_wxUSE_TREEBOOK=yes
2608  DEFAULT_wxUSE_TOOLBOOK=yes
2609  DEFAULT_wxUSE_TREECTRL=yes
2610  DEFAULT_wxUSE_POPUPWIN=yes
2611  DEFAULT_wxUSE_TIPWINDOW=yes
2612
2613  DEFAULT_wxUSE_UNICODE=no
2614  DEFAULT_wxUSE_UNICODE_MSLU=yes
2615  DEFAULT_wxUSE_WCSRTOMBS=no
2616
2617  DEFAULT_wxUSE_PALETTE=yes
2618  DEFAULT_wxUSE_IMAGE=yes
2619  DEFAULT_wxUSE_GIF=yes
2620  DEFAULT_wxUSE_PCX=yes
2621  DEFAULT_wxUSE_TGA=yes
2622  DEFAULT_wxUSE_IFF=no    DEFAULT_wxUSE_PNM=yes
2623  DEFAULT_wxUSE_XPM=yes
2624  DEFAULT_wxUSE_ICO_CUR=yes
2625  DEFAULT_wxUSE_ACCESSIBILITY=no
2626
2627  DEFAULT_wxUSE_MONOLITHIC=no
2628  DEFAULT_wxUSE_PLUGINS=no
2629  DEFAULT_wxUSE_OFFICIAL_BUILD=no
2630
2631    DEFAULT_wxUSE_GTK2=yes
2632fi
2633
2634DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2635
2636
2637
2638
2639for toolkit in `echo $ALL_TOOLKITS`; do
2640  LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2641  if test "x$LINE" != "x" ; then
2642    has_toolkit_in_cache=1
2643    eval "DEFAULT_$LINE"
2644    eval "CACHE_$toolkit=1"
2645
2646    LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2647    if test "x$LINE" != "x" ; then
2648        eval "DEFAULT_$LINE"
2649    fi
2650  fi
2651done
2652
2653
2654
2655          enablestring=
2656          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2657echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2658          no_cache=0
2659          # Check whether --enable-gui or --disable-gui was given.
2660if test "${enable_gui+set}" = set; then
2661  enableval="$enable_gui"
2662
2663                          if test "$enableval" = yes; then
2664                            wx_cv_use_gui='wxUSE_GUI=yes'
2665                          else
2666                            wx_cv_use_gui='wxUSE_GUI=no'
2667                          fi
2668
2669else
2670
2671                          LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2672                          if test "x$LINE" != x ; then
2673                            eval "DEFAULT_$LINE"
2674                          else
2675                            no_cache=1
2676                          fi
2677
2678                          wx_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2679
2680fi;
2681
2682          eval "$wx_cv_use_gui"
2683          if test "$no_cache" != 1; then
2684            echo $wx_cv_use_gui >> ${wx_arg_cache_file}.tmp
2685          fi
2686
2687          if test "$wxUSE_GUI" = yes; then
2688            echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6
2690          else
2691            echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6
2693          fi
2694
2695
2696          enablestring=
2697          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2698echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2699          no_cache=0
2700          # Check whether --enable-monolithic or --disable-monolithic was given.
2701if test "${enable_monolithic+set}" = set; then
2702  enableval="$enable_monolithic"
2703
2704                          if test "$enableval" = yes; then
2705                            wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2706                          else
2707                            wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2708                          fi
2709
2710else
2711
2712                          LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2713                          if test "x$LINE" != x ; then
2714                            eval "DEFAULT_$LINE"
2715                          else
2716                            no_cache=1
2717                          fi
2718
2719                          wx_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2720
2721fi;
2722
2723          eval "$wx_cv_use_monolithic"
2724          if test "$no_cache" != 1; then
2725            echo $wx_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2726          fi
2727
2728          if test "$wxUSE_MONOLITHIC" = yes; then
2729            echo "$as_me:$LINENO: result: yes" >&5
2730echo "${ECHO_T}yes" >&6
2731          else
2732            echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
2734          fi
2735
2736
2737          enablestring=
2738          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2739echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2740          no_cache=0
2741          # Check whether --enable-plugins or --disable-plugins was given.
2742if test "${enable_plugins+set}" = set; then
2743  enableval="$enable_plugins"
2744
2745                          if test "$enableval" = yes; then
2746                            wx_cv_use_plugins='wxUSE_PLUGINS=yes'
2747                          else
2748                            wx_cv_use_plugins='wxUSE_PLUGINS=no'
2749                          fi
2750
2751else
2752
2753                          LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2754                          if test "x$LINE" != x ; then
2755                            eval "DEFAULT_$LINE"
2756                          else
2757                            no_cache=1
2758                          fi
2759
2760                          wx_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2761
2762fi;
2763
2764          eval "$wx_cv_use_plugins"
2765          if test "$no_cache" != 1; then
2766            echo $wx_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2767          fi
2768
2769          if test "$wxUSE_PLUGINS" = yes; then
2770            echo "$as_me:$LINENO: result: yes" >&5
2771echo "${ECHO_T}yes" >&6
2772          else
2773            echo "$as_me:$LINENO: result: no" >&5
2774echo "${ECHO_T}no" >&6
2775          fi
2776
2777
2778          withstring=without
2779          echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2780echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2781          no_cache=0
2782
2783# Check whether --with-subdirs or --without-subdirs was given.
2784if test "${with_subdirs+set}" = set; then
2785  withval="$with_subdirs"
2786
2787                        if test "$withval" = yes; then
2788                          wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2789                        else
2790                          wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
2791                        fi
2792
2793else
2794
2795                        LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2796                        if test "x$LINE" != x ; then
2797                          eval "DEFAULT_$LINE"
2798                        else
2799                          no_cache=1
2800                        fi
2801
2802                        wx_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2803
2804fi;
2805
2806          eval "$wx_cv_use_subdirs"
2807          if test "$no_cache" != 1; then
2808            echo $wx_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2809          fi
2810
2811          if test "$wxWITH_SUBDIRS" = yes; then
2812            echo "$as_me:$LINENO: result: yes" >&5
2813echo "${ECHO_T}yes" >&6
2814          else
2815            echo "$as_me:$LINENO: result: no" >&5
2816echo "${ECHO_T}no" >&6
2817          fi
2818
2819
2820if test "$wxUSE_GUI" = "yes"; then
2821
2822
2823          enablestring=
2824          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2825echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2826          no_cache=0
2827          # Check whether --enable-universal or --disable-universal was given.
2828if test "${enable_universal+set}" = set; then
2829  enableval="$enable_universal"
2830
2831                          if test "$enableval" = yes; then
2832                            wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
2833                          else
2834                            wx_cv_use_universal='wxUSE_UNIVERSAL=no'
2835                          fi
2836
2837else
2838
2839                          LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2840                          if test "x$LINE" != x ; then
2841                            eval "DEFAULT_$LINE"
2842                          else
2843                            no_cache=1
2844                          fi
2845
2846                          wx_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2847
2848fi;
2849
2850          eval "$wx_cv_use_universal"
2851          if test "$no_cache" != 1; then
2852            echo $wx_cv_use_universal >> ${wx_arg_cache_file}.tmp
2853          fi
2854
2855          if test "$wxUSE_UNIVERSAL" = yes; then
2856            echo "$as_me:$LINENO: result: yes" >&5
2857echo "${ECHO_T}yes" >&6
2858          else
2859            echo "$as_me:$LINENO: result: no" >&5
2860echo "${ECHO_T}no" >&6
2861          fi
2862
2863
2864# Check whether --with-gtk or --without-gtk was given.
2865if test "${with_gtk+set}" = set; then
2866  withval="$with_gtk"
2867  wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2868fi;
2869
2870# Check whether --with-motif or --without-motif was given.
2871if test "${with_motif+set}" = set; then
2872  withval="$with_motif"
2873  wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2874fi;
2875
2876# Check whether --with-mac or --without-mac was given.
2877if test "${with_mac+set}" = set; then
2878  withval="$with_mac"
2879  wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2880fi;
2881
2882# Check whether --with-cocoa or --without-cocoa was given.
2883if test "${with_cocoa+set}" = set; then
2884  withval="$with_cocoa"
2885  wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2886fi;
2887
2888# Check whether --with-wine or --without-wine was given.
2889if test "${with_wine+set}" = set; then
2890  withval="$with_wine"
2891  wxUSE_WINE="$withval" CACHE_WINE=1
2892fi;
2893
2894# Check whether --with-msw or --without-msw was given.
2895if test "${with_msw+set}" = set; then
2896  withval="$with_msw"
2897  wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2898fi;
2899
2900# Check whether --with-pm or --without-pm was given.
2901if test "${with_pm+set}" = set; then
2902  withval="$with_pm"
2903  wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2904fi;
2905
2906# Check whether --with-mgl or --without-mgl was given.
2907if test "${with_mgl+set}" = set; then
2908  withval="$with_mgl"
2909  wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2910fi;
2911
2912# Check whether --with-directfb or --without-directfb was given.
2913if test "${with_directfb+set}" = set; then
2914  withval="$with_directfb"
2915  wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2916fi;
2917
2918# Check whether --with-microwin or --without-microwin was given.
2919if test "${with_microwin+set}" = set; then
2920  withval="$with_microwin"
2921  wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2922fi;
2923
2924# Check whether --with-x11 or --without-x11 was given.
2925if test "${with_x11+set}" = set; then
2926  withval="$with_x11"
2927  wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2928fi;
2929
2930          enablestring=
2931          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2932echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2933          no_cache=0
2934          # Check whether --enable-nanox or --disable-nanox was given.
2935if test "${enable_nanox+set}" = set; then
2936  enableval="$enable_nanox"
2937
2938                          if test "$enableval" = yes; then
2939                            wx_cv_use_nanox='wxUSE_NANOX=yes'
2940                          else
2941                            wx_cv_use_nanox='wxUSE_NANOX=no'
2942                          fi
2943
2944else
2945
2946                          LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2947                          if test "x$LINE" != x ; then
2948                            eval "DEFAULT_$LINE"
2949                          else
2950                            no_cache=1
2951                          fi
2952
2953                          wx_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2954
2955fi;
2956
2957          eval "$wx_cv_use_nanox"
2958          if test "$no_cache" != 1; then
2959            echo $wx_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2960          fi
2961
2962          if test "$wxUSE_NANOX" = yes; then
2963            echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6
2965          else
2966            echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
2968          fi
2969
2970
2971# Check whether --enable-gtk2 or --disable-gtk2 was given.
2972if test "${enable_gtk2+set}" = set; then
2973  enableval="$enable_gtk2"
2974  wxUSE_GTK2="$enableval"
2975fi;
2976
2977          enablestring=
2978          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2979echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2980          no_cache=0
2981          # Check whether --enable-gpe or --disable-gpe was given.
2982if test "${enable_gpe+set}" = set; then
2983  enableval="$enable_gpe"
2984
2985                          if test "$enableval" = yes; then
2986                            wx_cv_use_gpe='wxUSE_GPE=yes'
2987                          else
2988                            wx_cv_use_gpe='wxUSE_GPE=no'
2989                          fi
2990
2991else
2992
2993                          LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2994                          if test "x$LINE" != x ; then
2995                            eval "DEFAULT_$LINE"
2996                          else
2997                            no_cache=1
2998                          fi
2999
3000                          wx_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
3001
3002fi;
3003
3004          eval "$wx_cv_use_gpe"
3005          if test "$no_cache" != 1; then
3006            echo $wx_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3007          fi
3008
3009          if test "$wxUSE_GPE" = yes; then
3010            echo "$as_me:$LINENO: result: yes" >&5
3011echo "${ECHO_T}yes" >&6
3012          else
3013            echo "$as_me:$LINENO: result: no" >&5
3014echo "${ECHO_T}no" >&6
3015          fi
3016
3017
3018
3019          echo "$as_me:$LINENO: checking for --with-libpng" >&5
3020echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3021          no_cache=0
3022
3023# Check whether --with-libpng or --without-libpng was given.
3024if test "${with_libpng+set}" = set; then
3025  withval="$with_libpng"
3026
3027                        if test "$withval" = yes; then
3028                          wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3029                        elif test "$withval" = no; then
3030                          wx_cv_use_libpng='wxUSE_LIBPNG=no'
3031                        elif test "$withval" = sys; then
3032                          wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3033                        elif test "$withval" = builtin; then
3034                          wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3035                        else
3036                          { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3037echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3038   { (exit 1); exit 1; }; }
3039                        fi
3040
3041else
3042
3043                        LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3044                        if test "x$LINE" != x ; then
3045                          eval "DEFAULT_$LINE"
3046                        else
3047                          no_cache=1
3048                        fi
3049
3050                        wx_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3051
3052fi;
3053
3054          eval "$wx_cv_use_libpng"
3055          if test "$no_cache" != 1; then
3056            echo $wx_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3057          fi
3058
3059          if test "$wxUSE_LIBPNG" = yes; then
3060            echo "$as_me:$LINENO: result: yes" >&5
3061echo "${ECHO_T}yes" >&6
3062          elif test "$wxUSE_LIBPNG" = no; then
3063            echo "$as_me:$LINENO: result: no" >&5
3064echo "${ECHO_T}no" >&6
3065          elif test "$wxUSE_LIBPNG" = sys; then
3066            echo "$as_me:$LINENO: result: system version" >&5
3067echo "${ECHO_T}system version" >&6
3068          elif test "$wxUSE_LIBPNG" = builtin; then
3069            echo "$as_me:$LINENO: result: builtin version" >&5
3070echo "${ECHO_T}builtin version" >&6
3071          else
3072            { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3073echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3074   { (exit 1); exit 1; }; }
3075          fi
3076
3077
3078          echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3079echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3080          no_cache=0
3081
3082# Check whether --with-libjpeg or --without-libjpeg was given.
3083if test "${with_libjpeg+set}" = set; then
3084  withval="$with_libjpeg"
3085
3086                        if test "$withval" = yes; then
3087                          wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3088                        elif test "$withval" = no; then
3089                          wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3090                        elif test "$withval" = sys; then
3091                          wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3092                        elif test "$withval" = builtin; then
3093                          wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3094                        else
3095                          { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3096echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3097   { (exit 1); exit 1; }; }
3098                        fi
3099
3100else
3101
3102                        LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3103                        if test "x$LINE" != x ; then
3104                          eval "DEFAULT_$LINE"
3105                        else
3106                          no_cache=1
3107                        fi
3108
3109                        wx_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3110
3111fi;
3112
3113          eval "$wx_cv_use_libjpeg"
3114          if test "$no_cache" != 1; then
3115            echo $wx_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3116          fi
3117
3118          if test "$wxUSE_LIBJPEG" = yes; then
3119            echo "$as_me:$LINENO: result: yes" >&5
3120echo "${ECHO_T}yes" >&6
3121          elif test "$wxUSE_LIBJPEG" = no; then
3122            echo "$as_me:$LINENO: result: no" >&5
3123echo "${ECHO_T}no" >&6
3124          elif test "$wxUSE_LIBJPEG" = sys; then
3125            echo "$as_me:$LINENO: result: system version" >&5
3126echo "${ECHO_T}system version" >&6
3127          elif test "$wxUSE_LIBJPEG" = builtin; then
3128            echo "$as_me:$LINENO: result: builtin version" >&5
3129echo "${ECHO_T}builtin version" >&6
3130          else
3131            { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3132echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3133   { (exit 1); exit 1; }; }
3134          fi
3135
3136
3137          echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3138echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3139          no_cache=0
3140
3141# Check whether --with-libtiff or --without-libtiff was given.
3142if test "${with_libtiff+set}" = set; then
3143  withval="$with_libtiff"
3144
3145                        if test "$withval" = yes; then
3146                          wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3147                        elif test "$withval" = no; then
3148                          wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3149                        elif test "$withval" = sys; then
3150                          wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3151                        elif test "$withval" = builtin; then
3152                          wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3153                        else
3154                          { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3155echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3156   { (exit 1); exit 1; }; }
3157                        fi
3158
3159else
3160
3161                        LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3162                        if test "x$LINE" != x ; then
3163                          eval "DEFAULT_$LINE"
3164                        else
3165                          no_cache=1
3166                        fi
3167
3168                        wx_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3169
3170fi;
3171
3172          eval "$wx_cv_use_libtiff"
3173          if test "$no_cache" != 1; then
3174            echo $wx_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3175          fi
3176
3177          if test "$wxUSE_LIBTIFF" = yes; then
3178            echo "$as_me:$LINENO: result: yes" >&5
3179echo "${ECHO_T}yes" >&6
3180          elif test "$wxUSE_LIBTIFF" = no; then
3181            echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
3183          elif test "$wxUSE_LIBTIFF" = sys; then
3184            echo "$as_me:$LINENO: result: system version" >&5
3185echo "${ECHO_T}system version" >&6
3186          elif test "$wxUSE_LIBTIFF" = builtin; then
3187            echo "$as_me:$LINENO: result: builtin version" >&5
3188echo "${ECHO_T}builtin version" >&6
3189          else
3190            { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3191echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3192   { (exit 1); exit 1; }; }
3193          fi
3194
3195
3196          echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3197echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3198          no_cache=0
3199
3200# Check whether --with-libxpm or --without-libxpm was given.
3201if test "${with_libxpm+set}" = set; then
3202  withval="$with_libxpm"
3203
3204                        if test "$withval" = yes; then
3205                          wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3206                        elif test "$withval" = no; then
3207                          wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3208                        elif test "$withval" = sys; then
3209                          wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3210                        elif test "$withval" = builtin; then
3211                          wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3212                        else
3213                          { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3214echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3215   { (exit 1); exit 1; }; }
3216                        fi
3217
3218else
3219
3220                        LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3221                        if test "x$LINE" != x ; then
3222                          eval "DEFAULT_$LINE"
3223                        else
3224                          no_cache=1
3225                        fi
3226
3227                        wx_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3228
3229fi;
3230
3231          eval "$wx_cv_use_libxpm"
3232          if test "$no_cache" != 1; then
3233            echo $wx_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3234          fi
3235
3236          if test "$wxUSE_LIBXPM" = yes; then
3237            echo "$as_me:$LINENO: result: yes" >&5
3238echo "${ECHO_T}yes" >&6
3239          elif test "$wxUSE_LIBXPM" = no; then
3240            echo "$as_me:$LINENO: result: no" >&5
3241echo "${ECHO_T}no" >&6
3242          elif test "$wxUSE_LIBXPM" = sys; then
3243            echo "$as_me:$LINENO: result: system version" >&5
3244echo "${ECHO_T}system version" >&6
3245          elif test "$wxUSE_LIBXPM" = builtin; then
3246            echo "$as_me:$LINENO: result: builtin version" >&5
3247echo "${ECHO_T}builtin version" >&6
3248          else
3249            { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3250echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3251   { (exit 1); exit 1; }; }
3252          fi
3253
3254
3255          withstring=
3256          echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3257echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3258          no_cache=0
3259
3260# Check whether --with-libmspack or --without-libmspack was given.
3261if test "${with_libmspack+set}" = set; then
3262  withval="$with_libmspack"
3263
3264                        if test "$withval" = yes; then
3265                          wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3266                        else
3267                          wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3268                        fi
3269
3270else
3271
3272                        LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3273                        if test "x$LINE" != x ; then
3274                          eval "DEFAULT_$LINE"
3275                        else
3276                          no_cache=1
3277                        fi
3278
3279                        wx_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3280
3281fi;
3282
3283          eval "$wx_cv_use_libmspack"
3284          if test "$no_cache" != 1; then
3285            echo $wx_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3286          fi
3287
3288          if test "$wxUSE_LIBMSPACK" = yes; then
3289            echo "$as_me:$LINENO: result: yes" >&5
3290echo "${ECHO_T}yes" >&6
3291          else
3292            echo "$as_me:$LINENO: result: no" >&5
3293echo "${ECHO_T}no" >&6
3294          fi
3295
3296
3297          withstring=
3298          echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3299echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3300          no_cache=0
3301
3302# Check whether --with-sdl or --without-sdl was given.
3303if test "${with_sdl+set}" = set; then
3304  withval="$with_sdl"
3305
3306                        if test "$withval" = yes; then
3307                          wx_cv_use_sdl='wxUSE_LIBSDL=yes'
3308                        else
3309                          wx_cv_use_sdl='wxUSE_LIBSDL=no'
3310                        fi
3311
3312else
3313
3314                        LINE=`grep "wxUSE_LIBSDL" ${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                        wx_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3322
3323fi;
3324
3325          eval "$wx_cv_use_sdl"
3326          if test "$no_cache" != 1; then
3327            echo $wx_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3328          fi
3329
3330          if test "$wxUSE_LIBSDL" = yes; then
3331            echo "$as_me:$LINENO: result: yes" >&5
3332echo "${ECHO_T}yes" >&6
3333          else
3334            echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
3336          fi
3337
3338
3339          withstring=
3340          echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3341echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3342          no_cache=0
3343
3344# Check whether --with-gnomeprint or --without-gnomeprint was given.
3345if test "${with_gnomeprint+set}" = set; then
3346  withval="$with_gnomeprint"
3347
3348                        if test "$withval" = yes; then
3349                          wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3350                        else
3351                          wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3352                        fi
3353
3354else
3355
3356                        LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3357                        if test "x$LINE" != x ; then
3358                          eval "DEFAULT_$LINE"
3359                        else
3360                          no_cache=1
3361                        fi
3362
3363                        wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3364
3365fi;
3366
3367          eval "$wx_cv_use_gnomeprint"
3368          if test "$no_cache" != 1; then
3369            echo $wx_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3370          fi
3371
3372          if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3373            echo "$as_me:$LINENO: result: yes" >&5
3374echo "${ECHO_T}yes" >&6
3375          else
3376            echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
3378          fi
3379
3380
3381          withstring=
3382          echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3383echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3384          no_cache=0
3385
3386# Check whether --with-gnomevfs or --without-gnomevfs was given.
3387if test "${with_gnomevfs+set}" = set; then
3388  withval="$with_gnomevfs"
3389
3390                        if test "$withval" = yes; then
3391                          wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3392                        else
3393                          wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3394                        fi
3395
3396else
3397
3398                        LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3399                        if test "x$LINE" != x ; then
3400                          eval "DEFAULT_$LINE"
3401                        else
3402                          no_cache=1
3403                        fi
3404
3405                        wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3406
3407fi;
3408
3409          eval "$wx_cv_use_gnomevfs"
3410          if test "$no_cache" != 1; then
3411            echo $wx_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3412          fi
3413
3414          if test "$wxUSE_LIBGNOMEVFS" = yes; then
3415            echo "$as_me:$LINENO: result: yes" >&5
3416echo "${ECHO_T}yes" >&6
3417          else
3418            echo "$as_me:$LINENO: result: no" >&5
3419echo "${ECHO_T}no" >&6
3420          fi
3421
3422
3423          withstring=
3424          echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3425echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3426          no_cache=0
3427
3428# Check whether --with-hildon or --without-hildon was given.
3429if test "${with_hildon+set}" = set; then
3430  withval="$with_hildon"
3431
3432                        if test "$withval" = yes; then
3433                          wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3434                        else
3435                          wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3436                        fi
3437
3438else
3439
3440                        LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3441                        if test "x$LINE" != x ; then
3442                          eval "DEFAULT_$LINE"
3443                        else
3444                          no_cache=1
3445                        fi
3446
3447                        wx_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3448
3449fi;
3450
3451          eval "$wx_cv_use_hildon"
3452          if test "$no_cache" != 1; then
3453            echo $wx_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3454          fi
3455
3456          if test "$wxUSE_LIBHILDON" = yes; then
3457            echo "$as_me:$LINENO: result: yes" >&5
3458echo "${ECHO_T}yes" >&6
3459          else
3460            echo "$as_me:$LINENO: result: no" >&5
3461echo "${ECHO_T}no" >&6
3462          fi
3463
3464
3465          withstring=
3466          echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3467echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3468          no_cache=0
3469
3470# Check whether --with-opengl or --without-opengl was given.
3471if test "${with_opengl+set}" = set; then
3472  withval="$with_opengl"
3473
3474                        if test "$withval" = yes; then
3475                          wx_cv_use_opengl='wxUSE_OPENGL=yes'
3476                        else
3477                          wx_cv_use_opengl='wxUSE_OPENGL=no'
3478                        fi
3479
3480else
3481
3482                        LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3483                        if test "x$LINE" != x ; then
3484                          eval "DEFAULT_$LINE"
3485                        else
3486                          no_cache=1
3487                        fi
3488
3489                        wx_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3490
3491fi;
3492
3493          eval "$wx_cv_use_opengl"
3494          if test "$no_cache" != 1; then
3495            echo $wx_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3496          fi
3497
3498          if test "$wxUSE_OPENGL" = yes; then
3499            echo "$as_me:$LINENO: result: yes" >&5
3500echo "${ECHO_T}yes" >&6
3501          else
3502            echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504          fi
3505
3506
3507if test "$wxUSE_UNIVERSAL" = "yes"; then
3508
3509# Check whether --with-themes or --without-themes was given.
3510if test "${with_themes+set}" = set; then
3511  withval="$with_themes"
3512  wxUNIV_THEMES="$withval"
3513fi;
3514fi
3515
3516fi
3517
3518
3519          withstring=
3520          echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3521echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3522          no_cache=0
3523
3524# Check whether --with-dmalloc or --without-dmalloc was given.
3525if test "${with_dmalloc+set}" = set; then
3526  withval="$with_dmalloc"
3527
3528                        if test "$withval" = yes; then
3529                          wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3530                        else
3531                          wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
3532                        fi
3533
3534else
3535
3536                        LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3537                        if test "x$LINE" != x ; then
3538                          eval "DEFAULT_$LINE"
3539                        else
3540                          no_cache=1
3541                        fi
3542
3543                        wx_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3544
3545fi;
3546
3547          eval "$wx_cv_use_dmalloc"
3548          if test "$no_cache" != 1; then
3549            echo $wx_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3550          fi
3551
3552          if test "$wxUSE_DMALLOC" = yes; then
3553            echo "$as_me:$LINENO: result: yes" >&5
3554echo "${ECHO_T}yes" >&6
3555          else
3556            echo "$as_me:$LINENO: result: no" >&5
3557echo "${ECHO_T}no" >&6
3558          fi
3559
3560
3561          echo "$as_me:$LINENO: checking for --with-regex" >&5
3562echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3563          no_cache=0
3564
3565# Check whether --with-regex or --without-regex was given.
3566if test "${with_regex+set}" = set; then
3567  withval="$with_regex"
3568
3569                        if test "$withval" = yes; then
3570                          wx_cv_use_regex='wxUSE_REGEX=yes'
3571                        elif test "$withval" = no; then
3572                          wx_cv_use_regex='wxUSE_REGEX=no'
3573                        elif test "$withval" = sys; then
3574                          wx_cv_use_regex='wxUSE_REGEX=sys'
3575                        elif test "$withval" = builtin; then
3576                          wx_cv_use_regex='wxUSE_REGEX=builtin'
3577                        else
3578                          { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3579echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3580   { (exit 1); exit 1; }; }
3581                        fi
3582
3583else
3584
3585                        LINE=`grep "wxUSE_REGEX" ${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                        wx_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3593
3594fi;
3595
3596          eval "$wx_cv_use_regex"
3597          if test "$no_cache" != 1; then
3598            echo $wx_cv_use_regex >> ${wx_arg_cache_file}.tmp
3599          fi
3600
3601          if test "$wxUSE_REGEX" = yes; then
3602            echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
3604          elif test "$wxUSE_REGEX" = no; then
3605            echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607          elif test "$wxUSE_REGEX" = sys; then
3608            echo "$as_me:$LINENO: result: system version" >&5
3609echo "${ECHO_T}system version" >&6
3610          elif test "$wxUSE_REGEX" = builtin; then
3611            echo "$as_me:$LINENO: result: builtin version" >&5
3612echo "${ECHO_T}builtin version" >&6
3613          else
3614            { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3615echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3616   { (exit 1); exit 1; }; }
3617          fi
3618
3619
3620          echo "$as_me:$LINENO: checking for --with-zlib" >&5
3621echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3622          no_cache=0
3623
3624# Check whether --with-zlib or --without-zlib was given.
3625if test "${with_zlib+set}" = set; then
3626  withval="$with_zlib"
3627
3628                        if test "$withval" = yes; then
3629                          wx_cv_use_zlib='wxUSE_ZLIB=yes'
3630                        elif test "$withval" = no; then
3631                          wx_cv_use_zlib='wxUSE_ZLIB=no'
3632                        elif test "$withval" = sys; then
3633                          wx_cv_use_zlib='wxUSE_ZLIB=sys'
3634                        elif test "$withval" = builtin; then
3635                          wx_cv_use_zlib='wxUSE_ZLIB=builtin'
3636                        else
3637                          { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3638echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3639   { (exit 1); exit 1; }; }
3640                        fi
3641
3642else
3643
3644                        LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3645                        if test "x$LINE" != x ; then
3646                          eval "DEFAULT_$LINE"
3647                        else
3648                          no_cache=1
3649                        fi
3650
3651                        wx_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3652
3653fi;
3654
3655          eval "$wx_cv_use_zlib"
3656          if test "$no_cache" != 1; then
3657            echo $wx_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3658          fi
3659
3660          if test "$wxUSE_ZLIB" = yes; then
3661            echo "$as_me:$LINENO: result: yes" >&5
3662echo "${ECHO_T}yes" >&6
3663          elif test "$wxUSE_ZLIB" = no; then
3664            echo "$as_me:$LINENO: result: no" >&5
3665echo "${ECHO_T}no" >&6
3666          elif test "$wxUSE_ZLIB" = sys; then
3667            echo "$as_me:$LINENO: result: system version" >&5
3668echo "${ECHO_T}system version" >&6
3669          elif test "$wxUSE_ZLIB" = builtin; then
3670            echo "$as_me:$LINENO: result: builtin version" >&5
3671echo "${ECHO_T}builtin version" >&6
3672          else
3673            { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3674echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3675   { (exit 1); exit 1; }; }
3676          fi
3677
3678
3679          echo "$as_me:$LINENO: checking for --with-odbc" >&5
3680echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3681          no_cache=0
3682
3683# Check whether --with-odbc or --without-odbc was given.
3684if test "${with_odbc+set}" = set; then
3685  withval="$with_odbc"
3686
3687                        if test "$withval" = yes; then
3688                          wx_cv_use_odbc='wxUSE_ODBC=yes'
3689                        elif test "$withval" = no; then
3690                          wx_cv_use_odbc='wxUSE_ODBC=no'
3691                        elif test "$withval" = sys; then
3692                          wx_cv_use_odbc='wxUSE_ODBC=sys'
3693                        elif test "$withval" = builtin; then
3694                          wx_cv_use_odbc='wxUSE_ODBC=builtin'
3695                        else
3696                          { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3697echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3698   { (exit 1); exit 1; }; }
3699                        fi
3700
3701else
3702
3703                        LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3704                        if test "x$LINE" != x ; then
3705                          eval "DEFAULT_$LINE"
3706                        else
3707                          no_cache=1
3708                        fi
3709
3710                        wx_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3711
3712fi;
3713
3714          eval "$wx_cv_use_odbc"
3715          if test "$no_cache" != 1; then
3716            echo $wx_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3717          fi
3718
3719          if test "$wxUSE_ODBC" = yes; then
3720            echo "$as_me:$LINENO: result: yes" >&5
3721echo "${ECHO_T}yes" >&6
3722          elif test "$wxUSE_ODBC" = no; then
3723            echo "$as_me:$LINENO: result: no" >&5
3724echo "${ECHO_T}no" >&6
3725          elif test "$wxUSE_ODBC" = sys; then
3726            echo "$as_me:$LINENO: result: system version" >&5
3727echo "${ECHO_T}system version" >&6
3728          elif test "$wxUSE_ODBC" = builtin; then
3729            echo "$as_me:$LINENO: result: builtin version" >&5
3730echo "${ECHO_T}builtin version" >&6
3731          else
3732            { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3733echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3734   { (exit 1); exit 1; }; }
3735          fi
3736
3737
3738          echo "$as_me:$LINENO: checking for --with-expat" >&5
3739echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3740          no_cache=0
3741
3742# Check whether --with-expat or --without-expat was given.
3743if test "${with_expat+set}" = set; then
3744  withval="$with_expat"
3745
3746                        if test "$withval" = yes; then
3747                          wx_cv_use_expat='wxUSE_EXPAT=yes'
3748                        elif test "$withval" = no; then
3749                          wx_cv_use_expat='wxUSE_EXPAT=no'
3750                        elif test "$withval" = sys; then
3751                          wx_cv_use_expat='wxUSE_EXPAT=sys'
3752                        elif test "$withval" = builtin; then
3753                          wx_cv_use_expat='wxUSE_EXPAT=builtin'
3754                        else
3755                          { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3756echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3757   { (exit 1); exit 1; }; }
3758                        fi
3759
3760else
3761
3762                        LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3763                        if test "x$LINE" != x ; then
3764                          eval "DEFAULT_$LINE"
3765                        else
3766                          no_cache=1
3767                        fi
3768
3769                        wx_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3770
3771fi;
3772
3773          eval "$wx_cv_use_expat"
3774          if test "$no_cache" != 1; then
3775            echo $wx_cv_use_expat >> ${wx_arg_cache_file}.tmp
3776          fi
3777
3778          if test "$wxUSE_EXPAT" = yes; then
3779            echo "$as_me:$LINENO: result: yes" >&5
3780echo "${ECHO_T}yes" >&6
3781          elif test "$wxUSE_EXPAT" = no; then
3782            echo "$as_me:$LINENO: result: no" >&5
3783echo "${ECHO_T}no" >&6
3784          elif test "$wxUSE_EXPAT" = sys; then
3785            echo "$as_me:$LINENO: result: system version" >&5
3786echo "${ECHO_T}system version" >&6
3787          elif test "$wxUSE_EXPAT" = builtin; then
3788            echo "$as_me:$LINENO: result: builtin version" >&5
3789echo "${ECHO_T}builtin version" >&6
3790          else
3791            { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3792echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3793   { (exit 1); exit 1; }; }
3794          fi
3795
3796
3797echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
3798echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6
3799
3800# Check whether --with-macosx-sdk or --without-macosx-sdk was given.
3801if test "${with_macosx_sdk+set}" = set; then
3802  withval="$with_macosx_sdk"
3803
3804        wxUSE_MACOSX_SDK=$withval
3805        wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
3806        echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp
3807
3808else
3809
3810        # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no)
3811        # will override --enable-universal_binary's automatic SDK usage.
3812        wxUSE_MACOSX_SDK=
3813        LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}`
3814        if test "x$LINE" != x ; then
3815            eval "$LINE"
3816            echo "$LINE" >> ${wx_arg_cache_file}.tmp
3817        fi
3818
3819fi;
3820echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
3821echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6
3822
3823echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
3824echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6
3825
3826# Check whether --with-macosx-version-min or --without-macosx-version-min was given.
3827if test "${with_macosx_version_min+set}" = set; then
3828  withval="$with_macosx_version_min"
3829
3830        wxUSE_MACOSX_VERSION_MIN=$withval
3831        wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
3832        echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp
3833
3834else
3835
3836        # default "yes" because when not using an SDK it means the same as no
3837        # but when using an SDK it means to use the SDK version
3838        wxUSE_MACOSX_VERSION_MIN=yes
3839        # See if there is a value in the cache
3840        LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}`
3841        if test "x$LINE" != x ; then
3842            eval "$LINE"
3843            echo "$LINE" >> ${wx_arg_cache_file}.tmp
3844        fi
3845
3846fi;
3847echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
3848echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6
3849
3850
3851
3852          enablestring=
3853          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3854echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3855          no_cache=0
3856          # Check whether --enable-shared or --disable-shared was given.
3857if test "${enable_shared+set}" = set; then
3858  enableval="$enable_shared"
3859
3860                          if test "$enableval" = yes; then
3861                            wx_cv_use_shared='wxUSE_SHARED=yes'
3862                          else
3863                            wx_cv_use_shared='wxUSE_SHARED=no'
3864                          fi
3865
3866else
3867
3868                          LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3869                          if test "x$LINE" != x ; then
3870                            eval "DEFAULT_$LINE"
3871                          else
3872                            no_cache=1
3873                          fi
3874
3875                          wx_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3876
3877fi;
3878
3879          eval "$wx_cv_use_shared"
3880          if test "$no_cache" != 1; then
3881            echo $wx_cv_use_shared >> ${wx_arg_cache_file}.tmp
3882          fi
3883
3884          if test "$wxUSE_SHARED" = yes; then
3885            echo "$as_me:$LINENO: result: yes" >&5
3886echo "${ECHO_T}yes" >&6
3887          else
3888            echo "$as_me:$LINENO: result: no" >&5
3889echo "${ECHO_T}no" >&6
3890          fi
3891
3892
3893          enablestring=
3894          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3895echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3896          no_cache=0
3897          # Check whether --enable-optimise or --disable-optimise was given.
3898if test "${enable_optimise+set}" = set; then
3899  enableval="$enable_optimise"
3900
3901                          if test "$enableval" = yes; then
3902                            wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
3903                          else
3904                            wx_cv_use_optimise='wxUSE_OPTIMISE=no'
3905                          fi
3906
3907else
3908
3909                          LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3910                          if test "x$LINE" != x ; then
3911                            eval "DEFAULT_$LINE"
3912                          else
3913                            no_cache=1
3914                          fi
3915
3916                          wx_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3917
3918fi;
3919
3920          eval "$wx_cv_use_optimise"
3921          if test "$no_cache" != 1; then
3922            echo $wx_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3923          fi
3924
3925          if test "$wxUSE_OPTIMISE" = yes; then
3926            echo "$as_me:$LINENO: result: yes" >&5
3927echo "${ECHO_T}yes" >&6
3928          else
3929            echo "$as_me:$LINENO: result: no" >&5
3930echo "${ECHO_T}no" >&6
3931          fi
3932
3933
3934          enablestring=
3935          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3936echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3937          no_cache=0
3938          # Check whether --enable-debug or --disable-debug was given.
3939if test "${enable_debug+set}" = set; then
3940  enableval="$enable_debug"
3941
3942                          if test "$enableval" = yes; then
3943                            wx_cv_use_debug='wxUSE_DEBUG=yes'
3944                          else
3945                            wx_cv_use_debug='wxUSE_DEBUG=no'
3946                          fi
3947
3948else
3949
3950                          LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3951                          if test "x$LINE" != x ; then
3952                            eval "DEFAULT_$LINE"
3953                          else
3954                            no_cache=1
3955                          fi
3956
3957                          wx_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3958
3959fi;
3960
3961          eval "$wx_cv_use_debug"
3962          if test "$no_cache" != 1; then
3963            echo $wx_cv_use_debug >> ${wx_arg_cache_file}.tmp
3964          fi
3965
3966          if test "$wxUSE_DEBUG" = yes; then
3967            echo "$as_me:$LINENO: result: yes" >&5
3968echo "${ECHO_T}yes" >&6
3969          else
3970            echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
3972          fi
3973
3974
3975          enablestring=
3976          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3977echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3978          no_cache=0
3979          # Check whether --enable-stl or --disable-stl was given.
3980if test "${enable_stl+set}" = set; then
3981  enableval="$enable_stl"
3982
3983                          if test "$enableval" = yes; then
3984                            wx_cv_use_stl='wxUSE_STL=yes'
3985                          else
3986                            wx_cv_use_stl='wxUSE_STL=no'
3987                          fi
3988
3989else
3990
3991                          LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3992                          if test "x$LINE" != x ; then
3993                            eval "DEFAULT_$LINE"
3994                          else
3995                            no_cache=1
3996                          fi
3997
3998                          wx_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3999
4000fi;
4001
4002          eval "$wx_cv_use_stl"
4003          if test "$no_cache" != 1; then
4004            echo $wx_cv_use_stl >> ${wx_arg_cache_file}.tmp
4005          fi
4006
4007          if test "$wxUSE_STL" = yes; then
4008            echo "$as_me:$LINENO: result: yes" >&5
4009echo "${ECHO_T}yes" >&6
4010          else
4011            echo "$as_me:$LINENO: result: no" >&5
4012echo "${ECHO_T}no" >&6
4013          fi
4014
4015if test "$USE_OS2" = "1"; then
4016    DEFAULT_wxUSE_OMF=no
4017
4018          enablestring=
4019          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4020echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
4021          no_cache=0
4022          # Check whether --enable-omf or --disable-omf was given.
4023if test "${enable_omf+set}" = set; then
4024  enableval="$enable_omf"
4025
4026                          if test "$enableval" = yes; then
4027                            wx_cv_use_omf='wxUSE_OMF=yes'
4028                          else
4029                            wx_cv_use_omf='wxUSE_OMF=no'
4030                          fi
4031
4032else
4033
4034                          LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
4035                          if test "x$LINE" != x ; then
4036                            eval "DEFAULT_$LINE"
4037                          else
4038                            no_cache=1
4039                          fi
4040
4041                          wx_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
4042
4043fi;
4044
4045          eval "$wx_cv_use_omf"
4046          if test "$no_cache" != 1; then
4047            echo $wx_cv_use_omf >> ${wx_arg_cache_file}.tmp
4048          fi
4049
4050          if test "$wxUSE_OMF" = yes; then
4051            echo "$as_me:$LINENO: result: yes" >&5
4052echo "${ECHO_T}yes" >&6
4053          else
4054            echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6
4056          fi
4057
4058fi
4059
4060if test "$wxUSE_DEBUG" = "yes"; then
4061  DEFAULT_wxUSE_DEBUG_FLAG=yes
4062  DEFAULT_wxUSE_DEBUG_INFO=yes
4063  BUILD=debug
4064elif test "$wxUSE_DEBUG" = "no"; then
4065  DEFAULT_wxUSE_DEBUG_FLAG=no
4066  DEFAULT_wxUSE_DEBUG_INFO=no
4067  BUILD=release
4068fi
4069
4070
4071          enablestring=
4072          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4073echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4074          no_cache=0
4075          # Check whether --enable-debug_flag or --disable-debug_flag was given.
4076if test "${enable_debug_flag+set}" = set; then
4077  enableval="$enable_debug_flag"
4078
4079                          if test "$enableval" = yes; then
4080                            wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4081                          else
4082                            wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4083                          fi
4084
4085else
4086
4087                          LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4088                          if test "x$LINE" != x ; then
4089                            eval "DEFAULT_$LINE"
4090                          else
4091                            no_cache=1
4092                          fi
4093
4094                          wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4095
4096fi;
4097
4098          eval "$wx_cv_use_debug_flag"
4099          if test "$no_cache" != 1; then
4100            echo $wx_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4101          fi
4102
4103          if test "$wxUSE_DEBUG_FLAG" = yes; then
4104            echo "$as_me:$LINENO: result: yes" >&5
4105echo "${ECHO_T}yes" >&6
4106          else
4107            echo "$as_me:$LINENO: result: no" >&5
4108echo "${ECHO_T}no" >&6
4109          fi
4110
4111
4112          enablestring=
4113          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4114echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4115          no_cache=0
4116          # Check whether --enable-debug_info or --disable-debug_info was given.
4117if test "${enable_debug_info+set}" = set; then
4118  enableval="$enable_debug_info"
4119
4120                          if test "$enableval" = yes; then
4121                            wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4122                          else
4123                            wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4124                          fi
4125
4126else
4127
4128                          LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4129                          if test "x$LINE" != x ; then
4130                            eval "DEFAULT_$LINE"
4131                          else
4132                            no_cache=1
4133                          fi
4134
4135                          wx_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4136
4137fi;
4138
4139          eval "$wx_cv_use_debug_info"
4140          if test "$no_cache" != 1; then
4141            echo $wx_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4142          fi
4143
4144          if test "$wxUSE_DEBUG_INFO" = yes; then
4145            echo "$as_me:$LINENO: result: yes" >&5
4146echo "${ECHO_T}yes" >&6
4147          else
4148            echo "$as_me:$LINENO: result: no" >&5
4149echo "${ECHO_T}no" >&6
4150          fi
4151
4152
4153          enablestring=
4154          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4155echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4156          no_cache=0
4157          # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4158if test "${enable_debug_gdb+set}" = set; then
4159  enableval="$enable_debug_gdb"
4160
4161                          if test "$enableval" = yes; then
4162                            wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4163                          else
4164                            wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4165                          fi
4166
4167else
4168
4169                          LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4170                          if test "x$LINE" != x ; then
4171                            eval "DEFAULT_$LINE"
4172                          else
4173                            no_cache=1
4174                          fi
4175
4176                          wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4177
4178fi;
4179
4180          eval "$wx_cv_use_debug_gdb"
4181          if test "$no_cache" != 1; then
4182            echo $wx_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4183          fi
4184
4185          if test "$wxUSE_DEBUG_GDB" = yes; then
4186            echo "$as_me:$LINENO: result: yes" >&5
4187echo "${ECHO_T}yes" >&6
4188          else
4189            echo "$as_me:$LINENO: result: no" >&5
4190echo "${ECHO_T}no" >&6
4191          fi
4192
4193
4194          enablestring=
4195          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4196echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4197          no_cache=0
4198          # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4199if test "${enable_debug_cntxt+set}" = set; then
4200  enableval="$enable_debug_cntxt"
4201
4202                          if test "$enableval" = yes; then
4203                            wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4204                          else
4205                            wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4206                          fi
4207
4208else
4209
4210                          LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4211                          if test "x$LINE" != x ; then
4212                            eval "DEFAULT_$LINE"
4213                          else
4214                            no_cache=1
4215                          fi
4216
4217                          wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4218
4219fi;
4220
4221          eval "$wx_cv_use_debug_cntxt"
4222          if test "$no_cache" != 1; then
4223            echo $wx_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4224          fi
4225
4226          if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4227            echo "$as_me:$LINENO: result: yes" >&5
4228echo "${ECHO_T}yes" >&6
4229          else
4230            echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6
4232          fi
4233
4234
4235          enablestring=
4236          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4237echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4238          no_cache=0
4239          # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4240if test "${enable_mem_tracing+set}" = set; then
4241  enableval="$enable_mem_tracing"
4242
4243                          if test "$enableval" = yes; then
4244                            wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4245                          else
4246                            wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4247                          fi
4248
4249else
4250
4251                          LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4252                          if test "x$LINE" != x ; then
4253                            eval "DEFAULT_$LINE"
4254                          else
4255                            no_cache=1
4256                          fi
4257
4258                          wx_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4259
4260fi;
4261
4262          eval "$wx_cv_use_mem_tracing"
4263          if test "$no_cache" != 1; then
4264            echo $wx_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4265          fi
4266
4267          if test "$wxUSE_MEM_TRACING" = yes; then
4268            echo "$as_me:$LINENO: result: yes" >&5
4269echo "${ECHO_T}yes" >&6
4270          else
4271            echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
4273          fi
4274
4275
4276          enablestring=
4277          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4278echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4279          no_cache=0
4280          # Check whether --enable-profile or --disable-profile was given.
4281if test "${enable_profile+set}" = set; then
4282  enableval="$enable_profile"
4283
4284                          if test "$enableval" = yes; then
4285                            wx_cv_use_profile='wxUSE_PROFILE=yes'
4286                          else
4287                            wx_cv_use_profile='wxUSE_PROFILE=no'
4288                          fi
4289
4290else
4291
4292                          LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4293                          if test "x$LINE" != x ; then
4294                            eval "DEFAULT_$LINE"
4295                          else
4296                            no_cache=1
4297                          fi
4298
4299                          wx_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4300
4301fi;
4302
4303          eval "$wx_cv_use_profile"
4304          if test "$no_cache" != 1; then
4305            echo $wx_cv_use_profile >> ${wx_arg_cache_file}.tmp
4306          fi
4307
4308          if test "$wxUSE_PROFILE" = yes; then
4309            echo "$as_me:$LINENO: result: yes" >&5
4310echo "${ECHO_T}yes" >&6
4311          else
4312            echo "$as_me:$LINENO: result: no" >&5
4313echo "${ECHO_T}no" >&6
4314          fi
4315
4316
4317          enablestring=
4318          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4319echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4320          no_cache=0
4321          # Check whether --enable-no_rtti or --disable-no_rtti was given.
4322if test "${enable_no_rtti+set}" = set; then
4323  enableval="$enable_no_rtti"
4324
4325                          if test "$enableval" = yes; then
4326                            wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4327                          else
4328                            wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4329                          fi
4330
4331else
4332
4333                          LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4334                          if test "x$LINE" != x ; then
4335                            eval "DEFAULT_$LINE"
4336                          else
4337                            no_cache=1
4338                          fi
4339
4340                          wx_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4341
4342fi;
4343
4344          eval "$wx_cv_use_no_rtti"
4345          if test "$no_cache" != 1; then
4346            echo $wx_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4347          fi
4348
4349          if test "$wxUSE_NO_RTTI" = yes; then
4350            echo "$as_me:$LINENO: result: yes" >&5
4351echo "${ECHO_T}yes" >&6
4352          else
4353            echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6
4355          fi
4356
4357
4358          enablestring=
4359          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4360echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4361          no_cache=0
4362          # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4363if test "${enable_no_exceptions+set}" = set; then
4364  enableval="$enable_no_exceptions"
4365
4366                          if test "$enableval" = yes; then
4367                            wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4368                          else
4369                            wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4370                          fi
4371
4372else
4373
4374                          LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4375                          if test "x$LINE" != x ; then
4376                            eval "DEFAULT_$LINE"
4377                          else
4378                            no_cache=1
4379                          fi
4380
4381                          wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4382
4383fi;
4384
4385          eval "$wx_cv_use_no_exceptions"
4386          if test "$no_cache" != 1; then
4387            echo $wx_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4388          fi
4389
4390          if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4391            echo "$as_me:$LINENO: result: yes" >&5
4392echo "${ECHO_T}yes" >&6
4393          else
4394            echo "$as_me:$LINENO: result: no" >&5
4395echo "${ECHO_T}no" >&6
4396          fi
4397
4398
4399          enablestring=
4400          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4401echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4402          no_cache=0
4403          # Check whether --enable-permissive or --disable-permissive was given.
4404if test "${enable_permissive+set}" = set; then
4405  enableval="$enable_permissive"
4406
4407                          if test "$enableval" = yes; then
4408                            wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4409                          else
4410                            wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
4411                          fi
4412
4413else
4414
4415                          LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4416                          if test "x$LINE" != x ; then
4417                            eval "DEFAULT_$LINE"
4418                          else
4419                            no_cache=1
4420                          fi
4421
4422                          wx_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4423
4424fi;
4425
4426          eval "$wx_cv_use_permissive"
4427          if test "$no_cache" != 1; then
4428            echo $wx_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4429          fi
4430
4431          if test "$wxUSE_PERMISSIVE" = yes; then
4432            echo "$as_me:$LINENO: result: yes" >&5
4433echo "${ECHO_T}yes" >&6
4434          else
4435            echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6
4437          fi
4438
4439
4440          enablestring=
4441          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4442echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4443          no_cache=0
4444          # Check whether --enable-no_deps or --disable-no_deps was given.
4445if test "${enable_no_deps+set}" = set; then
4446  enableval="$enable_no_deps"
4447
4448                          if test "$enableval" = yes; then
4449                            wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4450                          else
4451                            wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
4452                          fi
4453
4454else
4455
4456                          LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4457                          if test "x$LINE" != x ; then
4458                            eval "DEFAULT_$LINE"
4459                          else
4460                            no_cache=1
4461                          fi
4462
4463                          wx_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4464
4465fi;
4466
4467          eval "$wx_cv_use_no_deps"
4468          if test "$no_cache" != 1; then
4469            echo $wx_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4470          fi
4471
4472          if test "$wxUSE_NO_DEPS" = yes; then
4473            echo "$as_me:$LINENO: result: yes" >&5
4474echo "${ECHO_T}yes" >&6
4475          else
4476            echo "$as_me:$LINENO: result: no" >&5
4477echo "${ECHO_T}no" >&6
4478          fi
4479
4480
4481          enablestring=
4482          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
4483echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6
4484          no_cache=0
4485          # Check whether --enable-vararg_macros or --disable-vararg_macros was given.
4486if test "${enable_vararg_macros+set}" = set; then
4487  enableval="$enable_vararg_macros"
4488
4489                          if test "$enableval" = yes; then
4490                            wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
4491                          else
4492                            wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
4493                          fi
4494
4495else
4496
4497                          LINE=`grep "wxUSE_VARARG_MACROS" ${wx_arg_cache_file}`
4498                          if test "x$LINE" != x ; then
4499                            eval "DEFAULT_$LINE"
4500                          else
4501                            no_cache=1
4502                          fi
4503
4504                          wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS='$DEFAULT_wxUSE_VARARG_MACROS
4505
4506fi;
4507
4508          eval "$wx_cv_use_vararg_macros"
4509          if test "$no_cache" != 1; then
4510            echo $wx_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
4511          fi
4512
4513          if test "$wxUSE_VARARG_MACROS" = yes; then
4514            echo "$as_me:$LINENO: result: yes" >&5
4515echo "${ECHO_T}yes" >&6
4516          else
4517            echo "$as_me:$LINENO: result: no" >&5
4518echo "${ECHO_T}no" >&6
4519          fi
4520
4521
4522          enablestring=
4523          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4524echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4525          no_cache=0
4526          # Check whether --enable-universal_binary or --disable-universal_binary was given.
4527if test "${enable_universal_binary+set}" = set; then
4528  enableval="$enable_universal_binary"
4529
4530                          wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
4531
4532else
4533
4534                          LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4535                          if test "x$LINE" != x ; then
4536                            eval "DEFAULT_$LINE"
4537                            wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4538                          else
4539                            no_cache=1
4540                            wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
4541                          fi
4542
4543fi;
4544
4545          eval "$wx_cv_use_universal_binary"
4546          if test "$no_cache" != 1; then
4547            echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4548          fi
4549
4550          echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4551echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
4552
4553
4554
4555          enablestring=enable
4556          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4557echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4558          no_cache=0
4559          # Check whether --enable-compat24 or --disable-compat24 was given.
4560if test "${enable_compat24+set}" = set; then
4561  enableval="$enable_compat24"
4562
4563                          if test "$enableval" = yes; then
4564                            wx_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4565                          else
4566                            wx_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4567                          fi
4568
4569else
4570
4571                          LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4572                          if test "x$LINE" != x ; then
4573                            eval "DEFAULT_$LINE"
4574                          else
4575                            no_cache=1
4576                          fi
4577
4578                          wx_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4579
4580fi;
4581
4582          eval "$wx_cv_use_compat24"
4583          if test "$no_cache" != 1; then
4584            echo $wx_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4585          fi
4586
4587          if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4588            echo "$as_me:$LINENO: result: yes" >&5
4589echo "${ECHO_T}yes" >&6
4590          else
4591            echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6
4593          fi
4594
4595
4596          enablestring=disable
4597          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4598echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4599          no_cache=0
4600          # Check whether --enable-compat26 or --disable-compat26 was given.
4601if test "${enable_compat26+set}" = set; then
4602  enableval="$enable_compat26"
4603
4604                          if test "$enableval" = yes; then
4605                            wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4606                          else
4607                            wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4608                          fi
4609
4610else
4611
4612                          LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4613                          if test "x$LINE" != x ; then
4614                            eval "DEFAULT_$LINE"
4615                          else
4616                            no_cache=1
4617                          fi
4618
4619                          wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4620
4621fi;
4622
4623          eval "$wx_cv_use_compat26"
4624          if test "$no_cache" != 1; then
4625            echo $wx_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4626          fi
4627
4628          if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4629            echo "$as_me:$LINENO: result: yes" >&5
4630echo "${ECHO_T}yes" >&6
4631          else
4632            echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6
4634          fi
4635
4636
4637
4638          enablestring=
4639          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4640echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4641          no_cache=0
4642          # Check whether --enable-rpath or --disable-rpath was given.
4643if test "${enable_rpath+set}" = set; then
4644  enableval="$enable_rpath"
4645
4646                          if test "$enableval" = yes; then
4647                            wx_cv_use_rpath='wxUSE_RPATH=yes'
4648                          else
4649                            wx_cv_use_rpath='wxUSE_RPATH=no'
4650                          fi
4651
4652else
4653
4654                          LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4655                          if test "x$LINE" != x ; then
4656                            eval "DEFAULT_$LINE"
4657                          else
4658                            no_cache=1
4659                          fi
4660
4661                          wx_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4662
4663fi;
4664
4665          eval "$wx_cv_use_rpath"
4666          if test "$no_cache" != 1; then
4667            echo $wx_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4668          fi
4669
4670          if test "$wxUSE_RPATH" = yes; then
4671            echo "$as_me:$LINENO: result: yes" >&5
4672echo "${ECHO_T}yes" >&6
4673          else
4674            echo "$as_me:$LINENO: result: no" >&5
4675echo "${ECHO_T}no" >&6
4676          fi
4677
4678
4679
4680          enablestring=
4681          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
4682echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6
4683          no_cache=0
4684          # Check whether --enable-objc_uniquifying or --disable-objc_uniquifying was given.
4685if test "${enable_objc_uniquifying+set}" = set; then
4686  enableval="$enable_objc_uniquifying"
4687
4688                          if test "$enableval" = yes; then
4689                            wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
4690                          else
4691                            wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
4692                          fi
4693
4694else
4695
4696                          LINE=`grep "wxUSE_OBJC_UNIQUIFYING" ${wx_arg_cache_file}`
4697                          if test "x$LINE" != x ; then
4698                            eval "DEFAULT_$LINE"
4699                          else
4700                            no_cache=1
4701                          fi
4702
4703                          wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING='$DEFAULT_wxUSE_OBJC_UNIQUIFYING
4704
4705fi;
4706
4707          eval "$wx_cv_use_objc_uniquifying"
4708          if test "$no_cache" != 1; then
4709            echo $wx_cv_use_objc_uniquifying >> ${wx_arg_cache_file}.tmp
4710          fi
4711
4712          if test "$wxUSE_OBJC_UNIQUIFYING" = yes; then
4713            echo "$as_me:$LINENO: result: yes" >&5
4714echo "${ECHO_T}yes" >&6
4715          else
4716            echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6
4718          fi
4719
4720
4721if test "x$wxUSE_SHARED" = "xno"; then
4722    DEFAULT_wxUSE_ABI_INCOMPATIBLE_FEATURES=yes
4723else
4724    DEFAULT_wxUSE_ABI_INCOMPATIBLE_FEATURES=no
4725fi
4726
4727          enablestring=
4728          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-abi-incompatible-features" >&5
4729echo $ECHO_N "checking for --${enablestring:-enable}-abi-incompatible-features... $ECHO_C" >&6
4730          no_cache=0
4731          # Check whether --enable-abi-incompatible-features or --disable-abi-incompatible-features was given.
4732if test "${enable_abi_incompatible_features+set}" = set; then
4733  enableval="$enable_abi_incompatible_features"
4734
4735                          if test "$enableval" = yes; then
4736                            wx_cv_use_abi_incompatible_features='wxUSE_ABI_INCOMPATIBLE_FEATURES=yes'
4737                          else
4738                            wx_cv_use_abi_incompatible_features='wxUSE_ABI_INCOMPATIBLE_FEATURES=no'
4739                          fi
4740
4741else
4742
4743                          LINE=`grep "wxUSE_ABI_INCOMPATIBLE_FEATURES" ${wx_arg_cache_file}`
4744                          if test "x$LINE" != x ; then
4745                            eval "DEFAULT_$LINE"
4746                          else
4747                            no_cache=1
4748                          fi
4749
4750                          wx_cv_use_abi_incompatible_features='wxUSE_ABI_INCOMPATIBLE_FEATURES='$DEFAULT_wxUSE_ABI_INCOMPATIBLE_FEATURES
4751
4752fi;
4753
4754          eval "$wx_cv_use_abi_incompatible_features"
4755          if test "$no_cache" != 1; then
4756            echo $wx_cv_use_abi_incompatible_features >> ${wx_arg_cache_file}.tmp
4757          fi
4758
4759          if test "$wxUSE_ABI_INCOMPATIBLE_FEATURES" = yes; then
4760            echo "$as_me:$LINENO: result: yes" >&5
4761echo "${ECHO_T}yes" >&6
4762          else
4763            echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6
4765          fi
4766
4767
4768
4769
4770          enablestring=
4771          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4772echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4773          no_cache=0
4774          # Check whether --enable-intl or --disable-intl was given.
4775if test "${enable_intl+set}" = set; then
4776  enableval="$enable_intl"
4777
4778                          if test "$enableval" = yes; then
4779                            wx_cv_use_intl='wxUSE_INTL=yes'
4780                          else
4781                            wx_cv_use_intl='wxUSE_INTL=no'
4782                          fi
4783
4784else
4785
4786                          LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4787                          if test "x$LINE" != x ; then
4788                            eval "DEFAULT_$LINE"
4789                          else
4790                            no_cache=1
4791                          fi
4792
4793                          wx_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4794
4795fi;
4796
4797          eval "$wx_cv_use_intl"
4798          if test "$no_cache" != 1; then
4799            echo $wx_cv_use_intl >> ${wx_arg_cache_file}.tmp
4800          fi
4801
4802          if test "$wxUSE_INTL" = yes; then
4803            echo "$as_me:$LINENO: result: yes" >&5
4804echo "${ECHO_T}yes" >&6
4805          else
4806            echo "$as_me:$LINENO: result: no" >&5
4807echo "${ECHO_T}no" >&6
4808          fi
4809
4810
4811          enablestring=
4812          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4813echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4814          no_cache=0
4815          # Check whether --enable-config or --disable-config was given.
4816if test "${enable_config+set}" = set; then
4817  enableval="$enable_config"
4818
4819                          if test "$enableval" = yes; then
4820                            wx_cv_use_config='wxUSE_CONFIG=yes'
4821                          else
4822                            wx_cv_use_config='wxUSE_CONFIG=no'
4823                          fi
4824
4825else
4826
4827                          LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4828                          if test "x$LINE" != x ; then
4829                            eval "DEFAULT_$LINE"
4830                          else
4831                            no_cache=1
4832                          fi
4833
4834                          wx_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4835
4836fi;
4837
4838          eval "$wx_cv_use_config"
4839          if test "$no_cache" != 1; then
4840            echo $wx_cv_use_config >> ${wx_arg_cache_file}.tmp
4841          fi
4842
4843          if test "$wxUSE_CONFIG" = yes; then
4844            echo "$as_me:$LINENO: result: yes" >&5
4845echo "${ECHO_T}yes" >&6
4846          else
4847            echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
4849          fi
4850
4851
4852
4853          enablestring=
4854          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4855echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4856          no_cache=0
4857          # Check whether --enable-protocols or --disable-protocols was given.
4858if test "${enable_protocols+set}" = set; then
4859  enableval="$enable_protocols"
4860
4861                          if test "$enableval" = yes; then
4862                            wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
4863                          else
4864                            wx_cv_use_protocols='wxUSE_PROTOCOL=no'
4865                          fi
4866
4867else
4868
4869                          LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4870                          if test "x$LINE" != x ; then
4871                            eval "DEFAULT_$LINE"
4872                          else
4873                            no_cache=1
4874                          fi
4875
4876                          wx_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4877
4878fi;
4879
4880          eval "$wx_cv_use_protocols"
4881          if test "$no_cache" != 1; then
4882            echo $wx_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4883          fi
4884
4885          if test "$wxUSE_PROTOCOL" = yes; then
4886            echo "$as_me:$LINENO: result: yes" >&5
4887echo "${ECHO_T}yes" >&6
4888          else
4889            echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6
4891          fi
4892
4893
4894          enablestring=
4895          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4896echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4897          no_cache=0
4898          # Check whether --enable-ftp or --disable-ftp was given.
4899if test "${enable_ftp+set}" = set; then
4900  enableval="$enable_ftp"
4901
4902                          if test "$enableval" = yes; then
4903                            wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4904                          else
4905                            wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4906                          fi
4907
4908else
4909
4910                          LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4911                          if test "x$LINE" != x ; then
4912                            eval "DEFAULT_$LINE"
4913                          else
4914                            no_cache=1
4915                          fi
4916
4917                          wx_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4918
4919fi;
4920
4921          eval "$wx_cv_use_ftp"
4922          if test "$no_cache" != 1; then
4923            echo $wx_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4924          fi
4925
4926          if test "$wxUSE_PROTOCOL_FTP" = yes; then
4927            echo "$as_me:$LINENO: result: yes" >&5
4928echo "${ECHO_T}yes" >&6
4929          else
4930            echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932          fi
4933
4934
4935          enablestring=
4936          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4937echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4938          no_cache=0
4939          # Check whether --enable-http or --disable-http was given.
4940if test "${enable_http+set}" = set; then
4941  enableval="$enable_http"
4942
4943                          if test "$enableval" = yes; then
4944                            wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4945                          else
4946                            wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4947                          fi
4948
4949else
4950
4951                          LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4952                          if test "x$LINE" != x ; then
4953                            eval "DEFAULT_$LINE"
4954                          else
4955                            no_cache=1
4956                          fi
4957
4958                          wx_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4959
4960fi;
4961
4962          eval "$wx_cv_use_http"
4963          if test "$no_cache" != 1; then
4964            echo $wx_cv_use_http >> ${wx_arg_cache_file}.tmp
4965          fi
4966
4967          if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4968            echo "$as_me:$LINENO: result: yes" >&5
4969echo "${ECHO_T}yes" >&6
4970          else
4971            echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6
4973          fi
4974
4975
4976          enablestring=
4977          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4978echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4979          no_cache=0
4980          # Check whether --enable-fileproto or --disable-fileproto was given.
4981if test "${enable_fileproto+set}" = set; then
4982  enableval="$enable_fileproto"
4983
4984                          if test "$enableval" = yes; then
4985                            wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4986                          else
4987                            wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4988                          fi
4989
4990else
4991
4992                          LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4993                          if test "x$LINE" != x ; then
4994                            eval "DEFAULT_$LINE"
4995                          else
4996                            no_cache=1
4997                          fi
4998
4999                          wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5000
5001fi;
5002
5003          eval "$wx_cv_use_fileproto"
5004          if test "$no_cache" != 1; then
5005            echo $wx_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
5006          fi
5007
5008          if test "$wxUSE_PROTOCOL_FILE" = yes; then
5009            echo "$as_me:$LINENO: result: yes" >&5
5010echo "${ECHO_T}yes" >&6
5011          else
5012            echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6
5014          fi
5015
5016
5017          enablestring=
5018          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5019echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
5020          no_cache=0
5021          # Check whether --enable-sockets or --disable-sockets was given.
5022if test "${enable_sockets+set}" = set; then
5023  enableval="$enable_sockets"
5024
5025                          if test "$enableval" = yes; then
5026                            wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5027                          else
5028                            wx_cv_use_sockets='wxUSE_SOCKETS=no'
5029                          fi
5030
5031else
5032
5033                          LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
5034                          if test "x$LINE" != x ; then
5035                            eval "DEFAULT_$LINE"
5036                          else
5037                            no_cache=1
5038                          fi
5039
5040                          wx_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
5041
5042fi;
5043
5044          eval "$wx_cv_use_sockets"
5045          if test "$no_cache" != 1; then
5046            echo $wx_cv_use_sockets >> ${wx_arg_cache_file}.tmp
5047          fi
5048
5049          if test "$wxUSE_SOCKETS" = yes; then
5050            echo "$as_me:$LINENO: result: yes" >&5
5051echo "${ECHO_T}yes" >&6
5052          else
5053            echo "$as_me:$LINENO: result: no" >&5
5054echo "${ECHO_T}no" >&6
5055          fi
5056
5057
5058          enablestring=
5059          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5060echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
5061          no_cache=0
5062          # Check whether --enable-ole or --disable-ole was given.
5063if test "${enable_ole+set}" = set; then
5064  enableval="$enable_ole"
5065
5066                          if test "$enableval" = yes; then
5067                            wx_cv_use_ole='wxUSE_OLE=yes'
5068                          else
5069                            wx_cv_use_ole='wxUSE_OLE=no'
5070                          fi
5071
5072else
5073
5074                          LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
5075                          if test "x$LINE" != x ; then
5076                            eval "DEFAULT_$LINE"
5077                          else
5078                            no_cache=1
5079                          fi
5080
5081                          wx_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
5082
5083fi;
5084
5085          eval "$wx_cv_use_ole"
5086          if test "$no_cache" != 1; then
5087            echo $wx_cv_use_ole >> ${wx_arg_cache_file}.tmp
5088          fi
5089
5090          if test "$wxUSE_OLE" = yes; then
5091            echo "$as_me:$LINENO: result: yes" >&5
5092echo "${ECHO_T}yes" >&6
5093          else
5094            echo "$as_me:$LINENO: result: no" >&5
5095echo "${ECHO_T}no" >&6
5096          fi
5097
5098
5099          enablestring=
5100          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
5101echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
5102          no_cache=0
5103          # Check whether --enable-dataobj or --disable-dataobj was given.
5104if test "${enable_dataobj+set}" = set; then
5105  enableval="$enable_dataobj"
5106
5107                          if test "$enableval" = yes; then
5108                            wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
5109                          else
5110                            wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
5111                          fi
5112
5113else
5114
5115                          LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
5116                          if test "x$LINE" != x ; then
5117                            eval "DEFAULT_$LINE"
5118                          else
5119                            no_cache=1
5120                          fi
5121
5122                          wx_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
5123
5124fi;
5125
5126          eval "$wx_cv_use_dataobj"
5127          if test "$no_cache" != 1; then
5128            echo $wx_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
5129          fi
5130
5131          if test "$wxUSE_DATAOBJ" = yes; then
5132            echo "$as_me:$LINENO: result: yes" >&5
5133echo "${ECHO_T}yes" >&6
5134          else
5135            echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137          fi
5138
5139
5140
5141          enablestring=
5142          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
5143echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
5144          no_cache=0
5145          # Check whether --enable-ipc or --disable-ipc was given.
5146if test "${enable_ipc+set}" = set; then
5147  enableval="$enable_ipc"
5148
5149                          if test "$enableval" = yes; then
5150                            wx_cv_use_ipc='wxUSE_IPC=yes'
5151                          else
5152                            wx_cv_use_ipc='wxUSE_IPC=no'
5153                          fi
5154
5155else
5156
5157                          LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
5158                          if test "x$LINE" != x ; then
5159                            eval "DEFAULT_$LINE"
5160                          else
5161                            no_cache=1
5162                          fi
5163
5164                          wx_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5165
5166fi;
5167
5168          eval "$wx_cv_use_ipc"
5169          if test "$no_cache" != 1; then
5170            echo $wx_cv_use_ipc >> ${wx_arg_cache_file}.tmp
5171          fi
5172
5173          if test "$wxUSE_IPC" = yes; then
5174            echo "$as_me:$LINENO: result: yes" >&5
5175echo "${ECHO_T}yes" >&6
5176          else
5177            echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
5179          fi
5180
5181
5182
5183          enablestring=
5184          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
5185echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
5186          no_cache=0
5187          # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
5188if test "${enable_apple_ieee+set}" = set; then
5189  enableval="$enable_apple_ieee"
5190
5191                          if test "$enableval" = yes; then
5192                            wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5193                          else
5194                            wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5195                          fi
5196
5197else
5198
5199                          LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5200                          if test "x$LINE" != x ; then
5201                            eval "DEFAULT_$LINE"
5202                          else
5203                            no_cache=1
5204                          fi
5205
5206                          wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5207
5208fi;
5209
5210          eval "$wx_cv_use_apple_ieee"
5211          if test "$no_cache" != 1; then
5212            echo $wx_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5213          fi
5214
5215          if test "$wxUSE_APPLE_IEEE" = yes; then
5216            echo "$as_me:$LINENO: result: yes" >&5
5217echo "${ECHO_T}yes" >&6
5218          else
5219            echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221          fi
5222
5223
5224          enablestring=
5225          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5226echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5227          no_cache=0
5228          # Check whether --enable-arcstream or --disable-arcstream was given.
5229if test "${enable_arcstream+set}" = set; then
5230  enableval="$enable_arcstream"
5231
5232                          if test "$enableval" = yes; then
5233                            wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
5234                          else
5235                            wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
5236                          fi
5237
5238else
5239
5240                          LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
5241                          if test "x$LINE" != x ; then
5242                            eval "DEFAULT_$LINE"
5243                          else
5244                            no_cache=1
5245                          fi
5246
5247                          wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
5248
5249fi;
5250
5251          eval "$wx_cv_use_arcstream"
5252          if test "$no_cache" != 1; then
5253            echo $wx_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5254          fi
5255
5256          if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
5257            echo "$as_me:$LINENO: result: yes" >&5
5258echo "${ECHO_T}yes" >&6
5259          else
5260            echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
5262          fi
5263
5264
5265          enablestring=
5266          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5267echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
5268          no_cache=0
5269          # Check whether --enable-backtrace or --disable-backtrace was given.
5270if test "${enable_backtrace+set}" = set; then
5271  enableval="$enable_backtrace"
5272
5273                          if test "$enableval" = yes; then
5274                            wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5275                          else
5276                            wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
5277                          fi
5278
5279else
5280
5281                          LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5282                          if test "x$LINE" != x ; then
5283                            eval "DEFAULT_$LINE"
5284                          else
5285                            no_cache=1
5286                          fi
5287
5288                          wx_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5289
5290fi;
5291
5292          eval "$wx_cv_use_backtrace"
5293          if test "$no_cache" != 1; then
5294            echo $wx_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5295          fi
5296
5297          if test "$wxUSE_STACKWALKER" = yes; then
5298            echo "$as_me:$LINENO: result: yes" >&5
5299echo "${ECHO_T}yes" >&6
5300          else
5301            echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303          fi
5304
5305
5306          enablestring=
5307          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5308echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5309          no_cache=0
5310          # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5311if test "${enable_catch_segvs+set}" = set; then
5312  enableval="$enable_catch_segvs"
5313
5314                          if test "$enableval" = yes; then
5315                            wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5316                          else
5317                            wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5318                          fi
5319
5320else
5321
5322                          LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5323                          if test "x$LINE" != x ; then
5324                            eval "DEFAULT_$LINE"
5325                          else
5326                            no_cache=1
5327                          fi
5328
5329                          wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5330
5331fi;
5332
5333          eval "$wx_cv_use_catch_segvs"
5334          if test "$no_cache" != 1; then
5335            echo $wx_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5336          fi
5337
5338          if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5339            echo "$as_me:$LINENO: result: yes" >&5
5340echo "${ECHO_T}yes" >&6
5341          else
5342            echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6
5344          fi
5345
5346
5347          enablestring=
5348          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5349echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5350          no_cache=0
5351          # Check whether --enable-cmdline or --disable-cmdline was given.
5352if test "${enable_cmdline+set}" = set; then
5353  enableval="$enable_cmdline"
5354
5355                          if test "$enableval" = yes; then
5356                            wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5357                          else
5358                            wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5359                          fi
5360
5361else
5362
5363                          LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5364                          if test "x$LINE" != x ; then
5365                            eval "DEFAULT_$LINE"
5366                          else
5367                            no_cache=1
5368                          fi
5369
5370                          wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5371
5372fi;
5373
5374          eval "$wx_cv_use_cmdline"
5375          if test "$no_cache" != 1; then
5376            echo $wx_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5377          fi
5378
5379          if test "$wxUSE_CMDLINE_PARSER" = yes; then
5380            echo "$as_me:$LINENO: result: yes" >&5
5381echo "${ECHO_T}yes" >&6
5382          else
5383            echo "$as_me:$LINENO: result: no" >&5
5384echo "${ECHO_T}no" >&6
5385          fi
5386
5387
5388          enablestring=
5389          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5390echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5391          no_cache=0
5392          # Check whether --enable-datetime or --disable-datetime was given.
5393if test "${enable_datetime+set}" = set; then
5394  enableval="$enable_datetime"
5395
5396                          if test "$enableval" = yes; then
5397                            wx_cv_use_datetime='wxUSE_DATETIME=yes'
5398                          else
5399                            wx_cv_use_datetime='wxUSE_DATETIME=no'
5400                          fi
5401
5402else
5403
5404                          LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5405                          if test "x$LINE" != x ; then
5406                            eval "DEFAULT_$LINE"
5407                          else
5408                            no_cache=1
5409                          fi
5410
5411                          wx_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5412
5413fi;
5414
5415          eval "$wx_cv_use_datetime"
5416          if test "$no_cache" != 1; then
5417            echo $wx_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5418          fi
5419
5420          if test "$wxUSE_DATETIME" = yes; then
5421            echo "$as_me:$LINENO: result: yes" >&5
5422echo "${ECHO_T}yes" >&6
5423          else
5424            echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426          fi
5427
5428
5429          enablestring=
5430          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5431echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5432          no_cache=0
5433          # Check whether --enable-debugreport or --disable-debugreport was given.
5434if test "${enable_debugreport+set}" = set; then
5435  enableval="$enable_debugreport"
5436
5437                          if test "$enableval" = yes; then
5438                            wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5439                          else
5440                            wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5441                          fi
5442
5443else
5444
5445                          LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5446                          if test "x$LINE" != x ; then
5447                            eval "DEFAULT_$LINE"
5448                          else
5449                            no_cache=1
5450                          fi
5451
5452                          wx_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5453
5454fi;
5455
5456          eval "$wx_cv_use_debugreport"
5457          if test "$no_cache" != 1; then
5458            echo $wx_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5459          fi
5460
5461          if test "$wxUSE_DEBUGREPORT" = yes; then
5462            echo "$as_me:$LINENO: result: yes" >&5
5463echo "${ECHO_T}yes" >&6
5464          else
5465            echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467          fi
5468
5469
5470          enablestring=
5471          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5472echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5473          no_cache=0
5474          # Check whether --enable-dialupman or --disable-dialupman was given.
5475if test "${enable_dialupman+set}" = set; then
5476  enableval="$enable_dialupman"
5477
5478                          if test "$enableval" = yes; then
5479                            wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5480                          else
5481                            wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5482                          fi
5483
5484else
5485
5486                          LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5487                          if test "x$LINE" != x ; then
5488                            eval "DEFAULT_$LINE"
5489                          else
5490                            no_cache=1
5491                          fi
5492
5493                          wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5494
5495fi;
5496
5497          eval "$wx_cv_use_dialupman"
5498          if test "$no_cache" != 1; then
5499            echo $wx_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5500          fi
5501
5502          if test "$wxUSE_DIALUP_MANAGER" = yes; then
5503            echo "$as_me:$LINENO: result: yes" >&5
5504echo "${ECHO_T}yes" >&6
5505          else
5506            echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508          fi
5509
5510
5511          enablestring=
5512          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5513echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5514          no_cache=0
5515          # Check whether --enable-dynlib or --disable-dynlib was given.
5516if test "${enable_dynlib+set}" = set; then
5517  enableval="$enable_dynlib"
5518
5519                          if test "$enableval" = yes; then
5520                            wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5521                          else
5522                            wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5523                          fi
5524
5525else
5526
5527                          LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5528                          if test "x$LINE" != x ; then
5529                            eval "DEFAULT_$LINE"
5530                          else
5531                            no_cache=1
5532                          fi
5533
5534                          wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5535
5536fi;
5537
5538          eval "$wx_cv_use_dynlib"
5539          if test "$no_cache" != 1; then
5540            echo $wx_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5541          fi
5542
5543          if test "$wxUSE_DYNLIB_CLASS" = yes; then
5544            echo "$as_me:$LINENO: result: yes" >&5
5545echo "${ECHO_T}yes" >&6
5546          else
5547            echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549          fi
5550
5551
5552          enablestring=
5553          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5554echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5555          no_cache=0
5556          # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5557if test "${enable_dynamicloader+set}" = set; then
5558  enableval="$enable_dynamicloader"
5559
5560                          if test "$enableval" = yes; then
5561                            wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5562                          else
5563                            wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5564                          fi
5565
5566else
5567
5568                          LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5569                          if test "x$LINE" != x ; then
5570                            eval "DEFAULT_$LINE"
5571                          else
5572                            no_cache=1
5573                          fi
5574
5575                          wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5576
5577fi;
5578
5579          eval "$wx_cv_use_dynamicloader"
5580          if test "$no_cache" != 1; then
5581            echo $wx_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5582          fi
5583
5584          if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5585            echo "$as_me:$LINENO: result: yes" >&5
5586echo "${ECHO_T}yes" >&6
5587          else
5588            echo "$as_me:$LINENO: result: no" >&5
5589echo "${ECHO_T}no" >&6
5590          fi
5591
5592
5593          enablestring=
5594          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5595echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5596          no_cache=0
5597          # Check whether --enable-exceptions or --disable-exceptions was given.
5598if test "${enable_exceptions+set}" = set; then
5599  enableval="$enable_exceptions"
5600
5601                          if test "$enableval" = yes; then
5602                            wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5603                          else
5604                            wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5605                          fi
5606
5607else
5608
5609                          LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5610                          if test "x$LINE" != x ; then
5611                            eval "DEFAULT_$LINE"
5612                          else
5613                            no_cache=1
5614                          fi
5615
5616                          wx_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5617
5618fi;
5619
5620          eval "$wx_cv_use_exceptions"
5621          if test "$no_cache" != 1; then
5622            echo $wx_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5623          fi
5624
5625          if test "$wxUSE_EXCEPTIONS" = yes; then
5626            echo "$as_me:$LINENO: result: yes" >&5
5627echo "${ECHO_T}yes" >&6
5628          else
5629            echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631          fi
5632
5633
5634          enablestring=
5635          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5636echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5637          no_cache=0
5638          # Check whether --enable-ffile or --disable-ffile was given.
5639if test "${enable_ffile+set}" = set; then
5640  enableval="$enable_ffile"
5641
5642                          if test "$enableval" = yes; then
5643                            wx_cv_use_ffile='wxUSE_FFILE=yes'
5644                          else
5645                            wx_cv_use_ffile='wxUSE_FFILE=no'
5646                          fi
5647
5648else
5649
5650                          LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5651                          if test "x$LINE" != x ; then
5652                            eval "DEFAULT_$LINE"
5653                          else
5654                            no_cache=1
5655                          fi
5656
5657                          wx_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5658
5659fi;
5660
5661          eval "$wx_cv_use_ffile"
5662          if test "$no_cache" != 1; then
5663            echo $wx_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5664          fi
5665
5666          if test "$wxUSE_FFILE" = yes; then
5667            echo "$as_me:$LINENO: result: yes" >&5
5668echo "${ECHO_T}yes" >&6
5669          else
5670            echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672          fi
5673
5674
5675          enablestring=
5676          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5677echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5678          no_cache=0
5679          # Check whether --enable-file or --disable-file was given.
5680if test "${enable_file+set}" = set; then
5681  enableval="$enable_file"
5682
5683                          if test "$enableval" = yes; then
5684                            wx_cv_use_file='wxUSE_FILE=yes'
5685                          else
5686                            wx_cv_use_file='wxUSE_FILE=no'
5687                          fi
5688
5689else
5690
5691                          LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5692                          if test "x$LINE" != x ; then
5693                            eval "DEFAULT_$LINE"
5694                          else
5695                            no_cache=1
5696                          fi
5697
5698                          wx_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5699
5700fi;
5701
5702          eval "$wx_cv_use_file"
5703          if test "$no_cache" != 1; then
5704            echo $wx_cv_use_file >> ${wx_arg_cache_file}.tmp
5705          fi
5706
5707          if test "$wxUSE_FILE" = yes; then
5708            echo "$as_me:$LINENO: result: yes" >&5
5709echo "${ECHO_T}yes" >&6
5710          else
5711            echo "$as_me:$LINENO: result: no" >&5
5712echo "${ECHO_T}no" >&6
5713          fi
5714
5715
5716          enablestring=
5717          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5719          no_cache=0
5720          # Check whether --enable-filesystem or --disable-filesystem was given.
5721if test "${enable_filesystem+set}" = set; then
5722  enableval="$enable_filesystem"
5723
5724                          if test "$enableval" = yes; then
5725                            wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5726                          else
5727                            wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5728                          fi
5729
5730else
5731
5732                          LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5733                          if test "x$LINE" != x ; then
5734                            eval "DEFAULT_$LINE"
5735                          else
5736                            no_cache=1
5737                          fi
5738
5739                          wx_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5740
5741fi;
5742
5743          eval "$wx_cv_use_filesystem"
5744          if test "$no_cache" != 1; then
5745            echo $wx_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5746          fi
5747
5748          if test "$wxUSE_FILESYSTEM" = yes; then
5749            echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
5751          else
5752            echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754          fi
5755
5756
5757          enablestring=
5758          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5760          no_cache=0
5761          # Check whether --enable-fontmap or --disable-fontmap was given.
5762if test "${enable_fontmap+set}" = set; then
5763  enableval="$enable_fontmap"
5764
5765                          if test "$enableval" = yes; then
5766                            wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
5767                          else
5768                            wx_cv_use_fontmap='wxUSE_FONTMAP=no'
5769                          fi
5770
5771else
5772
5773                          LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5774                          if test "x$LINE" != x ; then
5775                            eval "DEFAULT_$LINE"
5776                          else
5777                            no_cache=1
5778                          fi
5779
5780                          wx_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5781
5782fi;
5783
5784          eval "$wx_cv_use_fontmap"
5785          if test "$no_cache" != 1; then
5786            echo $wx_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5787          fi
5788
5789          if test "$wxUSE_FONTMAP" = yes; then
5790            echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
5792          else
5793            echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
5795          fi
5796
5797
5798          enablestring=
5799          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
5800echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
5801          no_cache=0
5802          # Check whether --enable-fs_archive or --disable-fs_archive was given.
5803if test "${enable_fs_archive+set}" = set; then
5804  enableval="$enable_fs_archive"
5805
5806                          if test "$enableval" = yes; then
5807                            wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
5808                          else
5809                            wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
5810                          fi
5811
5812else
5813
5814                          LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
5815                          if test "x$LINE" != x ; then
5816                            eval "DEFAULT_$LINE"
5817                          else
5818                            no_cache=1
5819                          fi
5820
5821                          wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
5822
5823fi;
5824
5825          eval "$wx_cv_use_fs_archive"
5826          if test "$no_cache" != 1; then
5827            echo $wx_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
5828          fi
5829
5830          if test "$wxUSE_FS_ARCHIVE" = yes; then
5831            echo "$as_me:$LINENO: result: yes" >&5
5832echo "${ECHO_T}yes" >&6
5833          else
5834            echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
5836          fi
5837
5838
5839          enablestring=
5840          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5841echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5842          no_cache=0
5843          # Check whether --enable-fs_inet or --disable-fs_inet was given.
5844if test "${enable_fs_inet+set}" = set; then
5845  enableval="$enable_fs_inet"
5846
5847                          if test "$enableval" = yes; then
5848                            wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
5849                          else
5850                            wx_cv_use_fs_inet='wxUSE_FS_INET=no'
5851                          fi
5852
5853else
5854
5855                          LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5856                          if test "x$LINE" != x ; then
5857                            eval "DEFAULT_$LINE"
5858                          else
5859                            no_cache=1
5860                          fi
5861
5862                          wx_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5863
5864fi;
5865
5866          eval "$wx_cv_use_fs_inet"
5867          if test "$no_cache" != 1; then
5868            echo $wx_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5869          fi
5870
5871          if test "$wxUSE_FS_INET" = yes; then
5872            echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6
5874          else
5875            echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
5877          fi
5878
5879
5880          enablestring=
5881          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5882echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5883          no_cache=0
5884          # Check whether --enable-fs_zip or --disable-fs_zip was given.
5885if test "${enable_fs_zip+set}" = set; then
5886  enableval="$enable_fs_zip"
5887
5888                          if test "$enableval" = yes; then
5889                            wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5890                          else
5891                            wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5892                          fi
5893
5894else
5895
5896                          LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5897                          if test "x$LINE" != x ; then
5898                            eval "DEFAULT_$LINE"
5899                          else
5900                            no_cache=1
5901                          fi
5902
5903                          wx_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5904
5905fi;
5906
5907          eval "$wx_cv_use_fs_zip"
5908          if test "$no_cache" != 1; then
5909            echo $wx_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5910          fi
5911
5912          if test "$wxUSE_FS_ZIP" = yes; then
5913            echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
5915          else
5916            echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
5918          fi
5919
5920
5921          enablestring=
5922          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5923echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5924          no_cache=0
5925          # Check whether --enable-geometry or --disable-geometry was given.
5926if test "${enable_geometry+set}" = set; then
5927  enableval="$enable_geometry"
5928
5929                          if test "$enableval" = yes; then
5930                            wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
5931                          else
5932                            wx_cv_use_geometry='wxUSE_GEOMETRY=no'
5933                          fi
5934
5935else
5936
5937                          LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5938                          if test "x$LINE" != x ; then
5939                            eval "DEFAULT_$LINE"
5940                          else
5941                            no_cache=1
5942                          fi
5943
5944                          wx_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5945
5946fi;
5947
5948          eval "$wx_cv_use_geometry"
5949          if test "$no_cache" != 1; then
5950            echo $wx_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5951          fi
5952
5953          if test "$wxUSE_GEOMETRY" = yes; then
5954            echo "$as_me:$LINENO: result: yes" >&5
5955echo "${ECHO_T}yes" >&6
5956          else
5957            echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6
5959          fi
5960
5961
5962          enablestring=
5963          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5964echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5965          no_cache=0
5966          # Check whether --enable-log or --disable-log was given.
5967if test "${enable_log+set}" = set; then
5968  enableval="$enable_log"
5969
5970                          if test "$enableval" = yes; then
5971                            wx_cv_use_log='wxUSE_LOG=yes'
5972                          else
5973                            wx_cv_use_log='wxUSE_LOG=no'
5974                          fi
5975
5976else
5977
5978                          LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5979                          if test "x$LINE" != x ; then
5980                            eval "DEFAULT_$LINE"
5981                          else
5982                            no_cache=1
5983                          fi
5984
5985                          wx_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5986
5987fi;
5988
5989          eval "$wx_cv_use_log"
5990          if test "$no_cache" != 1; then
5991            echo $wx_cv_use_log >> ${wx_arg_cache_file}.tmp
5992          fi
5993
5994          if test "$wxUSE_LOG" = yes; then
5995            echo "$as_me:$LINENO: result: yes" >&5
5996echo "${ECHO_T}yes" >&6
5997          else
5998            echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6
6000          fi
6001
6002
6003          enablestring=
6004          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
6005echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
6006          no_cache=0
6007          # Check whether --enable-longlong or --disable-longlong was given.
6008if test "${enable_longlong+set}" = set; then
6009  enableval="$enable_longlong"
6010
6011                          if test "$enableval" = yes; then
6012                            wx_cv_use_longlong='wxUSE_LONGLONG=yes'
6013                          else
6014                            wx_cv_use_longlong='wxUSE_LONGLONG=no'
6015                          fi
6016
6017else
6018
6019                          LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
6020                          if test "x$LINE" != x ; then
6021                            eval "DEFAULT_$LINE"
6022                          else
6023                            no_cache=1
6024                          fi
6025
6026                          wx_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
6027
6028fi;
6029
6030          eval "$wx_cv_use_longlong"
6031          if test "$no_cache" != 1; then
6032            echo $wx_cv_use_longlong >> ${wx_arg_cache_file}.tmp
6033          fi
6034
6035          if test "$wxUSE_LONGLONG" = yes; then
6036            echo "$as_me:$LINENO: result: yes" >&5
6037echo "${ECHO_T}yes" >&6
6038          else
6039            echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6
6041          fi
6042
6043
6044          enablestring=
6045          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
6046echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
6047          no_cache=0
6048          # Check whether --enable-mimetype or --disable-mimetype was given.
6049if test "${enable_mimetype+set}" = set; then
6050  enableval="$enable_mimetype"
6051
6052                          if test "$enableval" = yes; then
6053                            wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
6054                          else
6055                            wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
6056                          fi
6057
6058else
6059
6060                          LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
6061                          if test "x$LINE" != x ; then
6062                            eval "DEFAULT_$LINE"
6063                          else
6064                            no_cache=1
6065                          fi
6066
6067                          wx_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
6068
6069fi;
6070
6071          eval "$wx_cv_use_mimetype"
6072          if test "$no_cache" != 1; then
6073            echo $wx_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
6074          fi
6075
6076          if test "$wxUSE_MIMETYPE" = yes; then
6077            echo "$as_me:$LINENO: result: yes" >&5
6078echo "${ECHO_T}yes" >&6
6079          else
6080            echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
6082          fi
6083
6084
6085          enablestring=
6086          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
6087echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
6088          no_cache=0
6089          # Check whether --enable-mslu or --disable-mslu was given.
6090if test "${enable_mslu+set}" = set; then
6091  enableval="$enable_mslu"
6092
6093                          if test "$enableval" = yes; then
6094                            wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
6095                          else
6096                            wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
6097                          fi
6098
6099else
6100
6101                          LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
6102                          if test "x$LINE" != x ; then
6103                            eval "DEFAULT_$LINE"
6104                          else
6105                            no_cache=1
6106                          fi
6107
6108                          wx_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
6109
6110fi;
6111
6112          eval "$wx_cv_use_mslu"
6113          if test "$no_cache" != 1; then
6114            echo $wx_cv_use_mslu >> ${wx_arg_cache_file}.tmp
6115          fi
6116
6117          if test "$wxUSE_UNICODE_MSLU" = yes; then
6118            echo "$as_me:$LINENO: result: yes" >&5
6119echo "${ECHO_T}yes" >&6
6120          else
6121            echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
6123          fi
6124
6125
6126          enablestring=
6127          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
6128echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
6129          no_cache=0
6130          # Check whether --enable-snglinst or --disable-snglinst was given.
6131if test "${enable_snglinst+set}" = set; then
6132  enableval="$enable_snglinst"
6133
6134                          if test "$enableval" = yes; then
6135                            wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
6136                          else
6137                            wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
6138                          fi
6139
6140else
6141
6142                          LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
6143                          if test "x$LINE" != x ; then
6144                            eval "DEFAULT_$LINE"
6145                          else
6146                            no_cache=1
6147                          fi
6148
6149                          wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
6150
6151fi;
6152
6153          eval "$wx_cv_use_snglinst"
6154          if test "$no_cache" != 1; then
6155            echo $wx_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
6156          fi
6157
6158          if test "$wxUSE_SNGLINST_CHECKER" = yes; then
6159            echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6
6161          else
6162            echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
6164          fi
6165
6166
6167          enablestring=
6168          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
6169echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
6170          no_cache=0
6171          # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
6172if test "${enable_std_iostreams+set}" = set; then
6173  enableval="$enable_std_iostreams"
6174
6175                          if test "$enableval" = yes; then
6176                            wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
6177                          else
6178                            wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
6179                          fi
6180
6181else
6182
6183                          LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
6184                          if test "x$LINE" != x ; then
6185                            eval "DEFAULT_$LINE"
6186                          else
6187                            no_cache=1
6188                          fi
6189
6190                          wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
6191
6192fi;
6193
6194          eval "$wx_cv_use_std_iostreams"
6195          if test "$no_cache" != 1; then
6196            echo $wx_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
6197          fi
6198
6199          if test "$wxUSE_STD_IOSTREAM" = yes; then
6200            echo "$as_me:$LINENO: result: yes" >&5
6201echo "${ECHO_T}yes" >&6
6202          else
6203            echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6
6205          fi
6206
6207
6208          enablestring=
6209          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6210echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
6211          no_cache=0
6212          # Check whether --enable-std_string or --disable-std_string was given.
6213if test "${enable_std_string+set}" = set; then
6214  enableval="$enable_std_string"
6215
6216                          if test "$enableval" = yes; then
6217                            wx_cv_use_std_string='wxUSE_STD_STRING=yes'
6218                          else
6219                            wx_cv_use_std_string='wxUSE_STD_STRING=no'
6220                          fi
6221
6222else
6223
6224                          LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6225                          if test "x$LINE" != x ; then
6226                            eval "DEFAULT_$LINE"
6227                          else
6228                            no_cache=1
6229                          fi
6230
6231                          wx_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6232
6233fi;
6234
6235          eval "$wx_cv_use_std_string"
6236          if test "$no_cache" != 1; then
6237            echo $wx_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6238          fi
6239
6240          if test "$wxUSE_STD_STRING" = yes; then
6241            echo "$as_me:$LINENO: result: yes" >&5
6242echo "${ECHO_T}yes" >&6
6243          else
6244            echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6
6246          fi
6247
6248
6249          enablestring=
6250          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6251echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
6252          no_cache=0
6253          # Check whether --enable-stdpaths or --disable-stdpaths was given.
6254if test "${enable_stdpaths+set}" = set; then
6255  enableval="$enable_stdpaths"
6256
6257                          if test "$enableval" = yes; then
6258                            wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
6259                          else
6260                            wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
6261                          fi
6262
6263else
6264
6265                          LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
6266                          if test "x$LINE" != x ; then
6267                            eval "DEFAULT_$LINE"
6268                          else
6269                            no_cache=1
6270                          fi
6271
6272                          wx_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
6273
6274fi;
6275
6276          eval "$wx_cv_use_stdpaths"
6277          if test "$no_cache" != 1; then
6278            echo $wx_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
6279          fi
6280
6281          if test "$wxUSE_STDPATHS" = yes; then
6282            echo "$as_me:$LINENO: result: yes" >&5
6283echo "${ECHO_T}yes" >&6
6284          else
6285            echo "$as_me:$LINENO: result: no" >&5
6286echo "${ECHO_T}no" >&6
6287          fi
6288
6289
6290          enablestring=
6291          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6292echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6293          no_cache=0
6294          # Check whether --enable-stopwatch or --disable-stopwatch was given.
6295if test "${enable_stopwatch+set}" = set; then
6296  enableval="$enable_stopwatch"
6297
6298                          if test "$enableval" = yes; then
6299                            wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6300                          else
6301                            wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6302                          fi
6303
6304else
6305
6306                          LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6307                          if test "x$LINE" != x ; then
6308                            eval "DEFAULT_$LINE"
6309                          else
6310                            no_cache=1
6311                          fi
6312
6313                          wx_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6314
6315fi;
6316
6317          eval "$wx_cv_use_stopwatch"
6318          if test "$no_cache" != 1; then
6319            echo $wx_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6320          fi
6321
6322          if test "$wxUSE_STOPWATCH" = yes; then
6323            echo "$as_me:$LINENO: result: yes" >&5
6324echo "${ECHO_T}yes" >&6
6325          else
6326            echo "$as_me:$LINENO: result: no" >&5
6327echo "${ECHO_T}no" >&6
6328          fi
6329
6330
6331          enablestring=
6332          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6333echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6334          no_cache=0
6335          # Check whether --enable-streams or --disable-streams was given.
6336if test "${enable_streams+set}" = set; then
6337  enableval="$enable_streams"
6338
6339                          if test "$enableval" = yes; then
6340                            wx_cv_use_streams='wxUSE_STREAMS=yes'
6341                          else
6342                            wx_cv_use_streams='wxUSE_STREAMS=no'
6343                          fi
6344
6345else
6346
6347                          LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6348                          if test "x$LINE" != x ; then
6349                            eval "DEFAULT_$LINE"
6350                          else
6351                            no_cache=1
6352                          fi
6353
6354                          wx_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6355
6356fi;
6357
6358          eval "$wx_cv_use_streams"
6359          if test "$no_cache" != 1; then
6360            echo $wx_cv_use_streams >> ${wx_arg_cache_file}.tmp
6361          fi
6362
6363          if test "$wxUSE_STREAMS" = yes; then
6364            echo "$as_me:$LINENO: result: yes" >&5
6365echo "${ECHO_T}yes" >&6
6366          else
6367            echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6
6369          fi
6370
6371
6372          enablestring=
6373          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
6374echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6
6375          no_cache=0
6376          # Check whether --enable-sysoptions or --disable-sysoptions was given.
6377if test "${enable_sysoptions+set}" = set; then
6378  enableval="$enable_sysoptions"
6379
6380                          if test "$enableval" = yes; then
6381                            wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
6382                          else
6383                            wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
6384                          fi
6385
6386else
6387
6388                          LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6389                          if test "x$LINE" != x ; then
6390                            eval "DEFAULT_$LINE"
6391                          else
6392                            no_cache=1
6393                          fi
6394
6395                          wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6396
6397fi;
6398
6399          eval "$wx_cv_use_sysoptions"
6400          if test "$no_cache" != 1; then
6401            echo $wx_cv_use_sysoptions >> ${wx_arg_cache_file}.tmp
6402          fi
6403
6404          if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6405            echo "$as_me:$LINENO: result: yes" >&5
6406echo "${ECHO_T}yes" >&6
6407          else
6408            echo "$as_me:$LINENO: result: no" >&5
6409echo "${ECHO_T}no" >&6
6410          fi
6411
6412
6413          enablestring=
6414          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6415echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
6416          no_cache=0
6417          # Check whether --enable-tarstream or --disable-tarstream was given.
6418if test "${enable_tarstream+set}" = set; then
6419  enableval="$enable_tarstream"
6420
6421                          if test "$enableval" = yes; then
6422                            wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6423                          else
6424                            wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
6425                          fi
6426
6427else
6428
6429                          LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6430                          if test "x$LINE" != x ; then
6431                            eval "DEFAULT_$LINE"
6432                          else
6433                            no_cache=1
6434                          fi
6435
6436                          wx_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6437
6438fi;
6439
6440          eval "$wx_cv_use_tarstream"
6441          if test "$no_cache" != 1; then
6442            echo $wx_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6443          fi
6444
6445          if test "$wxUSE_TARSTREAM" = yes; then
6446            echo "$as_me:$LINENO: result: yes" >&5
6447echo "${ECHO_T}yes" >&6
6448          else
6449            echo "$as_me:$LINENO: result: no" >&5
6450echo "${ECHO_T}no" >&6
6451          fi
6452
6453
6454          enablestring=
6455          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6456echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6457          no_cache=0
6458          # Check whether --enable-textbuf or --disable-textbuf was given.
6459if test "${enable_textbuf+set}" = set; then
6460  enableval="$enable_textbuf"
6461
6462                          if test "$enableval" = yes; then
6463                            wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6464                          else
6465                            wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6466                          fi
6467
6468else
6469
6470                          LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6471                          if test "x$LINE" != x ; then
6472                            eval "DEFAULT_$LINE"
6473                          else
6474                            no_cache=1
6475                          fi
6476
6477                          wx_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6478
6479fi;
6480
6481          eval "$wx_cv_use_textbuf"
6482          if test "$no_cache" != 1; then
6483            echo $wx_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6484          fi
6485
6486          if test "$wxUSE_TEXTBUFFER" = yes; then
6487            echo "$as_me:$LINENO: result: yes" >&5
6488echo "${ECHO_T}yes" >&6
6489          else
6490            echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6
6492          fi
6493
6494
6495          enablestring=
6496          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6497echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6498          no_cache=0
6499          # Check whether --enable-textfile or --disable-textfile was given.
6500if test "${enable_textfile+set}" = set; then
6501  enableval="$enable_textfile"
6502
6503                          if test "$enableval" = yes; then
6504                            wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
6505                          else
6506                            wx_cv_use_textfile='wxUSE_TEXTFILE=no'
6507                          fi
6508
6509else
6510
6511                          LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6512                          if test "x$LINE" != x ; then
6513                            eval "DEFAULT_$LINE"
6514                          else
6515                            no_cache=1
6516                          fi
6517
6518                          wx_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6519
6520fi;
6521
6522          eval "$wx_cv_use_textfile"
6523          if test "$no_cache" != 1; then
6524            echo $wx_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6525          fi
6526
6527          if test "$wxUSE_TEXTFILE" = yes; then
6528            echo "$as_me:$LINENO: result: yes" >&5
6529echo "${ECHO_T}yes" >&6
6530          else
6531            echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6
6533          fi
6534
6535
6536          enablestring=
6537          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6538echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6539          no_cache=0
6540          # Check whether --enable-timer or --disable-timer was given.
6541if test "${enable_timer+set}" = set; then
6542  enableval="$enable_timer"
6543
6544                          if test "$enableval" = yes; then
6545                            wx_cv_use_timer='wxUSE_TIMER=yes'
6546                          else
6547                            wx_cv_use_timer='wxUSE_TIMER=no'
6548                          fi
6549
6550else
6551
6552                          LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6553                          if test "x$LINE" != x ; then
6554                            eval "DEFAULT_$LINE"
6555                          else
6556                            no_cache=1
6557                          fi
6558
6559                          wx_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6560
6561fi;
6562
6563          eval "$wx_cv_use_timer"
6564          if test "$no_cache" != 1; then
6565            echo $wx_cv_use_timer >> ${wx_arg_cache_file}.tmp
6566          fi
6567
6568          if test "$wxUSE_TIMER" = yes; then
6569            echo "$as_me:$LINENO: result: yes" >&5
6570echo "${ECHO_T}yes" >&6
6571          else
6572            echo "$as_me:$LINENO: result: no" >&5
6573echo "${ECHO_T}no" >&6
6574          fi
6575
6576
6577          enablestring=
6578          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6579echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6580          no_cache=0
6581          # Check whether --enable-unicode or --disable-unicode was given.
6582if test "${enable_unicode+set}" = set; then
6583  enableval="$enable_unicode"
6584
6585                          if test "$enableval" = yes; then
6586                            wx_cv_use_unicode='wxUSE_UNICODE=yes'
6587                          else
6588                            wx_cv_use_unicode='wxUSE_UNICODE=no'
6589                          fi
6590
6591else
6592
6593                          LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6594                          if test "x$LINE" != x ; then
6595                            eval "DEFAULT_$LINE"
6596                          else
6597                            no_cache=1
6598                          fi
6599
6600                          wx_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6601
6602fi;
6603
6604          eval "$wx_cv_use_unicode"
6605          if test "$no_cache" != 1; then
6606            echo $wx_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6607          fi
6608
6609          if test "$wxUSE_UNICODE" = yes; then
6610            echo "$as_me:$LINENO: result: yes" >&5
6611echo "${ECHO_T}yes" >&6
6612          else
6613            echo "$as_me:$LINENO: result: no" >&5
6614echo "${ECHO_T}no" >&6
6615          fi
6616
6617
6618          enablestring=
6619          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6620echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6621          no_cache=0
6622          # Check whether --enable-sound or --disable-sound was given.
6623if test "${enable_sound+set}" = set; then
6624  enableval="$enable_sound"
6625
6626                          if test "$enableval" = yes; then
6627                            wx_cv_use_sound='wxUSE_SOUND=yes'
6628                          else
6629                            wx_cv_use_sound='wxUSE_SOUND=no'
6630                          fi
6631
6632else
6633
6634                          LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6635                          if test "x$LINE" != x ; then
6636                            eval "DEFAULT_$LINE"
6637                          else
6638                            no_cache=1
6639                          fi
6640
6641                          wx_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6642
6643fi;
6644
6645          eval "$wx_cv_use_sound"
6646          if test "$no_cache" != 1; then
6647            echo $wx_cv_use_sound >> ${wx_arg_cache_file}.tmp
6648          fi
6649
6650          if test "$wxUSE_SOUND" = yes; then
6651            echo "$as_me:$LINENO: result: yes" >&5
6652echo "${ECHO_T}yes" >&6
6653          else
6654            echo "$as_me:$LINENO: result: no" >&5
6655echo "${ECHO_T}no" >&6
6656          fi
6657
6658
6659          enablestring=
6660          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6661echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6662          no_cache=0
6663          # Check whether --enable-mediactrl or --disable-mediactrl was given.
6664if test "${enable_mediactrl+set}" = set; then
6665  enableval="$enable_mediactrl"
6666
6667                          if test "$enableval" = yes; then
6668                            wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6669                          else
6670                            wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6671                          fi
6672
6673else
6674
6675                          LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6676                          if test "x$LINE" != x ; then
6677                            eval "DEFAULT_$LINE"
6678                          else
6679                            no_cache=1
6680                          fi
6681
6682                          wx_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6683
6684fi;
6685
6686          eval "$wx_cv_use_mediactrl"
6687          if test "$no_cache" != 1; then
6688            echo $wx_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6689          fi
6690
6691          if test "$wxUSE_MEDIACTRL" = yes; then
6692            echo "$as_me:$LINENO: result: yes" >&5
6693echo "${ECHO_T}yes" >&6
6694          else
6695            echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
6697          fi
6698
6699
6700          enablestring=
6701          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6702echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6703          no_cache=0
6704          # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6705if test "${enable_gstreamer8+set}" = set; then
6706  enableval="$enable_gstreamer8"
6707
6708                          if test "$enableval" = yes; then
6709                            wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6710                          else
6711                            wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6712                          fi
6713
6714else
6715
6716                          LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6717                          if test "x$LINE" != x ; then
6718                            eval "DEFAULT_$LINE"
6719                          else
6720                            no_cache=1
6721                          fi
6722
6723                          wx_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6724
6725fi;
6726
6727          eval "$wx_cv_use_gstreamer8"
6728          if test "$no_cache" != 1; then
6729            echo $wx_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6730          fi
6731
6732          if test "$wxUSE_GSTREAMER8" = yes; then
6733            echo "$as_me:$LINENO: result: yes" >&5
6734echo "${ECHO_T}yes" >&6
6735          else
6736            echo "$as_me:$LINENO: result: no" >&5
6737echo "${ECHO_T}no" >&6
6738          fi
6739
6740
6741          enablestring=
6742          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6743echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
6744          no_cache=0
6745          # Check whether --enable-printfposparam or --disable-printfposparam was given.
6746if test "${enable_printfposparam+set}" = set; then
6747  enableval="$enable_printfposparam"
6748
6749                          if test "$enableval" = yes; then
6750                            wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
6751                          else
6752                            wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
6753                          fi
6754
6755else
6756
6757                          LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
6758                          if test "x$LINE" != x ; then
6759                            eval "DEFAULT_$LINE"
6760                          else
6761                            no_cache=1
6762                          fi
6763
6764                          wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
6765
6766fi;
6767
6768          eval "$wx_cv_use_printfposparam"
6769          if test "$no_cache" != 1; then
6770            echo $wx_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
6771          fi
6772
6773          if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
6774            echo "$as_me:$LINENO: result: yes" >&5
6775echo "${ECHO_T}yes" >&6
6776          else
6777            echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6
6779          fi
6780
6781
6782          enablestring=
6783          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6784echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6785          no_cache=0
6786          # Check whether --enable-zipstream or --disable-zipstream was given.
6787if test "${enable_zipstream+set}" = set; then
6788  enableval="$enable_zipstream"
6789
6790                          if test "$enableval" = yes; then
6791                            wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6792                          else
6793                            wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6794                          fi
6795
6796else
6797
6798                          LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6799                          if test "x$LINE" != x ; then
6800                            eval "DEFAULT_$LINE"
6801                          else
6802                            no_cache=1
6803                          fi
6804
6805                          wx_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6806
6807fi;
6808
6809          eval "$wx_cv_use_zipstream"
6810          if test "$no_cache" != 1; then
6811            echo $wx_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6812          fi
6813
6814          if test "$wxUSE_ZIPSTREAM" = yes; then
6815            echo "$as_me:$LINENO: result: yes" >&5
6816echo "${ECHO_T}yes" >&6
6817          else
6818            echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6
6820          fi
6821
6822
6823
6824          enablestring=
6825          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6826echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6827          no_cache=0
6828          # Check whether --enable-url or --disable-url was given.
6829if test "${enable_url+set}" = set; then
6830  enableval="$enable_url"
6831
6832                          if test "$enableval" = yes; then
6833                            wx_cv_use_url='wxUSE_URL=yes'
6834                          else
6835                            wx_cv_use_url='wxUSE_URL=no'
6836                          fi
6837
6838else
6839
6840                          LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6841                          if test "x$LINE" != x ; then
6842                            eval "DEFAULT_$LINE"
6843                          else
6844                            no_cache=1
6845                          fi
6846
6847                          wx_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6848
6849fi;
6850
6851          eval "$wx_cv_use_url"
6852          if test "$no_cache" != 1; then
6853            echo $wx_cv_use_url >> ${wx_arg_cache_file}.tmp
6854          fi
6855
6856          if test "$wxUSE_URL" = yes; then
6857            echo "$as_me:$LINENO: result: yes" >&5
6858echo "${ECHO_T}yes" >&6
6859          else
6860            echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6
6862          fi
6863
6864
6865          enablestring=
6866          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6867echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6868          no_cache=0
6869          # Check whether --enable-variant or --disable-variant was given.
6870if test "${enable_variant+set}" = set; then
6871  enableval="$enable_variant"
6872
6873                          if test "$enableval" = yes; then
6874                            wx_cv_use_variant='wxUSE_VARIANT=yes'
6875                          else
6876                            wx_cv_use_variant='wxUSE_VARIANT=no'
6877                          fi
6878
6879else
6880
6881                          LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6882                          if test "x$LINE" != x ; then
6883                            eval "DEFAULT_$LINE"
6884                          else
6885                            no_cache=1
6886                          fi
6887
6888                          wx_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6889
6890fi;
6891
6892          eval "$wx_cv_use_variant"
6893          if test "$no_cache" != 1; then
6894            echo $wx_cv_use_variant >> ${wx_arg_cache_file}.tmp
6895          fi
6896
6897          if test "$wxUSE_VARIANT" = yes; then
6898            echo "$as_me:$LINENO: result: yes" >&5
6899echo "${ECHO_T}yes" >&6
6900          else
6901            echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6
6903          fi
6904
6905
6906          enablestring=
6907          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6908echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6909          no_cache=0
6910          # Check whether --enable-protocol or --disable-protocol was given.
6911if test "${enable_protocol+set}" = set; then
6912  enableval="$enable_protocol"
6913
6914                          if test "$enableval" = yes; then
6915                            wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
6916                          else
6917                            wx_cv_use_protocol='wxUSE_PROTOCOL=no'
6918                          fi
6919
6920else
6921
6922                          LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6923                          if test "x$LINE" != x ; then
6924                            eval "DEFAULT_$LINE"
6925                          else
6926                            no_cache=1
6927                          fi
6928
6929                          wx_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6930
6931fi;
6932
6933          eval "$wx_cv_use_protocol"
6934          if test "$no_cache" != 1; then
6935            echo $wx_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6936          fi
6937
6938          if test "$wxUSE_PROTOCOL" = yes; then
6939            echo "$as_me:$LINENO: result: yes" >&5
6940echo "${ECHO_T}yes" >&6
6941          else
6942            echo "$as_me:$LINENO: result: no" >&5
6943echo "${ECHO_T}no" >&6
6944          fi
6945
6946
6947          enablestring=
6948          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6949echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6950          no_cache=0
6951          # Check whether --enable-protocol_http or --disable-protocol_http was given.
6952if test "${enable_protocol_http+set}" = set; then
6953  enableval="$enable_protocol_http"
6954
6955                          if test "$enableval" = yes; then
6956                            wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6957                          else
6958                            wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6959                          fi
6960
6961else
6962
6963                          LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6964                          if test "x$LINE" != x ; then
6965                            eval "DEFAULT_$LINE"
6966                          else
6967                            no_cache=1
6968                          fi
6969
6970                          wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6971
6972fi;
6973
6974          eval "$wx_cv_use_protocol_http"
6975          if test "$no_cache" != 1; then
6976            echo $wx_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6977          fi
6978
6979          if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6980            echo "$as_me:$LINENO: result: yes" >&5
6981echo "${ECHO_T}yes" >&6
6982          else
6983            echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6
6985          fi
6986
6987
6988          enablestring=
6989          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6990echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6991          no_cache=0
6992          # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6993if test "${enable_protocol_ftp+set}" = set; then
6994  enableval="$enable_protocol_ftp"
6995
6996                          if test "$enableval" = yes; then
6997                            wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6998                          else
6999                            wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
7000                          fi
7001
7002else
7003
7004                          LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
7005                          if test "x$LINE" != x ; then
7006                            eval "DEFAULT_$LINE"
7007                          else
7008                            no_cache=1
7009                          fi
7010
7011                          wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
7012
7013fi;
7014
7015          eval "$wx_cv_use_protocol_ftp"
7016          if test "$no_cache" != 1; then
7017            echo $wx_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
7018          fi
7019
7020          if test "$wxUSE_PROTOCOL_FTP" = yes; then
7021            echo "$as_me:$LINENO: result: yes" >&5
7022echo "${ECHO_T}yes" >&6
7023          else
7024            echo "$as_me:$LINENO: result: no" >&5
7025echo "${ECHO_T}no" >&6
7026          fi
7027
7028
7029          enablestring=
7030          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
7031echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
7032          no_cache=0
7033          # Check whether --enable-protocol_file or --disable-protocol_file was given.
7034if test "${enable_protocol_file+set}" = set; then
7035  enableval="$enable_protocol_file"
7036
7037                          if test "$enableval" = yes; then
7038                            wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
7039                          else
7040                            wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
7041                          fi
7042
7043else
7044
7045                          LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
7046                          if test "x$LINE" != x ; then
7047                            eval "DEFAULT_$LINE"
7048                          else
7049                            no_cache=1
7050                          fi
7051
7052                          wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
7053
7054fi;
7055
7056          eval "$wx_cv_use_protocol_file"
7057          if test "$no_cache" != 1; then
7058            echo $wx_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
7059          fi
7060
7061          if test "$wxUSE_PROTOCOL_FILE" = yes; then
7062            echo "$as_me:$LINENO: result: yes" >&5
7063echo "${ECHO_T}yes" >&6
7064          else
7065            echo "$as_me:$LINENO: result: no" >&5
7066echo "${ECHO_T}no" >&6
7067          fi
7068
7069
7070
7071
7072
7073          enablestring=
7074          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
7075echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
7076          no_cache=0
7077          # Check whether --enable-threads or --disable-threads was given.
7078if test "${enable_threads+set}" = set; then
7079  enableval="$enable_threads"
7080
7081                          if test "$enableval" = yes; then
7082                            wx_cv_use_threads='wxUSE_THREADS=yes'
7083                          else
7084                            wx_cv_use_threads='wxUSE_THREADS=no'
7085                          fi
7086
7087else
7088
7089                          LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
7090                          if test "x$LINE" != x ; then
7091                            eval "DEFAULT_$LINE"
7092                          else
7093                            no_cache=1
7094                          fi
7095
7096                          wx_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
7097
7098fi;
7099
7100          eval "$wx_cv_use_threads"
7101          if test "$no_cache" != 1; then
7102            echo $wx_cv_use_threads >> ${wx_arg_cache_file}.tmp
7103          fi
7104
7105          if test "$wxUSE_THREADS" = yes; then
7106            echo "$as_me:$LINENO: result: yes" >&5
7107echo "${ECHO_T}yes" >&6
7108          else
7109            echo "$as_me:$LINENO: result: no" >&5
7110echo "${ECHO_T}no" >&6
7111          fi
7112
7113
7114if test "$wxUSE_GUI" = "yes"; then
7115
7116
7117
7118          enablestring=
7119          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
7120echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
7121          no_cache=0
7122          # Check whether --enable-docview or --disable-docview was given.
7123if test "${enable_docview+set}" = set; then
7124  enableval="$enable_docview"
7125
7126                          if test "$enableval" = yes; then
7127                            wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
7128                          else
7129                            wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
7130                          fi
7131
7132else
7133
7134                          LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
7135                          if test "x$LINE" != x ; then
7136                            eval "DEFAULT_$LINE"
7137                          else
7138                            no_cache=1
7139                          fi
7140
7141                          wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
7142
7143fi;
7144
7145          eval "$wx_cv_use_docview"
7146          if test "$no_cache" != 1; then
7147            echo $wx_cv_use_docview >> ${wx_arg_cache_file}.tmp
7148          fi
7149
7150          if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
7151            echo "$as_me:$LINENO: result: yes" >&5
7152echo "${ECHO_T}yes" >&6
7153          else
7154            echo "$as_me:$LINENO: result: no" >&5
7155echo "${ECHO_T}no" >&6
7156          fi
7157
7158
7159          enablestring=
7160          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
7161echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
7162          no_cache=0
7163          # Check whether --enable-help or --disable-help was given.
7164if test "${enable_help+set}" = set; then
7165  enableval="$enable_help"
7166
7167                          if test "$enableval" = yes; then
7168                            wx_cv_use_help='wxUSE_HELP=yes'
7169                          else
7170                            wx_cv_use_help='wxUSE_HELP=no'
7171                          fi
7172
7173else
7174
7175                          LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
7176                          if test "x$LINE" != x ; then
7177                            eval "DEFAULT_$LINE"
7178                          else
7179                            no_cache=1
7180                          fi
7181
7182                          wx_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
7183
7184fi;
7185
7186          eval "$wx_cv_use_help"
7187          if test "$no_cache" != 1; then
7188            echo $wx_cv_use_help >> ${wx_arg_cache_file}.tmp
7189          fi
7190
7191          if test "$wxUSE_HELP" = yes; then
7192            echo "$as_me:$LINENO: result: yes" >&5
7193echo "${ECHO_T}yes" >&6
7194          else
7195            echo "$as_me:$LINENO: result: no" >&5
7196echo "${ECHO_T}no" >&6
7197          fi
7198
7199
7200          enablestring=
7201          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7202echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
7203          no_cache=0
7204          # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
7205if test "${enable_mshtmlhelp+set}" = set; then
7206  enableval="$enable_mshtmlhelp"
7207
7208                          if test "$enableval" = yes; then
7209                            wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7210                          else
7211                            wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7212                          fi
7213
7214else
7215
7216                          LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7217                          if test "x$LINE" != x ; then
7218                            eval "DEFAULT_$LINE"
7219                          else
7220                            no_cache=1
7221                          fi
7222
7223                          wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7224
7225fi;
7226
7227          eval "$wx_cv_use_mshtmlhelp"
7228          if test "$no_cache" != 1; then
7229            echo $wx_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7230          fi
7231
7232          if test "$wxUSE_MS_HTML_HELP" = yes; then
7233            echo "$as_me:$LINENO: result: yes" >&5
7234echo "${ECHO_T}yes" >&6
7235          else
7236            echo "$as_me:$LINENO: result: no" >&5
7237echo "${ECHO_T}no" >&6
7238          fi
7239
7240
7241          enablestring=
7242          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7243echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7244          no_cache=0
7245          # Check whether --enable-html or --disable-html was given.
7246if test "${enable_html+set}" = set; then
7247  enableval="$enable_html"
7248
7249                          if test "$enableval" = yes; then
7250                            wx_cv_use_html='wxUSE_HTML=yes'
7251                          else
7252                            wx_cv_use_html='wxUSE_HTML=no'
7253                          fi
7254
7255else
7256
7257                          LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7258                          if test "x$LINE" != x ; then
7259                            eval "DEFAULT_$LINE"
7260                          else
7261                            no_cache=1
7262                          fi
7263
7264                          wx_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7265
7266fi;
7267
7268          eval "$wx_cv_use_html"
7269          if test "$no_cache" != 1; then
7270            echo $wx_cv_use_html >> ${wx_arg_cache_file}.tmp
7271          fi
7272
7273          if test "$wxUSE_HTML" = yes; then
7274            echo "$as_me:$LINENO: result: yes" >&5
7275echo "${ECHO_T}yes" >&6
7276          else
7277            echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6
7279          fi
7280
7281
7282          enablestring=
7283          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7284echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7285          no_cache=0
7286          # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7287if test "${enable_htmlhelp+set}" = set; then
7288  enableval="$enable_htmlhelp"
7289
7290                          if test "$enableval" = yes; then
7291                            wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7292                          else
7293                            wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7294                          fi
7295
7296else
7297
7298                          LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7299                          if test "x$LINE" != x ; then
7300                            eval "DEFAULT_$LINE"
7301                          else
7302                            no_cache=1
7303                          fi
7304
7305                          wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7306
7307fi;
7308
7309          eval "$wx_cv_use_htmlhelp"
7310          if test "$no_cache" != 1; then
7311            echo $wx_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7312          fi
7313
7314          if test "$wxUSE_WXHTML_HELP" = yes; then
7315            echo "$as_me:$LINENO: result: yes" >&5
7316echo "${ECHO_T}yes" >&6
7317          else
7318            echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6
7320          fi
7321
7322
7323          enablestring=
7324          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7325echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7326          no_cache=0
7327          # Check whether --enable-xrc or --disable-xrc was given.
7328if test "${enable_xrc+set}" = set; then
7329  enableval="$enable_xrc"
7330
7331                          if test "$enableval" = yes; then
7332                            wx_cv_use_xrc='wxUSE_XRC=yes'
7333                          else
7334                            wx_cv_use_xrc='wxUSE_XRC=no'
7335                          fi
7336
7337else
7338
7339                          LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7340                          if test "x$LINE" != x ; then
7341                            eval "DEFAULT_$LINE"
7342                          else
7343                            no_cache=1
7344                          fi
7345
7346                          wx_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7347
7348fi;
7349
7350          eval "$wx_cv_use_xrc"
7351          if test "$no_cache" != 1; then
7352            echo $wx_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7353          fi
7354
7355          if test "$wxUSE_XRC" = yes; then
7356            echo "$as_me:$LINENO: result: yes" >&5
7357echo "${ECHO_T}yes" >&6
7358          else
7359            echo "$as_me:$LINENO: result: no" >&5
7360echo "${ECHO_T}no" >&6
7361          fi
7362
7363
7364          enablestring=
7365          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7366echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7367          no_cache=0
7368          # Check whether --enable-aui or --disable-aui was given.
7369if test "${enable_aui+set}" = set; then
7370  enableval="$enable_aui"
7371
7372                          if test "$enableval" = yes; then
7373                            wx_cv_use_aui='wxUSE_AUI=yes'
7374                          else
7375                            wx_cv_use_aui='wxUSE_AUI=no'
7376                          fi
7377
7378else
7379
7380                          LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7381                          if test "x$LINE" != x ; then
7382                            eval "DEFAULT_$LINE"
7383                          else
7384                            no_cache=1
7385                          fi
7386
7387                          wx_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7388
7389fi;
7390
7391          eval "$wx_cv_use_aui"
7392          if test "$no_cache" != 1; then
7393            echo $wx_cv_use_aui >> ${wx_arg_cache_file}.tmp
7394          fi
7395
7396          if test "$wxUSE_AUI" = yes; then
7397            echo "$as_me:$LINENO: result: yes" >&5
7398echo "${ECHO_T}yes" >&6
7399          else
7400            echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6
7402          fi
7403
7404
7405          enablestring=
7406          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7407echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7408          no_cache=0
7409          # Check whether --enable-constraints or --disable-constraints was given.
7410if test "${enable_constraints+set}" = set; then
7411  enableval="$enable_constraints"
7412
7413                          if test "$enableval" = yes; then
7414                            wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7415                          else
7416                            wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7417                          fi
7418
7419else
7420
7421                          LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7422                          if test "x$LINE" != x ; then
7423                            eval "DEFAULT_$LINE"
7424                          else
7425                            no_cache=1
7426                          fi
7427
7428                          wx_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7429
7430fi;
7431
7432          eval "$wx_cv_use_constraints"
7433          if test "$no_cache" != 1; then
7434            echo $wx_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7435          fi
7436
7437          if test "$wxUSE_CONSTRAINTS" = yes; then
7438            echo "$as_me:$LINENO: result: yes" >&5
7439echo "${ECHO_T}yes" >&6
7440          else
7441            echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6
7443          fi
7444
7445
7446          enablestring=
7447          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7448echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7449          no_cache=0
7450          # Check whether --enable-printarch or --disable-printarch was given.
7451if test "${enable_printarch+set}" = set; then
7452  enableval="$enable_printarch"
7453
7454                          if test "$enableval" = yes; then
7455                            wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7456                          else
7457                            wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7458                          fi
7459
7460else
7461
7462                          LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7463                          if test "x$LINE" != x ; then
7464                            eval "DEFAULT_$LINE"
7465                          else
7466                            no_cache=1
7467                          fi
7468
7469                          wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7470
7471fi;
7472
7473          eval "$wx_cv_use_printarch"
7474          if test "$no_cache" != 1; then
7475            echo $wx_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7476          fi
7477
7478          if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7479            echo "$as_me:$LINENO: result: yes" >&5
7480echo "${ECHO_T}yes" >&6
7481          else
7482            echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6
7484          fi
7485
7486
7487          enablestring=
7488          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7489echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7490          no_cache=0
7491          # Check whether --enable-mdi or --disable-mdi was given.
7492if test "${enable_mdi+set}" = set; then
7493  enableval="$enable_mdi"
7494
7495                          if test "$enableval" = yes; then
7496                            wx_cv_use_mdi='wxUSE_MDI=yes'
7497                          else
7498                            wx_cv_use_mdi='wxUSE_MDI=no'
7499                          fi
7500
7501else
7502
7503                          LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
7504                          if test "x$LINE" != x ; then
7505                            eval "DEFAULT_$LINE"
7506                          else
7507                            no_cache=1
7508                          fi
7509
7510                          wx_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7511
7512fi;
7513
7514          eval "$wx_cv_use_mdi"
7515          if test "$no_cache" != 1; then
7516            echo $wx_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7517          fi
7518
7519          if test "$wxUSE_MDI" = yes; then
7520            echo "$as_me:$LINENO: result: yes" >&5
7521echo "${ECHO_T}yes" >&6
7522          else
7523            echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6
7525          fi
7526
7527
7528          enablestring=
7529          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7530echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7531          no_cache=0
7532          # Check whether --enable-mdidoc or --disable-mdidoc was given.
7533if test "${enable_mdidoc+set}" = set; then
7534  enableval="$enable_mdidoc"
7535
7536                          if test "$enableval" = yes; then
7537                            wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7538                          else
7539                            wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7540                          fi
7541
7542else
7543
7544                          LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7545                          if test "x$LINE" != x ; then
7546                            eval "DEFAULT_$LINE"
7547                          else
7548                            no_cache=1
7549                          fi
7550
7551                          wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7552
7553fi;
7554
7555          eval "$wx_cv_use_mdidoc"
7556          if test "$no_cache" != 1; then
7557            echo $wx_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7558          fi
7559
7560          if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7561            echo "$as_me:$LINENO: result: yes" >&5
7562echo "${ECHO_T}yes" >&6
7563          else
7564            echo "$as_me:$LINENO: result: no" >&5
7565echo "${ECHO_T}no" >&6
7566          fi
7567
7568
7569          enablestring=
7570          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7571echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7572          no_cache=0
7573          # Check whether --enable-loggui or --disable-loggui was given.
7574if test "${enable_loggui+set}" = set; then
7575  enableval="$enable_loggui"
7576
7577                          if test "$enableval" = yes; then
7578                            wx_cv_use_loggui='wxUSE_LOGGUI=yes'
7579                          else
7580                            wx_cv_use_loggui='wxUSE_LOGGUI=no'
7581                          fi
7582
7583else
7584
7585                          LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7586                          if test "x$LINE" != x ; then
7587                            eval "DEFAULT_$LINE"
7588                          else
7589                            no_cache=1
7590                          fi
7591
7592                          wx_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7593
7594fi;
7595
7596          eval "$wx_cv_use_loggui"
7597          if test "$no_cache" != 1; then
7598            echo $wx_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7599          fi
7600
7601          if test "$wxUSE_LOGGUI" = yes; then
7602            echo "$as_me:$LINENO: result: yes" >&5
7603echo "${ECHO_T}yes" >&6
7604          else
7605            echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6
7607          fi
7608
7609
7610          enablestring=
7611          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7612echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7613          no_cache=0
7614          # Check whether --enable-logwin or --disable-logwin was given.
7615if test "${enable_logwin+set}" = set; then
7616  enableval="$enable_logwin"
7617
7618                          if test "$enableval" = yes; then
7619                            wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7620                          else
7621                            wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
7622                          fi
7623
7624else
7625
7626                          LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7627                          if test "x$LINE" != x ; then
7628                            eval "DEFAULT_$LINE"
7629                          else
7630                            no_cache=1
7631                          fi
7632
7633                          wx_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7634
7635fi;
7636
7637          eval "$wx_cv_use_logwin"
7638          if test "$no_cache" != 1; then
7639            echo $wx_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7640          fi
7641
7642          if test "$wxUSE_LOGWINDOW" = yes; then
7643            echo "$as_me:$LINENO: result: yes" >&5
7644echo "${ECHO_T}yes" >&6
7645          else
7646            echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6
7648          fi
7649
7650
7651          enablestring=
7652          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7653echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7654          no_cache=0
7655          # Check whether --enable-logdialog or --disable-logdialog was given.
7656if test "${enable_logdialog+set}" = set; then
7657  enableval="$enable_logdialog"
7658
7659                          if test "$enableval" = yes; then
7660                            wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7661                          else
7662                            wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7663                          fi
7664
7665else
7666
7667                          LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7668                          if test "x$LINE" != x ; then
7669                            eval "DEFAULT_$LINE"
7670                          else
7671                            no_cache=1
7672                          fi
7673
7674                          wx_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7675
7676fi;
7677
7678          eval "$wx_cv_use_logdialog"
7679          if test "$no_cache" != 1; then
7680            echo $wx_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7681          fi
7682
7683          if test "$wxUSE_LOGDIALOG" = yes; then
7684            echo "$as_me:$LINENO: result: yes" >&5
7685echo "${ECHO_T}yes" >&6
7686          else
7687            echo "$as_me:$LINENO: result: no" >&5
7688echo "${ECHO_T}no" >&6
7689          fi
7690
7691
7692          enablestring=
7693          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7694echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7695          no_cache=0
7696          # Check whether --enable-webkit or --disable-webkit was given.
7697if test "${enable_webkit+set}" = set; then
7698  enableval="$enable_webkit"
7699
7700                          if test "$enableval" = yes; then
7701                            wx_cv_use_webkit='wxUSE_WEBKIT=yes'
7702                          else
7703                            wx_cv_use_webkit='wxUSE_WEBKIT=no'
7704                          fi
7705
7706else
7707
7708                          LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7709                          if test "x$LINE" != x ; then
7710                            eval "DEFAULT_$LINE"
7711                          else
7712                            no_cache=1
7713                          fi
7714
7715                          wx_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7716
7717fi;
7718
7719          eval "$wx_cv_use_webkit"
7720          if test "$no_cache" != 1; then
7721            echo $wx_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7722          fi
7723
7724          if test "$wxUSE_WEBKIT" = yes; then
7725            echo "$as_me:$LINENO: result: yes" >&5
7726echo "${ECHO_T}yes" >&6
7727          else
7728            echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6
7730          fi
7731
7732
7733          enablestring=
7734          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
7735echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6
7736          no_cache=0
7737          # Check whether --enable-richtext or --disable-richtext was given.
7738if test "${enable_richtext+set}" = set; then
7739  enableval="$enable_richtext"
7740
7741                          if test "$enableval" = yes; then
7742                            wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
7743                          else
7744                            wx_cv_use_richtext='wxUSE_RICHTEXT=no'
7745                          fi
7746
7747else
7748
7749                          LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7750                          if test "x$LINE" != x ; then
7751                            eval "DEFAULT_$LINE"
7752                          else
7753                            no_cache=1
7754                          fi
7755
7756                          wx_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7757
7758fi;
7759
7760          eval "$wx_cv_use_richtext"
7761          if test "$no_cache" != 1; then
7762            echo $wx_cv_use_richtext >> ${wx_arg_cache_file}.tmp
7763          fi
7764
7765          if test "$wxUSE_RICHTEXT" = yes; then
7766            echo "$as_me:$LINENO: result: yes" >&5
7767echo "${ECHO_T}yes" >&6
7768          else
7769            echo "$as_me:$LINENO: result: no" >&5
7770echo "${ECHO_T}no" >&6
7771          fi
7772
7773
7774          enablestring=
7775          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7776echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7777          no_cache=0
7778          # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7779if test "${enable_graphics_ctx+set}" = set; then
7780  enableval="$enable_graphics_ctx"
7781
7782                          if test "$enableval" = yes; then
7783                            wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7784                          else
7785                            wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7786                          fi
7787
7788else
7789
7790                          LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7791                          if test "x$LINE" != x ; then
7792                            eval "DEFAULT_$LINE"
7793                          else
7794                            no_cache=1
7795                          fi
7796
7797                          wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7798
7799fi;
7800
7801          eval "$wx_cv_use_graphics_ctx"
7802          if test "$no_cache" != 1; then
7803            echo $wx_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7804          fi
7805
7806          if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7807            echo "$as_me:$LINENO: result: yes" >&5
7808echo "${ECHO_T}yes" >&6
7809          else
7810            echo "$as_me:$LINENO: result: no" >&5
7811echo "${ECHO_T}no" >&6
7812          fi
7813
7814
7815
7816          enablestring=
7817          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7818echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7819          no_cache=0
7820          # Check whether --enable-postscript or --disable-postscript was given.
7821if test "${enable_postscript+set}" = set; then
7822  enableval="$enable_postscript"
7823
7824                          if test "$enableval" = yes; then
7825                            wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7826                          else
7827                            wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7828                          fi
7829
7830else
7831
7832                          LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7833                          if test "x$LINE" != x ; then
7834                            eval "DEFAULT_$LINE"
7835                          else
7836                            no_cache=1
7837                          fi
7838
7839                          wx_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7840
7841fi;
7842
7843          eval "$wx_cv_use_postscript"
7844          if test "$no_cache" != 1; then
7845            echo $wx_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7846          fi
7847
7848          if test "$wxUSE_POSTSCRIPT" = yes; then
7849            echo "$as_me:$LINENO: result: yes" >&5
7850echo "${ECHO_T}yes" >&6
7851          else
7852            echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6
7854          fi
7855
7856
7857
7858
7859
7860          enablestring=
7861          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7862echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7863          no_cache=0
7864          # Check whether --enable-prologio or --disable-prologio was given.
7865if test "${enable_prologio+set}" = set; then
7866  enableval="$enable_prologio"
7867
7868                          if test "$enableval" = yes; then
7869                            wx_cv_use_prologio='wxUSE_PROLOGIO=yes'
7870                          else
7871                            wx_cv_use_prologio='wxUSE_PROLOGIO=no'
7872                          fi
7873
7874else
7875
7876                          LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7877                          if test "x$LINE" != x ; then
7878                            eval "DEFAULT_$LINE"
7879                          else
7880                            no_cache=1
7881                          fi
7882
7883                          wx_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7884
7885fi;
7886
7887          eval "$wx_cv_use_prologio"
7888          if test "$no_cache" != 1; then
7889            echo $wx_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7890          fi
7891
7892          if test "$wxUSE_PROLOGIO" = yes; then
7893            echo "$as_me:$LINENO: result: yes" >&5
7894echo "${ECHO_T}yes" >&6
7895          else
7896            echo "$as_me:$LINENO: result: no" >&5
7897echo "${ECHO_T}no" >&6
7898          fi
7899
7900
7901          enablestring=
7902          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7903echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7904          no_cache=0
7905          # Check whether --enable-resources or --disable-resources was given.
7906if test "${enable_resources+set}" = set; then
7907  enableval="$enable_resources"
7908
7909                          if test "$enableval" = yes; then
7910                            wx_cv_use_resources='wxUSE_RESOURCES=yes'
7911                          else
7912                            wx_cv_use_resources='wxUSE_RESOURCES=no'
7913                          fi
7914
7915else
7916
7917                          LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7918                          if test "x$LINE" != x ; then
7919                            eval "DEFAULT_$LINE"
7920                          else
7921                            no_cache=1
7922                          fi
7923
7924                          wx_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7925
7926fi;
7927
7928          eval "$wx_cv_use_resources"
7929          if test "$no_cache" != 1; then
7930            echo $wx_cv_use_resources >> ${wx_arg_cache_file}.tmp
7931          fi
7932
7933          if test "$wxUSE_RESOURCES" = yes; then
7934            echo "$as_me:$LINENO: result: yes" >&5
7935echo "${ECHO_T}yes" >&6
7936          else
7937            echo "$as_me:$LINENO: result: no" >&5
7938echo "${ECHO_T}no" >&6
7939          fi
7940
7941
7942
7943
7944          enablestring=
7945          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7946echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7947          no_cache=0
7948          # Check whether --enable-clipboard or --disable-clipboard was given.
7949if test "${enable_clipboard+set}" = set; then
7950  enableval="$enable_clipboard"
7951
7952                          if test "$enableval" = yes; then
7953                            wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7954                          else
7955                            wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7956                          fi
7957
7958else
7959
7960                          LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7961                          if test "x$LINE" != x ; then
7962                            eval "DEFAULT_$LINE"
7963                          else
7964                            no_cache=1
7965                          fi
7966
7967                          wx_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7968
7969fi;
7970
7971          eval "$wx_cv_use_clipboard"
7972          if test "$no_cache" != 1; then
7973            echo $wx_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7974          fi
7975
7976          if test "$wxUSE_CLIPBOARD" = yes; then
7977            echo "$as_me:$LINENO: result: yes" >&5
7978echo "${ECHO_T}yes" >&6
7979          else
7980            echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6
7982          fi
7983
7984
7985          enablestring=
7986          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7987echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7988          no_cache=0
7989          # Check whether --enable-dnd or --disable-dnd was given.
7990if test "${enable_dnd+set}" = set; then
7991  enableval="$enable_dnd"
7992
7993                          if test "$enableval" = yes; then
7994                            wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7995                          else
7996                            wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7997                          fi
7998
7999else
8000
8001                          LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
8002                          if test "x$LINE" != x ; then
8003                            eval "DEFAULT_$LINE"
8004                          else
8005                            no_cache=1
8006                          fi
8007
8008                          wx_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
8009
8010fi;
8011
8012          eval "$wx_cv_use_dnd"
8013          if test "$no_cache" != 1; then
8014            echo $wx_cv_use_dnd >> ${wx_arg_cache_file}.tmp
8015          fi
8016
8017          if test "$wxUSE_DRAG_AND_DROP" = yes; then
8018            echo "$as_me:$LINENO: result: yes" >&5
8019echo "${ECHO_T}yes" >&6
8020          else
8021            echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6
8023          fi
8024
8025
8026          enablestring=
8027          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8028echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
8029          no_cache=0
8030          # Check whether --enable-metafile or --disable-metafile was given.
8031if test "${enable_metafile+set}" = set; then
8032  enableval="$enable_metafile"
8033
8034                          if test "$enableval" = yes; then
8035                            wx_cv_use_metafile='wxUSE_METAFILE=yes'
8036                          else
8037                            wx_cv_use_metafile='wxUSE_METAFILE=no'
8038                          fi
8039
8040else
8041
8042                          LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8043                          if test "x$LINE" != x ; then
8044                            eval "DEFAULT_$LINE"
8045                          else
8046                            no_cache=1
8047                          fi
8048
8049                          wx_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8050
8051fi;
8052
8053          eval "$wx_cv_use_metafile"
8054          if test "$no_cache" != 1; then
8055            echo $wx_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8056          fi
8057
8058          if test "$wxUSE_METAFILE" = yes; then
8059            echo "$as_me:$LINENO: result: yes" >&5
8060echo "${ECHO_T}yes" >&6
8061          else
8062            echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
8064          fi
8065
8066
8067
8068
8069
8070          enablestring=
8071          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
8072echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
8073          no_cache=0
8074          # Check whether --enable-controls or --disable-controls was given.
8075if test "${enable_controls+set}" = set; then
8076  enableval="$enable_controls"
8077
8078                          if test "$enableval" = yes; then
8079                            wx_cv_use_controls='wxUSE_CONTROLS=yes'
8080                          else
8081                            wx_cv_use_controls='wxUSE_CONTROLS=no'
8082                          fi
8083
8084else
8085
8086                          LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
8087                          if test "x$LINE" != x ; then
8088                            eval "DEFAULT_$LINE"
8089                          else
8090                            no_cache=1
8091                          fi
8092
8093                          wx_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
8094
8095fi;
8096
8097          eval "$wx_cv_use_controls"
8098          if test "$no_cache" != 1; then
8099            echo $wx_cv_use_controls >> ${wx_arg_cache_file}.tmp
8100          fi
8101
8102          if test "$wxUSE_CONTROLS" = yes; then
8103            echo "$as_me:$LINENO: result: yes" >&5
8104echo "${ECHO_T}yes" >&6
8105          else
8106            echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6
8108          fi
8109
8110
8111if test "$wxUSE_CONTROLS" = "yes"; then
8112  DEFAULT_wxUSE_ACCEL=yes
8113  DEFAULT_wxUSE_ANIMATIONCTRL=yes
8114  DEFAULT_wxUSE_BMPBUTTON=yes
8115  DEFAULT_wxUSE_BUTTON=yes
8116  DEFAULT_wxUSE_CALCTRL=yes
8117  DEFAULT_wxUSE_CARET=yes
8118  DEFAULT_wxUSE_COMBOBOX=yes
8119  DEFAULT_wxUSE_CHECKBOX=yes
8120  DEFAULT_wxUSE_CHECKLISTBOX=yes
8121  DEFAULT_wxUSE_CHOICE=yes
8122  DEFAULT_wxUSE_CHOICEBOOK=yes
8123  DEFAULT_wxUSE_COLLPANE=yes
8124  DEFAULT_wxUSE_COLOURPICKERCTRL=yes
8125  DEFAULT_wxUSE_COMBOBOX=yes
8126  DEFAULT_wxUSE_DATEPICKCTRL=yes
8127  DEFAULT_wxUSE_DISPLAY=yes
8128  DEFAULT_wxUSE_DETECT_SM=yes
8129  DEFAULT_wxUSE_DIRPICKERCTRL=yes
8130  DEFAULT_wxUSE_FILEPICKERCTRL=yes
8131  DEFAULT_wxUSE_FONTPICKERCTRL=yes
8132  DEFAULT_wxUSE_GAUGE=yes
8133  DEFAULT_wxUSE_GRID=yes
8134  DEFAULT_wxUSE_HYPERLINKCTRL=yes
8135  DEFAULT_wxUSE_DATAVIEWCTRL=no
8136  DEFAULT_wxUSE_IMAGLIST=yes
8137  DEFAULT_wxUSE_LISTBOOK=yes
8138  DEFAULT_wxUSE_LISTBOX=yes
8139  DEFAULT_wxUSE_LISTCTRL=yes
8140  DEFAULT_wxUSE_NOTEBOOK=yes
8141  DEFAULT_wxUSE_RADIOBOX=yes
8142  DEFAULT_wxUSE_RADIOBTN=yes
8143  DEFAULT_wxUSE_SASH=yes
8144  DEFAULT_wxUSE_SCROLLBAR=yes
8145  DEFAULT_wxUSE_SEARCHCTRL=yes
8146  DEFAULT_wxUSE_SLIDER=yes
8147  DEFAULT_wxUSE_SPINBTN=yes
8148  DEFAULT_wxUSE_SPINCTRL=yes
8149  DEFAULT_wxUSE_SPLITTER=yes
8150  DEFAULT_wxUSE_STATBMP=yes
8151  DEFAULT_wxUSE_STATBOX=yes
8152  DEFAULT_wxUSE_STATLINE=yes
8153  DEFAULT_wxUSE_STATUSBAR=yes
8154  DEFAULT_wxUSE_TAB_DIALOG=yes
8155  DEFAULT_wxUSE_TOGGLEBTN=yes
8156  DEFAULT_wxUSE_TOOLBAR=yes
8157  DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
8158  DEFAULT_wxUSE_TOOLTIPS=yes
8159  DEFAULT_wxUSE_TREEBOOK=yes
8160  DEFAULT_wxUSE_TOOLBOOK=yes
8161  DEFAULT_wxUSE_TREECTRL=yes
8162  DEFAULT_wxUSE_POPUPWIN=yes
8163  DEFAULT_wxUSE_TIPWINDOW=yes
8164elif test "$wxUSE_CONTROLS" = "no"; then
8165  DEFAULT_wxUSE_ACCEL=no
8166  DEFAULT_wxUSE_ANIMATIONCTRL=no
8167  DEFAULT_wxUSE_BMPBUTTON=no
8168  DEFAULT_wxUSE_BUTTON=no
8169  DEFAULT_wxUSE_CALCTRL=no
8170  DEFAULT_wxUSE_CARET=no
8171  DEFAULT_wxUSE_COLLPANE=no
8172  DEFAULT_wxUSE_COMBOBOX=no
8173  DEFAULT_wxUSE_CHECKBOX=no
8174  DEFAULT_wxUSE_CHECKLISTBOX=no
8175  DEFAULT_wxUSE_CHOICE=no
8176  DEFAULT_wxUSE_CHOICEBOOK=no
8177  DEFAULT_wxUSE_COLOURPICKERCTRL=no
8178  DEFAULT_wxUSE_COMBOBOX=no
8179  DEFAULT_wxUSE_DATEPICKCTRL=no
8180  DEFAULT_wxUSE_DISPLAY=no
8181  DEFAULT_wxUSE_DETECT_SM=no
8182  DEFAULT_wxUSE_DIRPICKERCTRL=no
8183  DEFAULT_wxUSE_FILEPICKERCTRL=no
8184  DEFAULT_wxUSE_FONTPICKERCTRL=no
8185  DEFAULT_wxUSE_GAUGE=no
8186  DEFAULT_wxUSE_GRID=no
8187  DEFAULT_wxUSE_HYPERLINKCTRL=no
8188  DEFAULT_wxUSE_DATAVIEWCTRL=no
8189  DEFAULT_wxUSE_IMAGLIST=no
8190  DEFAULT_wxUSE_LISTBOOK=no
8191  DEFAULT_wxUSE_LISTBOX=no
8192  DEFAULT_wxUSE_LISTCTRL=no
8193  DEFAULT_wxUSE_NOTEBOOK=no
8194  DEFAULT_wxUSE_RADIOBOX=no
8195  DEFAULT_wxUSE_RADIOBTN=no
8196  DEFAULT_wxUSE_SASH=no
8197  DEFAULT_wxUSE_SCROLLBAR=no
8198  DEFAULT_wxUSE_SEARCHCTRL=no
8199  DEFAULT_wxUSE_SLIDER=no
8200  DEFAULT_wxUSE_SPINBTN=no
8201  DEFAULT_wxUSE_SPINCTRL=no
8202  DEFAULT_wxUSE_SPLITTER=no
8203  DEFAULT_wxUSE_STATBMP=no
8204  DEFAULT_wxUSE_STATBOX=no
8205  DEFAULT_wxUSE_STATLINE=no
8206  DEFAULT_wxUSE_STATUSBAR=no
8207  DEFAULT_wxUSE_TAB_DIALOG=no
8208  DEFAULT_wxUSE_TOGGLEBTN=no
8209  DEFAULT_wxUSE_TOOLBAR=no
8210  DEFAULT_wxUSE_TOOLBAR_NATIVE=no
8211  DEFAULT_wxUSE_TOOLTIPS=no
8212  DEFAULT_wxUSE_TREEBOOK=no
8213  DEFAULT_wxUSE_TOOLBOOK=no
8214  DEFAULT_wxUSE_TREECTRL=no
8215  DEFAULT_wxUSE_POPUPWIN=no
8216  DEFAULT_wxUSE_TIPWINDOW=no
8217fi
8218
8219
8220          enablestring=
8221          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8222echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
8223          no_cache=0
8224          # Check whether --enable-accel or --disable-accel was given.
8225if test "${enable_accel+set}" = set; then
8226  enableval="$enable_accel"
8227
8228                          if test "$enableval" = yes; then
8229                            wx_cv_use_accel='wxUSE_ACCEL=yes'
8230                          else
8231                            wx_cv_use_accel='wxUSE_ACCEL=no'
8232                          fi
8233
8234else
8235
8236                          LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8237                          if test "x$LINE" != x ; then
8238                            eval "DEFAULT_$LINE"
8239                          else
8240                            no_cache=1
8241                          fi
8242
8243                          wx_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8244
8245fi;
8246
8247          eval "$wx_cv_use_accel"
8248          if test "$no_cache" != 1; then
8249            echo $wx_cv_use_accel >> ${wx_arg_cache_file}.tmp
8250          fi
8251
8252          if test "$wxUSE_ACCEL" = yes; then
8253            echo "$as_me:$LINENO: result: yes" >&5
8254echo "${ECHO_T}yes" >&6
8255          else
8256            echo "$as_me:$LINENO: result: no" >&5
8257echo "${ECHO_T}no" >&6
8258          fi
8259
8260
8261          enablestring=
8262          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8263echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
8264          no_cache=0
8265          # Check whether --enable-animatectrl or --disable-animatectrl was given.
8266if test "${enable_animatectrl+set}" = set; then
8267  enableval="$enable_animatectrl"
8268
8269                          if test "$enableval" = yes; then
8270                            wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8271                          else
8272                            wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8273                          fi
8274
8275else
8276
8277                          LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8278                          if test "x$LINE" != x ; then
8279                            eval "DEFAULT_$LINE"
8280                          else
8281                            no_cache=1
8282                          fi
8283
8284                          wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8285
8286fi;
8287
8288          eval "$wx_cv_use_animatectrl"
8289          if test "$no_cache" != 1; then
8290            echo $wx_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8291          fi
8292
8293          if test "$wxUSE_ANIMATIONCTRL" = yes; then
8294            echo "$as_me:$LINENO: result: yes" >&5
8295echo "${ECHO_T}yes" >&6
8296          else
8297            echo "$as_me:$LINENO: result: no" >&5
8298echo "${ECHO_T}no" >&6
8299          fi
8300
8301
8302          enablestring=
8303          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8304echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8305          no_cache=0
8306          # Check whether --enable-button or --disable-button was given.
8307if test "${enable_button+set}" = set; then
8308  enableval="$enable_button"
8309
8310                          if test "$enableval" = yes; then
8311                            wx_cv_use_button='wxUSE_BUTTON=yes'
8312                          else
8313                            wx_cv_use_button='wxUSE_BUTTON=no'
8314                          fi
8315
8316else
8317
8318                          LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8319                          if test "x$LINE" != x ; then
8320                            eval "DEFAULT_$LINE"
8321                          else
8322                            no_cache=1
8323                          fi
8324
8325                          wx_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8326
8327fi;
8328
8329          eval "$wx_cv_use_button"
8330          if test "$no_cache" != 1; then
8331            echo $wx_cv_use_button >> ${wx_arg_cache_file}.tmp
8332          fi
8333
8334          if test "$wxUSE_BUTTON" = yes; then
8335            echo "$as_me:$LINENO: result: yes" >&5
8336echo "${ECHO_T}yes" >&6
8337          else
8338            echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6
8340          fi
8341
8342
8343          enablestring=
8344          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8345echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8346          no_cache=0
8347          # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8348if test "${enable_bmpbutton+set}" = set; then
8349  enableval="$enable_bmpbutton"
8350
8351                          if test "$enableval" = yes; then
8352                            wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8353                          else
8354                            wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8355                          fi
8356
8357else
8358
8359                          LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8360                          if test "x$LINE" != x ; then
8361                            eval "DEFAULT_$LINE"
8362                          else
8363                            no_cache=1
8364                          fi
8365
8366                          wx_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8367
8368fi;
8369
8370          eval "$wx_cv_use_bmpbutton"
8371          if test "$no_cache" != 1; then
8372            echo $wx_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8373          fi
8374
8375          if test "$wxUSE_BMPBUTTON" = yes; then
8376            echo "$as_me:$LINENO: result: yes" >&5
8377echo "${ECHO_T}yes" >&6
8378          else
8379            echo "$as_me:$LINENO: result: no" >&5
8380echo "${ECHO_T}no" >&6
8381          fi
8382
8383
8384          enablestring=
8385          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8386echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8387          no_cache=0
8388          # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8389if test "${enable_bmpcombobox+set}" = set; then
8390  enableval="$enable_bmpcombobox"
8391
8392                          if test "$enableval" = yes; then
8393                            wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8394                          else
8395                            wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8396                          fi
8397
8398else
8399
8400                          LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8401                          if test "x$LINE" != x ; then
8402                            eval "DEFAULT_$LINE"
8403                          else
8404                            no_cache=1
8405                          fi
8406
8407                          wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8408
8409fi;
8410
8411          eval "$wx_cv_use_bmpcombobox"
8412          if test "$no_cache" != 1; then
8413            echo $wx_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8414          fi
8415
8416          if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8417            echo "$as_me:$LINENO: result: yes" >&5
8418echo "${ECHO_T}yes" >&6
8419          else
8420            echo "$as_me:$LINENO: result: no" >&5
8421echo "${ECHO_T}no" >&6
8422          fi
8423
8424
8425          enablestring=
8426          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8427echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8428          no_cache=0
8429          # Check whether --enable-calendar or --disable-calendar was given.
8430if test "${enable_calendar+set}" = set; then
8431  enableval="$enable_calendar"
8432
8433                          if test "$enableval" = yes; then
8434                            wx_cv_use_calendar='wxUSE_CALCTRL=yes'
8435                          else
8436                            wx_cv_use_calendar='wxUSE_CALCTRL=no'
8437                          fi
8438
8439else
8440
8441                          LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8442                          if test "x$LINE" != x ; then
8443                            eval "DEFAULT_$LINE"
8444                          else
8445                            no_cache=1
8446                          fi
8447
8448                          wx_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8449
8450fi;
8451
8452          eval "$wx_cv_use_calendar"
8453          if test "$no_cache" != 1; then
8454            echo $wx_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8455          fi
8456
8457          if test "$wxUSE_CALCTRL" = yes; then
8458            echo "$as_me:$LINENO: result: yes" >&5
8459echo "${ECHO_T}yes" >&6
8460          else
8461            echo "$as_me:$LINENO: result: no" >&5
8462echo "${ECHO_T}no" >&6
8463          fi
8464
8465
8466          enablestring=
8467          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8468echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8469          no_cache=0
8470          # Check whether --enable-caret or --disable-caret was given.
8471if test "${enable_caret+set}" = set; then
8472  enableval="$enable_caret"
8473
8474                          if test "$enableval" = yes; then
8475                            wx_cv_use_caret='wxUSE_CARET=yes'
8476                          else
8477                            wx_cv_use_caret='wxUSE_CARET=no'
8478                          fi
8479
8480else
8481
8482                          LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8483                          if test "x$LINE" != x ; then
8484                            eval "DEFAULT_$LINE"
8485                          else
8486                            no_cache=1
8487                          fi
8488
8489                          wx_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8490
8491fi;
8492
8493          eval "$wx_cv_use_caret"
8494          if test "$no_cache" != 1; then
8495            echo $wx_cv_use_caret >> ${wx_arg_cache_file}.tmp
8496          fi
8497
8498          if test "$wxUSE_CARET" = yes; then
8499            echo "$as_me:$LINENO: result: yes" >&5
8500echo "${ECHO_T}yes" >&6
8501          else
8502            echo "$as_me:$LINENO: result: no" >&5
8503echo "${ECHO_T}no" >&6
8504          fi
8505
8506
8507          enablestring=
8508          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8509echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8510          no_cache=0
8511          # Check whether --enable-checkbox or --disable-checkbox was given.
8512if test "${enable_checkbox+set}" = set; then
8513  enableval="$enable_checkbox"
8514
8515                          if test "$enableval" = yes; then
8516                            wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8517                          else
8518                            wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
8519                          fi
8520
8521else
8522
8523                          LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8524                          if test "x$LINE" != x ; then
8525                            eval "DEFAULT_$LINE"
8526                          else
8527                            no_cache=1
8528                          fi
8529
8530                          wx_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8531
8532fi;
8533
8534          eval "$wx_cv_use_checkbox"
8535          if test "$no_cache" != 1; then
8536            echo $wx_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8537          fi
8538
8539          if test "$wxUSE_CHECKBOX" = yes; then
8540            echo "$as_me:$LINENO: result: yes" >&5
8541echo "${ECHO_T}yes" >&6
8542          else
8543            echo "$as_me:$LINENO: result: no" >&5
8544echo "${ECHO_T}no" >&6
8545          fi
8546
8547
8548          enablestring=
8549          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8550echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8551          no_cache=0
8552          # Check whether --enable-checklst or --disable-checklst was given.
8553if test "${enable_checklst+set}" = set; then
8554  enableval="$enable_checklst"
8555
8556                          if test "$enableval" = yes; then
8557                            wx_cv_use_checklst='wxUSE_CHECKLST=yes'
8558                          else
8559                            wx_cv_use_checklst='wxUSE_CHECKLST=no'
8560                          fi
8561
8562else
8563
8564                          LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8565                          if test "x$LINE" != x ; then
8566                            eval "DEFAULT_$LINE"
8567                          else
8568                            no_cache=1
8569                          fi
8570
8571                          wx_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8572
8573fi;
8574
8575          eval "$wx_cv_use_checklst"
8576          if test "$no_cache" != 1; then
8577            echo $wx_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8578          fi
8579
8580          if test "$wxUSE_CHECKLST" = yes; then
8581            echo "$as_me:$LINENO: result: yes" >&5
8582echo "${ECHO_T}yes" >&6
8583          else
8584            echo "$as_me:$LINENO: result: no" >&5
8585echo "${ECHO_T}no" >&6
8586          fi
8587
8588
8589          enablestring=
8590          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8591echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8592          no_cache=0
8593          # Check whether --enable-choice or --disable-choice was given.
8594if test "${enable_choice+set}" = set; then
8595  enableval="$enable_choice"
8596
8597                          if test "$enableval" = yes; then
8598                            wx_cv_use_choice='wxUSE_CHOICE=yes'
8599                          else
8600                            wx_cv_use_choice='wxUSE_CHOICE=no'
8601                          fi
8602
8603else
8604
8605                          LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8606                          if test "x$LINE" != x ; then
8607                            eval "DEFAULT_$LINE"
8608                          else
8609                            no_cache=1
8610                          fi
8611
8612                          wx_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8613
8614fi;
8615
8616          eval "$wx_cv_use_choice"
8617          if test "$no_cache" != 1; then
8618            echo $wx_cv_use_choice >> ${wx_arg_cache_file}.tmp
8619          fi
8620
8621          if test "$wxUSE_CHOICE" = yes; then
8622            echo "$as_me:$LINENO: result: yes" >&5
8623echo "${ECHO_T}yes" >&6
8624          else
8625            echo "$as_me:$LINENO: result: no" >&5
8626echo "${ECHO_T}no" >&6
8627          fi
8628
8629
8630          enablestring=
8631          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8632echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8633          no_cache=0
8634          # Check whether --enable-choicebook or --disable-choicebook was given.
8635if test "${enable_choicebook+set}" = set; then
8636  enableval="$enable_choicebook"
8637
8638                          if test "$enableval" = yes; then
8639                            wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8640                          else
8641                            wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8642                          fi
8643
8644else
8645
8646                          LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8647                          if test "x$LINE" != x ; then
8648                            eval "DEFAULT_$LINE"
8649                          else
8650                            no_cache=1
8651                          fi
8652
8653                          wx_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8654
8655fi;
8656
8657          eval "$wx_cv_use_choicebook"
8658          if test "$no_cache" != 1; then
8659            echo $wx_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8660          fi
8661
8662          if test "$wxUSE_CHOICEBOOK" = yes; then
8663            echo "$as_me:$LINENO: result: yes" >&5
8664echo "${ECHO_T}yes" >&6
8665          else
8666            echo "$as_me:$LINENO: result: no" >&5
8667echo "${ECHO_T}no" >&6
8668          fi
8669
8670
8671          enablestring=
8672          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
8673echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6
8674          no_cache=0
8675          # Check whether --enable-collpane or --disable-collpane was given.
8676if test "${enable_collpane+set}" = set; then
8677  enableval="$enable_collpane"
8678
8679                          if test "$enableval" = yes; then
8680                            wx_cv_use_collpane='wxUSE_COLLPANE=yes'
8681                          else
8682                            wx_cv_use_collpane='wxUSE_COLLPANE=no'
8683                          fi
8684
8685else
8686
8687                          LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
8688                          if test "x$LINE" != x ; then
8689                            eval "DEFAULT_$LINE"
8690                          else
8691                            no_cache=1
8692                          fi
8693
8694                          wx_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
8695
8696fi;
8697
8698          eval "$wx_cv_use_collpane"
8699          if test "$no_cache" != 1; then
8700            echo $wx_cv_use_collpane >> ${wx_arg_cache_file}.tmp
8701          fi
8702
8703          if test "$wxUSE_COLLPANE" = yes; then
8704            echo "$as_me:$LINENO: result: yes" >&5
8705echo "${ECHO_T}yes" >&6
8706          else
8707            echo "$as_me:$LINENO: result: no" >&5
8708echo "${ECHO_T}no" >&6
8709          fi
8710
8711
8712          enablestring=
8713          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8714echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8715          no_cache=0
8716          # Check whether --enable-colourpicker or --disable-colourpicker was given.
8717if test "${enable_colourpicker+set}" = set; then
8718  enableval="$enable_colourpicker"
8719
8720                          if test "$enableval" = yes; then
8721                            wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8722                          else
8723                            wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8724                          fi
8725
8726else
8727
8728                          LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8729                          if test "x$LINE" != x ; then
8730                            eval "DEFAULT_$LINE"
8731                          else
8732                            no_cache=1
8733                          fi
8734
8735                          wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8736
8737fi;
8738
8739          eval "$wx_cv_use_colourpicker"
8740          if test "$no_cache" != 1; then
8741            echo $wx_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8742          fi
8743
8744          if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8745            echo "$as_me:$LINENO: result: yes" >&5
8746echo "${ECHO_T}yes" >&6
8747          else
8748            echo "$as_me:$LINENO: result: no" >&5
8749echo "${ECHO_T}no" >&6
8750          fi
8751
8752
8753          enablestring=
8754          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8755echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8756          no_cache=0
8757          # Check whether --enable-combobox or --disable-combobox was given.
8758if test "${enable_combobox+set}" = set; then
8759  enableval="$enable_combobox"
8760
8761                          if test "$enableval" = yes; then
8762                            wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
8763                          else
8764                            wx_cv_use_combobox='wxUSE_COMBOBOX=no'
8765                          fi
8766
8767else
8768
8769                          LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8770                          if test "x$LINE" != x ; then
8771                            eval "DEFAULT_$LINE"
8772                          else
8773                            no_cache=1
8774                          fi
8775
8776                          wx_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8777
8778fi;
8779
8780          eval "$wx_cv_use_combobox"
8781          if test "$no_cache" != 1; then
8782            echo $wx_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8783          fi
8784
8785          if test "$wxUSE_COMBOBOX" = yes; then
8786            echo "$as_me:$LINENO: result: yes" >&5
8787echo "${ECHO_T}yes" >&6
8788          else
8789            echo "$as_me:$LINENO: result: no" >&5
8790echo "${ECHO_T}no" >&6
8791          fi
8792
8793
8794          enablestring=
8795          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8796echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8797          no_cache=0
8798          # Check whether --enable-comboctrl or --disable-comboctrl was given.
8799if test "${enable_comboctrl+set}" = set; then
8800  enableval="$enable_comboctrl"
8801
8802                          if test "$enableval" = yes; then
8803                            wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8804                          else
8805                            wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8806                          fi
8807
8808else
8809
8810                          LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8811                          if test "x$LINE" != x ; then
8812                            eval "DEFAULT_$LINE"
8813                          else
8814                            no_cache=1
8815                          fi
8816
8817                          wx_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8818
8819fi;
8820
8821          eval "$wx_cv_use_comboctrl"
8822          if test "$no_cache" != 1; then
8823            echo $wx_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8824          fi
8825
8826          if test "$wxUSE_COMBOCTRL" = yes; then
8827            echo "$as_me:$LINENO: result: yes" >&5
8828echo "${ECHO_T}yes" >&6
8829          else
8830            echo "$as_me:$LINENO: result: no" >&5
8831echo "${ECHO_T}no" >&6
8832          fi
8833
8834
8835          enablestring=
8836          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8837echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8838          no_cache=0
8839          # Check whether --enable-datepick or --disable-datepick was given.
8840if test "${enable_datepick+set}" = set; then
8841  enableval="$enable_datepick"
8842
8843                          if test "$enableval" = yes; then
8844                            wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8845                          else
8846                            wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8847                          fi
8848
8849else
8850
8851                          LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8852                          if test "x$LINE" != x ; then
8853                            eval "DEFAULT_$LINE"
8854                          else
8855                            no_cache=1
8856                          fi
8857
8858                          wx_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8859
8860fi;
8861
8862          eval "$wx_cv_use_datepick"
8863          if test "$no_cache" != 1; then
8864            echo $wx_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8865          fi
8866
8867          if test "$wxUSE_DATEPICKCTRL" = yes; then
8868            echo "$as_me:$LINENO: result: yes" >&5
8869echo "${ECHO_T}yes" >&6
8870          else
8871            echo "$as_me:$LINENO: result: no" >&5
8872echo "${ECHO_T}no" >&6
8873          fi
8874
8875
8876          enablestring=
8877          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8878echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8879          no_cache=0
8880          # Check whether --enable-dirpicker or --disable-dirpicker was given.
8881if test "${enable_dirpicker+set}" = set; then
8882  enableval="$enable_dirpicker"
8883
8884                          if test "$enableval" = yes; then
8885                            wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8886                          else
8887                            wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8888                          fi
8889
8890else
8891
8892                          LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8893                          if test "x$LINE" != x ; then
8894                            eval "DEFAULT_$LINE"
8895                          else
8896                            no_cache=1
8897                          fi
8898
8899                          wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8900
8901fi;
8902
8903          eval "$wx_cv_use_dirpicker"
8904          if test "$no_cache" != 1; then
8905            echo $wx_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8906          fi
8907
8908          if test "$wxUSE_DIRPICKERCTRL" = yes; then
8909            echo "$as_me:$LINENO: result: yes" >&5
8910echo "${ECHO_T}yes" >&6
8911          else
8912            echo "$as_me:$LINENO: result: no" >&5
8913echo "${ECHO_T}no" >&6
8914          fi
8915
8916
8917          enablestring=
8918          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8919echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8920          no_cache=0
8921          # Check whether --enable-display or --disable-display was given.
8922if test "${enable_display+set}" = set; then
8923  enableval="$enable_display"
8924
8925                          if test "$enableval" = yes; then
8926                            wx_cv_use_display='wxUSE_DISPLAY=yes'
8927                          else
8928                            wx_cv_use_display='wxUSE_DISPLAY=no'
8929                          fi
8930
8931else
8932
8933                          LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8934                          if test "x$LINE" != x ; then
8935                            eval "DEFAULT_$LINE"
8936                          else
8937                            no_cache=1
8938                          fi
8939
8940                          wx_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8941
8942fi;
8943
8944          eval "$wx_cv_use_display"
8945          if test "$no_cache" != 1; then
8946            echo $wx_cv_use_display >> ${wx_arg_cache_file}.tmp
8947          fi
8948
8949          if test "$wxUSE_DISPLAY" = yes; then
8950            echo "$as_me:$LINENO: result: yes" >&5
8951echo "${ECHO_T}yes" >&6
8952          else
8953            echo "$as_me:$LINENO: result: no" >&5
8954echo "${ECHO_T}no" >&6
8955          fi
8956
8957
8958          enablestring=
8959          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8960echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8961          no_cache=0
8962          # Check whether --enable-detect_sm or --disable-detect_sm was given.
8963if test "${enable_detect_sm+set}" = set; then
8964  enableval="$enable_detect_sm"
8965
8966                          if test "$enableval" = yes; then
8967                            wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8968                          else
8969                            wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8970                          fi
8971
8972else
8973
8974                          LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8975                          if test "x$LINE" != x ; then
8976                            eval "DEFAULT_$LINE"
8977                          else
8978                            no_cache=1
8979                          fi
8980
8981                          wx_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8982
8983fi;
8984
8985          eval "$wx_cv_use_detect_sm"
8986          if test "$no_cache" != 1; then
8987            echo $wx_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8988          fi
8989
8990          if test "$wxUSE_DETECT_SM" = yes; then
8991            echo "$as_me:$LINENO: result: yes" >&5
8992echo "${ECHO_T}yes" >&6
8993          else
8994            echo "$as_me:$LINENO: result: no" >&5
8995echo "${ECHO_T}no" >&6
8996          fi
8997
8998
8999          enablestring=
9000          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
9001echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
9002          no_cache=0
9003          # Check whether --enable-filepicker or --disable-filepicker was given.
9004if test "${enable_filepicker+set}" = set; then
9005  enableval="$enable_filepicker"
9006
9007                          if test "$enableval" = yes; then
9008                            wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
9009                          else
9010                            wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
9011                          fi
9012
9013else
9014
9015                          LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
9016                          if test "x$LINE" != x ; then
9017                            eval "DEFAULT_$LINE"
9018                          else
9019                            no_cache=1
9020                          fi
9021
9022                          wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
9023
9024fi;
9025
9026          eval "$wx_cv_use_filepicker"
9027          if test "$no_cache" != 1; then
9028            echo $wx_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
9029          fi
9030
9031          if test "$wxUSE_FILEPICKERCTRL" = yes; then
9032            echo "$as_me:$LINENO: result: yes" >&5
9033echo "${ECHO_T}yes" >&6
9034          else
9035            echo "$as_me:$LINENO: result: no" >&5
9036echo "${ECHO_T}no" >&6
9037          fi
9038
9039
9040          enablestring=
9041          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
9042echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
9043          no_cache=0
9044          # Check whether --enable-fontpicker or --disable-fontpicker was given.
9045if test "${enable_fontpicker+set}" = set; then
9046  enableval="$enable_fontpicker"
9047
9048                          if test "$enableval" = yes; then
9049                            wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
9050                          else
9051                            wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
9052                          fi
9053
9054else
9055
9056                          LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
9057                          if test "x$LINE" != x ; then
9058                            eval "DEFAULT_$LINE"
9059                          else
9060                            no_cache=1
9061                          fi
9062
9063                          wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
9064
9065fi;
9066
9067          eval "$wx_cv_use_fontpicker"
9068          if test "$no_cache" != 1; then
9069            echo $wx_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
9070          fi
9071
9072          if test "$wxUSE_FONTPICKERCTRL" = yes; then
9073            echo "$as_me:$LINENO: result: yes" >&5
9074echo "${ECHO_T}yes" >&6
9075          else
9076            echo "$as_me:$LINENO: result: no" >&5
9077echo "${ECHO_T}no" >&6
9078          fi
9079
9080
9081          enablestring=
9082          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
9083echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
9084          no_cache=0
9085          # Check whether --enable-gauge or --disable-gauge was given.
9086if test "${enable_gauge+set}" = set; then
9087  enableval="$enable_gauge"
9088
9089                          if test "$enableval" = yes; then
9090                            wx_cv_use_gauge='wxUSE_GAUGE=yes'
9091                          else
9092                            wx_cv_use_gauge='wxUSE_GAUGE=no'
9093                          fi
9094
9095else
9096
9097                          LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
9098                          if test "x$LINE" != x ; then
9099                            eval "DEFAULT_$LINE"
9100                          else
9101                            no_cache=1
9102                          fi
9103
9104                          wx_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
9105
9106fi;
9107
9108          eval "$wx_cv_use_gauge"
9109          if test "$no_cache" != 1; then
9110            echo $wx_cv_use_gauge >> ${wx_arg_cache_file}.tmp
9111          fi
9112
9113          if test "$wxUSE_GAUGE" = yes; then
9114            echo "$as_me:$LINENO: result: yes" >&5
9115echo "${ECHO_T}yes" >&6
9116          else
9117            echo "$as_me:$LINENO: result: no" >&5
9118echo "${ECHO_T}no" >&6
9119          fi
9120
9121
9122          enablestring=
9123          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
9124echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
9125          no_cache=0
9126          # Check whether --enable-grid or --disable-grid was given.
9127if test "${enable_grid+set}" = set; then
9128  enableval="$enable_grid"
9129
9130                          if test "$enableval" = yes; then
9131                            wx_cv_use_grid='wxUSE_GRID=yes'
9132                          else
9133                            wx_cv_use_grid='wxUSE_GRID=no'
9134                          fi
9135
9136else
9137
9138                          LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
9139                          if test "x$LINE" != x ; then
9140                            eval "DEFAULT_$LINE"
9141                          else
9142                            no_cache=1
9143                          fi
9144
9145                          wx_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
9146
9147fi;
9148
9149          eval "$wx_cv_use_grid"
9150          if test "$no_cache" != 1; then
9151            echo $wx_cv_use_grid >> ${wx_arg_cache_file}.tmp
9152          fi
9153
9154          if test "$wxUSE_GRID" = yes; then
9155            echo "$as_me:$LINENO: result: yes" >&5
9156echo "${ECHO_T}yes" >&6
9157          else
9158            echo "$as_me:$LINENO: result: no" >&5
9159echo "${ECHO_T}no" >&6
9160          fi
9161
9162
9163          enablestring=
9164          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
9165echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
9166          no_cache=0
9167          # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
9168if test "${enable_dataviewctrl+set}" = set; then
9169  enableval="$enable_dataviewctrl"
9170
9171                          if test "$enableval" = yes; then
9172                            wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
9173                          else
9174                            wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
9175                          fi
9176
9177else
9178
9179                          LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
9180                          if test "x$LINE" != x ; then
9181                            eval "DEFAULT_$LINE"
9182                          else
9183                            no_cache=1
9184                          fi
9185
9186                          wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
9187
9188fi;
9189
9190          eval "$wx_cv_use_dataviewctrl"
9191          if test "$no_cache" != 1; then
9192            echo $wx_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
9193          fi
9194
9195          if test "$wxUSE_DATAVIEWCTRL" = yes; then
9196            echo "$as_me:$LINENO: result: yes" >&5
9197echo "${ECHO_T}yes" >&6
9198          else
9199            echo "$as_me:$LINENO: result: no" >&5
9200echo "${ECHO_T}no" >&6
9201          fi
9202
9203
9204          enablestring=
9205          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9206echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
9207          no_cache=0
9208          # Check whether --enable-hyperlink or --disable-hyperlink was given.
9209if test "${enable_hyperlink+set}" = set; then
9210  enableval="$enable_hyperlink"
9211
9212                          if test "$enableval" = yes; then
9213                            wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9214                          else
9215                            wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9216                          fi
9217
9218else
9219
9220                          LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9221                          if test "x$LINE" != x ; then
9222                            eval "DEFAULT_$LINE"
9223                          else
9224                            no_cache=1
9225                          fi
9226
9227                          wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9228
9229fi;
9230
9231          eval "$wx_cv_use_hyperlink"
9232          if test "$no_cache" != 1; then
9233            echo $wx_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9234          fi
9235
9236          if test "$wxUSE_HYPERLINKCTRL" = yes; then
9237            echo "$as_me:$LINENO: result: yes" >&5
9238echo "${ECHO_T}yes" >&6
9239          else
9240            echo "$as_me:$LINENO: result: no" >&5
9241echo "${ECHO_T}no" >&6
9242          fi
9243
9244
9245          enablestring=
9246          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9247echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
9248          no_cache=0
9249          # Check whether --enable-imaglist or --disable-imaglist was given.
9250if test "${enable_imaglist+set}" = set; then
9251  enableval="$enable_imaglist"
9252
9253                          if test "$enableval" = yes; then
9254                            wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9255                          else
9256                            wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
9257                          fi
9258
9259else
9260
9261                          LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9262                          if test "x$LINE" != x ; then
9263                            eval "DEFAULT_$LINE"
9264                          else
9265                            no_cache=1
9266                          fi
9267
9268                          wx_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9269
9270fi;
9271
9272          eval "$wx_cv_use_imaglist"
9273          if test "$no_cache" != 1; then
9274            echo $wx_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9275          fi
9276
9277          if test "$wxUSE_IMAGLIST" = yes; then
9278            echo "$as_me:$LINENO: result: yes" >&5
9279echo "${ECHO_T}yes" >&6
9280          else
9281            echo "$as_me:$LINENO: result: no" >&5
9282echo "${ECHO_T}no" >&6
9283          fi
9284
9285
9286          enablestring=
9287          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9288echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
9289          no_cache=0
9290          # Check whether --enable-listbook or --disable-listbook was given.
9291if test "${enable_listbook+set}" = set; then
9292  enableval="$enable_listbook"
9293
9294                          if test "$enableval" = yes; then
9295                            wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
9296                          else
9297                            wx_cv_use_listbook='wxUSE_LISTBOOK=no'
9298                          fi
9299
9300else
9301
9302                          LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9303                          if test "x$LINE" != x ; then
9304                            eval "DEFAULT_$LINE"
9305                          else
9306                            no_cache=1
9307                          fi
9308
9309                          wx_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9310
9311fi;
9312
9313          eval "$wx_cv_use_listbook"
9314          if test "$no_cache" != 1; then
9315            echo $wx_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9316          fi
9317
9318          if test "$wxUSE_LISTBOOK" = yes; then
9319            echo "$as_me:$LINENO: result: yes" >&5
9320echo "${ECHO_T}yes" >&6
9321          else
9322            echo "$as_me:$LINENO: result: no" >&5
9323echo "${ECHO_T}no" >&6
9324          fi
9325
9326
9327          enablestring=
9328          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9329echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9330          no_cache=0
9331          # Check whether --enable-listbox or --disable-listbox was given.
9332if test "${enable_listbox+set}" = set; then
9333  enableval="$enable_listbox"
9334
9335                          if test "$enableval" = yes; then
9336                            wx_cv_use_listbox='wxUSE_LISTBOX=yes'
9337                          else
9338                            wx_cv_use_listbox='wxUSE_LISTBOX=no'
9339                          fi
9340
9341else
9342
9343                          LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9344                          if test "x$LINE" != x ; then
9345                            eval "DEFAULT_$LINE"
9346                          else
9347                            no_cache=1
9348                          fi
9349
9350                          wx_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9351
9352fi;
9353
9354          eval "$wx_cv_use_listbox"
9355          if test "$no_cache" != 1; then
9356            echo $wx_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9357          fi
9358
9359          if test "$wxUSE_LISTBOX" = yes; then
9360            echo "$as_me:$LINENO: result: yes" >&5
9361echo "${ECHO_T}yes" >&6
9362          else
9363            echo "$as_me:$LINENO: result: no" >&5
9364echo "${ECHO_T}no" >&6
9365          fi
9366
9367
9368          enablestring=
9369          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9370echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9371          no_cache=0
9372          # Check whether --enable-listctrl or --disable-listctrl was given.
9373if test "${enable_listctrl+set}" = set; then
9374  enableval="$enable_listctrl"
9375
9376                          if test "$enableval" = yes; then
9377                            wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9378                          else
9379                            wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
9380                          fi
9381
9382else
9383
9384                          LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9385                          if test "x$LINE" != x ; then
9386                            eval "DEFAULT_$LINE"
9387                          else
9388                            no_cache=1
9389                          fi
9390
9391                          wx_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9392
9393fi;
9394
9395          eval "$wx_cv_use_listctrl"
9396          if test "$no_cache" != 1; then
9397            echo $wx_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9398          fi
9399
9400          if test "$wxUSE_LISTCTRL" = yes; then
9401            echo "$as_me:$LINENO: result: yes" >&5
9402echo "${ECHO_T}yes" >&6
9403          else
9404            echo "$as_me:$LINENO: result: no" >&5
9405echo "${ECHO_T}no" >&6
9406          fi
9407
9408
9409          enablestring=
9410          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9411echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9412          no_cache=0
9413          # Check whether --enable-notebook or --disable-notebook was given.
9414if test "${enable_notebook+set}" = set; then
9415  enableval="$enable_notebook"
9416
9417                          if test "$enableval" = yes; then
9418                            wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9419                          else
9420                            wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
9421                          fi
9422
9423else
9424
9425                          LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9426                          if test "x$LINE" != x ; then
9427                            eval "DEFAULT_$LINE"
9428                          else
9429                            no_cache=1
9430                          fi
9431
9432                          wx_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9433
9434fi;
9435
9436          eval "$wx_cv_use_notebook"
9437          if test "$no_cache" != 1; then
9438            echo $wx_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9439          fi
9440
9441          if test "$wxUSE_NOTEBOOK" = yes; then
9442            echo "$as_me:$LINENO: result: yes" >&5
9443echo "${ECHO_T}yes" >&6
9444          else
9445            echo "$as_me:$LINENO: result: no" >&5
9446echo "${ECHO_T}no" >&6
9447          fi
9448
9449
9450          enablestring=
9451          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9452echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
9453          no_cache=0
9454          # Check whether --enable-odcombobox or --disable-odcombobox was given.
9455if test "${enable_odcombobox+set}" = set; then
9456  enableval="$enable_odcombobox"
9457
9458                          if test "$enableval" = yes; then
9459                            wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
9460                          else
9461                            wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
9462                          fi
9463
9464else
9465
9466                          LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
9467                          if test "x$LINE" != x ; then
9468                            eval "DEFAULT_$LINE"
9469                          else
9470                            no_cache=1
9471                          fi
9472
9473                          wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
9474
9475fi;
9476
9477          eval "$wx_cv_use_odcombobox"
9478          if test "$no_cache" != 1; then
9479            echo $wx_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
9480          fi
9481
9482          if test "$wxUSE_ODCOMBOBOX" = yes; then
9483            echo "$as_me:$LINENO: result: yes" >&5
9484echo "${ECHO_T}yes" >&6
9485          else
9486            echo "$as_me:$LINENO: result: no" >&5
9487echo "${ECHO_T}no" >&6
9488          fi
9489
9490
9491          enablestring=
9492          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9493echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9494          no_cache=0
9495          # Check whether --enable-radiobox or --disable-radiobox was given.
9496if test "${enable_radiobox+set}" = set; then
9497  enableval="$enable_radiobox"
9498
9499                          if test "$enableval" = yes; then
9500                            wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9501                          else
9502                            wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
9503                          fi
9504
9505else
9506
9507                          LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9508                          if test "x$LINE" != x ; then
9509                            eval "DEFAULT_$LINE"
9510                          else
9511                            no_cache=1
9512                          fi
9513
9514                          wx_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9515
9516fi;
9517
9518          eval "$wx_cv_use_radiobox"
9519          if test "$no_cache" != 1; then
9520            echo $wx_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9521          fi
9522
9523          if test "$wxUSE_RADIOBOX" = yes; then
9524            echo "$as_me:$LINENO: result: yes" >&5
9525echo "${ECHO_T}yes" >&6
9526          else
9527            echo "$as_me:$LINENO: result: no" >&5
9528echo "${ECHO_T}no" >&6
9529          fi
9530
9531
9532          enablestring=
9533          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9534echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9535          no_cache=0
9536          # Check whether --enable-radiobtn or --disable-radiobtn was given.
9537if test "${enable_radiobtn+set}" = set; then
9538  enableval="$enable_radiobtn"
9539
9540                          if test "$enableval" = yes; then
9541                            wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9542                          else
9543                            wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9544                          fi
9545
9546else
9547
9548                          LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9549                          if test "x$LINE" != x ; then
9550                            eval "DEFAULT_$LINE"
9551                          else
9552                            no_cache=1
9553                          fi
9554
9555                          wx_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9556
9557fi;
9558
9559          eval "$wx_cv_use_radiobtn"
9560          if test "$no_cache" != 1; then
9561            echo $wx_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9562          fi
9563
9564          if test "$wxUSE_RADIOBTN" = yes; then
9565            echo "$as_me:$LINENO: result: yes" >&5
9566echo "${ECHO_T}yes" >&6
9567          else
9568            echo "$as_me:$LINENO: result: no" >&5
9569echo "${ECHO_T}no" >&6
9570          fi
9571
9572
9573          enablestring=
9574          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9575echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9576          no_cache=0
9577          # Check whether --enable-sash or --disable-sash was given.
9578if test "${enable_sash+set}" = set; then
9579  enableval="$enable_sash"
9580
9581                          if test "$enableval" = yes; then
9582                            wx_cv_use_sash='wxUSE_SASH=yes'
9583                          else
9584                            wx_cv_use_sash='wxUSE_SASH=no'
9585                          fi
9586
9587else
9588
9589                          LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9590                          if test "x$LINE" != x ; then
9591                            eval "DEFAULT_$LINE"
9592                          else
9593                            no_cache=1
9594                          fi
9595
9596                          wx_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9597
9598fi;
9599
9600          eval "$wx_cv_use_sash"
9601          if test "$no_cache" != 1; then
9602            echo $wx_cv_use_sash >> ${wx_arg_cache_file}.tmp
9603          fi
9604
9605          if test "$wxUSE_SASH" = yes; then
9606            echo "$as_me:$LINENO: result: yes" >&5
9607echo "${ECHO_T}yes" >&6
9608          else
9609            echo "$as_me:$LINENO: result: no" >&5
9610echo "${ECHO_T}no" >&6
9611          fi
9612
9613
9614          enablestring=
9615          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9616echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9617          no_cache=0
9618          # Check whether --enable-scrollbar or --disable-scrollbar was given.
9619if test "${enable_scrollbar+set}" = set; then
9620  enableval="$enable_scrollbar"
9621
9622                          if test "$enableval" = yes; then
9623                            wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9624                          else
9625                            wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9626                          fi
9627
9628else
9629
9630                          LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9631                          if test "x$LINE" != x ; then
9632                            eval "DEFAULT_$LINE"
9633                          else
9634                            no_cache=1
9635                          fi
9636
9637                          wx_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9638
9639fi;
9640
9641          eval "$wx_cv_use_scrollbar"
9642          if test "$no_cache" != 1; then
9643            echo $wx_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9644          fi
9645
9646          if test "$wxUSE_SCROLLBAR" = yes; then
9647            echo "$as_me:$LINENO: result: yes" >&5
9648echo "${ECHO_T}yes" >&6
9649          else
9650            echo "$as_me:$LINENO: result: no" >&5
9651echo "${ECHO_T}no" >&6
9652          fi
9653
9654
9655          enablestring=
9656          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
9657echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6
9658          no_cache=0
9659          # Check whether --enable-searchctrl or --disable-searchctrl was given.
9660if test "${enable_searchctrl+set}" = set; then
9661  enableval="$enable_searchctrl"
9662
9663                          if test "$enableval" = yes; then
9664                            wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
9665                          else
9666                            wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
9667                          fi
9668
9669else
9670
9671                          LINE=`grep "wxUSE_SEARCHCTRL" ${wx_arg_cache_file}`
9672                          if test "x$LINE" != x ; then
9673                            eval "DEFAULT_$LINE"
9674                          else
9675                            no_cache=1
9676                          fi
9677
9678                          wx_cv_use_searchctrl='wxUSE_SEARCHCTRL='$DEFAULT_wxUSE_SEARCHCTRL
9679
9680fi;
9681
9682          eval "$wx_cv_use_searchctrl"
9683          if test "$no_cache" != 1; then
9684            echo $wx_cv_use_searchctrl >> ${wx_arg_cache_file}.tmp
9685          fi
9686
9687          if test "$wxUSE_SEARCHCTRL" = yes; then
9688            echo "$as_me:$LINENO: result: yes" >&5
9689echo "${ECHO_T}yes" >&6
9690          else
9691            echo "$as_me:$LINENO: result: no" >&5
9692echo "${ECHO_T}no" >&6
9693          fi
9694
9695
9696          enablestring=
9697          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9698echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9699          no_cache=0
9700          # Check whether --enable-slider or --disable-slider was given.
9701if test "${enable_slider+set}" = set; then
9702  enableval="$enable_slider"
9703
9704                          if test "$enableval" = yes; then
9705                            wx_cv_use_slider='wxUSE_SLIDER=yes'
9706                          else
9707                            wx_cv_use_slider='wxUSE_SLIDER=no'
9708                          fi
9709
9710else
9711
9712                          LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9713                          if test "x$LINE" != x ; then
9714                            eval "DEFAULT_$LINE"
9715                          else
9716                            no_cache=1
9717                          fi
9718
9719                          wx_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9720
9721fi;
9722
9723          eval "$wx_cv_use_slider"
9724          if test "$no_cache" != 1; then
9725            echo $wx_cv_use_slider >> ${wx_arg_cache_file}.tmp
9726          fi
9727
9728          if test "$wxUSE_SLIDER" = yes; then
9729            echo "$as_me:$LINENO: result: yes" >&5
9730echo "${ECHO_T}yes" >&6
9731          else
9732            echo "$as_me:$LINENO: result: no" >&5
9733echo "${ECHO_T}no" >&6
9734          fi
9735
9736
9737          enablestring=
9738          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9739echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9740          no_cache=0
9741          # Check whether --enable-spinbtn or --disable-spinbtn was given.
9742if test "${enable_spinbtn+set}" = set; then
9743  enableval="$enable_spinbtn"
9744
9745                          if test "$enableval" = yes; then
9746                            wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9747                          else
9748                            wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
9749                          fi
9750
9751else
9752
9753                          LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9754                          if test "x$LINE" != x ; then
9755                            eval "DEFAULT_$LINE"
9756                          else
9757                            no_cache=1
9758                          fi
9759
9760                          wx_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9761
9762fi;
9763
9764          eval "$wx_cv_use_spinbtn"
9765          if test "$no_cache" != 1; then
9766            echo $wx_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9767          fi
9768
9769          if test "$wxUSE_SPINBTN" = yes; then
9770            echo "$as_me:$LINENO: result: yes" >&5
9771echo "${ECHO_T}yes" >&6
9772          else
9773            echo "$as_me:$LINENO: result: no" >&5
9774echo "${ECHO_T}no" >&6
9775          fi
9776
9777
9778          enablestring=
9779          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9780echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9781          no_cache=0
9782          # Check whether --enable-spinctrl or --disable-spinctrl was given.
9783if test "${enable_spinctrl+set}" = set; then
9784  enableval="$enable_spinctrl"
9785
9786                          if test "$enableval" = yes; then
9787                            wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9788                          else
9789                            wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9790                          fi
9791
9792else
9793
9794                          LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9795                          if test "x$LINE" != x ; then
9796                            eval "DEFAULT_$LINE"
9797                          else
9798                            no_cache=1
9799                          fi
9800
9801                          wx_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9802
9803fi;
9804
9805          eval "$wx_cv_use_spinctrl"
9806          if test "$no_cache" != 1; then
9807            echo $wx_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9808          fi
9809
9810          if test "$wxUSE_SPINCTRL" = yes; then
9811            echo "$as_me:$LINENO: result: yes" >&5
9812echo "${ECHO_T}yes" >&6
9813          else
9814            echo "$as_me:$LINENO: result: no" >&5
9815echo "${ECHO_T}no" >&6
9816          fi
9817
9818
9819          enablestring=
9820          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9821echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9822          no_cache=0
9823          # Check whether --enable-splitter or --disable-splitter was given.
9824if test "${enable_splitter+set}" = set; then
9825  enableval="$enable_splitter"
9826
9827                          if test "$enableval" = yes; then
9828                            wx_cv_use_splitter='wxUSE_SPLITTER=yes'
9829                          else
9830                            wx_cv_use_splitter='wxUSE_SPLITTER=no'
9831                          fi
9832
9833else
9834
9835                          LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9836                          if test "x$LINE" != x ; then
9837                            eval "DEFAULT_$LINE"
9838                          else
9839                            no_cache=1
9840                          fi
9841
9842                          wx_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9843
9844fi;
9845
9846          eval "$wx_cv_use_splitter"
9847          if test "$no_cache" != 1; then
9848            echo $wx_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9849          fi
9850
9851          if test "$wxUSE_SPLITTER" = yes; then
9852            echo "$as_me:$LINENO: result: yes" >&5
9853echo "${ECHO_T}yes" >&6
9854          else
9855            echo "$as_me:$LINENO: result: no" >&5
9856echo "${ECHO_T}no" >&6
9857          fi
9858
9859
9860          enablestring=
9861          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9862echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9863          no_cache=0
9864          # Check whether --enable-statbmp or --disable-statbmp was given.
9865if test "${enable_statbmp+set}" = set; then
9866  enableval="$enable_statbmp"
9867
9868                          if test "$enableval" = yes; then
9869                            wx_cv_use_statbmp='wxUSE_STATBMP=yes'
9870                          else
9871                            wx_cv_use_statbmp='wxUSE_STATBMP=no'
9872                          fi
9873
9874else
9875
9876                          LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9877                          if test "x$LINE" != x ; then
9878                            eval "DEFAULT_$LINE"
9879                          else
9880                            no_cache=1
9881                          fi
9882
9883                          wx_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9884
9885fi;
9886
9887          eval "$wx_cv_use_statbmp"
9888          if test "$no_cache" != 1; then
9889            echo $wx_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9890          fi
9891
9892          if test "$wxUSE_STATBMP" = yes; then
9893            echo "$as_me:$LINENO: result: yes" >&5
9894echo "${ECHO_T}yes" >&6
9895          else
9896            echo "$as_me:$LINENO: result: no" >&5
9897echo "${ECHO_T}no" >&6
9898          fi
9899
9900
9901          enablestring=
9902          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9903echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9904          no_cache=0
9905          # Check whether --enable-statbox or --disable-statbox was given.
9906if test "${enable_statbox+set}" = set; then
9907  enableval="$enable_statbox"
9908
9909                          if test "$enableval" = yes; then
9910                            wx_cv_use_statbox='wxUSE_STATBOX=yes'
9911                          else
9912                            wx_cv_use_statbox='wxUSE_STATBOX=no'
9913                          fi
9914
9915else
9916
9917                          LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9918                          if test "x$LINE" != x ; then
9919                            eval "DEFAULT_$LINE"
9920                          else
9921                            no_cache=1
9922                          fi
9923
9924                          wx_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9925
9926fi;
9927
9928          eval "$wx_cv_use_statbox"
9929          if test "$no_cache" != 1; then
9930            echo $wx_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9931          fi
9932
9933          if test "$wxUSE_STATBOX" = yes; then
9934            echo "$as_me:$LINENO: result: yes" >&5
9935echo "${ECHO_T}yes" >&6
9936          else
9937            echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6
9939          fi
9940
9941
9942          enablestring=
9943          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9944echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9945          no_cache=0
9946          # Check whether --enable-statline or --disable-statline was given.
9947if test "${enable_statline+set}" = set; then
9948  enableval="$enable_statline"
9949
9950                          if test "$enableval" = yes; then
9951                            wx_cv_use_statline='wxUSE_STATLINE=yes'
9952                          else
9953                            wx_cv_use_statline='wxUSE_STATLINE=no'
9954                          fi
9955
9956else
9957
9958                          LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9959                          if test "x$LINE" != x ; then
9960                            eval "DEFAULT_$LINE"
9961                          else
9962                            no_cache=1
9963                          fi
9964
9965                          wx_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9966
9967fi;
9968
9969          eval "$wx_cv_use_statline"
9970          if test "$no_cache" != 1; then
9971            echo $wx_cv_use_statline >> ${wx_arg_cache_file}.tmp
9972          fi
9973
9974          if test "$wxUSE_STATLINE" = yes; then
9975            echo "$as_me:$LINENO: result: yes" >&5
9976echo "${ECHO_T}yes" >&6
9977          else
9978            echo "$as_me:$LINENO: result: no" >&5
9979echo "${ECHO_T}no" >&6
9980          fi
9981
9982
9983          enablestring=
9984          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9985echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9986          no_cache=0
9987          # Check whether --enable-stattext or --disable-stattext was given.
9988if test "${enable_stattext+set}" = set; then
9989  enableval="$enable_stattext"
9990
9991                          if test "$enableval" = yes; then
9992                            wx_cv_use_stattext='wxUSE_STATTEXT=yes'
9993                          else
9994                            wx_cv_use_stattext='wxUSE_STATTEXT=no'
9995                          fi
9996
9997else
9998
9999                          LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
10000                          if test "x$LINE" != x ; then
10001                            eval "DEFAULT_$LINE"
10002                          else
10003                            no_cache=1
10004                          fi
10005
10006                          wx_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
10007
10008fi;
10009
10010          eval "$wx_cv_use_stattext"
10011          if test "$no_cache" != 1; then
10012            echo $wx_cv_use_stattext >> ${wx_arg_cache_file}.tmp
10013          fi
10014
10015          if test "$wxUSE_STATTEXT" = yes; then
10016            echo "$as_me:$LINENO: result: yes" >&5
10017echo "${ECHO_T}yes" >&6
10018          else
10019            echo "$as_me:$LINENO: result: no" >&5
10020echo "${ECHO_T}no" >&6
10021          fi
10022
10023
10024          enablestring=
10025          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
10026echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10027          no_cache=0
10028          # Check whether --enable-statusbar or --disable-statusbar was given.
10029if test "${enable_statusbar+set}" = set; then
10030  enableval="$enable_statusbar"
10031
10032                          if test "$enableval" = yes; then
10033                            wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
10034                          else
10035                            wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
10036                          fi
10037
10038else
10039
10040                          LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
10041                          if test "x$LINE" != x ; then
10042                            eval "DEFAULT_$LINE"
10043                          else
10044                            no_cache=1
10045                          fi
10046
10047                          wx_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10048
10049fi;
10050
10051          eval "$wx_cv_use_statusbar"
10052          if test "$no_cache" != 1; then
10053            echo $wx_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
10054          fi
10055
10056          if test "$wxUSE_STATUSBAR" = yes; then
10057            echo "$as_me:$LINENO: result: yes" >&5
10058echo "${ECHO_T}yes" >&6
10059          else
10060            echo "$as_me:$LINENO: result: no" >&5
10061echo "${ECHO_T}no" >&6
10062          fi
10063
10064
10065          enablestring=
10066          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
10067echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10068          no_cache=0
10069          # Check whether --enable-tabdialog or --disable-tabdialog was given.
10070if test "${enable_tabdialog+set}" = set; then
10071  enableval="$enable_tabdialog"
10072
10073                          if test "$enableval" = yes; then
10074                            wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
10075                          else
10076                            wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
10077                          fi
10078
10079else
10080
10081                          LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
10082                          if test "x$LINE" != x ; then
10083                            eval "DEFAULT_$LINE"
10084                          else
10085                            no_cache=1
10086                          fi
10087
10088                          wx_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
10089
10090fi;
10091
10092          eval "$wx_cv_use_tabdialog"
10093          if test "$no_cache" != 1; then
10094            echo $wx_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
10095          fi
10096
10097          if test "$wxUSE_TAB_DIALOG" = yes; then
10098            echo "$as_me:$LINENO: result: yes" >&5
10099echo "${ECHO_T}yes" >&6
10100          else
10101            echo "$as_me:$LINENO: result: no" >&5
10102echo "${ECHO_T}no" >&6
10103          fi
10104
10105
10106          enablestring=
10107          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
10108echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
10109          no_cache=0
10110          # Check whether --enable-textctrl or --disable-textctrl was given.
10111if test "${enable_textctrl+set}" = set; then
10112  enableval="$enable_textctrl"
10113
10114                          if test "$enableval" = yes; then
10115                            wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
10116                          else
10117                            wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
10118                          fi
10119
10120else
10121
10122                          LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
10123                          if test "x$LINE" != x ; then
10124                            eval "DEFAULT_$LINE"
10125                          else
10126                            no_cache=1
10127                          fi
10128
10129                          wx_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
10130
10131fi;
10132
10133          eval "$wx_cv_use_textctrl"
10134          if test "$no_cache" != 1; then
10135            echo $wx_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
10136          fi
10137
10138          if test "$wxUSE_TEXTCTRL" = yes; then
10139            echo "$as_me:$LINENO: result: yes" >&5
10140echo "${ECHO_T}yes" >&6
10141          else
10142            echo "$as_me:$LINENO: result: no" >&5
10143echo "${ECHO_T}no" >&6
10144          fi
10145
10146
10147          enablestring=
10148          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
10149echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
10150          no_cache=0
10151          # Check whether --enable-togglebtn or --disable-togglebtn was given.
10152if test "${enable_togglebtn+set}" = set; then
10153  enableval="$enable_togglebtn"
10154
10155                          if test "$enableval" = yes; then
10156                            wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
10157                          else
10158                            wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
10159                          fi
10160
10161else
10162
10163                          LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
10164                          if test "x$LINE" != x ; then
10165                            eval "DEFAULT_$LINE"
10166                          else
10167                            no_cache=1
10168                          fi
10169
10170                          wx_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
10171
10172fi;
10173
10174          eval "$wx_cv_use_togglebtn"
10175          if test "$no_cache" != 1; then
10176            echo $wx_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
10177          fi
10178
10179          if test "$wxUSE_TOGGLEBTN" = yes; then
10180            echo "$as_me:$LINENO: result: yes" >&5
10181echo "${ECHO_T}yes" >&6
10182          else
10183            echo "$as_me:$LINENO: result: no" >&5
10184echo "${ECHO_T}no" >&6
10185          fi
10186
10187
10188          enablestring=
10189          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
10190echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10191          no_cache=0
10192          # Check whether --enable-toolbar or --disable-toolbar was given.
10193if test "${enable_toolbar+set}" = set; then
10194  enableval="$enable_toolbar"
10195
10196                          if test "$enableval" = yes; then
10197                            wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
10198                          else
10199                            wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
10200                          fi
10201
10202else
10203
10204                          LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
10205                          if test "x$LINE" != x ; then
10206                            eval "DEFAULT_$LINE"
10207                          else
10208                            no_cache=1
10209                          fi
10210
10211                          wx_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10212
10213fi;
10214
10215          eval "$wx_cv_use_toolbar"
10216          if test "$no_cache" != 1; then
10217            echo $wx_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
10218          fi
10219
10220          if test "$wxUSE_TOOLBAR" = yes; then
10221            echo "$as_me:$LINENO: result: yes" >&5
10222echo "${ECHO_T}yes" >&6
10223          else
10224            echo "$as_me:$LINENO: result: no" >&5
10225echo "${ECHO_T}no" >&6
10226          fi
10227
10228
10229          enablestring=
10230          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
10231echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
10232          no_cache=0
10233          # Check whether --enable-tbarnative or --disable-tbarnative was given.
10234if test "${enable_tbarnative+set}" = set; then
10235  enableval="$enable_tbarnative"
10236
10237                          if test "$enableval" = yes; then
10238                            wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10239                          else
10240                            wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10241                          fi
10242
10243else
10244
10245                          LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10246                          if test "x$LINE" != x ; then
10247                            eval "DEFAULT_$LINE"
10248                          else
10249                            no_cache=1
10250                          fi
10251
10252                          wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10253
10254fi;
10255
10256          eval "$wx_cv_use_tbarnative"
10257          if test "$no_cache" != 1; then
10258            echo $wx_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10259          fi
10260
10261          if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10262            echo "$as_me:$LINENO: result: yes" >&5
10263echo "${ECHO_T}yes" >&6
10264          else
10265            echo "$as_me:$LINENO: result: no" >&5
10266echo "${ECHO_T}no" >&6
10267          fi
10268
10269
10270          enablestring=
10271          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10272echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
10273          no_cache=0
10274          # Check whether --enable-treebook or --disable-treebook was given.
10275if test "${enable_treebook+set}" = set; then
10276  enableval="$enable_treebook"
10277
10278                          if test "$enableval" = yes; then
10279                            wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
10280                          else
10281                            wx_cv_use_treebook='wxUSE_TREEBOOK=no'
10282                          fi
10283
10284else
10285
10286                          LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10287                          if test "x$LINE" != x ; then
10288                            eval "DEFAULT_$LINE"
10289                          else
10290                            no_cache=1
10291                          fi
10292
10293                          wx_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10294
10295fi;
10296
10297          eval "$wx_cv_use_treebook"
10298          if test "$no_cache" != 1; then
10299            echo $wx_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10300          fi
10301
10302          if test "$wxUSE_TREEBOOK" = yes; then
10303            echo "$as_me:$LINENO: result: yes" >&5
10304echo "${ECHO_T}yes" >&6
10305          else
10306            echo "$as_me:$LINENO: result: no" >&5
10307echo "${ECHO_T}no" >&6
10308          fi
10309
10310
10311          enablestring=
10312          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10313echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
10314          no_cache=0
10315          # Check whether --enable-toolbook or --disable-toolbook was given.
10316if test "${enable_toolbook+set}" = set; then
10317  enableval="$enable_toolbook"
10318
10319                          if test "$enableval" = yes; then
10320                            wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10321                          else
10322                            wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10323                          fi
10324
10325else
10326
10327                          LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10328                          if test "x$LINE" != x ; then
10329                            eval "DEFAULT_$LINE"
10330                          else
10331                            no_cache=1
10332                          fi
10333
10334                          wx_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10335
10336fi;
10337
10338          eval "$wx_cv_use_toolbook"
10339          if test "$no_cache" != 1; then
10340            echo $wx_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10341          fi
10342
10343          if test "$wxUSE_TOOLBOOK" = yes; then
10344            echo "$as_me:$LINENO: result: yes" >&5
10345echo "${ECHO_T}yes" >&6
10346          else
10347            echo "$as_me:$LINENO: result: no" >&5
10348echo "${ECHO_T}no" >&6
10349          fi
10350
10351
10352          enablestring=
10353          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10354echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10355          no_cache=0
10356          # Check whether --enable-treectrl or --disable-treectrl was given.
10357if test "${enable_treectrl+set}" = set; then
10358  enableval="$enable_treectrl"
10359
10360                          if test "$enableval" = yes; then
10361                            wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
10362                          else
10363                            wx_cv_use_treectrl='wxUSE_TREECTRL=no'
10364                          fi
10365
10366else
10367
10368                          LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10369                          if test "x$LINE" != x ; then
10370                            eval "DEFAULT_$LINE"
10371                          else
10372                            no_cache=1
10373                          fi
10374
10375                          wx_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10376
10377fi;
10378
10379          eval "$wx_cv_use_treectrl"
10380          if test "$no_cache" != 1; then
10381            echo $wx_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10382          fi
10383
10384          if test "$wxUSE_TREECTRL" = yes; then
10385            echo "$as_me:$LINENO: result: yes" >&5
10386echo "${ECHO_T}yes" >&6
10387          else
10388            echo "$as_me:$LINENO: result: no" >&5
10389echo "${ECHO_T}no" >&6
10390          fi
10391
10392
10393          enablestring=
10394          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10395echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10396          no_cache=0
10397          # Check whether --enable-tipwindow or --disable-tipwindow was given.
10398if test "${enable_tipwindow+set}" = set; then
10399  enableval="$enable_tipwindow"
10400
10401                          if test "$enableval" = yes; then
10402                            wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10403                          else
10404                            wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10405                          fi
10406
10407else
10408
10409                          LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10410                          if test "x$LINE" != x ; then
10411                            eval "DEFAULT_$LINE"
10412                          else
10413                            no_cache=1
10414                          fi
10415
10416                          wx_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10417
10418fi;
10419
10420          eval "$wx_cv_use_tipwindow"
10421          if test "$no_cache" != 1; then
10422            echo $wx_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10423          fi
10424
10425          if test "$wxUSE_TIPWINDOW" = yes; then
10426            echo "$as_me:$LINENO: result: yes" >&5
10427echo "${ECHO_T}yes" >&6
10428          else
10429            echo "$as_me:$LINENO: result: no" >&5
10430echo "${ECHO_T}no" >&6
10431          fi
10432
10433
10434          enablestring=
10435          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10436echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10437          no_cache=0
10438          # Check whether --enable-popupwin or --disable-popupwin was given.
10439if test "${enable_popupwin+set}" = set; then
10440  enableval="$enable_popupwin"
10441
10442                          if test "$enableval" = yes; then
10443                            wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10444                          else
10445                            wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
10446                          fi
10447
10448else
10449
10450                          LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10451                          if test "x$LINE" != x ; then
10452                            eval "DEFAULT_$LINE"
10453                          else
10454                            no_cache=1
10455                          fi
10456
10457                          wx_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10458
10459fi;
10460
10461          eval "$wx_cv_use_popupwin"
10462          if test "$no_cache" != 1; then
10463            echo $wx_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10464          fi
10465
10466          if test "$wxUSE_POPUPWIN" = yes; then
10467            echo "$as_me:$LINENO: result: yes" >&5
10468echo "${ECHO_T}yes" >&6
10469          else
10470            echo "$as_me:$LINENO: result: no" >&5
10471echo "${ECHO_T}no" >&6
10472          fi
10473
10474
10475
10476
10477          enablestring=
10478          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10479echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10480          no_cache=0
10481          # Check whether --enable-commondlg or --disable-commondlg was given.
10482if test "${enable_commondlg+set}" = set; then
10483  enableval="$enable_commondlg"
10484
10485                          if test "$enableval" = yes; then
10486                            wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10487                          else
10488                            wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10489                          fi
10490
10491else
10492
10493                          LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10494                          if test "x$LINE" != x ; then
10495                            eval "DEFAULT_$LINE"
10496                          else
10497                            no_cache=1
10498                          fi
10499
10500                          wx_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10501
10502fi;
10503
10504          eval "$wx_cv_use_commondlg"
10505          if test "$no_cache" != 1; then
10506            echo $wx_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10507          fi
10508
10509          if test "$wxUSE_COMMONDLGS" = yes; then
10510            echo "$as_me:$LINENO: result: yes" >&5
10511echo "${ECHO_T}yes" >&6
10512          else
10513            echo "$as_me:$LINENO: result: no" >&5
10514echo "${ECHO_T}no" >&6
10515          fi
10516
10517
10518          enablestring=
10519          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10520echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10521          no_cache=0
10522          # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10523if test "${enable_aboutdlg+set}" = set; then
10524  enableval="$enable_aboutdlg"
10525
10526                          if test "$enableval" = yes; then
10527                            wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10528                          else
10529                            wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10530                          fi
10531
10532else
10533
10534                          LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10535                          if test "x$LINE" != x ; then
10536                            eval "DEFAULT_$LINE"
10537                          else
10538                            no_cache=1
10539                          fi
10540
10541                          wx_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10542
10543fi;
10544
10545          eval "$wx_cv_use_aboutdlg"
10546          if test "$no_cache" != 1; then
10547            echo $wx_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10548          fi
10549
10550          if test "$wxUSE_ABOUTDLG" = yes; then
10551            echo "$as_me:$LINENO: result: yes" >&5
10552echo "${ECHO_T}yes" >&6
10553          else
10554            echo "$as_me:$LINENO: result: no" >&5
10555echo "${ECHO_T}no" >&6
10556          fi
10557
10558
10559          enablestring=
10560          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10561echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10562          no_cache=0
10563          # Check whether --enable-choicedlg or --disable-choicedlg was given.
10564if test "${enable_choicedlg+set}" = set; then
10565  enableval="$enable_choicedlg"
10566
10567                          if test "$enableval" = yes; then
10568                            wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10569                          else
10570                            wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10571                          fi
10572
10573else
10574
10575                          LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10576                          if test "x$LINE" != x ; then
10577                            eval "DEFAULT_$LINE"
10578                          else
10579                            no_cache=1
10580                          fi
10581
10582                          wx_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10583
10584fi;
10585
10586          eval "$wx_cv_use_choicedlg"
10587          if test "$no_cache" != 1; then
10588            echo $wx_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10589          fi
10590
10591          if test "$wxUSE_CHOICEDLG" = yes; then
10592            echo "$as_me:$LINENO: result: yes" >&5
10593echo "${ECHO_T}yes" >&6
10594          else
10595            echo "$as_me:$LINENO: result: no" >&5
10596echo "${ECHO_T}no" >&6
10597          fi
10598
10599
10600          enablestring=
10601          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10602echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10603          no_cache=0
10604          # Check whether --enable-coldlg or --disable-coldlg was given.
10605if test "${enable_coldlg+set}" = set; then
10606  enableval="$enable_coldlg"
10607
10608                          if test "$enableval" = yes; then
10609                            wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10610                          else
10611                            wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
10612                          fi
10613
10614else
10615
10616                          LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10617                          if test "x$LINE" != x ; then
10618                            eval "DEFAULT_$LINE"
10619                          else
10620                            no_cache=1
10621                          fi
10622
10623                          wx_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10624
10625fi;
10626
10627          eval "$wx_cv_use_coldlg"
10628          if test "$no_cache" != 1; then
10629            echo $wx_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10630          fi
10631
10632          if test "$wxUSE_COLOURDLG" = yes; then
10633            echo "$as_me:$LINENO: result: yes" >&5
10634echo "${ECHO_T}yes" >&6
10635          else
10636            echo "$as_me:$LINENO: result: no" >&5
10637echo "${ECHO_T}no" >&6
10638          fi
10639
10640
10641          enablestring=
10642          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10643echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10644          no_cache=0
10645          # Check whether --enable-filedlg or --disable-filedlg was given.
10646if test "${enable_filedlg+set}" = set; then
10647  enableval="$enable_filedlg"
10648
10649                          if test "$enableval" = yes; then
10650                            wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
10651                          else
10652                            wx_cv_use_filedlg='wxUSE_FILEDLG=no'
10653                          fi
10654
10655else
10656
10657                          LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10658                          if test "x$LINE" != x ; then
10659                            eval "DEFAULT_$LINE"
10660                          else
10661                            no_cache=1
10662                          fi
10663
10664                          wx_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10665
10666fi;
10667
10668          eval "$wx_cv_use_filedlg"
10669          if test "$no_cache" != 1; then
10670            echo $wx_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10671          fi
10672
10673          if test "$wxUSE_FILEDLG" = yes; then
10674            echo "$as_me:$LINENO: result: yes" >&5
10675echo "${ECHO_T}yes" >&6
10676          else
10677            echo "$as_me:$LINENO: result: no" >&5
10678echo "${ECHO_T}no" >&6
10679          fi
10680
10681
10682          enablestring=
10683          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10684echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10685          no_cache=0
10686          # Check whether --enable-finddlg or --disable-finddlg was given.
10687if test "${enable_finddlg+set}" = set; then
10688  enableval="$enable_finddlg"
10689
10690                          if test "$enableval" = yes; then
10691                            wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10692                          else
10693                            wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10694                          fi
10695
10696else
10697
10698                          LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10699                          if test "x$LINE" != x ; then
10700                            eval "DEFAULT_$LINE"
10701                          else
10702                            no_cache=1
10703                          fi
10704
10705                          wx_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10706
10707fi;
10708
10709          eval "$wx_cv_use_finddlg"
10710          if test "$no_cache" != 1; then
10711            echo $wx_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10712          fi
10713
10714          if test "$wxUSE_FINDREPLDLG" = yes; then
10715            echo "$as_me:$LINENO: result: yes" >&5
10716echo "${ECHO_T}yes" >&6
10717          else
10718            echo "$as_me:$LINENO: result: no" >&5
10719echo "${ECHO_T}no" >&6
10720          fi
10721
10722
10723          enablestring=
10724          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10725echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10726          no_cache=0
10727          # Check whether --enable-fontdlg or --disable-fontdlg was given.
10728if test "${enable_fontdlg+set}" = set; then
10729  enableval="$enable_fontdlg"
10730
10731                          if test "$enableval" = yes; then
10732                            wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10733                          else
10734                            wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
10735                          fi
10736
10737else
10738
10739                          LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10740                          if test "x$LINE" != x ; then
10741                            eval "DEFAULT_$LINE"
10742                          else
10743                            no_cache=1
10744                          fi
10745
10746                          wx_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10747
10748fi;
10749
10750          eval "$wx_cv_use_fontdlg"
10751          if test "$no_cache" != 1; then
10752            echo $wx_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10753          fi
10754
10755          if test "$wxUSE_FONTDLG" = yes; then
10756            echo "$as_me:$LINENO: result: yes" >&5
10757echo "${ECHO_T}yes" >&6
10758          else
10759            echo "$as_me:$LINENO: result: no" >&5
10760echo "${ECHO_T}no" >&6
10761          fi
10762
10763
10764          enablestring=
10765          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10766echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10767          no_cache=0
10768          # Check whether --enable-dirdlg or --disable-dirdlg was given.
10769if test "${enable_dirdlg+set}" = set; then
10770  enableval="$enable_dirdlg"
10771
10772                          if test "$enableval" = yes; then
10773                            wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10774                          else
10775                            wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
10776                          fi
10777
10778else
10779
10780                          LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10781                          if test "x$LINE" != x ; then
10782                            eval "DEFAULT_$LINE"
10783                          else
10784                            no_cache=1
10785                          fi
10786
10787                          wx_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10788
10789fi;
10790
10791          eval "$wx_cv_use_dirdlg"
10792          if test "$no_cache" != 1; then
10793            echo $wx_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10794          fi
10795
10796          if test "$wxUSE_DIRDLG" = yes; then
10797            echo "$as_me:$LINENO: result: yes" >&5
10798echo "${ECHO_T}yes" >&6
10799          else
10800            echo "$as_me:$LINENO: result: no" >&5
10801echo "${ECHO_T}no" >&6
10802          fi
10803
10804
10805          enablestring=
10806          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10807echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10808          no_cache=0
10809          # Check whether --enable-msgdlg or --disable-msgdlg was given.
10810if test "${enable_msgdlg+set}" = set; then
10811  enableval="$enable_msgdlg"
10812
10813                          if test "$enableval" = yes; then
10814                            wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10815                          else
10816                            wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
10817                          fi
10818
10819else
10820
10821                          LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10822                          if test "x$LINE" != x ; then
10823                            eval "DEFAULT_$LINE"
10824                          else
10825                            no_cache=1
10826                          fi
10827
10828                          wx_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10829
10830fi;
10831
10832          eval "$wx_cv_use_msgdlg"
10833          if test "$no_cache" != 1; then
10834            echo $wx_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10835          fi
10836
10837          if test "$wxUSE_MSGDLG" = yes; then
10838            echo "$as_me:$LINENO: result: yes" >&5
10839echo "${ECHO_T}yes" >&6
10840          else
10841            echo "$as_me:$LINENO: result: no" >&5
10842echo "${ECHO_T}no" >&6
10843          fi
10844
10845
10846          enablestring=
10847          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10848echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10849          no_cache=0
10850          # Check whether --enable-numberdlg or --disable-numberdlg was given.
10851if test "${enable_numberdlg+set}" = set; then
10852  enableval="$enable_numberdlg"
10853
10854                          if test "$enableval" = yes; then
10855                            wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10856                          else
10857                            wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10858                          fi
10859
10860else
10861
10862                          LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10863                          if test "x$LINE" != x ; then
10864                            eval "DEFAULT_$LINE"
10865                          else
10866                            no_cache=1
10867                          fi
10868
10869                          wx_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10870
10871fi;
10872
10873          eval "$wx_cv_use_numberdlg"
10874          if test "$no_cache" != 1; then
10875            echo $wx_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10876          fi
10877
10878          if test "$wxUSE_NUMBERDLG" = yes; then
10879            echo "$as_me:$LINENO: result: yes" >&5
10880echo "${ECHO_T}yes" >&6
10881          else
10882            echo "$as_me:$LINENO: result: no" >&5
10883echo "${ECHO_T}no" >&6
10884          fi
10885
10886
10887          enablestring=
10888          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10889echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10890          no_cache=0
10891          # Check whether --enable-splash or --disable-splash was given.
10892if test "${enable_splash+set}" = set; then
10893  enableval="$enable_splash"
10894
10895                          if test "$enableval" = yes; then
10896                            wx_cv_use_splash='wxUSE_SPLASH=yes'
10897                          else
10898                            wx_cv_use_splash='wxUSE_SPLASH=no'
10899                          fi
10900
10901else
10902
10903                          LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10904                          if test "x$LINE" != x ; then
10905                            eval "DEFAULT_$LINE"
10906                          else
10907                            no_cache=1
10908                          fi
10909
10910                          wx_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10911
10912fi;
10913
10914          eval "$wx_cv_use_splash"
10915          if test "$no_cache" != 1; then
10916            echo $wx_cv_use_splash >> ${wx_arg_cache_file}.tmp
10917          fi
10918
10919          if test "$wxUSE_SPLASH" = yes; then
10920            echo "$as_me:$LINENO: result: yes" >&5
10921echo "${ECHO_T}yes" >&6
10922          else
10923            echo "$as_me:$LINENO: result: no" >&5
10924echo "${ECHO_T}no" >&6
10925          fi
10926
10927
10928          enablestring=
10929          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10930echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10931          no_cache=0
10932          # Check whether --enable-textdlg or --disable-textdlg was given.
10933if test "${enable_textdlg+set}" = set; then
10934  enableval="$enable_textdlg"
10935
10936                          if test "$enableval" = yes; then
10937                            wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10938                          else
10939                            wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
10940                          fi
10941
10942else
10943
10944                          LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10945                          if test "x$LINE" != x ; then
10946                            eval "DEFAULT_$LINE"
10947                          else
10948                            no_cache=1
10949                          fi
10950
10951                          wx_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10952
10953fi;
10954
10955          eval "$wx_cv_use_textdlg"
10956          if test "$no_cache" != 1; then
10957            echo $wx_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10958          fi
10959
10960          if test "$wxUSE_TEXTDLG" = yes; then
10961            echo "$as_me:$LINENO: result: yes" >&5
10962echo "${ECHO_T}yes" >&6
10963          else
10964            echo "$as_me:$LINENO: result: no" >&5
10965echo "${ECHO_T}no" >&6
10966          fi
10967
10968
10969          enablestring=
10970          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10971echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10972          no_cache=0
10973          # Check whether --enable-tipdlg or --disable-tipdlg was given.
10974if test "${enable_tipdlg+set}" = set; then
10975  enableval="$enable_tipdlg"
10976
10977                          if test "$enableval" = yes; then
10978                            wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10979                          else
10980                            wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10981                          fi
10982
10983else
10984
10985                          LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10986                          if test "x$LINE" != x ; then
10987                            eval "DEFAULT_$LINE"
10988                          else
10989                            no_cache=1
10990                          fi
10991
10992                          wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10993
10994fi;
10995
10996          eval "$wx_cv_use_tipdlg"
10997          if test "$no_cache" != 1; then
10998            echo $wx_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10999          fi
11000
11001          if test "$wxUSE_STARTUP_TIPS" = yes; then
11002            echo "$as_me:$LINENO: result: yes" >&5
11003echo "${ECHO_T}yes" >&6
11004          else
11005            echo "$as_me:$LINENO: result: no" >&5
11006echo "${ECHO_T}no" >&6
11007          fi
11008
11009
11010          enablestring=
11011          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
11012echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
11013          no_cache=0
11014          # Check whether --enable-progressdlg or --disable-progressdlg was given.
11015if test "${enable_progressdlg+set}" = set; then
11016  enableval="$enable_progressdlg"
11017
11018                          if test "$enableval" = yes; then
11019                            wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
11020                          else
11021                            wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
11022                          fi
11023
11024else
11025
11026                          LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
11027                          if test "x$LINE" != x ; then
11028                            eval "DEFAULT_$LINE"
11029                          else
11030                            no_cache=1
11031                          fi
11032
11033                          wx_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
11034
11035fi;
11036
11037          eval "$wx_cv_use_progressdlg"
11038          if test "$no_cache" != 1; then
11039            echo $wx_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
11040          fi
11041
11042          if test "$wxUSE_PROGRESSDLG" = yes; then
11043            echo "$as_me:$LINENO: result: yes" >&5
11044echo "${ECHO_T}yes" >&6
11045          else
11046            echo "$as_me:$LINENO: result: no" >&5
11047echo "${ECHO_T}no" >&6
11048          fi
11049
11050
11051          enablestring=
11052          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
11053echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
11054          no_cache=0
11055          # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
11056if test "${enable_wizarddlg+set}" = set; then
11057  enableval="$enable_wizarddlg"
11058
11059                          if test "$enableval" = yes; then
11060                            wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
11061                          else
11062                            wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
11063                          fi
11064
11065else
11066
11067                          LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
11068                          if test "x$LINE" != x ; then
11069                            eval "DEFAULT_$LINE"
11070                          else
11071                            no_cache=1
11072                          fi
11073
11074                          wx_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
11075
11076fi;
11077
11078          eval "$wx_cv_use_wizarddlg"
11079          if test "$no_cache" != 1; then
11080            echo $wx_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
11081          fi
11082
11083          if test "$wxUSE_WIZARDDLG" = yes; then
11084            echo "$as_me:$LINENO: result: yes" >&5
11085echo "${ECHO_T}yes" >&6
11086          else
11087            echo "$as_me:$LINENO: result: no" >&5
11088echo "${ECHO_T}no" >&6
11089          fi
11090
11091
11092
11093
11094          enablestring=
11095          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
11096echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
11097          no_cache=0
11098          # Check whether --enable-menus or --disable-menus was given.
11099if test "${enable_menus+set}" = set; then
11100  enableval="$enable_menus"
11101
11102                          if test "$enableval" = yes; then
11103                            wx_cv_use_menus='wxUSE_MENUS=yes'
11104                          else
11105                            wx_cv_use_menus='wxUSE_MENUS=no'
11106                          fi
11107
11108else
11109
11110                          LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
11111                          if test "x$LINE" != x ; then
11112                            eval "DEFAULT_$LINE"
11113                          else
11114                            no_cache=1
11115                          fi
11116
11117                          wx_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
11118
11119fi;
11120
11121          eval "$wx_cv_use_menus"
11122          if test "$no_cache" != 1; then
11123            echo $wx_cv_use_menus >> ${wx_arg_cache_file}.tmp
11124          fi
11125
11126          if test "$wxUSE_MENUS" = yes; then
11127            echo "$as_me:$LINENO: result: yes" >&5
11128echo "${ECHO_T}yes" >&6
11129          else
11130            echo "$as_me:$LINENO: result: no" >&5
11131echo "${ECHO_T}no" >&6
11132          fi
11133
11134
11135          enablestring=
11136          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
11137echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
11138          no_cache=0
11139          # Check whether --enable-miniframe or --disable-miniframe was given.
11140if test "${enable_miniframe+set}" = set; then
11141  enableval="$enable_miniframe"
11142
11143                          if test "$enableval" = yes; then
11144                            wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
11145                          else
11146                            wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
11147                          fi
11148
11149else
11150
11151                          LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
11152                          if test "x$LINE" != x ; then
11153                            eval "DEFAULT_$LINE"
11154                          else
11155                            no_cache=1
11156                          fi
11157
11158                          wx_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
11159
11160fi;
11161
11162          eval "$wx_cv_use_miniframe"
11163          if test "$no_cache" != 1; then
11164            echo $wx_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
11165          fi
11166
11167          if test "$wxUSE_MINIFRAME" = yes; then
11168            echo "$as_me:$LINENO: result: yes" >&5
11169echo "${ECHO_T}yes" >&6
11170          else
11171            echo "$as_me:$LINENO: result: no" >&5
11172echo "${ECHO_T}no" >&6
11173          fi
11174
11175
11176          enablestring=
11177          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
11178echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
11179          no_cache=0
11180          # Check whether --enable-tooltips or --disable-tooltips was given.
11181if test "${enable_tooltips+set}" = set; then
11182  enableval="$enable_tooltips"
11183
11184                          if test "$enableval" = yes; then
11185                            wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
11186                          else
11187                            wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
11188                          fi
11189
11190else
11191
11192                          LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
11193                          if test "x$LINE" != x ; then
11194                            eval "DEFAULT_$LINE"
11195                          else
11196                            no_cache=1
11197                          fi
11198
11199                          wx_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
11200
11201fi;
11202
11203          eval "$wx_cv_use_tooltips"
11204          if test "$no_cache" != 1; then
11205            echo $wx_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
11206          fi
11207
11208          if test "$wxUSE_TOOLTIPS" = yes; then
11209            echo "$as_me:$LINENO: result: yes" >&5
11210echo "${ECHO_T}yes" >&6
11211          else
11212            echo "$as_me:$LINENO: result: no" >&5
11213echo "${ECHO_T}no" >&6
11214          fi
11215
11216
11217          enablestring=
11218          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
11219echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
11220          no_cache=0
11221          # Check whether --enable-splines or --disable-splines was given.
11222if test "${enable_splines+set}" = set; then
11223  enableval="$enable_splines"
11224
11225                          if test "$enableval" = yes; then
11226                            wx_cv_use_splines='wxUSE_SPLINES=yes'
11227                          else
11228                            wx_cv_use_splines='wxUSE_SPLINES=no'
11229                          fi
11230
11231else
11232
11233                          LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
11234                          if test "x$LINE" != x ; then
11235                            eval "DEFAULT_$LINE"
11236                          else
11237                            no_cache=1
11238                          fi
11239
11240                          wx_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11241
11242fi;
11243
11244          eval "$wx_cv_use_splines"
11245          if test "$no_cache" != 1; then
11246            echo $wx_cv_use_splines >> ${wx_arg_cache_file}.tmp
11247          fi
11248
11249          if test "$wxUSE_SPLINES" = yes; then
11250            echo "$as_me:$LINENO: result: yes" >&5
11251echo "${ECHO_T}yes" >&6
11252          else
11253            echo "$as_me:$LINENO: result: no" >&5
11254echo "${ECHO_T}no" >&6
11255          fi
11256
11257
11258          enablestring=
11259          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11260echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
11261          no_cache=0
11262          # Check whether --enable-mousewheel or --disable-mousewheel was given.
11263if test "${enable_mousewheel+set}" = set; then
11264  enableval="$enable_mousewheel"
11265
11266                          if test "$enableval" = yes; then
11267                            wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11268                          else
11269                            wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11270                          fi
11271
11272else
11273
11274                          LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11275                          if test "x$LINE" != x ; then
11276                            eval "DEFAULT_$LINE"
11277                          else
11278                            no_cache=1
11279                          fi
11280
11281                          wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11282
11283fi;
11284
11285          eval "$wx_cv_use_mousewheel"
11286          if test "$no_cache" != 1; then
11287            echo $wx_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11288          fi
11289
11290          if test "$wxUSE_MOUSEWHEEL" = yes; then
11291            echo "$as_me:$LINENO: result: yes" >&5
11292echo "${ECHO_T}yes" >&6
11293          else
11294            echo "$as_me:$LINENO: result: no" >&5
11295echo "${ECHO_T}no" >&6
11296          fi
11297
11298
11299          enablestring=
11300          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11301echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
11302          no_cache=0
11303          # Check whether --enable-validators or --disable-validators was given.
11304if test "${enable_validators+set}" = set; then
11305  enableval="$enable_validators"
11306
11307                          if test "$enableval" = yes; then
11308                            wx_cv_use_validators='wxUSE_VALIDATORS=yes'
11309                          else
11310                            wx_cv_use_validators='wxUSE_VALIDATORS=no'
11311                          fi
11312
11313else
11314
11315                          LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11316                          if test "x$LINE" != x ; then
11317                            eval "DEFAULT_$LINE"
11318                          else
11319                            no_cache=1
11320                          fi
11321
11322                          wx_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11323
11324fi;
11325
11326          eval "$wx_cv_use_validators"
11327          if test "$no_cache" != 1; then
11328            echo $wx_cv_use_validators >> ${wx_arg_cache_file}.tmp
11329          fi
11330
11331          if test "$wxUSE_VALIDATORS" = yes; then
11332            echo "$as_me:$LINENO: result: yes" >&5
11333echo "${ECHO_T}yes" >&6
11334          else
11335            echo "$as_me:$LINENO: result: no" >&5
11336echo "${ECHO_T}no" >&6
11337          fi
11338
11339
11340          enablestring=
11341          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11342echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
11343          no_cache=0
11344          # Check whether --enable-busyinfo or --disable-busyinfo was given.
11345if test "${enable_busyinfo+set}" = set; then
11346  enableval="$enable_busyinfo"
11347
11348                          if test "$enableval" = yes; then
11349                            wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11350                          else
11351                            wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11352                          fi
11353
11354else
11355
11356                          LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11357                          if test "x$LINE" != x ; then
11358                            eval "DEFAULT_$LINE"
11359                          else
11360                            no_cache=1
11361                          fi
11362
11363                          wx_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11364
11365fi;
11366
11367          eval "$wx_cv_use_busyinfo"
11368          if test "$no_cache" != 1; then
11369            echo $wx_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11370          fi
11371
11372          if test "$wxUSE_BUSYINFO" = yes; then
11373            echo "$as_me:$LINENO: result: yes" >&5
11374echo "${ECHO_T}yes" >&6
11375          else
11376            echo "$as_me:$LINENO: result: no" >&5
11377echo "${ECHO_T}no" >&6
11378          fi
11379
11380
11381          enablestring=
11382          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11383echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11384          no_cache=0
11385          # Check whether --enable-joystick or --disable-joystick was given.
11386if test "${enable_joystick+set}" = set; then
11387  enableval="$enable_joystick"
11388
11389                          if test "$enableval" = yes; then
11390                            wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
11391                          else
11392                            wx_cv_use_joystick='wxUSE_JOYSTICK=no'
11393                          fi
11394
11395else
11396
11397                          LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11398                          if test "x$LINE" != x ; then
11399                            eval "DEFAULT_$LINE"
11400                          else
11401                            no_cache=1
11402                          fi
11403
11404                          wx_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11405
11406fi;
11407
11408          eval "$wx_cv_use_joystick"
11409          if test "$no_cache" != 1; then
11410            echo $wx_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11411          fi
11412
11413          if test "$wxUSE_JOYSTICK" = yes; then
11414            echo "$as_me:$LINENO: result: yes" >&5
11415echo "${ECHO_T}yes" >&6
11416          else
11417            echo "$as_me:$LINENO: result: no" >&5
11418echo "${ECHO_T}no" >&6
11419          fi
11420
11421
11422          enablestring=
11423          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11424echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11425          no_cache=0
11426          # Check whether --enable-metafile or --disable-metafile was given.
11427if test "${enable_metafile+set}" = set; then
11428  enableval="$enable_metafile"
11429
11430                          if test "$enableval" = yes; then
11431                            wx_cv_use_metafile='wxUSE_METAFILE=yes'
11432                          else
11433                            wx_cv_use_metafile='wxUSE_METAFILE=no'
11434                          fi
11435
11436else
11437
11438                          LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11439                          if test "x$LINE" != x ; then
11440                            eval "DEFAULT_$LINE"
11441                          else
11442                            no_cache=1
11443                          fi
11444
11445                          wx_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11446
11447fi;
11448
11449          eval "$wx_cv_use_metafile"
11450          if test "$no_cache" != 1; then
11451            echo $wx_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11452          fi
11453
11454          if test "$wxUSE_METAFILE" = yes; then
11455            echo "$as_me:$LINENO: result: yes" >&5
11456echo "${ECHO_T}yes" >&6
11457          else
11458            echo "$as_me:$LINENO: result: no" >&5
11459echo "${ECHO_T}no" >&6
11460          fi
11461
11462
11463          enablestring=
11464          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11465echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11466          no_cache=0
11467          # Check whether --enable-dragimage or --disable-dragimage was given.
11468if test "${enable_dragimage+set}" = set; then
11469  enableval="$enable_dragimage"
11470
11471                          if test "$enableval" = yes; then
11472                            wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11473                          else
11474                            wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11475                          fi
11476
11477else
11478
11479                          LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11480                          if test "x$LINE" != x ; then
11481                            eval "DEFAULT_$LINE"
11482                          else
11483                            no_cache=1
11484                          fi
11485
11486                          wx_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11487
11488fi;
11489
11490          eval "$wx_cv_use_dragimage"
11491          if test "$no_cache" != 1; then
11492            echo $wx_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11493          fi
11494
11495          if test "$wxUSE_DRAGIMAGE" = yes; then
11496            echo "$as_me:$LINENO: result: yes" >&5
11497echo "${ECHO_T}yes" >&6
11498          else
11499            echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6
11501          fi
11502
11503
11504          enablestring=
11505          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11506echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11507          no_cache=0
11508          # Check whether --enable-accessibility or --disable-accessibility was given.
11509if test "${enable_accessibility+set}" = set; then
11510  enableval="$enable_accessibility"
11511
11512                          if test "$enableval" = yes; then
11513                            wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11514                          else
11515                            wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11516                          fi
11517
11518else
11519
11520                          LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11521                          if test "x$LINE" != x ; then
11522                            eval "DEFAULT_$LINE"
11523                          else
11524                            no_cache=1
11525                          fi
11526
11527                          wx_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11528
11529fi;
11530
11531          eval "$wx_cv_use_accessibility"
11532          if test "$no_cache" != 1; then
11533            echo $wx_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11534          fi
11535
11536          if test "$wxUSE_ACCESSIBILITY" = yes; then
11537            echo "$as_me:$LINENO: result: yes" >&5
11538echo "${ECHO_T}yes" >&6
11539          else
11540            echo "$as_me:$LINENO: result: no" >&5
11541echo "${ECHO_T}no" >&6
11542          fi
11543
11544
11545if test "$wxUSE_MSW" = "1"; then
11546
11547          enablestring=
11548          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11549echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11550          no_cache=0
11551          # Check whether --enable-dccache or --disable-dccache was given.
11552if test "${enable_dccache+set}" = set; then
11553  enableval="$enable_dccache"
11554
11555                          if test "$enableval" = yes; then
11556                            wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11557                          else
11558                            wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
11559                          fi
11560
11561else
11562
11563                          LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11564                          if test "x$LINE" != x ; then
11565                            eval "DEFAULT_$LINE"
11566                          else
11567                            no_cache=1
11568                          fi
11569
11570                          wx_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11571
11572fi;
11573
11574          eval "$wx_cv_use_dccache"
11575          if test "$no_cache" != 1; then
11576            echo $wx_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11577          fi
11578
11579          if test "$wxUSE_DC_CACHEING" = yes; then
11580            echo "$as_me:$LINENO: result: yes" >&5
11581echo "${ECHO_T}yes" >&6
11582          else
11583            echo "$as_me:$LINENO: result: no" >&5
11584echo "${ECHO_T}no" >&6
11585          fi
11586
11587fi
11588
11589
11590
11591          enablestring=
11592          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11593echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11594          no_cache=0
11595          # Check whether --enable-palette or --disable-palette was given.
11596if test "${enable_palette+set}" = set; then
11597  enableval="$enable_palette"
11598
11599                          if test "$enableval" = yes; then
11600                            wx_cv_use_palette='wxUSE_PALETTE=yes'
11601                          else
11602                            wx_cv_use_palette='wxUSE_PALETTE=no'
11603                          fi
11604
11605else
11606
11607                          LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11608                          if test "x$LINE" != x ; then
11609                            eval "DEFAULT_$LINE"
11610                          else
11611                            no_cache=1
11612                          fi
11613
11614                          wx_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11615
11616fi;
11617
11618          eval "$wx_cv_use_palette"
11619          if test "$no_cache" != 1; then
11620            echo $wx_cv_use_palette >> ${wx_arg_cache_file}.tmp
11621          fi
11622
11623          if test "$wxUSE_PALETTE" = yes; then
11624            echo "$as_me:$LINENO: result: yes" >&5
11625echo "${ECHO_T}yes" >&6
11626          else
11627            echo "$as_me:$LINENO: result: no" >&5
11628echo "${ECHO_T}no" >&6
11629          fi
11630
11631
11632          enablestring=
11633          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11634echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11635          no_cache=0
11636          # Check whether --enable-image or --disable-image was given.
11637if test "${enable_image+set}" = set; then
11638  enableval="$enable_image"
11639
11640                          if test "$enableval" = yes; then
11641                            wx_cv_use_image='wxUSE_IMAGE=yes'
11642                          else
11643                            wx_cv_use_image='wxUSE_IMAGE=no'
11644                          fi
11645
11646else
11647
11648                          LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11649                          if test "x$LINE" != x ; then
11650                            eval "DEFAULT_$LINE"
11651                          else
11652                            no_cache=1
11653                          fi
11654
11655                          wx_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11656
11657fi;
11658
11659          eval "$wx_cv_use_image"
11660          if test "$no_cache" != 1; then
11661            echo $wx_cv_use_image >> ${wx_arg_cache_file}.tmp
11662          fi
11663
11664          if test "$wxUSE_IMAGE" = yes; then
11665            echo "$as_me:$LINENO: result: yes" >&5
11666echo "${ECHO_T}yes" >&6
11667          else
11668            echo "$as_me:$LINENO: result: no" >&5
11669echo "${ECHO_T}no" >&6
11670          fi
11671
11672
11673          enablestring=
11674          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11675echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11676          no_cache=0
11677          # Check whether --enable-gif or --disable-gif was given.
11678if test "${enable_gif+set}" = set; then
11679  enableval="$enable_gif"
11680
11681                          if test "$enableval" = yes; then
11682                            wx_cv_use_gif='wxUSE_GIF=yes'
11683                          else
11684                            wx_cv_use_gif='wxUSE_GIF=no'
11685                          fi
11686
11687else
11688
11689                          LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11690                          if test "x$LINE" != x ; then
11691                            eval "DEFAULT_$LINE"
11692                          else
11693                            no_cache=1
11694                          fi
11695
11696                          wx_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11697
11698fi;
11699
11700          eval "$wx_cv_use_gif"
11701          if test "$no_cache" != 1; then
11702            echo $wx_cv_use_gif >> ${wx_arg_cache_file}.tmp
11703          fi
11704
11705          if test "$wxUSE_GIF" = yes; then
11706            echo "$as_me:$LINENO: result: yes" >&5
11707echo "${ECHO_T}yes" >&6
11708          else
11709            echo "$as_me:$LINENO: result: no" >&5
11710echo "${ECHO_T}no" >&6
11711          fi
11712
11713
11714          enablestring=
11715          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11716echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11717          no_cache=0
11718          # Check whether --enable-pcx or --disable-pcx was given.
11719if test "${enable_pcx+set}" = set; then
11720  enableval="$enable_pcx"
11721
11722                          if test "$enableval" = yes; then
11723                            wx_cv_use_pcx='wxUSE_PCX=yes'
11724                          else
11725                            wx_cv_use_pcx='wxUSE_PCX=no'
11726                          fi
11727
11728else
11729
11730                          LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11731                          if test "x$LINE" != x ; then
11732                            eval "DEFAULT_$LINE"
11733                          else
11734                            no_cache=1
11735                          fi
11736
11737                          wx_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11738
11739fi;
11740
11741          eval "$wx_cv_use_pcx"
11742          if test "$no_cache" != 1; then
11743            echo $wx_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11744          fi
11745
11746          if test "$wxUSE_PCX" = yes; then
11747            echo "$as_me:$LINENO: result: yes" >&5
11748echo "${ECHO_T}yes" >&6
11749          else
11750            echo "$as_me:$LINENO: result: no" >&5
11751echo "${ECHO_T}no" >&6
11752          fi
11753
11754
11755          enablestring=
11756          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
11757echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6
11758          no_cache=0
11759          # Check whether --enable-tga or --disable-tga was given.
11760if test "${enable_tga+set}" = set; then
11761  enableval="$enable_tga"
11762
11763                          if test "$enableval" = yes; then
11764                            wx_cv_use_tga='wxUSE_TGA=yes'
11765                          else
11766                            wx_cv_use_tga='wxUSE_TGA=no'
11767                          fi
11768
11769else
11770
11771                          LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
11772                          if test "x$LINE" != x ; then
11773                            eval "DEFAULT_$LINE"
11774                          else
11775                            no_cache=1
11776                          fi
11777
11778                          wx_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
11779
11780fi;
11781
11782          eval "$wx_cv_use_tga"
11783          if test "$no_cache" != 1; then
11784            echo $wx_cv_use_tga >> ${wx_arg_cache_file}.tmp
11785          fi
11786
11787          if test "$wxUSE_TGA" = yes; then
11788            echo "$as_me:$LINENO: result: yes" >&5
11789echo "${ECHO_T}yes" >&6
11790          else
11791            echo "$as_me:$LINENO: result: no" >&5
11792echo "${ECHO_T}no" >&6
11793          fi
11794
11795
11796          enablestring=
11797          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11798echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11799          no_cache=0
11800          # Check whether --enable-iff or --disable-iff was given.
11801if test "${enable_iff+set}" = set; then
11802  enableval="$enable_iff"
11803
11804                          if test "$enableval" = yes; then
11805                            wx_cv_use_iff='wxUSE_IFF=yes'
11806                          else
11807                            wx_cv_use_iff='wxUSE_IFF=no'
11808                          fi
11809
11810else
11811
11812                          LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11813                          if test "x$LINE" != x ; then
11814                            eval "DEFAULT_$LINE"
11815                          else
11816                            no_cache=1
11817                          fi
11818
11819                          wx_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11820
11821fi;
11822
11823          eval "$wx_cv_use_iff"
11824          if test "$no_cache" != 1; then
11825            echo $wx_cv_use_iff >> ${wx_arg_cache_file}.tmp
11826          fi
11827
11828          if test "$wxUSE_IFF" = yes; then
11829            echo "$as_me:$LINENO: result: yes" >&5
11830echo "${ECHO_T}yes" >&6
11831          else
11832            echo "$as_me:$LINENO: result: no" >&5
11833echo "${ECHO_T}no" >&6
11834          fi
11835
11836
11837          enablestring=
11838          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11839echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11840          no_cache=0
11841          # Check whether --enable-pnm or --disable-pnm was given.
11842if test "${enable_pnm+set}" = set; then
11843  enableval="$enable_pnm"
11844
11845                          if test "$enableval" = yes; then
11846                            wx_cv_use_pnm='wxUSE_PNM=yes'
11847                          else
11848                            wx_cv_use_pnm='wxUSE_PNM=no'
11849                          fi
11850
11851else
11852
11853                          LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11854                          if test "x$LINE" != x ; then
11855                            eval "DEFAULT_$LINE"
11856                          else
11857                            no_cache=1
11858                          fi
11859
11860                          wx_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11861
11862fi;
11863
11864          eval "$wx_cv_use_pnm"
11865          if test "$no_cache" != 1; then
11866            echo $wx_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11867          fi
11868
11869          if test "$wxUSE_PNM" = yes; then
11870            echo "$as_me:$LINENO: result: yes" >&5
11871echo "${ECHO_T}yes" >&6
11872          else
11873            echo "$as_me:$LINENO: result: no" >&5
11874echo "${ECHO_T}no" >&6
11875          fi
11876
11877
11878          enablestring=
11879          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11880echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11881          no_cache=0
11882          # Check whether --enable-xpm or --disable-xpm was given.
11883if test "${enable_xpm+set}" = set; then
11884  enableval="$enable_xpm"
11885
11886                          if test "$enableval" = yes; then
11887                            wx_cv_use_xpm='wxUSE_XPM=yes'
11888                          else
11889                            wx_cv_use_xpm='wxUSE_XPM=no'
11890                          fi
11891
11892else
11893
11894                          LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11895                          if test "x$LINE" != x ; then
11896                            eval "DEFAULT_$LINE"
11897                          else
11898                            no_cache=1
11899                          fi
11900
11901                          wx_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11902
11903fi;
11904
11905          eval "$wx_cv_use_xpm"
11906          if test "$no_cache" != 1; then
11907            echo $wx_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11908          fi
11909
11910          if test "$wxUSE_XPM" = yes; then
11911            echo "$as_me:$LINENO: result: yes" >&5
11912echo "${ECHO_T}yes" >&6
11913          else
11914            echo "$as_me:$LINENO: result: no" >&5
11915echo "${ECHO_T}no" >&6
11916          fi
11917
11918
11919          enablestring=
11920          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11921echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11922          no_cache=0
11923          # Check whether --enable-ico_cur or --disable-ico_cur was given.
11924if test "${enable_ico_cur+set}" = set; then
11925  enableval="$enable_ico_cur"
11926
11927                          if test "$enableval" = yes; then
11928                            wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11929                          else
11930                            wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11931                          fi
11932
11933else
11934
11935                          LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11936                          if test "x$LINE" != x ; then
11937                            eval "DEFAULT_$LINE"
11938                          else
11939                            no_cache=1
11940                          fi
11941
11942                          wx_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11943
11944fi;
11945
11946          eval "$wx_cv_use_ico_cur"
11947          if test "$no_cache" != 1; then
11948            echo $wx_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11949          fi
11950
11951          if test "$wxUSE_ICO_CUR" = yes; then
11952            echo "$as_me:$LINENO: result: yes" >&5
11953echo "${ECHO_T}yes" >&6
11954          else
11955            echo "$as_me:$LINENO: result: no" >&5
11956echo "${ECHO_T}no" >&6
11957          fi
11958
11959
11960fi
11961
11962
11963
11964# Check whether --with-flavour or --without-flavour was given.
11965if test "${with_flavour+set}" = set; then
11966  withval="$with_flavour"
11967  WX_FLAVOUR="$withval"
11968fi;
11969
11970
11971
11972          enablestring=
11973          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11974echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11975          no_cache=0
11976          # Check whether --enable-official_build or --disable-official_build was given.
11977if test "${enable_official_build+set}" = set; then
11978  enableval="$enable_official_build"
11979
11980                          if test "$enableval" = yes; then
11981                            wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11982                          else
11983                            wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11984                          fi
11985
11986else
11987
11988                          LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11989                          if test "x$LINE" != x ; then
11990                            eval "DEFAULT_$LINE"
11991                          else
11992                            no_cache=1
11993                          fi
11994
11995                          wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11996
11997fi;
11998
11999          eval "$wx_cv_use_official_build"
12000          if test "$no_cache" != 1; then
12001            echo $wx_cv_use_official_build >> ${wx_arg_cache_file}.tmp
12002          fi
12003
12004          if test "$wxUSE_OFFICIAL_BUILD" = yes; then
12005            echo "$as_me:$LINENO: result: yes" >&5
12006echo "${ECHO_T}yes" >&6
12007          else
12008            echo "$as_me:$LINENO: result: no" >&5
12009echo "${ECHO_T}no" >&6
12010          fi
12011
12012# Check whether --enable-vendor or --disable-vendor was given.
12013if test "${enable_vendor+set}" = set; then
12014  enableval="$enable_vendor"
12015  VENDOR="$enableval"
12016fi;
12017if test "x$VENDOR" = "x"; then
12018    VENDOR="custom"
12019fi
12020
12021
12022
12023
12024          echo "saving argument cache $wx_arg_cache_file"
12025          mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
12026
12027
12028
12029echo "$as_me:$LINENO: checking for toolkit" >&5
12030echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
12031
12032# In Wine, we need to default to MSW, not GTK or MOTIF
12033if test "$wxUSE_WINE" = "yes"; then
12034    DEFAULT_DEFAULT_wxUSE_GTK=0
12035    DEFAULT_DEFAULT_wxUSE_MOTIF=0
12036    DEFAULT_DEFAULT_wxUSE_MSW=1
12037    wxUSE_SHARED=no
12038    CC=${CC:-winegcc}
12039    CXX=${CXX:-wineg++}
12040fi
12041
12042
12043if test "$wxUSE_GUI" = "yes"; then
12044
12045    if test "$USE_BEOS" = 1; then
12046        { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
12047echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
12048   { (exit 1); exit 1; }; }
12049    fi
12050
12051    if test "$TOOLKIT_GIVEN" = 1; then
12052            for toolkit in `echo $ALL_TOOLKITS`; do
12053        var=wxUSE_$toolkit
12054        eval "value=\$${var}"
12055        if test "x$value" = "xno"; then
12056          eval "$var=0"
12057        elif test "x$value" != "x"; then
12058          eval "$var=1"
12059        fi
12060
12061        if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
12062          eval "wx${toolkit}_VERSION=$value"
12063        fi
12064      done
12065    else
12066            for toolkit in `echo $ALL_TOOLKITS`; do
12067        if test "$has_toolkit_in_cache" != 1; then
12068          var=DEFAULT_DEFAULT_wxUSE_$toolkit
12069        else
12070          var=DEFAULT_wxUSE_$toolkit
12071
12072          eval "version=\$DEFAULT_wx${toolkit}_VERSION"
12073          if test "x$version" != "x"; then
12074            eval "wx${toolkit}_VERSION=$version"
12075          fi
12076        fi
12077        eval "wxUSE_$toolkit=\$${var}"
12078      done
12079    fi
12080
12081            NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
12082                  + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
12083                  + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
12084
12085        case "${host}" in
12086      *-pc-os2_emx | *-pc-os2-emx )
12087        NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
12088    esac
12089
12090    case "$NUM_TOOLKITS" in
12091      1)
12092      ;;
12093      0)
12094        { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
12095echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
12096   { (exit 1); exit 1; }; }
12097      ;;
12098      *)
12099        { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
12100echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
12101   { (exit 1); exit 1; }; }
12102    esac
12103
12104    # to be removed when --disable-gtk2 isn't needed
12105    if test "x$wxUSE_GTK2" = "xyes"; then
12106        wxGTK_VERSION=2
12107    elif test "x$wxUSE_GTK2" = "xno"; then
12108        wxGTK_VERSION=1
12109    fi
12110
12111        for toolkit in `echo $ALL_TOOLKITS`; do
12112      var=wxUSE_$toolkit
12113      eval "value=\$${var}"
12114      if test "x$value" != x; then
12115        cache_var=CACHE_$toolkit
12116        eval "cache=\$${cache_var}"
12117        if test "$cache" = 1; then
12118          echo "$var=$value" >> ${wx_arg_cache_file}
12119          eval "version=\$wx${toolkit}_VERSION"
12120          if test "x$version" != "x"; then
12121            echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
12122          fi
12123        fi
12124        if test "$value" = 1; then
12125          toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
12126          echo "$as_me:$LINENO: result: $toolkit_echo" >&5
12127echo "${ECHO_T}$toolkit_echo" >&6
12128        fi
12129      fi
12130    done
12131else
12132    if test "x$host_alias" != "x"; then
12133        echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
12134echo "${ECHO_T}base ($host_alias hosted) only" >&6
12135    else
12136        echo "$as_me:$LINENO: result: base only" >&5
12137echo "${ECHO_T}base only" >&6
12138    fi
12139fi
12140
12141
12142cat >confcache <<\_ACEOF
12143# This file is a shell script that caches the results of configure
12144# tests run on this system so they can be shared between configure
12145# scripts and configure runs, see configure's option --config-cache.
12146# It is not useful on other systems.  If it contains results you don't
12147# want to keep, you may remove or edit it.
12148#
12149# config.status only pays attention to the cache file if you give it
12150# the --recheck option to rerun configure.
12151#
12152# `ac_cv_env_foo' variables (set or unset) will be overridden when
12153# loading this file, other *unset* `ac_cv_foo' will be assigned the
12154# following values.
12155
12156_ACEOF
12157
12158# The following way of writing the cache mishandles newlines in values,
12159# but we know of no workaround that is simple, portable, and efficient.
12160# So, don't put newlines in cache variables' values.
12161# Ultrix sh set writes to stderr and can't be redirected directly,
12162# and sets the high bit in the cache file unless we assign to the vars.
12163{
12164  (set) 2>&1 |
12165    case `(ac_space=' '; set | grep ac_space) 2>&1` in
12166    *ac_space=\ *)
12167      # `set' does not quote correctly, so add quotes (double-quote
12168      # substitution turns \\\\ into \\, and sed turns \\ into \).
12169      sed -n \
12170	"s/'/'\\\\''/g;
12171	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12172      ;;
12173    *)
12174      # `set' quotes correctly as required by POSIX, so do not add quotes.
12175      sed -n \
12176	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12177      ;;
12178    esac;
12179} |
12180  sed '
12181     t clear
12182     : clear
12183     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12184     t end
12185     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12186     : end' >>confcache
12187if diff $cache_file confcache >/dev/null 2>&1; then :; else
12188  if test -w $cache_file; then
12189    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12190    cat confcache >$cache_file
12191  else
12192    echo "not updating unwritable cache $cache_file"
12193  fi
12194fi
12195rm -f confcache
12196
12197CFLAGS=${CFLAGS:=}
12198
12199
12200
12201    ac_ext=c
12202ac_cpp='$CPP $CPPFLAGS'
12203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12205ac_compiler_gnu=$ac_cv_c_compiler_gnu
12206if test -n "$ac_tool_prefix"; then
12207  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12208set dummy ${ac_tool_prefix}gcc; ac_word=$2
12209echo "$as_me:$LINENO: checking for $ac_word" >&5
12210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12211if test "${ac_cv_prog_CC+set}" = set; then
12212  echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214  if test -n "$CC"; then
12215  ac_cv_prog_CC="$CC" # Let the user override the test.
12216else
12217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218for as_dir in $PATH
12219do
12220  IFS=$as_save_IFS
12221  test -z "$as_dir" && as_dir=.
12222  for ac_exec_ext in '' $ac_executable_extensions; do
12223  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12224    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12226    break 2
12227  fi
12228done
12229done
12230
12231fi
12232fi
12233CC=$ac_cv_prog_CC
12234if test -n "$CC"; then
12235  echo "$as_me:$LINENO: result: $CC" >&5
12236echo "${ECHO_T}$CC" >&6
12237else
12238  echo "$as_me:$LINENO: result: no" >&5
12239echo "${ECHO_T}no" >&6
12240fi
12241
12242fi
12243if test -z "$ac_cv_prog_CC"; then
12244  ac_ct_CC=$CC
12245  # Extract the first word of "gcc", so it can be a program name with args.
12246set dummy gcc; ac_word=$2
12247echo "$as_me:$LINENO: checking for $ac_word" >&5
12248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12249if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12250  echo $ECHO_N "(cached) $ECHO_C" >&6
12251else
12252  if test -n "$ac_ct_CC"; then
12253  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12254else
12255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256for as_dir in $PATH
12257do
12258  IFS=$as_save_IFS
12259  test -z "$as_dir" && as_dir=.
12260  for ac_exec_ext in '' $ac_executable_extensions; do
12261  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262    ac_cv_prog_ac_ct_CC="gcc"
12263    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12264    break 2
12265  fi
12266done
12267done
12268
12269fi
12270fi
12271ac_ct_CC=$ac_cv_prog_ac_ct_CC
12272if test -n "$ac_ct_CC"; then
12273  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12274echo "${ECHO_T}$ac_ct_CC" >&6
12275else
12276  echo "$as_me:$LINENO: result: no" >&5
12277echo "${ECHO_T}no" >&6
12278fi
12279
12280  CC=$ac_ct_CC
12281else
12282  CC="$ac_cv_prog_CC"
12283fi
12284
12285if test -z "$CC"; then
12286  if test -n "$ac_tool_prefix"; then
12287  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12288set dummy ${ac_tool_prefix}cc; ac_word=$2
12289echo "$as_me:$LINENO: checking for $ac_word" >&5
12290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12291if test "${ac_cv_prog_CC+set}" = set; then
12292  echo $ECHO_N "(cached) $ECHO_C" >&6
12293else
12294  if test -n "$CC"; then
12295  ac_cv_prog_CC="$CC" # Let the user override the test.
12296else
12297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298for as_dir in $PATH
12299do
12300  IFS=$as_save_IFS
12301  test -z "$as_dir" && as_dir=.
12302  for ac_exec_ext in '' $ac_executable_extensions; do
12303  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12304    ac_cv_prog_CC="${ac_tool_prefix}cc"
12305    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12306    break 2
12307  fi
12308done
12309done
12310
12311fi
12312fi
12313CC=$ac_cv_prog_CC
12314if test -n "$CC"; then
12315  echo "$as_me:$LINENO: result: $CC" >&5
12316echo "${ECHO_T}$CC" >&6
12317else
12318  echo "$as_me:$LINENO: result: no" >&5
12319echo "${ECHO_T}no" >&6
12320fi
12321
12322fi
12323if test -z "$ac_cv_prog_CC"; then
12324  ac_ct_CC=$CC
12325  # Extract the first word of "cc", so it can be a program name with args.
12326set dummy cc; ac_word=$2
12327echo "$as_me:$LINENO: checking for $ac_word" >&5
12328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12329if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12330  echo $ECHO_N "(cached) $ECHO_C" >&6
12331else
12332  if test -n "$ac_ct_CC"; then
12333  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12334else
12335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336for as_dir in $PATH
12337do
12338  IFS=$as_save_IFS
12339  test -z "$as_dir" && as_dir=.
12340  for ac_exec_ext in '' $ac_executable_extensions; do
12341  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342    ac_cv_prog_ac_ct_CC="cc"
12343    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12344    break 2
12345  fi
12346done
12347done
12348
12349fi
12350fi
12351ac_ct_CC=$ac_cv_prog_ac_ct_CC
12352if test -n "$ac_ct_CC"; then
12353  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12354echo "${ECHO_T}$ac_ct_CC" >&6
12355else
12356  echo "$as_me:$LINENO: result: no" >&5
12357echo "${ECHO_T}no" >&6
12358fi
12359
12360  CC=$ac_ct_CC
12361else
12362  CC="$ac_cv_prog_CC"
12363fi
12364
12365fi
12366if test -z "$CC"; then
12367  # Extract the first word of "cc", so it can be a program name with args.
12368set dummy cc; ac_word=$2
12369echo "$as_me:$LINENO: checking for $ac_word" >&5
12370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12371if test "${ac_cv_prog_CC+set}" = set; then
12372  echo $ECHO_N "(cached) $ECHO_C" >&6
12373else
12374  if test -n "$CC"; then
12375  ac_cv_prog_CC="$CC" # Let the user override the test.
12376else
12377  ac_prog_rejected=no
12378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379for as_dir in $PATH
12380do
12381  IFS=$as_save_IFS
12382  test -z "$as_dir" && as_dir=.
12383  for ac_exec_ext in '' $ac_executable_extensions; do
12384  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12385    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12386       ac_prog_rejected=yes
12387       continue
12388     fi
12389    ac_cv_prog_CC="cc"
12390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12391    break 2
12392  fi
12393done
12394done
12395
12396if test $ac_prog_rejected = yes; then
12397  # We found a bogon in the path, so make sure we never use it.
12398  set dummy $ac_cv_prog_CC
12399  shift
12400  if test $# != 0; then
12401    # We chose a different compiler from the bogus one.
12402    # However, it has the same basename, so the bogon will be chosen
12403    # first if we set CC to just the basename; use the full file name.
12404    shift
12405    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12406  fi
12407fi
12408fi
12409fi
12410CC=$ac_cv_prog_CC
12411if test -n "$CC"; then
12412  echo "$as_me:$LINENO: result: $CC" >&5
12413echo "${ECHO_T}$CC" >&6
12414else
12415  echo "$as_me:$LINENO: result: no" >&5
12416echo "${ECHO_T}no" >&6
12417fi
12418
12419fi
12420if test -z "$CC"; then
12421  if test -n "$ac_tool_prefix"; then
12422  for ac_prog in cl
12423  do
12424    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12426echo "$as_me:$LINENO: checking for $ac_word" >&5
12427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12428if test "${ac_cv_prog_CC+set}" = set; then
12429  echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431  if test -n "$CC"; then
12432  ac_cv_prog_CC="$CC" # Let the user override the test.
12433else
12434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435for as_dir in $PATH
12436do
12437  IFS=$as_save_IFS
12438  test -z "$as_dir" && as_dir=.
12439  for ac_exec_ext in '' $ac_executable_extensions; do
12440  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12443    break 2
12444  fi
12445done
12446done
12447
12448fi
12449fi
12450CC=$ac_cv_prog_CC
12451if test -n "$CC"; then
12452  echo "$as_me:$LINENO: result: $CC" >&5
12453echo "${ECHO_T}$CC" >&6
12454else
12455  echo "$as_me:$LINENO: result: no" >&5
12456echo "${ECHO_T}no" >&6
12457fi
12458
12459    test -n "$CC" && break
12460  done
12461fi
12462if test -z "$CC"; then
12463  ac_ct_CC=$CC
12464  for ac_prog in cl
12465do
12466  # Extract the first word of "$ac_prog", so it can be a program name with args.
12467set dummy $ac_prog; ac_word=$2
12468echo "$as_me:$LINENO: checking for $ac_word" >&5
12469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12470if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12471  echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473  if test -n "$ac_ct_CC"; then
12474  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12475else
12476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477for as_dir in $PATH
12478do
12479  IFS=$as_save_IFS
12480  test -z "$as_dir" && as_dir=.
12481  for ac_exec_ext in '' $ac_executable_extensions; do
12482  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483    ac_cv_prog_ac_ct_CC="$ac_prog"
12484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12485    break 2
12486  fi
12487done
12488done
12489
12490fi
12491fi
12492ac_ct_CC=$ac_cv_prog_ac_ct_CC
12493if test -n "$ac_ct_CC"; then
12494  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12495echo "${ECHO_T}$ac_ct_CC" >&6
12496else
12497  echo "$as_me:$LINENO: result: no" >&5
12498echo "${ECHO_T}no" >&6
12499fi
12500
12501  test -n "$ac_ct_CC" && break
12502done
12503
12504  CC=$ac_ct_CC
12505fi
12506
12507fi
12508
12509
12510test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12511See \`config.log' for more details." >&5
12512echo "$as_me: error: no acceptable C compiler found in \$PATH
12513See \`config.log' for more details." >&2;}
12514   { (exit 1); exit 1; }; }
12515
12516# Provide some information about the compiler.
12517echo "$as_me:$LINENO:" \
12518     "checking for C compiler version" >&5
12519ac_compiler=`set X $ac_compile; echo $2`
12520{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12521  (eval $ac_compiler --version </dev/null >&5) 2>&5
12522  ac_status=$?
12523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524  (exit $ac_status); }
12525{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12526  (eval $ac_compiler -v </dev/null >&5) 2>&5
12527  ac_status=$?
12528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529  (exit $ac_status); }
12530{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12531  (eval $ac_compiler -V </dev/null >&5) 2>&5
12532  ac_status=$?
12533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534  (exit $ac_status); }
12535
12536cat >conftest.$ac_ext <<_ACEOF
12537/* confdefs.h.  */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h.  */
12542
12543int
12544main ()
12545{
12546
12547  ;
12548  return 0;
12549}
12550_ACEOF
12551ac_clean_files_save=$ac_clean_files
12552ac_clean_files="$ac_clean_files a.out a.exe b.out"
12553# Try to create an executable without -o first, disregard a.out.
12554# It will help us diagnose broken compilers, and finding out an intuition
12555# of exeext.
12556echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12557echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12558ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12559if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12560  (eval $ac_link_default) 2>&5
12561  ac_status=$?
12562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563  (exit $ac_status); }; then
12564  # Find the output, starting from the most likely.  This scheme is
12565# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12566# resort.
12567
12568# Be careful to initialize this variable, since it used to be cached.
12569# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12570ac_cv_exeext=
12571# b.out is created by i960 compilers.
12572for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12573do
12574  test -f "$ac_file" || continue
12575  case $ac_file in
12576    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12577	;;
12578    conftest.$ac_ext )
12579	# This is the source file.
12580	;;
12581    [ab].out )
12582	# We found the default executable, but exeext='' is most
12583	# certainly right.
12584	break;;
12585    *.* )
12586	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12587	# FIXME: I believe we export ac_cv_exeext for Libtool,
12588	# but it would be cool to find out if it's true.  Does anybody
12589	# maintain Libtool? --akim.
12590	export ac_cv_exeext
12591	break;;
12592    * )
12593	break;;
12594  esac
12595done
12596else
12597  echo "$as_me: failed program was:" >&5
12598sed 's/^/| /' conftest.$ac_ext >&5
12599
12600{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12601See \`config.log' for more details." >&5
12602echo "$as_me: error: C compiler cannot create executables
12603See \`config.log' for more details." >&2;}
12604   { (exit 77); exit 77; }; }
12605fi
12606
12607ac_exeext=$ac_cv_exeext
12608echo "$as_me:$LINENO: result: $ac_file" >&5
12609echo "${ECHO_T}$ac_file" >&6
12610
12611# Check the compiler produces executables we can run.  If not, either
12612# the compiler is broken, or we cross compile.
12613echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12614echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12615# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12616# If not cross compiling, check that we can run a simple program.
12617if test "$cross_compiling" != yes; then
12618  if { ac_try='./$ac_file'
12619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620  (eval $ac_try) 2>&5
12621  ac_status=$?
12622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623  (exit $ac_status); }; }; then
12624    cross_compiling=no
12625  else
12626    if test "$cross_compiling" = maybe; then
12627	cross_compiling=yes
12628    else
12629	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12630If you meant to cross compile, use \`--host'.
12631See \`config.log' for more details." >&5
12632echo "$as_me: error: cannot run C compiled programs.
12633If you meant to cross compile, use \`--host'.
12634See \`config.log' for more details." >&2;}
12635   { (exit 1); exit 1; }; }
12636    fi
12637  fi
12638fi
12639echo "$as_me:$LINENO: result: yes" >&5
12640echo "${ECHO_T}yes" >&6
12641
12642rm -f a.out a.exe conftest$ac_cv_exeext b.out
12643ac_clean_files=$ac_clean_files_save
12644# Check the compiler produces executables we can run.  If not, either
12645# the compiler is broken, or we cross compile.
12646echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12647echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12648echo "$as_me:$LINENO: result: $cross_compiling" >&5
12649echo "${ECHO_T}$cross_compiling" >&6
12650
12651echo "$as_me:$LINENO: checking for suffix of executables" >&5
12652echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12654  (eval $ac_link) 2>&5
12655  ac_status=$?
12656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657  (exit $ac_status); }; then
12658  # If both `conftest.exe' and `conftest' are `present' (well, observable)
12659# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12660# work properly (i.e., refer to `conftest.exe'), while it won't with
12661# `rm'.
12662for ac_file in conftest.exe conftest conftest.*; do
12663  test -f "$ac_file" || continue
12664  case $ac_file in
12665    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12666    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12667	  export ac_cv_exeext
12668	  break;;
12669    * ) break;;
12670  esac
12671done
12672else
12673  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12674See \`config.log' for more details." >&5
12675echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12676See \`config.log' for more details." >&2;}
12677   { (exit 1); exit 1; }; }
12678fi
12679
12680rm -f conftest$ac_cv_exeext
12681echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12682echo "${ECHO_T}$ac_cv_exeext" >&6
12683
12684rm -f conftest.$ac_ext
12685EXEEXT=$ac_cv_exeext
12686ac_exeext=$EXEEXT
12687echo "$as_me:$LINENO: checking for suffix of object files" >&5
12688echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12689if test "${ac_cv_objext+set}" = set; then
12690  echo $ECHO_N "(cached) $ECHO_C" >&6
12691else
12692  cat >conftest.$ac_ext <<_ACEOF
12693/* confdefs.h.  */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h.  */
12698
12699int
12700main ()
12701{
12702
12703  ;
12704  return 0;
12705}
12706_ACEOF
12707rm -f conftest.o conftest.obj
12708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709  (eval $ac_compile) 2>&5
12710  ac_status=$?
12711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712  (exit $ac_status); }; then
12713  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12714  case $ac_file in
12715    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12716    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12717       break;;
12718  esac
12719done
12720else
12721  echo "$as_me: failed program was:" >&5
12722sed 's/^/| /' conftest.$ac_ext >&5
12723
12724{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12725See \`config.log' for more details." >&5
12726echo "$as_me: error: cannot compute suffix of object files: cannot compile
12727See \`config.log' for more details." >&2;}
12728   { (exit 1); exit 1; }; }
12729fi
12730
12731rm -f conftest.$ac_cv_objext conftest.$ac_ext
12732fi
12733echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12734echo "${ECHO_T}$ac_cv_objext" >&6
12735OBJEXT=$ac_cv_objext
12736ac_objext=$OBJEXT
12737echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12738echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12739if test "${ac_cv_c_compiler_gnu+set}" = set; then
12740  echo $ECHO_N "(cached) $ECHO_C" >&6
12741else
12742  cat >conftest.$ac_ext <<_ACEOF
12743/* confdefs.h.  */
12744_ACEOF
12745cat confdefs.h >>conftest.$ac_ext
12746cat >>conftest.$ac_ext <<_ACEOF
12747/* end confdefs.h.  */
12748
12749int
12750main ()
12751{
12752#ifndef __GNUC__
12753       choke me
12754#endif
12755
12756  ;
12757  return 0;
12758}
12759_ACEOF
12760rm -f conftest.$ac_objext
12761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12762  (eval $ac_compile) 2>conftest.er1
12763  ac_status=$?
12764  grep -v '^ *+' conftest.er1 >conftest.err
12765  rm -f conftest.er1
12766  cat conftest.err >&5
12767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768  (exit $ac_status); } &&
12769	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771  (eval $ac_try) 2>&5
12772  ac_status=$?
12773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774  (exit $ac_status); }; } &&
12775	 { ac_try='test -s conftest.$ac_objext'
12776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777  (eval $ac_try) 2>&5
12778  ac_status=$?
12779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780  (exit $ac_status); }; }; then
12781  ac_compiler_gnu=yes
12782else
12783  echo "$as_me: failed program was:" >&5
12784sed 's/^/| /' conftest.$ac_ext >&5
12785
12786ac_compiler_gnu=no
12787fi
12788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12789ac_cv_c_compiler_gnu=$ac_compiler_gnu
12790
12791fi
12792echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12793echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12794GCC=`test $ac_compiler_gnu = yes && echo yes`
12795ac_test_CFLAGS=${CFLAGS+set}
12796ac_save_CFLAGS=$CFLAGS
12797CFLAGS="$CFLAGS -g"
12798echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12799echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12800if test "${ac_cv_prog_cc_g+set}" = set; then
12801  echo $ECHO_N "(cached) $ECHO_C" >&6
12802else
12803  cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h.  */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h.  */
12809
12810int
12811main ()
12812{
12813
12814  ;
12815  return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext
12819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820  (eval $ac_compile) 2>conftest.er1
12821  ac_status=$?
12822  grep -v '^ *+' conftest.er1 >conftest.err
12823  rm -f conftest.er1
12824  cat conftest.err >&5
12825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826  (exit $ac_status); } &&
12827	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829  (eval $ac_try) 2>&5
12830  ac_status=$?
12831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832  (exit $ac_status); }; } &&
12833	 { ac_try='test -s conftest.$ac_objext'
12834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835  (eval $ac_try) 2>&5
12836  ac_status=$?
12837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838  (exit $ac_status); }; }; then
12839  ac_cv_prog_cc_g=yes
12840else
12841  echo "$as_me: failed program was:" >&5
12842sed 's/^/| /' conftest.$ac_ext >&5
12843
12844ac_cv_prog_cc_g=no
12845fi
12846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12847fi
12848echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12849echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12850if test "$ac_test_CFLAGS" = set; then
12851  CFLAGS=$ac_save_CFLAGS
12852elif test $ac_cv_prog_cc_g = yes; then
12853  if test "$GCC" = yes; then
12854    CFLAGS="-g -O2"
12855  else
12856    CFLAGS="-g"
12857  fi
12858else
12859  if test "$GCC" = yes; then
12860    CFLAGS="-O2"
12861  else
12862    CFLAGS=
12863  fi
12864fi
12865echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12866echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12867if test "${ac_cv_prog_cc_stdc+set}" = set; then
12868  echo $ECHO_N "(cached) $ECHO_C" >&6
12869else
12870  ac_cv_prog_cc_stdc=no
12871ac_save_CC=$CC
12872cat >conftest.$ac_ext <<_ACEOF
12873/* confdefs.h.  */
12874_ACEOF
12875cat confdefs.h >>conftest.$ac_ext
12876cat >>conftest.$ac_ext <<_ACEOF
12877/* end confdefs.h.  */
12878#include <stdarg.h>
12879#include <stdio.h>
12880#include <sys/types.h>
12881#include <sys/stat.h>
12882/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12883struct buf { int x; };
12884FILE * (*rcsopen) (struct buf *, struct stat *, int);
12885static char *e (p, i)
12886     char **p;
12887     int i;
12888{
12889  return p[i];
12890}
12891static char *f (char * (*g) (char **, int), char **p, ...)
12892{
12893  char *s;
12894  va_list v;
12895  va_start (v,p);
12896  s = g (p, va_arg (v,int));
12897  va_end (v);
12898  return s;
12899}
12900
12901/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12902   function prototypes and stuff, but not '\xHH' hex character constants.
12903   These don't provoke an error unfortunately, instead are silently treated
12904   as 'x'.  The following induces an error, until -std1 is added to get
12905   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12906   array size at least.  It's necessary to write '\x00'==0 to get something
12907   that's true only with -std1.  */
12908int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12909
12910int test (int i, double x);
12911struct s1 {int (*f) (int a);};
12912struct s2 {int (*f) (double a);};
12913int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12914int argc;
12915char **argv;
12916int
12917main ()
12918{
12919return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12920  ;
12921  return 0;
12922}
12923_ACEOF
12924# Don't try gcc -ansi; that turns off useful extensions and
12925# breaks some systems' header files.
12926# AIX			-qlanglvl=ansi
12927# Ultrix and OSF/1	-std1
12928# HP-UX 10.20 and later	-Ae
12929# HP-UX older versions	-Aa -D_HPUX_SOURCE
12930# SVR4			-Xc -D__EXTENSIONS__
12931for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12932do
12933  CC="$ac_save_CC $ac_arg"
12934  rm -f conftest.$ac_objext
12935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12936  (eval $ac_compile) 2>conftest.er1
12937  ac_status=$?
12938  grep -v '^ *+' conftest.er1 >conftest.err
12939  rm -f conftest.er1
12940  cat conftest.err >&5
12941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942  (exit $ac_status); } &&
12943	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945  (eval $ac_try) 2>&5
12946  ac_status=$?
12947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948  (exit $ac_status); }; } &&
12949	 { ac_try='test -s conftest.$ac_objext'
12950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951  (eval $ac_try) 2>&5
12952  ac_status=$?
12953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954  (exit $ac_status); }; }; then
12955  ac_cv_prog_cc_stdc=$ac_arg
12956break
12957else
12958  echo "$as_me: failed program was:" >&5
12959sed 's/^/| /' conftest.$ac_ext >&5
12960
12961fi
12962rm -f conftest.err conftest.$ac_objext
12963done
12964rm -f conftest.$ac_ext conftest.$ac_objext
12965CC=$ac_save_CC
12966
12967fi
12968
12969case "x$ac_cv_prog_cc_stdc" in
12970  x|xno)
12971    echo "$as_me:$LINENO: result: none needed" >&5
12972echo "${ECHO_T}none needed" >&6 ;;
12973  *)
12974    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12975echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12976    CC="$CC $ac_cv_prog_cc_stdc" ;;
12977esac
12978
12979# Some people use a C++ compiler to compile C.  Since we use `exit',
12980# in C++ we need to declare it.  In case someone uses the same compiler
12981# for both compiling C and C++ we need to have the C++ compiler decide
12982# the declaration of exit, since it's the most demanding environment.
12983cat >conftest.$ac_ext <<_ACEOF
12984#ifndef __cplusplus
12985  choke me
12986#endif
12987_ACEOF
12988rm -f conftest.$ac_objext
12989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12990  (eval $ac_compile) 2>conftest.er1
12991  ac_status=$?
12992  grep -v '^ *+' conftest.er1 >conftest.err
12993  rm -f conftest.er1
12994  cat conftest.err >&5
12995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996  (exit $ac_status); } &&
12997	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999  (eval $ac_try) 2>&5
13000  ac_status=$?
13001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002  (exit $ac_status); }; } &&
13003	 { ac_try='test -s conftest.$ac_objext'
13004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005  (eval $ac_try) 2>&5
13006  ac_status=$?
13007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008  (exit $ac_status); }; }; then
13009  for ac_declaration in \
13010   '' \
13011   'extern "C" void std::exit (int) throw (); using std::exit;' \
13012   'extern "C" void std::exit (int); using std::exit;' \
13013   'extern "C" void exit (int) throw ();' \
13014   'extern "C" void exit (int);' \
13015   'void exit (int);'
13016do
13017  cat >conftest.$ac_ext <<_ACEOF
13018/* confdefs.h.  */
13019_ACEOF
13020cat confdefs.h >>conftest.$ac_ext
13021cat >>conftest.$ac_ext <<_ACEOF
13022/* end confdefs.h.  */
13023$ac_declaration
13024#include <stdlib.h>
13025int
13026main ()
13027{
13028exit (42);
13029  ;
13030  return 0;
13031}
13032_ACEOF
13033rm -f conftest.$ac_objext
13034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13035  (eval $ac_compile) 2>conftest.er1
13036  ac_status=$?
13037  grep -v '^ *+' conftest.er1 >conftest.err
13038  rm -f conftest.er1
13039  cat conftest.err >&5
13040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041  (exit $ac_status); } &&
13042	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044  (eval $ac_try) 2>&5
13045  ac_status=$?
13046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047  (exit $ac_status); }; } &&
13048	 { ac_try='test -s conftest.$ac_objext'
13049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050  (eval $ac_try) 2>&5
13051  ac_status=$?
13052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053  (exit $ac_status); }; }; then
13054  :
13055else
13056  echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059continue
13060fi
13061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13062  cat >conftest.$ac_ext <<_ACEOF
13063/* confdefs.h.  */
13064_ACEOF
13065cat confdefs.h >>conftest.$ac_ext
13066cat >>conftest.$ac_ext <<_ACEOF
13067/* end confdefs.h.  */
13068$ac_declaration
13069int
13070main ()
13071{
13072exit (42);
13073  ;
13074  return 0;
13075}
13076_ACEOF
13077rm -f conftest.$ac_objext
13078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13079  (eval $ac_compile) 2>conftest.er1
13080  ac_status=$?
13081  grep -v '^ *+' conftest.er1 >conftest.err
13082  rm -f conftest.er1
13083  cat conftest.err >&5
13084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085  (exit $ac_status); } &&
13086	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088  (eval $ac_try) 2>&5
13089  ac_status=$?
13090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091  (exit $ac_status); }; } &&
13092	 { ac_try='test -s conftest.$ac_objext'
13093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094  (eval $ac_try) 2>&5
13095  ac_status=$?
13096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097  (exit $ac_status); }; }; then
13098  break
13099else
13100  echo "$as_me: failed program was:" >&5
13101sed 's/^/| /' conftest.$ac_ext >&5
13102
13103fi
13104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13105done
13106rm -f conftest*
13107if test -n "$ac_declaration"; then
13108  echo '#ifdef __cplusplus' >>confdefs.h
13109  echo $ac_declaration      >>confdefs.h
13110  echo '#endif'             >>confdefs.h
13111fi
13112
13113else
13114  echo "$as_me: failed program was:" >&5
13115sed 's/^/| /' conftest.$ac_ext >&5
13116
13117fi
13118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13119ac_ext=c
13120ac_cpp='$CPP $CPPFLAGS'
13121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123ac_compiler_gnu=$ac_cv_c_compiler_gnu
13124
13125
13126
13127
13128    ac_ext=c
13129ac_cpp='$CPP $CPPFLAGS'
13130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13132ac_compiler_gnu=$ac_cv_c_compiler_gnu
13133
13134    echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
13135echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
13136if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
13137  echo $ECHO_N "(cached) $ECHO_C" >&6
13138else
13139  cat >conftest.$ac_ext <<_ACEOF
13140/* confdefs.h.  */
13141_ACEOF
13142cat confdefs.h >>conftest.$ac_ext
13143cat >>conftest.$ac_ext <<_ACEOF
13144/* end confdefs.h.  */
13145
13146int
13147main ()
13148{
13149
13150             #ifndef __INTEL_COMPILER
13151                choke me
13152             #endif
13153
13154  ;
13155  return 0;
13156}
13157_ACEOF
13158rm -f conftest.$ac_objext
13159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160  (eval $ac_compile) 2>conftest.er1
13161  ac_status=$?
13162  grep -v '^ *+' conftest.er1 >conftest.err
13163  rm -f conftest.er1
13164  cat conftest.err >&5
13165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166  (exit $ac_status); } &&
13167	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169  (eval $ac_try) 2>&5
13170  ac_status=$?
13171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172  (exit $ac_status); }; } &&
13173	 { ac_try='test -s conftest.$ac_objext'
13174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175  (eval $ac_try) 2>&5
13176  ac_status=$?
13177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178  (exit $ac_status); }; }; then
13179  bakefile_cv_c_compiler___INTEL_COMPILER=yes
13180else
13181  echo "$as_me: failed program was:" >&5
13182sed 's/^/| /' conftest.$ac_ext >&5
13183
13184bakefile_cv_c_compiler___INTEL_COMPILER=no
13185
13186fi
13187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13188
13189
13190fi
13191echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
13192echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
13193    if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
13194        :; INTELCC=yes
13195    else
13196        :;
13197    fi
13198    ac_ext=c
13199ac_cpp='$CPP $CPPFLAGS'
13200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202ac_compiler_gnu=$ac_cv_c_compiler_gnu
13203
13204
13205
13206
13207        if test "$INTELCC" = "yes"; then
13208
13209
13210    ac_ext=c
13211ac_cpp='$CPP $CPPFLAGS'
13212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214ac_compiler_gnu=$ac_cv_c_compiler_gnu
13215
13216    echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
13217echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6
13218if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
13219  echo $ECHO_N "(cached) $ECHO_C" >&6
13220else
13221  cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h.  */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h.  */
13227
13228int
13229main ()
13230{
13231
13232             #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
13233                choke me
13234             #endif
13235
13236  ;
13237  return 0;
13238}
13239_ACEOF
13240rm -f conftest.$ac_objext
13241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242  (eval $ac_compile) 2>conftest.er1
13243  ac_status=$?
13244  grep -v '^ *+' conftest.er1 >conftest.err
13245  rm -f conftest.er1
13246  cat conftest.err >&5
13247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248  (exit $ac_status); } &&
13249	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251  (eval $ac_try) 2>&5
13252  ac_status=$?
13253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254  (exit $ac_status); }; } &&
13255	 { ac_try='test -s conftest.$ac_objext'
13256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257  (eval $ac_try) 2>&5
13258  ac_status=$?
13259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260  (exit $ac_status); }; }; then
13261  bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
13262else
13263  echo "$as_me: failed program was:" >&5
13264sed 's/^/| /' conftest.$ac_ext >&5
13265
13266bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
13267
13268fi
13269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13270
13271
13272fi
13273echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
13274echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6
13275    if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
13276        :; INTELCC8=yes
13277    else
13278        :;
13279    fi
13280    ac_ext=c
13281ac_cpp='$CPP $CPPFLAGS'
13282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13284ac_compiler_gnu=$ac_cv_c_compiler_gnu
13285
13286
13287
13288
13289
13290    ac_ext=c
13291ac_cpp='$CPP $CPPFLAGS'
13292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13294ac_compiler_gnu=$ac_cv_c_compiler_gnu
13295
13296    echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
13297echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6
13298if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
13299  echo $ECHO_N "(cached) $ECHO_C" >&6
13300else
13301  cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h.  */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h.  */
13307
13308int
13309main ()
13310{
13311
13312             #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
13313                choke me
13314             #endif
13315
13316  ;
13317  return 0;
13318}
13319_ACEOF
13320rm -f conftest.$ac_objext
13321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13322  (eval $ac_compile) 2>conftest.er1
13323  ac_status=$?
13324  grep -v '^ *+' conftest.er1 >conftest.err
13325  rm -f conftest.er1
13326  cat conftest.err >&5
13327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328  (exit $ac_status); } &&
13329	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331  (eval $ac_try) 2>&5
13332  ac_status=$?
13333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334  (exit $ac_status); }; } &&
13335	 { ac_try='test -s conftest.$ac_objext'
13336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337  (eval $ac_try) 2>&5
13338  ac_status=$?
13339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340  (exit $ac_status); }; }; then
13341  bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
13342else
13343  echo "$as_me: failed program was:" >&5
13344sed 's/^/| /' conftest.$ac_ext >&5
13345
13346bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
13347
13348fi
13349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13350
13351
13352fi
13353echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
13354echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6
13355    if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
13356        :; INTELCC10=yes
13357    else
13358        :;
13359    fi
13360    ac_ext=c
13361ac_cpp='$CPP $CPPFLAGS'
13362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13364ac_compiler_gnu=$ac_cv_c_compiler_gnu
13365
13366
13367
13368    fi
13369
13370        if test "x$GCC" != "xyes"; then
13371        if test "xCC" = "xC"; then
13372            echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
13373echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
13374if test "${bakefile_cv_c_exto+set}" = set; then
13375  echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377  cat >conftest.$ac_ext <<_ACEOF
13378/* confdefs.h.  */
13379_ACEOF
13380cat confdefs.h >>conftest.$ac_ext
13381cat >>conftest.$ac_ext <<_ACEOF
13382/* end confdefs.h.  */
13383
13384int
13385main ()
13386{
13387
13388  ;
13389  return 0;
13390}
13391_ACEOF
13392rm -f conftest.$ac_objext conftest.$ac_ext.o
13393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13394  (eval $ac_compile) 2>&5
13395  ac_status=$?
13396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397  (exit $ac_status); }; then
13398  for ac_file in `(ls conftest.* 2>/dev/null)`; do
13399    case $ac_file in
13400        conftest.$ac_ext.o)
13401            bakefile_cv_c_exto="-ext o"
13402            ;;
13403        *)
13404            ;;
13405    esac
13406done
13407else
13408  { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13409See \`config.log' for more details." >&5
13410echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13411See \`config.log' for more details." >&2;}
13412   { (exit 1); exit 1; }; }
13413
13414fi
13415
13416rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13417
13418fi
13419echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13420echo "${ECHO_T}$bakefile_cv_c_exto" >&6
13421if test "x$bakefile_cv_c_exto" '!=' "x"; then
13422    if test "c" = "c"; then
13423        CFLAGS="$bakefile_cv_c_exto $CFLAGS"
13424    fi
13425    if test "c" = "cxx"; then
13426        CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
13427    fi
13428fi
13429
13430            if test "x$bakefile_cv_c_exto" '!=' "x"; then
13431                unset ac_cv_prog_cc_g
13432                ac_test_CFLAGS=${CFLAGS+set}
13433ac_save_CFLAGS=$CFLAGS
13434CFLAGS="$CFLAGS -g"
13435echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13436echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13437if test "${ac_cv_prog_cc_g+set}" = set; then
13438  echo $ECHO_N "(cached) $ECHO_C" >&6
13439else
13440  cat >conftest.$ac_ext <<_ACEOF
13441/* confdefs.h.  */
13442_ACEOF
13443cat confdefs.h >>conftest.$ac_ext
13444cat >>conftest.$ac_ext <<_ACEOF
13445/* end confdefs.h.  */
13446
13447int
13448main ()
13449{
13450
13451  ;
13452  return 0;
13453}
13454_ACEOF
13455rm -f conftest.$ac_objext
13456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13457  (eval $ac_compile) 2>conftest.er1
13458  ac_status=$?
13459  grep -v '^ *+' conftest.er1 >conftest.err
13460  rm -f conftest.er1
13461  cat conftest.err >&5
13462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463  (exit $ac_status); } &&
13464	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466  (eval $ac_try) 2>&5
13467  ac_status=$?
13468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469  (exit $ac_status); }; } &&
13470	 { ac_try='test -s conftest.$ac_objext'
13471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472  (eval $ac_try) 2>&5
13473  ac_status=$?
13474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475  (exit $ac_status); }; }; then
13476  ac_cv_prog_cc_g=yes
13477else
13478  echo "$as_me: failed program was:" >&5
13479sed 's/^/| /' conftest.$ac_ext >&5
13480
13481ac_cv_prog_cc_g=no
13482fi
13483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13484fi
13485echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13487if test "$ac_test_CFLAGS" = set; then
13488  CFLAGS=$ac_save_CFLAGS
13489elif test $ac_cv_prog_cc_g = yes; then
13490  if test "$GCC" = yes; then
13491    CFLAGS="-g -O2"
13492  else
13493    CFLAGS="-g"
13494  fi
13495else
13496  if test "$GCC" = yes; then
13497    CFLAGS="-O2"
13498  else
13499    CFLAGS=
13500  fi
13501fi
13502            fi
13503        fi
13504
13505                        case `uname -s` in
13506            AIX*)
13507
13508
13509    ac_ext=c
13510ac_cpp='$CPP $CPPFLAGS'
13511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13513ac_compiler_gnu=$ac_cv_c_compiler_gnu
13514
13515    echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13516echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13517if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
13518  echo $ECHO_N "(cached) $ECHO_C" >&6
13519else
13520  cat >conftest.$ac_ext <<_ACEOF
13521/* confdefs.h.  */
13522_ACEOF
13523cat confdefs.h >>conftest.$ac_ext
13524cat >>conftest.$ac_ext <<_ACEOF
13525/* end confdefs.h.  */
13526
13527int
13528main ()
13529{
13530
13531             #ifndef __xlC__
13532                choke me
13533             #endif
13534
13535  ;
13536  return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541  (eval $ac_compile) 2>conftest.er1
13542  ac_status=$?
13543  grep -v '^ *+' conftest.er1 >conftest.err
13544  rm -f conftest.er1
13545  cat conftest.err >&5
13546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547  (exit $ac_status); } &&
13548	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550  (eval $ac_try) 2>&5
13551  ac_status=$?
13552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553  (exit $ac_status); }; } &&
13554	 { ac_try='test -s conftest.$ac_objext'
13555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556  (eval $ac_try) 2>&5
13557  ac_status=$?
13558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559  (exit $ac_status); }; }; then
13560  bakefile_cv_c_compiler___xlC__=yes
13561else
13562  echo "$as_me: failed program was:" >&5
13563sed 's/^/| /' conftest.$ac_ext >&5
13564
13565bakefile_cv_c_compiler___xlC__=no
13566
13567fi
13568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569
13570
13571fi
13572echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
13573echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6
13574    if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
13575        :; XLCC=yes
13576    else
13577        :;
13578    fi
13579    ac_ext=c
13580ac_cpp='$CPP $CPPFLAGS'
13581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13583ac_compiler_gnu=$ac_cv_c_compiler_gnu
13584
13585
13586
13587                ;;
13588
13589            Darwin)
13590
13591
13592    ac_ext=c
13593ac_cpp='$CPP $CPPFLAGS'
13594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13596ac_compiler_gnu=$ac_cv_c_compiler_gnu
13597
13598    echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13599echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13600if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
13601  echo $ECHO_N "(cached) $ECHO_C" >&6
13602else
13603  cat >conftest.$ac_ext <<_ACEOF
13604/* confdefs.h.  */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h.  */
13609
13610int
13611main ()
13612{
13613
13614             #ifndef __MWERKS__
13615                choke me
13616             #endif
13617
13618  ;
13619  return 0;
13620}
13621_ACEOF
13622rm -f conftest.$ac_objext
13623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624  (eval $ac_compile) 2>conftest.er1
13625  ac_status=$?
13626  grep -v '^ *+' conftest.er1 >conftest.err
13627  rm -f conftest.er1
13628  cat conftest.err >&5
13629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630  (exit $ac_status); } &&
13631	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633  (eval $ac_try) 2>&5
13634  ac_status=$?
13635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636  (exit $ac_status); }; } &&
13637	 { ac_try='test -s conftest.$ac_objext'
13638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639  (eval $ac_try) 2>&5
13640  ac_status=$?
13641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642  (exit $ac_status); }; }; then
13643  bakefile_cv_c_compiler___MWERKS__=yes
13644else
13645  echo "$as_me: failed program was:" >&5
13646sed 's/^/| /' conftest.$ac_ext >&5
13647
13648bakefile_cv_c_compiler___MWERKS__=no
13649
13650fi
13651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13652
13653
13654fi
13655echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
13656echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6
13657    if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
13658        :; MWCC=yes
13659    else
13660        :;
13661    fi
13662    ac_ext=c
13663ac_cpp='$CPP $CPPFLAGS'
13664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666ac_compiler_gnu=$ac_cv_c_compiler_gnu
13667
13668
13669
13670                if test "$MWCC" != "yes"; then
13671
13672
13673    ac_ext=c
13674ac_cpp='$CPP $CPPFLAGS'
13675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678
13679    echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13680echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13681if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
13682  echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684  cat >conftest.$ac_ext <<_ACEOF
13685/* confdefs.h.  */
13686_ACEOF
13687cat confdefs.h >>conftest.$ac_ext
13688cat >>conftest.$ac_ext <<_ACEOF
13689/* end confdefs.h.  */
13690
13691int
13692main ()
13693{
13694
13695             #ifndef __xlC__
13696                choke me
13697             #endif
13698
13699  ;
13700  return 0;
13701}
13702_ACEOF
13703rm -f conftest.$ac_objext
13704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705  (eval $ac_compile) 2>conftest.er1
13706  ac_status=$?
13707  grep -v '^ *+' conftest.er1 >conftest.err
13708  rm -f conftest.er1
13709  cat conftest.err >&5
13710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711  (exit $ac_status); } &&
13712	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714  (eval $ac_try) 2>&5
13715  ac_status=$?
13716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717  (exit $ac_status); }; } &&
13718	 { ac_try='test -s conftest.$ac_objext'
13719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720  (eval $ac_try) 2>&5
13721  ac_status=$?
13722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723  (exit $ac_status); }; }; then
13724  bakefile_cv_c_compiler___xlC__=yes
13725else
13726  echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
13729bakefile_cv_c_compiler___xlC__=no
13730
13731fi
13732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13733
13734
13735fi
13736echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
13737echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6
13738    if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
13739        :; XLCC=yes
13740    else
13741        :;
13742    fi
13743    ac_ext=c
13744ac_cpp='$CPP $CPPFLAGS'
13745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13747ac_compiler_gnu=$ac_cv_c_compiler_gnu
13748
13749
13750
13751                fi
13752                ;;
13753
13754            IRIX*)
13755
13756
13757    ac_ext=c
13758ac_cpp='$CPP $CPPFLAGS'
13759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762
13763    echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13764echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13765if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13766  echo $ECHO_N "(cached) $ECHO_C" >&6
13767else
13768  cat >conftest.$ac_ext <<_ACEOF
13769/* confdefs.h.  */
13770_ACEOF
13771cat confdefs.h >>conftest.$ac_ext
13772cat >>conftest.$ac_ext <<_ACEOF
13773/* end confdefs.h.  */
13774
13775int
13776main ()
13777{
13778
13779             #ifndef _SGI_COMPILER_VERSION
13780                choke me
13781             #endif
13782
13783  ;
13784  return 0;
13785}
13786_ACEOF
13787rm -f conftest.$ac_objext
13788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789  (eval $ac_compile) 2>conftest.er1
13790  ac_status=$?
13791  grep -v '^ *+' conftest.er1 >conftest.err
13792  rm -f conftest.er1
13793  cat conftest.err >&5
13794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795  (exit $ac_status); } &&
13796	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798  (eval $ac_try) 2>&5
13799  ac_status=$?
13800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801  (exit $ac_status); }; } &&
13802	 { ac_try='test -s conftest.$ac_objext'
13803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804  (eval $ac_try) 2>&5
13805  ac_status=$?
13806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807  (exit $ac_status); }; }; then
13808  bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13809else
13810  echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
13813bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13814
13815fi
13816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817
13818
13819fi
13820echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13821echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13822    if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13823        :; SGICC=yes
13824    else
13825        :;
13826    fi
13827    ac_ext=c
13828ac_cpp='$CPP $CPPFLAGS'
13829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13831ac_compiler_gnu=$ac_cv_c_compiler_gnu
13832
13833
13834
13835                ;;
13836
13837            Linux*)
13838                                                if test "$INTELCC" != "yes"; then
13839
13840
13841    ac_ext=c
13842ac_cpp='$CPP $CPPFLAGS'
13843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13845ac_compiler_gnu=$ac_cv_c_compiler_gnu
13846
13847    echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13848echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13849if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13850  echo $ECHO_N "(cached) $ECHO_C" >&6
13851else
13852  cat >conftest.$ac_ext <<_ACEOF
13853/* confdefs.h.  */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h.  */
13858
13859int
13860main ()
13861{
13862
13863             #ifndef __SUNPRO_C
13864                choke me
13865             #endif
13866
13867  ;
13868  return 0;
13869}
13870_ACEOF
13871rm -f conftest.$ac_objext
13872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873  (eval $ac_compile) 2>conftest.er1
13874  ac_status=$?
13875  grep -v '^ *+' conftest.er1 >conftest.err
13876  rm -f conftest.er1
13877  cat conftest.err >&5
13878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879  (exit $ac_status); } &&
13880	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882  (eval $ac_try) 2>&5
13883  ac_status=$?
13884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885  (exit $ac_status); }; } &&
13886	 { ac_try='test -s conftest.$ac_objext'
13887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888  (eval $ac_try) 2>&5
13889  ac_status=$?
13890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891  (exit $ac_status); }; }; then
13892  bakefile_cv_c_compiler___SUNPRO_C=yes
13893else
13894  echo "$as_me: failed program was:" >&5
13895sed 's/^/| /' conftest.$ac_ext >&5
13896
13897bakefile_cv_c_compiler___SUNPRO_C=no
13898
13899fi
13900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13901
13902
13903fi
13904echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13905echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13906    if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13907        :; SUNCC=yes
13908    else
13909        :;
13910    fi
13911    ac_ext=c
13912ac_cpp='$CPP $CPPFLAGS'
13913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915ac_compiler_gnu=$ac_cv_c_compiler_gnu
13916
13917
13918
13919                fi
13920                ;;
13921
13922            HP-UX*)
13923
13924
13925    ac_ext=c
13926ac_cpp='$CPP $CPPFLAGS'
13927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13929ac_compiler_gnu=$ac_cv_c_compiler_gnu
13930
13931    echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13932echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13933if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
13934  echo $ECHO_N "(cached) $ECHO_C" >&6
13935else
13936  cat >conftest.$ac_ext <<_ACEOF
13937/* confdefs.h.  */
13938_ACEOF
13939cat confdefs.h >>conftest.$ac_ext
13940cat >>conftest.$ac_ext <<_ACEOF
13941/* end confdefs.h.  */
13942
13943int
13944main ()
13945{
13946
13947             #ifndef __HP_cc
13948                choke me
13949             #endif
13950
13951  ;
13952  return 0;
13953}
13954_ACEOF
13955rm -f conftest.$ac_objext
13956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13957  (eval $ac_compile) 2>conftest.er1
13958  ac_status=$?
13959  grep -v '^ *+' conftest.er1 >conftest.err
13960  rm -f conftest.er1
13961  cat conftest.err >&5
13962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963  (exit $ac_status); } &&
13964	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966  (eval $ac_try) 2>&5
13967  ac_status=$?
13968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969  (exit $ac_status); }; } &&
13970	 { ac_try='test -s conftest.$ac_objext'
13971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972  (eval $ac_try) 2>&5
13973  ac_status=$?
13974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975  (exit $ac_status); }; }; then
13976  bakefile_cv_c_compiler___HP_cc=yes
13977else
13978  echo "$as_me: failed program was:" >&5
13979sed 's/^/| /' conftest.$ac_ext >&5
13980
13981bakefile_cv_c_compiler___HP_cc=no
13982
13983fi
13984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13985
13986
13987fi
13988echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13989echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
13990    if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13991        :; HPCC=yes
13992    else
13993        :;
13994    fi
13995    ac_ext=c
13996ac_cpp='$CPP $CPPFLAGS'
13997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13999ac_compiler_gnu=$ac_cv_c_compiler_gnu
14000
14001
14002
14003                ;;
14004
14005            OSF1)
14006
14007
14008    ac_ext=c
14009ac_cpp='$CPP $CPPFLAGS'
14010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012ac_compiler_gnu=$ac_cv_c_compiler_gnu
14013
14014    echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
14015echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
14016if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
14017  echo $ECHO_N "(cached) $ECHO_C" >&6
14018else
14019  cat >conftest.$ac_ext <<_ACEOF
14020/* confdefs.h.  */
14021_ACEOF
14022cat confdefs.h >>conftest.$ac_ext
14023cat >>conftest.$ac_ext <<_ACEOF
14024/* end confdefs.h.  */
14025
14026int
14027main ()
14028{
14029
14030             #ifndef __DECC
14031                choke me
14032             #endif
14033
14034  ;
14035  return 0;
14036}
14037_ACEOF
14038rm -f conftest.$ac_objext
14039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040  (eval $ac_compile) 2>conftest.er1
14041  ac_status=$?
14042  grep -v '^ *+' conftest.er1 >conftest.err
14043  rm -f conftest.er1
14044  cat conftest.err >&5
14045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046  (exit $ac_status); } &&
14047	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049  (eval $ac_try) 2>&5
14050  ac_status=$?
14051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052  (exit $ac_status); }; } &&
14053	 { ac_try='test -s conftest.$ac_objext'
14054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055  (eval $ac_try) 2>&5
14056  ac_status=$?
14057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058  (exit $ac_status); }; }; then
14059  bakefile_cv_c_compiler___DECC=yes
14060else
14061  echo "$as_me: failed program was:" >&5
14062sed 's/^/| /' conftest.$ac_ext >&5
14063
14064bakefile_cv_c_compiler___DECC=no
14065
14066fi
14067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14068
14069
14070fi
14071echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
14072echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
14073    if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
14074        :; COMPAQCC=yes
14075    else
14076        :;
14077    fi
14078    ac_ext=c
14079ac_cpp='$CPP $CPPFLAGS'
14080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082ac_compiler_gnu=$ac_cv_c_compiler_gnu
14083
14084
14085
14086                ;;
14087
14088            SunOS)
14089
14090
14091    ac_ext=c
14092ac_cpp='$CPP $CPPFLAGS'
14093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14095ac_compiler_gnu=$ac_cv_c_compiler_gnu
14096
14097    echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
14098echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
14099if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
14100  echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102  cat >conftest.$ac_ext <<_ACEOF
14103/* confdefs.h.  */
14104_ACEOF
14105cat confdefs.h >>conftest.$ac_ext
14106cat >>conftest.$ac_ext <<_ACEOF
14107/* end confdefs.h.  */
14108
14109int
14110main ()
14111{
14112
14113             #ifndef __SUNPRO_C
14114                choke me
14115             #endif
14116
14117  ;
14118  return 0;
14119}
14120_ACEOF
14121rm -f conftest.$ac_objext
14122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123  (eval $ac_compile) 2>conftest.er1
14124  ac_status=$?
14125  grep -v '^ *+' conftest.er1 >conftest.err
14126  rm -f conftest.er1
14127  cat conftest.err >&5
14128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129  (exit $ac_status); } &&
14130	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132  (eval $ac_try) 2>&5
14133  ac_status=$?
14134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135  (exit $ac_status); }; } &&
14136	 { ac_try='test -s conftest.$ac_objext'
14137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138  (eval $ac_try) 2>&5
14139  ac_status=$?
14140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141  (exit $ac_status); }; }; then
14142  bakefile_cv_c_compiler___SUNPRO_C=yes
14143else
14144  echo "$as_me: failed program was:" >&5
14145sed 's/^/| /' conftest.$ac_ext >&5
14146
14147bakefile_cv_c_compiler___SUNPRO_C=no
14148
14149fi
14150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14151
14152
14153fi
14154echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
14155echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
14156    if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
14157        :; SUNCC=yes
14158    else
14159        :;
14160    fi
14161    ac_ext=c
14162ac_cpp='$CPP $CPPFLAGS'
14163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14165ac_compiler_gnu=$ac_cv_c_compiler_gnu
14166
14167
14168
14169                ;;
14170        esac
14171    fi
14172
14173
14174
14175ac_ext=c
14176ac_cpp='$CPP $CPPFLAGS'
14177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14179ac_compiler_gnu=$ac_cv_c_compiler_gnu
14180echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14181echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
14182# On Suns, sometimes $CPP names a directory.
14183if test -n "$CPP" && test -d "$CPP"; then
14184  CPP=
14185fi
14186if test -z "$CPP"; then
14187  if test "${ac_cv_prog_CPP+set}" = set; then
14188  echo $ECHO_N "(cached) $ECHO_C" >&6
14189else
14190      # Double quotes because CPP needs to be expanded
14191    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14192    do
14193      ac_preproc_ok=false
14194for ac_c_preproc_warn_flag in '' yes
14195do
14196  # Use a header file that comes with gcc, so configuring glibc
14197  # with a fresh cross-compiler works.
14198  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14199  # <limits.h> exists even on freestanding compilers.
14200  # On the NeXT, cc -E runs the code through the compiler's parser,
14201  # not just through cpp. "Syntax error" is here to catch this case.
14202  cat >conftest.$ac_ext <<_ACEOF
14203/* confdefs.h.  */
14204_ACEOF
14205cat confdefs.h >>conftest.$ac_ext
14206cat >>conftest.$ac_ext <<_ACEOF
14207/* end confdefs.h.  */
14208#ifdef __STDC__
14209# include <limits.h>
14210#else
14211# include <assert.h>
14212#endif
14213		     Syntax error
14214_ACEOF
14215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14216  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14217  ac_status=$?
14218  grep -v '^ *+' conftest.er1 >conftest.err
14219  rm -f conftest.er1
14220  cat conftest.err >&5
14221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222  (exit $ac_status); } >/dev/null; then
14223  if test -s conftest.err; then
14224    ac_cpp_err=$ac_c_preproc_warn_flag
14225    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14226  else
14227    ac_cpp_err=
14228  fi
14229else
14230  ac_cpp_err=yes
14231fi
14232if test -z "$ac_cpp_err"; then
14233  :
14234else
14235  echo "$as_me: failed program was:" >&5
14236sed 's/^/| /' conftest.$ac_ext >&5
14237
14238  # Broken: fails on valid input.
14239continue
14240fi
14241rm -f conftest.err conftest.$ac_ext
14242
14243  # OK, works on sane cases.  Now check whether non-existent headers
14244  # can be detected and how.
14245  cat >conftest.$ac_ext <<_ACEOF
14246/* confdefs.h.  */
14247_ACEOF
14248cat confdefs.h >>conftest.$ac_ext
14249cat >>conftest.$ac_ext <<_ACEOF
14250/* end confdefs.h.  */
14251#include <ac_nonexistent.h>
14252_ACEOF
14253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14255  ac_status=$?
14256  grep -v '^ *+' conftest.er1 >conftest.err
14257  rm -f conftest.er1
14258  cat conftest.err >&5
14259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260  (exit $ac_status); } >/dev/null; then
14261  if test -s conftest.err; then
14262    ac_cpp_err=$ac_c_preproc_warn_flag
14263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14264  else
14265    ac_cpp_err=
14266  fi
14267else
14268  ac_cpp_err=yes
14269fi
14270if test -z "$ac_cpp_err"; then
14271  # Broken: success on invalid input.
14272continue
14273else
14274  echo "$as_me: failed program was:" >&5
14275sed 's/^/| /' conftest.$ac_ext >&5
14276
14277  # Passes both tests.
14278ac_preproc_ok=:
14279break
14280fi
14281rm -f conftest.err conftest.$ac_ext
14282
14283done
14284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14285rm -f conftest.err conftest.$ac_ext
14286if $ac_preproc_ok; then
14287  break
14288fi
14289
14290    done
14291    ac_cv_prog_CPP=$CPP
14292
14293fi
14294  CPP=$ac_cv_prog_CPP
14295else
14296  ac_cv_prog_CPP=$CPP
14297fi
14298echo "$as_me:$LINENO: result: $CPP" >&5
14299echo "${ECHO_T}$CPP" >&6
14300ac_preproc_ok=false
14301for ac_c_preproc_warn_flag in '' yes
14302do
14303  # Use a header file that comes with gcc, so configuring glibc
14304  # with a fresh cross-compiler works.
14305  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14306  # <limits.h> exists even on freestanding compilers.
14307  # On the NeXT, cc -E runs the code through the compiler's parser,
14308  # not just through cpp. "Syntax error" is here to catch this case.
14309  cat >conftest.$ac_ext <<_ACEOF
14310/* confdefs.h.  */
14311_ACEOF
14312cat confdefs.h >>conftest.$ac_ext
14313cat >>conftest.$ac_ext <<_ACEOF
14314/* end confdefs.h.  */
14315#ifdef __STDC__
14316# include <limits.h>
14317#else
14318# include <assert.h>
14319#endif
14320		     Syntax error
14321_ACEOF
14322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14323  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14324  ac_status=$?
14325  grep -v '^ *+' conftest.er1 >conftest.err
14326  rm -f conftest.er1
14327  cat conftest.err >&5
14328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329  (exit $ac_status); } >/dev/null; then
14330  if test -s conftest.err; then
14331    ac_cpp_err=$ac_c_preproc_warn_flag
14332    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14333  else
14334    ac_cpp_err=
14335  fi
14336else
14337  ac_cpp_err=yes
14338fi
14339if test -z "$ac_cpp_err"; then
14340  :
14341else
14342  echo "$as_me: failed program was:" >&5
14343sed 's/^/| /' conftest.$ac_ext >&5
14344
14345  # Broken: fails on valid input.
14346continue
14347fi
14348rm -f conftest.err conftest.$ac_ext
14349
14350  # OK, works on sane cases.  Now check whether non-existent headers
14351  # can be detected and how.
14352  cat >conftest.$ac_ext <<_ACEOF
14353/* confdefs.h.  */
14354_ACEOF
14355cat confdefs.h >>conftest.$ac_ext
14356cat >>conftest.$ac_ext <<_ACEOF
14357/* end confdefs.h.  */
14358#include <ac_nonexistent.h>
14359_ACEOF
14360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14362  ac_status=$?
14363  grep -v '^ *+' conftest.er1 >conftest.err
14364  rm -f conftest.er1
14365  cat conftest.err >&5
14366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367  (exit $ac_status); } >/dev/null; then
14368  if test -s conftest.err; then
14369    ac_cpp_err=$ac_c_preproc_warn_flag
14370    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14371  else
14372    ac_cpp_err=
14373  fi
14374else
14375  ac_cpp_err=yes
14376fi
14377if test -z "$ac_cpp_err"; then
14378  # Broken: success on invalid input.
14379continue
14380else
14381  echo "$as_me: failed program was:" >&5
14382sed 's/^/| /' conftest.$ac_ext >&5
14383
14384  # Passes both tests.
14385ac_preproc_ok=:
14386break
14387fi
14388rm -f conftest.err conftest.$ac_ext
14389
14390done
14391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14392rm -f conftest.err conftest.$ac_ext
14393if $ac_preproc_ok; then
14394  :
14395else
14396  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14397See \`config.log' for more details." >&5
14398echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14399See \`config.log' for more details." >&2;}
14400   { (exit 1); exit 1; }; }
14401fi
14402
14403ac_ext=c
14404ac_cpp='$CPP $CPPFLAGS'
14405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14407ac_compiler_gnu=$ac_cv_c_compiler_gnu
14408
14409
14410echo "$as_me:$LINENO: checking for egrep" >&5
14411echo $ECHO_N "checking for egrep... $ECHO_C" >&6
14412if test "${ac_cv_prog_egrep+set}" = set; then
14413  echo $ECHO_N "(cached) $ECHO_C" >&6
14414else
14415  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
14416    then ac_cv_prog_egrep='grep -E'
14417    else ac_cv_prog_egrep='egrep'
14418    fi
14419fi
14420echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
14421echo "${ECHO_T}$ac_cv_prog_egrep" >&6
14422 EGREP=$ac_cv_prog_egrep
14423
14424
14425if test $ac_cv_c_compiler_gnu = yes; then
14426    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
14427echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
14428if test "${ac_cv_prog_gcc_traditional+set}" = set; then
14429  echo $ECHO_N "(cached) $ECHO_C" >&6
14430else
14431    ac_pattern="Autoconf.*'x'"
14432  cat >conftest.$ac_ext <<_ACEOF
14433/* confdefs.h.  */
14434_ACEOF
14435cat confdefs.h >>conftest.$ac_ext
14436cat >>conftest.$ac_ext <<_ACEOF
14437/* end confdefs.h.  */
14438#include <sgtty.h>
14439Autoconf TIOCGETP
14440_ACEOF
14441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14442  $EGREP "$ac_pattern" >/dev/null 2>&1; then
14443  ac_cv_prog_gcc_traditional=yes
14444else
14445  ac_cv_prog_gcc_traditional=no
14446fi
14447rm -f conftest*
14448
14449
14450  if test $ac_cv_prog_gcc_traditional = no; then
14451    cat >conftest.$ac_ext <<_ACEOF
14452/* confdefs.h.  */
14453_ACEOF
14454cat confdefs.h >>conftest.$ac_ext
14455cat >>conftest.$ac_ext <<_ACEOF
14456/* end confdefs.h.  */
14457#include <termio.h>
14458Autoconf TCGETA
14459_ACEOF
14460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14461  $EGREP "$ac_pattern" >/dev/null 2>&1; then
14462  ac_cv_prog_gcc_traditional=yes
14463fi
14464rm -f conftest*
14465
14466  fi
14467fi
14468echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14469echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
14470  if test $ac_cv_prog_gcc_traditional = yes; then
14471    CC="$CC -traditional"
14472  fi
14473fi
14474
14475
14476CXXFLAGS=${CXXFLAGS:=}
14477
14478
14479
14480    ac_ext=cc
14481ac_cpp='$CXXCPP $CPPFLAGS'
14482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14485if test -n "$ac_tool_prefix"; then
14486  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14487  do
14488    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14490echo "$as_me:$LINENO: checking for $ac_word" >&5
14491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14492if test "${ac_cv_prog_CXX+set}" = set; then
14493  echo $ECHO_N "(cached) $ECHO_C" >&6
14494else
14495  if test -n "$CXX"; then
14496  ac_cv_prog_CXX="$CXX" # Let the user override the test.
14497else
14498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499for as_dir in $PATH
14500do
14501  IFS=$as_save_IFS
14502  test -z "$as_dir" && as_dir=.
14503  for ac_exec_ext in '' $ac_executable_extensions; do
14504  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14505    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14507    break 2
14508  fi
14509done
14510done
14511
14512fi
14513fi
14514CXX=$ac_cv_prog_CXX
14515if test -n "$CXX"; then
14516  echo "$as_me:$LINENO: result: $CXX" >&5
14517echo "${ECHO_T}$CXX" >&6
14518else
14519  echo "$as_me:$LINENO: result: no" >&5
14520echo "${ECHO_T}no" >&6
14521fi
14522
14523    test -n "$CXX" && break
14524  done
14525fi
14526if test -z "$CXX"; then
14527  ac_ct_CXX=$CXX
14528  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14529do
14530  # Extract the first word of "$ac_prog", so it can be a program name with args.
14531set dummy $ac_prog; ac_word=$2
14532echo "$as_me:$LINENO: checking for $ac_word" >&5
14533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14534if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14535  echo $ECHO_N "(cached) $ECHO_C" >&6
14536else
14537  if test -n "$ac_ct_CXX"; then
14538  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14539else
14540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14541for as_dir in $PATH
14542do
14543  IFS=$as_save_IFS
14544  test -z "$as_dir" && as_dir=.
14545  for ac_exec_ext in '' $ac_executable_extensions; do
14546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14547    ac_cv_prog_ac_ct_CXX="$ac_prog"
14548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14549    break 2
14550  fi
14551done
14552done
14553
14554fi
14555fi
14556ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14557if test -n "$ac_ct_CXX"; then
14558  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14559echo "${ECHO_T}$ac_ct_CXX" >&6
14560else
14561  echo "$as_me:$LINENO: result: no" >&5
14562echo "${ECHO_T}no" >&6
14563fi
14564
14565  test -n "$ac_ct_CXX" && break
14566done
14567test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
14568
14569  CXX=$ac_ct_CXX
14570fi
14571
14572
14573# Provide some information about the compiler.
14574echo "$as_me:$LINENO:" \
14575     "checking for C++ compiler version" >&5
14576ac_compiler=`set X $ac_compile; echo $2`
14577{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14578  (eval $ac_compiler --version </dev/null >&5) 2>&5
14579  ac_status=$?
14580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581  (exit $ac_status); }
14582{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14583  (eval $ac_compiler -v </dev/null >&5) 2>&5
14584  ac_status=$?
14585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586  (exit $ac_status); }
14587{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14588  (eval $ac_compiler -V </dev/null >&5) 2>&5
14589  ac_status=$?
14590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591  (exit $ac_status); }
14592
14593echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14594echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
14595if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14596  echo $ECHO_N "(cached) $ECHO_C" >&6
14597else
14598  cat >conftest.$ac_ext <<_ACEOF
14599/* confdefs.h.  */
14600_ACEOF
14601cat confdefs.h >>conftest.$ac_ext
14602cat >>conftest.$ac_ext <<_ACEOF
14603/* end confdefs.h.  */
14604
14605int
14606main ()
14607{
14608#ifndef __GNUC__
14609       choke me
14610#endif
14611
14612  ;
14613  return 0;
14614}
14615_ACEOF
14616rm -f conftest.$ac_objext
14617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618  (eval $ac_compile) 2>conftest.er1
14619  ac_status=$?
14620  grep -v '^ *+' conftest.er1 >conftest.err
14621  rm -f conftest.er1
14622  cat conftest.err >&5
14623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624  (exit $ac_status); } &&
14625	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627  (eval $ac_try) 2>&5
14628  ac_status=$?
14629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630  (exit $ac_status); }; } &&
14631	 { ac_try='test -s conftest.$ac_objext'
14632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633  (eval $ac_try) 2>&5
14634  ac_status=$?
14635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636  (exit $ac_status); }; }; then
14637  ac_compiler_gnu=yes
14638else
14639  echo "$as_me: failed program was:" >&5
14640sed 's/^/| /' conftest.$ac_ext >&5
14641
14642ac_compiler_gnu=no
14643fi
14644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14645ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14646
14647fi
14648echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14649echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14650GXX=`test $ac_compiler_gnu = yes && echo yes`
14651ac_test_CXXFLAGS=${CXXFLAGS+set}
14652ac_save_CXXFLAGS=$CXXFLAGS
14653CXXFLAGS="-g"
14654echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14655echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14656if test "${ac_cv_prog_cxx_g+set}" = set; then
14657  echo $ECHO_N "(cached) $ECHO_C" >&6
14658else
14659  cat >conftest.$ac_ext <<_ACEOF
14660/* confdefs.h.  */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h.  */
14665
14666int
14667main ()
14668{
14669
14670  ;
14671  return 0;
14672}
14673_ACEOF
14674rm -f conftest.$ac_objext
14675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14676  (eval $ac_compile) 2>conftest.er1
14677  ac_status=$?
14678  grep -v '^ *+' conftest.er1 >conftest.err
14679  rm -f conftest.er1
14680  cat conftest.err >&5
14681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682  (exit $ac_status); } &&
14683	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685  (eval $ac_try) 2>&5
14686  ac_status=$?
14687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688  (exit $ac_status); }; } &&
14689	 { ac_try='test -s conftest.$ac_objext'
14690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691  (eval $ac_try) 2>&5
14692  ac_status=$?
14693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694  (exit $ac_status); }; }; then
14695  ac_cv_prog_cxx_g=yes
14696else
14697  echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
14700ac_cv_prog_cxx_g=no
14701fi
14702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14703fi
14704echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14705echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14706if test "$ac_test_CXXFLAGS" = set; then
14707  CXXFLAGS=$ac_save_CXXFLAGS
14708elif test $ac_cv_prog_cxx_g = yes; then
14709  if test "$GXX" = yes; then
14710    CXXFLAGS="$CXXFLAGS -g -O2"
14711  else
14712    CXXFLAGS="$CXXFLAGS -g"
14713  fi
14714else
14715  if test "$GXX" = yes; then
14716    CXXFLAGS="-O2"
14717  else
14718    CXXFLAGS=
14719  fi
14720fi
14721for ac_declaration in \
14722   '' \
14723   'extern "C" void std::exit (int) throw (); using std::exit;' \
14724   'extern "C" void std::exit (int); using std::exit;' \
14725   'extern "C" void exit (int) throw ();' \
14726   'extern "C" void exit (int);' \
14727   'void exit (int);'
14728do
14729  cat >conftest.$ac_ext <<_ACEOF
14730/* confdefs.h.  */
14731_ACEOF
14732cat confdefs.h >>conftest.$ac_ext
14733cat >>conftest.$ac_ext <<_ACEOF
14734/* end confdefs.h.  */
14735$ac_declaration
14736#include <stdlib.h>
14737int
14738main ()
14739{
14740exit (42);
14741  ;
14742  return 0;
14743}
14744_ACEOF
14745rm -f conftest.$ac_objext
14746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14747  (eval $ac_compile) 2>conftest.er1
14748  ac_status=$?
14749  grep -v '^ *+' conftest.er1 >conftest.err
14750  rm -f conftest.er1
14751  cat conftest.err >&5
14752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753  (exit $ac_status); } &&
14754	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756  (eval $ac_try) 2>&5
14757  ac_status=$?
14758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759  (exit $ac_status); }; } &&
14760	 { ac_try='test -s conftest.$ac_objext'
14761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762  (eval $ac_try) 2>&5
14763  ac_status=$?
14764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765  (exit $ac_status); }; }; then
14766  :
14767else
14768  echo "$as_me: failed program was:" >&5
14769sed 's/^/| /' conftest.$ac_ext >&5
14770
14771continue
14772fi
14773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14774  cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h.  */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h.  */
14780$ac_declaration
14781int
14782main ()
14783{
14784exit (42);
14785  ;
14786  return 0;
14787}
14788_ACEOF
14789rm -f conftest.$ac_objext
14790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791  (eval $ac_compile) 2>conftest.er1
14792  ac_status=$?
14793  grep -v '^ *+' conftest.er1 >conftest.err
14794  rm -f conftest.er1
14795  cat conftest.err >&5
14796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797  (exit $ac_status); } &&
14798	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800  (eval $ac_try) 2>&5
14801  ac_status=$?
14802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803  (exit $ac_status); }; } &&
14804	 { ac_try='test -s conftest.$ac_objext'
14805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806  (eval $ac_try) 2>&5
14807  ac_status=$?
14808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809  (exit $ac_status); }; }; then
14810  break
14811else
14812  echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815fi
14816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14817done
14818rm -f conftest*
14819if test -n "$ac_declaration"; then
14820  echo '#ifdef __cplusplus' >>confdefs.h
14821  echo $ac_declaration      >>confdefs.h
14822  echo '#endif'             >>confdefs.h
14823fi
14824
14825ac_ext=c
14826ac_cpp='$CPP $CPPFLAGS'
14827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14829ac_compiler_gnu=$ac_cv_c_compiler_gnu
14830
14831
14832
14833
14834    ac_ext=cc
14835ac_cpp='$CXXCPP $CPPFLAGS'
14836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14839
14840    echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14841echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14842if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14843  echo $ECHO_N "(cached) $ECHO_C" >&6
14844else
14845  cat >conftest.$ac_ext <<_ACEOF
14846/* confdefs.h.  */
14847_ACEOF
14848cat confdefs.h >>conftest.$ac_ext
14849cat >>conftest.$ac_ext <<_ACEOF
14850/* end confdefs.h.  */
14851
14852int
14853main ()
14854{
14855
14856             #ifndef __INTEL_COMPILER
14857                choke me
14858             #endif
14859
14860  ;
14861  return 0;
14862}
14863_ACEOF
14864rm -f conftest.$ac_objext
14865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14866  (eval $ac_compile) 2>conftest.er1
14867  ac_status=$?
14868  grep -v '^ *+' conftest.er1 >conftest.err
14869  rm -f conftest.er1
14870  cat conftest.err >&5
14871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872  (exit $ac_status); } &&
14873	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875  (eval $ac_try) 2>&5
14876  ac_status=$?
14877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878  (exit $ac_status); }; } &&
14879	 { ac_try='test -s conftest.$ac_objext'
14880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881  (eval $ac_try) 2>&5
14882  ac_status=$?
14883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884  (exit $ac_status); }; }; then
14885  bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14886else
14887  echo "$as_me: failed program was:" >&5
14888sed 's/^/| /' conftest.$ac_ext >&5
14889
14890bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14891
14892fi
14893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14894
14895
14896fi
14897echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14898echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14899    if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14900        :; INTELCXX=yes
14901    else
14902        :;
14903    fi
14904    ac_ext=c
14905ac_cpp='$CPP $CPPFLAGS'
14906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14908ac_compiler_gnu=$ac_cv_c_compiler_gnu
14909
14910
14911
14912
14913        if test "$INTELCXX" = "yes"; then
14914
14915
14916    ac_ext=cc
14917ac_cpp='$CXXCPP $CPPFLAGS'
14918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14921
14922    echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
14923echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6
14924if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
14925  echo $ECHO_N "(cached) $ECHO_C" >&6
14926else
14927  cat >conftest.$ac_ext <<_ACEOF
14928/* confdefs.h.  */
14929_ACEOF
14930cat confdefs.h >>conftest.$ac_ext
14931cat >>conftest.$ac_ext <<_ACEOF
14932/* end confdefs.h.  */
14933
14934int
14935main ()
14936{
14937
14938             #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
14939                choke me
14940             #endif
14941
14942  ;
14943  return 0;
14944}
14945_ACEOF
14946rm -f conftest.$ac_objext
14947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14948  (eval $ac_compile) 2>conftest.er1
14949  ac_status=$?
14950  grep -v '^ *+' conftest.er1 >conftest.err
14951  rm -f conftest.er1
14952  cat conftest.err >&5
14953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954  (exit $ac_status); } &&
14955	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957  (eval $ac_try) 2>&5
14958  ac_status=$?
14959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960  (exit $ac_status); }; } &&
14961	 { ac_try='test -s conftest.$ac_objext'
14962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963  (eval $ac_try) 2>&5
14964  ac_status=$?
14965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966  (exit $ac_status); }; }; then
14967  bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
14968else
14969  echo "$as_me: failed program was:" >&5
14970sed 's/^/| /' conftest.$ac_ext >&5
14971
14972bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
14973
14974fi
14975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14976
14977
14978fi
14979echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
14980echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6
14981    if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
14982        :; INTELCXX8=yes
14983    else
14984        :;
14985    fi
14986    ac_ext=c
14987ac_cpp='$CPP $CPPFLAGS'
14988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14990ac_compiler_gnu=$ac_cv_c_compiler_gnu
14991
14992
14993
14994
14995
14996    ac_ext=cc
14997ac_cpp='$CXXCPP $CPPFLAGS'
14998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15001
15002    echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
15003echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6
15004if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15005  echo $ECHO_N "(cached) $ECHO_C" >&6
15006else
15007  cat >conftest.$ac_ext <<_ACEOF
15008/* confdefs.h.  */
15009_ACEOF
15010cat confdefs.h >>conftest.$ac_ext
15011cat >>conftest.$ac_ext <<_ACEOF
15012/* end confdefs.h.  */
15013
15014int
15015main ()
15016{
15017
15018             #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15019                choke me
15020             #endif
15021
15022  ;
15023  return 0;
15024}
15025_ACEOF
15026rm -f conftest.$ac_objext
15027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028  (eval $ac_compile) 2>conftest.er1
15029  ac_status=$?
15030  grep -v '^ *+' conftest.er1 >conftest.err
15031  rm -f conftest.er1
15032  cat conftest.err >&5
15033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034  (exit $ac_status); } &&
15035	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037  (eval $ac_try) 2>&5
15038  ac_status=$?
15039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040  (exit $ac_status); }; } &&
15041	 { ac_try='test -s conftest.$ac_objext'
15042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043  (eval $ac_try) 2>&5
15044  ac_status=$?
15045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046  (exit $ac_status); }; }; then
15047  bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
15048else
15049  echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
15051
15052bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
15053
15054fi
15055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15056
15057
15058fi
15059echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
15060echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6
15061    if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15062        :; INTELCXX10=yes
15063    else
15064        :;
15065    fi
15066    ac_ext=c
15067ac_cpp='$CPP $CPPFLAGS'
15068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15070ac_compiler_gnu=$ac_cv_c_compiler_gnu
15071
15072
15073
15074    fi
15075
15076        if test "x$GCXX" != "xyes"; then
15077        if test "xCXX" = "xC"; then
15078            echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15079echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
15080if test "${bakefile_cv_c_exto+set}" = set; then
15081  echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
15083  cat >conftest.$ac_ext <<_ACEOF
15084/* confdefs.h.  */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h.  */
15089
15090int
15091main ()
15092{
15093
15094  ;
15095  return 0;
15096}
15097_ACEOF
15098rm -f conftest.$ac_objext conftest.$ac_ext.o
15099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100  (eval $ac_compile) 2>&5
15101  ac_status=$?
15102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103  (exit $ac_status); }; then
15104  for ac_file in `(ls conftest.* 2>/dev/null)`; do
15105    case $ac_file in
15106        conftest.$ac_ext.o)
15107            bakefile_cv_c_exto="-ext o"
15108            ;;
15109        *)
15110            ;;
15111    esac
15112done
15113else
15114  { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15115See \`config.log' for more details." >&5
15116echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15117See \`config.log' for more details." >&2;}
15118   { (exit 1); exit 1; }; }
15119
15120fi
15121
15122rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15123
15124fi
15125echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15126echo "${ECHO_T}$bakefile_cv_c_exto" >&6
15127if test "x$bakefile_cv_c_exto" '!=' "x"; then
15128    if test "c" = "c"; then
15129        CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15130    fi
15131    if test "c" = "cxx"; then
15132        CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15133    fi
15134fi
15135
15136            if test "x$bakefile_cv_c_exto" '!=' "x"; then
15137                unset ac_cv_prog_cc_g
15138                ac_test_CFLAGS=${CFLAGS+set}
15139ac_save_CFLAGS=$CFLAGS
15140CFLAGS="$CFLAGS -g"
15141echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15142echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15143if test "${ac_cv_prog_cc_g+set}" = set; then
15144  echo $ECHO_N "(cached) $ECHO_C" >&6
15145else
15146  cat >conftest.$ac_ext <<_ACEOF
15147/* confdefs.h.  */
15148_ACEOF
15149cat confdefs.h >>conftest.$ac_ext
15150cat >>conftest.$ac_ext <<_ACEOF
15151/* end confdefs.h.  */
15152
15153int
15154main ()
15155{
15156
15157  ;
15158  return 0;
15159}
15160_ACEOF
15161rm -f conftest.$ac_objext
15162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163  (eval $ac_compile) 2>conftest.er1
15164  ac_status=$?
15165  grep -v '^ *+' conftest.er1 >conftest.err
15166  rm -f conftest.er1
15167  cat conftest.err >&5
15168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169  (exit $ac_status); } &&
15170	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
15171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172  (eval $ac_try) 2>&5
15173  ac_status=$?
15174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175  (exit $ac_status); }; } &&
15176	 { ac_try='test -s conftest.$ac_objext'
15177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178  (eval $ac_try) 2>&5
15179  ac_status=$?
15180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181  (exit $ac_status); }; }; then
15182  ac_cv_prog_cc_g=yes
15183else
15184  echo "$as_me: failed program was:" >&5
15185sed 's/^/| /' conftest.$ac_ext >&5
15186
15187ac_cv_prog_cc_g=no
15188fi
15189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15190fi
15191echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15192echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15193if test "$ac_test_CFLAGS" = set; then
15194  CFLAGS=$ac_save_CFLAGS
15195elif test $ac_cv_prog_cc_g = yes; then
15196  if test "$GCC" = yes; then
15197    CFLAGS="-g -O2"
15198  else
15199    CFLAGS="-g"
15200  fi
15201else
15202  if test "$GCC" = yes; then
15203    CFLAGS="-O2"
15204  else
15205    CFLAGS=
15206  fi
15207fi
15208            fi
15209        fi
15210
15211                        case `uname -s` in
15212            AIX*)
15213
15214
15215    ac_ext=cc
15216ac_cpp='$CXXCPP $CPPFLAGS'
15217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15220
15221    echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
15222echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
15223if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
15224  echo $ECHO_N "(cached) $ECHO_C" >&6
15225else
15226  cat >conftest.$ac_ext <<_ACEOF
15227/* confdefs.h.  */
15228_ACEOF
15229cat confdefs.h >>conftest.$ac_ext
15230cat >>conftest.$ac_ext <<_ACEOF
15231/* end confdefs.h.  */
15232
15233int
15234main ()
15235{
15236
15237             #ifndef __xlC__
15238                choke me
15239             #endif
15240
15241  ;
15242  return 0;
15243}
15244_ACEOF
15245rm -f conftest.$ac_objext
15246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15247  (eval $ac_compile) 2>conftest.er1
15248  ac_status=$?
15249  grep -v '^ *+' conftest.er1 >conftest.err
15250  rm -f conftest.er1
15251  cat conftest.err >&5
15252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253  (exit $ac_status); } &&
15254	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256  (eval $ac_try) 2>&5
15257  ac_status=$?
15258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259  (exit $ac_status); }; } &&
15260	 { ac_try='test -s conftest.$ac_objext'
15261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262  (eval $ac_try) 2>&5
15263  ac_status=$?
15264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265  (exit $ac_status); }; }; then
15266  bakefile_cv_cxx_compiler___xlC__=yes
15267else
15268  echo "$as_me: failed program was:" >&5
15269sed 's/^/| /' conftest.$ac_ext >&5
15270
15271bakefile_cv_cxx_compiler___xlC__=no
15272
15273fi
15274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15275
15276
15277fi
15278echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
15279echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6
15280    if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
15281        :; XLCXX=yes
15282    else
15283        :;
15284    fi
15285    ac_ext=c
15286ac_cpp='$CPP $CPPFLAGS'
15287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289ac_compiler_gnu=$ac_cv_c_compiler_gnu
15290
15291
15292
15293                ;;
15294
15295            Darwin)
15296
15297
15298    ac_ext=cc
15299ac_cpp='$CXXCPP $CPPFLAGS'
15300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15303
15304    echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
15305echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
15306if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
15307  echo $ECHO_N "(cached) $ECHO_C" >&6
15308else
15309  cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h.  */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h.  */
15315
15316int
15317main ()
15318{
15319
15320             #ifndef __MWERKS__
15321                choke me
15322             #endif
15323
15324  ;
15325  return 0;
15326}
15327_ACEOF
15328rm -f conftest.$ac_objext
15329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330  (eval $ac_compile) 2>conftest.er1
15331  ac_status=$?
15332  grep -v '^ *+' conftest.er1 >conftest.err
15333  rm -f conftest.er1
15334  cat conftest.err >&5
15335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336  (exit $ac_status); } &&
15337	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339  (eval $ac_try) 2>&5
15340  ac_status=$?
15341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342  (exit $ac_status); }; } &&
15343	 { ac_try='test -s conftest.$ac_objext'
15344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345  (eval $ac_try) 2>&5
15346  ac_status=$?
15347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348  (exit $ac_status); }; }; then
15349  bakefile_cv_cxx_compiler___MWERKS__=yes
15350else
15351  echo "$as_me: failed program was:" >&5
15352sed 's/^/| /' conftest.$ac_ext >&5
15353
15354bakefile_cv_cxx_compiler___MWERKS__=no
15355
15356fi
15357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15358
15359
15360fi
15361echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
15362echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6
15363    if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
15364        :; MWCXX=yes
15365    else
15366        :;
15367    fi
15368    ac_ext=c
15369ac_cpp='$CPP $CPPFLAGS'
15370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15372ac_compiler_gnu=$ac_cv_c_compiler_gnu
15373
15374
15375
15376                if test "$MWCXX" != "yes"; then
15377
15378
15379    ac_ext=cc
15380ac_cpp='$CXXCPP $CPPFLAGS'
15381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15384
15385    echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
15386echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
15387if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
15388  echo $ECHO_N "(cached) $ECHO_C" >&6
15389else
15390  cat >conftest.$ac_ext <<_ACEOF
15391/* confdefs.h.  */
15392_ACEOF
15393cat confdefs.h >>conftest.$ac_ext
15394cat >>conftest.$ac_ext <<_ACEOF
15395/* end confdefs.h.  */
15396
15397int
15398main ()
15399{
15400
15401             #ifndef __xlC__
15402                choke me
15403             #endif
15404
15405  ;
15406  return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411  (eval $ac_compile) 2>conftest.er1
15412  ac_status=$?
15413  grep -v '^ *+' conftest.er1 >conftest.err
15414  rm -f conftest.er1
15415  cat conftest.err >&5
15416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417  (exit $ac_status); } &&
15418	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420  (eval $ac_try) 2>&5
15421  ac_status=$?
15422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423  (exit $ac_status); }; } &&
15424	 { ac_try='test -s conftest.$ac_objext'
15425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426  (eval $ac_try) 2>&5
15427  ac_status=$?
15428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429  (exit $ac_status); }; }; then
15430  bakefile_cv_cxx_compiler___xlC__=yes
15431else
15432  echo "$as_me: failed program was:" >&5
15433sed 's/^/| /' conftest.$ac_ext >&5
15434
15435bakefile_cv_cxx_compiler___xlC__=no
15436
15437fi
15438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15439
15440
15441fi
15442echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
15443echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6
15444    if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
15445        :; XLCXX=yes
15446    else
15447        :;
15448    fi
15449    ac_ext=c
15450ac_cpp='$CPP $CPPFLAGS'
15451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15453ac_compiler_gnu=$ac_cv_c_compiler_gnu
15454
15455
15456
15457                fi
15458                ;;
15459
15460            IRIX*)
15461
15462
15463    ac_ext=cc
15464ac_cpp='$CXXCPP $CPPFLAGS'
15465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15468
15469    echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
15470echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
15471if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
15472  echo $ECHO_N "(cached) $ECHO_C" >&6
15473else
15474  cat >conftest.$ac_ext <<_ACEOF
15475/* confdefs.h.  */
15476_ACEOF
15477cat confdefs.h >>conftest.$ac_ext
15478cat >>conftest.$ac_ext <<_ACEOF
15479/* end confdefs.h.  */
15480
15481int
15482main ()
15483{
15484
15485             #ifndef _SGI_COMPILER_VERSION
15486                choke me
15487             #endif
15488
15489  ;
15490  return 0;
15491}
15492_ACEOF
15493rm -f conftest.$ac_objext
15494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15495  (eval $ac_compile) 2>conftest.er1
15496  ac_status=$?
15497  grep -v '^ *+' conftest.er1 >conftest.err
15498  rm -f conftest.er1
15499  cat conftest.err >&5
15500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501  (exit $ac_status); } &&
15502	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504  (eval $ac_try) 2>&5
15505  ac_status=$?
15506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507  (exit $ac_status); }; } &&
15508	 { ac_try='test -s conftest.$ac_objext'
15509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510  (eval $ac_try) 2>&5
15511  ac_status=$?
15512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513  (exit $ac_status); }; }; then
15514  bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
15515else
15516  echo "$as_me: failed program was:" >&5
15517sed 's/^/| /' conftest.$ac_ext >&5
15518
15519bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
15520
15521fi
15522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15523
15524
15525fi
15526echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
15527echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
15528    if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15529        :; SGICXX=yes
15530    else
15531        :;
15532    fi
15533    ac_ext=c
15534ac_cpp='$CPP $CPPFLAGS'
15535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15537ac_compiler_gnu=$ac_cv_c_compiler_gnu
15538
15539
15540
15541                ;;
15542
15543            Linux*)
15544                                                if test "$INTELCXX" != "yes"; then
15545
15546
15547    ac_ext=cc
15548ac_cpp='$CXXCPP $CPPFLAGS'
15549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15552
15553    echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15554echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
15555if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15556  echo $ECHO_N "(cached) $ECHO_C" >&6
15557else
15558  cat >conftest.$ac_ext <<_ACEOF
15559/* confdefs.h.  */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
15563/* end confdefs.h.  */
15564
15565int
15566main ()
15567{
15568
15569             #ifndef __SUNPRO_CC
15570                choke me
15571             #endif
15572
15573  ;
15574  return 0;
15575}
15576_ACEOF
15577rm -f conftest.$ac_objext
15578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579  (eval $ac_compile) 2>conftest.er1
15580  ac_status=$?
15581  grep -v '^ *+' conftest.er1 >conftest.err
15582  rm -f conftest.er1
15583  cat conftest.err >&5
15584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585  (exit $ac_status); } &&
15586	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588  (eval $ac_try) 2>&5
15589  ac_status=$?
15590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591  (exit $ac_status); }; } &&
15592	 { ac_try='test -s conftest.$ac_objext'
15593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594  (eval $ac_try) 2>&5
15595  ac_status=$?
15596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597  (exit $ac_status); }; }; then
15598  bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15599else
15600  echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603bakefile_cv_cxx_compiler___SUNPRO_CC=no
15604
15605fi
15606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607
15608
15609fi
15610echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15611echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
15612    if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
15613        :; SUNCXX=yes
15614    else
15615        :;
15616    fi
15617    ac_ext=c
15618ac_cpp='$CPP $CPPFLAGS'
15619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15621ac_compiler_gnu=$ac_cv_c_compiler_gnu
15622
15623
15624
15625                fi
15626                ;;
15627
15628            HP-UX*)
15629
15630
15631    ac_ext=cc
15632ac_cpp='$CXXCPP $CPPFLAGS'
15633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15636
15637    echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
15638echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
15639if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
15640  echo $ECHO_N "(cached) $ECHO_C" >&6
15641else
15642  cat >conftest.$ac_ext <<_ACEOF
15643/* confdefs.h.  */
15644_ACEOF
15645cat confdefs.h >>conftest.$ac_ext
15646cat >>conftest.$ac_ext <<_ACEOF
15647/* end confdefs.h.  */
15648
15649int
15650main ()
15651{
15652
15653             #ifndef __HP_aCC
15654                choke me
15655             #endif
15656
15657  ;
15658  return 0;
15659}
15660_ACEOF
15661rm -f conftest.$ac_objext
15662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15663  (eval $ac_compile) 2>conftest.er1
15664  ac_status=$?
15665  grep -v '^ *+' conftest.er1 >conftest.err
15666  rm -f conftest.er1
15667  cat conftest.err >&5
15668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669  (exit $ac_status); } &&
15670	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672  (eval $ac_try) 2>&5
15673  ac_status=$?
15674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675  (exit $ac_status); }; } &&
15676	 { ac_try='test -s conftest.$ac_objext'
15677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678  (eval $ac_try) 2>&5
15679  ac_status=$?
15680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681  (exit $ac_status); }; }; then
15682  bakefile_cv_cxx_compiler___HP_aCC=yes
15683else
15684  echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687bakefile_cv_cxx_compiler___HP_aCC=no
15688
15689fi
15690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15691
15692
15693fi
15694echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
15695echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
15696    if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
15697        :; HPCXX=yes
15698    else
15699        :;
15700    fi
15701    ac_ext=c
15702ac_cpp='$CPP $CPPFLAGS'
15703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15705ac_compiler_gnu=$ac_cv_c_compiler_gnu
15706
15707
15708
15709                ;;
15710
15711            OSF1)
15712
15713
15714    ac_ext=cc
15715ac_cpp='$CXXCPP $CPPFLAGS'
15716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15719
15720    echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
15721echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
15722if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
15723  echo $ECHO_N "(cached) $ECHO_C" >&6
15724else
15725  cat >conftest.$ac_ext <<_ACEOF
15726/* confdefs.h.  */
15727_ACEOF
15728cat confdefs.h >>conftest.$ac_ext
15729cat >>conftest.$ac_ext <<_ACEOF
15730/* end confdefs.h.  */
15731
15732int
15733main ()
15734{
15735
15736             #ifndef __DECCXX
15737                choke me
15738             #endif
15739
15740  ;
15741  return 0;
15742}
15743_ACEOF
15744rm -f conftest.$ac_objext
15745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746  (eval $ac_compile) 2>conftest.er1
15747  ac_status=$?
15748  grep -v '^ *+' conftest.er1 >conftest.err
15749  rm -f conftest.er1
15750  cat conftest.err >&5
15751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752  (exit $ac_status); } &&
15753	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755  (eval $ac_try) 2>&5
15756  ac_status=$?
15757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758  (exit $ac_status); }; } &&
15759	 { ac_try='test -s conftest.$ac_objext'
15760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761  (eval $ac_try) 2>&5
15762  ac_status=$?
15763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764  (exit $ac_status); }; }; then
15765  bakefile_cv_cxx_compiler___DECCXX=yes
15766else
15767  echo "$as_me: failed program was:" >&5
15768sed 's/^/| /' conftest.$ac_ext >&5
15769
15770bakefile_cv_cxx_compiler___DECCXX=no
15771
15772fi
15773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15774
15775
15776fi
15777echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
15778echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
15779    if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
15780        :; COMPAQCXX=yes
15781    else
15782        :;
15783    fi
15784    ac_ext=c
15785ac_cpp='$CPP $CPPFLAGS'
15786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15788ac_compiler_gnu=$ac_cv_c_compiler_gnu
15789
15790
15791
15792                ;;
15793
15794            SunOS)
15795
15796
15797    ac_ext=cc
15798ac_cpp='$CXXCPP $CPPFLAGS'
15799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15802
15803    echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15804echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
15805if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15806  echo $ECHO_N "(cached) $ECHO_C" >&6
15807else
15808  cat >conftest.$ac_ext <<_ACEOF
15809/* confdefs.h.  */
15810_ACEOF
15811cat confdefs.h >>conftest.$ac_ext
15812cat >>conftest.$ac_ext <<_ACEOF
15813/* end confdefs.h.  */
15814
15815int
15816main ()
15817{
15818
15819             #ifndef __SUNPRO_CC
15820                choke me
15821             #endif
15822
15823  ;
15824  return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829  (eval $ac_compile) 2>conftest.er1
15830  ac_status=$?
15831  grep -v '^ *+' conftest.er1 >conftest.err
15832  rm -f conftest.er1
15833  cat conftest.err >&5
15834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835  (exit $ac_status); } &&
15836	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838  (eval $ac_try) 2>&5
15839  ac_status=$?
15840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841  (exit $ac_status); }; } &&
15842	 { ac_try='test -s conftest.$ac_objext'
15843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844  (eval $ac_try) 2>&5
15845  ac_status=$?
15846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847  (exit $ac_status); }; }; then
15848  bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15849else
15850  echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
15853bakefile_cv_cxx_compiler___SUNPRO_CC=no
15854
15855fi
15856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15857
15858
15859fi
15860echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15861echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
15862    if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
15863        :; SUNCXX=yes
15864    else
15865        :;
15866    fi
15867    ac_ext=c
15868ac_cpp='$CPP $CPPFLAGS'
15869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15871ac_compiler_gnu=$ac_cv_c_compiler_gnu
15872
15873
15874
15875                ;;
15876        esac
15877    fi
15878
15879
15880
15881if test -n "$ac_tool_prefix"; then
15882  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15883set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15884echo "$as_me:$LINENO: checking for $ac_word" >&5
15885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15886if test "${ac_cv_prog_RANLIB+set}" = set; then
15887  echo $ECHO_N "(cached) $ECHO_C" >&6
15888else
15889  if test -n "$RANLIB"; then
15890  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15891else
15892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893for as_dir in $PATH
15894do
15895  IFS=$as_save_IFS
15896  test -z "$as_dir" && as_dir=.
15897  for ac_exec_ext in '' $ac_executable_extensions; do
15898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15899    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15901    break 2
15902  fi
15903done
15904done
15905
15906fi
15907fi
15908RANLIB=$ac_cv_prog_RANLIB
15909if test -n "$RANLIB"; then
15910  echo "$as_me:$LINENO: result: $RANLIB" >&5
15911echo "${ECHO_T}$RANLIB" >&6
15912else
15913  echo "$as_me:$LINENO: result: no" >&5
15914echo "${ECHO_T}no" >&6
15915fi
15916
15917fi
15918if test -z "$ac_cv_prog_RANLIB"; then
15919  ac_ct_RANLIB=$RANLIB
15920  # Extract the first word of "ranlib", so it can be a program name with args.
15921set dummy ranlib; ac_word=$2
15922echo "$as_me:$LINENO: checking for $ac_word" >&5
15923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15924if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15925  echo $ECHO_N "(cached) $ECHO_C" >&6
15926else
15927  if test -n "$ac_ct_RANLIB"; then
15928  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15929else
15930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15931for as_dir in $PATH
15932do
15933  IFS=$as_save_IFS
15934  test -z "$as_dir" && as_dir=.
15935  for ac_exec_ext in '' $ac_executable_extensions; do
15936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15937    ac_cv_prog_ac_ct_RANLIB="ranlib"
15938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15939    break 2
15940  fi
15941done
15942done
15943
15944  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15945fi
15946fi
15947ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15948if test -n "$ac_ct_RANLIB"; then
15949  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15950echo "${ECHO_T}$ac_ct_RANLIB" >&6
15951else
15952  echo "$as_me:$LINENO: result: no" >&5
15953echo "${ECHO_T}no" >&6
15954fi
15955
15956  RANLIB=$ac_ct_RANLIB
15957else
15958  RANLIB="$ac_cv_prog_RANLIB"
15959fi
15960
15961
15962if test "x$SUNCXX" != xyes; then
15963    if test -n "$ac_tool_prefix"; then
15964  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15965set dummy ${ac_tool_prefix}ar; ac_word=$2
15966echo "$as_me:$LINENO: checking for $ac_word" >&5
15967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15968if test "${ac_cv_prog_AR+set}" = set; then
15969  echo $ECHO_N "(cached) $ECHO_C" >&6
15970else
15971  if test -n "$AR"; then
15972  ac_cv_prog_AR="$AR" # Let the user override the test.
15973else
15974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15975for as_dir in $PATH
15976do
15977  IFS=$as_save_IFS
15978  test -z "$as_dir" && as_dir=.
15979  for ac_exec_ext in '' $ac_executable_extensions; do
15980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15981    ac_cv_prog_AR="${ac_tool_prefix}ar"
15982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15983    break 2
15984  fi
15985done
15986done
15987
15988fi
15989fi
15990AR=$ac_cv_prog_AR
15991if test -n "$AR"; then
15992  echo "$as_me:$LINENO: result: $AR" >&5
15993echo "${ECHO_T}$AR" >&6
15994else
15995  echo "$as_me:$LINENO: result: no" >&5
15996echo "${ECHO_T}no" >&6
15997fi
15998
15999fi
16000if test -z "$ac_cv_prog_AR"; then
16001  ac_ct_AR=$AR
16002  # Extract the first word of "ar", so it can be a program name with args.
16003set dummy ar; ac_word=$2
16004echo "$as_me:$LINENO: checking for $ac_word" >&5
16005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16006if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16007  echo $ECHO_N "(cached) $ECHO_C" >&6
16008else
16009  if test -n "$ac_ct_AR"; then
16010  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16011else
16012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16013for as_dir in $PATH
16014do
16015  IFS=$as_save_IFS
16016  test -z "$as_dir" && as_dir=.
16017  for ac_exec_ext in '' $ac_executable_extensions; do
16018  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16019    ac_cv_prog_ac_ct_AR="ar"
16020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16021    break 2
16022  fi
16023done
16024done
16025
16026fi
16027fi
16028ac_ct_AR=$ac_cv_prog_ac_ct_AR
16029if test -n "$ac_ct_AR"; then
16030  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16031echo "${ECHO_T}$ac_ct_AR" >&6
16032else
16033  echo "$as_me:$LINENO: result: no" >&5
16034echo "${ECHO_T}no" >&6
16035fi
16036
16037  AR=$ac_ct_AR
16038else
16039  AR="$ac_cv_prog_AR"
16040fi
16041
16042    if test "x$AR" = "x" ; then
16043        { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
16044echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
16045   { (exit 1); exit 1; }; }
16046    fi
16047fi
16048
16049# Find a good install program.  We prefer a C program (faster),
16050# so one script is as good as another.  But avoid the broken or
16051# incompatible versions:
16052# SysV /etc/install, /usr/sbin/install
16053# SunOS /usr/etc/install
16054# IRIX /sbin/install
16055# AIX /bin/install
16056# AmigaOS /C/install, which installs bootblocks on floppy discs
16057# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16058# AFS /usr/afsws/bin/install, which mishandles nonexistent args
16059# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16060# OS/2's system install, which has a completely different semantic
16061# ./install, which can be erroneously created by make from ./install.sh.
16062echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16063echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16064if test -z "$INSTALL"; then
16065if test "${ac_cv_path_install+set}" = set; then
16066  echo $ECHO_N "(cached) $ECHO_C" >&6
16067else
16068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16069for as_dir in $PATH
16070do
16071  IFS=$as_save_IFS
16072  test -z "$as_dir" && as_dir=.
16073  # Account for people who put trailing slashes in PATH elements.
16074case $as_dir/ in
16075  ./ | .// | /cC/* | \
16076  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16077  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16078  /usr/ucb/* ) ;;
16079  *)
16080    # OSF1 and SCO ODT 3.0 have their own names for install.
16081    # Don't use installbsd from OSF since it installs stuff as root
16082    # by default.
16083    for ac_prog in ginstall scoinst install; do
16084      for ac_exec_ext in '' $ac_executable_extensions; do
16085	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16086	  if test $ac_prog = install &&
16087	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16088	    # AIX install.  It has an incompatible calling convention.
16089	    :
16090	  elif test $ac_prog = install &&
16091	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16092	    # program-specific install script used by HP pwplus--don't use.
16093	    :
16094	  else
16095	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16096	    break 3
16097	  fi
16098	fi
16099      done
16100    done
16101    ;;
16102esac
16103done
16104
16105
16106fi
16107  if test "${ac_cv_path_install+set}" = set; then
16108    INSTALL=$ac_cv_path_install
16109  else
16110    # As a last resort, use the slow shell script.  We don't cache a
16111    # path for INSTALL within a source directory, because that will
16112    # break other packages using the cache if that directory is
16113    # removed, or if the path is relative.
16114    INSTALL=$ac_install_sh
16115  fi
16116fi
16117echo "$as_me:$LINENO: result: $INSTALL" >&5
16118echo "${ECHO_T}$INSTALL" >&6
16119
16120# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16121# It thinks the first close brace ends the variable substitution.
16122test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16123
16124test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16125
16126test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16127
16128
16129case ${INSTALL} in
16130  /* ) # Absolute
16131     ;;
16132  ?:* ) # Drive letter, considered as absolute.
16133     ;;
16134  *)
16135     INSTALL=`pwd`/${INSTALL} ;;
16136esac
16137
16138retest_macosx_linking=no
16139
16140#if test "$wxUSE_MAC" = 1; then
16141    if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
16142                        if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
16143            # Implicitly turn on the new --with-macosx-sdk using the default
16144            # SDK which provides the behavior this option has always had.
16145            if test "x$wxUSE_MACOSX_SDK" = "x"; then
16146                { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
16147echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
16148                { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
16149echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
16150                wxUSE_MACOSX_SDK=yes
16151            fi
16152        else
16153            # Complain to user if he specified an argument to --enable-universal_binary
16154            # and also 1) specified --with-macosx-sdk using the default (yes) or
16155            # 2) specified --with-macosx-sdk using a path or 3) specified
16156            # --without-macosx-sdk (no).
16157            if test "x$wxUSE_MACOSX_SDK" != "x" ; then
16158                { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
16159See \`config.log' for more details." >&5
16160echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
16161See \`config.log' for more details." >&2;}
16162   { (exit 1); exit 1; }; }
16163            else
16164                # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
16165                # special-case the empty string because the below test simply
16166                # converts "no" to the empty string anyway.
16167                wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
16168                                { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
16169echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
16170            fi
16171        fi
16172                OSX_UNIV_OPTS="-arch ppc -arch i386"
16173        CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
16174        CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
16175        OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
16176        OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
16177        LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
16178                                                                                                                retest_macosx_linking=yes
16179
16180                                        { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
16181echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
16182        bk_use_pch=no
16183    fi
16184#fi
16185
16186if test "x$wxUSE_MACOSX_SDK" = "xno"; then
16187    wxUSE_MACOSX_SDK=
16188elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
16189    # TODO: Search for most recent SDK and use it.
16190    wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
16191fi
16192
16193
16194if test "x$wxUSE_MACOSX_SDK" != "x"; then
16195    echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
16196echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6
16197    if ! test -d "$wxUSE_MACOSX_SDK"; then
16198        { { echo "$as_me:$LINENO: error: not found
16199See \`config.log' for more details." >&5
16200echo "$as_me: error: not found
16201See \`config.log' for more details." >&2;}
16202   { (exit 1); exit 1; }; }
16203    else
16204        echo "$as_me:$LINENO: result: exists" >&5
16205echo "${ECHO_T}exists" >&6
16206    fi
16207    MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
16208    eval "CC=\"$CC $MACOSX_SDK_OPTS\""
16209    eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
16210    eval "LD=\"$LD $MACOSX_SDK_OPTS\""
16211    retest_macosx_linking=yes
16212            fi
16213
16214if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
16215    wxUSE_MACOSX_VERSION_MIN=
16216elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
16217    if test "x$wxUSE_MACOSX_SDK" != "x"; then
16218        echo "$as_me:$LINENO: checking SDK deployment version" >&5
16219echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6
16220
16221        MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
16222
16223        # If that failed, try again with the new key
16224        if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
16225
16226            MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
16227
16228        fi
16229
16230        if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
16231            wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
16232            echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
16233echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6
16234        else
16235            { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
16236echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
16237            wxUSE_MACOSX_VERSION_MIN=
16238        fi
16239    else
16240        wxUSE_MACOSX_VERSION_MIN=
16241    fi
16242fi
16243
16244if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
16245    MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
16246    eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
16247    eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
16248    eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
16249    retest_macosx_linking=yes
16250fi
16251
16252if test "x$retest_macosx_linking" = "xyes"; then
16253    ac_ext=c
16254ac_cpp='$CPP $CPPFLAGS'
16255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16257ac_compiler_gnu=$ac_cv_c_compiler_gnu
16258
16259    echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
16260echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6
16261    cat >conftest.$ac_ext <<_ACEOF
16262/* confdefs.h.  */
16263_ACEOF
16264cat confdefs.h >>conftest.$ac_ext
16265cat >>conftest.$ac_ext <<_ACEOF
16266/* end confdefs.h.  */
16267
16268int
16269main ()
16270{
16271
16272  ;
16273  return 0;
16274}
16275_ACEOF
16276rm -f conftest.$ac_objext conftest$ac_exeext
16277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16278  (eval $ac_link) 2>conftest.er1
16279  ac_status=$?
16280  grep -v '^ *+' conftest.er1 >conftest.err
16281  rm -f conftest.er1
16282  cat conftest.err >&5
16283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284  (exit $ac_status); } &&
16285	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287  (eval $ac_try) 2>&5
16288  ac_status=$?
16289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290  (exit $ac_status); }; } &&
16291	 { ac_try='test -s conftest$ac_exeext'
16292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293  (eval $ac_try) 2>&5
16294  ac_status=$?
16295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296  (exit $ac_status); }; }; then
16297  echo "$as_me:$LINENO: result: yes" >&5
16298echo "${ECHO_T}yes" >&6
16299else
16300  echo "$as_me: failed program was:" >&5
16301sed 's/^/| /' conftest.$ac_ext >&5
16302
16303{ { echo "$as_me:$LINENO: error: no.  Try a different SDK
16304See \`config.log' for more details." >&5
16305echo "$as_me: error: no.  Try a different SDK
16306See \`config.log' for more details." >&2;}
16307   { (exit 1); exit 1; }; }; exit 1
16308fi
16309rm -f conftest.err conftest.$ac_objext \
16310      conftest$ac_exeext conftest.$ac_ext
16311    ac_ext=c
16312ac_cpp='$CPP $CPPFLAGS'
16313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16315ac_compiler_gnu=$ac_cv_c_compiler_gnu
16316
16317
16318    ac_ext=cc
16319ac_cpp='$CXXCPP $CPPFLAGS'
16320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16323
16324    echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
16325echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6
16326    cat >conftest.$ac_ext <<_ACEOF
16327/* confdefs.h.  */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h.  */
16332
16333int
16334main ()
16335{
16336
16337  ;
16338  return 0;
16339}
16340_ACEOF
16341rm -f conftest.$ac_objext conftest$ac_exeext
16342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16343  (eval $ac_link) 2>conftest.er1
16344  ac_status=$?
16345  grep -v '^ *+' conftest.er1 >conftest.err
16346  rm -f conftest.er1
16347  cat conftest.err >&5
16348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349  (exit $ac_status); } &&
16350	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
16356	 { ac_try='test -s conftest$ac_exeext'
16357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358  (eval $ac_try) 2>&5
16359  ac_status=$?
16360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361  (exit $ac_status); }; }; then
16362  echo "$as_me:$LINENO: result: yes" >&5
16363echo "${ECHO_T}yes" >&6
16364else
16365  echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368{ { echo "$as_me:$LINENO: error: no.  Try a different SDK
16369See \`config.log' for more details." >&5
16370echo "$as_me: error: no.  Try a different SDK
16371See \`config.log' for more details." >&2;}
16372   { (exit 1); exit 1; }; }; exit 1
16373fi
16374rm -f conftest.err conftest.$ac_objext \
16375      conftest$ac_exeext conftest.$ac_ext
16376    ac_ext=c
16377ac_cpp='$CPP $CPPFLAGS'
16378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380ac_compiler_gnu=$ac_cv_c_compiler_gnu
16381
16382fi
16383
16384
16385case "${host}" in
16386
16387                *-*-darwin* )
16388        INSTALL_PROGRAM="cp -fp"
16389        INSTALL_DATA="cp -fp"
16390        ;;
16391    *)
16392        ;;
16393esac
16394
16395if test -n "$ac_tool_prefix"; then
16396  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16397set dummy ${ac_tool_prefix}strip; ac_word=$2
16398echo "$as_me:$LINENO: checking for $ac_word" >&5
16399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16400if test "${ac_cv_prog_STRIP+set}" = set; then
16401  echo $ECHO_N "(cached) $ECHO_C" >&6
16402else
16403  if test -n "$STRIP"; then
16404  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16405else
16406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16407for as_dir in $PATH
16408do
16409  IFS=$as_save_IFS
16410  test -z "$as_dir" && as_dir=.
16411  for ac_exec_ext in '' $ac_executable_extensions; do
16412  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16413    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16415    break 2
16416  fi
16417done
16418done
16419
16420fi
16421fi
16422STRIP=$ac_cv_prog_STRIP
16423if test -n "$STRIP"; then
16424  echo "$as_me:$LINENO: result: $STRIP" >&5
16425echo "${ECHO_T}$STRIP" >&6
16426else
16427  echo "$as_me:$LINENO: result: no" >&5
16428echo "${ECHO_T}no" >&6
16429fi
16430
16431fi
16432if test -z "$ac_cv_prog_STRIP"; then
16433  ac_ct_STRIP=$STRIP
16434  # Extract the first word of "strip", so it can be a program name with args.
16435set dummy strip; ac_word=$2
16436echo "$as_me:$LINENO: checking for $ac_word" >&5
16437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16438if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16439  echo $ECHO_N "(cached) $ECHO_C" >&6
16440else
16441  if test -n "$ac_ct_STRIP"; then
16442  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16443else
16444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16445for as_dir in $PATH
16446do
16447  IFS=$as_save_IFS
16448  test -z "$as_dir" && as_dir=.
16449  for ac_exec_ext in '' $ac_executable_extensions; do
16450  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16451    ac_cv_prog_ac_ct_STRIP="strip"
16452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16453    break 2
16454  fi
16455done
16456done
16457
16458  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
16459fi
16460fi
16461ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16462if test -n "$ac_ct_STRIP"; then
16463  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16464echo "${ECHO_T}$ac_ct_STRIP" >&6
16465else
16466  echo "$as_me:$LINENO: result: no" >&5
16467echo "${ECHO_T}no" >&6
16468fi
16469
16470  STRIP=$ac_ct_STRIP
16471else
16472  STRIP="$ac_cv_prog_STRIP"
16473fi
16474
16475
16476if test "$wxUSE_WINE" = "yes"; then
16477    if test -n "$ac_tool_prefix"; then
16478  # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
16479set dummy ${ac_tool_prefix}wrc; ac_word=$2
16480echo "$as_me:$LINENO: checking for $ac_word" >&5
16481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16482if test "${ac_cv_prog_WINDRES+set}" = set; then
16483  echo $ECHO_N "(cached) $ECHO_C" >&6
16484else
16485  if test -n "$WINDRES"; then
16486  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16487else
16488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16489for as_dir in $PATH
16490do
16491  IFS=$as_save_IFS
16492  test -z "$as_dir" && as_dir=.
16493  for ac_exec_ext in '' $ac_executable_extensions; do
16494  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16495    ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
16496    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16497    break 2
16498  fi
16499done
16500done
16501
16502fi
16503fi
16504WINDRES=$ac_cv_prog_WINDRES
16505if test -n "$WINDRES"; then
16506  echo "$as_me:$LINENO: result: $WINDRES" >&5
16507echo "${ECHO_T}$WINDRES" >&6
16508else
16509  echo "$as_me:$LINENO: result: no" >&5
16510echo "${ECHO_T}no" >&6
16511fi
16512
16513fi
16514if test -z "$ac_cv_prog_WINDRES"; then
16515  ac_ct_WINDRES=$WINDRES
16516  # Extract the first word of "wrc", so it can be a program name with args.
16517set dummy wrc; ac_word=$2
16518echo "$as_me:$LINENO: checking for $ac_word" >&5
16519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16520if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
16521  echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523  if test -n "$ac_ct_WINDRES"; then
16524  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
16525else
16526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16527for as_dir in $PATH
16528do
16529  IFS=$as_save_IFS
16530  test -z "$as_dir" && as_dir=.
16531  for ac_exec_ext in '' $ac_executable_extensions; do
16532  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16533    ac_cv_prog_ac_ct_WINDRES="wrc"
16534    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16535    break 2
16536  fi
16537done
16538done
16539
16540fi
16541fi
16542ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
16543if test -n "$ac_ct_WINDRES"; then
16544  echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
16545echo "${ECHO_T}$ac_ct_WINDRES" >&6
16546else
16547  echo "$as_me:$LINENO: result: no" >&5
16548echo "${ECHO_T}no" >&6
16549fi
16550
16551  WINDRES=$ac_ct_WINDRES
16552else
16553  WINDRES="$ac_cv_prog_WINDRES"
16554fi
16555
16556    RESCOMP="$WINDRES"
16557else
16558    case "${host}" in
16559    *-*-cygwin* | *-*-mingw32* )
16560                                if test -n "$ac_tool_prefix"; then
16561  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16562set dummy ${ac_tool_prefix}windres; ac_word=$2
16563echo "$as_me:$LINENO: checking for $ac_word" >&5
16564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16565if test "${ac_cv_prog_WINDRES+set}" = set; then
16566  echo $ECHO_N "(cached) $ECHO_C" >&6
16567else
16568  if test -n "$WINDRES"; then
16569  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16570else
16571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572for as_dir in $PATH
16573do
16574  IFS=$as_save_IFS
16575  test -z "$as_dir" && as_dir=.
16576  for ac_exec_ext in '' $ac_executable_extensions; do
16577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16578    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
16579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16580    break 2
16581  fi
16582done
16583done
16584
16585fi
16586fi
16587WINDRES=$ac_cv_prog_WINDRES
16588if test -n "$WINDRES"; then
16589  echo "$as_me:$LINENO: result: $WINDRES" >&5
16590echo "${ECHO_T}$WINDRES" >&6
16591else
16592  echo "$as_me:$LINENO: result: no" >&5
16593echo "${ECHO_T}no" >&6
16594fi
16595
16596fi
16597if test -z "$ac_cv_prog_WINDRES"; then
16598  ac_ct_WINDRES=$WINDRES
16599  # Extract the first word of "windres", so it can be a program name with args.
16600set dummy windres; ac_word=$2
16601echo "$as_me:$LINENO: checking for $ac_word" >&5
16602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16603if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
16604  echo $ECHO_N "(cached) $ECHO_C" >&6
16605else
16606  if test -n "$ac_ct_WINDRES"; then
16607  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
16608else
16609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610for as_dir in $PATH
16611do
16612  IFS=$as_save_IFS
16613  test -z "$as_dir" && as_dir=.
16614  for ac_exec_ext in '' $ac_executable_extensions; do
16615  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16616    ac_cv_prog_ac_ct_WINDRES="windres"
16617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16618    break 2
16619  fi
16620done
16621done
16622
16623fi
16624fi
16625ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
16626if test -n "$ac_ct_WINDRES"; then
16627  echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
16628echo "${ECHO_T}$ac_ct_WINDRES" >&6
16629else
16630  echo "$as_me:$LINENO: result: no" >&5
16631echo "${ECHO_T}no" >&6
16632fi
16633
16634  WINDRES=$ac_ct_WINDRES
16635else
16636  WINDRES="$ac_cv_prog_WINDRES"
16637fi
16638
16639        RESCOMP="$WINDRES"
16640        if test -n "$ac_tool_prefix"; then
16641  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16642set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16643echo "$as_me:$LINENO: checking for $ac_word" >&5
16644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16645if test "${ac_cv_prog_DLLTOOL+set}" = set; then
16646  echo $ECHO_N "(cached) $ECHO_C" >&6
16647else
16648  if test -n "$DLLTOOL"; then
16649  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16650else
16651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16652for as_dir in $PATH
16653do
16654  IFS=$as_save_IFS
16655  test -z "$as_dir" && as_dir=.
16656  for ac_exec_ext in '' $ac_executable_extensions; do
16657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16658    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16660    break 2
16661  fi
16662done
16663done
16664
16665fi
16666fi
16667DLLTOOL=$ac_cv_prog_DLLTOOL
16668if test -n "$DLLTOOL"; then
16669  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
16670echo "${ECHO_T}$DLLTOOL" >&6
16671else
16672  echo "$as_me:$LINENO: result: no" >&5
16673echo "${ECHO_T}no" >&6
16674fi
16675
16676fi
16677if test -z "$ac_cv_prog_DLLTOOL"; then
16678  ac_ct_DLLTOOL=$DLLTOOL
16679  # Extract the first word of "dlltool", so it can be a program name with args.
16680set dummy dlltool; ac_word=$2
16681echo "$as_me:$LINENO: checking for $ac_word" >&5
16682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16683if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
16684  echo $ECHO_N "(cached) $ECHO_C" >&6
16685else
16686  if test -n "$ac_ct_DLLTOOL"; then
16687  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16688else
16689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16690for as_dir in $PATH
16691do
16692  IFS=$as_save_IFS
16693  test -z "$as_dir" && as_dir=.
16694  for ac_exec_ext in '' $ac_executable_extensions; do
16695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16696    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16698    break 2
16699  fi
16700done
16701done
16702
16703fi
16704fi
16705ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16706if test -n "$ac_ct_DLLTOOL"; then
16707  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
16708echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
16709else
16710  echo "$as_me:$LINENO: result: no" >&5
16711echo "${ECHO_T}no" >&6
16712fi
16713
16714  DLLTOOL=$ac_ct_DLLTOOL
16715else
16716  DLLTOOL="$ac_cv_prog_DLLTOOL"
16717fi
16718
16719        ;;
16720    esac
16721fi
16722
16723echo "$as_me:$LINENO: checking if make is GNU make" >&5
16724echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
16725if test "${wx_cv_prog_makeisgnu+set}" = set; then
16726  echo $ECHO_N "(cached) $ECHO_C" >&6
16727else
16728
16729    if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
16730            $EGREP -s GNU > /dev/null); then
16731        wx_cv_prog_makeisgnu="yes"
16732    else
16733        wx_cv_prog_makeisgnu="no"
16734    fi
16735
16736fi
16737echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
16738echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
16739
16740if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
16741    IF_GNU_MAKE=""
16742else
16743    IF_GNU_MAKE="#"
16744fi
16745
16746
16747
16748if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
16749echo "$as_me:$LINENO: checking if make supports VPATH" >&5
16750echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
16751if test "${wx_cv_prog_makevpath+set}" = set; then
16752  echo $ECHO_N "(cached) $ECHO_C" >&6
16753else
16754
16755cat - << EOF > confMake
16756check : file
16757	cp \$? \$@
16758	cp \$? final_file
16759EOF
16760
16761if test ! -d sub ; then
16762  mkdir sub
16763fi
16764echo dummy > sub/file
16765${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
16766RESULT=$?
16767rm -f sub/file check final_file confMake
16768rmdir sub
16769if test "$RESULT" = 0; then
16770  wx_cv_prog_makevpath="yes"
16771else
16772  wx_cv_prog_makevpath="no"
16773fi
16774
16775fi
16776echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
16777echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
16778
16779if test "x$wx_cv_prog_makevpath" != "xyes"; then
16780{ { echo "$as_me:$LINENO: error:
16781You need a make-utility that is able to use the variable
16782VPATH correctly.
16783If your version of make does not support VPATH correctly,
16784please install GNU-make (possibly as gmake), and start
16785configure with the following command:
16786export MAKE=gmake; ./configure  for sh-type shells
16787setenv MAKE gmake; ./configure  for csh-type shells
16788Also please do remember to use gmake in this case every time
16789you are trying to compile.
16790" >&5
16791echo "$as_me: error:
16792You need a make-utility that is able to use the variable
16793VPATH correctly.
16794If your version of make does not support VPATH correctly,
16795please install GNU-make (possibly as gmake), and start
16796configure with the following command:
16797export MAKE=gmake; ./configure  for sh-type shells
16798setenv MAKE gmake; ./configure  for csh-type shells
16799Also please do remember to use gmake in this case every time
16800you are trying to compile.
16801" >&2;}
16802   { (exit 1); exit 1; }; }
16803fi fi
16804echo "$as_me:$LINENO: checking whether ln -s works" >&5
16805echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
16806LN_S=$as_ln_s
16807if test "$LN_S" = "ln -s"; then
16808  echo "$as_me:$LINENO: result: yes" >&5
16809echo "${ECHO_T}yes" >&6
16810else
16811  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
16812echo "${ECHO_T}no, using $LN_S" >&6
16813fi
16814
16815
16816
16817
16818if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
16819    CXXFLAGS="-qunique $CXXFLAGS"
16820fi
16821
16822case "${host}" in
16823  powerpc-*-darwin* )
16824    echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
16825echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
16826    cat >conftest.$ac_ext <<_ACEOF
16827/* confdefs.h.  */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h.  */
16832
16833int
16834main ()
16835{
16836#ifndef __POWERPC__
16837        choke me for lack of PowerPC
16838#endif
16839
16840  ;
16841  return 0;
16842}
16843_ACEOF
16844rm -f conftest.$ac_objext
16845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16846  (eval $ac_compile) 2>conftest.er1
16847  ac_status=$?
16848  grep -v '^ *+' conftest.er1 >conftest.err
16849  rm -f conftest.er1
16850  cat conftest.err >&5
16851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852  (exit $ac_status); } &&
16853	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855  (eval $ac_try) 2>&5
16856  ac_status=$?
16857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858  (exit $ac_status); }; } &&
16859	 { ac_try='test -s conftest.$ac_objext'
16860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861  (eval $ac_try) 2>&5
16862  ac_status=$?
16863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864  (exit $ac_status); }; }; then
16865  echo "$as_me:$LINENO: result: yes" >&5
16866echo "${ECHO_T}yes" >&6
16867else
16868  echo "$as_me: failed program was:" >&5
16869sed 's/^/| /' conftest.$ac_ext >&5
16870
16871echo "$as_me:$LINENO: result: no" >&5
16872echo "${ECHO_T}no" >&6
16873        cat >>confdefs.h <<\_ACEOF
16874#define __POWERPC__ 1
16875_ACEOF
16876
16877
16878fi
16879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16880  ;;
16881esac
16882
16883case "${host}" in
16884  *-*-darwin* )
16885    echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
16886echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
16887    cat >conftest.$ac_ext <<_ACEOF
16888/* confdefs.h.  */
16889_ACEOF
16890cat confdefs.h >>conftest.$ac_ext
16891cat >>conftest.$ac_ext <<_ACEOF
16892/* end confdefs.h.  */
16893#include <CoreFoundation/CFBase.h>
16894
16895int
16896main ()
16897{
16898
16899  ;
16900  return 0;
16901}
16902_ACEOF
16903rm -f conftest.$ac_objext
16904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16905  (eval $ac_compile) 2>conftest.er1
16906  ac_status=$?
16907  grep -v '^ *+' conftest.er1 >conftest.err
16908  rm -f conftest.er1
16909  cat conftest.err >&5
16910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911  (exit $ac_status); } &&
16912	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914  (eval $ac_try) 2>&5
16915  ac_status=$?
16916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917  (exit $ac_status); }; } &&
16918	 { ac_try='test -s conftest.$ac_objext'
16919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920  (eval $ac_try) 2>&5
16921  ac_status=$?
16922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923  (exit $ac_status); }; }; then
16924  echo "$as_me:$LINENO: result: yes" >&5
16925echo "${ECHO_T}yes" >&6
16926else
16927  echo "$as_me: failed program was:" >&5
16928sed 's/^/| /' conftest.$ac_ext >&5
16929
16930echo "$as_me:$LINENO: result: no" >&5
16931echo "${ECHO_T}no" >&6
16932        echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
16933echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
16934        cat >conftest.$ac_ext <<_ACEOF
16935/* confdefs.h.  */
16936_ACEOF
16937cat confdefs.h >>conftest.$ac_ext
16938cat >>conftest.$ac_ext <<_ACEOF
16939/* end confdefs.h.  */
16940#define __CF_USE_FRAMEWORK_INCLUDES__
16941#include <CoreFoundation/CFBase.h>
16942
16943int
16944main ()
16945{
16946
16947  ;
16948  return 0;
16949}
16950_ACEOF
16951rm -f conftest.$ac_objext
16952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16953  (eval $ac_compile) 2>conftest.er1
16954  ac_status=$?
16955  grep -v '^ *+' conftest.er1 >conftest.err
16956  rm -f conftest.er1
16957  cat conftest.err >&5
16958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959  (exit $ac_status); } &&
16960	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962  (eval $ac_try) 2>&5
16963  ac_status=$?
16964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965  (exit $ac_status); }; } &&
16966	 { ac_try='test -s conftest.$ac_objext'
16967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968  (eval $ac_try) 2>&5
16969  ac_status=$?
16970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971  (exit $ac_status); }; }; then
16972  echo "$as_me:$LINENO: result: yes" >&5
16973echo "${ECHO_T}yes" >&6
16974                        CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
16975else
16976  echo "$as_me: failed program was:" >&5
16977sed 's/^/| /' conftest.$ac_ext >&5
16978
16979{ { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
16980See \`config.log' for more details." >&5
16981echo "$as_me: error: no.  CoreFoundation not available.
16982See \`config.log' for more details." >&2;}
16983   { (exit 1); exit 1; }; }
16984
16985fi
16986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16987
16988
16989fi
16990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16991  ;;
16992esac
16993
16994wants_win32=0
16995doesnt_want_win32=0
16996case "${host}" in
16997  *-*-cygwin*)
16998      if test "$wxUSE_MSW" = 1 ; then
16999        wants_win32=1
17000      else
17001                        echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
17002echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6
17003if test "${wx_cv_nocygwin+set}" = set; then
17004  echo $ECHO_N "(cached) $ECHO_C" >&6
17005else
17006
17007                cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h.  */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h.  */
17013
17014int
17015main ()
17016{
17017
17018                        #ifdef __MINGW32__
17019                            choke me
17020                        #endif
17021
17022  ;
17023  return 0;
17024}
17025_ACEOF
17026rm -f conftest.$ac_objext
17027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17028  (eval $ac_compile) 2>conftest.er1
17029  ac_status=$?
17030  grep -v '^ *+' conftest.er1 >conftest.err
17031  rm -f conftest.er1
17032  cat conftest.err >&5
17033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034  (exit $ac_status); } &&
17035	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037  (eval $ac_try) 2>&5
17038  ac_status=$?
17039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040  (exit $ac_status); }; } &&
17041	 { ac_try='test -s conftest.$ac_objext'
17042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043  (eval $ac_try) 2>&5
17044  ac_status=$?
17045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046  (exit $ac_status); }; }; then
17047  wx_cv_nocygwin=no
17048else
17049  echo "$as_me: failed program was:" >&5
17050sed 's/^/| /' conftest.$ac_ext >&5
17051
17052wx_cv_nocygwin=yes
17053
17054fi
17055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17056
17057
17058fi
17059echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
17060echo "${ECHO_T}$wx_cv_nocygwin" >&6
17061
17062        if test "$wx_cv_nocygwin" = "yes"; then
17063            wants_win32=1
17064        else
17065            doesnt_want_win32=1
17066        fi
17067      fi
17068      if test "$wants_win32" = 1 ; then
17069        BAKEFILE_FORCE_PLATFORM=win32
17070      fi
17071  ;;
17072  *-*-mingw*)
17073      wants_win32=1
17074  ;;
17075esac
17076
17077if test "$wxUSE_WINE" = "yes"; then
17078    wants_win32=1
17079    LDFLAGS_GUI="-mwindows"
17080fi
17081
17082if test "$wants_win32" = 1 ; then
17083    USE_UNIX=0
17084    USE_WIN32=1
17085    cat >>confdefs.h <<\_ACEOF
17086#define __WIN32__ 1
17087_ACEOF
17088
17089    cat >>confdefs.h <<\_ACEOF
17090#define __WIN95__ 1
17091_ACEOF
17092
17093    cat >>confdefs.h <<\_ACEOF
17094#define __WINDOWS__ 1
17095_ACEOF
17096
17097    cat >>confdefs.h <<\_ACEOF
17098#define __GNUWIN32__ 1
17099_ACEOF
17100
17101    cat >>confdefs.h <<\_ACEOF
17102#define STRICT 1
17103_ACEOF
17104
17105fi
17106if test "$doesnt_want_win32" = 1 ; then
17107    USE_UNIX=1
17108    USE_WIN32=0
17109fi
17110
17111if test "$USE_UNIX" = 1 ; then
17112    wxUSE_UNIX=yes
17113    cat >>confdefs.h <<\_ACEOF
17114#define __UNIX__ 1
17115_ACEOF
17116
17117fi
17118
17119case "${host}" in
17120  *-pc-os2_emx | *-pc-os2-emx )
17121                                                      if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
17122                              echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
17123echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
17124if test "${ac_cv_lib_cExt_drand48+set}" = set; then
17125  echo $ECHO_N "(cached) $ECHO_C" >&6
17126else
17127  ac_check_lib_save_LIBS=$LIBS
17128LIBS="-lcExt  $LIBS"
17129cat >conftest.$ac_ext <<_ACEOF
17130/* confdefs.h.  */
17131_ACEOF
17132cat confdefs.h >>conftest.$ac_ext
17133cat >>conftest.$ac_ext <<_ACEOF
17134/* end confdefs.h.  */
17135
17136/* Override any gcc2 internal prototype to avoid an error.  */
17137#ifdef __cplusplus
17138extern "C"
17139#endif
17140/* We use char because int might match the return type of a gcc2
17141   builtin and then its argument prototype would still apply.  */
17142char drand48 ();
17143int
17144main ()
17145{
17146drand48 ();
17147  ;
17148  return 0;
17149}
17150_ACEOF
17151rm -f conftest.$ac_objext conftest$ac_exeext
17152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17153  (eval $ac_link) 2>conftest.er1
17154  ac_status=$?
17155  grep -v '^ *+' conftest.er1 >conftest.err
17156  rm -f conftest.er1
17157  cat conftest.err >&5
17158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159  (exit $ac_status); } &&
17160	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162  (eval $ac_try) 2>&5
17163  ac_status=$?
17164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165  (exit $ac_status); }; } &&
17166	 { ac_try='test -s conftest$ac_exeext'
17167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168  (eval $ac_try) 2>&5
17169  ac_status=$?
17170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171  (exit $ac_status); }; }; then
17172  ac_cv_lib_cExt_drand48=yes
17173else
17174  echo "$as_me: failed program was:" >&5
17175sed 's/^/| /' conftest.$ac_ext >&5
17176
17177ac_cv_lib_cExt_drand48=no
17178fi
17179rm -f conftest.err conftest.$ac_objext \
17180      conftest$ac_exeext conftest.$ac_ext
17181LIBS=$ac_check_lib_save_LIBS
17182fi
17183echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
17184echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
17185if test $ac_cv_lib_cExt_drand48 = yes; then
17186  LIBS="$LIBS -lcExt"
17187fi
17188
17189      else
17190                    RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
17191      fi
17192                                    echo "$as_me:$LINENO: checking for gcc/libc version" >&5
17193echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
17194if test "${wx_cv_gccversion+set}" = set; then
17195  echo $ECHO_N "(cached) $ECHO_C" >&6
17196else
17197
17198          if test "$cross_compiling" = yes; then
17199                wx_cv_gccversion="EMX2"
17200
17201else
17202  cat >conftest.$ac_ext <<_ACEOF
17203/* confdefs.h.  */
17204_ACEOF
17205cat confdefs.h >>conftest.$ac_ext
17206cat >>conftest.$ac_ext <<_ACEOF
17207/* end confdefs.h.  */
17208
17209                  #include <stdio.h>
17210
17211                  int main()
17212                  {
17213                      FILE *f=fopen("conftestval", "w");
17214                      if (!f) exit(1);
17215                      fprintf(f,
17216                  #if (__GNUC__ < 3)
17217                              "EMX2"
17218                  #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
17219                              "EMX3"
17220                  #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
17221                              "Innotek5"
17222                  #else
17223                              "Innotek6"
17224                  #endif
17225                      );
17226                      exit(0);
17227                  }
17228
17229_ACEOF
17230rm -f conftest$ac_exeext
17231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232  (eval $ac_link) 2>&5
17233  ac_status=$?
17234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237  (eval $ac_try) 2>&5
17238  ac_status=$?
17239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240  (exit $ac_status); }; }; then
17241  wx_cv_gccversion=`cat conftestval`
17242else
17243  echo "$as_me: program exited with status $ac_status" >&5
17244echo "$as_me: failed program was:" >&5
17245sed 's/^/| /' conftest.$ac_ext >&5
17246
17247( exit $ac_status )
17248wx_cv_gccversion="EMX2"
17249fi
17250rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17251fi
17252
17253fi
17254echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
17255echo "${ECHO_T}$wx_cv_gccversion" >&6
17256      if test "$wx_cv_gccversion" = "EMX2"; then
17257          LIBS="$LIBS -lstdcpp"
17258          LDFLAGS="$LDFLAGS -Zsysv-signals"
17259      else
17260          if test "$wx_cv_gccversion" = "EMX3"; then
17261              LIBS="$LIBS -lstdcxx -lgcc"
17262              LDFLAGS="$LDFLAGS -Zsysv-signals"
17263          else
17264              LIBS="$LIBS -lstdc++"
17265          fi
17266      fi
17267      if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
17268        { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
17269echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
17270        wxUSE_OMF=yes
17271        enable_omf=yes
17272      fi
17273        ;;
17274  *)
17275
17276      echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
17277echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
17278if test "${ac_cv_string_strcasecmp+set}" = set; then
17279  echo $ECHO_N "(cached) $ECHO_C" >&6
17280else
17281
17282          cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h.  */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h.  */
17288
17289              #include <string.h>
17290
17291int
17292main ()
17293{
17294
17295                  strcasecmp("foo", "bar");
17296
17297  ;
17298  return 0;
17299}
17300_ACEOF
17301rm -f conftest.$ac_objext conftest$ac_exeext
17302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17303  (eval $ac_link) 2>conftest.er1
17304  ac_status=$?
17305  grep -v '^ *+' conftest.er1 >conftest.err
17306  rm -f conftest.er1
17307  cat conftest.err >&5
17308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309  (exit $ac_status); } &&
17310	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312  (eval $ac_try) 2>&5
17313  ac_status=$?
17314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315  (exit $ac_status); }; } &&
17316	 { ac_try='test -s conftest$ac_exeext'
17317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318  (eval $ac_try) 2>&5
17319  ac_status=$?
17320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321  (exit $ac_status); }; }; then
17322  ac_cv_string_strcasecmp=yes
17323else
17324  echo "$as_me: failed program was:" >&5
17325sed 's/^/| /' conftest.$ac_ext >&5
17326
17327ac_cv_string_strcasecmp=no
17328
17329fi
17330rm -f conftest.err conftest.$ac_objext \
17331      conftest$ac_exeext conftest.$ac_ext
17332
17333fi
17334echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
17335echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
17336
17337      if test x"$ac_cv_string_strcasecmp" = "xyes"; then
17338          cat >>confdefs.h <<\_ACEOF
17339#define HAVE_STRCASECMP_IN_STRING_H 1
17340_ACEOF
17341
17342      else
17343          echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
17344echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
17345if test "${ac_cv_strings_strcasecmp+set}" = set; then
17346  echo $ECHO_N "(cached) $ECHO_C" >&6
17347else
17348
17349              cat >conftest.$ac_ext <<_ACEOF
17350/* confdefs.h.  */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h.  */
17355
17356                  #include <strings.h>
17357
17358int
17359main ()
17360{
17361
17362                      strcasecmp("foo", "bar");
17363
17364  ;
17365  return 0;
17366}
17367_ACEOF
17368rm -f conftest.$ac_objext conftest$ac_exeext
17369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17370  (eval $ac_link) 2>conftest.er1
17371  ac_status=$?
17372  grep -v '^ *+' conftest.er1 >conftest.err
17373  rm -f conftest.er1
17374  cat conftest.err >&5
17375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376  (exit $ac_status); } &&
17377	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379  (eval $ac_try) 2>&5
17380  ac_status=$?
17381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382  (exit $ac_status); }; } &&
17383	 { ac_try='test -s conftest$ac_exeext'
17384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385  (eval $ac_try) 2>&5
17386  ac_status=$?
17387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388  (exit $ac_status); }; }; then
17389  ac_cv_strings_strcasecmp=yes
17390else
17391  echo "$as_me: failed program was:" >&5
17392sed 's/^/| /' conftest.$ac_ext >&5
17393
17394ac_cv_strings_strcasecmp=no
17395
17396fi
17397rm -f conftest.err conftest.$ac_objext \
17398      conftest$ac_exeext conftest.$ac_ext
17399
17400fi
17401echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
17402echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
17403
17404          if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
17405              cat >>confdefs.h <<\_ACEOF
17406#define HAVE_STRCASECMP_IN_STRINGS_H 1
17407_ACEOF
17408
17409          else
17410              { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
17411echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
17412   { (exit 1); exit 1; }; }
17413          fi
17414      fi
17415
17416        ;;
17417esac
17418
17419
17420echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17421echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17422if test "${ac_cv_header_stdc+set}" = set; then
17423  echo $ECHO_N "(cached) $ECHO_C" >&6
17424else
17425  cat >conftest.$ac_ext <<_ACEOF
17426/* confdefs.h.  */
17427_ACEOF
17428cat confdefs.h >>conftest.$ac_ext
17429cat >>conftest.$ac_ext <<_ACEOF
17430/* end confdefs.h.  */
17431#include <stdlib.h>
17432#include <stdarg.h>
17433#include <string.h>
17434#include <float.h>
17435
17436int
17437main ()
17438{
17439
17440  ;
17441  return 0;
17442}
17443_ACEOF
17444rm -f conftest.$ac_objext
17445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17446  (eval $ac_compile) 2>conftest.er1
17447  ac_status=$?
17448  grep -v '^ *+' conftest.er1 >conftest.err
17449  rm -f conftest.er1
17450  cat conftest.err >&5
17451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452  (exit $ac_status); } &&
17453	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455  (eval $ac_try) 2>&5
17456  ac_status=$?
17457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458  (exit $ac_status); }; } &&
17459	 { ac_try='test -s conftest.$ac_objext'
17460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461  (eval $ac_try) 2>&5
17462  ac_status=$?
17463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464  (exit $ac_status); }; }; then
17465  ac_cv_header_stdc=yes
17466else
17467  echo "$as_me: failed program was:" >&5
17468sed 's/^/| /' conftest.$ac_ext >&5
17469
17470ac_cv_header_stdc=no
17471fi
17472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17473
17474if test $ac_cv_header_stdc = yes; then
17475  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17476  cat >conftest.$ac_ext <<_ACEOF
17477/* confdefs.h.  */
17478_ACEOF
17479cat confdefs.h >>conftest.$ac_ext
17480cat >>conftest.$ac_ext <<_ACEOF
17481/* end confdefs.h.  */
17482#include <string.h>
17483
17484_ACEOF
17485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17486  $EGREP "memchr" >/dev/null 2>&1; then
17487  :
17488else
17489  ac_cv_header_stdc=no
17490fi
17491rm -f conftest*
17492
17493fi
17494
17495if test $ac_cv_header_stdc = yes; then
17496  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17497  cat >conftest.$ac_ext <<_ACEOF
17498/* confdefs.h.  */
17499_ACEOF
17500cat confdefs.h >>conftest.$ac_ext
17501cat >>conftest.$ac_ext <<_ACEOF
17502/* end confdefs.h.  */
17503#include <stdlib.h>
17504
17505_ACEOF
17506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17507  $EGREP "free" >/dev/null 2>&1; then
17508  :
17509else
17510  ac_cv_header_stdc=no
17511fi
17512rm -f conftest*
17513
17514fi
17515
17516if test $ac_cv_header_stdc = yes; then
17517  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17518  if test "$cross_compiling" = yes; then
17519  :
17520else
17521  cat >conftest.$ac_ext <<_ACEOF
17522/* confdefs.h.  */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h.  */
17527#include <ctype.h>
17528#if ((' ' & 0x0FF) == 0x020)
17529# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17530# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17531#else
17532# define ISLOWER(c) \
17533		   (('a' <= (c) && (c) <= 'i') \
17534		     || ('j' <= (c) && (c) <= 'r') \
17535		     || ('s' <= (c) && (c) <= 'z'))
17536# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17537#endif
17538
17539#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17540int
17541main ()
17542{
17543  int i;
17544  for (i = 0; i < 256; i++)
17545    if (XOR (islower (i), ISLOWER (i))
17546	|| toupper (i) != TOUPPER (i))
17547      exit(2);
17548  exit (0);
17549}
17550_ACEOF
17551rm -f conftest$ac_exeext
17552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553  (eval $ac_link) 2>&5
17554  ac_status=$?
17555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558  (eval $ac_try) 2>&5
17559  ac_status=$?
17560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561  (exit $ac_status); }; }; then
17562  :
17563else
17564  echo "$as_me: program exited with status $ac_status" >&5
17565echo "$as_me: failed program was:" >&5
17566sed 's/^/| /' conftest.$ac_ext >&5
17567
17568( exit $ac_status )
17569ac_cv_header_stdc=no
17570fi
17571rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17572fi
17573fi
17574fi
17575echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17576echo "${ECHO_T}$ac_cv_header_stdc" >&6
17577if test $ac_cv_header_stdc = yes; then
17578
17579cat >>confdefs.h <<\_ACEOF
17580#define STDC_HEADERS 1
17581_ACEOF
17582
17583fi
17584
17585# On IRIX 5.3, sys/types and inttypes.h are conflicting.
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
17596		  inttypes.h stdint.h unistd.h
17597do
17598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17599echo "$as_me:$LINENO: checking for $ac_header" >&5
17600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17601if eval "test \"\${$as_ac_Header+set}\" = set"; then
17602  echo $ECHO_N "(cached) $ECHO_C" >&6
17603else
17604  cat >conftest.$ac_ext <<_ACEOF
17605/* confdefs.h.  */
17606_ACEOF
17607cat confdefs.h >>conftest.$ac_ext
17608cat >>conftest.$ac_ext <<_ACEOF
17609/* end confdefs.h.  */
17610$ac_includes_default
17611
17612#include <$ac_header>
17613_ACEOF
17614rm -f conftest.$ac_objext
17615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17616  (eval $ac_compile) 2>conftest.er1
17617  ac_status=$?
17618  grep -v '^ *+' conftest.er1 >conftest.err
17619  rm -f conftest.er1
17620  cat conftest.err >&5
17621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622  (exit $ac_status); } &&
17623	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625  (eval $ac_try) 2>&5
17626  ac_status=$?
17627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628  (exit $ac_status); }; } &&
17629	 { ac_try='test -s conftest.$ac_objext'
17630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631  (eval $ac_try) 2>&5
17632  ac_status=$?
17633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634  (exit $ac_status); }; }; then
17635  eval "$as_ac_Header=yes"
17636else
17637  echo "$as_me: failed program was:" >&5
17638sed 's/^/| /' conftest.$ac_ext >&5
17639
17640eval "$as_ac_Header=no"
17641fi
17642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17643fi
17644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17646if test `eval echo '${'$as_ac_Header'}'` = yes; then
17647  cat >>confdefs.h <<_ACEOF
17648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17649_ACEOF
17650
17651fi
17652
17653done
17654
17655
17656
17657
17658
17659
17660
17661
17662for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
17663do
17664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17665echo "$as_me:$LINENO: checking for $ac_header" >&5
17666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17667if eval "test \"\${$as_ac_Header+set}\" = set"; then
17668  echo $ECHO_N "(cached) $ECHO_C" >&6
17669else
17670  cat >conftest.$ac_ext <<_ACEOF
17671/* confdefs.h.  */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h.  */
17676$ac_includes_default
17677
17678#include <$ac_header>
17679_ACEOF
17680rm -f conftest.$ac_objext
17681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17682  (eval $ac_compile) 2>conftest.er1
17683  ac_status=$?
17684  grep -v '^ *+' conftest.er1 >conftest.err
17685  rm -f conftest.er1
17686  cat conftest.err >&5
17687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688  (exit $ac_status); } &&
17689	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691  (eval $ac_try) 2>&5
17692  ac_status=$?
17693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694  (exit $ac_status); }; } &&
17695	 { ac_try='test -s conftest.$ac_objext'
17696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697  (eval $ac_try) 2>&5
17698  ac_status=$?
17699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700  (exit $ac_status); }; }; then
17701  eval "$as_ac_Header=yes"
17702else
17703  echo "$as_me: failed program was:" >&5
17704sed 's/^/| /' conftest.$ac_ext >&5
17705
17706eval "$as_ac_Header=no"
17707fi
17708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17709fi
17710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17712if test `eval echo '${'$as_ac_Header'}'` = yes; then
17713  cat >>confdefs.h <<_ACEOF
17714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17715_ACEOF
17716
17717fi
17718
17719done
17720
17721
17722if test "$ac_cv_header_wchar_h" != "yes"; then
17723
17724for ac_header in wcstr.h
17725do
17726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17727echo "$as_me:$LINENO: checking for $ac_header" >&5
17728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17729if eval "test \"\${$as_ac_Header+set}\" = set"; then
17730  echo $ECHO_N "(cached) $ECHO_C" >&6
17731else
17732  cat >conftest.$ac_ext <<_ACEOF
17733/* confdefs.h.  */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h.  */
17738$ac_includes_default
17739
17740#include <$ac_header>
17741_ACEOF
17742rm -f conftest.$ac_objext
17743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744  (eval $ac_compile) 2>conftest.er1
17745  ac_status=$?
17746  grep -v '^ *+' conftest.er1 >conftest.err
17747  rm -f conftest.er1
17748  cat conftest.err >&5
17749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750  (exit $ac_status); } &&
17751	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753  (eval $ac_try) 2>&5
17754  ac_status=$?
17755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756  (exit $ac_status); }; } &&
17757	 { ac_try='test -s conftest.$ac_objext'
17758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759  (eval $ac_try) 2>&5
17760  ac_status=$?
17761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762  (exit $ac_status); }; }; then
17763  eval "$as_ac_Header=yes"
17764else
17765  echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
17768eval "$as_ac_Header=no"
17769fi
17770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17771fi
17772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17774if test `eval echo '${'$as_ac_Header'}'` = yes; then
17775  cat >>confdefs.h <<_ACEOF
17776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17777_ACEOF
17778
17779fi
17780
17781done
17782
17783fi
17784
17785case "${host}" in
17786  *-pc-os2_emx | *-pc-os2-emx )
17787                  if test $ac_cv_header_langinfo_h = "yes" \
17788                -a \(   "$wx_cv_gccversion" = "EMX2" \
17789                     -o "$wx_cv_gccversion" = "EMX3" \
17790                     -o "$wx_cv_gccversion" = "Innotek5" \); then
17791          LIBS="$LIBS -lintl"
17792      fi
17793  ;;
17794esac
17795
17796if test "$USE_UNIX" = 1 ; then
17797
17798for ac_header in sys/select.h
17799do
17800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17801echo "$as_me:$LINENO: checking for $ac_header" >&5
17802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17803if eval "test \"\${$as_ac_Header+set}\" = set"; then
17804  echo $ECHO_N "(cached) $ECHO_C" >&6
17805else
17806  cat >conftest.$ac_ext <<_ACEOF
17807/* confdefs.h.  */
17808_ACEOF
17809cat confdefs.h >>conftest.$ac_ext
17810cat >>conftest.$ac_ext <<_ACEOF
17811/* end confdefs.h.  */
17812$ac_includes_default
17813
17814#include <$ac_header>
17815_ACEOF
17816rm -f conftest.$ac_objext
17817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818  (eval $ac_compile) 2>conftest.er1
17819  ac_status=$?
17820  grep -v '^ *+' conftest.er1 >conftest.err
17821  rm -f conftest.er1
17822  cat conftest.err >&5
17823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824  (exit $ac_status); } &&
17825	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827  (eval $ac_try) 2>&5
17828  ac_status=$?
17829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830  (exit $ac_status); }; } &&
17831	 { ac_try='test -s conftest.$ac_objext'
17832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833  (eval $ac_try) 2>&5
17834  ac_status=$?
17835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836  (exit $ac_status); }; }; then
17837  eval "$as_ac_Header=yes"
17838else
17839  echo "$as_me: failed program was:" >&5
17840sed 's/^/| /' conftest.$ac_ext >&5
17841
17842eval "$as_ac_Header=no"
17843fi
17844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17845fi
17846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17848if test `eval echo '${'$as_ac_Header'}'` = yes; then
17849  cat >>confdefs.h <<_ACEOF
17850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17851_ACEOF
17852
17853fi
17854
17855done
17856
17857fi
17858
17859
17860echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17861echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17862if test "${ac_cv_c_const+set}" = set; then
17863  echo $ECHO_N "(cached) $ECHO_C" >&6
17864else
17865  cat >conftest.$ac_ext <<_ACEOF
17866/* confdefs.h.  */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h.  */
17871
17872int
17873main ()
17874{
17875/* FIXME: Include the comments suggested by Paul. */
17876#ifndef __cplusplus
17877  /* Ultrix mips cc rejects this.  */
17878  typedef int charset[2];
17879  const charset x;
17880  /* SunOS 4.1.1 cc rejects this.  */
17881  char const *const *ccp;
17882  char **p;
17883  /* NEC SVR4.0.2 mips cc rejects this.  */
17884  struct point {int x, y;};
17885  static struct point const zero = {0,0};
17886  /* AIX XL C 1.02.0.0 rejects this.
17887     It does not let you subtract one const X* pointer from another in
17888     an arm of an if-expression whose if-part is not a constant
17889     expression */
17890  const char *g = "string";
17891  ccp = &g + (g ? g-g : 0);
17892  /* HPUX 7.0 cc rejects these. */
17893  ++ccp;
17894  p = (char**) ccp;
17895  ccp = (char const *const *) p;
17896  { /* SCO 3.2v4 cc rejects this.  */
17897    char *t;
17898    char const *s = 0 ? (char *) 0 : (char const *) 0;
17899
17900    *t++ = 0;
17901  }
17902  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17903    int x[] = {25, 17};
17904    const int *foo = &x[0];
17905    ++foo;
17906  }
17907  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17908    typedef const int *iptr;
17909    iptr p = 0;
17910    ++p;
17911  }
17912  { /* AIX XL C 1.02.0.0 rejects this saying
17913       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17914    struct s { int j; const int *ap[3]; };
17915    struct s *b; b->j = 5;
17916  }
17917  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17918    const int foo = 10;
17919  }
17920#endif
17921
17922  ;
17923  return 0;
17924}
17925_ACEOF
17926rm -f conftest.$ac_objext
17927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17928  (eval $ac_compile) 2>conftest.er1
17929  ac_status=$?
17930  grep -v '^ *+' conftest.er1 >conftest.err
17931  rm -f conftest.er1
17932  cat conftest.err >&5
17933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934  (exit $ac_status); } &&
17935	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937  (eval $ac_try) 2>&5
17938  ac_status=$?
17939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940  (exit $ac_status); }; } &&
17941	 { ac_try='test -s conftest.$ac_objext'
17942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943  (eval $ac_try) 2>&5
17944  ac_status=$?
17945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946  (exit $ac_status); }; }; then
17947  ac_cv_c_const=yes
17948else
17949  echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
17952ac_cv_c_const=no
17953fi
17954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17955fi
17956echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17957echo "${ECHO_T}$ac_cv_c_const" >&6
17958if test $ac_cv_c_const = no; then
17959
17960cat >>confdefs.h <<\_ACEOF
17961#define const
17962_ACEOF
17963
17964fi
17965
17966echo "$as_me:$LINENO: checking for inline" >&5
17967echo $ECHO_N "checking for inline... $ECHO_C" >&6
17968if test "${ac_cv_c_inline+set}" = set; then
17969  echo $ECHO_N "(cached) $ECHO_C" >&6
17970else
17971  ac_cv_c_inline=no
17972for ac_kw in inline __inline__ __inline; do
17973  cat >conftest.$ac_ext <<_ACEOF
17974/* confdefs.h.  */
17975_ACEOF
17976cat confdefs.h >>conftest.$ac_ext
17977cat >>conftest.$ac_ext <<_ACEOF
17978/* end confdefs.h.  */
17979#ifndef __cplusplus
17980typedef int foo_t;
17981static $ac_kw foo_t static_foo () {return 0; }
17982$ac_kw foo_t foo () {return 0; }
17983#endif
17984
17985_ACEOF
17986rm -f conftest.$ac_objext
17987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17988  (eval $ac_compile) 2>conftest.er1
17989  ac_status=$?
17990  grep -v '^ *+' conftest.er1 >conftest.err
17991  rm -f conftest.er1
17992  cat conftest.err >&5
17993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994  (exit $ac_status); } &&
17995	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997  (eval $ac_try) 2>&5
17998  ac_status=$?
17999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000  (exit $ac_status); }; } &&
18001	 { ac_try='test -s conftest.$ac_objext'
18002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003  (eval $ac_try) 2>&5
18004  ac_status=$?
18005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006  (exit $ac_status); }; }; then
18007  ac_cv_c_inline=$ac_kw; break
18008else
18009  echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
18012fi
18013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18014done
18015
18016fi
18017echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18018echo "${ECHO_T}$ac_cv_c_inline" >&6
18019
18020
18021case $ac_cv_c_inline in
18022  inline | yes) ;;
18023  *)
18024    case $ac_cv_c_inline in
18025      no) ac_val=;;
18026      *) ac_val=$ac_cv_c_inline;;
18027    esac
18028    cat >>confdefs.h <<_ACEOF
18029#ifndef __cplusplus
18030#define inline $ac_val
18031#endif
18032_ACEOF
18033    ;;
18034esac
18035
18036
18037echo "$as_me:$LINENO: checking for char" >&5
18038echo $ECHO_N "checking for char... $ECHO_C" >&6
18039if test "${ac_cv_type_char+set}" = set; then
18040  echo $ECHO_N "(cached) $ECHO_C" >&6
18041else
18042  cat >conftest.$ac_ext <<_ACEOF
18043/* confdefs.h.  */
18044_ACEOF
18045cat confdefs.h >>conftest.$ac_ext
18046cat >>conftest.$ac_ext <<_ACEOF
18047/* end confdefs.h.  */
18048$ac_includes_default
18049int
18050main ()
18051{
18052if ((char *) 0)
18053  return 0;
18054if (sizeof (char))
18055  return 0;
18056  ;
18057  return 0;
18058}
18059_ACEOF
18060rm -f conftest.$ac_objext
18061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18062  (eval $ac_compile) 2>conftest.er1
18063  ac_status=$?
18064  grep -v '^ *+' conftest.er1 >conftest.err
18065  rm -f conftest.er1
18066  cat conftest.err >&5
18067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068  (exit $ac_status); } &&
18069	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071  (eval $ac_try) 2>&5
18072  ac_status=$?
18073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074  (exit $ac_status); }; } &&
18075	 { ac_try='test -s conftest.$ac_objext'
18076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077  (eval $ac_try) 2>&5
18078  ac_status=$?
18079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080  (exit $ac_status); }; }; then
18081  ac_cv_type_char=yes
18082else
18083  echo "$as_me: failed program was:" >&5
18084sed 's/^/| /' conftest.$ac_ext >&5
18085
18086ac_cv_type_char=no
18087fi
18088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18089fi
18090echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18091echo "${ECHO_T}$ac_cv_type_char" >&6
18092
18093echo "$as_me:$LINENO: checking size of char" >&5
18094echo $ECHO_N "checking size of char... $ECHO_C" >&6
18095if test "${ac_cv_sizeof_char+set}" = set; then
18096  echo $ECHO_N "(cached) $ECHO_C" >&6
18097else
18098  if test "$ac_cv_type_char" = yes; then
18099  # The cast to unsigned long works around a bug in the HP C Compiler
18100  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18101  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18102  # This bug is HP SR number 8606223364.
18103  if test "$cross_compiling" = yes; then
18104  # Depending upon the size, compute the lo and hi bounds.
18105cat >conftest.$ac_ext <<_ACEOF
18106/* confdefs.h.  */
18107_ACEOF
18108cat confdefs.h >>conftest.$ac_ext
18109cat >>conftest.$ac_ext <<_ACEOF
18110/* end confdefs.h.  */
18111$ac_includes_default
18112int
18113main ()
18114{
18115static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18116test_array [0] = 0
18117
18118  ;
18119  return 0;
18120}
18121_ACEOF
18122rm -f conftest.$ac_objext
18123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18124  (eval $ac_compile) 2>conftest.er1
18125  ac_status=$?
18126  grep -v '^ *+' conftest.er1 >conftest.err
18127  rm -f conftest.er1
18128  cat conftest.err >&5
18129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130  (exit $ac_status); } &&
18131	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133  (eval $ac_try) 2>&5
18134  ac_status=$?
18135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136  (exit $ac_status); }; } &&
18137	 { ac_try='test -s conftest.$ac_objext'
18138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139  (eval $ac_try) 2>&5
18140  ac_status=$?
18141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142  (exit $ac_status); }; }; then
18143  ac_lo=0 ac_mid=0
18144  while :; do
18145    cat >conftest.$ac_ext <<_ACEOF
18146/* confdefs.h.  */
18147_ACEOF
18148cat confdefs.h >>conftest.$ac_ext
18149cat >>conftest.$ac_ext <<_ACEOF
18150/* end confdefs.h.  */
18151$ac_includes_default
18152int
18153main ()
18154{
18155static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18156test_array [0] = 0
18157
18158  ;
18159  return 0;
18160}
18161_ACEOF
18162rm -f conftest.$ac_objext
18163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164  (eval $ac_compile) 2>conftest.er1
18165  ac_status=$?
18166  grep -v '^ *+' conftest.er1 >conftest.err
18167  rm -f conftest.er1
18168  cat conftest.err >&5
18169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170  (exit $ac_status); } &&
18171	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173  (eval $ac_try) 2>&5
18174  ac_status=$?
18175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176  (exit $ac_status); }; } &&
18177	 { ac_try='test -s conftest.$ac_objext'
18178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179  (eval $ac_try) 2>&5
18180  ac_status=$?
18181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182  (exit $ac_status); }; }; then
18183  ac_hi=$ac_mid; break
18184else
18185  echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188ac_lo=`expr $ac_mid + 1`
18189		    if test $ac_lo -le $ac_mid; then
18190		      ac_lo= ac_hi=
18191		      break
18192		    fi
18193		    ac_mid=`expr 2 '*' $ac_mid + 1`
18194fi
18195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18196  done
18197else
18198  echo "$as_me: failed program was:" >&5
18199sed 's/^/| /' conftest.$ac_ext >&5
18200
18201cat >conftest.$ac_ext <<_ACEOF
18202/* confdefs.h.  */
18203_ACEOF
18204cat confdefs.h >>conftest.$ac_ext
18205cat >>conftest.$ac_ext <<_ACEOF
18206/* end confdefs.h.  */
18207$ac_includes_default
18208int
18209main ()
18210{
18211static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18212test_array [0] = 0
18213
18214  ;
18215  return 0;
18216}
18217_ACEOF
18218rm -f conftest.$ac_objext
18219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220  (eval $ac_compile) 2>conftest.er1
18221  ac_status=$?
18222  grep -v '^ *+' conftest.er1 >conftest.err
18223  rm -f conftest.er1
18224  cat conftest.err >&5
18225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226  (exit $ac_status); } &&
18227	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229  (eval $ac_try) 2>&5
18230  ac_status=$?
18231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232  (exit $ac_status); }; } &&
18233	 { ac_try='test -s conftest.$ac_objext'
18234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235  (eval $ac_try) 2>&5
18236  ac_status=$?
18237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238  (exit $ac_status); }; }; then
18239  ac_hi=-1 ac_mid=-1
18240  while :; do
18241    cat >conftest.$ac_ext <<_ACEOF
18242/* confdefs.h.  */
18243_ACEOF
18244cat confdefs.h >>conftest.$ac_ext
18245cat >>conftest.$ac_ext <<_ACEOF
18246/* end confdefs.h.  */
18247$ac_includes_default
18248int
18249main ()
18250{
18251static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18252test_array [0] = 0
18253
18254  ;
18255  return 0;
18256}
18257_ACEOF
18258rm -f conftest.$ac_objext
18259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18260  (eval $ac_compile) 2>conftest.er1
18261  ac_status=$?
18262  grep -v '^ *+' conftest.er1 >conftest.err
18263  rm -f conftest.er1
18264  cat conftest.err >&5
18265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266  (exit $ac_status); } &&
18267	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
18273	 { ac_try='test -s conftest.$ac_objext'
18274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275  (eval $ac_try) 2>&5
18276  ac_status=$?
18277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278  (exit $ac_status); }; }; then
18279  ac_lo=$ac_mid; break
18280else
18281  echo "$as_me: failed program was:" >&5
18282sed 's/^/| /' conftest.$ac_ext >&5
18283
18284ac_hi=`expr '(' $ac_mid ')' - 1`
18285		       if test $ac_mid -le $ac_hi; then
18286			 ac_lo= ac_hi=
18287			 break
18288		       fi
18289		       ac_mid=`expr 2 '*' $ac_mid`
18290fi
18291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18292  done
18293else
18294  echo "$as_me: failed program was:" >&5
18295sed 's/^/| /' conftest.$ac_ext >&5
18296
18297ac_lo= ac_hi=
18298fi
18299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18300fi
18301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18302# Binary search between lo and hi bounds.
18303while test "x$ac_lo" != "x$ac_hi"; do
18304  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18305  cat >conftest.$ac_ext <<_ACEOF
18306/* confdefs.h.  */
18307_ACEOF
18308cat confdefs.h >>conftest.$ac_ext
18309cat >>conftest.$ac_ext <<_ACEOF
18310/* end confdefs.h.  */
18311$ac_includes_default
18312int
18313main ()
18314{
18315static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18316test_array [0] = 0
18317
18318  ;
18319  return 0;
18320}
18321_ACEOF
18322rm -f conftest.$ac_objext
18323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18324  (eval $ac_compile) 2>conftest.er1
18325  ac_status=$?
18326  grep -v '^ *+' conftest.er1 >conftest.err
18327  rm -f conftest.er1
18328  cat conftest.err >&5
18329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330  (exit $ac_status); } &&
18331	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333  (eval $ac_try) 2>&5
18334  ac_status=$?
18335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336  (exit $ac_status); }; } &&
18337	 { ac_try='test -s conftest.$ac_objext'
18338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339  (eval $ac_try) 2>&5
18340  ac_status=$?
18341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342  (exit $ac_status); }; }; then
18343  ac_hi=$ac_mid
18344else
18345  echo "$as_me: failed program was:" >&5
18346sed 's/^/| /' conftest.$ac_ext >&5
18347
18348ac_lo=`expr '(' $ac_mid ')' + 1`
18349fi
18350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18351done
18352case $ac_lo in
18353?*) ac_cv_sizeof_char=$ac_lo;;
18354'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18355See \`config.log' for more details." >&5
18356echo "$as_me: error: cannot compute sizeof (char), 77
18357See \`config.log' for more details." >&2;}
18358   { (exit 1); exit 1; }; } ;;
18359esac
18360else
18361  if test "$cross_compiling" = yes; then
18362  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18363echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18364   { (exit 1); exit 1; }; }
18365else
18366  cat >conftest.$ac_ext <<_ACEOF
18367/* confdefs.h.  */
18368_ACEOF
18369cat confdefs.h >>conftest.$ac_ext
18370cat >>conftest.$ac_ext <<_ACEOF
18371/* end confdefs.h.  */
18372$ac_includes_default
18373long longval () { return (long) (sizeof (char)); }
18374unsigned long ulongval () { return (long) (sizeof (char)); }
18375#include <stdio.h>
18376#include <stdlib.h>
18377int
18378main ()
18379{
18380
18381  FILE *f = fopen ("conftest.val", "w");
18382  if (! f)
18383    exit (1);
18384  if (((long) (sizeof (char))) < 0)
18385    {
18386      long i = longval ();
18387      if (i != ((long) (sizeof (char))))
18388	exit (1);
18389      fprintf (f, "%ld\n", i);
18390    }
18391  else
18392    {
18393      unsigned long i = ulongval ();
18394      if (i != ((long) (sizeof (char))))
18395	exit (1);
18396      fprintf (f, "%lu\n", i);
18397    }
18398  exit (ferror (f) || fclose (f) != 0);
18399
18400  ;
18401  return 0;
18402}
18403_ACEOF
18404rm -f conftest$ac_exeext
18405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18406  (eval $ac_link) 2>&5
18407  ac_status=$?
18408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411  (eval $ac_try) 2>&5
18412  ac_status=$?
18413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414  (exit $ac_status); }; }; then
18415  ac_cv_sizeof_char=`cat conftest.val`
18416else
18417  echo "$as_me: program exited with status $ac_status" >&5
18418echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421( exit $ac_status )
18422{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18423See \`config.log' for more details." >&5
18424echo "$as_me: error: cannot compute sizeof (char), 77
18425See \`config.log' for more details." >&2;}
18426   { (exit 1); exit 1; }; }
18427fi
18428rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18429fi
18430fi
18431rm -f conftest.val
18432else
18433  ac_cv_sizeof_char=0
18434fi
18435fi
18436echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18437echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18438cat >>confdefs.h <<_ACEOF
18439#define SIZEOF_CHAR $ac_cv_sizeof_char
18440_ACEOF
18441
18442
18443echo "$as_me:$LINENO: checking for short" >&5
18444echo $ECHO_N "checking for short... $ECHO_C" >&6
18445if test "${ac_cv_type_short+set}" = set; then
18446  echo $ECHO_N "(cached) $ECHO_C" >&6
18447else
18448  cat >conftest.$ac_ext <<_ACEOF
18449/* confdefs.h.  */
18450_ACEOF
18451cat confdefs.h >>conftest.$ac_ext
18452cat >>conftest.$ac_ext <<_ACEOF
18453/* end confdefs.h.  */
18454$ac_includes_default
18455int
18456main ()
18457{
18458if ((short *) 0)
18459  return 0;
18460if (sizeof (short))
18461  return 0;
18462  ;
18463  return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext
18467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18468  (eval $ac_compile) 2>conftest.er1
18469  ac_status=$?
18470  grep -v '^ *+' conftest.er1 >conftest.err
18471  rm -f conftest.er1
18472  cat conftest.err >&5
18473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474  (exit $ac_status); } &&
18475	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477  (eval $ac_try) 2>&5
18478  ac_status=$?
18479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480  (exit $ac_status); }; } &&
18481	 { ac_try='test -s conftest.$ac_objext'
18482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483  (eval $ac_try) 2>&5
18484  ac_status=$?
18485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486  (exit $ac_status); }; }; then
18487  ac_cv_type_short=yes
18488else
18489  echo "$as_me: failed program was:" >&5
18490sed 's/^/| /' conftest.$ac_ext >&5
18491
18492ac_cv_type_short=no
18493fi
18494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18495fi
18496echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18497echo "${ECHO_T}$ac_cv_type_short" >&6
18498
18499echo "$as_me:$LINENO: checking size of short" >&5
18500echo $ECHO_N "checking size of short... $ECHO_C" >&6
18501if test "${ac_cv_sizeof_short+set}" = set; then
18502  echo $ECHO_N "(cached) $ECHO_C" >&6
18503else
18504  if test "$ac_cv_type_short" = yes; then
18505  # The cast to unsigned long works around a bug in the HP C Compiler
18506  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18507  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18508  # This bug is HP SR number 8606223364.
18509  if test "$cross_compiling" = yes; then
18510  # Depending upon the size, compute the lo and hi bounds.
18511cat >conftest.$ac_ext <<_ACEOF
18512/* confdefs.h.  */
18513_ACEOF
18514cat confdefs.h >>conftest.$ac_ext
18515cat >>conftest.$ac_ext <<_ACEOF
18516/* end confdefs.h.  */
18517$ac_includes_default
18518int
18519main ()
18520{
18521static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18522test_array [0] = 0
18523
18524  ;
18525  return 0;
18526}
18527_ACEOF
18528rm -f conftest.$ac_objext
18529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18530  (eval $ac_compile) 2>conftest.er1
18531  ac_status=$?
18532  grep -v '^ *+' conftest.er1 >conftest.err
18533  rm -f conftest.er1
18534  cat conftest.err >&5
18535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536  (exit $ac_status); } &&
18537	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539  (eval $ac_try) 2>&5
18540  ac_status=$?
18541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542  (exit $ac_status); }; } &&
18543	 { ac_try='test -s conftest.$ac_objext'
18544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545  (eval $ac_try) 2>&5
18546  ac_status=$?
18547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548  (exit $ac_status); }; }; then
18549  ac_lo=0 ac_mid=0
18550  while :; do
18551    cat >conftest.$ac_ext <<_ACEOF
18552/* confdefs.h.  */
18553_ACEOF
18554cat confdefs.h >>conftest.$ac_ext
18555cat >>conftest.$ac_ext <<_ACEOF
18556/* end confdefs.h.  */
18557$ac_includes_default
18558int
18559main ()
18560{
18561static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18562test_array [0] = 0
18563
18564  ;
18565  return 0;
18566}
18567_ACEOF
18568rm -f conftest.$ac_objext
18569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18570  (eval $ac_compile) 2>conftest.er1
18571  ac_status=$?
18572  grep -v '^ *+' conftest.er1 >conftest.err
18573  rm -f conftest.er1
18574  cat conftest.err >&5
18575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576  (exit $ac_status); } &&
18577	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579  (eval $ac_try) 2>&5
18580  ac_status=$?
18581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582  (exit $ac_status); }; } &&
18583	 { ac_try='test -s conftest.$ac_objext'
18584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585  (eval $ac_try) 2>&5
18586  ac_status=$?
18587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588  (exit $ac_status); }; }; then
18589  ac_hi=$ac_mid; break
18590else
18591  echo "$as_me: failed program was:" >&5
18592sed 's/^/| /' conftest.$ac_ext >&5
18593
18594ac_lo=`expr $ac_mid + 1`
18595		    if test $ac_lo -le $ac_mid; then
18596		      ac_lo= ac_hi=
18597		      break
18598		    fi
18599		    ac_mid=`expr 2 '*' $ac_mid + 1`
18600fi
18601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18602  done
18603else
18604  echo "$as_me: failed program was:" >&5
18605sed 's/^/| /' conftest.$ac_ext >&5
18606
18607cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h.  */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h.  */
18613$ac_includes_default
18614int
18615main ()
18616{
18617static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18618test_array [0] = 0
18619
18620  ;
18621  return 0;
18622}
18623_ACEOF
18624rm -f conftest.$ac_objext
18625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18626  (eval $ac_compile) 2>conftest.er1
18627  ac_status=$?
18628  grep -v '^ *+' conftest.er1 >conftest.err
18629  rm -f conftest.er1
18630  cat conftest.err >&5
18631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632  (exit $ac_status); } &&
18633	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635  (eval $ac_try) 2>&5
18636  ac_status=$?
18637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638  (exit $ac_status); }; } &&
18639	 { ac_try='test -s conftest.$ac_objext'
18640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641  (eval $ac_try) 2>&5
18642  ac_status=$?
18643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644  (exit $ac_status); }; }; then
18645  ac_hi=-1 ac_mid=-1
18646  while :; do
18647    cat >conftest.$ac_ext <<_ACEOF
18648/* confdefs.h.  */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
18652/* end confdefs.h.  */
18653$ac_includes_default
18654int
18655main ()
18656{
18657static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18658test_array [0] = 0
18659
18660  ;
18661  return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext
18665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18666  (eval $ac_compile) 2>conftest.er1
18667  ac_status=$?
18668  grep -v '^ *+' conftest.er1 >conftest.err
18669  rm -f conftest.er1
18670  cat conftest.err >&5
18671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672  (exit $ac_status); } &&
18673	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675  (eval $ac_try) 2>&5
18676  ac_status=$?
18677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678  (exit $ac_status); }; } &&
18679	 { ac_try='test -s conftest.$ac_objext'
18680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681  (eval $ac_try) 2>&5
18682  ac_status=$?
18683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684  (exit $ac_status); }; }; then
18685  ac_lo=$ac_mid; break
18686else
18687  echo "$as_me: failed program was:" >&5
18688sed 's/^/| /' conftest.$ac_ext >&5
18689
18690ac_hi=`expr '(' $ac_mid ')' - 1`
18691		       if test $ac_mid -le $ac_hi; then
18692			 ac_lo= ac_hi=
18693			 break
18694		       fi
18695		       ac_mid=`expr 2 '*' $ac_mid`
18696fi
18697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18698  done
18699else
18700  echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703ac_lo= ac_hi=
18704fi
18705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18706fi
18707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18708# Binary search between lo and hi bounds.
18709while test "x$ac_lo" != "x$ac_hi"; do
18710  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18711  cat >conftest.$ac_ext <<_ACEOF
18712/* confdefs.h.  */
18713_ACEOF
18714cat confdefs.h >>conftest.$ac_ext
18715cat >>conftest.$ac_ext <<_ACEOF
18716/* end confdefs.h.  */
18717$ac_includes_default
18718int
18719main ()
18720{
18721static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18722test_array [0] = 0
18723
18724  ;
18725  return 0;
18726}
18727_ACEOF
18728rm -f conftest.$ac_objext
18729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730  (eval $ac_compile) 2>conftest.er1
18731  ac_status=$?
18732  grep -v '^ *+' conftest.er1 >conftest.err
18733  rm -f conftest.er1
18734  cat conftest.err >&5
18735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736  (exit $ac_status); } &&
18737	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739  (eval $ac_try) 2>&5
18740  ac_status=$?
18741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742  (exit $ac_status); }; } &&
18743	 { ac_try='test -s conftest.$ac_objext'
18744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745  (eval $ac_try) 2>&5
18746  ac_status=$?
18747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748  (exit $ac_status); }; }; then
18749  ac_hi=$ac_mid
18750else
18751  echo "$as_me: failed program was:" >&5
18752sed 's/^/| /' conftest.$ac_ext >&5
18753
18754ac_lo=`expr '(' $ac_mid ')' + 1`
18755fi
18756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18757done
18758case $ac_lo in
18759?*) ac_cv_sizeof_short=$ac_lo;;
18760'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18761See \`config.log' for more details." >&5
18762echo "$as_me: error: cannot compute sizeof (short), 77
18763See \`config.log' for more details." >&2;}
18764   { (exit 1); exit 1; }; } ;;
18765esac
18766else
18767  if test "$cross_compiling" = yes; then
18768  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18769echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18770   { (exit 1); exit 1; }; }
18771else
18772  cat >conftest.$ac_ext <<_ACEOF
18773/* confdefs.h.  */
18774_ACEOF
18775cat confdefs.h >>conftest.$ac_ext
18776cat >>conftest.$ac_ext <<_ACEOF
18777/* end confdefs.h.  */
18778$ac_includes_default
18779long longval () { return (long) (sizeof (short)); }
18780unsigned long ulongval () { return (long) (sizeof (short)); }
18781#include <stdio.h>
18782#include <stdlib.h>
18783int
18784main ()
18785{
18786
18787  FILE *f = fopen ("conftest.val", "w");
18788  if (! f)
18789    exit (1);
18790  if (((long) (sizeof (short))) < 0)
18791    {
18792      long i = longval ();
18793      if (i != ((long) (sizeof (short))))
18794	exit (1);
18795      fprintf (f, "%ld\n", i);
18796    }
18797  else
18798    {
18799      unsigned long i = ulongval ();
18800      if (i != ((long) (sizeof (short))))
18801	exit (1);
18802      fprintf (f, "%lu\n", i);
18803    }
18804  exit (ferror (f) || fclose (f) != 0);
18805
18806  ;
18807  return 0;
18808}
18809_ACEOF
18810rm -f conftest$ac_exeext
18811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18812  (eval $ac_link) 2>&5
18813  ac_status=$?
18814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817  (eval $ac_try) 2>&5
18818  ac_status=$?
18819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820  (exit $ac_status); }; }; then
18821  ac_cv_sizeof_short=`cat conftest.val`
18822else
18823  echo "$as_me: program exited with status $ac_status" >&5
18824echo "$as_me: failed program was:" >&5
18825sed 's/^/| /' conftest.$ac_ext >&5
18826
18827( exit $ac_status )
18828{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18829See \`config.log' for more details." >&5
18830echo "$as_me: error: cannot compute sizeof (short), 77
18831See \`config.log' for more details." >&2;}
18832   { (exit 1); exit 1; }; }
18833fi
18834rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18835fi
18836fi
18837rm -f conftest.val
18838else
18839  ac_cv_sizeof_short=0
18840fi
18841fi
18842echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18843echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18844cat >>confdefs.h <<_ACEOF
18845#define SIZEOF_SHORT $ac_cv_sizeof_short
18846_ACEOF
18847
18848
18849echo "$as_me:$LINENO: checking for void *" >&5
18850echo $ECHO_N "checking for void *... $ECHO_C" >&6
18851if test "${ac_cv_type_void_p+set}" = set; then
18852  echo $ECHO_N "(cached) $ECHO_C" >&6
18853else
18854  cat >conftest.$ac_ext <<_ACEOF
18855/* confdefs.h.  */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h.  */
18860$ac_includes_default
18861int
18862main ()
18863{
18864if ((void * *) 0)
18865  return 0;
18866if (sizeof (void *))
18867  return 0;
18868  ;
18869  return 0;
18870}
18871_ACEOF
18872rm -f conftest.$ac_objext
18873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18874  (eval $ac_compile) 2>conftest.er1
18875  ac_status=$?
18876  grep -v '^ *+' conftest.er1 >conftest.err
18877  rm -f conftest.er1
18878  cat conftest.err >&5
18879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880  (exit $ac_status); } &&
18881	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883  (eval $ac_try) 2>&5
18884  ac_status=$?
18885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886  (exit $ac_status); }; } &&
18887	 { ac_try='test -s conftest.$ac_objext'
18888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889  (eval $ac_try) 2>&5
18890  ac_status=$?
18891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892  (exit $ac_status); }; }; then
18893  ac_cv_type_void_p=yes
18894else
18895  echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898ac_cv_type_void_p=no
18899fi
18900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18901fi
18902echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18903echo "${ECHO_T}$ac_cv_type_void_p" >&6
18904
18905echo "$as_me:$LINENO: checking size of void *" >&5
18906echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18907if test "${ac_cv_sizeof_void_p+set}" = set; then
18908  echo $ECHO_N "(cached) $ECHO_C" >&6
18909else
18910  if test "$ac_cv_type_void_p" = yes; then
18911  # The cast to unsigned long works around a bug in the HP C Compiler
18912  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18913  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18914  # This bug is HP SR number 8606223364.
18915  if test "$cross_compiling" = yes; then
18916  # Depending upon the size, compute the lo and hi bounds.
18917cat >conftest.$ac_ext <<_ACEOF
18918/* confdefs.h.  */
18919_ACEOF
18920cat confdefs.h >>conftest.$ac_ext
18921cat >>conftest.$ac_ext <<_ACEOF
18922/* end confdefs.h.  */
18923$ac_includes_default
18924int
18925main ()
18926{
18927static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18928test_array [0] = 0
18929
18930  ;
18931  return 0;
18932}
18933_ACEOF
18934rm -f conftest.$ac_objext
18935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18936  (eval $ac_compile) 2>conftest.er1
18937  ac_status=$?
18938  grep -v '^ *+' conftest.er1 >conftest.err
18939  rm -f conftest.er1
18940  cat conftest.err >&5
18941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942  (exit $ac_status); } &&
18943	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945  (eval $ac_try) 2>&5
18946  ac_status=$?
18947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948  (exit $ac_status); }; } &&
18949	 { ac_try='test -s conftest.$ac_objext'
18950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951  (eval $ac_try) 2>&5
18952  ac_status=$?
18953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954  (exit $ac_status); }; }; then
18955  ac_lo=0 ac_mid=0
18956  while :; do
18957    cat >conftest.$ac_ext <<_ACEOF
18958/* confdefs.h.  */
18959_ACEOF
18960cat confdefs.h >>conftest.$ac_ext
18961cat >>conftest.$ac_ext <<_ACEOF
18962/* end confdefs.h.  */
18963$ac_includes_default
18964int
18965main ()
18966{
18967static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18968test_array [0] = 0
18969
18970  ;
18971  return 0;
18972}
18973_ACEOF
18974rm -f conftest.$ac_objext
18975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18976  (eval $ac_compile) 2>conftest.er1
18977  ac_status=$?
18978  grep -v '^ *+' conftest.er1 >conftest.err
18979  rm -f conftest.er1
18980  cat conftest.err >&5
18981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982  (exit $ac_status); } &&
18983	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985  (eval $ac_try) 2>&5
18986  ac_status=$?
18987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988  (exit $ac_status); }; } &&
18989	 { ac_try='test -s conftest.$ac_objext'
18990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991  (eval $ac_try) 2>&5
18992  ac_status=$?
18993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994  (exit $ac_status); }; }; then
18995  ac_hi=$ac_mid; break
18996else
18997  echo "$as_me: failed program was:" >&5
18998sed 's/^/| /' conftest.$ac_ext >&5
18999
19000ac_lo=`expr $ac_mid + 1`
19001		    if test $ac_lo -le $ac_mid; then
19002		      ac_lo= ac_hi=
19003		      break
19004		    fi
19005		    ac_mid=`expr 2 '*' $ac_mid + 1`
19006fi
19007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19008  done
19009else
19010  echo "$as_me: failed program was:" >&5
19011sed 's/^/| /' conftest.$ac_ext >&5
19012
19013cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h.  */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h.  */
19019$ac_includes_default
19020int
19021main ()
19022{
19023static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19024test_array [0] = 0
19025
19026  ;
19027  return 0;
19028}
19029_ACEOF
19030rm -f conftest.$ac_objext
19031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19032  (eval $ac_compile) 2>conftest.er1
19033  ac_status=$?
19034  grep -v '^ *+' conftest.er1 >conftest.err
19035  rm -f conftest.er1
19036  cat conftest.err >&5
19037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038  (exit $ac_status); } &&
19039	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041  (eval $ac_try) 2>&5
19042  ac_status=$?
19043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044  (exit $ac_status); }; } &&
19045	 { ac_try='test -s conftest.$ac_objext'
19046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047  (eval $ac_try) 2>&5
19048  ac_status=$?
19049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050  (exit $ac_status); }; }; then
19051  ac_hi=-1 ac_mid=-1
19052  while :; do
19053    cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h.  */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h.  */
19059$ac_includes_default
19060int
19061main ()
19062{
19063static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19064test_array [0] = 0
19065
19066  ;
19067  return 0;
19068}
19069_ACEOF
19070rm -f conftest.$ac_objext
19071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19072  (eval $ac_compile) 2>conftest.er1
19073  ac_status=$?
19074  grep -v '^ *+' conftest.er1 >conftest.err
19075  rm -f conftest.er1
19076  cat conftest.err >&5
19077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078  (exit $ac_status); } &&
19079	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081  (eval $ac_try) 2>&5
19082  ac_status=$?
19083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084  (exit $ac_status); }; } &&
19085	 { ac_try='test -s conftest.$ac_objext'
19086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087  (eval $ac_try) 2>&5
19088  ac_status=$?
19089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090  (exit $ac_status); }; }; then
19091  ac_lo=$ac_mid; break
19092else
19093  echo "$as_me: failed program was:" >&5
19094sed 's/^/| /' conftest.$ac_ext >&5
19095
19096ac_hi=`expr '(' $ac_mid ')' - 1`
19097		       if test $ac_mid -le $ac_hi; then
19098			 ac_lo= ac_hi=
19099			 break
19100		       fi
19101		       ac_mid=`expr 2 '*' $ac_mid`
19102fi
19103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19104  done
19105else
19106  echo "$as_me: failed program was:" >&5
19107sed 's/^/| /' conftest.$ac_ext >&5
19108
19109ac_lo= ac_hi=
19110fi
19111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19112fi
19113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19114# Binary search between lo and hi bounds.
19115while test "x$ac_lo" != "x$ac_hi"; do
19116  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19117  cat >conftest.$ac_ext <<_ACEOF
19118/* confdefs.h.  */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
19122/* end confdefs.h.  */
19123$ac_includes_default
19124int
19125main ()
19126{
19127static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19128test_array [0] = 0
19129
19130  ;
19131  return 0;
19132}
19133_ACEOF
19134rm -f conftest.$ac_objext
19135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19136  (eval $ac_compile) 2>conftest.er1
19137  ac_status=$?
19138  grep -v '^ *+' conftest.er1 >conftest.err
19139  rm -f conftest.er1
19140  cat conftest.err >&5
19141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142  (exit $ac_status); } &&
19143	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145  (eval $ac_try) 2>&5
19146  ac_status=$?
19147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148  (exit $ac_status); }; } &&
19149	 { ac_try='test -s conftest.$ac_objext'
19150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151  (eval $ac_try) 2>&5
19152  ac_status=$?
19153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154  (exit $ac_status); }; }; then
19155  ac_hi=$ac_mid
19156else
19157  echo "$as_me: failed program was:" >&5
19158sed 's/^/| /' conftest.$ac_ext >&5
19159
19160ac_lo=`expr '(' $ac_mid ')' + 1`
19161fi
19162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19163done
19164case $ac_lo in
19165?*) ac_cv_sizeof_void_p=$ac_lo;;
19166'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19167See \`config.log' for more details." >&5
19168echo "$as_me: error: cannot compute sizeof (void *), 77
19169See \`config.log' for more details." >&2;}
19170   { (exit 1); exit 1; }; } ;;
19171esac
19172else
19173  if test "$cross_compiling" = yes; then
19174  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19175echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19176   { (exit 1); exit 1; }; }
19177else
19178  cat >conftest.$ac_ext <<_ACEOF
19179/* confdefs.h.  */
19180_ACEOF
19181cat confdefs.h >>conftest.$ac_ext
19182cat >>conftest.$ac_ext <<_ACEOF
19183/* end confdefs.h.  */
19184$ac_includes_default
19185long longval () { return (long) (sizeof (void *)); }
19186unsigned long ulongval () { return (long) (sizeof (void *)); }
19187#include <stdio.h>
19188#include <stdlib.h>
19189int
19190main ()
19191{
19192
19193  FILE *f = fopen ("conftest.val", "w");
19194  if (! f)
19195    exit (1);
19196  if (((long) (sizeof (void *))) < 0)
19197    {
19198      long i = longval ();
19199      if (i != ((long) (sizeof (void *))))
19200	exit (1);
19201      fprintf (f, "%ld\n", i);
19202    }
19203  else
19204    {
19205      unsigned long i = ulongval ();
19206      if (i != ((long) (sizeof (void *))))
19207	exit (1);
19208      fprintf (f, "%lu\n", i);
19209    }
19210  exit (ferror (f) || fclose (f) != 0);
19211
19212  ;
19213  return 0;
19214}
19215_ACEOF
19216rm -f conftest$ac_exeext
19217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19218  (eval $ac_link) 2>&5
19219  ac_status=$?
19220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223  (eval $ac_try) 2>&5
19224  ac_status=$?
19225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226  (exit $ac_status); }; }; then
19227  ac_cv_sizeof_void_p=`cat conftest.val`
19228else
19229  echo "$as_me: program exited with status $ac_status" >&5
19230echo "$as_me: failed program was:" >&5
19231sed 's/^/| /' conftest.$ac_ext >&5
19232
19233( exit $ac_status )
19234{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19235See \`config.log' for more details." >&5
19236echo "$as_me: error: cannot compute sizeof (void *), 77
19237See \`config.log' for more details." >&2;}
19238   { (exit 1); exit 1; }; }
19239fi
19240rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19241fi
19242fi
19243rm -f conftest.val
19244else
19245  ac_cv_sizeof_void_p=0
19246fi
19247fi
19248echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19249echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19250cat >>confdefs.h <<_ACEOF
19251#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19252_ACEOF
19253
19254
19255echo "$as_me:$LINENO: checking for int" >&5
19256echo $ECHO_N "checking for int... $ECHO_C" >&6
19257if test "${ac_cv_type_int+set}" = set; then
19258  echo $ECHO_N "(cached) $ECHO_C" >&6
19259else
19260  cat >conftest.$ac_ext <<_ACEOF
19261/* confdefs.h.  */
19262_ACEOF
19263cat confdefs.h >>conftest.$ac_ext
19264cat >>conftest.$ac_ext <<_ACEOF
19265/* end confdefs.h.  */
19266$ac_includes_default
19267int
19268main ()
19269{
19270if ((int *) 0)
19271  return 0;
19272if (sizeof (int))
19273  return 0;
19274  ;
19275  return 0;
19276}
19277_ACEOF
19278rm -f conftest.$ac_objext
19279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19280  (eval $ac_compile) 2>conftest.er1
19281  ac_status=$?
19282  grep -v '^ *+' conftest.er1 >conftest.err
19283  rm -f conftest.er1
19284  cat conftest.err >&5
19285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286  (exit $ac_status); } &&
19287	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289  (eval $ac_try) 2>&5
19290  ac_status=$?
19291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292  (exit $ac_status); }; } &&
19293	 { ac_try='test -s conftest.$ac_objext'
19294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295  (eval $ac_try) 2>&5
19296  ac_status=$?
19297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298  (exit $ac_status); }; }; then
19299  ac_cv_type_int=yes
19300else
19301  echo "$as_me: failed program was:" >&5
19302sed 's/^/| /' conftest.$ac_ext >&5
19303
19304ac_cv_type_int=no
19305fi
19306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19307fi
19308echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19309echo "${ECHO_T}$ac_cv_type_int" >&6
19310
19311echo "$as_me:$LINENO: checking size of int" >&5
19312echo $ECHO_N "checking size of int... $ECHO_C" >&6
19313if test "${ac_cv_sizeof_int+set}" = set; then
19314  echo $ECHO_N "(cached) $ECHO_C" >&6
19315else
19316  if test "$ac_cv_type_int" = yes; then
19317  # The cast to unsigned long works around a bug in the HP C Compiler
19318  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19319  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19320  # This bug is HP SR number 8606223364.
19321  if test "$cross_compiling" = yes; then
19322  # Depending upon the size, compute the lo and hi bounds.
19323cat >conftest.$ac_ext <<_ACEOF
19324/* confdefs.h.  */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
19328/* end confdefs.h.  */
19329$ac_includes_default
19330int
19331main ()
19332{
19333static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19334test_array [0] = 0
19335
19336  ;
19337  return 0;
19338}
19339_ACEOF
19340rm -f conftest.$ac_objext
19341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19342  (eval $ac_compile) 2>conftest.er1
19343  ac_status=$?
19344  grep -v '^ *+' conftest.er1 >conftest.err
19345  rm -f conftest.er1
19346  cat conftest.err >&5
19347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348  (exit $ac_status); } &&
19349	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351  (eval $ac_try) 2>&5
19352  ac_status=$?
19353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354  (exit $ac_status); }; } &&
19355	 { ac_try='test -s conftest.$ac_objext'
19356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357  (eval $ac_try) 2>&5
19358  ac_status=$?
19359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360  (exit $ac_status); }; }; then
19361  ac_lo=0 ac_mid=0
19362  while :; do
19363    cat >conftest.$ac_ext <<_ACEOF
19364/* confdefs.h.  */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h.  */
19369$ac_includes_default
19370int
19371main ()
19372{
19373static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19374test_array [0] = 0
19375
19376  ;
19377  return 0;
19378}
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382  (eval $ac_compile) 2>conftest.er1
19383  ac_status=$?
19384  grep -v '^ *+' conftest.er1 >conftest.err
19385  rm -f conftest.er1
19386  cat conftest.err >&5
19387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388  (exit $ac_status); } &&
19389	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391  (eval $ac_try) 2>&5
19392  ac_status=$?
19393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394  (exit $ac_status); }; } &&
19395	 { ac_try='test -s conftest.$ac_objext'
19396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397  (eval $ac_try) 2>&5
19398  ac_status=$?
19399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400  (exit $ac_status); }; }; then
19401  ac_hi=$ac_mid; break
19402else
19403  echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
19406ac_lo=`expr $ac_mid + 1`
19407		    if test $ac_lo -le $ac_mid; then
19408		      ac_lo= ac_hi=
19409		      break
19410		    fi
19411		    ac_mid=`expr 2 '*' $ac_mid + 1`
19412fi
19413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19414  done
19415else
19416  echo "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419cat >conftest.$ac_ext <<_ACEOF
19420/* confdefs.h.  */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
19424/* end confdefs.h.  */
19425$ac_includes_default
19426int
19427main ()
19428{
19429static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19430test_array [0] = 0
19431
19432  ;
19433  return 0;
19434}
19435_ACEOF
19436rm -f conftest.$ac_objext
19437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19438  (eval $ac_compile) 2>conftest.er1
19439  ac_status=$?
19440  grep -v '^ *+' conftest.er1 >conftest.err
19441  rm -f conftest.er1
19442  cat conftest.err >&5
19443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444  (exit $ac_status); } &&
19445	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447  (eval $ac_try) 2>&5
19448  ac_status=$?
19449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450  (exit $ac_status); }; } &&
19451	 { ac_try='test -s conftest.$ac_objext'
19452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453  (eval $ac_try) 2>&5
19454  ac_status=$?
19455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456  (exit $ac_status); }; }; then
19457  ac_hi=-1 ac_mid=-1
19458  while :; do
19459    cat >conftest.$ac_ext <<_ACEOF
19460/* confdefs.h.  */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h.  */
19465$ac_includes_default
19466int
19467main ()
19468{
19469static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19470test_array [0] = 0
19471
19472  ;
19473  return 0;
19474}
19475_ACEOF
19476rm -f conftest.$ac_objext
19477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19478  (eval $ac_compile) 2>conftest.er1
19479  ac_status=$?
19480  grep -v '^ *+' conftest.er1 >conftest.err
19481  rm -f conftest.er1
19482  cat conftest.err >&5
19483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484  (exit $ac_status); } &&
19485	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487  (eval $ac_try) 2>&5
19488  ac_status=$?
19489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490  (exit $ac_status); }; } &&
19491	 { ac_try='test -s conftest.$ac_objext'
19492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493  (eval $ac_try) 2>&5
19494  ac_status=$?
19495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496  (exit $ac_status); }; }; then
19497  ac_lo=$ac_mid; break
19498else
19499  echo "$as_me: failed program was:" >&5
19500sed 's/^/| /' conftest.$ac_ext >&5
19501
19502ac_hi=`expr '(' $ac_mid ')' - 1`
19503		       if test $ac_mid -le $ac_hi; then
19504			 ac_lo= ac_hi=
19505			 break
19506		       fi
19507		       ac_mid=`expr 2 '*' $ac_mid`
19508fi
19509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19510  done
19511else
19512  echo "$as_me: failed program was:" >&5
19513sed 's/^/| /' conftest.$ac_ext >&5
19514
19515ac_lo= ac_hi=
19516fi
19517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19518fi
19519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19520# Binary search between lo and hi bounds.
19521while test "x$ac_lo" != "x$ac_hi"; do
19522  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19523  cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h.  */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h.  */
19529$ac_includes_default
19530int
19531main ()
19532{
19533static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19534test_array [0] = 0
19535
19536  ;
19537  return 0;
19538}
19539_ACEOF
19540rm -f conftest.$ac_objext
19541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542  (eval $ac_compile) 2>conftest.er1
19543  ac_status=$?
19544  grep -v '^ *+' conftest.er1 >conftest.err
19545  rm -f conftest.er1
19546  cat conftest.err >&5
19547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548  (exit $ac_status); } &&
19549	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551  (eval $ac_try) 2>&5
19552  ac_status=$?
19553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554  (exit $ac_status); }; } &&
19555	 { ac_try='test -s conftest.$ac_objext'
19556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557  (eval $ac_try) 2>&5
19558  ac_status=$?
19559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560  (exit $ac_status); }; }; then
19561  ac_hi=$ac_mid
19562else
19563  echo "$as_me: failed program was:" >&5
19564sed 's/^/| /' conftest.$ac_ext >&5
19565
19566ac_lo=`expr '(' $ac_mid ')' + 1`
19567fi
19568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19569done
19570case $ac_lo in
19571?*) ac_cv_sizeof_int=$ac_lo;;
19572'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19573See \`config.log' for more details." >&5
19574echo "$as_me: error: cannot compute sizeof (int), 77
19575See \`config.log' for more details." >&2;}
19576   { (exit 1); exit 1; }; } ;;
19577esac
19578else
19579  if test "$cross_compiling" = yes; then
19580  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19581echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19582   { (exit 1); exit 1; }; }
19583else
19584  cat >conftest.$ac_ext <<_ACEOF
19585/* confdefs.h.  */
19586_ACEOF
19587cat confdefs.h >>conftest.$ac_ext
19588cat >>conftest.$ac_ext <<_ACEOF
19589/* end confdefs.h.  */
19590$ac_includes_default
19591long longval () { return (long) (sizeof (int)); }
19592unsigned long ulongval () { return (long) (sizeof (int)); }
19593#include <stdio.h>
19594#include <stdlib.h>
19595int
19596main ()
19597{
19598
19599  FILE *f = fopen ("conftest.val", "w");
19600  if (! f)
19601    exit (1);
19602  if (((long) (sizeof (int))) < 0)
19603    {
19604      long i = longval ();
19605      if (i != ((long) (sizeof (int))))
19606	exit (1);
19607      fprintf (f, "%ld\n", i);
19608    }
19609  else
19610    {
19611      unsigned long i = ulongval ();
19612      if (i != ((long) (sizeof (int))))
19613	exit (1);
19614      fprintf (f, "%lu\n", i);
19615    }
19616  exit (ferror (f) || fclose (f) != 0);
19617
19618  ;
19619  return 0;
19620}
19621_ACEOF
19622rm -f conftest$ac_exeext
19623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19624  (eval $ac_link) 2>&5
19625  ac_status=$?
19626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629  (eval $ac_try) 2>&5
19630  ac_status=$?
19631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632  (exit $ac_status); }; }; then
19633  ac_cv_sizeof_int=`cat conftest.val`
19634else
19635  echo "$as_me: program exited with status $ac_status" >&5
19636echo "$as_me: failed program was:" >&5
19637sed 's/^/| /' conftest.$ac_ext >&5
19638
19639( exit $ac_status )
19640{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19641See \`config.log' for more details." >&5
19642echo "$as_me: error: cannot compute sizeof (int), 77
19643See \`config.log' for more details." >&2;}
19644   { (exit 1); exit 1; }; }
19645fi
19646rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19647fi
19648fi
19649rm -f conftest.val
19650else
19651  ac_cv_sizeof_int=0
19652fi
19653fi
19654echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19655echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19656cat >>confdefs.h <<_ACEOF
19657#define SIZEOF_INT $ac_cv_sizeof_int
19658_ACEOF
19659
19660
19661echo "$as_me:$LINENO: checking for long" >&5
19662echo $ECHO_N "checking for long... $ECHO_C" >&6
19663if test "${ac_cv_type_long+set}" = set; then
19664  echo $ECHO_N "(cached) $ECHO_C" >&6
19665else
19666  cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h.  */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h.  */
19672$ac_includes_default
19673int
19674main ()
19675{
19676if ((long *) 0)
19677  return 0;
19678if (sizeof (long))
19679  return 0;
19680  ;
19681  return 0;
19682}
19683_ACEOF
19684rm -f conftest.$ac_objext
19685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686  (eval $ac_compile) 2>conftest.er1
19687  ac_status=$?
19688  grep -v '^ *+' conftest.er1 >conftest.err
19689  rm -f conftest.er1
19690  cat conftest.err >&5
19691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692  (exit $ac_status); } &&
19693	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695  (eval $ac_try) 2>&5
19696  ac_status=$?
19697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698  (exit $ac_status); }; } &&
19699	 { ac_try='test -s conftest.$ac_objext'
19700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701  (eval $ac_try) 2>&5
19702  ac_status=$?
19703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704  (exit $ac_status); }; }; then
19705  ac_cv_type_long=yes
19706else
19707  echo "$as_me: failed program was:" >&5
19708sed 's/^/| /' conftest.$ac_ext >&5
19709
19710ac_cv_type_long=no
19711fi
19712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19713fi
19714echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19715echo "${ECHO_T}$ac_cv_type_long" >&6
19716
19717echo "$as_me:$LINENO: checking size of long" >&5
19718echo $ECHO_N "checking size of long... $ECHO_C" >&6
19719if test "${ac_cv_sizeof_long+set}" = set; then
19720  echo $ECHO_N "(cached) $ECHO_C" >&6
19721else
19722  if test "$ac_cv_type_long" = yes; then
19723  # The cast to unsigned long works around a bug in the HP C Compiler
19724  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19725  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19726  # This bug is HP SR number 8606223364.
19727  if test "$cross_compiling" = yes; then
19728  # Depending upon the size, compute the lo and hi bounds.
19729cat >conftest.$ac_ext <<_ACEOF
19730/* confdefs.h.  */
19731_ACEOF
19732cat confdefs.h >>conftest.$ac_ext
19733cat >>conftest.$ac_ext <<_ACEOF
19734/* end confdefs.h.  */
19735$ac_includes_default
19736int
19737main ()
19738{
19739static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19740test_array [0] = 0
19741
19742  ;
19743  return 0;
19744}
19745_ACEOF
19746rm -f conftest.$ac_objext
19747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19748  (eval $ac_compile) 2>conftest.er1
19749  ac_status=$?
19750  grep -v '^ *+' conftest.er1 >conftest.err
19751  rm -f conftest.er1
19752  cat conftest.err >&5
19753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754  (exit $ac_status); } &&
19755	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757  (eval $ac_try) 2>&5
19758  ac_status=$?
19759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760  (exit $ac_status); }; } &&
19761	 { ac_try='test -s conftest.$ac_objext'
19762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763  (eval $ac_try) 2>&5
19764  ac_status=$?
19765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766  (exit $ac_status); }; }; then
19767  ac_lo=0 ac_mid=0
19768  while :; do
19769    cat >conftest.$ac_ext <<_ACEOF
19770/* confdefs.h.  */
19771_ACEOF
19772cat confdefs.h >>conftest.$ac_ext
19773cat >>conftest.$ac_ext <<_ACEOF
19774/* end confdefs.h.  */
19775$ac_includes_default
19776int
19777main ()
19778{
19779static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19780test_array [0] = 0
19781
19782  ;
19783  return 0;
19784}
19785_ACEOF
19786rm -f conftest.$ac_objext
19787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788  (eval $ac_compile) 2>conftest.er1
19789  ac_status=$?
19790  grep -v '^ *+' conftest.er1 >conftest.err
19791  rm -f conftest.er1
19792  cat conftest.err >&5
19793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794  (exit $ac_status); } &&
19795	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797  (eval $ac_try) 2>&5
19798  ac_status=$?
19799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800  (exit $ac_status); }; } &&
19801	 { ac_try='test -s conftest.$ac_objext'
19802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803  (eval $ac_try) 2>&5
19804  ac_status=$?
19805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806  (exit $ac_status); }; }; then
19807  ac_hi=$ac_mid; break
19808else
19809  echo "$as_me: failed program was:" >&5
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
19812ac_lo=`expr $ac_mid + 1`
19813		    if test $ac_lo -le $ac_mid; then
19814		      ac_lo= ac_hi=
19815		      break
19816		    fi
19817		    ac_mid=`expr 2 '*' $ac_mid + 1`
19818fi
19819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19820  done
19821else
19822  echo "$as_me: failed program was:" >&5
19823sed 's/^/| /' conftest.$ac_ext >&5
19824
19825cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h.  */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h.  */
19831$ac_includes_default
19832int
19833main ()
19834{
19835static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19836test_array [0] = 0
19837
19838  ;
19839  return 0;
19840}
19841_ACEOF
19842rm -f conftest.$ac_objext
19843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19844  (eval $ac_compile) 2>conftest.er1
19845  ac_status=$?
19846  grep -v '^ *+' conftest.er1 >conftest.err
19847  rm -f conftest.er1
19848  cat conftest.err >&5
19849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850  (exit $ac_status); } &&
19851	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853  (eval $ac_try) 2>&5
19854  ac_status=$?
19855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856  (exit $ac_status); }; } &&
19857	 { ac_try='test -s conftest.$ac_objext'
19858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859  (eval $ac_try) 2>&5
19860  ac_status=$?
19861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862  (exit $ac_status); }; }; then
19863  ac_hi=-1 ac_mid=-1
19864  while :; do
19865    cat >conftest.$ac_ext <<_ACEOF
19866/* confdefs.h.  */
19867_ACEOF
19868cat confdefs.h >>conftest.$ac_ext
19869cat >>conftest.$ac_ext <<_ACEOF
19870/* end confdefs.h.  */
19871$ac_includes_default
19872int
19873main ()
19874{
19875static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19876test_array [0] = 0
19877
19878  ;
19879  return 0;
19880}
19881_ACEOF
19882rm -f conftest.$ac_objext
19883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19884  (eval $ac_compile) 2>conftest.er1
19885  ac_status=$?
19886  grep -v '^ *+' conftest.er1 >conftest.err
19887  rm -f conftest.er1
19888  cat conftest.err >&5
19889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890  (exit $ac_status); } &&
19891	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893  (eval $ac_try) 2>&5
19894  ac_status=$?
19895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896  (exit $ac_status); }; } &&
19897	 { ac_try='test -s conftest.$ac_objext'
19898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899  (eval $ac_try) 2>&5
19900  ac_status=$?
19901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902  (exit $ac_status); }; }; then
19903  ac_lo=$ac_mid; break
19904else
19905  echo "$as_me: failed program was:" >&5
19906sed 's/^/| /' conftest.$ac_ext >&5
19907
19908ac_hi=`expr '(' $ac_mid ')' - 1`
19909		       if test $ac_mid -le $ac_hi; then
19910			 ac_lo= ac_hi=
19911			 break
19912		       fi
19913		       ac_mid=`expr 2 '*' $ac_mid`
19914fi
19915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19916  done
19917else
19918  echo "$as_me: failed program was:" >&5
19919sed 's/^/| /' conftest.$ac_ext >&5
19920
19921ac_lo= ac_hi=
19922fi
19923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19924fi
19925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19926# Binary search between lo and hi bounds.
19927while test "x$ac_lo" != "x$ac_hi"; do
19928  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19929  cat >conftest.$ac_ext <<_ACEOF
19930/* confdefs.h.  */
19931_ACEOF
19932cat confdefs.h >>conftest.$ac_ext
19933cat >>conftest.$ac_ext <<_ACEOF
19934/* end confdefs.h.  */
19935$ac_includes_default
19936int
19937main ()
19938{
19939static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19940test_array [0] = 0
19941
19942  ;
19943  return 0;
19944}
19945_ACEOF
19946rm -f conftest.$ac_objext
19947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948  (eval $ac_compile) 2>conftest.er1
19949  ac_status=$?
19950  grep -v '^ *+' conftest.er1 >conftest.err
19951  rm -f conftest.er1
19952  cat conftest.err >&5
19953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954  (exit $ac_status); } &&
19955	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957  (eval $ac_try) 2>&5
19958  ac_status=$?
19959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960  (exit $ac_status); }; } &&
19961	 { ac_try='test -s conftest.$ac_objext'
19962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963  (eval $ac_try) 2>&5
19964  ac_status=$?
19965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966  (exit $ac_status); }; }; then
19967  ac_hi=$ac_mid
19968else
19969  echo "$as_me: failed program was:" >&5
19970sed 's/^/| /' conftest.$ac_ext >&5
19971
19972ac_lo=`expr '(' $ac_mid ')' + 1`
19973fi
19974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19975done
19976case $ac_lo in
19977?*) ac_cv_sizeof_long=$ac_lo;;
19978'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19979See \`config.log' for more details." >&5
19980echo "$as_me: error: cannot compute sizeof (long), 77
19981See \`config.log' for more details." >&2;}
19982   { (exit 1); exit 1; }; } ;;
19983esac
19984else
19985  if test "$cross_compiling" = yes; then
19986  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19987echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19988   { (exit 1); exit 1; }; }
19989else
19990  cat >conftest.$ac_ext <<_ACEOF
19991/* confdefs.h.  */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h.  */
19996$ac_includes_default
19997long longval () { return (long) (sizeof (long)); }
19998unsigned long ulongval () { return (long) (sizeof (long)); }
19999#include <stdio.h>
20000#include <stdlib.h>
20001int
20002main ()
20003{
20004
20005  FILE *f = fopen ("conftest.val", "w");
20006  if (! f)
20007    exit (1);
20008  if (((long) (sizeof (long))) < 0)
20009    {
20010      long i = longval ();
20011      if (i != ((long) (sizeof (long))))
20012	exit (1);
20013      fprintf (f, "%ld\n", i);
20014    }
20015  else
20016    {
20017      unsigned long i = ulongval ();
20018      if (i != ((long) (sizeof (long))))
20019	exit (1);
20020      fprintf (f, "%lu\n", i);
20021    }
20022  exit (ferror (f) || fclose (f) != 0);
20023
20024  ;
20025  return 0;
20026}
20027_ACEOF
20028rm -f conftest$ac_exeext
20029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20030  (eval $ac_link) 2>&5
20031  ac_status=$?
20032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035  (eval $ac_try) 2>&5
20036  ac_status=$?
20037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038  (exit $ac_status); }; }; then
20039  ac_cv_sizeof_long=`cat conftest.val`
20040else
20041  echo "$as_me: program exited with status $ac_status" >&5
20042echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045( exit $ac_status )
20046{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20047See \`config.log' for more details." >&5
20048echo "$as_me: error: cannot compute sizeof (long), 77
20049See \`config.log' for more details." >&2;}
20050   { (exit 1); exit 1; }; }
20051fi
20052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20053fi
20054fi
20055rm -f conftest.val
20056else
20057  ac_cv_sizeof_long=0
20058fi
20059fi
20060echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20061echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20062cat >>confdefs.h <<_ACEOF
20063#define SIZEOF_LONG $ac_cv_sizeof_long
20064_ACEOF
20065
20066
20067echo "$as_me:$LINENO: checking for size_t" >&5
20068echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20069if test "${ac_cv_type_size_t+set}" = set; then
20070  echo $ECHO_N "(cached) $ECHO_C" >&6
20071else
20072  cat >conftest.$ac_ext <<_ACEOF
20073/* confdefs.h.  */
20074_ACEOF
20075cat confdefs.h >>conftest.$ac_ext
20076cat >>conftest.$ac_ext <<_ACEOF
20077/* end confdefs.h.  */
20078$ac_includes_default
20079int
20080main ()
20081{
20082if ((size_t *) 0)
20083  return 0;
20084if (sizeof (size_t))
20085  return 0;
20086  ;
20087  return 0;
20088}
20089_ACEOF
20090rm -f conftest.$ac_objext
20091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20092  (eval $ac_compile) 2>conftest.er1
20093  ac_status=$?
20094  grep -v '^ *+' conftest.er1 >conftest.err
20095  rm -f conftest.er1
20096  cat conftest.err >&5
20097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098  (exit $ac_status); } &&
20099	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101  (eval $ac_try) 2>&5
20102  ac_status=$?
20103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104  (exit $ac_status); }; } &&
20105	 { ac_try='test -s conftest.$ac_objext'
20106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107  (eval $ac_try) 2>&5
20108  ac_status=$?
20109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110  (exit $ac_status); }; }; then
20111  ac_cv_type_size_t=yes
20112else
20113  echo "$as_me: failed program was:" >&5
20114sed 's/^/| /' conftest.$ac_ext >&5
20115
20116ac_cv_type_size_t=no
20117fi
20118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20119fi
20120echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20121echo "${ECHO_T}$ac_cv_type_size_t" >&6
20122
20123echo "$as_me:$LINENO: checking size of size_t" >&5
20124echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20125if test "${ac_cv_sizeof_size_t+set}" = set; then
20126  echo $ECHO_N "(cached) $ECHO_C" >&6
20127else
20128  if test "$ac_cv_type_size_t" = yes; then
20129  # The cast to unsigned long works around a bug in the HP C Compiler
20130  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20131  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20132  # This bug is HP SR number 8606223364.
20133  if test "$cross_compiling" = yes; then
20134  # Depending upon the size, compute the lo and hi bounds.
20135cat >conftest.$ac_ext <<_ACEOF
20136/* confdefs.h.  */
20137_ACEOF
20138cat confdefs.h >>conftest.$ac_ext
20139cat >>conftest.$ac_ext <<_ACEOF
20140/* end confdefs.h.  */
20141$ac_includes_default
20142int
20143main ()
20144{
20145static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20146test_array [0] = 0
20147
20148  ;
20149  return 0;
20150}
20151_ACEOF
20152rm -f conftest.$ac_objext
20153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20154  (eval $ac_compile) 2>conftest.er1
20155  ac_status=$?
20156  grep -v '^ *+' conftest.er1 >conftest.err
20157  rm -f conftest.er1
20158  cat conftest.err >&5
20159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160  (exit $ac_status); } &&
20161	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163  (eval $ac_try) 2>&5
20164  ac_status=$?
20165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166  (exit $ac_status); }; } &&
20167	 { ac_try='test -s conftest.$ac_objext'
20168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169  (eval $ac_try) 2>&5
20170  ac_status=$?
20171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172  (exit $ac_status); }; }; then
20173  ac_lo=0 ac_mid=0
20174  while :; do
20175    cat >conftest.$ac_ext <<_ACEOF
20176/* confdefs.h.  */
20177_ACEOF
20178cat confdefs.h >>conftest.$ac_ext
20179cat >>conftest.$ac_ext <<_ACEOF
20180/* end confdefs.h.  */
20181$ac_includes_default
20182int
20183main ()
20184{
20185static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20186test_array [0] = 0
20187
20188  ;
20189  return 0;
20190}
20191_ACEOF
20192rm -f conftest.$ac_objext
20193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194  (eval $ac_compile) 2>conftest.er1
20195  ac_status=$?
20196  grep -v '^ *+' conftest.er1 >conftest.err
20197  rm -f conftest.er1
20198  cat conftest.err >&5
20199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200  (exit $ac_status); } &&
20201	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203  (eval $ac_try) 2>&5
20204  ac_status=$?
20205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206  (exit $ac_status); }; } &&
20207	 { ac_try='test -s conftest.$ac_objext'
20208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209  (eval $ac_try) 2>&5
20210  ac_status=$?
20211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212  (exit $ac_status); }; }; then
20213  ac_hi=$ac_mid; break
20214else
20215  echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
20217
20218ac_lo=`expr $ac_mid + 1`
20219		    if test $ac_lo -le $ac_mid; then
20220		      ac_lo= ac_hi=
20221		      break
20222		    fi
20223		    ac_mid=`expr 2 '*' $ac_mid + 1`
20224fi
20225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20226  done
20227else
20228  echo "$as_me: failed program was:" >&5
20229sed 's/^/| /' conftest.$ac_ext >&5
20230
20231cat >conftest.$ac_ext <<_ACEOF
20232/* confdefs.h.  */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h.  */
20237$ac_includes_default
20238int
20239main ()
20240{
20241static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20242test_array [0] = 0
20243
20244  ;
20245  return 0;
20246}
20247_ACEOF
20248rm -f conftest.$ac_objext
20249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20250  (eval $ac_compile) 2>conftest.er1
20251  ac_status=$?
20252  grep -v '^ *+' conftest.er1 >conftest.err
20253  rm -f conftest.er1
20254  cat conftest.err >&5
20255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256  (exit $ac_status); } &&
20257	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259  (eval $ac_try) 2>&5
20260  ac_status=$?
20261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262  (exit $ac_status); }; } &&
20263	 { ac_try='test -s conftest.$ac_objext'
20264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265  (eval $ac_try) 2>&5
20266  ac_status=$?
20267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268  (exit $ac_status); }; }; then
20269  ac_hi=-1 ac_mid=-1
20270  while :; do
20271    cat >conftest.$ac_ext <<_ACEOF
20272/* confdefs.h.  */
20273_ACEOF
20274cat confdefs.h >>conftest.$ac_ext
20275cat >>conftest.$ac_ext <<_ACEOF
20276/* end confdefs.h.  */
20277$ac_includes_default
20278int
20279main ()
20280{
20281static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20282test_array [0] = 0
20283
20284  ;
20285  return 0;
20286}
20287_ACEOF
20288rm -f conftest.$ac_objext
20289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20290  (eval $ac_compile) 2>conftest.er1
20291  ac_status=$?
20292  grep -v '^ *+' conftest.er1 >conftest.err
20293  rm -f conftest.er1
20294  cat conftest.err >&5
20295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296  (exit $ac_status); } &&
20297	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299  (eval $ac_try) 2>&5
20300  ac_status=$?
20301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302  (exit $ac_status); }; } &&
20303	 { ac_try='test -s conftest.$ac_objext'
20304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305  (eval $ac_try) 2>&5
20306  ac_status=$?
20307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308  (exit $ac_status); }; }; then
20309  ac_lo=$ac_mid; break
20310else
20311  echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
20314ac_hi=`expr '(' $ac_mid ')' - 1`
20315		       if test $ac_mid -le $ac_hi; then
20316			 ac_lo= ac_hi=
20317			 break
20318		       fi
20319		       ac_mid=`expr 2 '*' $ac_mid`
20320fi
20321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20322  done
20323else
20324  echo "$as_me: failed program was:" >&5
20325sed 's/^/| /' conftest.$ac_ext >&5
20326
20327ac_lo= ac_hi=
20328fi
20329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20330fi
20331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20332# Binary search between lo and hi bounds.
20333while test "x$ac_lo" != "x$ac_hi"; do
20334  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20335  cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h.  */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h.  */
20341$ac_includes_default
20342int
20343main ()
20344{
20345static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20346test_array [0] = 0
20347
20348  ;
20349  return 0;
20350}
20351_ACEOF
20352rm -f conftest.$ac_objext
20353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20354  (eval $ac_compile) 2>conftest.er1
20355  ac_status=$?
20356  grep -v '^ *+' conftest.er1 >conftest.err
20357  rm -f conftest.er1
20358  cat conftest.err >&5
20359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360  (exit $ac_status); } &&
20361	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363  (eval $ac_try) 2>&5
20364  ac_status=$?
20365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366  (exit $ac_status); }; } &&
20367	 { ac_try='test -s conftest.$ac_objext'
20368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369  (eval $ac_try) 2>&5
20370  ac_status=$?
20371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372  (exit $ac_status); }; }; then
20373  ac_hi=$ac_mid
20374else
20375  echo "$as_me: failed program was:" >&5
20376sed 's/^/| /' conftest.$ac_ext >&5
20377
20378ac_lo=`expr '(' $ac_mid ')' + 1`
20379fi
20380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20381done
20382case $ac_lo in
20383?*) ac_cv_sizeof_size_t=$ac_lo;;
20384'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20385See \`config.log' for more details." >&5
20386echo "$as_me: error: cannot compute sizeof (size_t), 77
20387See \`config.log' for more details." >&2;}
20388   { (exit 1); exit 1; }; } ;;
20389esac
20390else
20391  if test "$cross_compiling" = yes; then
20392  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20393echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20394   { (exit 1); exit 1; }; }
20395else
20396  cat >conftest.$ac_ext <<_ACEOF
20397/* confdefs.h.  */
20398_ACEOF
20399cat confdefs.h >>conftest.$ac_ext
20400cat >>conftest.$ac_ext <<_ACEOF
20401/* end confdefs.h.  */
20402$ac_includes_default
20403long longval () { return (long) (sizeof (size_t)); }
20404unsigned long ulongval () { return (long) (sizeof (size_t)); }
20405#include <stdio.h>
20406#include <stdlib.h>
20407int
20408main ()
20409{
20410
20411  FILE *f = fopen ("conftest.val", "w");
20412  if (! f)
20413    exit (1);
20414  if (((long) (sizeof (size_t))) < 0)
20415    {
20416      long i = longval ();
20417      if (i != ((long) (sizeof (size_t))))
20418	exit (1);
20419      fprintf (f, "%ld\n", i);
20420    }
20421  else
20422    {
20423      unsigned long i = ulongval ();
20424      if (i != ((long) (sizeof (size_t))))
20425	exit (1);
20426      fprintf (f, "%lu\n", i);
20427    }
20428  exit (ferror (f) || fclose (f) != 0);
20429
20430  ;
20431  return 0;
20432}
20433_ACEOF
20434rm -f conftest$ac_exeext
20435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20436  (eval $ac_link) 2>&5
20437  ac_status=$?
20438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441  (eval $ac_try) 2>&5
20442  ac_status=$?
20443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444  (exit $ac_status); }; }; then
20445  ac_cv_sizeof_size_t=`cat conftest.val`
20446else
20447  echo "$as_me: program exited with status $ac_status" >&5
20448echo "$as_me: failed program was:" >&5
20449sed 's/^/| /' conftest.$ac_ext >&5
20450
20451( exit $ac_status )
20452{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20453See \`config.log' for more details." >&5
20454echo "$as_me: error: cannot compute sizeof (size_t), 77
20455See \`config.log' for more details." >&2;}
20456   { (exit 1); exit 1; }; }
20457fi
20458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20459fi
20460fi
20461rm -f conftest.val
20462else
20463  ac_cv_sizeof_size_t=0
20464fi
20465fi
20466echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20467echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20468cat >>confdefs.h <<_ACEOF
20469#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20470_ACEOF
20471
20472
20473
20474case "${host}" in
20475    arm-*-linux* )
20476        echo "$as_me:$LINENO: checking for long long" >&5
20477echo $ECHO_N "checking for long long... $ECHO_C" >&6
20478if test "${ac_cv_type_long_long+set}" = set; then
20479  echo $ECHO_N "(cached) $ECHO_C" >&6
20480else
20481  cat >conftest.$ac_ext <<_ACEOF
20482/* confdefs.h.  */
20483_ACEOF
20484cat confdefs.h >>conftest.$ac_ext
20485cat >>conftest.$ac_ext <<_ACEOF
20486/* end confdefs.h.  */
20487$ac_includes_default
20488int
20489main ()
20490{
20491if ((long long *) 0)
20492  return 0;
20493if (sizeof (long long))
20494  return 0;
20495  ;
20496  return 0;
20497}
20498_ACEOF
20499rm -f conftest.$ac_objext
20500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501  (eval $ac_compile) 2>conftest.er1
20502  ac_status=$?
20503  grep -v '^ *+' conftest.er1 >conftest.err
20504  rm -f conftest.er1
20505  cat conftest.err >&5
20506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507  (exit $ac_status); } &&
20508	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510  (eval $ac_try) 2>&5
20511  ac_status=$?
20512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513  (exit $ac_status); }; } &&
20514	 { ac_try='test -s conftest.$ac_objext'
20515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516  (eval $ac_try) 2>&5
20517  ac_status=$?
20518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519  (exit $ac_status); }; }; then
20520  ac_cv_type_long_long=yes
20521else
20522  echo "$as_me: failed program was:" >&5
20523sed 's/^/| /' conftest.$ac_ext >&5
20524
20525ac_cv_type_long_long=no
20526fi
20527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20528fi
20529echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20530echo "${ECHO_T}$ac_cv_type_long_long" >&6
20531
20532echo "$as_me:$LINENO: checking size of long long" >&5
20533echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20534if test "${ac_cv_sizeof_long_long+set}" = set; then
20535  echo $ECHO_N "(cached) $ECHO_C" >&6
20536else
20537  if test "$ac_cv_type_long_long" = yes; then
20538  # The cast to unsigned long works around a bug in the HP C Compiler
20539  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20540  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20541  # This bug is HP SR number 8606223364.
20542  if test "$cross_compiling" = yes; then
20543  # Depending upon the size, compute the lo and hi bounds.
20544cat >conftest.$ac_ext <<_ACEOF
20545/* confdefs.h.  */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
20549/* end confdefs.h.  */
20550$ac_includes_default
20551int
20552main ()
20553{
20554static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20555test_array [0] = 0
20556
20557  ;
20558  return 0;
20559}
20560_ACEOF
20561rm -f conftest.$ac_objext
20562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563  (eval $ac_compile) 2>conftest.er1
20564  ac_status=$?
20565  grep -v '^ *+' conftest.er1 >conftest.err
20566  rm -f conftest.er1
20567  cat conftest.err >&5
20568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569  (exit $ac_status); } &&
20570	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572  (eval $ac_try) 2>&5
20573  ac_status=$?
20574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575  (exit $ac_status); }; } &&
20576	 { ac_try='test -s conftest.$ac_objext'
20577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578  (eval $ac_try) 2>&5
20579  ac_status=$?
20580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581  (exit $ac_status); }; }; then
20582  ac_lo=0 ac_mid=0
20583  while :; do
20584    cat >conftest.$ac_ext <<_ACEOF
20585/* confdefs.h.  */
20586_ACEOF
20587cat confdefs.h >>conftest.$ac_ext
20588cat >>conftest.$ac_ext <<_ACEOF
20589/* end confdefs.h.  */
20590$ac_includes_default
20591int
20592main ()
20593{
20594static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20595test_array [0] = 0
20596
20597  ;
20598  return 0;
20599}
20600_ACEOF
20601rm -f conftest.$ac_objext
20602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20603  (eval $ac_compile) 2>conftest.er1
20604  ac_status=$?
20605  grep -v '^ *+' conftest.er1 >conftest.err
20606  rm -f conftest.er1
20607  cat conftest.err >&5
20608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609  (exit $ac_status); } &&
20610	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612  (eval $ac_try) 2>&5
20613  ac_status=$?
20614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615  (exit $ac_status); }; } &&
20616	 { ac_try='test -s conftest.$ac_objext'
20617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618  (eval $ac_try) 2>&5
20619  ac_status=$?
20620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621  (exit $ac_status); }; }; then
20622  ac_hi=$ac_mid; break
20623else
20624  echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627ac_lo=`expr $ac_mid + 1`
20628		    if test $ac_lo -le $ac_mid; then
20629		      ac_lo= ac_hi=
20630		      break
20631		    fi
20632		    ac_mid=`expr 2 '*' $ac_mid + 1`
20633fi
20634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20635  done
20636else
20637  echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
20640cat >conftest.$ac_ext <<_ACEOF
20641/* confdefs.h.  */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
20645/* end confdefs.h.  */
20646$ac_includes_default
20647int
20648main ()
20649{
20650static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20651test_array [0] = 0
20652
20653  ;
20654  return 0;
20655}
20656_ACEOF
20657rm -f conftest.$ac_objext
20658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20659  (eval $ac_compile) 2>conftest.er1
20660  ac_status=$?
20661  grep -v '^ *+' conftest.er1 >conftest.err
20662  rm -f conftest.er1
20663  cat conftest.err >&5
20664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665  (exit $ac_status); } &&
20666	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668  (eval $ac_try) 2>&5
20669  ac_status=$?
20670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671  (exit $ac_status); }; } &&
20672	 { ac_try='test -s conftest.$ac_objext'
20673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674  (eval $ac_try) 2>&5
20675  ac_status=$?
20676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677  (exit $ac_status); }; }; then
20678  ac_hi=-1 ac_mid=-1
20679  while :; do
20680    cat >conftest.$ac_ext <<_ACEOF
20681/* confdefs.h.  */
20682_ACEOF
20683cat confdefs.h >>conftest.$ac_ext
20684cat >>conftest.$ac_ext <<_ACEOF
20685/* end confdefs.h.  */
20686$ac_includes_default
20687int
20688main ()
20689{
20690static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20691test_array [0] = 0
20692
20693  ;
20694  return 0;
20695}
20696_ACEOF
20697rm -f conftest.$ac_objext
20698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20699  (eval $ac_compile) 2>conftest.er1
20700  ac_status=$?
20701  grep -v '^ *+' conftest.er1 >conftest.err
20702  rm -f conftest.er1
20703  cat conftest.err >&5
20704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705  (exit $ac_status); } &&
20706	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708  (eval $ac_try) 2>&5
20709  ac_status=$?
20710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711  (exit $ac_status); }; } &&
20712	 { ac_try='test -s conftest.$ac_objext'
20713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714  (eval $ac_try) 2>&5
20715  ac_status=$?
20716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717  (exit $ac_status); }; }; then
20718  ac_lo=$ac_mid; break
20719else
20720  echo "$as_me: failed program was:" >&5
20721sed 's/^/| /' conftest.$ac_ext >&5
20722
20723ac_hi=`expr '(' $ac_mid ')' - 1`
20724		       if test $ac_mid -le $ac_hi; then
20725			 ac_lo= ac_hi=
20726			 break
20727		       fi
20728		       ac_mid=`expr 2 '*' $ac_mid`
20729fi
20730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20731  done
20732else
20733  echo "$as_me: failed program was:" >&5
20734sed 's/^/| /' conftest.$ac_ext >&5
20735
20736ac_lo= ac_hi=
20737fi
20738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20739fi
20740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20741# Binary search between lo and hi bounds.
20742while test "x$ac_lo" != "x$ac_hi"; do
20743  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20744  cat >conftest.$ac_ext <<_ACEOF
20745/* confdefs.h.  */
20746_ACEOF
20747cat confdefs.h >>conftest.$ac_ext
20748cat >>conftest.$ac_ext <<_ACEOF
20749/* end confdefs.h.  */
20750$ac_includes_default
20751int
20752main ()
20753{
20754static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20755test_array [0] = 0
20756
20757  ;
20758  return 0;
20759}
20760_ACEOF
20761rm -f conftest.$ac_objext
20762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763  (eval $ac_compile) 2>conftest.er1
20764  ac_status=$?
20765  grep -v '^ *+' conftest.er1 >conftest.err
20766  rm -f conftest.er1
20767  cat conftest.err >&5
20768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769  (exit $ac_status); } &&
20770	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
20776	 { ac_try='test -s conftest.$ac_objext'
20777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778  (eval $ac_try) 2>&5
20779  ac_status=$?
20780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781  (exit $ac_status); }; }; then
20782  ac_hi=$ac_mid
20783else
20784  echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787ac_lo=`expr '(' $ac_mid ')' + 1`
20788fi
20789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20790done
20791case $ac_lo in
20792?*) ac_cv_sizeof_long_long=$ac_lo;;
20793'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20794See \`config.log' for more details." >&5
20795echo "$as_me: error: cannot compute sizeof (long long), 77
20796See \`config.log' for more details." >&2;}
20797   { (exit 1); exit 1; }; } ;;
20798esac
20799else
20800  if test "$cross_compiling" = yes; then
20801  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20802echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20803   { (exit 1); exit 1; }; }
20804else
20805  cat >conftest.$ac_ext <<_ACEOF
20806/* confdefs.h.  */
20807_ACEOF
20808cat confdefs.h >>conftest.$ac_ext
20809cat >>conftest.$ac_ext <<_ACEOF
20810/* end confdefs.h.  */
20811$ac_includes_default
20812long longval () { return (long) (sizeof (long long)); }
20813unsigned long ulongval () { return (long) (sizeof (long long)); }
20814#include <stdio.h>
20815#include <stdlib.h>
20816int
20817main ()
20818{
20819
20820  FILE *f = fopen ("conftest.val", "w");
20821  if (! f)
20822    exit (1);
20823  if (((long) (sizeof (long long))) < 0)
20824    {
20825      long i = longval ();
20826      if (i != ((long) (sizeof (long long))))
20827	exit (1);
20828      fprintf (f, "%ld\n", i);
20829    }
20830  else
20831    {
20832      unsigned long i = ulongval ();
20833      if (i != ((long) (sizeof (long long))))
20834	exit (1);
20835      fprintf (f, "%lu\n", i);
20836    }
20837  exit (ferror (f) || fclose (f) != 0);
20838
20839  ;
20840  return 0;
20841}
20842_ACEOF
20843rm -f conftest$ac_exeext
20844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20845  (eval $ac_link) 2>&5
20846  ac_status=$?
20847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850  (eval $ac_try) 2>&5
20851  ac_status=$?
20852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853  (exit $ac_status); }; }; then
20854  ac_cv_sizeof_long_long=`cat conftest.val`
20855else
20856  echo "$as_me: program exited with status $ac_status" >&5
20857echo "$as_me: failed program was:" >&5
20858sed 's/^/| /' conftest.$ac_ext >&5
20859
20860( exit $ac_status )
20861{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20862See \`config.log' for more details." >&5
20863echo "$as_me: error: cannot compute sizeof (long long), 77
20864See \`config.log' for more details." >&2;}
20865   { (exit 1); exit 1; }; }
20866fi
20867rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20868fi
20869fi
20870rm -f conftest.val
20871else
20872  ac_cv_sizeof_long_long=0
20873fi
20874fi
20875echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20876echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20877cat >>confdefs.h <<_ACEOF
20878#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20879_ACEOF
20880
20881
20882    ;;
20883    *-hp-hpux* )
20884        echo "$as_me:$LINENO: checking for long long" >&5
20885echo $ECHO_N "checking for long long... $ECHO_C" >&6
20886if test "${ac_cv_type_long_long+set}" = set; then
20887  echo $ECHO_N "(cached) $ECHO_C" >&6
20888else
20889  cat >conftest.$ac_ext <<_ACEOF
20890/* confdefs.h.  */
20891_ACEOF
20892cat confdefs.h >>conftest.$ac_ext
20893cat >>conftest.$ac_ext <<_ACEOF
20894/* end confdefs.h.  */
20895$ac_includes_default
20896int
20897main ()
20898{
20899if ((long long *) 0)
20900  return 0;
20901if (sizeof (long long))
20902  return 0;
20903  ;
20904  return 0;
20905}
20906_ACEOF
20907rm -f conftest.$ac_objext
20908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20909  (eval $ac_compile) 2>conftest.er1
20910  ac_status=$?
20911  grep -v '^ *+' conftest.er1 >conftest.err
20912  rm -f conftest.er1
20913  cat conftest.err >&5
20914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915  (exit $ac_status); } &&
20916	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918  (eval $ac_try) 2>&5
20919  ac_status=$?
20920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921  (exit $ac_status); }; } &&
20922	 { ac_try='test -s conftest.$ac_objext'
20923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924  (eval $ac_try) 2>&5
20925  ac_status=$?
20926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927  (exit $ac_status); }; }; then
20928  ac_cv_type_long_long=yes
20929else
20930  echo "$as_me: failed program was:" >&5
20931sed 's/^/| /' conftest.$ac_ext >&5
20932
20933ac_cv_type_long_long=no
20934fi
20935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936fi
20937echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20938echo "${ECHO_T}$ac_cv_type_long_long" >&6
20939
20940echo "$as_me:$LINENO: checking size of long long" >&5
20941echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20942if test "${ac_cv_sizeof_long_long+set}" = set; then
20943  echo $ECHO_N "(cached) $ECHO_C" >&6
20944else
20945  if test "$ac_cv_type_long_long" = yes; then
20946  # The cast to unsigned long works around a bug in the HP C Compiler
20947  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20948  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20949  # This bug is HP SR number 8606223364.
20950  if test "$cross_compiling" = yes; then
20951  # Depending upon the size, compute the lo and hi bounds.
20952cat >conftest.$ac_ext <<_ACEOF
20953/* confdefs.h.  */
20954_ACEOF
20955cat confdefs.h >>conftest.$ac_ext
20956cat >>conftest.$ac_ext <<_ACEOF
20957/* end confdefs.h.  */
20958$ac_includes_default
20959int
20960main ()
20961{
20962static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20963test_array [0] = 0
20964
20965  ;
20966  return 0;
20967}
20968_ACEOF
20969rm -f conftest.$ac_objext
20970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20971  (eval $ac_compile) 2>conftest.er1
20972  ac_status=$?
20973  grep -v '^ *+' conftest.er1 >conftest.err
20974  rm -f conftest.er1
20975  cat conftest.err >&5
20976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977  (exit $ac_status); } &&
20978	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980  (eval $ac_try) 2>&5
20981  ac_status=$?
20982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983  (exit $ac_status); }; } &&
20984	 { ac_try='test -s conftest.$ac_objext'
20985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986  (eval $ac_try) 2>&5
20987  ac_status=$?
20988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989  (exit $ac_status); }; }; then
20990  ac_lo=0 ac_mid=0
20991  while :; do
20992    cat >conftest.$ac_ext <<_ACEOF
20993/* confdefs.h.  */
20994_ACEOF
20995cat confdefs.h >>conftest.$ac_ext
20996cat >>conftest.$ac_ext <<_ACEOF
20997/* end confdefs.h.  */
20998$ac_includes_default
20999int
21000main ()
21001{
21002static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21003test_array [0] = 0
21004
21005  ;
21006  return 0;
21007}
21008_ACEOF
21009rm -f conftest.$ac_objext
21010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21011  (eval $ac_compile) 2>conftest.er1
21012  ac_status=$?
21013  grep -v '^ *+' conftest.er1 >conftest.err
21014  rm -f conftest.er1
21015  cat conftest.err >&5
21016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017  (exit $ac_status); } &&
21018	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020  (eval $ac_try) 2>&5
21021  ac_status=$?
21022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023  (exit $ac_status); }; } &&
21024	 { ac_try='test -s conftest.$ac_objext'
21025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026  (eval $ac_try) 2>&5
21027  ac_status=$?
21028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029  (exit $ac_status); }; }; then
21030  ac_hi=$ac_mid; break
21031else
21032  echo "$as_me: failed program was:" >&5
21033sed 's/^/| /' conftest.$ac_ext >&5
21034
21035ac_lo=`expr $ac_mid + 1`
21036		    if test $ac_lo -le $ac_mid; then
21037		      ac_lo= ac_hi=
21038		      break
21039		    fi
21040		    ac_mid=`expr 2 '*' $ac_mid + 1`
21041fi
21042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21043  done
21044else
21045  echo "$as_me: failed program was:" >&5
21046sed 's/^/| /' conftest.$ac_ext >&5
21047
21048cat >conftest.$ac_ext <<_ACEOF
21049/* confdefs.h.  */
21050_ACEOF
21051cat confdefs.h >>conftest.$ac_ext
21052cat >>conftest.$ac_ext <<_ACEOF
21053/* end confdefs.h.  */
21054$ac_includes_default
21055int
21056main ()
21057{
21058static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21059test_array [0] = 0
21060
21061  ;
21062  return 0;
21063}
21064_ACEOF
21065rm -f conftest.$ac_objext
21066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067  (eval $ac_compile) 2>conftest.er1
21068  ac_status=$?
21069  grep -v '^ *+' conftest.er1 >conftest.err
21070  rm -f conftest.er1
21071  cat conftest.err >&5
21072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073  (exit $ac_status); } &&
21074	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076  (eval $ac_try) 2>&5
21077  ac_status=$?
21078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079  (exit $ac_status); }; } &&
21080	 { ac_try='test -s conftest.$ac_objext'
21081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082  (eval $ac_try) 2>&5
21083  ac_status=$?
21084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085  (exit $ac_status); }; }; then
21086  ac_hi=-1 ac_mid=-1
21087  while :; do
21088    cat >conftest.$ac_ext <<_ACEOF
21089/* confdefs.h.  */
21090_ACEOF
21091cat confdefs.h >>conftest.$ac_ext
21092cat >>conftest.$ac_ext <<_ACEOF
21093/* end confdefs.h.  */
21094$ac_includes_default
21095int
21096main ()
21097{
21098static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21099test_array [0] = 0
21100
21101  ;
21102  return 0;
21103}
21104_ACEOF
21105rm -f conftest.$ac_objext
21106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107  (eval $ac_compile) 2>conftest.er1
21108  ac_status=$?
21109  grep -v '^ *+' conftest.er1 >conftest.err
21110  rm -f conftest.er1
21111  cat conftest.err >&5
21112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113  (exit $ac_status); } &&
21114	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116  (eval $ac_try) 2>&5
21117  ac_status=$?
21118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119  (exit $ac_status); }; } &&
21120	 { ac_try='test -s conftest.$ac_objext'
21121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122  (eval $ac_try) 2>&5
21123  ac_status=$?
21124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125  (exit $ac_status); }; }; then
21126  ac_lo=$ac_mid; break
21127else
21128  echo "$as_me: failed program was:" >&5
21129sed 's/^/| /' conftest.$ac_ext >&5
21130
21131ac_hi=`expr '(' $ac_mid ')' - 1`
21132		       if test $ac_mid -le $ac_hi; then
21133			 ac_lo= ac_hi=
21134			 break
21135		       fi
21136		       ac_mid=`expr 2 '*' $ac_mid`
21137fi
21138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21139  done
21140else
21141  echo "$as_me: failed program was:" >&5
21142sed 's/^/| /' conftest.$ac_ext >&5
21143
21144ac_lo= ac_hi=
21145fi
21146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21147fi
21148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21149# Binary search between lo and hi bounds.
21150while test "x$ac_lo" != "x$ac_hi"; do
21151  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21152  cat >conftest.$ac_ext <<_ACEOF
21153/* confdefs.h.  */
21154_ACEOF
21155cat confdefs.h >>conftest.$ac_ext
21156cat >>conftest.$ac_ext <<_ACEOF
21157/* end confdefs.h.  */
21158$ac_includes_default
21159int
21160main ()
21161{
21162static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21163test_array [0] = 0
21164
21165  ;
21166  return 0;
21167}
21168_ACEOF
21169rm -f conftest.$ac_objext
21170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21171  (eval $ac_compile) 2>conftest.er1
21172  ac_status=$?
21173  grep -v '^ *+' conftest.er1 >conftest.err
21174  rm -f conftest.er1
21175  cat conftest.err >&5
21176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177  (exit $ac_status); } &&
21178	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180  (eval $ac_try) 2>&5
21181  ac_status=$?
21182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183  (exit $ac_status); }; } &&
21184	 { ac_try='test -s conftest.$ac_objext'
21185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186  (eval $ac_try) 2>&5
21187  ac_status=$?
21188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189  (exit $ac_status); }; }; then
21190  ac_hi=$ac_mid
21191else
21192  echo "$as_me: failed program was:" >&5
21193sed 's/^/| /' conftest.$ac_ext >&5
21194
21195ac_lo=`expr '(' $ac_mid ')' + 1`
21196fi
21197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21198done
21199case $ac_lo in
21200?*) ac_cv_sizeof_long_long=$ac_lo;;
21201'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21202See \`config.log' for more details." >&5
21203echo "$as_me: error: cannot compute sizeof (long long), 77
21204See \`config.log' for more details." >&2;}
21205   { (exit 1); exit 1; }; } ;;
21206esac
21207else
21208  if test "$cross_compiling" = yes; then
21209  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21210echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21211   { (exit 1); exit 1; }; }
21212else
21213  cat >conftest.$ac_ext <<_ACEOF
21214/* confdefs.h.  */
21215_ACEOF
21216cat confdefs.h >>conftest.$ac_ext
21217cat >>conftest.$ac_ext <<_ACEOF
21218/* end confdefs.h.  */
21219$ac_includes_default
21220long longval () { return (long) (sizeof (long long)); }
21221unsigned long ulongval () { return (long) (sizeof (long long)); }
21222#include <stdio.h>
21223#include <stdlib.h>
21224int
21225main ()
21226{
21227
21228  FILE *f = fopen ("conftest.val", "w");
21229  if (! f)
21230    exit (1);
21231  if (((long) (sizeof (long long))) < 0)
21232    {
21233      long i = longval ();
21234      if (i != ((long) (sizeof (long long))))
21235	exit (1);
21236      fprintf (f, "%ld\n", i);
21237    }
21238  else
21239    {
21240      unsigned long i = ulongval ();
21241      if (i != ((long) (sizeof (long long))))
21242	exit (1);
21243      fprintf (f, "%lu\n", i);
21244    }
21245  exit (ferror (f) || fclose (f) != 0);
21246
21247  ;
21248  return 0;
21249}
21250_ACEOF
21251rm -f conftest$ac_exeext
21252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21253  (eval $ac_link) 2>&5
21254  ac_status=$?
21255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258  (eval $ac_try) 2>&5
21259  ac_status=$?
21260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261  (exit $ac_status); }; }; then
21262  ac_cv_sizeof_long_long=`cat conftest.val`
21263else
21264  echo "$as_me: program exited with status $ac_status" >&5
21265echo "$as_me: failed program was:" >&5
21266sed 's/^/| /' conftest.$ac_ext >&5
21267
21268( exit $ac_status )
21269{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21270See \`config.log' for more details." >&5
21271echo "$as_me: error: cannot compute sizeof (long long), 77
21272See \`config.log' for more details." >&2;}
21273   { (exit 1); exit 1; }; }
21274fi
21275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21276fi
21277fi
21278rm -f conftest.val
21279else
21280  ac_cv_sizeof_long_long=0
21281fi
21282fi
21283echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21284echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21285cat >>confdefs.h <<_ACEOF
21286#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21287_ACEOF
21288
21289
21290        if test "$ac_cv_sizeof_long_long" != "0"; then
21291                        CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
21292        fi
21293    ;;
21294    * )
21295        echo "$as_me:$LINENO: checking for long long" >&5
21296echo $ECHO_N "checking for long long... $ECHO_C" >&6
21297if test "${ac_cv_type_long_long+set}" = set; then
21298  echo $ECHO_N "(cached) $ECHO_C" >&6
21299else
21300  cat >conftest.$ac_ext <<_ACEOF
21301/* confdefs.h.  */
21302_ACEOF
21303cat confdefs.h >>conftest.$ac_ext
21304cat >>conftest.$ac_ext <<_ACEOF
21305/* end confdefs.h.  */
21306$ac_includes_default
21307int
21308main ()
21309{
21310if ((long long *) 0)
21311  return 0;
21312if (sizeof (long long))
21313  return 0;
21314  ;
21315  return 0;
21316}
21317_ACEOF
21318rm -f conftest.$ac_objext
21319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21320  (eval $ac_compile) 2>conftest.er1
21321  ac_status=$?
21322  grep -v '^ *+' conftest.er1 >conftest.err
21323  rm -f conftest.er1
21324  cat conftest.err >&5
21325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326  (exit $ac_status); } &&
21327	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329  (eval $ac_try) 2>&5
21330  ac_status=$?
21331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332  (exit $ac_status); }; } &&
21333	 { ac_try='test -s conftest.$ac_objext'
21334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335  (eval $ac_try) 2>&5
21336  ac_status=$?
21337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338  (exit $ac_status); }; }; then
21339  ac_cv_type_long_long=yes
21340else
21341  echo "$as_me: failed program was:" >&5
21342sed 's/^/| /' conftest.$ac_ext >&5
21343
21344ac_cv_type_long_long=no
21345fi
21346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21347fi
21348echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21349echo "${ECHO_T}$ac_cv_type_long_long" >&6
21350
21351echo "$as_me:$LINENO: checking size of long long" >&5
21352echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21353if test "${ac_cv_sizeof_long_long+set}" = set; then
21354  echo $ECHO_N "(cached) $ECHO_C" >&6
21355else
21356  if test "$ac_cv_type_long_long" = yes; then
21357  # The cast to unsigned long works around a bug in the HP C Compiler
21358  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21359  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21360  # This bug is HP SR number 8606223364.
21361  if test "$cross_compiling" = yes; then
21362  # Depending upon the size, compute the lo and hi bounds.
21363cat >conftest.$ac_ext <<_ACEOF
21364/* confdefs.h.  */
21365_ACEOF
21366cat confdefs.h >>conftest.$ac_ext
21367cat >>conftest.$ac_ext <<_ACEOF
21368/* end confdefs.h.  */
21369$ac_includes_default
21370int
21371main ()
21372{
21373static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21374test_array [0] = 0
21375
21376  ;
21377  return 0;
21378}
21379_ACEOF
21380rm -f conftest.$ac_objext
21381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21382  (eval $ac_compile) 2>conftest.er1
21383  ac_status=$?
21384  grep -v '^ *+' conftest.er1 >conftest.err
21385  rm -f conftest.er1
21386  cat conftest.err >&5
21387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388  (exit $ac_status); } &&
21389	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391  (eval $ac_try) 2>&5
21392  ac_status=$?
21393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394  (exit $ac_status); }; } &&
21395	 { ac_try='test -s conftest.$ac_objext'
21396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397  (eval $ac_try) 2>&5
21398  ac_status=$?
21399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400  (exit $ac_status); }; }; then
21401  ac_lo=0 ac_mid=0
21402  while :; do
21403    cat >conftest.$ac_ext <<_ACEOF
21404/* confdefs.h.  */
21405_ACEOF
21406cat confdefs.h >>conftest.$ac_ext
21407cat >>conftest.$ac_ext <<_ACEOF
21408/* end confdefs.h.  */
21409$ac_includes_default
21410int
21411main ()
21412{
21413static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21414test_array [0] = 0
21415
21416  ;
21417  return 0;
21418}
21419_ACEOF
21420rm -f conftest.$ac_objext
21421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422  (eval $ac_compile) 2>conftest.er1
21423  ac_status=$?
21424  grep -v '^ *+' conftest.er1 >conftest.err
21425  rm -f conftest.er1
21426  cat conftest.err >&5
21427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428  (exit $ac_status); } &&
21429	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431  (eval $ac_try) 2>&5
21432  ac_status=$?
21433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434  (exit $ac_status); }; } &&
21435	 { ac_try='test -s conftest.$ac_objext'
21436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437  (eval $ac_try) 2>&5
21438  ac_status=$?
21439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440  (exit $ac_status); }; }; then
21441  ac_hi=$ac_mid; break
21442else
21443  echo "$as_me: failed program was:" >&5
21444sed 's/^/| /' conftest.$ac_ext >&5
21445
21446ac_lo=`expr $ac_mid + 1`
21447		    if test $ac_lo -le $ac_mid; then
21448		      ac_lo= ac_hi=
21449		      break
21450		    fi
21451		    ac_mid=`expr 2 '*' $ac_mid + 1`
21452fi
21453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21454  done
21455else
21456  echo "$as_me: failed program was:" >&5
21457sed 's/^/| /' conftest.$ac_ext >&5
21458
21459cat >conftest.$ac_ext <<_ACEOF
21460/* confdefs.h.  */
21461_ACEOF
21462cat confdefs.h >>conftest.$ac_ext
21463cat >>conftest.$ac_ext <<_ACEOF
21464/* end confdefs.h.  */
21465$ac_includes_default
21466int
21467main ()
21468{
21469static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21470test_array [0] = 0
21471
21472  ;
21473  return 0;
21474}
21475_ACEOF
21476rm -f conftest.$ac_objext
21477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21478  (eval $ac_compile) 2>conftest.er1
21479  ac_status=$?
21480  grep -v '^ *+' conftest.er1 >conftest.err
21481  rm -f conftest.er1
21482  cat conftest.err >&5
21483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484  (exit $ac_status); } &&
21485	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487  (eval $ac_try) 2>&5
21488  ac_status=$?
21489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490  (exit $ac_status); }; } &&
21491	 { ac_try='test -s conftest.$ac_objext'
21492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493  (eval $ac_try) 2>&5
21494  ac_status=$?
21495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496  (exit $ac_status); }; }; then
21497  ac_hi=-1 ac_mid=-1
21498  while :; do
21499    cat >conftest.$ac_ext <<_ACEOF
21500/* confdefs.h.  */
21501_ACEOF
21502cat confdefs.h >>conftest.$ac_ext
21503cat >>conftest.$ac_ext <<_ACEOF
21504/* end confdefs.h.  */
21505$ac_includes_default
21506int
21507main ()
21508{
21509static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21510test_array [0] = 0
21511
21512  ;
21513  return 0;
21514}
21515_ACEOF
21516rm -f conftest.$ac_objext
21517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21518  (eval $ac_compile) 2>conftest.er1
21519  ac_status=$?
21520  grep -v '^ *+' conftest.er1 >conftest.err
21521  rm -f conftest.er1
21522  cat conftest.err >&5
21523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524  (exit $ac_status); } &&
21525	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527  (eval $ac_try) 2>&5
21528  ac_status=$?
21529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530  (exit $ac_status); }; } &&
21531	 { ac_try='test -s conftest.$ac_objext'
21532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533  (eval $ac_try) 2>&5
21534  ac_status=$?
21535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536  (exit $ac_status); }; }; then
21537  ac_lo=$ac_mid; break
21538else
21539  echo "$as_me: failed program was:" >&5
21540sed 's/^/| /' conftest.$ac_ext >&5
21541
21542ac_hi=`expr '(' $ac_mid ')' - 1`
21543		       if test $ac_mid -le $ac_hi; then
21544			 ac_lo= ac_hi=
21545			 break
21546		       fi
21547		       ac_mid=`expr 2 '*' $ac_mid`
21548fi
21549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21550  done
21551else
21552  echo "$as_me: failed program was:" >&5
21553sed 's/^/| /' conftest.$ac_ext >&5
21554
21555ac_lo= ac_hi=
21556fi
21557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21558fi
21559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21560# Binary search between lo and hi bounds.
21561while test "x$ac_lo" != "x$ac_hi"; do
21562  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21563  cat >conftest.$ac_ext <<_ACEOF
21564/* confdefs.h.  */
21565_ACEOF
21566cat confdefs.h >>conftest.$ac_ext
21567cat >>conftest.$ac_ext <<_ACEOF
21568/* end confdefs.h.  */
21569$ac_includes_default
21570int
21571main ()
21572{
21573static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21574test_array [0] = 0
21575
21576  ;
21577  return 0;
21578}
21579_ACEOF
21580rm -f conftest.$ac_objext
21581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582  (eval $ac_compile) 2>conftest.er1
21583  ac_status=$?
21584  grep -v '^ *+' conftest.er1 >conftest.err
21585  rm -f conftest.er1
21586  cat conftest.err >&5
21587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588  (exit $ac_status); } &&
21589	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591  (eval $ac_try) 2>&5
21592  ac_status=$?
21593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594  (exit $ac_status); }; } &&
21595	 { ac_try='test -s conftest.$ac_objext'
21596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597  (eval $ac_try) 2>&5
21598  ac_status=$?
21599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600  (exit $ac_status); }; }; then
21601  ac_hi=$ac_mid
21602else
21603  echo "$as_me: failed program was:" >&5
21604sed 's/^/| /' conftest.$ac_ext >&5
21605
21606ac_lo=`expr '(' $ac_mid ')' + 1`
21607fi
21608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21609done
21610case $ac_lo in
21611?*) ac_cv_sizeof_long_long=$ac_lo;;
21612'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21613See \`config.log' for more details." >&5
21614echo "$as_me: error: cannot compute sizeof (long long), 77
21615See \`config.log' for more details." >&2;}
21616   { (exit 1); exit 1; }; } ;;
21617esac
21618else
21619  if test "$cross_compiling" = yes; then
21620  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21621echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21622   { (exit 1); exit 1; }; }
21623else
21624  cat >conftest.$ac_ext <<_ACEOF
21625/* confdefs.h.  */
21626_ACEOF
21627cat confdefs.h >>conftest.$ac_ext
21628cat >>conftest.$ac_ext <<_ACEOF
21629/* end confdefs.h.  */
21630$ac_includes_default
21631long longval () { return (long) (sizeof (long long)); }
21632unsigned long ulongval () { return (long) (sizeof (long long)); }
21633#include <stdio.h>
21634#include <stdlib.h>
21635int
21636main ()
21637{
21638
21639  FILE *f = fopen ("conftest.val", "w");
21640  if (! f)
21641    exit (1);
21642  if (((long) (sizeof (long long))) < 0)
21643    {
21644      long i = longval ();
21645      if (i != ((long) (sizeof (long long))))
21646	exit (1);
21647      fprintf (f, "%ld\n", i);
21648    }
21649  else
21650    {
21651      unsigned long i = ulongval ();
21652      if (i != ((long) (sizeof (long long))))
21653	exit (1);
21654      fprintf (f, "%lu\n", i);
21655    }
21656  exit (ferror (f) || fclose (f) != 0);
21657
21658  ;
21659  return 0;
21660}
21661_ACEOF
21662rm -f conftest$ac_exeext
21663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21664  (eval $ac_link) 2>&5
21665  ac_status=$?
21666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669  (eval $ac_try) 2>&5
21670  ac_status=$?
21671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672  (exit $ac_status); }; }; then
21673  ac_cv_sizeof_long_long=`cat conftest.val`
21674else
21675  echo "$as_me: program exited with status $ac_status" >&5
21676echo "$as_me: failed program was:" >&5
21677sed 's/^/| /' conftest.$ac_ext >&5
21678
21679( exit $ac_status )
21680{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21681See \`config.log' for more details." >&5
21682echo "$as_me: error: cannot compute sizeof (long long), 77
21683See \`config.log' for more details." >&2;}
21684   { (exit 1); exit 1; }; }
21685fi
21686rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21687fi
21688fi
21689rm -f conftest.val
21690else
21691  ac_cv_sizeof_long_long=0
21692fi
21693fi
21694echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21695echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21696cat >>confdefs.h <<_ACEOF
21697#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21698_ACEOF
21699
21700
21701esac
21702
21703echo "$as_me:$LINENO: checking for wchar_t" >&5
21704echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21705if test "${ac_cv_type_wchar_t+set}" = set; then
21706  echo $ECHO_N "(cached) $ECHO_C" >&6
21707else
21708  cat >conftest.$ac_ext <<_ACEOF
21709/* confdefs.h.  */
21710_ACEOF
21711cat confdefs.h >>conftest.$ac_ext
21712cat >>conftest.$ac_ext <<_ACEOF
21713/* end confdefs.h.  */
21714
21715        /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21716        #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21717        #  error "fake wchar_t"
21718        #endif
21719        #ifdef HAVE_WCHAR_H
21720        #  ifdef __CYGWIN__
21721        #    include <stddef.h>
21722        #  endif
21723        #  include <wchar.h>
21724        #endif
21725        #ifdef HAVE_STDLIB_H
21726        #  include <stdlib.h>
21727        #endif
21728        #include <stdio.h>
21729
21730
21731
21732int
21733main ()
21734{
21735if ((wchar_t *) 0)
21736  return 0;
21737if (sizeof (wchar_t))
21738  return 0;
21739  ;
21740  return 0;
21741}
21742_ACEOF
21743rm -f conftest.$ac_objext
21744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21745  (eval $ac_compile) 2>conftest.er1
21746  ac_status=$?
21747  grep -v '^ *+' conftest.er1 >conftest.err
21748  rm -f conftest.er1
21749  cat conftest.err >&5
21750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751  (exit $ac_status); } &&
21752	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754  (eval $ac_try) 2>&5
21755  ac_status=$?
21756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757  (exit $ac_status); }; } &&
21758	 { ac_try='test -s conftest.$ac_objext'
21759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760  (eval $ac_try) 2>&5
21761  ac_status=$?
21762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763  (exit $ac_status); }; }; then
21764  ac_cv_type_wchar_t=yes
21765else
21766  echo "$as_me: failed program was:" >&5
21767sed 's/^/| /' conftest.$ac_ext >&5
21768
21769ac_cv_type_wchar_t=no
21770fi
21771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21772fi
21773echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21774echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21775
21776echo "$as_me:$LINENO: checking size of wchar_t" >&5
21777echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21778if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21779  echo $ECHO_N "(cached) $ECHO_C" >&6
21780else
21781  if test "$ac_cv_type_wchar_t" = yes; then
21782  # The cast to unsigned long works around a bug in the HP C Compiler
21783  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21784  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21785  # This bug is HP SR number 8606223364.
21786  if test "$cross_compiling" = yes; then
21787  # Depending upon the size, compute the lo and hi bounds.
21788cat >conftest.$ac_ext <<_ACEOF
21789/* confdefs.h.  */
21790_ACEOF
21791cat confdefs.h >>conftest.$ac_ext
21792cat >>conftest.$ac_ext <<_ACEOF
21793/* end confdefs.h.  */
21794
21795        /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21796        #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21797        #  error "fake wchar_t"
21798        #endif
21799        #ifdef HAVE_WCHAR_H
21800        #  ifdef __CYGWIN__
21801        #    include <stddef.h>
21802        #  endif
21803        #  include <wchar.h>
21804        #endif
21805        #ifdef HAVE_STDLIB_H
21806        #  include <stdlib.h>
21807        #endif
21808        #include <stdio.h>
21809
21810
21811
21812int
21813main ()
21814{
21815static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21816test_array [0] = 0
21817
21818  ;
21819  return 0;
21820}
21821_ACEOF
21822rm -f conftest.$ac_objext
21823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21824  (eval $ac_compile) 2>conftest.er1
21825  ac_status=$?
21826  grep -v '^ *+' conftest.er1 >conftest.err
21827  rm -f conftest.er1
21828  cat conftest.err >&5
21829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830  (exit $ac_status); } &&
21831	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21833  (eval $ac_try) 2>&5
21834  ac_status=$?
21835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836  (exit $ac_status); }; } &&
21837	 { ac_try='test -s conftest.$ac_objext'
21838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839  (eval $ac_try) 2>&5
21840  ac_status=$?
21841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842  (exit $ac_status); }; }; then
21843  ac_lo=0 ac_mid=0
21844  while :; do
21845    cat >conftest.$ac_ext <<_ACEOF
21846/* confdefs.h.  */
21847_ACEOF
21848cat confdefs.h >>conftest.$ac_ext
21849cat >>conftest.$ac_ext <<_ACEOF
21850/* end confdefs.h.  */
21851
21852        /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21853        #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21854        #  error "fake wchar_t"
21855        #endif
21856        #ifdef HAVE_WCHAR_H
21857        #  ifdef __CYGWIN__
21858        #    include <stddef.h>
21859        #  endif
21860        #  include <wchar.h>
21861        #endif
21862        #ifdef HAVE_STDLIB_H
21863        #  include <stdlib.h>
21864        #endif
21865        #include <stdio.h>
21866
21867
21868
21869int
21870main ()
21871{
21872static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21873test_array [0] = 0
21874
21875  ;
21876  return 0;
21877}
21878_ACEOF
21879rm -f conftest.$ac_objext
21880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21881  (eval $ac_compile) 2>conftest.er1
21882  ac_status=$?
21883  grep -v '^ *+' conftest.er1 >conftest.err
21884  rm -f conftest.er1
21885  cat conftest.err >&5
21886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887  (exit $ac_status); } &&
21888	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890  (eval $ac_try) 2>&5
21891  ac_status=$?
21892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893  (exit $ac_status); }; } &&
21894	 { ac_try='test -s conftest.$ac_objext'
21895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896  (eval $ac_try) 2>&5
21897  ac_status=$?
21898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899  (exit $ac_status); }; }; then
21900  ac_hi=$ac_mid; break
21901else
21902  echo "$as_me: failed program was:" >&5
21903sed 's/^/| /' conftest.$ac_ext >&5
21904
21905ac_lo=`expr $ac_mid + 1`
21906		    if test $ac_lo -le $ac_mid; then
21907		      ac_lo= ac_hi=
21908		      break
21909		    fi
21910		    ac_mid=`expr 2 '*' $ac_mid + 1`
21911fi
21912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21913  done
21914else
21915  echo "$as_me: failed program was:" >&5
21916sed 's/^/| /' conftest.$ac_ext >&5
21917
21918cat >conftest.$ac_ext <<_ACEOF
21919/* confdefs.h.  */
21920_ACEOF
21921cat confdefs.h >>conftest.$ac_ext
21922cat >>conftest.$ac_ext <<_ACEOF
21923/* end confdefs.h.  */
21924
21925        /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21926        #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21927        #  error "fake wchar_t"
21928        #endif
21929        #ifdef HAVE_WCHAR_H
21930        #  ifdef __CYGWIN__
21931        #    include <stddef.h>
21932        #  endif
21933        #  include <wchar.h>
21934        #endif
21935        #ifdef HAVE_STDLIB_H
21936        #  include <stdlib.h>
21937        #endif
21938        #include <stdio.h>
21939
21940
21941
21942int
21943main ()
21944{
21945static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21946test_array [0] = 0
21947
21948  ;
21949  return 0;
21950}
21951_ACEOF
21952rm -f conftest.$ac_objext
21953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21954  (eval $ac_compile) 2>conftest.er1
21955  ac_status=$?
21956  grep -v '^ *+' conftest.er1 >conftest.err
21957  rm -f conftest.er1
21958  cat conftest.err >&5
21959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960  (exit $ac_status); } &&
21961	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963  (eval $ac_try) 2>&5
21964  ac_status=$?
21965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966  (exit $ac_status); }; } &&
21967	 { ac_try='test -s conftest.$ac_objext'
21968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969  (eval $ac_try) 2>&5
21970  ac_status=$?
21971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972  (exit $ac_status); }; }; then
21973  ac_hi=-1 ac_mid=-1
21974  while :; do
21975    cat >conftest.$ac_ext <<_ACEOF
21976/* confdefs.h.  */
21977_ACEOF
21978cat confdefs.h >>conftest.$ac_ext
21979cat >>conftest.$ac_ext <<_ACEOF
21980/* end confdefs.h.  */
21981
21982        /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21983        #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21984        #  error "fake wchar_t"
21985        #endif
21986        #ifdef HAVE_WCHAR_H
21987        #  ifdef __CYGWIN__
21988        #    include <stddef.h>
21989        #  endif
21990        #  include <wchar.h>
21991        #endif
21992        #ifdef HAVE_STDLIB_H
21993        #  include <stdlib.h>
21994        #endif
21995        #include <stdio.h>
21996
21997
21998
21999int
22000main ()
22001{
22002static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
22003test_array [0] = 0
22004
22005  ;
22006  return 0;
22007}
22008_ACEOF
22009rm -f conftest.$ac_objext
22010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22011  (eval $ac_compile) 2>conftest.er1
22012  ac_status=$?
22013  grep -v '^ *+' conftest.er1 >conftest.err
22014  rm -f conftest.er1
22015  cat conftest.err >&5
22016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017  (exit $ac_status); } &&
22018	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020  (eval $ac_try) 2>&5
22021  ac_status=$?
22022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023  (exit $ac_status); }; } &&
22024	 { ac_try='test -s conftest.$ac_objext'
22025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026  (eval $ac_try) 2>&5
22027  ac_status=$?
22028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029  (exit $ac_status); }; }; then
22030  ac_lo=$ac_mid; break
22031else
22032  echo "$as_me: failed program was:" >&5
22033sed 's/^/| /' conftest.$ac_ext >&5
22034
22035ac_hi=`expr '(' $ac_mid ')' - 1`
22036		       if test $ac_mid -le $ac_hi; then
22037			 ac_lo= ac_hi=
22038			 break
22039		       fi
22040		       ac_mid=`expr 2 '*' $ac_mid`
22041fi
22042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22043  done
22044else
22045  echo "$as_me: failed program was:" >&5
22046sed 's/^/| /' conftest.$ac_ext >&5
22047
22048ac_lo= ac_hi=
22049fi
22050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22051fi
22052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22053# Binary search between lo and hi bounds.
22054while test "x$ac_lo" != "x$ac_hi"; do
22055  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22056  cat >conftest.$ac_ext <<_ACEOF
22057/* confdefs.h.  */
22058_ACEOF
22059cat confdefs.h >>conftest.$ac_ext
22060cat >>conftest.$ac_ext <<_ACEOF
22061/* end confdefs.h.  */
22062
22063        /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22064        #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22065        #  error "fake wchar_t"
22066        #endif
22067        #ifdef HAVE_WCHAR_H
22068        #  ifdef __CYGWIN__
22069        #    include <stddef.h>
22070        #  endif
22071        #  include <wchar.h>
22072        #endif
22073        #ifdef HAVE_STDLIB_H
22074        #  include <stdlib.h>
22075        #endif
22076        #include <stdio.h>
22077
22078
22079
22080int
22081main ()
22082{
22083static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22084test_array [0] = 0
22085
22086  ;
22087  return 0;
22088}
22089_ACEOF
22090rm -f conftest.$ac_objext
22091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22092  (eval $ac_compile) 2>conftest.er1
22093  ac_status=$?
22094  grep -v '^ *+' conftest.er1 >conftest.err
22095  rm -f conftest.er1
22096  cat conftest.err >&5
22097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098  (exit $ac_status); } &&
22099	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101  (eval $ac_try) 2>&5
22102  ac_status=$?
22103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104  (exit $ac_status); }; } &&
22105	 { ac_try='test -s conftest.$ac_objext'
22106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107  (eval $ac_try) 2>&5
22108  ac_status=$?
22109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110  (exit $ac_status); }; }; then
22111  ac_hi=$ac_mid
22112else
22113  echo "$as_me: failed program was:" >&5
22114sed 's/^/| /' conftest.$ac_ext >&5
22115
22116ac_lo=`expr '(' $ac_mid ')' + 1`
22117fi
22118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22119done
22120case $ac_lo in
22121?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22122'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22123See \`config.log' for more details." >&5
22124echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22125See \`config.log' for more details." >&2;}
22126   { (exit 1); exit 1; }; } ;;
22127esac
22128else
22129  if test "$cross_compiling" = yes; then
22130  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22131echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22132   { (exit 1); exit 1; }; }
22133else
22134  cat >conftest.$ac_ext <<_ACEOF
22135/* confdefs.h.  */
22136_ACEOF
22137cat confdefs.h >>conftest.$ac_ext
22138cat >>conftest.$ac_ext <<_ACEOF
22139/* end confdefs.h.  */
22140
22141        /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22142        #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22143        #  error "fake wchar_t"
22144        #endif
22145        #ifdef HAVE_WCHAR_H
22146        #  ifdef __CYGWIN__
22147        #    include <stddef.h>
22148        #  endif
22149        #  include <wchar.h>
22150        #endif
22151        #ifdef HAVE_STDLIB_H
22152        #  include <stdlib.h>
22153        #endif
22154        #include <stdio.h>
22155
22156
22157
22158long longval () { return (long) (sizeof (wchar_t)); }
22159unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22160#include <stdio.h>
22161#include <stdlib.h>
22162int
22163main ()
22164{
22165
22166  FILE *f = fopen ("conftest.val", "w");
22167  if (! f)
22168    exit (1);
22169  if (((long) (sizeof (wchar_t))) < 0)
22170    {
22171      long i = longval ();
22172      if (i != ((long) (sizeof (wchar_t))))
22173	exit (1);
22174      fprintf (f, "%ld\n", i);
22175    }
22176  else
22177    {
22178      unsigned long i = ulongval ();
22179      if (i != ((long) (sizeof (wchar_t))))
22180	exit (1);
22181      fprintf (f, "%lu\n", i);
22182    }
22183  exit (ferror (f) || fclose (f) != 0);
22184
22185  ;
22186  return 0;
22187}
22188_ACEOF
22189rm -f conftest$ac_exeext
22190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22191  (eval $ac_link) 2>&5
22192  ac_status=$?
22193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196  (eval $ac_try) 2>&5
22197  ac_status=$?
22198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199  (exit $ac_status); }; }; then
22200  ac_cv_sizeof_wchar_t=`cat conftest.val`
22201else
22202  echo "$as_me: program exited with status $ac_status" >&5
22203echo "$as_me: failed program was:" >&5
22204sed 's/^/| /' conftest.$ac_ext >&5
22205
22206( exit $ac_status )
22207{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22208See \`config.log' for more details." >&5
22209echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22210See \`config.log' for more details." >&2;}
22211   { (exit 1); exit 1; }; }
22212fi
22213rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22214fi
22215fi
22216rm -f conftest.val
22217else
22218  ac_cv_sizeof_wchar_t=0
22219fi
22220fi
22221echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22222echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
22223cat >>confdefs.h <<_ACEOF
22224#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22225_ACEOF
22226
22227
22228if test "$ac_cv_sizeof_wchar_t" != "0"; then
22229    wxUSE_WCHAR_T=yes
22230else
22231    wxUSE_WCHAR_T=no
22232fi
22233
22234echo "$as_me:$LINENO: checking for va_copy" >&5
22235echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22236if test "${wx_cv_func_va_copy+set}" = set; then
22237  echo $ECHO_N "(cached) $ECHO_C" >&6
22238else
22239
22240        ac_ext=cc
22241ac_cpp='$CXXCPP $CPPFLAGS'
22242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22245
22246        cat >conftest.$ac_ext <<_ACEOF
22247
22248            #include <stdarg.h>
22249            void foo(char *f, ...)
22250            {
22251                va_list ap1, ap2;
22252                va_start(ap1, f);
22253                va_copy(ap2, ap1);
22254                va_end(ap2);
22255                va_end(ap1);
22256            }
22257            int main()
22258            {
22259                foo("hi", 17);
22260                return 0;
22261            }
22262_ACEOF
22263rm -f conftest.$ac_objext conftest$ac_exeext
22264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22265  (eval $ac_link) 2>conftest.er1
22266  ac_status=$?
22267  grep -v '^ *+' conftest.er1 >conftest.err
22268  rm -f conftest.er1
22269  cat conftest.err >&5
22270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271  (exit $ac_status); } &&
22272	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
22273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274  (eval $ac_try) 2>&5
22275  ac_status=$?
22276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277  (exit $ac_status); }; } &&
22278	 { ac_try='test -s conftest$ac_exeext'
22279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280  (eval $ac_try) 2>&5
22281  ac_status=$?
22282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283  (exit $ac_status); }; }; then
22284  wx_cv_func_va_copy=yes
22285else
22286  echo "$as_me: failed program was:" >&5
22287sed 's/^/| /' conftest.$ac_ext >&5
22288
22289wx_cv_func_va_copy=no
22290
22291fi
22292rm -f conftest.err conftest.$ac_objext \
22293      conftest$ac_exeext conftest.$ac_ext
22294        ac_ext=c
22295ac_cpp='$CPP $CPPFLAGS'
22296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22298ac_compiler_gnu=$ac_cv_c_compiler_gnu
22299
22300
22301
22302fi
22303echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22304echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22305
22306if test $wx_cv_func_va_copy = "yes"; then
22307    cat >>confdefs.h <<\_ACEOF
22308#define HAVE_VA_COPY 1
22309_ACEOF
22310
22311else
22312        echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22313echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22314if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22315  echo $ECHO_N "(cached) $ECHO_C" >&6
22316else
22317
22318            if test "$cross_compiling" = yes; then
22319                  wx_cv_type_va_list_lvalue=yes
22320
22321else
22322  cat >conftest.$ac_ext <<_ACEOF
22323
22324                #include <stdarg.h>
22325                int foo(char *f, ...)
22326                {
22327                    va_list ap1, ap2;
22328                    va_start(ap1, f);
22329                    ap2 = ap1;
22330                    if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22331                        return 1;
22332                    va_end(ap2);
22333                    va_end(ap1);
22334                    return 0;
22335                }
22336                int main()
22337                {
22338                    return foo("hi", 17);
22339                }
22340_ACEOF
22341rm -f conftest$ac_exeext
22342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22343  (eval $ac_link) 2>&5
22344  ac_status=$?
22345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348  (eval $ac_try) 2>&5
22349  ac_status=$?
22350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351  (exit $ac_status); }; }; then
22352  wx_cv_type_va_list_lvalue=yes
22353else
22354  echo "$as_me: program exited with status $ac_status" >&5
22355echo "$as_me: failed program was:" >&5
22356sed 's/^/| /' conftest.$ac_ext >&5
22357
22358( exit $ac_status )
22359wx_cv_type_va_list_lvalue=no
22360fi
22361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22362fi
22363
22364
22365fi
22366echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22367echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22368
22369    if test $wx_cv_type_va_list_lvalue != "yes"; then
22370                        cat >>confdefs.h <<\_ACEOF
22371#define VA_LIST_IS_ARRAY 1
22372_ACEOF
22373
22374    fi
22375fi
22376
22377if test "$wxUSE_VARARG_MACROS" = "yes"; then
22378
22379echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22380echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22381if test "${wx_cv_have_variadic_macros+set}" = set; then
22382  echo $ECHO_N "(cached) $ECHO_C" >&6
22383else
22384
22385                        ac_ext=cc
22386ac_cpp='$CXXCPP $CPPFLAGS'
22387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22390
22391        cat >conftest.$ac_ext <<_ACEOF
22392/* confdefs.h.  */
22393_ACEOF
22394cat confdefs.h >>conftest.$ac_ext
22395cat >>conftest.$ac_ext <<_ACEOF
22396/* end confdefs.h.  */
22397
22398                    #include <stdio.h>
22399                    #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22400
22401int
22402main ()
22403{
22404
22405                    test("%s %d %p", "test", 1, 0);
22406
22407
22408  ;
22409  return 0;
22410}
22411_ACEOF
22412rm -f conftest.$ac_objext
22413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22414  (eval $ac_compile) 2>conftest.er1
22415  ac_status=$?
22416  grep -v '^ *+' conftest.er1 >conftest.err
22417  rm -f conftest.er1
22418  cat conftest.err >&5
22419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420  (exit $ac_status); } &&
22421	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
22422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423  (eval $ac_try) 2>&5
22424  ac_status=$?
22425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426  (exit $ac_status); }; } &&
22427	 { ac_try='test -s conftest.$ac_objext'
22428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429  (eval $ac_try) 2>&5
22430  ac_status=$?
22431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432  (exit $ac_status); }; }; then
22433  wx_cv_have_variadic_macros=yes
22434else
22435  echo "$as_me: failed program was:" >&5
22436sed 's/^/| /' conftest.$ac_ext >&5
22437
22438wx_cv_have_variadic_macros=no
22439
22440fi
22441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22442        ac_ext=c
22443ac_cpp='$CPP $CPPFLAGS'
22444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22446ac_compiler_gnu=$ac_cv_c_compiler_gnu
22447
22448
22449
22450fi
22451echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22452echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22453
22454if test $wx_cv_have_variadic_macros = "yes"; then
22455    cat >>confdefs.h <<\_ACEOF
22456#define HAVE_VARIADIC_MACROS 1
22457_ACEOF
22458
22459fi
22460
22461fi
22462# Check whether --enable-largefile or --disable-largefile was given.
22463if test "${enable_largefile+set}" = set; then
22464  enableval="$enable_largefile"
22465
22466fi;
22467if test "$enable_largefile" != no; then
22468            wx_largefile=no
22469
22470    echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22471echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22472if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22473  echo $ECHO_N "(cached) $ECHO_C" >&6
22474else
22475
22476          cat >conftest.$ac_ext <<_ACEOF
22477/* confdefs.h.  */
22478_ACEOF
22479cat confdefs.h >>conftest.$ac_ext
22480cat >>conftest.$ac_ext <<_ACEOF
22481/* end confdefs.h.  */
22482#define _FILE_OFFSET_BITS 64
22483                          #include <sys/types.h>
22484int
22485main ()
22486{
22487typedef struct {
22488    unsigned int field: sizeof(off_t) == 8;
22489} wxlf;
22490
22491  ;
22492  return 0;
22493}
22494_ACEOF
22495rm -f conftest.$ac_objext
22496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22497  (eval $ac_compile) 2>conftest.er1
22498  ac_status=$?
22499  grep -v '^ *+' conftest.er1 >conftest.err
22500  rm -f conftest.er1
22501  cat conftest.err >&5
22502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503  (exit $ac_status); } &&
22504	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506  (eval $ac_try) 2>&5
22507  ac_status=$?
22508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509  (exit $ac_status); }; } &&
22510	 { ac_try='test -s conftest.$ac_objext'
22511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512  (eval $ac_try) 2>&5
22513  ac_status=$?
22514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515  (exit $ac_status); }; }; then
22516  ac_cv_sys_file_offset_bits=64
22517else
22518  echo "$as_me: failed program was:" >&5
22519sed 's/^/| /' conftest.$ac_ext >&5
22520
22521ac_cv_sys_file_offset_bits=no
22522fi
22523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22524
22525
22526fi
22527echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22528echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22529
22530    if test "$ac_cv_sys_file_offset_bits" != no; then
22531        wx_largefile=yes
22532        cat >>confdefs.h <<_ACEOF
22533#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22534_ACEOF
22535
22536    fi
22537
22538    if test "x$wx_largefile" != "xyes"; then
22539
22540    echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22541echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22542if test "${ac_cv_sys_large_files+set}" = set; then
22543  echo $ECHO_N "(cached) $ECHO_C" >&6
22544else
22545
22546          cat >conftest.$ac_ext <<_ACEOF
22547/* confdefs.h.  */
22548_ACEOF
22549cat confdefs.h >>conftest.$ac_ext
22550cat >>conftest.$ac_ext <<_ACEOF
22551/* end confdefs.h.  */
22552#define _LARGE_FILES 1
22553                          #include <sys/types.h>
22554int
22555main ()
22556{
22557typedef struct {
22558    unsigned int field: sizeof(off_t) == 8;
22559} wxlf;
22560
22561  ;
22562  return 0;
22563}
22564_ACEOF
22565rm -f conftest.$ac_objext
22566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22567  (eval $ac_compile) 2>conftest.er1
22568  ac_status=$?
22569  grep -v '^ *+' conftest.er1 >conftest.err
22570  rm -f conftest.er1
22571  cat conftest.err >&5
22572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573  (exit $ac_status); } &&
22574	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576  (eval $ac_try) 2>&5
22577  ac_status=$?
22578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579  (exit $ac_status); }; } &&
22580	 { ac_try='test -s conftest.$ac_objext'
22581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582  (eval $ac_try) 2>&5
22583  ac_status=$?
22584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585  (exit $ac_status); }; }; then
22586  ac_cv_sys_large_files=1
22587else
22588  echo "$as_me: failed program was:" >&5
22589sed 's/^/| /' conftest.$ac_ext >&5
22590
22591ac_cv_sys_large_files=no
22592fi
22593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22594
22595
22596fi
22597echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22598echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22599
22600    if test "$ac_cv_sys_large_files" != no; then
22601        wx_largefile=yes
22602        cat >>confdefs.h <<_ACEOF
22603#define _LARGE_FILES $ac_cv_sys_large_files
22604_ACEOF
22605
22606    fi
22607
22608    fi
22609
22610    echo "$as_me:$LINENO: checking if large file support is available" >&5
22611echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22612    if test "x$wx_largefile" = "xyes"; then
22613        cat >>confdefs.h <<\_ACEOF
22614#define HAVE_LARGEFILE_SUPPORT 1
22615_ACEOF
22616
22617    fi
22618    echo "$as_me:$LINENO: result: $wx_largefile" >&5
22619echo "${ECHO_T}$wx_largefile" >&6
22620fi
22621
22622
22623if test "x$wx_largefile" = "xyes"; then
22624    if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
22625        WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
22626
22627                                                        if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22628            echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22629echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22630if test "${wx_cv_STDC_EXT_required+set}" = set; then
22631  echo $ECHO_N "(cached) $ECHO_C" >&6
22632else
22633
22634                    ac_ext=cc
22635ac_cpp='$CXXCPP $CPPFLAGS'
22636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22639
22640                    cat >conftest.$ac_ext <<_ACEOF
22641/* confdefs.h.  */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
22645/* end confdefs.h.  */
22646
22647int
22648main ()
22649{
22650
22651                            #ifndef __STDC_EXT__
22652                                choke me
22653                            #endif
22654
22655  ;
22656  return 0;
22657}
22658_ACEOF
22659rm -f conftest.$ac_objext
22660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22661  (eval $ac_compile) 2>conftest.er1
22662  ac_status=$?
22663  grep -v '^ *+' conftest.er1 >conftest.err
22664  rm -f conftest.er1
22665  cat conftest.err >&5
22666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667  (exit $ac_status); } &&
22668	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
22669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670  (eval $ac_try) 2>&5
22671  ac_status=$?
22672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673  (exit $ac_status); }; } &&
22674	 { ac_try='test -s conftest.$ac_objext'
22675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676  (eval $ac_try) 2>&5
22677  ac_status=$?
22678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679  (exit $ac_status); }; }; then
22680  wx_cv_STDC_EXT_required=no
22681else
22682  echo "$as_me: failed program was:" >&5
22683sed 's/^/| /' conftest.$ac_ext >&5
22684
22685wx_cv_STDC_EXT_required=yes
22686
22687fi
22688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22689                    ac_ext=c
22690ac_cpp='$CPP $CPPFLAGS'
22691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22693ac_compiler_gnu=$ac_cv_c_compiler_gnu
22694
22695
22696
22697fi
22698echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22699echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22700            if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22701                WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22702            fi
22703        fi
22704    else
22705        WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22706    fi
22707        echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22708echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22709if test "${ac_cv_sys_largefile_source+set}" = set; then
22710  echo $ECHO_N "(cached) $ECHO_C" >&6
22711else
22712  while :; do
22713  ac_cv_sys_largefile_source=no
22714  cat >conftest.$ac_ext <<_ACEOF
22715/* confdefs.h.  */
22716_ACEOF
22717cat confdefs.h >>conftest.$ac_ext
22718cat >>conftest.$ac_ext <<_ACEOF
22719/* end confdefs.h.  */
22720#include <stdio.h>
22721int
22722main ()
22723{
22724return !fseeko;
22725  ;
22726  return 0;
22727}
22728_ACEOF
22729rm -f conftest.$ac_objext
22730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22731  (eval $ac_compile) 2>conftest.er1
22732  ac_status=$?
22733  grep -v '^ *+' conftest.er1 >conftest.err
22734  rm -f conftest.er1
22735  cat conftest.err >&5
22736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737  (exit $ac_status); } &&
22738	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740  (eval $ac_try) 2>&5
22741  ac_status=$?
22742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743  (exit $ac_status); }; } &&
22744	 { ac_try='test -s conftest.$ac_objext'
22745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746  (eval $ac_try) 2>&5
22747  ac_status=$?
22748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749  (exit $ac_status); }; }; then
22750  break
22751else
22752  echo "$as_me: failed program was:" >&5
22753sed 's/^/| /' conftest.$ac_ext >&5
22754
22755fi
22756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22757  cat >conftest.$ac_ext <<_ACEOF
22758/* confdefs.h.  */
22759_ACEOF
22760cat confdefs.h >>conftest.$ac_ext
22761cat >>conftest.$ac_ext <<_ACEOF
22762/* end confdefs.h.  */
22763#define _LARGEFILE_SOURCE 1
22764#include <stdio.h>
22765int
22766main ()
22767{
22768return !fseeko;
22769  ;
22770  return 0;
22771}
22772_ACEOF
22773rm -f conftest.$ac_objext
22774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22775  (eval $ac_compile) 2>conftest.er1
22776  ac_status=$?
22777  grep -v '^ *+' conftest.er1 >conftest.err
22778  rm -f conftest.er1
22779  cat conftest.err >&5
22780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781  (exit $ac_status); } &&
22782	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784  (eval $ac_try) 2>&5
22785  ac_status=$?
22786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787  (exit $ac_status); }; } &&
22788	 { ac_try='test -s conftest.$ac_objext'
22789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790  (eval $ac_try) 2>&5
22791  ac_status=$?
22792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793  (exit $ac_status); }; }; then
22794  ac_cv_sys_largefile_source=1; break
22795else
22796  echo "$as_me: failed program was:" >&5
22797sed 's/^/| /' conftest.$ac_ext >&5
22798
22799fi
22800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22801  break
22802done
22803fi
22804echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22805echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22806if test "$ac_cv_sys_largefile_source" != no; then
22807
22808cat >>confdefs.h <<_ACEOF
22809#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22810_ACEOF
22811
22812fi
22813rm -f conftest*
22814
22815# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22816# in glibc 2.1.3, but that breaks too many other things.
22817# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22818echo "$as_me:$LINENO: checking for fseeko" >&5
22819echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22820if test "${ac_cv_func_fseeko+set}" = set; then
22821  echo $ECHO_N "(cached) $ECHO_C" >&6
22822else
22823  cat >conftest.$ac_ext <<_ACEOF
22824/* confdefs.h.  */
22825_ACEOF
22826cat confdefs.h >>conftest.$ac_ext
22827cat >>conftest.$ac_ext <<_ACEOF
22828/* end confdefs.h.  */
22829#include <stdio.h>
22830int
22831main ()
22832{
22833return fseeko && fseeko (stdin, 0, 0);
22834  ;
22835  return 0;
22836}
22837_ACEOF
22838rm -f conftest.$ac_objext conftest$ac_exeext
22839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840  (eval $ac_link) 2>conftest.er1
22841  ac_status=$?
22842  grep -v '^ *+' conftest.er1 >conftest.err
22843  rm -f conftest.er1
22844  cat conftest.err >&5
22845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846  (exit $ac_status); } &&
22847	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
22853	 { ac_try='test -s conftest$ac_exeext'
22854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855  (eval $ac_try) 2>&5
22856  ac_status=$?
22857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858  (exit $ac_status); }; }; then
22859  ac_cv_func_fseeko=yes
22860else
22861  echo "$as_me: failed program was:" >&5
22862sed 's/^/| /' conftest.$ac_ext >&5
22863
22864ac_cv_func_fseeko=no
22865fi
22866rm -f conftest.err conftest.$ac_objext \
22867      conftest$ac_exeext conftest.$ac_ext
22868fi
22869echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22870echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22871if test $ac_cv_func_fseeko = yes; then
22872
22873cat >>confdefs.h <<\_ACEOF
22874#define HAVE_FSEEKO 1
22875_ACEOF
22876
22877fi
22878
22879    if test "$ac_cv_sys_largefile_source" != no; then
22880        WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22881    fi
22882fi
22883
22884echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22885echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22886if test "${ac_cv_c_bigendian+set}" = set; then
22887  echo $ECHO_N "(cached) $ECHO_C" >&6
22888else
22889  ac_cv_c_bigendian=unknown
22890# See if sys/param.h defines the BYTE_ORDER macro.
22891cat >conftest.$ac_ext <<_ACEOF
22892/* confdefs.h.  */
22893_ACEOF
22894cat confdefs.h >>conftest.$ac_ext
22895cat >>conftest.$ac_ext <<_ACEOF
22896/* end confdefs.h.  */
22897#include <sys/types.h>
22898#include <sys/param.h>
22899int
22900main ()
22901{
22902
22903#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22904 bogus endian macros
22905#endif
22906  ;
22907  return 0;
22908}
22909_ACEOF
22910rm -f conftest.$ac_objext
22911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22912  (eval $ac_compile) 2>conftest.er1
22913  ac_status=$?
22914  grep -v '^ *+' conftest.er1 >conftest.err
22915  rm -f conftest.er1
22916  cat conftest.err >&5
22917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918  (exit $ac_status); } &&
22919	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921  (eval $ac_try) 2>&5
22922  ac_status=$?
22923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924  (exit $ac_status); }; } &&
22925	 { ac_try='test -s conftest.$ac_objext'
22926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927  (eval $ac_try) 2>&5
22928  ac_status=$?
22929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930  (exit $ac_status); }; }; then
22931  # It does; now see whether it defined to BIG_ENDIAN or not.
22932cat >conftest.$ac_ext <<_ACEOF
22933/* confdefs.h.  */
22934_ACEOF
22935cat confdefs.h >>conftest.$ac_ext
22936cat >>conftest.$ac_ext <<_ACEOF
22937/* end confdefs.h.  */
22938#include <sys/types.h>
22939#include <sys/param.h>
22940int
22941main ()
22942{
22943
22944#if BYTE_ORDER != BIG_ENDIAN
22945 not big endian
22946#endif
22947  ;
22948  return 0;
22949}
22950_ACEOF
22951rm -f conftest.$ac_objext
22952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22953  (eval $ac_compile) 2>conftest.er1
22954  ac_status=$?
22955  grep -v '^ *+' conftest.er1 >conftest.err
22956  rm -f conftest.er1
22957  cat conftest.err >&5
22958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959  (exit $ac_status); } &&
22960	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962  (eval $ac_try) 2>&5
22963  ac_status=$?
22964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965  (exit $ac_status); }; } &&
22966	 { ac_try='test -s conftest.$ac_objext'
22967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968  (eval $ac_try) 2>&5
22969  ac_status=$?
22970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971  (exit $ac_status); }; }; then
22972  ac_cv_c_bigendian=yes
22973else
22974  echo "$as_me: failed program was:" >&5
22975sed 's/^/| /' conftest.$ac_ext >&5
22976
22977ac_cv_c_bigendian=no
22978fi
22979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22980else
22981  echo "$as_me: failed program was:" >&5
22982sed 's/^/| /' conftest.$ac_ext >&5
22983
22984fi
22985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22986if test $ac_cv_c_bigendian = unknown; then
22987if test "$cross_compiling" = yes; then
22988  ac_cv_c_bigendian=unknown
22989else
22990  cat >conftest.$ac_ext <<_ACEOF
22991/* confdefs.h.  */
22992_ACEOF
22993cat confdefs.h >>conftest.$ac_ext
22994cat >>conftest.$ac_ext <<_ACEOF
22995/* end confdefs.h.  */
22996main () {
22997  /* Are we little or big endian?  From Harbison&Steele.  */
22998  union
22999  {
23000    long l;
23001    char c[sizeof (long)];
23002  } u;
23003  u.l = 1;
23004  exit (u.c[sizeof (long) - 1] == 1);
23005}
23006_ACEOF
23007rm -f conftest$ac_exeext
23008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23009  (eval $ac_link) 2>&5
23010  ac_status=$?
23011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014  (eval $ac_try) 2>&5
23015  ac_status=$?
23016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017  (exit $ac_status); }; }; then
23018  ac_cv_c_bigendian=no
23019else
23020  echo "$as_me: program exited with status $ac_status" >&5
23021echo "$as_me: failed program was:" >&5
23022sed 's/^/| /' conftest.$ac_ext >&5
23023
23024( exit $ac_status )
23025ac_cv_c_bigendian=yes
23026fi
23027rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23028fi
23029fi
23030fi
23031echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23032echo "${ECHO_T}$ac_cv_c_bigendian" >&6
23033if test $ac_cv_c_bigendian = unknown; then
23034  { 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
23035echo "$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;}
23036fi
23037if test $ac_cv_c_bigendian = yes; then
23038  cat >>confdefs.h <<\_ACEOF
23039#define WORDS_BIGENDIAN 1
23040_ACEOF
23041
23042fi
23043
23044
23045
23046
23047
23048    ac_ext=cc
23049ac_cpp='$CXXCPP $CPPFLAGS'
23050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23053
23054
23055
23056for ac_header in iostream
23057do
23058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23059echo "$as_me:$LINENO: checking for $ac_header" >&5
23060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23061if eval "test \"\${$as_ac_Header+set}\" = set"; then
23062  echo $ECHO_N "(cached) $ECHO_C" >&6
23063else
23064  cat >conftest.$ac_ext <<_ACEOF
23065/* confdefs.h.  */
23066_ACEOF
23067cat confdefs.h >>conftest.$ac_ext
23068cat >>conftest.$ac_ext <<_ACEOF
23069/* end confdefs.h.  */
23070
23071
23072#include <$ac_header>
23073_ACEOF
23074rm -f conftest.$ac_objext
23075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23076  (eval $ac_compile) 2>conftest.er1
23077  ac_status=$?
23078  grep -v '^ *+' conftest.er1 >conftest.err
23079  rm -f conftest.er1
23080  cat conftest.err >&5
23081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082  (exit $ac_status); } &&
23083	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085  (eval $ac_try) 2>&5
23086  ac_status=$?
23087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088  (exit $ac_status); }; } &&
23089	 { ac_try='test -s conftest.$ac_objext'
23090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091  (eval $ac_try) 2>&5
23092  ac_status=$?
23093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094  (exit $ac_status); }; }; then
23095  eval "$as_ac_Header=yes"
23096else
23097  echo "$as_me: failed program was:" >&5
23098sed 's/^/| /' conftest.$ac_ext >&5
23099
23100eval "$as_ac_Header=no"
23101fi
23102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23103fi
23104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23106if test `eval echo '${'$as_ac_Header'}'` = yes; then
23107  cat >>confdefs.h <<_ACEOF
23108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23109_ACEOF
23110
23111fi
23112
23113done
23114
23115
23116    if test "$ac_cv_header_iostream" = "yes" ; then
23117      :
23118    else
23119      cat >>confdefs.h <<\_ACEOF
23120#define wxUSE_IOSTREAMH 1
23121_ACEOF
23122
23123    fi
23124
23125    ac_ext=c
23126ac_cpp='$CPP $CPPFLAGS'
23127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23129ac_compiler_gnu=$ac_cv_c_compiler_gnu
23130
23131
23132
23133
23134  echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23135echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23136if test "${wx_cv_cpp_bool+set}" = set; then
23137  echo $ECHO_N "(cached) $ECHO_C" >&6
23138else
23139
23140
23141
23142    ac_ext=cc
23143ac_cpp='$CXXCPP $CPPFLAGS'
23144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23147
23148
23149    cat >conftest.$ac_ext <<_ACEOF
23150/* confdefs.h.  */
23151_ACEOF
23152cat confdefs.h >>conftest.$ac_ext
23153cat >>conftest.$ac_ext <<_ACEOF
23154/* end confdefs.h.  */
23155
23156
23157int
23158main ()
23159{
23160
23161        bool b = true;
23162
23163        return 0;
23164
23165  ;
23166  return 0;
23167}
23168_ACEOF
23169rm -f conftest.$ac_objext
23170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23171  (eval $ac_compile) 2>conftest.er1
23172  ac_status=$?
23173  grep -v '^ *+' conftest.er1 >conftest.err
23174  rm -f conftest.er1
23175  cat conftest.err >&5
23176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177  (exit $ac_status); } &&
23178	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180  (eval $ac_try) 2>&5
23181  ac_status=$?
23182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183  (exit $ac_status); }; } &&
23184	 { ac_try='test -s conftest.$ac_objext'
23185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186  (eval $ac_try) 2>&5
23187  ac_status=$?
23188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189  (exit $ac_status); }; }; then
23190
23191        wx_cv_cpp_bool=yes
23192
23193else
23194  echo "$as_me: failed program was:" >&5
23195sed 's/^/| /' conftest.$ac_ext >&5
23196
23197
23198        wx_cv_cpp_bool=no
23199
23200
23201fi
23202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23203
23204    ac_ext=c
23205ac_cpp='$CPP $CPPFLAGS'
23206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23208ac_compiler_gnu=$ac_cv_c_compiler_gnu
23209
23210
23211fi
23212echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23213echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23214
23215  if test "$wx_cv_cpp_bool" = "yes"; then
23216    cat >>confdefs.h <<\_ACEOF
23217#define HAVE_BOOL 1
23218_ACEOF
23219
23220  fi
23221
23222
23223
23224  echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23225echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23226if test "${wx_cv_explicit+set}" = set; then
23227  echo $ECHO_N "(cached) $ECHO_C" >&6
23228else
23229
23230
23231
23232    ac_ext=cc
23233ac_cpp='$CXXCPP $CPPFLAGS'
23234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23237
23238
23239            cat >conftest.$ac_ext <<_ACEOF
23240/* confdefs.h.  */
23241_ACEOF
23242cat confdefs.h >>conftest.$ac_ext
23243cat >>conftest.$ac_ext <<_ACEOF
23244/* end confdefs.h.  */
23245
23246        class Foo { public: explicit Foo(int) {} };
23247
23248int
23249main ()
23250{
23251
23252        return 0;
23253
23254  ;
23255  return 0;
23256}
23257_ACEOF
23258rm -f conftest.$ac_objext
23259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23260  (eval $ac_compile) 2>conftest.er1
23261  ac_status=$?
23262  grep -v '^ *+' conftest.er1 >conftest.err
23263  rm -f conftest.er1
23264  cat conftest.err >&5
23265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266  (exit $ac_status); } &&
23267	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269  (eval $ac_try) 2>&5
23270  ac_status=$?
23271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272  (exit $ac_status); }; } &&
23273	 { ac_try='test -s conftest.$ac_objext'
23274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275  (eval $ac_try) 2>&5
23276  ac_status=$?
23277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278  (exit $ac_status); }; }; then
23279
23280        cat >conftest.$ac_ext <<_ACEOF
23281/* confdefs.h.  */
23282_ACEOF
23283cat confdefs.h >>conftest.$ac_ext
23284cat >>conftest.$ac_ext <<_ACEOF
23285/* end confdefs.h.  */
23286
23287                class Foo { public: explicit Foo(int) {} };
23288                static void TakeFoo(const Foo& foo) { }
23289
23290int
23291main ()
23292{
23293
23294                TakeFoo(17);
23295                return 0;
23296
23297  ;
23298  return 0;
23299}
23300_ACEOF
23301rm -f conftest.$ac_objext
23302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23303  (eval $ac_compile) 2>conftest.er1
23304  ac_status=$?
23305  grep -v '^ *+' conftest.er1 >conftest.err
23306  rm -f conftest.er1
23307  cat conftest.err >&5
23308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309  (exit $ac_status); } &&
23310	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312  (eval $ac_try) 2>&5
23313  ac_status=$?
23314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315  (exit $ac_status); }; } &&
23316	 { ac_try='test -s conftest.$ac_objext'
23317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318  (eval $ac_try) 2>&5
23319  ac_status=$?
23320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321  (exit $ac_status); }; }; then
23322  wx_cv_explicit=no
23323else
23324  echo "$as_me: failed program was:" >&5
23325sed 's/^/| /' conftest.$ac_ext >&5
23326
23327wx_cv_explicit=yes
23328
23329fi
23330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23331
23332else
23333  echo "$as_me: failed program was:" >&5
23334sed 's/^/| /' conftest.$ac_ext >&5
23335
23336wx_cv_explicit=no
23337
23338fi
23339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23340
23341    ac_ext=c
23342ac_cpp='$CPP $CPPFLAGS'
23343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23345ac_compiler_gnu=$ac_cv_c_compiler_gnu
23346
23347
23348fi
23349echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23350echo "${ECHO_T}$wx_cv_explicit" >&6
23351
23352  if test "$wx_cv_explicit" = "yes"; then
23353    cat >>confdefs.h <<\_ACEOF
23354#define HAVE_EXPLICIT 1
23355_ACEOF
23356
23357  fi
23358
23359
23360echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23361echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23362if test "${ac_cv_cxx_const_cast+set}" = set; then
23363  echo $ECHO_N "(cached) $ECHO_C" >&6
23364else
23365
23366
23367 ac_ext=cc
23368ac_cpp='$CXXCPP $CPPFLAGS'
23369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23372
23373 cat >conftest.$ac_ext <<_ACEOF
23374/* confdefs.h.  */
23375_ACEOF
23376cat confdefs.h >>conftest.$ac_ext
23377cat >>conftest.$ac_ext <<_ACEOF
23378/* end confdefs.h.  */
23379
23380int
23381main ()
23382{
23383int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23384  ;
23385  return 0;
23386}
23387_ACEOF
23388rm -f conftest.$ac_objext
23389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23390  (eval $ac_compile) 2>conftest.er1
23391  ac_status=$?
23392  grep -v '^ *+' conftest.er1 >conftest.err
23393  rm -f conftest.er1
23394  cat conftest.err >&5
23395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396  (exit $ac_status); } &&
23397	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399  (eval $ac_try) 2>&5
23400  ac_status=$?
23401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402  (exit $ac_status); }; } &&
23403	 { ac_try='test -s conftest.$ac_objext'
23404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405  (eval $ac_try) 2>&5
23406  ac_status=$?
23407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408  (exit $ac_status); }; }; then
23409  ac_cv_cxx_const_cast=yes
23410else
23411  echo "$as_me: failed program was:" >&5
23412sed 's/^/| /' conftest.$ac_ext >&5
23413
23414ac_cv_cxx_const_cast=no
23415fi
23416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23417 ac_ext=c
23418ac_cpp='$CPP $CPPFLAGS'
23419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23421ac_compiler_gnu=$ac_cv_c_compiler_gnu
23422
23423
23424fi
23425echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23426echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23427if test "$ac_cv_cxx_const_cast" = yes; then
23428
23429cat >>confdefs.h <<\_ACEOF
23430#define HAVE_CONST_CAST
23431_ACEOF
23432
23433fi
23434
23435echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23436echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23437if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23438  echo $ECHO_N "(cached) $ECHO_C" >&6
23439else
23440
23441
23442 ac_ext=cc
23443ac_cpp='$CXXCPP $CPPFLAGS'
23444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23447
23448 cat >conftest.$ac_ext <<_ACEOF
23449/* confdefs.h.  */
23450_ACEOF
23451cat confdefs.h >>conftest.$ac_ext
23452cat >>conftest.$ac_ext <<_ACEOF
23453/* end confdefs.h.  */
23454#include <typeinfo>
23455class Base { public : Base () {} virtual void f () = 0;};
23456class Derived : public Base { public : Derived () {} virtual void f () {} };
23457class Unrelated { public : Unrelated () {} };
23458int g (Unrelated&) { return 0; }
23459int
23460main ()
23461{
23462
23463Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23464  ;
23465  return 0;
23466}
23467_ACEOF
23468rm -f conftest.$ac_objext
23469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23470  (eval $ac_compile) 2>conftest.er1
23471  ac_status=$?
23472  grep -v '^ *+' conftest.er1 >conftest.err
23473  rm -f conftest.er1
23474  cat conftest.err >&5
23475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476  (exit $ac_status); } &&
23477	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479  (eval $ac_try) 2>&5
23480  ac_status=$?
23481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482  (exit $ac_status); }; } &&
23483	 { ac_try='test -s conftest.$ac_objext'
23484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485  (eval $ac_try) 2>&5
23486  ac_status=$?
23487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488  (exit $ac_status); }; }; then
23489  ac_cv_cxx_reinterpret_cast=yes
23490else
23491  echo "$as_me: failed program was:" >&5
23492sed 's/^/| /' conftest.$ac_ext >&5
23493
23494ac_cv_cxx_reinterpret_cast=no
23495fi
23496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23497 ac_ext=c
23498ac_cpp='$CPP $CPPFLAGS'
23499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23501ac_compiler_gnu=$ac_cv_c_compiler_gnu
23502
23503
23504fi
23505echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23506echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23507if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23508
23509cat >>confdefs.h <<\_ACEOF
23510#define HAVE_REINTERPRET_CAST
23511_ACEOF
23512
23513fi
23514
23515echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23516echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23517if test "${ac_cv_cxx_static_cast+set}" = set; then
23518  echo $ECHO_N "(cached) $ECHO_C" >&6
23519else
23520
23521
23522 ac_ext=cc
23523ac_cpp='$CXXCPP $CPPFLAGS'
23524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23527
23528 cat >conftest.$ac_ext <<_ACEOF
23529/* confdefs.h.  */
23530_ACEOF
23531cat confdefs.h >>conftest.$ac_ext
23532cat >>conftest.$ac_ext <<_ACEOF
23533/* end confdefs.h.  */
23534#include <typeinfo>
23535class Base { public : Base () {} virtual void f () = 0; };
23536class Derived : public Base { public : Derived () {} virtual void f () {} };
23537int g (Derived&) { return 0; }
23538int
23539main ()
23540{
23541
23542Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23543  ;
23544  return 0;
23545}
23546_ACEOF
23547rm -f conftest.$ac_objext
23548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23549  (eval $ac_compile) 2>conftest.er1
23550  ac_status=$?
23551  grep -v '^ *+' conftest.er1 >conftest.err
23552  rm -f conftest.er1
23553  cat conftest.err >&5
23554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555  (exit $ac_status); } &&
23556	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558  (eval $ac_try) 2>&5
23559  ac_status=$?
23560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561  (exit $ac_status); }; } &&
23562	 { ac_try='test -s conftest.$ac_objext'
23563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23564  (eval $ac_try) 2>&5
23565  ac_status=$?
23566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567  (exit $ac_status); }; }; then
23568  ac_cv_cxx_static_cast=yes
23569else
23570  echo "$as_me: failed program was:" >&5
23571sed 's/^/| /' conftest.$ac_ext >&5
23572
23573ac_cv_cxx_static_cast=no
23574fi
23575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23576 ac_ext=c
23577ac_cpp='$CPP $CPPFLAGS'
23578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23580ac_compiler_gnu=$ac_cv_c_compiler_gnu
23581
23582
23583fi
23584echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23585echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23586if test "$ac_cv_cxx_static_cast" = yes; then
23587
23588cat >>confdefs.h <<\_ACEOF
23589#define HAVE_STATIC_CAST
23590_ACEOF
23591
23592fi
23593
23594
23595if test "x$SUNCXX" = xyes; then
23596    CXXFLAGS="-features=tmplife $CXXFLAGS"
23597fi
23598
23599if test "x$SUNCC" = xyes; then
23600    CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23601fi
23602
23603if test "x$SGICC" = "xyes"; then
23604    echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
23605echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6
23606if test "${wx_cv_prog_sgicc744+set}" = set; then
23607  echo $ECHO_N "(cached) $ECHO_C" >&6
23608else
23609
23610            cat >conftest.$ac_ext <<_ACEOF
23611/* confdefs.h.  */
23612_ACEOF
23613cat confdefs.h >>conftest.$ac_ext
23614cat >>conftest.$ac_ext <<_ACEOF
23615/* end confdefs.h.  */
23616
23617int
23618main ()
23619{
23620
23621                    #if _SGI_COMPILER_VERSION >= 744
23622                    chock me: mipsPro is 7.4.4 or later
23623                    #endif
23624
23625  ;
23626  return 0;
23627}
23628_ACEOF
23629rm -f conftest.$ac_objext
23630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23631  (eval $ac_compile) 2>conftest.er1
23632  ac_status=$?
23633  grep -v '^ *+' conftest.er1 >conftest.err
23634  rm -f conftest.er1
23635  cat conftest.err >&5
23636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637  (exit $ac_status); } &&
23638	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640  (eval $ac_try) 2>&5
23641  ac_status=$?
23642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643  (exit $ac_status); }; } &&
23644	 { ac_try='test -s conftest.$ac_objext'
23645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646  (eval $ac_try) 2>&5
23647  ac_status=$?
23648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649  (exit $ac_status); }; }; then
23650  wx_cv_prog_sgicc744=no
23651else
23652  echo "$as_me: failed program was:" >&5
23653sed 's/^/| /' conftest.$ac_ext >&5
23654
23655wx_cv_prog_sgicc744=yes
23656
23657fi
23658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23659
23660
23661fi
23662echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
23663echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6
23664
23665    if test "x$wx_cv_prog_sgicc744" = "xyes"; then
23666        CFLAGS="-woff 3970 $CFLAGS"
23667    fi
23668fi
23669if test "x$SGICXX" = "xyes"; then
23670    echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
23671echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6
23672if test "${wx_cv_prog_sgicxx744+set}" = set; then
23673  echo $ECHO_N "(cached) $ECHO_C" >&6
23674else
23675
23676            ac_ext=cc
23677ac_cpp='$CXXCPP $CPPFLAGS'
23678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23681
23682            cat >conftest.$ac_ext <<_ACEOF
23683/* confdefs.h.  */
23684_ACEOF
23685cat confdefs.h >>conftest.$ac_ext
23686cat >>conftest.$ac_ext <<_ACEOF
23687/* end confdefs.h.  */
23688
23689int
23690main ()
23691{
23692
23693                    #if _SGI_COMPILER_VERSION >= 744
23694                    chock me: mipsPro is 7.4.4 or later
23695                    #endif
23696
23697  ;
23698  return 0;
23699}
23700_ACEOF
23701rm -f conftest.$ac_objext
23702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23703  (eval $ac_compile) 2>conftest.er1
23704  ac_status=$?
23705  grep -v '^ *+' conftest.er1 >conftest.err
23706  rm -f conftest.er1
23707  cat conftest.err >&5
23708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709  (exit $ac_status); } &&
23710	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712  (eval $ac_try) 2>&5
23713  ac_status=$?
23714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715  (exit $ac_status); }; } &&
23716	 { ac_try='test -s conftest.$ac_objext'
23717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718  (eval $ac_try) 2>&5
23719  ac_status=$?
23720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721  (exit $ac_status); }; }; then
23722  wx_cv_prog_sgicxx744=no
23723else
23724  echo "$as_me: failed program was:" >&5
23725sed 's/^/| /' conftest.$ac_ext >&5
23726
23727wx_cv_prog_sgicxx744=yes
23728
23729fi
23730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23731            ac_ext=c
23732ac_cpp='$CPP $CPPFLAGS'
23733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23735ac_compiler_gnu=$ac_cv_c_compiler_gnu
23736
23737
23738
23739fi
23740echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
23741echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6
23742
23743    if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
23744        CXXFLAGS="-woff 3970 $CXXFLAGS"
23745    fi
23746fi
23747
23748if test "x$HPCC" = "xyes"; then
23749                    CFLAGS="+W 2011,2450 $CFLAGS"
23750fi
23751if test "x$HPCXX" = "xyes"; then
23752            CXXFLAGS="+W 2340 $CXXFLAGS"
23753fi
23754
23755if test "x$COMPAQCXX" = "xyes"; then
23756                                CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit $CXXFLAGS"
23757fi
23758
23759ac_ext=cc
23760ac_cpp='$CXXCPP $CPPFLAGS'
23761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23764
23765
23766if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23767    if test "$wxUSE_UNICODE" = "yes"; then
23768        std_string="std::wstring"
23769        char_type="wchar_t"
23770    else
23771        std_string="std::string"
23772        char_type="char"
23773    fi
23774
23775        echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23776echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23777if test "${wx_cv_class_stdstring+set}" = set; then
23778  echo $ECHO_N "(cached) $ECHO_C" >&6
23779else
23780
23781            cat >conftest.$ac_ext <<_ACEOF
23782/* confdefs.h.  */
23783_ACEOF
23784cat confdefs.h >>conftest.$ac_ext
23785cat >>conftest.$ac_ext <<_ACEOF
23786/* end confdefs.h.  */
23787#include <string>
23788int
23789main ()
23790{
23791$std_string foo;
23792  ;
23793  return 0;
23794}
23795_ACEOF
23796rm -f conftest.$ac_objext
23797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23798  (eval $ac_compile) 2>conftest.er1
23799  ac_status=$?
23800  grep -v '^ *+' conftest.er1 >conftest.err
23801  rm -f conftest.er1
23802  cat conftest.err >&5
23803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804  (exit $ac_status); } &&
23805	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23807  (eval $ac_try) 2>&5
23808  ac_status=$?
23809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810  (exit $ac_status); }; } &&
23811	 { ac_try='test -s conftest.$ac_objext'
23812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813  (eval $ac_try) 2>&5
23814  ac_status=$?
23815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816  (exit $ac_status); }; }; then
23817  wx_cv_class_stdstring=yes
23818else
23819  echo "$as_me: failed program was:" >&5
23820sed 's/^/| /' conftest.$ac_ext >&5
23821
23822wx_cv_class_stdstring=no
23823
23824fi
23825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23826
23827
23828fi
23829echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
23830echo "${ECHO_T}$wx_cv_class_stdstring" >&6
23831
23832    if test "$wx_cv_class_stdstring" = yes; then
23833        if test "$wxUSE_UNICODE" = "yes"; then
23834            cat >>confdefs.h <<\_ACEOF
23835#define HAVE_STD_WSTRING 1
23836_ACEOF
23837
23838        fi
23839                    else
23840        echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23841echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23842if test "${wx_cv_class_stdbasicstring+set}" = set; then
23843  echo $ECHO_N "(cached) $ECHO_C" >&6
23844else
23845
23846                cat >conftest.$ac_ext <<_ACEOF
23847/* confdefs.h.  */
23848_ACEOF
23849cat confdefs.h >>conftest.$ac_ext
23850cat >>conftest.$ac_ext <<_ACEOF
23851/* end confdefs.h.  */
23852
23853                    #ifdef HAVE_WCHAR_H
23854                    #  ifdef __CYGWIN__
23855                    #    include <stddef.h>
23856                    #  endif
23857                    #  include <wchar.h>
23858                    #endif
23859                    #ifdef HAVE_STDLIB_H
23860                    #  include <stdlib.h>
23861                    #endif
23862                    #include <stdio.h>
23863                    #include <string>
23864
23865int
23866main ()
23867{
23868std::basic_string<$char_type> foo;
23869                     const $char_type* dummy = foo.c_str();
23870  ;
23871  return 0;
23872}
23873_ACEOF
23874rm -f conftest.$ac_objext
23875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23876  (eval $ac_compile) 2>conftest.er1
23877  ac_status=$?
23878  grep -v '^ *+' conftest.er1 >conftest.err
23879  rm -f conftest.er1
23880  cat conftest.err >&5
23881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882  (exit $ac_status); } &&
23883	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23885  (eval $ac_try) 2>&5
23886  ac_status=$?
23887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888  (exit $ac_status); }; } &&
23889	 { ac_try='test -s conftest.$ac_objext'
23890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891  (eval $ac_try) 2>&5
23892  ac_status=$?
23893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894  (exit $ac_status); }; }; then
23895  wx_cv_class_stdbasicstring=yes
23896else
23897  echo "$as_me: failed program was:" >&5
23898sed 's/^/| /' conftest.$ac_ext >&5
23899
23900wx_cv_class_stdbasicstring=no
23901
23902fi
23903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23904
23905
23906fi
23907echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
23908echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6
23909
23910        if test "$wx_cv_class_stdbasicstring" != yes; then
23911            if test "$wxUSE_STL" = "yes"; then
23912                { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23913echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23914   { (exit 1); exit 1; }; }
23915            elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23916                { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23917echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23918   { (exit 1); exit 1; }; }
23919            else
23920                { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23921echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23922                wxUSE_STD_STRING=no
23923            fi
23924        fi
23925    fi
23926fi
23927
23928if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23929    echo "$as_me:$LINENO: checking for std::istream" >&5
23930echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23931if test "${ac_cv_type_std__istream+set}" = set; then
23932  echo $ECHO_N "(cached) $ECHO_C" >&6
23933else
23934  cat >conftest.$ac_ext <<_ACEOF
23935/* confdefs.h.  */
23936_ACEOF
23937cat confdefs.h >>conftest.$ac_ext
23938cat >>conftest.$ac_ext <<_ACEOF
23939/* end confdefs.h.  */
23940#include <iostream>
23941
23942int
23943main ()
23944{
23945if ((std::istream *) 0)
23946  return 0;
23947if (sizeof (std::istream))
23948  return 0;
23949  ;
23950  return 0;
23951}
23952_ACEOF
23953rm -f conftest.$ac_objext
23954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23955  (eval $ac_compile) 2>conftest.er1
23956  ac_status=$?
23957  grep -v '^ *+' conftest.er1 >conftest.err
23958  rm -f conftest.er1
23959  cat conftest.err >&5
23960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961  (exit $ac_status); } &&
23962	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
23963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964  (eval $ac_try) 2>&5
23965  ac_status=$?
23966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967  (exit $ac_status); }; } &&
23968	 { ac_try='test -s conftest.$ac_objext'
23969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23970  (eval $ac_try) 2>&5
23971  ac_status=$?
23972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973  (exit $ac_status); }; }; then
23974  ac_cv_type_std__istream=yes
23975else
23976  echo "$as_me: failed program was:" >&5
23977sed 's/^/| /' conftest.$ac_ext >&5
23978
23979ac_cv_type_std__istream=no
23980fi
23981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23982fi
23983echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23984echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23985if test $ac_cv_type_std__istream = yes; then
23986
23987cat >>confdefs.h <<_ACEOF
23988#define HAVE_STD__ISTREAM 1
23989_ACEOF
23990
23991
23992else
23993  wxUSE_STD_IOSTREAM=no
23994fi
23995echo "$as_me:$LINENO: checking for std::ostream" >&5
23996echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23997if test "${ac_cv_type_std__ostream+set}" = set; then
23998  echo $ECHO_N "(cached) $ECHO_C" >&6
23999else
24000  cat >conftest.$ac_ext <<_ACEOF
24001/* confdefs.h.  */
24002_ACEOF
24003cat confdefs.h >>conftest.$ac_ext
24004cat >>conftest.$ac_ext <<_ACEOF
24005/* end confdefs.h.  */
24006#include <iostream>
24007
24008int
24009main ()
24010{
24011if ((std::ostream *) 0)
24012  return 0;
24013if (sizeof (std::ostream))
24014  return 0;
24015  ;
24016  return 0;
24017}
24018_ACEOF
24019rm -f conftest.$ac_objext
24020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24021  (eval $ac_compile) 2>conftest.er1
24022  ac_status=$?
24023  grep -v '^ *+' conftest.er1 >conftest.err
24024  rm -f conftest.er1
24025  cat conftest.err >&5
24026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027  (exit $ac_status); } &&
24028	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24030  (eval $ac_try) 2>&5
24031  ac_status=$?
24032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033  (exit $ac_status); }; } &&
24034	 { ac_try='test -s conftest.$ac_objext'
24035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24036  (eval $ac_try) 2>&5
24037  ac_status=$?
24038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039  (exit $ac_status); }; }; then
24040  ac_cv_type_std__ostream=yes
24041else
24042  echo "$as_me: failed program was:" >&5
24043sed 's/^/| /' conftest.$ac_ext >&5
24044
24045ac_cv_type_std__ostream=no
24046fi
24047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24048fi
24049echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24050echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
24051if test $ac_cv_type_std__ostream = yes; then
24052
24053cat >>confdefs.h <<_ACEOF
24054#define HAVE_STD__OSTREAM 1
24055_ACEOF
24056
24057
24058else
24059  wxUSE_STD_IOSTREAM=no
24060fi
24061
24062
24063    if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24064        if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
24065            { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24066echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24067   { (exit 1); exit 1; }; }
24068        else
24069            { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24070echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24071        fi
24072    fi
24073fi
24074
24075if test "$wxUSE_STL" = "yes"; then
24076        echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24077echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
24078if test "${wx_cv_lib_stl+set}" = set; then
24079  echo $ECHO_N "(cached) $ECHO_C" >&6
24080else
24081  cat >conftest.$ac_ext <<_ACEOF
24082/* confdefs.h.  */
24083_ACEOF
24084cat confdefs.h >>conftest.$ac_ext
24085cat >>conftest.$ac_ext <<_ACEOF
24086/* end confdefs.h.  */
24087#include <string>
24088            #include <functional>
24089            #include <algorithm>
24090            #include <vector>
24091            #include <list>
24092int
24093main ()
24094{
24095std::vector<int> moo;
24096             std::list<int> foo;
24097             std::vector<int>::iterator it =
24098                 std::find_if(moo.begin(), moo.end(),
24099                              std::bind2nd(std::less<int>(), 3));
24100  ;
24101  return 0;
24102}
24103_ACEOF
24104rm -f conftest.$ac_objext
24105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24106  (eval $ac_compile) 2>conftest.er1
24107  ac_status=$?
24108  grep -v '^ *+' conftest.er1 >conftest.err
24109  rm -f conftest.er1
24110  cat conftest.err >&5
24111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112  (exit $ac_status); } &&
24113	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24115  (eval $ac_try) 2>&5
24116  ac_status=$?
24117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118  (exit $ac_status); }; } &&
24119	 { ac_try='test -s conftest.$ac_objext'
24120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121  (eval $ac_try) 2>&5
24122  ac_status=$?
24123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124  (exit $ac_status); }; }; then
24125  wx_cv_lib_stl=yes
24126else
24127  echo "$as_me: failed program was:" >&5
24128sed 's/^/| /' conftest.$ac_ext >&5
24129
24130wx_cv_lib_stl=no
24131
24132fi
24133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24134
24135fi
24136echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24137echo "${ECHO_T}$wx_cv_lib_stl" >&6
24138
24139    if test "$wx_cv_lib_stl" != yes; then
24140         { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24141echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24142   { (exit 1); exit 1; }; }
24143    fi
24144
24145        echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24146echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24147if test "${wx_cv_func_stdstring_compare+set}" = set; then
24148  echo $ECHO_N "(cached) $ECHO_C" >&6
24149else
24150  cat >conftest.$ac_ext <<_ACEOF
24151/* confdefs.h.  */
24152_ACEOF
24153cat confdefs.h >>conftest.$ac_ext
24154cat >>conftest.$ac_ext <<_ACEOF
24155/* end confdefs.h.  */
24156#include <string>
24157int
24158main ()
24159{
24160std::string foo, bar;
24161            foo.compare(bar);
24162            foo.compare(1, 1, bar);
24163            foo.compare(1, 1, bar, 1, 1);
24164            foo.compare("");
24165            foo.compare(1, 1, "");
24166            foo.compare(1, 1, "", 2);
24167  ;
24168  return 0;
24169}
24170_ACEOF
24171rm -f conftest.$ac_objext
24172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24173  (eval $ac_compile) 2>conftest.er1
24174  ac_status=$?
24175  grep -v '^ *+' conftest.er1 >conftest.err
24176  rm -f conftest.er1
24177  cat conftest.err >&5
24178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179  (exit $ac_status); } &&
24180	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
24186	 { ac_try='test -s conftest.$ac_objext'
24187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188  (eval $ac_try) 2>&5
24189  ac_status=$?
24190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191  (exit $ac_status); }; }; then
24192  wx_cv_func_stdstring_compare=yes
24193else
24194  echo "$as_me: failed program was:" >&5
24195sed 's/^/| /' conftest.$ac_ext >&5
24196
24197wx_cv_func_stdstring_compare=no
24198
24199fi
24200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24201
24202fi
24203echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24204echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6
24205
24206    if test "$wx_cv_func_stdstring_compare" = yes; then
24207        cat >>confdefs.h <<\_ACEOF
24208#define HAVE_STD_STRING_COMPARE 1
24209_ACEOF
24210
24211    fi
24212
24213        echo "$as_me:$LINENO: checking for hash_map" >&5
24214echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24215if test "${ac_cv_header_hash_map+set}" = set; then
24216  echo $ECHO_N "(cached) $ECHO_C" >&6
24217else
24218  cat >conftest.$ac_ext <<_ACEOF
24219/* confdefs.h.  */
24220_ACEOF
24221cat confdefs.h >>conftest.$ac_ext
24222cat >>conftest.$ac_ext <<_ACEOF
24223/* end confdefs.h.  */
24224
24225
24226
24227#include <hash_map>
24228_ACEOF
24229rm -f conftest.$ac_objext
24230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24231  (eval $ac_compile) 2>conftest.er1
24232  ac_status=$?
24233  grep -v '^ *+' conftest.er1 >conftest.err
24234  rm -f conftest.er1
24235  cat conftest.err >&5
24236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237  (exit $ac_status); } &&
24238	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24240  (eval $ac_try) 2>&5
24241  ac_status=$?
24242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243  (exit $ac_status); }; } &&
24244	 { ac_try='test -s conftest.$ac_objext'
24245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246  (eval $ac_try) 2>&5
24247  ac_status=$?
24248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249  (exit $ac_status); }; }; then
24250  ac_cv_header_hash_map=yes
24251else
24252  echo "$as_me: failed program was:" >&5
24253sed 's/^/| /' conftest.$ac_ext >&5
24254
24255ac_cv_header_hash_map=no
24256fi
24257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24258fi
24259echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24260echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24261if test $ac_cv_header_hash_map = yes; then
24262  echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
24263echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6
24264if test "${wx_cv_class_stdhashmapset+set}" = set; then
24265  echo $ECHO_N "(cached) $ECHO_C" >&6
24266else
24267  cat >conftest.$ac_ext <<_ACEOF
24268/* confdefs.h.  */
24269_ACEOF
24270cat confdefs.h >>conftest.$ac_ext
24271cat >>conftest.$ac_ext <<_ACEOF
24272/* end confdefs.h.  */
24273#include <hash_map>
24274                #include <hash_set>
24275int
24276main ()
24277{
24278std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24279                 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24280  ;
24281  return 0;
24282}
24283_ACEOF
24284rm -f conftest.$ac_objext
24285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24286  (eval $ac_compile) 2>conftest.er1
24287  ac_status=$?
24288  grep -v '^ *+' conftest.er1 >conftest.err
24289  rm -f conftest.er1
24290  cat conftest.err >&5
24291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292  (exit $ac_status); } &&
24293	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295  (eval $ac_try) 2>&5
24296  ac_status=$?
24297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298  (exit $ac_status); }; } &&
24299	 { ac_try='test -s conftest.$ac_objext'
24300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301  (eval $ac_try) 2>&5
24302  ac_status=$?
24303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304  (exit $ac_status); }; }; then
24305  wx_cv_class_stdhashmapset=yes
24306else
24307  echo "$as_me: failed program was:" >&5
24308sed 's/^/| /' conftest.$ac_ext >&5
24309
24310wx_cv_class_stdhashmapset=no
24311fi
24312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24313
24314
24315fi
24316echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
24317echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6
24318fi
24319
24320
24321
24322    if test "$wx_cv_class_stdhashmapset" = yes; then
24323        cat >>confdefs.h <<\_ACEOF
24324#define HAVE_HASH_MAP 1
24325_ACEOF
24326
24327        cat >>confdefs.h <<\_ACEOF
24328#define HAVE_STD_HASH_MAP 1
24329_ACEOF
24330
24331    fi
24332
24333    echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24334echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24335if test "${ac_cv_header_ext_hash_map+set}" = set; then
24336  echo $ECHO_N "(cached) $ECHO_C" >&6
24337else
24338  cat >conftest.$ac_ext <<_ACEOF
24339/* confdefs.h.  */
24340_ACEOF
24341cat confdefs.h >>conftest.$ac_ext
24342cat >>conftest.$ac_ext <<_ACEOF
24343/* end confdefs.h.  */
24344
24345
24346
24347#include <ext/hash_map>
24348_ACEOF
24349rm -f conftest.$ac_objext
24350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24351  (eval $ac_compile) 2>conftest.er1
24352  ac_status=$?
24353  grep -v '^ *+' conftest.er1 >conftest.err
24354  rm -f conftest.er1
24355  cat conftest.err >&5
24356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357  (exit $ac_status); } &&
24358	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360  (eval $ac_try) 2>&5
24361  ac_status=$?
24362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363  (exit $ac_status); }; } &&
24364	 { ac_try='test -s conftest.$ac_objext'
24365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366  (eval $ac_try) 2>&5
24367  ac_status=$?
24368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369  (exit $ac_status); }; }; then
24370  ac_cv_header_ext_hash_map=yes
24371else
24372  echo "$as_me: failed program was:" >&5
24373sed 's/^/| /' conftest.$ac_ext >&5
24374
24375ac_cv_header_ext_hash_map=no
24376fi
24377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24378fi
24379echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24380echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24381if test $ac_cv_header_ext_hash_map = yes; then
24382  echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
24383echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6
24384if test "${wx_cv_class_gnuhashmapset+set}" = set; then
24385  echo $ECHO_N "(cached) $ECHO_C" >&6
24386else
24387  cat >conftest.$ac_ext <<_ACEOF
24388/* confdefs.h.  */
24389_ACEOF
24390cat confdefs.h >>conftest.$ac_ext
24391cat >>conftest.$ac_ext <<_ACEOF
24392/* end confdefs.h.  */
24393#include <ext/hash_map>
24394                #include <ext/hash_set>
24395int
24396main ()
24397{
24398__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24399                 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24400  ;
24401  return 0;
24402}
24403_ACEOF
24404rm -f conftest.$ac_objext
24405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24406  (eval $ac_compile) 2>conftest.er1
24407  ac_status=$?
24408  grep -v '^ *+' conftest.er1 >conftest.err
24409  rm -f conftest.er1
24410  cat conftest.err >&5
24411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412  (exit $ac_status); } &&
24413	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415  (eval $ac_try) 2>&5
24416  ac_status=$?
24417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418  (exit $ac_status); }; } &&
24419	 { ac_try='test -s conftest.$ac_objext'
24420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421  (eval $ac_try) 2>&5
24422  ac_status=$?
24423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424  (exit $ac_status); }; }; then
24425  wx_cv_class_gnuhashmapset=yes
24426else
24427  echo "$as_me: failed program was:" >&5
24428sed 's/^/| /' conftest.$ac_ext >&5
24429
24430wx_cv_class_gnuhashmapset=no
24431fi
24432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24433
24434
24435fi
24436echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24437echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6
24438fi
24439
24440
24441
24442    if test "$wx_cv_class_gnuhashmapset" = yes; then
24443         cat >>confdefs.h <<\_ACEOF
24444#define HAVE_EXT_HASH_MAP 1
24445_ACEOF
24446
24447         cat >>confdefs.h <<\_ACEOF
24448#define HAVE_GNU_CXX_HASH_MAP 1
24449_ACEOF
24450
24451    fi
24452
24453    echo "$as_me:$LINENO: checking for unordered_map" >&5
24454echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6
24455if test "${ac_cv_header_unordered_map+set}" = set; then
24456  echo $ECHO_N "(cached) $ECHO_C" >&6
24457else
24458  cat >conftest.$ac_ext <<_ACEOF
24459/* confdefs.h.  */
24460_ACEOF
24461cat confdefs.h >>conftest.$ac_ext
24462cat >>conftest.$ac_ext <<_ACEOF
24463/* end confdefs.h.  */
24464
24465
24466
24467#include <unordered_map>
24468_ACEOF
24469rm -f conftest.$ac_objext
24470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24471  (eval $ac_compile) 2>conftest.er1
24472  ac_status=$?
24473  grep -v '^ *+' conftest.er1 >conftest.err
24474  rm -f conftest.er1
24475  cat conftest.err >&5
24476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477  (exit $ac_status); } &&
24478	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480  (eval $ac_try) 2>&5
24481  ac_status=$?
24482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483  (exit $ac_status); }; } &&
24484	 { ac_try='test -s conftest.$ac_objext'
24485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486  (eval $ac_try) 2>&5
24487  ac_status=$?
24488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489  (exit $ac_status); }; }; then
24490  ac_cv_header_unordered_map=yes
24491else
24492  echo "$as_me: failed program was:" >&5
24493sed 's/^/| /' conftest.$ac_ext >&5
24494
24495ac_cv_header_unordered_map=no
24496fi
24497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24498fi
24499echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24500echo "${ECHO_T}$ac_cv_header_unordered_map" >&6
24501if test $ac_cv_header_unordered_map = yes; then
24502  echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24503echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6
24504if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24505  echo $ECHO_N "(cached) $ECHO_C" >&6
24506else
24507  cat >conftest.$ac_ext <<_ACEOF
24508/* confdefs.h.  */
24509_ACEOF
24510cat confdefs.h >>conftest.$ac_ext
24511cat >>conftest.$ac_ext <<_ACEOF
24512/* end confdefs.h.  */
24513#include <unordered_map>
24514                #include <unordered_set>
24515int
24516main ()
24517{
24518std::unordered_map<double*, char*> test1;
24519                 std::unordered_set<char*> test2;
24520  ;
24521  return 0;
24522}
24523_ACEOF
24524rm -f conftest.$ac_objext
24525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24526  (eval $ac_compile) 2>conftest.er1
24527  ac_status=$?
24528  grep -v '^ *+' conftest.er1 >conftest.err
24529  rm -f conftest.er1
24530  cat conftest.err >&5
24531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532  (exit $ac_status); } &&
24533	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535  (eval $ac_try) 2>&5
24536  ac_status=$?
24537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538  (exit $ac_status); }; } &&
24539	 { ac_try='test -s conftest.$ac_objext'
24540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541  (eval $ac_try) 2>&5
24542  ac_status=$?
24543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544  (exit $ac_status); }; }; then
24545  wx_cv_class_stdunorderedmapset=yes
24546else
24547  echo "$as_me: failed program was:" >&5
24548sed 's/^/| /' conftest.$ac_ext >&5
24549
24550wx_cv_class_stdunorderedmapset=no
24551fi
24552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24553
24554
24555fi
24556echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24557echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6
24558fi
24559
24560
24561
24562    if test "$wx_cv_class_stdunorderedmapset" = yes; then
24563         cat >>confdefs.h <<\_ACEOF
24564#define HAVE_STD_UNORDERED_MAP 1
24565_ACEOF
24566
24567         cat >>confdefs.h <<\_ACEOF
24568#define HAVE_STD_UNORDERED_SET 1
24569_ACEOF
24570
24571    else
24572        echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24573echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6
24574if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24575  echo $ECHO_N "(cached) $ECHO_C" >&6
24576else
24577  cat >conftest.$ac_ext <<_ACEOF
24578/* confdefs.h.  */
24579_ACEOF
24580cat confdefs.h >>conftest.$ac_ext
24581cat >>conftest.$ac_ext <<_ACEOF
24582/* end confdefs.h.  */
24583
24584
24585
24586#include <tr1/unordered_map>
24587_ACEOF
24588rm -f conftest.$ac_objext
24589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24590  (eval $ac_compile) 2>conftest.er1
24591  ac_status=$?
24592  grep -v '^ *+' conftest.er1 >conftest.err
24593  rm -f conftest.er1
24594  cat conftest.err >&5
24595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596  (exit $ac_status); } &&
24597	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599  (eval $ac_try) 2>&5
24600  ac_status=$?
24601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602  (exit $ac_status); }; } &&
24603	 { ac_try='test -s conftest.$ac_objext'
24604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605  (eval $ac_try) 2>&5
24606  ac_status=$?
24607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608  (exit $ac_status); }; }; then
24609  ac_cv_header_tr1_unordered_map=yes
24610else
24611  echo "$as_me: failed program was:" >&5
24612sed 's/^/| /' conftest.$ac_ext >&5
24613
24614ac_cv_header_tr1_unordered_map=no
24615fi
24616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24617fi
24618echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24619echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6
24620if test $ac_cv_header_tr1_unordered_map = yes; then
24621  echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24622echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6
24623if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24624  echo $ECHO_N "(cached) $ECHO_C" >&6
24625else
24626  cat >conftest.$ac_ext <<_ACEOF
24627/* confdefs.h.  */
24628_ACEOF
24629cat confdefs.h >>conftest.$ac_ext
24630cat >>conftest.$ac_ext <<_ACEOF
24631/* end confdefs.h.  */
24632#include <tr1/unordered_map>
24633                    #include <tr1/unordered_set>
24634int
24635main ()
24636{
24637std::tr1::unordered_map<double*, char*> test1;
24638                     std::tr1::unordered_set<char*> test2;
24639            #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
24640            #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
24641            #endif
24642  ;
24643  return 0;
24644}
24645_ACEOF
24646rm -f conftest.$ac_objext
24647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24648  (eval $ac_compile) 2>conftest.er1
24649  ac_status=$?
24650  grep -v '^ *+' conftest.er1 >conftest.err
24651  rm -f conftest.er1
24652  cat conftest.err >&5
24653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654  (exit $ac_status); } &&
24655	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24657  (eval $ac_try) 2>&5
24658  ac_status=$?
24659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660  (exit $ac_status); }; } &&
24661	 { ac_try='test -s conftest.$ac_objext'
24662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24663  (eval $ac_try) 2>&5
24664  ac_status=$?
24665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666  (exit $ac_status); }; }; then
24667  wx_cv_class_tr1unorderedmapset=yes
24668else
24669  echo "$as_me: failed program was:" >&5
24670sed 's/^/| /' conftest.$ac_ext >&5
24671
24672wx_cv_class_tr1unorderedmapset=no
24673fi
24674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24675
24676
24677fi
24678echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
24679echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6
24680fi
24681
24682
24683
24684        if test "$wx_cv_class_tr1unorderedmapset" = yes; then
24685            cat >>confdefs.h <<\_ACEOF
24686#define HAVE_TR1_UNORDERED_MAP 1
24687_ACEOF
24688
24689            cat >>confdefs.h <<\_ACEOF
24690#define HAVE_TR1_UNORDERED_SET 1
24691_ACEOF
24692
24693        else
24694                        echo "$as_me:$LINENO: checking for hash_map" >&5
24695echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24696if test "${ac_cv_header_hash_map+set}" = set; then
24697  echo $ECHO_N "(cached) $ECHO_C" >&6
24698else
24699  cat >conftest.$ac_ext <<_ACEOF
24700/* confdefs.h.  */
24701_ACEOF
24702cat confdefs.h >>conftest.$ac_ext
24703cat >>conftest.$ac_ext <<_ACEOF
24704/* end confdefs.h.  */
24705
24706
24707
24708#include <hash_map>
24709_ACEOF
24710rm -f conftest.$ac_objext
24711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24712  (eval $ac_compile) 2>conftest.er1
24713  ac_status=$?
24714  grep -v '^ *+' conftest.er1 >conftest.err
24715  rm -f conftest.er1
24716  cat conftest.err >&5
24717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718  (exit $ac_status); } &&
24719	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721  (eval $ac_try) 2>&5
24722  ac_status=$?
24723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724  (exit $ac_status); }; } &&
24725	 { ac_try='test -s conftest.$ac_objext'
24726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727  (eval $ac_try) 2>&5
24728  ac_status=$?
24729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730  (exit $ac_status); }; }; then
24731  ac_cv_header_hash_map=yes
24732else
24733  echo "$as_me: failed program was:" >&5
24734sed 's/^/| /' conftest.$ac_ext >&5
24735
24736ac_cv_header_hash_map=no
24737fi
24738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24739fi
24740echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24741echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24742if test $ac_cv_header_hash_map = yes; then
24743  echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
24744echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6
24745if test "${wx_cv_class_stdhashmapset+set}" = set; then
24746  echo $ECHO_N "(cached) $ECHO_C" >&6
24747else
24748  cat >conftest.$ac_ext <<_ACEOF
24749/* confdefs.h.  */
24750_ACEOF
24751cat confdefs.h >>conftest.$ac_ext
24752cat >>conftest.$ac_ext <<_ACEOF
24753/* end confdefs.h.  */
24754#include <hash_map>
24755                        #include <hash_set>
24756int
24757main ()
24758{
24759std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24760                         std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24761  ;
24762  return 0;
24763}
24764_ACEOF
24765rm -f conftest.$ac_objext
24766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24767  (eval $ac_compile) 2>conftest.er1
24768  ac_status=$?
24769  grep -v '^ *+' conftest.er1 >conftest.err
24770  rm -f conftest.er1
24771  cat conftest.err >&5
24772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773  (exit $ac_status); } &&
24774	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24776  (eval $ac_try) 2>&5
24777  ac_status=$?
24778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779  (exit $ac_status); }; } &&
24780	 { ac_try='test -s conftest.$ac_objext'
24781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24782  (eval $ac_try) 2>&5
24783  ac_status=$?
24784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785  (exit $ac_status); }; }; then
24786  wx_cv_class_stdhashmapset=yes
24787else
24788  echo "$as_me: failed program was:" >&5
24789sed 's/^/| /' conftest.$ac_ext >&5
24790
24791wx_cv_class_stdhashmapset=no
24792fi
24793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24794
24795
24796fi
24797echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
24798echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6
24799fi
24800
24801
24802
24803            if test "$wx_cv_class_stdhashmapset" = yes; then
24804                cat >>confdefs.h <<\_ACEOF
24805#define HAVE_HASH_MAP 1
24806_ACEOF
24807
24808                cat >>confdefs.h <<\_ACEOF
24809#define HAVE_STD_HASH_MAP 1
24810_ACEOF
24811
24812            fi
24813
24814            echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24815echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24816if test "${ac_cv_header_ext_hash_map+set}" = set; then
24817  echo $ECHO_N "(cached) $ECHO_C" >&6
24818else
24819  cat >conftest.$ac_ext <<_ACEOF
24820/* confdefs.h.  */
24821_ACEOF
24822cat confdefs.h >>conftest.$ac_ext
24823cat >>conftest.$ac_ext <<_ACEOF
24824/* end confdefs.h.  */
24825
24826
24827
24828#include <ext/hash_map>
24829_ACEOF
24830rm -f conftest.$ac_objext
24831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24832  (eval $ac_compile) 2>conftest.er1
24833  ac_status=$?
24834  grep -v '^ *+' conftest.er1 >conftest.err
24835  rm -f conftest.er1
24836  cat conftest.err >&5
24837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838  (exit $ac_status); } &&
24839	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841  (eval $ac_try) 2>&5
24842  ac_status=$?
24843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844  (exit $ac_status); }; } &&
24845	 { ac_try='test -s conftest.$ac_objext'
24846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847  (eval $ac_try) 2>&5
24848  ac_status=$?
24849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850  (exit $ac_status); }; }; then
24851  ac_cv_header_ext_hash_map=yes
24852else
24853  echo "$as_me: failed program was:" >&5
24854sed 's/^/| /' conftest.$ac_ext >&5
24855
24856ac_cv_header_ext_hash_map=no
24857fi
24858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24859fi
24860echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24861echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24862if test $ac_cv_header_ext_hash_map = yes; then
24863  echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
24864echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6
24865if test "${wx_cv_class_gnuhashmapset+set}" = set; then
24866  echo $ECHO_N "(cached) $ECHO_C" >&6
24867else
24868  cat >conftest.$ac_ext <<_ACEOF
24869/* confdefs.h.  */
24870_ACEOF
24871cat confdefs.h >>conftest.$ac_ext
24872cat >>conftest.$ac_ext <<_ACEOF
24873/* end confdefs.h.  */
24874#include <ext/hash_map>
24875                        #include <ext/hash_set>
24876int
24877main ()
24878{
24879__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24880                         __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24881  ;
24882  return 0;
24883}
24884_ACEOF
24885rm -f conftest.$ac_objext
24886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24887  (eval $ac_compile) 2>conftest.er1
24888  ac_status=$?
24889  grep -v '^ *+' conftest.er1 >conftest.err
24890  rm -f conftest.er1
24891  cat conftest.err >&5
24892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893  (exit $ac_status); } &&
24894	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
24895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896  (eval $ac_try) 2>&5
24897  ac_status=$?
24898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899  (exit $ac_status); }; } &&
24900	 { ac_try='test -s conftest.$ac_objext'
24901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24902  (eval $ac_try) 2>&5
24903  ac_status=$?
24904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905  (exit $ac_status); }; }; then
24906  wx_cv_class_gnuhashmapset=yes
24907else
24908  echo "$as_me: failed program was:" >&5
24909sed 's/^/| /' conftest.$ac_ext >&5
24910
24911wx_cv_class_gnuhashmapset=no
24912fi
24913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24914
24915
24916fi
24917echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24918echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6
24919fi
24920
24921
24922
24923        fi
24924    fi
24925fi
24926
24927ac_ext=c
24928ac_cpp='$CPP $CPPFLAGS'
24929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24931ac_compiler_gnu=$ac_cv_c_compiler_gnu
24932
24933
24934
24935SEARCH_INCLUDE="\
24936    $X11BASE/include          \
24937    /usr/local/include        \
24938    /usr/local/X11/include    \
24939    /usr/local/include/X11    \
24940    /usr/local/X11R6/include  \
24941    /usr/local/include/X11R6  \
24942                              \
24943    /usr/Motif-2.1/include    \
24944    /usr/Motif-1.2/include    \
24945    /usr/include/Motif1.2     \
24946                              \
24947    /usr/dt/include           \
24948    /usr/openwin/include      \
24949                              \
24950    /usr/include/Xm           \
24951                              \
24952    /usr/X11R6/include        \
24953    /usr/X11R6.4/include      \
24954                              \
24955    /usr/include/X11R6        \
24956                              \
24957    /usr/X11/include          \
24958    /usr/include/X11          \
24959                              \
24960    /usr/XFree86/include/X11  \
24961    /usr/pkg/include          \
24962                              \
24963    /usr/local/X1R5/include  \
24964    /usr/local/include/X11R5  \
24965    /usr/X11R5/include        \
24966    /usr/include/X11R5        \
24967                              \
24968    /usr/local/X11R4/include  \
24969    /usr/local/include/X11R4  \
24970    /usr/X11R4/include        \
24971    /usr/include/X11R4        \
24972                              \
24973    /usr/openwin/share/include"
24974
24975echo "$as_me:$LINENO: checking for libraries directory" >&5
24976echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
24977
24978case "${host}" in
24979    *-*-irix6* )
24980        if test "${wx_cv_std_libpath+set}" = set; then
24981  echo $ECHO_N "(cached) $ECHO_C" >&6
24982else
24983
24984                for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24985                    for e in a so sl dylib dll.a; do
24986                        libc="$d/libc.$e"
24987                        if test -f $libc; then
24988                            save_LIBS="$LIBS"
24989                            LIBS="$libc"
24990                            cat >conftest.$ac_ext <<_ACEOF
24991int main() { return 0; }
24992_ACEOF
24993rm -f conftest.$ac_objext conftest$ac_exeext
24994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24995  (eval $ac_link) 2>conftest.er1
24996  ac_status=$?
24997  grep -v '^ *+' conftest.er1 >conftest.err
24998  rm -f conftest.er1
24999  cat conftest.err >&5
25000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001  (exit $ac_status); } &&
25002	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25004  (eval $ac_try) 2>&5
25005  ac_status=$?
25006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007  (exit $ac_status); }; } &&
25008	 { ac_try='test -s conftest$ac_exeext'
25009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010  (eval $ac_try) 2>&5
25011  ac_status=$?
25012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013  (exit $ac_status); }; }; then
25014  wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25015else
25016  echo "$as_me: failed program was:" >&5
25017sed 's/^/| /' conftest.$ac_ext >&5
25018
25019fi
25020rm -f conftest.err conftest.$ac_objext \
25021      conftest$ac_exeext conftest.$ac_ext
25022                            LIBS="$save_LIBS"
25023                            if test "x$wx_cv_std_libpath" != "x"; then
25024                                break 2
25025                            fi
25026                        fi
25027                    done
25028                done
25029                if test "x$wx_cv_std_libpath" = "x"; then
25030                    wx_cv_std_libpath="lib"
25031                fi
25032
25033
25034fi
25035
25036        ;;
25037
25038    *-*-solaris2* )
25039                if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25040            wx_cv_std_libpath="lib/64"
25041        else
25042            wx_cv_std_libpath="lib"
25043        fi
25044        ;;
25045
25046    *-*-linux* )
25047                if test "$ac_cv_sizeof_void_p" = 8 -a \
25048                -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25049            wx_cv_std_libpath="lib64"
25050        else
25051            wx_cv_std_libpath="lib"
25052        fi
25053        ;;
25054
25055    *)
25056        wx_cv_std_libpath="lib";
25057        ;;
25058esac
25059
25060echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25061echo "${ECHO_T}$wx_cv_std_libpath" >&6
25062
25063SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25064
25065if test "$build" != "$host" -a "$GCC" = yes; then
25066                    if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25067        cross_root=`dirname $cross_root`
25068        cross_root=`dirname $cross_root`
25069
25070                        SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25071        SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25072        SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25073
25074                if test -z "$PKG_CONFIG_PATH"; then
25075            PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25076            export PKG_CONFIG_PATH
25077        fi
25078
25079                                if test -z "$x_includes" -o "$x_includes" = NONE; then
25080
25081ac_find_includes=
25082for ac_dir in $SEARCH_INCLUDE /usr/include;
25083  do
25084    if test -f "$ac_dir/X11/Intrinsic.h"; then
25085      ac_find_includes=$ac_dir
25086      break
25087    fi
25088  done
25089
25090            x_includes=$ac_find_includes
25091        fi
25092        if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25093
25094  ac_find_libraries=
25095  for ac_dir in $SEARCH_LIB;
25096  do
25097    for ac_extension in a so sl dylib dll.a; do
25098      if test -f "$ac_dir/libXt.$ac_extension"; then
25099        ac_find_libraries=$ac_dir
25100        break 2
25101      fi
25102    done
25103  done
25104
25105            x_libraries=$ac_find_libraries
25106        fi
25107    fi
25108fi
25109
25110
25111cat >confcache <<\_ACEOF
25112# This file is a shell script that caches the results of configure
25113# tests run on this system so they can be shared between configure
25114# scripts and configure runs, see configure's option --config-cache.
25115# It is not useful on other systems.  If it contains results you don't
25116# want to keep, you may remove or edit it.
25117#
25118# config.status only pays attention to the cache file if you give it
25119# the --recheck option to rerun configure.
25120#
25121# `ac_cv_env_foo' variables (set or unset) will be overridden when
25122# loading this file, other *unset* `ac_cv_foo' will be assigned the
25123# following values.
25124
25125_ACEOF
25126
25127# The following way of writing the cache mishandles newlines in values,
25128# but we know of no workaround that is simple, portable, and efficient.
25129# So, don't put newlines in cache variables' values.
25130# Ultrix sh set writes to stderr and can't be redirected directly,
25131# and sets the high bit in the cache file unless we assign to the vars.
25132{
25133  (set) 2>&1 |
25134    case `(ac_space=' '; set | grep ac_space) 2>&1` in
25135    *ac_space=\ *)
25136      # `set' does not quote correctly, so add quotes (double-quote
25137      # substitution turns \\\\ into \\, and sed turns \\ into \).
25138      sed -n \
25139	"s/'/'\\\\''/g;
25140	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25141      ;;
25142    *)
25143      # `set' quotes correctly as required by POSIX, so do not add quotes.
25144      sed -n \
25145	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25146      ;;
25147    esac;
25148} |
25149  sed '
25150     t clear
25151     : clear
25152     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25153     t end
25154     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25155     : end' >>confcache
25156if diff $cache_file confcache >/dev/null 2>&1; then :; else
25157  if test -w $cache_file; then
25158    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25159    cat confcache >$cache_file
25160  else
25161    echo "not updating unwritable cache $cache_file"
25162  fi
25163fi
25164rm -f confcache
25165
25166if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25167    echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25168echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
25169if test "${wx_cv_lib_glibc21+set}" = set; then
25170  echo $ECHO_N "(cached) $ECHO_C" >&6
25171else
25172
25173        cat >conftest.$ac_ext <<_ACEOF
25174/* confdefs.h.  */
25175_ACEOF
25176cat confdefs.h >>conftest.$ac_ext
25177cat >>conftest.$ac_ext <<_ACEOF
25178/* end confdefs.h.  */
25179#include <features.h>
25180int
25181main ()
25182{
25183
25184                #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25185                not glibc 2.1
25186                #endif
25187
25188  ;
25189  return 0;
25190}
25191_ACEOF
25192rm -f conftest.$ac_objext
25193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25194  (eval $ac_compile) 2>conftest.er1
25195  ac_status=$?
25196  grep -v '^ *+' conftest.er1 >conftest.err
25197  rm -f conftest.er1
25198  cat conftest.err >&5
25199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200  (exit $ac_status); } &&
25201	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203  (eval $ac_try) 2>&5
25204  ac_status=$?
25205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206  (exit $ac_status); }; } &&
25207	 { ac_try='test -s conftest.$ac_objext'
25208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209  (eval $ac_try) 2>&5
25210  ac_status=$?
25211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212  (exit $ac_status); }; }; then
25213
25214                wx_cv_lib_glibc21=yes
25215
25216else
25217  echo "$as_me: failed program was:" >&5
25218sed 's/^/| /' conftest.$ac_ext >&5
25219
25220
25221                wx_cv_lib_glibc21=no
25222
25223
25224fi
25225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25226
25227fi
25228echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25229echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
25230    if test "$wx_cv_lib_glibc21" = "yes"; then
25231        cat >>confdefs.h <<\_ACEOF
25232#define wxHAVE_GLIBC2 1
25233_ACEOF
25234
25235    fi
25236fi
25237
25238if test "x$wx_cv_lib_glibc21" = "xyes"; then
25239    if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25240        cat >>confdefs.h <<\_ACEOF
25241#define _GNU_SOURCE 1
25242_ACEOF
25243
25244    fi
25245fi
25246
25247have_cos=0
25248have_floor=0
25249
25250for ac_func in cos
25251do
25252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25253echo "$as_me:$LINENO: checking for $ac_func" >&5
25254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25255if eval "test \"\${$as_ac_var+set}\" = set"; then
25256  echo $ECHO_N "(cached) $ECHO_C" >&6
25257else
25258  cat >conftest.$ac_ext <<_ACEOF
25259/* confdefs.h.  */
25260_ACEOF
25261cat confdefs.h >>conftest.$ac_ext
25262cat >>conftest.$ac_ext <<_ACEOF
25263/* end confdefs.h.  */
25264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25265   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25266#define $ac_func innocuous_$ac_func
25267
25268/* System header to define __stub macros and hopefully few prototypes,
25269    which can conflict with char $ac_func (); below.
25270    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25271    <limits.h> exists even on freestanding compilers.  */
25272
25273#ifdef __STDC__
25274# include <limits.h>
25275#else
25276# include <assert.h>
25277#endif
25278
25279#undef $ac_func
25280
25281/* Override any gcc2 internal prototype to avoid an error.  */
25282#ifdef __cplusplus
25283extern "C"
25284{
25285#endif
25286/* We use char because int might match the return type of a gcc2
25287   builtin and then its argument prototype would still apply.  */
25288char $ac_func ();
25289/* The GNU C library defines this for functions which it implements
25290    to always fail with ENOSYS.  Some functions are actually named
25291    something starting with __ and the normal name is an alias.  */
25292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25293choke me
25294#else
25295char (*f) () = $ac_func;
25296#endif
25297#ifdef __cplusplus
25298}
25299#endif
25300
25301int
25302main ()
25303{
25304return f != $ac_func;
25305  ;
25306  return 0;
25307}
25308_ACEOF
25309rm -f conftest.$ac_objext conftest$ac_exeext
25310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25311  (eval $ac_link) 2>conftest.er1
25312  ac_status=$?
25313  grep -v '^ *+' conftest.er1 >conftest.err
25314  rm -f conftest.er1
25315  cat conftest.err >&5
25316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317  (exit $ac_status); } &&
25318	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25320  (eval $ac_try) 2>&5
25321  ac_status=$?
25322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323  (exit $ac_status); }; } &&
25324	 { ac_try='test -s conftest$ac_exeext'
25325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326  (eval $ac_try) 2>&5
25327  ac_status=$?
25328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329  (exit $ac_status); }; }; then
25330  eval "$as_ac_var=yes"
25331else
25332  echo "$as_me: failed program was:" >&5
25333sed 's/^/| /' conftest.$ac_ext >&5
25334
25335eval "$as_ac_var=no"
25336fi
25337rm -f conftest.err conftest.$ac_objext \
25338      conftest$ac_exeext conftest.$ac_ext
25339fi
25340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25342if test `eval echo '${'$as_ac_var'}'` = yes; then
25343  cat >>confdefs.h <<_ACEOF
25344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25345_ACEOF
25346 have_cos=1
25347fi
25348done
25349
25350
25351for ac_func in floor
25352do
25353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25354echo "$as_me:$LINENO: checking for $ac_func" >&5
25355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25356if eval "test \"\${$as_ac_var+set}\" = set"; then
25357  echo $ECHO_N "(cached) $ECHO_C" >&6
25358else
25359  cat >conftest.$ac_ext <<_ACEOF
25360/* confdefs.h.  */
25361_ACEOF
25362cat confdefs.h >>conftest.$ac_ext
25363cat >>conftest.$ac_ext <<_ACEOF
25364/* end confdefs.h.  */
25365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25366   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25367#define $ac_func innocuous_$ac_func
25368
25369/* System header to define __stub macros and hopefully few prototypes,
25370    which can conflict with char $ac_func (); below.
25371    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25372    <limits.h> exists even on freestanding compilers.  */
25373
25374#ifdef __STDC__
25375# include <limits.h>
25376#else
25377# include <assert.h>
25378#endif
25379
25380#undef $ac_func
25381
25382/* Override any gcc2 internal prototype to avoid an error.  */
25383#ifdef __cplusplus
25384extern "C"
25385{
25386#endif
25387/* We use char because int might match the return type of a gcc2
25388   builtin and then its argument prototype would still apply.  */
25389char $ac_func ();
25390/* The GNU C library defines this for functions which it implements
25391    to always fail with ENOSYS.  Some functions are actually named
25392    something starting with __ and the normal name is an alias.  */
25393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25394choke me
25395#else
25396char (*f) () = $ac_func;
25397#endif
25398#ifdef __cplusplus
25399}
25400#endif
25401
25402int
25403main ()
25404{
25405return f != $ac_func;
25406  ;
25407  return 0;
25408}
25409_ACEOF
25410rm -f conftest.$ac_objext conftest$ac_exeext
25411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25412  (eval $ac_link) 2>conftest.er1
25413  ac_status=$?
25414  grep -v '^ *+' conftest.er1 >conftest.err
25415  rm -f conftest.er1
25416  cat conftest.err >&5
25417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418  (exit $ac_status); } &&
25419	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421  (eval $ac_try) 2>&5
25422  ac_status=$?
25423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424  (exit $ac_status); }; } &&
25425	 { ac_try='test -s conftest$ac_exeext'
25426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25427  (eval $ac_try) 2>&5
25428  ac_status=$?
25429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430  (exit $ac_status); }; }; then
25431  eval "$as_ac_var=yes"
25432else
25433  echo "$as_me: failed program was:" >&5
25434sed 's/^/| /' conftest.$ac_ext >&5
25435
25436eval "$as_ac_var=no"
25437fi
25438rm -f conftest.err conftest.$ac_objext \
25439      conftest$ac_exeext conftest.$ac_ext
25440fi
25441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25442echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25443if test `eval echo '${'$as_ac_var'}'` = yes; then
25444  cat >>confdefs.h <<_ACEOF
25445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25446_ACEOF
25447 have_floor=1
25448fi
25449done
25450
25451echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25452echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
25453if test "$have_cos" = 1 -a "$have_floor" = 1; then
25454    echo "$as_me:$LINENO: result: yes" >&5
25455echo "${ECHO_T}yes" >&6
25456else
25457    echo "$as_me:$LINENO: result: no" >&5
25458echo "${ECHO_T}no" >&6
25459    LIBS="$LIBS -lm"
25460    # use different functions to avoid configure caching
25461    have_sin=0
25462    have_ceil=0
25463
25464for ac_func in sin
25465do
25466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25467echo "$as_me:$LINENO: checking for $ac_func" >&5
25468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25469if eval "test \"\${$as_ac_var+set}\" = set"; then
25470  echo $ECHO_N "(cached) $ECHO_C" >&6
25471else
25472  cat >conftest.$ac_ext <<_ACEOF
25473/* confdefs.h.  */
25474_ACEOF
25475cat confdefs.h >>conftest.$ac_ext
25476cat >>conftest.$ac_ext <<_ACEOF
25477/* end confdefs.h.  */
25478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25479   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25480#define $ac_func innocuous_$ac_func
25481
25482/* System header to define __stub macros and hopefully few prototypes,
25483    which can conflict with char $ac_func (); below.
25484    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25485    <limits.h> exists even on freestanding compilers.  */
25486
25487#ifdef __STDC__
25488# include <limits.h>
25489#else
25490# include <assert.h>
25491#endif
25492
25493#undef $ac_func
25494
25495/* Override any gcc2 internal prototype to avoid an error.  */
25496#ifdef __cplusplus
25497extern "C"
25498{
25499#endif
25500/* We use char because int might match the return type of a gcc2
25501   builtin and then its argument prototype would still apply.  */
25502char $ac_func ();
25503/* The GNU C library defines this for functions which it implements
25504    to always fail with ENOSYS.  Some functions are actually named
25505    something starting with __ and the normal name is an alias.  */
25506#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25507choke me
25508#else
25509char (*f) () = $ac_func;
25510#endif
25511#ifdef __cplusplus
25512}
25513#endif
25514
25515int
25516main ()
25517{
25518return f != $ac_func;
25519  ;
25520  return 0;
25521}
25522_ACEOF
25523rm -f conftest.$ac_objext conftest$ac_exeext
25524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25525  (eval $ac_link) 2>conftest.er1
25526  ac_status=$?
25527  grep -v '^ *+' conftest.er1 >conftest.err
25528  rm -f conftest.er1
25529  cat conftest.err >&5
25530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531  (exit $ac_status); } &&
25532	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534  (eval $ac_try) 2>&5
25535  ac_status=$?
25536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537  (exit $ac_status); }; } &&
25538	 { ac_try='test -s conftest$ac_exeext'
25539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540  (eval $ac_try) 2>&5
25541  ac_status=$?
25542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543  (exit $ac_status); }; }; then
25544  eval "$as_ac_var=yes"
25545else
25546  echo "$as_me: failed program was:" >&5
25547sed 's/^/| /' conftest.$ac_ext >&5
25548
25549eval "$as_ac_var=no"
25550fi
25551rm -f conftest.err conftest.$ac_objext \
25552      conftest$ac_exeext conftest.$ac_ext
25553fi
25554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25555echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25556if test `eval echo '${'$as_ac_var'}'` = yes; then
25557  cat >>confdefs.h <<_ACEOF
25558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25559_ACEOF
25560 have_sin=1
25561fi
25562done
25563
25564
25565for ac_func in ceil
25566do
25567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25568echo "$as_me:$LINENO: checking for $ac_func" >&5
25569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25570if eval "test \"\${$as_ac_var+set}\" = set"; then
25571  echo $ECHO_N "(cached) $ECHO_C" >&6
25572else
25573  cat >conftest.$ac_ext <<_ACEOF
25574/* confdefs.h.  */
25575_ACEOF
25576cat confdefs.h >>conftest.$ac_ext
25577cat >>conftest.$ac_ext <<_ACEOF
25578/* end confdefs.h.  */
25579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25580   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25581#define $ac_func innocuous_$ac_func
25582
25583/* System header to define __stub macros and hopefully few prototypes,
25584    which can conflict with char $ac_func (); below.
25585    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25586    <limits.h> exists even on freestanding compilers.  */
25587
25588#ifdef __STDC__
25589# include <limits.h>
25590#else
25591# include <assert.h>
25592#endif
25593
25594#undef $ac_func
25595
25596/* Override any gcc2 internal prototype to avoid an error.  */
25597#ifdef __cplusplus
25598extern "C"
25599{
25600#endif
25601/* We use char because int might match the return type of a gcc2
25602   builtin and then its argument prototype would still apply.  */
25603char $ac_func ();
25604/* The GNU C library defines this for functions which it implements
25605    to always fail with ENOSYS.  Some functions are actually named
25606    something starting with __ and the normal name is an alias.  */
25607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25608choke me
25609#else
25610char (*f) () = $ac_func;
25611#endif
25612#ifdef __cplusplus
25613}
25614#endif
25615
25616int
25617main ()
25618{
25619return f != $ac_func;
25620  ;
25621  return 0;
25622}
25623_ACEOF
25624rm -f conftest.$ac_objext conftest$ac_exeext
25625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25626  (eval $ac_link) 2>conftest.er1
25627  ac_status=$?
25628  grep -v '^ *+' conftest.er1 >conftest.err
25629  rm -f conftest.er1
25630  cat conftest.err >&5
25631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632  (exit $ac_status); } &&
25633	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635  (eval $ac_try) 2>&5
25636  ac_status=$?
25637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638  (exit $ac_status); }; } &&
25639	 { ac_try='test -s conftest$ac_exeext'
25640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641  (eval $ac_try) 2>&5
25642  ac_status=$?
25643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644  (exit $ac_status); }; }; then
25645  eval "$as_ac_var=yes"
25646else
25647  echo "$as_me: failed program was:" >&5
25648sed 's/^/| /' conftest.$ac_ext >&5
25649
25650eval "$as_ac_var=no"
25651fi
25652rm -f conftest.err conftest.$ac_objext \
25653      conftest$ac_exeext conftest.$ac_ext
25654fi
25655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25656echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25657if test `eval echo '${'$as_ac_var'}'` = yes; then
25658  cat >>confdefs.h <<_ACEOF
25659#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25660_ACEOF
25661 have_ceil=1
25662fi
25663done
25664
25665    echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25666echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25667    if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25668        echo "$as_me:$LINENO: result: yes" >&5
25669echo "${ECHO_T}yes" >&6
25670    else
25671        echo "$as_me:$LINENO: result: no" >&5
25672echo "${ECHO_T}no" >&6
25673        # not sure we should warn the user, crash, etc.
25674    fi
25675fi
25676
25677ac_ext=cc
25678ac_cpp='$CXXCPP $CPPFLAGS'
25679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25682
25683if test "$wxUSE_UNICODE" = "yes"; then
25684
25685  for wx_func in wcstoull
25686  do
25687    echo "$as_me:$LINENO: checking for $wx_func" >&5
25688echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
25689if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
25690  echo $ECHO_N "(cached) $ECHO_C" >&6
25691else
25692
25693        cat >conftest.$ac_ext <<_ACEOF
25694
25695            /* confdefs.h.  */
25696_ACEOF
25697cat confdefs.h >>conftest.$ac_ext
25698cat >>conftest.$ac_ext <<_ACEOF
25699/* end confdefs.h.  */
25700
25701                #include <wchar.h>
25702                $ac_includes_default
25703
25704int
25705main ()
25706{
25707
25708                #ifndef $wx_func
25709                  &$wx_func;
25710                #endif
25711
25712
25713  ;
25714  return 0;
25715}
25716
25717_ACEOF
25718rm -f conftest.$ac_objext conftest$ac_exeext
25719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25720  (eval $ac_link) 2>conftest.er1
25721  ac_status=$?
25722  grep -v '^ *+' conftest.er1 >conftest.err
25723  rm -f conftest.er1
25724  cat conftest.err >&5
25725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726  (exit $ac_status); } &&
25727	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
25728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729  (eval $ac_try) 2>&5
25730  ac_status=$?
25731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732  (exit $ac_status); }; } &&
25733	 { ac_try='test -s conftest$ac_exeext'
25734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735  (eval $ac_try) 2>&5
25736  ac_status=$?
25737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738  (exit $ac_status); }; }; then
25739  eval wx_cv_func_$wx_func=yes
25740else
25741  echo "$as_me: failed program was:" >&5
25742sed 's/^/| /' conftest.$ac_ext >&5
25743
25744eval wx_cv_func_$wx_func=no
25745fi
25746rm -f conftest.err conftest.$ac_objext \
25747      conftest$ac_exeext conftest.$ac_ext
25748
25749fi
25750echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
25751echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
25752
25753    if eval test \$wx_cv_func_$wx_func = yes
25754    then
25755      cat >>confdefs.h <<_ACEOF
25756#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
25757_ACEOF
25758
25759
25760    else
25761      :
25762
25763    fi
25764  done
25765
25766else
25767
25768  for wx_func in strtoull
25769  do
25770    echo "$as_me:$LINENO: checking for $wx_func" >&5
25771echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
25772if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
25773  echo $ECHO_N "(cached) $ECHO_C" >&6
25774else
25775
25776        cat >conftest.$ac_ext <<_ACEOF
25777
25778            /* confdefs.h.  */
25779_ACEOF
25780cat confdefs.h >>conftest.$ac_ext
25781cat >>conftest.$ac_ext <<_ACEOF
25782/* end confdefs.h.  */
25783
25784
25785                $ac_includes_default
25786
25787int
25788main ()
25789{
25790
25791                #ifndef $wx_func
25792                  &$wx_func;
25793                #endif
25794
25795
25796  ;
25797  return 0;
25798}
25799
25800_ACEOF
25801rm -f conftest.$ac_objext conftest$ac_exeext
25802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25803  (eval $ac_link) 2>conftest.er1
25804  ac_status=$?
25805  grep -v '^ *+' conftest.er1 >conftest.err
25806  rm -f conftest.er1
25807  cat conftest.err >&5
25808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809  (exit $ac_status); } &&
25810	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
25811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25812  (eval $ac_try) 2>&5
25813  ac_status=$?
25814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815  (exit $ac_status); }; } &&
25816	 { ac_try='test -s conftest$ac_exeext'
25817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818  (eval $ac_try) 2>&5
25819  ac_status=$?
25820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821  (exit $ac_status); }; }; then
25822  eval wx_cv_func_$wx_func=yes
25823else
25824  echo "$as_me: failed program was:" >&5
25825sed 's/^/| /' conftest.$ac_ext >&5
25826
25827eval wx_cv_func_$wx_func=no
25828fi
25829rm -f conftest.err conftest.$ac_objext \
25830      conftest$ac_exeext conftest.$ac_ext
25831
25832fi
25833echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
25834echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
25835
25836    if eval test \$wx_cv_func_$wx_func = yes
25837    then
25838      cat >>confdefs.h <<_ACEOF
25839#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
25840_ACEOF
25841
25842
25843    else
25844      :
25845
25846    fi
25847  done
25848
25849fi
25850ac_ext=c
25851ac_cpp='$CPP $CPPFLAGS'
25852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25854ac_compiler_gnu=$ac_cv_c_compiler_gnu
25855
25856
25857
25858
25859if test "$wxUSE_REGEX" != "no"; then
25860    cat >>confdefs.h <<\_ACEOF
25861#define wxUSE_REGEX 1
25862_ACEOF
25863
25864
25865    if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25866        { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25867echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25868        wxUSE_REGEX=builtin
25869    fi
25870
25871    if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25872                        echo "$as_me:$LINENO: checking for regex.h" >&5
25873echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25874if test "${ac_cv_header_regex_h+set}" = set; then
25875  echo $ECHO_N "(cached) $ECHO_C" >&6
25876else
25877  cat >conftest.$ac_ext <<_ACEOF
25878/* confdefs.h.  */
25879_ACEOF
25880cat confdefs.h >>conftest.$ac_ext
25881cat >>conftest.$ac_ext <<_ACEOF
25882/* end confdefs.h.  */
25883
25884
25885#include <regex.h>
25886_ACEOF
25887rm -f conftest.$ac_objext
25888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25889  (eval $ac_compile) 2>conftest.er1
25890  ac_status=$?
25891  grep -v '^ *+' conftest.er1 >conftest.err
25892  rm -f conftest.er1
25893  cat conftest.err >&5
25894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895  (exit $ac_status); } &&
25896	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898  (eval $ac_try) 2>&5
25899  ac_status=$?
25900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901  (exit $ac_status); }; } &&
25902	 { ac_try='test -s conftest.$ac_objext'
25903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904  (eval $ac_try) 2>&5
25905  ac_status=$?
25906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907  (exit $ac_status); }; }; then
25908  ac_cv_header_regex_h=yes
25909else
25910  echo "$as_me: failed program was:" >&5
25911sed 's/^/| /' conftest.$ac_ext >&5
25912
25913ac_cv_header_regex_h=no
25914fi
25915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25916fi
25917echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25918echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25919if test $ac_cv_header_regex_h = yes; then
25920
25921
25922for ac_func in regcomp re_search
25923do
25924as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25925echo "$as_me:$LINENO: checking for $ac_func" >&5
25926echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25927if eval "test \"\${$as_ac_var+set}\" = set"; then
25928  echo $ECHO_N "(cached) $ECHO_C" >&6
25929else
25930  cat >conftest.$ac_ext <<_ACEOF
25931/* confdefs.h.  */
25932_ACEOF
25933cat confdefs.h >>conftest.$ac_ext
25934cat >>conftest.$ac_ext <<_ACEOF
25935/* end confdefs.h.  */
25936/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25937   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25938#define $ac_func innocuous_$ac_func
25939
25940/* System header to define __stub macros and hopefully few prototypes,
25941    which can conflict with char $ac_func (); below.
25942    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25943    <limits.h> exists even on freestanding compilers.  */
25944
25945#ifdef __STDC__
25946# include <limits.h>
25947#else
25948# include <assert.h>
25949#endif
25950
25951#undef $ac_func
25952
25953/* Override any gcc2 internal prototype to avoid an error.  */
25954#ifdef __cplusplus
25955extern "C"
25956{
25957#endif
25958/* We use char because int might match the return type of a gcc2
25959   builtin and then its argument prototype would still apply.  */
25960char $ac_func ();
25961/* The GNU C library defines this for functions which it implements
25962    to always fail with ENOSYS.  Some functions are actually named
25963    something starting with __ and the normal name is an alias.  */
25964#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25965choke me
25966#else
25967char (*f) () = $ac_func;
25968#endif
25969#ifdef __cplusplus
25970}
25971#endif
25972
25973int
25974main ()
25975{
25976return f != $ac_func;
25977  ;
25978  return 0;
25979}
25980_ACEOF
25981rm -f conftest.$ac_objext conftest$ac_exeext
25982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25983  (eval $ac_link) 2>conftest.er1
25984  ac_status=$?
25985  grep -v '^ *+' conftest.er1 >conftest.err
25986  rm -f conftest.er1
25987  cat conftest.err >&5
25988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989  (exit $ac_status); } &&
25990	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992  (eval $ac_try) 2>&5
25993  ac_status=$?
25994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995  (exit $ac_status); }; } &&
25996	 { ac_try='test -s conftest$ac_exeext'
25997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998  (eval $ac_try) 2>&5
25999  ac_status=$?
26000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001  (exit $ac_status); }; }; then
26002  eval "$as_ac_var=yes"
26003else
26004  echo "$as_me: failed program was:" >&5
26005sed 's/^/| /' conftest.$ac_ext >&5
26006
26007eval "$as_ac_var=no"
26008fi
26009rm -f conftest.err conftest.$ac_objext \
26010      conftest$ac_exeext conftest.$ac_ext
26011fi
26012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26013echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26014if test `eval echo '${'$as_ac_var'}'` = yes; then
26015  cat >>confdefs.h <<_ACEOF
26016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26017_ACEOF
26018
26019fi
26020done
26021
26022fi
26023
26024
26025
26026        if test "x$ac_cv_func_regcomp" != "xyes"; then
26027            if test "$wxUSE_REGEX" = "sys" ; then
26028                { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26029echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26030   { (exit 1); exit 1; }; }
26031            else
26032                { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26033echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26034                wxUSE_REGEX=builtin
26035            fi
26036        else
26037                        wxUSE_REGEX=sys
26038                        cat >>confdefs.h <<\_ACEOF
26039#define WX_NO_REGEX_ADVANCED 1
26040_ACEOF
26041
26042        fi
26043    fi
26044fi
26045
26046
26047ZLIB_LINK=
26048if test "$wxUSE_ZLIB" != "no" ; then
26049    cat >>confdefs.h <<\_ACEOF
26050#define wxUSE_ZLIB 1
26051_ACEOF
26052
26053
26054    if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26055                                                if test "$USE_DARWIN" = 1; then
26056            system_zlib_h_ok="yes"
26057        else
26058                                                                                    echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26059echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
26060if test "${ac_cv_header_zlib_h+set}" = set; then
26061  echo $ECHO_N "(cached) $ECHO_C" >&6
26062else
26063  if test "$cross_compiling" = yes; then
26064                      unset ac_cv_header_zlib_h
26065
26066else
26067  cat >conftest.$ac_ext <<_ACEOF
26068/* confdefs.h.  */
26069_ACEOF
26070cat confdefs.h >>conftest.$ac_ext
26071cat >>conftest.$ac_ext <<_ACEOF
26072/* end confdefs.h.  */
26073
26074                        #include <zlib.h>
26075                        #include <stdio.h>
26076
26077                        int main()
26078                        {
26079                            FILE *f=fopen("conftestval", "w");
26080                            if (!f) exit(1);
26081                            fprintf(f, "%s",
26082                                    ZLIB_VERSION[0] == '1' &&
26083                                    (ZLIB_VERSION[2] > '1' ||
26084                                    (ZLIB_VERSION[2] == '1' &&
26085                                     ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26086                            exit(0);
26087                        }
26088
26089_ACEOF
26090rm -f conftest$ac_exeext
26091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26092  (eval $ac_link) 2>&5
26093  ac_status=$?
26094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_header_zlib_h=`cat conftestval`
26102else
26103  echo "$as_me: program exited with status $ac_status" >&5
26104echo "$as_me: failed program was:" >&5
26105sed 's/^/| /' conftest.$ac_ext >&5
26106
26107( exit $ac_status )
26108ac_cv_header_zlib_h=no
26109fi
26110rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26111fi
26112
26113fi
26114echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26115echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
26116                                    echo "$as_me:$LINENO: checking for zlib.h" >&5
26117echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
26118if test "${ac_cv_header_zlib_h+set}" = set; then
26119  echo $ECHO_N "(cached) $ECHO_C" >&6
26120else
26121  cat >conftest.$ac_ext <<_ACEOF
26122/* confdefs.h.  */
26123_ACEOF
26124cat confdefs.h >>conftest.$ac_ext
26125cat >>conftest.$ac_ext <<_ACEOF
26126/* end confdefs.h.  */
26127
26128
26129#include <zlib.h>
26130_ACEOF
26131rm -f conftest.$ac_objext
26132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26133  (eval $ac_compile) 2>conftest.er1
26134  ac_status=$?
26135  grep -v '^ *+' conftest.er1 >conftest.err
26136  rm -f conftest.er1
26137  cat conftest.err >&5
26138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139  (exit $ac_status); } &&
26140	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142  (eval $ac_try) 2>&5
26143  ac_status=$?
26144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145  (exit $ac_status); }; } &&
26146	 { ac_try='test -s conftest.$ac_objext'
26147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148  (eval $ac_try) 2>&5
26149  ac_status=$?
26150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151  (exit $ac_status); }; }; then
26152  ac_cv_header_zlib_h=yes
26153else
26154  echo "$as_me: failed program was:" >&5
26155sed 's/^/| /' conftest.$ac_ext >&5
26156
26157ac_cv_header_zlib_h=no
26158fi
26159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26160fi
26161echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26162echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
26163
26164
26165
26166            system_zlib_h_ok=$ac_cv_header_zlib_h
26167        fi
26168
26169        if test "$system_zlib_h_ok" = "yes"; then
26170            echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26171echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
26172if test "${ac_cv_lib_z_deflate+set}" = set; then
26173  echo $ECHO_N "(cached) $ECHO_C" >&6
26174else
26175  ac_check_lib_save_LIBS=$LIBS
26176LIBS="-lz  $LIBS"
26177cat >conftest.$ac_ext <<_ACEOF
26178/* confdefs.h.  */
26179_ACEOF
26180cat confdefs.h >>conftest.$ac_ext
26181cat >>conftest.$ac_ext <<_ACEOF
26182/* end confdefs.h.  */
26183
26184/* Override any gcc2 internal prototype to avoid an error.  */
26185#ifdef __cplusplus
26186extern "C"
26187#endif
26188/* We use char because int might match the return type of a gcc2
26189   builtin and then its argument prototype would still apply.  */
26190char deflate ();
26191int
26192main ()
26193{
26194deflate ();
26195  ;
26196  return 0;
26197}
26198_ACEOF
26199rm -f conftest.$ac_objext conftest$ac_exeext
26200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26201  (eval $ac_link) 2>conftest.er1
26202  ac_status=$?
26203  grep -v '^ *+' conftest.er1 >conftest.err
26204  rm -f conftest.er1
26205  cat conftest.err >&5
26206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207  (exit $ac_status); } &&
26208	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26210  (eval $ac_try) 2>&5
26211  ac_status=$?
26212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213  (exit $ac_status); }; } &&
26214	 { ac_try='test -s conftest$ac_exeext'
26215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26216  (eval $ac_try) 2>&5
26217  ac_status=$?
26218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219  (exit $ac_status); }; }; then
26220  ac_cv_lib_z_deflate=yes
26221else
26222  echo "$as_me: failed program was:" >&5
26223sed 's/^/| /' conftest.$ac_ext >&5
26224
26225ac_cv_lib_z_deflate=no
26226fi
26227rm -f conftest.err conftest.$ac_objext \
26228      conftest$ac_exeext conftest.$ac_ext
26229LIBS=$ac_check_lib_save_LIBS
26230fi
26231echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26232echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
26233if test $ac_cv_lib_z_deflate = yes; then
26234  ZLIB_LINK=" -lz"
26235fi
26236
26237        fi
26238
26239        if test "x$ZLIB_LINK" = "x" ; then
26240            if test "$wxUSE_ZLIB" = "sys" ; then
26241                { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26242echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26243   { (exit 1); exit 1; }; }
26244            else
26245                { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26246echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26247                wxUSE_ZLIB=builtin
26248            fi
26249        else
26250                        wxUSE_ZLIB=sys
26251        fi
26252    fi
26253fi
26254
26255
26256PNG_LINK=
26257if test "$wxUSE_LIBPNG" != "no" ; then
26258    cat >>confdefs.h <<\_ACEOF
26259#define wxUSE_LIBPNG 1
26260_ACEOF
26261
26262
26263    if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26264        { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26265echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26266        wxUSE_LIBPNG=sys
26267    fi
26268
26269                if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26270        { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26271echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26272        wxUSE_LIBPNG=builtin
26273    fi
26274
26275    if test "$wxUSE_MGL" != 1 ; then
26276                if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26277                                    echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26278echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
26279if test "${ac_cv_header_png_h+set}" = set; then
26280  echo $ECHO_N "(cached) $ECHO_C" >&6
26281else
26282  if test "$cross_compiling" = yes; then
26283                      unset ac_cv_header_png_h
26284
26285else
26286  cat >conftest.$ac_ext <<_ACEOF
26287/* confdefs.h.  */
26288_ACEOF
26289cat confdefs.h >>conftest.$ac_ext
26290cat >>conftest.$ac_ext <<_ACEOF
26291/* end confdefs.h.  */
26292
26293                        #include <png.h>
26294                        #include <stdio.h>
26295
26296                        int main()
26297                        {
26298                            FILE *f=fopen("conftestval", "w");
26299                            if (!f) exit(1);
26300                            fprintf(f, "%s",
26301                                     PNG_LIBPNG_VER > 90 ? "yes" : "no");
26302                            exit(0);
26303                        }
26304
26305_ACEOF
26306rm -f conftest$ac_exeext
26307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26308  (eval $ac_link) 2>&5
26309  ac_status=$?
26310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313  (eval $ac_try) 2>&5
26314  ac_status=$?
26315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316  (exit $ac_status); }; }; then
26317  ac_cv_header_png_h=`cat conftestval`
26318else
26319  echo "$as_me: program exited with status $ac_status" >&5
26320echo "$as_me: failed program was:" >&5
26321sed 's/^/| /' conftest.$ac_ext >&5
26322
26323( exit $ac_status )
26324ac_cv_header_png_h=no
26325fi
26326rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26327fi
26328
26329fi
26330echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26331echo "${ECHO_T}$ac_cv_header_png_h" >&6
26332            echo "$as_me:$LINENO: checking for png.h" >&5
26333echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26334if test "${ac_cv_header_png_h+set}" = set; then
26335  echo $ECHO_N "(cached) $ECHO_C" >&6
26336else
26337  cat >conftest.$ac_ext <<_ACEOF
26338/* confdefs.h.  */
26339_ACEOF
26340cat confdefs.h >>conftest.$ac_ext
26341cat >>conftest.$ac_ext <<_ACEOF
26342/* end confdefs.h.  */
26343
26344
26345#include <png.h>
26346_ACEOF
26347rm -f conftest.$ac_objext
26348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26349  (eval $ac_compile) 2>conftest.er1
26350  ac_status=$?
26351  grep -v '^ *+' conftest.er1 >conftest.err
26352  rm -f conftest.er1
26353  cat conftest.err >&5
26354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355  (exit $ac_status); } &&
26356	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358  (eval $ac_try) 2>&5
26359  ac_status=$?
26360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361  (exit $ac_status); }; } &&
26362	 { ac_try='test -s conftest.$ac_objext'
26363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364  (eval $ac_try) 2>&5
26365  ac_status=$?
26366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367  (exit $ac_status); }; }; then
26368  ac_cv_header_png_h=yes
26369else
26370  echo "$as_me: failed program was:" >&5
26371sed 's/^/| /' conftest.$ac_ext >&5
26372
26373ac_cv_header_png_h=no
26374fi
26375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26376fi
26377echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26378echo "${ECHO_T}$ac_cv_header_png_h" >&6
26379
26380
26381
26382            if test "$ac_cv_header_png_h" = "yes"; then
26383                echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
26384echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6
26385if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
26386  echo $ECHO_N "(cached) $ECHO_C" >&6
26387else
26388  ac_check_lib_save_LIBS=$LIBS
26389LIBS="-lpng -lz -lm $LIBS"
26390cat >conftest.$ac_ext <<_ACEOF
26391/* confdefs.h.  */
26392_ACEOF
26393cat confdefs.h >>conftest.$ac_ext
26394cat >>conftest.$ac_ext <<_ACEOF
26395/* end confdefs.h.  */
26396
26397/* Override any gcc2 internal prototype to avoid an error.  */
26398#ifdef __cplusplus
26399extern "C"
26400#endif
26401/* We use char because int might match the return type of a gcc2
26402   builtin and then its argument prototype would still apply.  */
26403char png_sig_cmp ();
26404int
26405main ()
26406{
26407png_sig_cmp ();
26408  ;
26409  return 0;
26410}
26411_ACEOF
26412rm -f conftest.$ac_objext conftest$ac_exeext
26413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26414  (eval $ac_link) 2>conftest.er1
26415  ac_status=$?
26416  grep -v '^ *+' conftest.er1 >conftest.err
26417  rm -f conftest.er1
26418  cat conftest.err >&5
26419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420  (exit $ac_status); } &&
26421	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26423  (eval $ac_try) 2>&5
26424  ac_status=$?
26425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426  (exit $ac_status); }; } &&
26427	 { ac_try='test -s conftest$ac_exeext'
26428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429  (eval $ac_try) 2>&5
26430  ac_status=$?
26431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432  (exit $ac_status); }; }; then
26433  ac_cv_lib_png_png_sig_cmp=yes
26434else
26435  echo "$as_me: failed program was:" >&5
26436sed 's/^/| /' conftest.$ac_ext >&5
26437
26438ac_cv_lib_png_png_sig_cmp=no
26439fi
26440rm -f conftest.err conftest.$ac_objext \
26441      conftest$ac_exeext conftest.$ac_ext
26442LIBS=$ac_check_lib_save_LIBS
26443fi
26444echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
26445echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6
26446if test $ac_cv_lib_png_png_sig_cmp = yes; then
26447  PNG_LINK=" -lpng -lz"
26448fi
26449
26450            fi
26451
26452            if test "x$PNG_LINK" = "x" ; then
26453                if test "$wxUSE_LIBPNG" = "sys" ; then
26454                    { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26455echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26456   { (exit 1); exit 1; }; }
26457                else
26458                    { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26459echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26460                    wxUSE_LIBPNG=builtin
26461                fi
26462            else
26463                                wxUSE_LIBPNG=sys
26464            fi
26465        fi
26466    fi
26467
26468    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26469fi
26470
26471
26472JPEG_LINK=
26473if test "$wxUSE_LIBJPEG" != "no" ; then
26474    cat >>confdefs.h <<\_ACEOF
26475#define wxUSE_LIBJPEG 1
26476_ACEOF
26477
26478
26479    if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26480        { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26481echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26482        wxUSE_LIBJPEG=sys
26483    fi
26484
26485    if test "$wxUSE_MGL" != 1 ; then
26486                if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26487                                                echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26488echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26489            if test "${ac_cv_header_jpeglib_h+set}" = set; then
26490  echo $ECHO_N "(cached) $ECHO_C" >&6
26491else
26492  cat >conftest.$ac_ext <<_ACEOF
26493/* confdefs.h.  */
26494_ACEOF
26495cat confdefs.h >>conftest.$ac_ext
26496cat >>conftest.$ac_ext <<_ACEOF
26497/* end confdefs.h.  */
26498
26499                        #undef HAVE_STDLIB_H
26500                        #include <stdio.h>
26501                        #include <jpeglib.h>
26502
26503int
26504main ()
26505{
26506
26507
26508  ;
26509  return 0;
26510}
26511_ACEOF
26512rm -f conftest.$ac_objext
26513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26514  (eval $ac_compile) 2>conftest.er1
26515  ac_status=$?
26516  grep -v '^ *+' conftest.er1 >conftest.err
26517  rm -f conftest.er1
26518  cat conftest.err >&5
26519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520  (exit $ac_status); } &&
26521	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523  (eval $ac_try) 2>&5
26524  ac_status=$?
26525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526  (exit $ac_status); }; } &&
26527	 { ac_try='test -s conftest.$ac_objext'
26528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529  (eval $ac_try) 2>&5
26530  ac_status=$?
26531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532  (exit $ac_status); }; }; then
26533  ac_cv_header_jpeglib_h=yes
26534else
26535  echo "$as_me: failed program was:" >&5
26536sed 's/^/| /' conftest.$ac_ext >&5
26537
26538ac_cv_header_jpeglib_h=no
26539
26540fi
26541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26542
26543fi
26544
26545            echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26546echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26547
26548            if test "$ac_cv_header_jpeglib_h" = "yes"; then
26549                echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26550echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26551if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26552  echo $ECHO_N "(cached) $ECHO_C" >&6
26553else
26554  ac_check_lib_save_LIBS=$LIBS
26555LIBS="-ljpeg  $LIBS"
26556cat >conftest.$ac_ext <<_ACEOF
26557/* confdefs.h.  */
26558_ACEOF
26559cat confdefs.h >>conftest.$ac_ext
26560cat >>conftest.$ac_ext <<_ACEOF
26561/* end confdefs.h.  */
26562
26563/* Override any gcc2 internal prototype to avoid an error.  */
26564#ifdef __cplusplus
26565extern "C"
26566#endif
26567/* We use char because int might match the return type of a gcc2
26568   builtin and then its argument prototype would still apply.  */
26569char jpeg_read_header ();
26570int
26571main ()
26572{
26573jpeg_read_header ();
26574  ;
26575  return 0;
26576}
26577_ACEOF
26578rm -f conftest.$ac_objext conftest$ac_exeext
26579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26580  (eval $ac_link) 2>conftest.er1
26581  ac_status=$?
26582  grep -v '^ *+' conftest.er1 >conftest.err
26583  rm -f conftest.er1
26584  cat conftest.err >&5
26585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586  (exit $ac_status); } &&
26587	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26589  (eval $ac_try) 2>&5
26590  ac_status=$?
26591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592  (exit $ac_status); }; } &&
26593	 { ac_try='test -s conftest$ac_exeext'
26594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26595  (eval $ac_try) 2>&5
26596  ac_status=$?
26597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598  (exit $ac_status); }; }; then
26599  ac_cv_lib_jpeg_jpeg_read_header=yes
26600else
26601  echo "$as_me: failed program was:" >&5
26602sed 's/^/| /' conftest.$ac_ext >&5
26603
26604ac_cv_lib_jpeg_jpeg_read_header=no
26605fi
26606rm -f conftest.err conftest.$ac_objext \
26607      conftest$ac_exeext conftest.$ac_ext
26608LIBS=$ac_check_lib_save_LIBS
26609fi
26610echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26611echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26612if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26613  JPEG_LINK=" -ljpeg"
26614fi
26615
26616            fi
26617
26618            if test "x$JPEG_LINK" = "x" ; then
26619                if test "$wxUSE_LIBJPEG" = "sys" ; then
26620                    { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26621echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26622   { (exit 1); exit 1; }; }
26623                else
26624                    { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26625echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26626                    wxUSE_LIBJPEG=builtin
26627                fi
26628            else
26629                                wxUSE_LIBJPEG=sys
26630
26631                if test "$wxUSE_MSW" = 1; then
26632                                                                                                    echo "$as_me:$LINENO: checking for boolean" >&5
26633echo $ECHO_N "checking for boolean... $ECHO_C" >&6
26634if test "${ac_cv_type_boolean+set}" = set; then
26635  echo $ECHO_N "(cached) $ECHO_C" >&6
26636else
26637  cat >conftest.$ac_ext <<_ACEOF
26638/* confdefs.h.  */
26639_ACEOF
26640cat confdefs.h >>conftest.$ac_ext
26641cat >>conftest.$ac_ext <<_ACEOF
26642/* end confdefs.h.  */
26643#include <windows.h>
26644
26645int
26646main ()
26647{
26648if ((boolean *) 0)
26649  return 0;
26650if (sizeof (boolean))
26651  return 0;
26652  ;
26653  return 0;
26654}
26655_ACEOF
26656rm -f conftest.$ac_objext
26657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26658  (eval $ac_compile) 2>conftest.er1
26659  ac_status=$?
26660  grep -v '^ *+' conftest.er1 >conftest.err
26661  rm -f conftest.er1
26662  cat conftest.err >&5
26663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664  (exit $ac_status); } &&
26665	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667  (eval $ac_try) 2>&5
26668  ac_status=$?
26669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670  (exit $ac_status); }; } &&
26671	 { ac_try='test -s conftest.$ac_objext'
26672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26673  (eval $ac_try) 2>&5
26674  ac_status=$?
26675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676  (exit $ac_status); }; }; then
26677  ac_cv_type_boolean=yes
26678else
26679  echo "$as_me: failed program was:" >&5
26680sed 's/^/| /' conftest.$ac_ext >&5
26681
26682ac_cv_type_boolean=no
26683fi
26684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26685fi
26686echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26687echo "${ECHO_T}$ac_cv_type_boolean" >&6
26688if test $ac_cv_type_boolean = yes; then
26689
26690cat >>confdefs.h <<_ACEOF
26691#define HAVE_BOOLEAN 1
26692_ACEOF
26693
26694
26695                            echo "$as_me:$LINENO: checking for boolean" >&5
26696echo $ECHO_N "checking for boolean... $ECHO_C" >&6
26697if test "${ac_cv_type_boolean+set}" = set; then
26698  echo $ECHO_N "(cached) $ECHO_C" >&6
26699else
26700  cat >conftest.$ac_ext <<_ACEOF
26701/* confdefs.h.  */
26702_ACEOF
26703cat confdefs.h >>conftest.$ac_ext
26704cat >>conftest.$ac_ext <<_ACEOF
26705/* end confdefs.h.  */
26706
26707                                    #undef HAVE_BOOLEAN
26708                                    #include <stdio.h>
26709                                    #include <jpeglib.h>
26710
26711
26712int
26713main ()
26714{
26715if ((boolean *) 0)
26716  return 0;
26717if (sizeof (boolean))
26718  return 0;
26719  ;
26720  return 0;
26721}
26722_ACEOF
26723rm -f conftest.$ac_objext
26724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26725  (eval $ac_compile) 2>conftest.er1
26726  ac_status=$?
26727  grep -v '^ *+' conftest.er1 >conftest.err
26728  rm -f conftest.er1
26729  cat conftest.err >&5
26730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731  (exit $ac_status); } &&
26732	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26734  (eval $ac_try) 2>&5
26735  ac_status=$?
26736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737  (exit $ac_status); }; } &&
26738	 { ac_try='test -s conftest.$ac_objext'
26739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740  (eval $ac_try) 2>&5
26741  ac_status=$?
26742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743  (exit $ac_status); }; }; then
26744  ac_cv_type_boolean=yes
26745else
26746  echo "$as_me: failed program was:" >&5
26747sed 's/^/| /' conftest.$ac_ext >&5
26748
26749ac_cv_type_boolean=no
26750fi
26751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26752fi
26753echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26754echo "${ECHO_T}$ac_cv_type_boolean" >&6
26755
26756echo "$as_me:$LINENO: checking size of boolean" >&5
26757echo $ECHO_N "checking size of boolean... $ECHO_C" >&6
26758if test "${ac_cv_sizeof_boolean+set}" = set; then
26759  echo $ECHO_N "(cached) $ECHO_C" >&6
26760else
26761  if test "$ac_cv_type_boolean" = yes; then
26762  # The cast to unsigned long works around a bug in the HP C Compiler
26763  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26764  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26765  # This bug is HP SR number 8606223364.
26766  if test "$cross_compiling" = yes; then
26767  # Depending upon the size, compute the lo and hi bounds.
26768cat >conftest.$ac_ext <<_ACEOF
26769/* confdefs.h.  */
26770_ACEOF
26771cat confdefs.h >>conftest.$ac_ext
26772cat >>conftest.$ac_ext <<_ACEOF
26773/* end confdefs.h.  */
26774
26775                                    #undef HAVE_BOOLEAN
26776                                    #include <stdio.h>
26777                                    #include <jpeglib.h>
26778
26779
26780int
26781main ()
26782{
26783static int test_array [1 - 2 * !(((long) (sizeof (boolean))) >= 0)];
26784test_array [0] = 0
26785
26786  ;
26787  return 0;
26788}
26789_ACEOF
26790rm -f conftest.$ac_objext
26791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26792  (eval $ac_compile) 2>conftest.er1
26793  ac_status=$?
26794  grep -v '^ *+' conftest.er1 >conftest.err
26795  rm -f conftest.er1
26796  cat conftest.err >&5
26797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798  (exit $ac_status); } &&
26799	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801  (eval $ac_try) 2>&5
26802  ac_status=$?
26803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804  (exit $ac_status); }; } &&
26805	 { ac_try='test -s conftest.$ac_objext'
26806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807  (eval $ac_try) 2>&5
26808  ac_status=$?
26809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810  (exit $ac_status); }; }; then
26811  ac_lo=0 ac_mid=0
26812  while :; do
26813    cat >conftest.$ac_ext <<_ACEOF
26814/* confdefs.h.  */
26815_ACEOF
26816cat confdefs.h >>conftest.$ac_ext
26817cat >>conftest.$ac_ext <<_ACEOF
26818/* end confdefs.h.  */
26819
26820                                    #undef HAVE_BOOLEAN
26821                                    #include <stdio.h>
26822                                    #include <jpeglib.h>
26823
26824
26825int
26826main ()
26827{
26828static int test_array [1 - 2 * !(((long) (sizeof (boolean))) <= $ac_mid)];
26829test_array [0] = 0
26830
26831  ;
26832  return 0;
26833}
26834_ACEOF
26835rm -f conftest.$ac_objext
26836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26837  (eval $ac_compile) 2>conftest.er1
26838  ac_status=$?
26839  grep -v '^ *+' conftest.er1 >conftest.err
26840  rm -f conftest.er1
26841  cat conftest.err >&5
26842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843  (exit $ac_status); } &&
26844	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26846  (eval $ac_try) 2>&5
26847  ac_status=$?
26848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849  (exit $ac_status); }; } &&
26850	 { ac_try='test -s conftest.$ac_objext'
26851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852  (eval $ac_try) 2>&5
26853  ac_status=$?
26854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855  (exit $ac_status); }; }; then
26856  ac_hi=$ac_mid; break
26857else
26858  echo "$as_me: failed program was:" >&5
26859sed 's/^/| /' conftest.$ac_ext >&5
26860
26861ac_lo=`expr $ac_mid + 1`
26862		    if test $ac_lo -le $ac_mid; then
26863		      ac_lo= ac_hi=
26864		      break
26865		    fi
26866		    ac_mid=`expr 2 '*' $ac_mid + 1`
26867fi
26868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26869  done
26870else
26871  echo "$as_me: failed program was:" >&5
26872sed 's/^/| /' conftest.$ac_ext >&5
26873
26874cat >conftest.$ac_ext <<_ACEOF
26875/* confdefs.h.  */
26876_ACEOF
26877cat confdefs.h >>conftest.$ac_ext
26878cat >>conftest.$ac_ext <<_ACEOF
26879/* end confdefs.h.  */
26880
26881                                    #undef HAVE_BOOLEAN
26882                                    #include <stdio.h>
26883                                    #include <jpeglib.h>
26884
26885
26886int
26887main ()
26888{
26889static int test_array [1 - 2 * !(((long) (sizeof (boolean))) < 0)];
26890test_array [0] = 0
26891
26892  ;
26893  return 0;
26894}
26895_ACEOF
26896rm -f conftest.$ac_objext
26897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26898  (eval $ac_compile) 2>conftest.er1
26899  ac_status=$?
26900  grep -v '^ *+' conftest.er1 >conftest.err
26901  rm -f conftest.er1
26902  cat conftest.err >&5
26903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904  (exit $ac_status); } &&
26905	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26907  (eval $ac_try) 2>&5
26908  ac_status=$?
26909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910  (exit $ac_status); }; } &&
26911	 { ac_try='test -s conftest.$ac_objext'
26912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913  (eval $ac_try) 2>&5
26914  ac_status=$?
26915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916  (exit $ac_status); }; }; then
26917  ac_hi=-1 ac_mid=-1
26918  while :; do
26919    cat >conftest.$ac_ext <<_ACEOF
26920/* confdefs.h.  */
26921_ACEOF
26922cat confdefs.h >>conftest.$ac_ext
26923cat >>conftest.$ac_ext <<_ACEOF
26924/* end confdefs.h.  */
26925
26926                                    #undef HAVE_BOOLEAN
26927                                    #include <stdio.h>
26928                                    #include <jpeglib.h>
26929
26930
26931int
26932main ()
26933{
26934static int test_array [1 - 2 * !(((long) (sizeof (boolean))) >= $ac_mid)];
26935test_array [0] = 0
26936
26937  ;
26938  return 0;
26939}
26940_ACEOF
26941rm -f conftest.$ac_objext
26942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26943  (eval $ac_compile) 2>conftest.er1
26944  ac_status=$?
26945  grep -v '^ *+' conftest.er1 >conftest.err
26946  rm -f conftest.er1
26947  cat conftest.err >&5
26948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949  (exit $ac_status); } &&
26950	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26952  (eval $ac_try) 2>&5
26953  ac_status=$?
26954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955  (exit $ac_status); }; } &&
26956	 { ac_try='test -s conftest.$ac_objext'
26957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26958  (eval $ac_try) 2>&5
26959  ac_status=$?
26960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961  (exit $ac_status); }; }; then
26962  ac_lo=$ac_mid; break
26963else
26964  echo "$as_me: failed program was:" >&5
26965sed 's/^/| /' conftest.$ac_ext >&5
26966
26967ac_hi=`expr '(' $ac_mid ')' - 1`
26968		       if test $ac_mid -le $ac_hi; then
26969			 ac_lo= ac_hi=
26970			 break
26971		       fi
26972		       ac_mid=`expr 2 '*' $ac_mid`
26973fi
26974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26975  done
26976else
26977  echo "$as_me: failed program was:" >&5
26978sed 's/^/| /' conftest.$ac_ext >&5
26979
26980ac_lo= ac_hi=
26981fi
26982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26983fi
26984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26985# Binary search between lo and hi bounds.
26986while test "x$ac_lo" != "x$ac_hi"; do
26987  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26988  cat >conftest.$ac_ext <<_ACEOF
26989/* confdefs.h.  */
26990_ACEOF
26991cat confdefs.h >>conftest.$ac_ext
26992cat >>conftest.$ac_ext <<_ACEOF
26993/* end confdefs.h.  */
26994
26995                                    #undef HAVE_BOOLEAN
26996                                    #include <stdio.h>
26997                                    #include <jpeglib.h>
26998
26999
27000int
27001main ()
27002{
27003static int test_array [1 - 2 * !(((long) (sizeof (boolean))) <= $ac_mid)];
27004test_array [0] = 0
27005
27006  ;
27007  return 0;
27008}
27009_ACEOF
27010rm -f conftest.$ac_objext
27011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27012  (eval $ac_compile) 2>conftest.er1
27013  ac_status=$?
27014  grep -v '^ *+' conftest.er1 >conftest.err
27015  rm -f conftest.er1
27016  cat conftest.err >&5
27017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018  (exit $ac_status); } &&
27019	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021  (eval $ac_try) 2>&5
27022  ac_status=$?
27023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024  (exit $ac_status); }; } &&
27025	 { ac_try='test -s conftest.$ac_objext'
27026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027  (eval $ac_try) 2>&5
27028  ac_status=$?
27029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030  (exit $ac_status); }; }; then
27031  ac_hi=$ac_mid
27032else
27033  echo "$as_me: failed program was:" >&5
27034sed 's/^/| /' conftest.$ac_ext >&5
27035
27036ac_lo=`expr '(' $ac_mid ')' + 1`
27037fi
27038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27039done
27040case $ac_lo in
27041?*) ac_cv_sizeof_boolean=$ac_lo;;
27042'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean), 77
27043See \`config.log' for more details." >&5
27044echo "$as_me: error: cannot compute sizeof (boolean), 77
27045See \`config.log' for more details." >&2;}
27046   { (exit 1); exit 1; }; } ;;
27047esac
27048else
27049  if test "$cross_compiling" = yes; then
27050  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27051echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27052   { (exit 1); exit 1; }; }
27053else
27054  cat >conftest.$ac_ext <<_ACEOF
27055/* confdefs.h.  */
27056_ACEOF
27057cat confdefs.h >>conftest.$ac_ext
27058cat >>conftest.$ac_ext <<_ACEOF
27059/* end confdefs.h.  */
27060
27061                                    #undef HAVE_BOOLEAN
27062                                    #include <stdio.h>
27063                                    #include <jpeglib.h>
27064
27065
27066long longval () { return (long) (sizeof (boolean)); }
27067unsigned long ulongval () { return (long) (sizeof (boolean)); }
27068#include <stdio.h>
27069#include <stdlib.h>
27070int
27071main ()
27072{
27073
27074  FILE *f = fopen ("conftest.val", "w");
27075  if (! f)
27076    exit (1);
27077  if (((long) (sizeof (boolean))) < 0)
27078    {
27079      long i = longval ();
27080      if (i != ((long) (sizeof (boolean))))
27081	exit (1);
27082      fprintf (f, "%ld\n", i);
27083    }
27084  else
27085    {
27086      unsigned long i = ulongval ();
27087      if (i != ((long) (sizeof (boolean))))
27088	exit (1);
27089      fprintf (f, "%lu\n", i);
27090    }
27091  exit (ferror (f) || fclose (f) != 0);
27092
27093  ;
27094  return 0;
27095}
27096_ACEOF
27097rm -f conftest$ac_exeext
27098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27099  (eval $ac_link) 2>&5
27100  ac_status=$?
27101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104  (eval $ac_try) 2>&5
27105  ac_status=$?
27106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107  (exit $ac_status); }; }; then
27108  ac_cv_sizeof_boolean=`cat conftest.val`
27109else
27110  echo "$as_me: program exited with status $ac_status" >&5
27111echo "$as_me: failed program was:" >&5
27112sed 's/^/| /' conftest.$ac_ext >&5
27113
27114( exit $ac_status )
27115{ { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean), 77
27116See \`config.log' for more details." >&5
27117echo "$as_me: error: cannot compute sizeof (boolean), 77
27118See \`config.log' for more details." >&2;}
27119   { (exit 1); exit 1; }; }
27120fi
27121rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27122fi
27123fi
27124rm -f conftest.val
27125else
27126  ac_cv_sizeof_boolean=0
27127fi
27128fi
27129echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27130echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6
27131cat >>confdefs.h <<_ACEOF
27132#define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27133_ACEOF
27134
27135
27136                            cat >>confdefs.h <<_ACEOF
27137#define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27138_ACEOF
27139
27140
27141fi
27142
27143                fi
27144            fi
27145        fi
27146    fi
27147fi
27148
27149
27150TIFF_LINK=
27151TIFF_PREREQ_LINKS=-lm
27152if test "$wxUSE_LIBTIFF" != "no" ; then
27153    cat >>confdefs.h <<\_ACEOF
27154#define wxUSE_LIBTIFF 1
27155_ACEOF
27156
27157
27158    if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27159                        if test "$wxUSE_LIBJPEG" = "sys"; then
27160            TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27161        fi
27162        if test "$wxUSE_ZLIB" = "sys"; then
27163            TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27164        fi
27165        echo "$as_me:$LINENO: checking for tiffio.h" >&5
27166echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
27167if test "${ac_cv_header_tiffio_h+set}" = set; then
27168  echo $ECHO_N "(cached) $ECHO_C" >&6
27169else
27170  cat >conftest.$ac_ext <<_ACEOF
27171/* confdefs.h.  */
27172_ACEOF
27173cat confdefs.h >>conftest.$ac_ext
27174cat >>conftest.$ac_ext <<_ACEOF
27175/* end confdefs.h.  */
27176
27177
27178
27179#include <tiffio.h>
27180_ACEOF
27181rm -f conftest.$ac_objext
27182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27183  (eval $ac_compile) 2>conftest.er1
27184  ac_status=$?
27185  grep -v '^ *+' conftest.er1 >conftest.err
27186  rm -f conftest.er1
27187  cat conftest.err >&5
27188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189  (exit $ac_status); } &&
27190	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192  (eval $ac_try) 2>&5
27193  ac_status=$?
27194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195  (exit $ac_status); }; } &&
27196	 { ac_try='test -s conftest.$ac_objext'
27197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198  (eval $ac_try) 2>&5
27199  ac_status=$?
27200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201  (exit $ac_status); }; }; then
27202  ac_cv_header_tiffio_h=yes
27203else
27204  echo "$as_me: failed program was:" >&5
27205sed 's/^/| /' conftest.$ac_ext >&5
27206
27207ac_cv_header_tiffio_h=no
27208fi
27209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27210fi
27211echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27212echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
27213if test $ac_cv_header_tiffio_h = yes; then
27214
27215                            echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27216echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
27217if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27218  echo $ECHO_N "(cached) $ECHO_C" >&6
27219else
27220  ac_check_lib_save_LIBS=$LIBS
27221LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27222cat >conftest.$ac_ext <<_ACEOF
27223/* confdefs.h.  */
27224_ACEOF
27225cat confdefs.h >>conftest.$ac_ext
27226cat >>conftest.$ac_ext <<_ACEOF
27227/* end confdefs.h.  */
27228
27229/* Override any gcc2 internal prototype to avoid an error.  */
27230#ifdef __cplusplus
27231extern "C"
27232#endif
27233/* We use char because int might match the return type of a gcc2
27234   builtin and then its argument prototype would still apply.  */
27235char TIFFError ();
27236int
27237main ()
27238{
27239TIFFError ();
27240  ;
27241  return 0;
27242}
27243_ACEOF
27244rm -f conftest.$ac_objext conftest$ac_exeext
27245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27246  (eval $ac_link) 2>conftest.er1
27247  ac_status=$?
27248  grep -v '^ *+' conftest.er1 >conftest.err
27249  rm -f conftest.er1
27250  cat conftest.err >&5
27251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252  (exit $ac_status); } &&
27253	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255  (eval $ac_try) 2>&5
27256  ac_status=$?
27257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258  (exit $ac_status); }; } &&
27259	 { ac_try='test -s conftest$ac_exeext'
27260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27261  (eval $ac_try) 2>&5
27262  ac_status=$?
27263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264  (exit $ac_status); }; }; then
27265  ac_cv_lib_tiff_TIFFError=yes
27266else
27267  echo "$as_me: failed program was:" >&5
27268sed 's/^/| /' conftest.$ac_ext >&5
27269
27270ac_cv_lib_tiff_TIFFError=no
27271fi
27272rm -f conftest.err conftest.$ac_objext \
27273      conftest$ac_exeext conftest.$ac_ext
27274LIBS=$ac_check_lib_save_LIBS
27275fi
27276echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27277echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
27278if test $ac_cv_lib_tiff_TIFFError = yes; then
27279  TIFF_LINK=" -ltiff"
27280fi
27281
27282
27283fi
27284
27285
27286
27287        if test "x$TIFF_LINK" = "x" ; then
27288            if test "$wxUSE_LIBTIFF" = "sys" ; then
27289                { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27290echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27291   { (exit 1); exit 1; }; }
27292            else
27293                { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27294echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27295                wxUSE_LIBTIFF=builtin
27296            fi
27297        else
27298                        wxUSE_LIBTIFF=sys
27299        fi
27300    fi
27301fi
27302
27303
27304if test "$wxUSE_WCHAR_T" != "yes"; then
27305    if test "$wxUSE_EXPAT" != "no"; then
27306        { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27307echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27308        wxUSE_EXPAT=no
27309    fi
27310    if test "$wxUSE_XML" != "no"; then
27311        { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27312echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27313        wxUSE_XML=no
27314    fi
27315fi
27316
27317if test "$wxUSE_EXPAT" != "no"; then
27318    wxUSE_XML=yes
27319    cat >>confdefs.h <<\_ACEOF
27320#define wxUSE_EXPAT 1
27321_ACEOF
27322
27323    cat >>confdefs.h <<\_ACEOF
27324#define wxUSE_XML 1
27325_ACEOF
27326
27327
27328    if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27329        echo "$as_me:$LINENO: checking for expat.h" >&5
27330echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
27331if test "${ac_cv_header_expat_h+set}" = set; then
27332  echo $ECHO_N "(cached) $ECHO_C" >&6
27333else
27334  cat >conftest.$ac_ext <<_ACEOF
27335/* confdefs.h.  */
27336_ACEOF
27337cat confdefs.h >>conftest.$ac_ext
27338cat >>conftest.$ac_ext <<_ACEOF
27339/* end confdefs.h.  */
27340
27341
27342#include <expat.h>
27343_ACEOF
27344rm -f conftest.$ac_objext
27345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27346  (eval $ac_compile) 2>conftest.er1
27347  ac_status=$?
27348  grep -v '^ *+' conftest.er1 >conftest.err
27349  rm -f conftest.er1
27350  cat conftest.err >&5
27351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352  (exit $ac_status); } &&
27353	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355  (eval $ac_try) 2>&5
27356  ac_status=$?
27357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358  (exit $ac_status); }; } &&
27359	 { ac_try='test -s conftest.$ac_objext'
27360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361  (eval $ac_try) 2>&5
27362  ac_status=$?
27363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364  (exit $ac_status); }; }; then
27365  ac_cv_header_expat_h=yes
27366else
27367  echo "$as_me: failed program was:" >&5
27368sed 's/^/| /' conftest.$ac_ext >&5
27369
27370ac_cv_header_expat_h=no
27371fi
27372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27373fi
27374echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27375echo "${ECHO_T}$ac_cv_header_expat_h" >&6
27376if test $ac_cv_header_expat_h = yes; then
27377  found_expat_h=1
27378fi
27379
27380
27381        if test "x$found_expat_h" = "x1"; then
27382                        echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27383echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
27384if test "${wx_cv_expat_is_not_broken+set}" = set; then
27385  echo $ECHO_N "(cached) $ECHO_C" >&6
27386else
27387
27388                ac_ext=cc
27389ac_cpp='$CXXCPP $CPPFLAGS'
27390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27393
27394                cat >conftest.$ac_ext <<_ACEOF
27395/* confdefs.h.  */
27396_ACEOF
27397cat confdefs.h >>conftest.$ac_ext
27398cat >>conftest.$ac_ext <<_ACEOF
27399/* end confdefs.h.  */
27400#include <expat.h>
27401int
27402main ()
27403{
27404
27405  ;
27406  return 0;
27407}
27408_ACEOF
27409rm -f conftest.$ac_objext
27410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27411  (eval $ac_compile) 2>conftest.er1
27412  ac_status=$?
27413  grep -v '^ *+' conftest.er1 >conftest.err
27414  rm -f conftest.er1
27415  cat conftest.err >&5
27416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417  (exit $ac_status); } &&
27418	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
27419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27420  (eval $ac_try) 2>&5
27421  ac_status=$?
27422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423  (exit $ac_status); }; } &&
27424	 { ac_try='test -s conftest.$ac_objext'
27425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27426  (eval $ac_try) 2>&5
27427  ac_status=$?
27428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429  (exit $ac_status); }; }; then
27430  wx_cv_expat_is_not_broken=yes
27431else
27432  echo "$as_me: failed program was:" >&5
27433sed 's/^/| /' conftest.$ac_ext >&5
27434
27435wx_cv_expat_is_not_broken=no
27436
27437fi
27438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27439                ac_ext=c
27440ac_cpp='$CPP $CPPFLAGS'
27441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27443ac_compiler_gnu=$ac_cv_c_compiler_gnu
27444
27445
27446
27447fi
27448echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27449echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
27450            if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27451                echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27452echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
27453if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27454  echo $ECHO_N "(cached) $ECHO_C" >&6
27455else
27456  ac_check_lib_save_LIBS=$LIBS
27457LIBS="-lexpat  $LIBS"
27458cat >conftest.$ac_ext <<_ACEOF
27459/* confdefs.h.  */
27460_ACEOF
27461cat confdefs.h >>conftest.$ac_ext
27462cat >>conftest.$ac_ext <<_ACEOF
27463/* end confdefs.h.  */
27464
27465/* Override any gcc2 internal prototype to avoid an error.  */
27466#ifdef __cplusplus
27467extern "C"
27468#endif
27469/* We use char because int might match the return type of a gcc2
27470   builtin and then its argument prototype would still apply.  */
27471char XML_ParserCreate ();
27472int
27473main ()
27474{
27475XML_ParserCreate ();
27476  ;
27477  return 0;
27478}
27479_ACEOF
27480rm -f conftest.$ac_objext conftest$ac_exeext
27481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27482  (eval $ac_link) 2>conftest.er1
27483  ac_status=$?
27484  grep -v '^ *+' conftest.er1 >conftest.err
27485  rm -f conftest.er1
27486  cat conftest.err >&5
27487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488  (exit $ac_status); } &&
27489	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27491  (eval $ac_try) 2>&5
27492  ac_status=$?
27493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494  (exit $ac_status); }; } &&
27495	 { ac_try='test -s conftest$ac_exeext'
27496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27497  (eval $ac_try) 2>&5
27498  ac_status=$?
27499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500  (exit $ac_status); }; }; then
27501  ac_cv_lib_expat_XML_ParserCreate=yes
27502else
27503  echo "$as_me: failed program was:" >&5
27504sed 's/^/| /' conftest.$ac_ext >&5
27505
27506ac_cv_lib_expat_XML_ParserCreate=no
27507fi
27508rm -f conftest.err conftest.$ac_objext \
27509      conftest$ac_exeext conftest.$ac_ext
27510LIBS=$ac_check_lib_save_LIBS
27511fi
27512echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27513echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
27514if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27515  EXPAT_LINK=" -lexpat"
27516fi
27517
27518            fi
27519        fi
27520        if test "x$EXPAT_LINK" = "x" ; then
27521            if test "$wxUSE_EXPAT" = "sys" ; then
27522                { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27523echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27524   { (exit 1); exit 1; }; }
27525            else
27526                { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27527echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27528                wxUSE_EXPAT=builtin
27529            fi
27530        else
27531                        wxUSE_EXPAT=sys
27532        fi
27533    fi
27534    if test "$wxUSE_EXPAT" = "builtin" ; then
27535
27536
27537subdirs="$subdirs src/expat"
27538
27539    fi
27540fi
27541
27542
27543
27544if test "$wxUSE_LIBMSPACK" != "no"; then
27545    echo "$as_me:$LINENO: checking for mspack.h" >&5
27546echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27547if test "${ac_cv_header_mspack_h+set}" = set; then
27548  echo $ECHO_N "(cached) $ECHO_C" >&6
27549else
27550  cat >conftest.$ac_ext <<_ACEOF
27551/* confdefs.h.  */
27552_ACEOF
27553cat confdefs.h >>conftest.$ac_ext
27554cat >>conftest.$ac_ext <<_ACEOF
27555/* end confdefs.h.  */
27556
27557
27558#include <mspack.h>
27559_ACEOF
27560rm -f conftest.$ac_objext
27561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27562  (eval $ac_compile) 2>conftest.er1
27563  ac_status=$?
27564  grep -v '^ *+' conftest.er1 >conftest.err
27565  rm -f conftest.er1
27566  cat conftest.err >&5
27567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568  (exit $ac_status); } &&
27569	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571  (eval $ac_try) 2>&5
27572  ac_status=$?
27573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574  (exit $ac_status); }; } &&
27575	 { ac_try='test -s conftest.$ac_objext'
27576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27577  (eval $ac_try) 2>&5
27578  ac_status=$?
27579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580  (exit $ac_status); }; }; then
27581  ac_cv_header_mspack_h=yes
27582else
27583  echo "$as_me: failed program was:" >&5
27584sed 's/^/| /' conftest.$ac_ext >&5
27585
27586ac_cv_header_mspack_h=no
27587fi
27588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27589fi
27590echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27591echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27592if test $ac_cv_header_mspack_h = yes; then
27593  found_mspack_h=1
27594fi
27595
27596
27597    if test "x$found_mspack_h" = "x1"; then
27598        echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27599echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
27600if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27601  echo $ECHO_N "(cached) $ECHO_C" >&6
27602else
27603  ac_check_lib_save_LIBS=$LIBS
27604LIBS="-lmspack  $LIBS"
27605cat >conftest.$ac_ext <<_ACEOF
27606/* confdefs.h.  */
27607_ACEOF
27608cat confdefs.h >>conftest.$ac_ext
27609cat >>conftest.$ac_ext <<_ACEOF
27610/* end confdefs.h.  */
27611
27612/* Override any gcc2 internal prototype to avoid an error.  */
27613#ifdef __cplusplus
27614extern "C"
27615#endif
27616/* We use char because int might match the return type of a gcc2
27617   builtin and then its argument prototype would still apply.  */
27618char mspack_create_chm_decompressor ();
27619int
27620main ()
27621{
27622mspack_create_chm_decompressor ();
27623  ;
27624  return 0;
27625}
27626_ACEOF
27627rm -f conftest.$ac_objext conftest$ac_exeext
27628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27629  (eval $ac_link) 2>conftest.er1
27630  ac_status=$?
27631  grep -v '^ *+' conftest.er1 >conftest.err
27632  rm -f conftest.er1
27633  cat conftest.err >&5
27634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635  (exit $ac_status); } &&
27636	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638  (eval $ac_try) 2>&5
27639  ac_status=$?
27640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641  (exit $ac_status); }; } &&
27642	 { ac_try='test -s conftest$ac_exeext'
27643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27644  (eval $ac_try) 2>&5
27645  ac_status=$?
27646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647  (exit $ac_status); }; }; then
27648  ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27649else
27650  echo "$as_me: failed program was:" >&5
27651sed 's/^/| /' conftest.$ac_ext >&5
27652
27653ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27654fi
27655rm -f conftest.err conftest.$ac_objext \
27656      conftest$ac_exeext conftest.$ac_ext
27657LIBS=$ac_check_lib_save_LIBS
27658fi
27659echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27660echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27661if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27662  MSPACK_LINK=" -lmspack"
27663fi
27664
27665    fi
27666    if test "x$MSPACK_LINK" = "x" ; then
27667        wxUSE_LIBMSPACK=no
27668    fi
27669fi
27670
27671if test "$wxUSE_LIBMSPACK" != "no"; then
27672    cat >>confdefs.h <<\_ACEOF
27673#define wxUSE_LIBMSPACK 1
27674_ACEOF
27675
27676fi
27677
27678
27679
27680AFMINSTALL=
27681WIN32INSTALL=
27682
27683TOOLKIT=
27684TOOLKIT_INCLUDE=
27685WIDGET_SET=
27686
27687if test "$USE_WIN32" = 1 ; then
27688
27689for ac_header in w32api.h
27690do
27691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27692echo "$as_me:$LINENO: checking for $ac_header" >&5
27693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27694if eval "test \"\${$as_ac_Header+set}\" = set"; then
27695  echo $ECHO_N "(cached) $ECHO_C" >&6
27696else
27697  cat >conftest.$ac_ext <<_ACEOF
27698/* confdefs.h.  */
27699_ACEOF
27700cat confdefs.h >>conftest.$ac_ext
27701cat >>conftest.$ac_ext <<_ACEOF
27702/* end confdefs.h.  */
27703
27704
27705#include <$ac_header>
27706_ACEOF
27707rm -f conftest.$ac_objext
27708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27709  (eval $ac_compile) 2>conftest.er1
27710  ac_status=$?
27711  grep -v '^ *+' conftest.er1 >conftest.err
27712  rm -f conftest.er1
27713  cat conftest.err >&5
27714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715  (exit $ac_status); } &&
27716	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718  (eval $ac_try) 2>&5
27719  ac_status=$?
27720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721  (exit $ac_status); }; } &&
27722	 { ac_try='test -s conftest.$ac_objext'
27723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724  (eval $ac_try) 2>&5
27725  ac_status=$?
27726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727  (exit $ac_status); }; }; then
27728  eval "$as_ac_Header=yes"
27729else
27730  echo "$as_me: failed program was:" >&5
27731sed 's/^/| /' conftest.$ac_ext >&5
27732
27733eval "$as_ac_Header=no"
27734fi
27735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27736fi
27737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27739if test `eval echo '${'$as_ac_Header'}'` = yes; then
27740  cat >>confdefs.h <<_ACEOF
27741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27742_ACEOF
27743
27744fi
27745
27746done
27747
27748    echo "$as_me:$LINENO: checking for windows.h" >&5
27749echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27750if test "${ac_cv_header_windows_h+set}" = set; then
27751  echo $ECHO_N "(cached) $ECHO_C" >&6
27752else
27753  cat >conftest.$ac_ext <<_ACEOF
27754/* confdefs.h.  */
27755_ACEOF
27756cat confdefs.h >>conftest.$ac_ext
27757cat >>conftest.$ac_ext <<_ACEOF
27758/* end confdefs.h.  */
27759
27760
27761#include <windows.h>
27762_ACEOF
27763rm -f conftest.$ac_objext
27764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27765  (eval $ac_compile) 2>conftest.er1
27766  ac_status=$?
27767  grep -v '^ *+' conftest.er1 >conftest.err
27768  rm -f conftest.er1
27769  cat conftest.err >&5
27770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771  (exit $ac_status); } &&
27772	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774  (eval $ac_try) 2>&5
27775  ac_status=$?
27776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777  (exit $ac_status); }; } &&
27778	 { ac_try='test -s conftest.$ac_objext'
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_header_windows_h=yes
27785else
27786  echo "$as_me: failed program was:" >&5
27787sed 's/^/| /' conftest.$ac_ext >&5
27788
27789ac_cv_header_windows_h=no
27790fi
27791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27792fi
27793echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27794echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27795if test $ac_cv_header_windows_h = yes; then
27796  :
27797else
27798
27799        { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27800echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27801   { (exit 1); exit 1; }; }
27802
27803fi
27804
27805
27806
27807            case "${host}" in
27808	x86_64-*-mingw32* )
27809                        LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27810        ;;
27811        * )
27812            LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27813        ;;
27814    esac
27815    if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27816        LIBS="$LIBS -loleacc"
27817    fi
27818
27819    case "${host}" in
27820        *-*-cygwin* )
27821                        LIBS="$LIBS -lkernel32 -luser32"
27822    esac
27823
27824        if test "$wxUSE_ODBC" = "sys" ; then
27825        wxUSE_ODBC = "yes"
27826    fi
27827    if test "$wxUSE_ODBC" = "yes" ; then
27828        LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27829        cat >>confdefs.h <<\_ACEOF
27830#define wxUSE_ODBC 1
27831_ACEOF
27832
27833    fi
27834
27835        RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27836    RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27837
27838                WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27839
27840        WIN32INSTALL=win32install
27841
27842        echo "$as_me:$LINENO: checking for pbt.h" >&5
27843echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6
27844if test "${ac_cv_header_pbt_h+set}" = set; then
27845  echo $ECHO_N "(cached) $ECHO_C" >&6
27846else
27847  cat >conftest.$ac_ext <<_ACEOF
27848/* confdefs.h.  */
27849_ACEOF
27850cat confdefs.h >>conftest.$ac_ext
27851cat >>conftest.$ac_ext <<_ACEOF
27852/* end confdefs.h.  */
27853
27854
27855#include <pbt.h>
27856_ACEOF
27857rm -f conftest.$ac_objext
27858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27859  (eval $ac_compile) 2>conftest.er1
27860  ac_status=$?
27861  grep -v '^ *+' conftest.er1 >conftest.err
27862  rm -f conftest.er1
27863  cat conftest.err >&5
27864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865  (exit $ac_status); } &&
27866	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27868  (eval $ac_try) 2>&5
27869  ac_status=$?
27870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871  (exit $ac_status); }; } &&
27872	 { ac_try='test -s conftest.$ac_objext'
27873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874  (eval $ac_try) 2>&5
27875  ac_status=$?
27876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877  (exit $ac_status); }; }; then
27878  ac_cv_header_pbt_h=yes
27879else
27880  echo "$as_me: failed program was:" >&5
27881sed 's/^/| /' conftest.$ac_ext >&5
27882
27883ac_cv_header_pbt_h=no
27884fi
27885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27886fi
27887echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
27888echo "${ECHO_T}$ac_cv_header_pbt_h" >&6
27889if test $ac_cv_header_pbt_h = yes; then
27890  :
27891else
27892  cat >>confdefs.h <<\_ACEOF
27893#define NEED_PBT_H 1
27894_ACEOF
27895
27896fi
27897
27898
27899fi
27900
27901if test "$wxUSE_GUI" = "yes"; then
27902    USE_GUI=1
27903
27904    GUI_TK_LIBRARY=
27905
27906    WXGTK12=
27907    WXGTK127=
27908    WXGTK20=
27909    WXGPE=
27910
27911    if test "$wxUSE_COCOA" = 1 ; then
27912        if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27913            { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27914echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27915            wxUSE_PRINTING_ARCHITECTURE=no
27916        fi
27917        if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27918            { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27919echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27920            wxUSE_DRAG_AND_DROP=no
27921        fi
27922        if test "$wxUSE_DRAGIMAGE" = "yes"; then
27923            { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27924echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27925            wxUSE_DRAGIMAGE=no
27926        fi
27927    fi
27928
27929    if test "$wxUSE_MSW" = 1 ; then
27930        TOOLKIT=MSW
27931        GUIDIST=MSW_DIST
27932
27933                case "${host}" in
27934            *-*-mingw32* )
27935                WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27936        esac
27937    fi
27938
27939    if test "$wxUSE_GTK" = 1; then
27940                echo "$as_me:$LINENO: checking for GTK+ version" >&5
27941echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27942
27943        gtk_version_cached=1
27944        if test "${wx_cv_lib_gtk+set}" = set; then
27945  echo $ECHO_N "(cached) $ECHO_C" >&6
27946else
27947
27948                                                gtk_version_cached=0
27949                echo "$as_me:$LINENO: result: " >&5
27950echo "${ECHO_T}" >&6
27951
27952                                                GTK_MODULES=
27953                if test "$wxUSE_THREADS" = "yes"; then
27954                    GTK_MODULES=gthread
27955                fi
27956
27957                                wx_cv_lib_gtk=
27958                if test "x$wxGTK_VERSION" != "x1"
27959                then
27960                                                                                case "${host}" in
27961                        *-*-solaris2* )
27962                            if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27963                            enable_gtktest=no
27964                            fi
27965                    esac
27966
27967                    # Check whether --enable-gtktest or --disable-gtktest was given.
27968if test "${enable_gtktest+set}" = set; then
27969  enableval="$enable_gtktest"
27970
27971else
27972  enable_gtktest=yes
27973fi;
27974
27975  pkg_config_args=gtk+-2.0
27976  for module in . $GTK_MODULES
27977  do
27978      case "$module" in
27979         gthread)
27980             pkg_config_args="$pkg_config_args gthread-2.0"
27981         ;;
27982      esac
27983  done
27984
27985  no_gtk=""
27986
27987  # Extract the first word of "pkg-config", so it can be a program name with args.
27988set dummy pkg-config; ac_word=$2
27989echo "$as_me:$LINENO: checking for $ac_word" >&5
27990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27991if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27992  echo $ECHO_N "(cached) $ECHO_C" >&6
27993else
27994  case $PKG_CONFIG in
27995  [\\/]* | ?:[\\/]*)
27996  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27997  ;;
27998  *)
27999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28000for as_dir in $PATH
28001do
28002  IFS=$as_save_IFS
28003  test -z "$as_dir" && as_dir=.
28004  for ac_exec_ext in '' $ac_executable_extensions; do
28005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28006    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28008    break 2
28009  fi
28010done
28011done
28012
28013  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28014  ;;
28015esac
28016fi
28017PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28018
28019if test -n "$PKG_CONFIG"; then
28020  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28021echo "${ECHO_T}$PKG_CONFIG" >&6
28022else
28023  echo "$as_me:$LINENO: result: no" >&5
28024echo "${ECHO_T}no" >&6
28025fi
28026
28027
28028  if test x$PKG_CONFIG != xno ; then
28029    if pkg-config --atleast-pkgconfig-version 0.7 ; then
28030      :
28031    else
28032      echo "*** pkg-config too old; version 0.7 or better required."
28033      no_gtk=yes
28034      PKG_CONFIG=no
28035    fi
28036  else
28037    no_gtk=yes
28038  fi
28039
28040  min_gtk_version=2.0.0
28041  echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28042echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
28043
28044  if test x$PKG_CONFIG != xno ; then
28045    ## don't try to run the test against uninstalled libtool libs
28046    if $PKG_CONFIG --uninstalled $pkg_config_args; then
28047	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28048	  enable_gtktest=no
28049    fi
28050
28051    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28052	  :
28053    else
28054	  no_gtk=yes
28055    fi
28056  fi
28057
28058  if test x"$no_gtk" = x ; then
28059    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args pangox --cflags`
28060    GTK_LIBS=`$PKG_CONFIG $pkg_config_args pangox --libs`
28061    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28062           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28063    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28064           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28065    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28066           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28067    if test "x$enable_gtktest" = "xyes" ; then
28068      ac_save_CFLAGS="$CFLAGS"
28069      ac_save_LIBS="$LIBS"
28070      CFLAGS="$CFLAGS $GTK_CFLAGS"
28071      LIBS="$GTK_LIBS $LIBS"
28072      rm -f conf.gtktest
28073      if test "$cross_compiling" = yes; then
28074  echo $ac_n "cross compiling; assumed OK... $ac_c"
28075else
28076  cat >conftest.$ac_ext <<_ACEOF
28077/* confdefs.h.  */
28078_ACEOF
28079cat confdefs.h >>conftest.$ac_ext
28080cat >>conftest.$ac_ext <<_ACEOF
28081/* end confdefs.h.  */
28082
28083#include <gtk/gtk.h>
28084#include <stdio.h>
28085#include <stdlib.h>
28086
28087int
28088main ()
28089{
28090  int major, minor, micro;
28091  char *tmp_version;
28092
28093  system ("touch conf.gtktest");
28094
28095  /* HP/UX 9 (%@#!) writes to sscanf strings */
28096  tmp_version = g_strdup("$min_gtk_version");
28097  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28098     printf("%s, bad version string\n", "$min_gtk_version");
28099     exit(1);
28100   }
28101
28102  if ((gtk_major_version != $gtk_config_major_version) ||
28103      (gtk_minor_version != $gtk_config_minor_version) ||
28104      (gtk_micro_version != $gtk_config_micro_version))
28105    {
28106      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28107             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28108             gtk_major_version, gtk_minor_version, gtk_micro_version);
28109      printf ("*** was found! If pkg-config was correct, then it is best\n");
28110      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28111      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28112      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28113      printf("*** required on your system.\n");
28114      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28115      printf("*** to point to the correct configuration files\n");
28116    }
28117  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28118	   (gtk_minor_version != GTK_MINOR_VERSION) ||
28119           (gtk_micro_version != GTK_MICRO_VERSION))
28120    {
28121      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28122	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28123      printf("*** library (version %d.%d.%d)\n",
28124	     gtk_major_version, gtk_minor_version, gtk_micro_version);
28125    }
28126  else
28127    {
28128      if ((gtk_major_version > major) ||
28129        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28130        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28131      {
28132        return 0;
28133       }
28134     else
28135      {
28136        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28137               gtk_major_version, gtk_minor_version, gtk_micro_version);
28138        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28139	       major, minor, micro);
28140        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28141        printf("***\n");
28142        printf("*** If you have already installed a sufficiently new version, this error\n");
28143        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28144        printf("*** being found. The easiest way to fix this is to remove the old version\n");
28145        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28146        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28147        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28148        printf("*** so that the correct libraries are found at run-time))\n");
28149      }
28150    }
28151  return 1;
28152}
28153
28154_ACEOF
28155rm -f conftest$ac_exeext
28156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28157  (eval $ac_link) 2>&5
28158  ac_status=$?
28159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28162  (eval $ac_try) 2>&5
28163  ac_status=$?
28164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165  (exit $ac_status); }; }; then
28166  :
28167else
28168  echo "$as_me: program exited with status $ac_status" >&5
28169echo "$as_me: failed program was:" >&5
28170sed 's/^/| /' conftest.$ac_ext >&5
28171
28172( exit $ac_status )
28173no_gtk=yes
28174fi
28175rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28176fi
28177       CFLAGS="$ac_save_CFLAGS"
28178       LIBS="$ac_save_LIBS"
28179     fi
28180  fi
28181  if test "x$no_gtk" = x ; then
28182     echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28183echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
28184     wx_cv_lib_gtk=2.0
28185  else
28186     echo "$as_me:$LINENO: result: no" >&5
28187echo "${ECHO_T}no" >&6
28188     if test "$PKG_CONFIG" = "no" ; then
28189       echo "*** A new enough version of pkg-config was not found."
28190       echo "*** See http://pkgconfig.sourceforge.net"
28191     else
28192       if test -f conf.gtktest ; then
28193        :
28194       else
28195          echo "*** Could not run GTK+ test program, checking why..."
28196	  ac_save_CFLAGS="$CFLAGS"
28197	  ac_save_LIBS="$LIBS"
28198          CFLAGS="$CFLAGS $GTK_CFLAGS"
28199          LIBS="$LIBS $GTK_LIBS"
28200          cat >conftest.$ac_ext <<_ACEOF
28201/* confdefs.h.  */
28202_ACEOF
28203cat confdefs.h >>conftest.$ac_ext
28204cat >>conftest.$ac_ext <<_ACEOF
28205/* end confdefs.h.  */
28206
28207#include <gtk/gtk.h>
28208#include <stdio.h>
28209
28210int
28211main ()
28212{
28213 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28214  ;
28215  return 0;
28216}
28217_ACEOF
28218rm -f conftest.$ac_objext conftest$ac_exeext
28219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28220  (eval $ac_link) 2>conftest.er1
28221  ac_status=$?
28222  grep -v '^ *+' conftest.er1 >conftest.err
28223  rm -f conftest.er1
28224  cat conftest.err >&5
28225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226  (exit $ac_status); } &&
28227	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229  (eval $ac_try) 2>&5
28230  ac_status=$?
28231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232  (exit $ac_status); }; } &&
28233	 { ac_try='test -s conftest$ac_exeext'
28234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235  (eval $ac_try) 2>&5
28236  ac_status=$?
28237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238  (exit $ac_status); }; }; then
28239   echo "*** The test program compiled, but did not run. This usually means"
28240          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28241          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28242          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28243          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28244          echo "*** is required on your system"
28245	  echo "***"
28246          echo "*** If you have an old version installed, it is best to remove it, although"
28247          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28248else
28249  echo "$as_me: failed program was:" >&5
28250sed 's/^/| /' conftest.$ac_ext >&5
28251
28252 echo "*** The test program failed to compile or link. See the file config.log for the"
28253          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28254fi
28255rm -f conftest.err conftest.$ac_objext \
28256      conftest$ac_exeext conftest.$ac_ext
28257          CFLAGS="$ac_save_CFLAGS"
28258          LIBS="$ac_save_LIBS"
28259       fi
28260     fi
28261     GTK_CFLAGS=""
28262     GTK_LIBS=""
28263     :
28264  fi
28265
28266
28267  rm -f conf.gtktest
28268
28269
28270                                        case "${host}" in
28271                        *-*-solaris2* )
28272                            if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28273                                GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28274                                GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28275                            fi
28276                                                        if test "$wxUSE_SHARED" != "yes"; then
28277                                GTK_LIBS="$GTK_LIBS -lX11"
28278                            fi
28279                    esac
28280                fi
28281
28282                                if test -z "$wx_cv_lib_gtk"; then
28283                    if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28284
28285# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28286if test "${with_gtk_prefix+set}" = set; then
28287  withval="$with_gtk_prefix"
28288  gtk_config_prefix="$withval"
28289else
28290  gtk_config_prefix=""
28291fi;
28292
28293# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28294if test "${with_gtk_exec_prefix+set}" = set; then
28295  withval="$with_gtk_exec_prefix"
28296  gtk_config_exec_prefix="$withval"
28297else
28298  gtk_config_exec_prefix=""
28299fi;
28300# Check whether --enable-gtktest or --disable-gtktest was given.
28301if test "${enable_gtktest+set}" = set; then
28302  enableval="$enable_gtktest"
28303
28304else
28305  enable_gtktest=yes
28306fi;
28307
28308  for module in . $GTK_MODULES
28309  do
28310      case "$module" in
28311         gthread)
28312             gtk_config_args="$gtk_config_args gthread"
28313         ;;
28314      esac
28315  done
28316
28317  if test x$gtk_config_exec_prefix != x ; then
28318     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28319     if test x${GTK_CONFIG+set} != xset ; then
28320        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28321     fi
28322  fi
28323  if test x$gtk_config_prefix != x ; then
28324     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28325     if test x${GTK_CONFIG+set} != xset ; then
28326        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28327     fi
28328  fi
28329
28330  # Extract the first word of "gtk-config", so it can be a program name with args.
28331set dummy gtk-config; ac_word=$2
28332echo "$as_me:$LINENO: checking for $ac_word" >&5
28333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28334if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28335  echo $ECHO_N "(cached) $ECHO_C" >&6
28336else
28337  case $GTK_CONFIG in
28338  [\\/]* | ?:[\\/]*)
28339  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28340  ;;
28341  *)
28342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28343for as_dir in $PATH
28344do
28345  IFS=$as_save_IFS
28346  test -z "$as_dir" && as_dir=.
28347  for ac_exec_ext in '' $ac_executable_extensions; do
28348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28349    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28351    break 2
28352  fi
28353done
28354done
28355
28356  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28357  ;;
28358esac
28359fi
28360GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28361
28362if test -n "$GTK_CONFIG"; then
28363  echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28364echo "${ECHO_T}$GTK_CONFIG" >&6
28365else
28366  echo "$as_me:$LINENO: result: no" >&5
28367echo "${ECHO_T}no" >&6
28368fi
28369
28370  min_gtk_version=1.2.7
28371  echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28372echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28373  no_gtk=""
28374  if test "$GTK_CONFIG" = "no" ; then
28375    no_gtk=yes
28376  else
28377    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28378    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28379    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28380           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28381    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28382           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28383    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28384           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28385    if test "x$enable_gtktest" = "xyes" ; then
28386      ac_save_CFLAGS="$CFLAGS"
28387      ac_save_LIBS="$LIBS"
28388      CFLAGS="$CFLAGS $GTK_CFLAGS"
28389      LIBS="$GTK_LIBS $LIBS"
28390      rm -f conf.gtktest
28391      if test "$cross_compiling" = yes; then
28392  echo $ac_n "cross compiling; assumed OK... $ac_c"
28393else
28394  cat >conftest.$ac_ext <<_ACEOF
28395/* confdefs.h.  */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h.  */
28400
28401#include <gtk/gtk.h>
28402#include <stdio.h>
28403#include <stdlib.h>
28404
28405int
28406main ()
28407{
28408  int major, minor, micro;
28409  char *tmp_version;
28410
28411  system ("touch conf.gtktest");
28412
28413  /* HP/UX 9 (%@#!) writes to sscanf strings */
28414  tmp_version = g_strdup("$min_gtk_version");
28415  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28416     printf("%s, bad version string\n", "$min_gtk_version");
28417     exit(1);
28418   }
28419
28420  if ((gtk_major_version != $gtk_config_major_version) ||
28421      (gtk_minor_version != $gtk_config_minor_version) ||
28422      (gtk_micro_version != $gtk_config_micro_version))
28423    {
28424      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28425             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28426             gtk_major_version, gtk_minor_version, gtk_micro_version);
28427      printf ("*** was found! If gtk-config was correct, then it is best\n");
28428      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28429      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28430      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28431      printf("*** required on your system.\n");
28432      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28433      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28434      printf("*** before re-running configure\n");
28435    }
28436#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28437  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28438	   (gtk_minor_version != GTK_MINOR_VERSION) ||
28439           (gtk_micro_version != GTK_MICRO_VERSION))
28440    {
28441      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28442	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28443      printf("*** library (version %d.%d.%d)\n",
28444	     gtk_major_version, gtk_minor_version, gtk_micro_version);
28445    }
28446#endif /* defined (GTK_MAJOR_VERSION) ... */
28447  else
28448    {
28449      if ((gtk_major_version > major) ||
28450        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28451        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28452      {
28453        return 0;
28454       }
28455     else
28456      {
28457        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28458               gtk_major_version, gtk_minor_version, gtk_micro_version);
28459        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28460	       major, minor, micro);
28461        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28462        printf("***\n");
28463        printf("*** If you have already installed a sufficiently new version, this error\n");
28464        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28465        printf("*** being found. The easiest way to fix this is to remove the old version\n");
28466        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28467        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28468        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28469        printf("*** so that the correct libraries are found at run-time))\n");
28470      }
28471    }
28472  return 1;
28473}
28474
28475_ACEOF
28476rm -f conftest$ac_exeext
28477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28478  (eval $ac_link) 2>&5
28479  ac_status=$?
28480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483  (eval $ac_try) 2>&5
28484  ac_status=$?
28485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486  (exit $ac_status); }; }; then
28487  :
28488else
28489  echo "$as_me: program exited with status $ac_status" >&5
28490echo "$as_me: failed program was:" >&5
28491sed 's/^/| /' conftest.$ac_ext >&5
28492
28493( exit $ac_status )
28494no_gtk=yes
28495fi
28496rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28497fi
28498       CFLAGS="$ac_save_CFLAGS"
28499       LIBS="$ac_save_LIBS"
28500     fi
28501  fi
28502  if test "x$no_gtk" = x ; then
28503     echo "$as_me:$LINENO: result: yes" >&5
28504echo "${ECHO_T}yes" >&6
28505     wx_cv_lib_gtk=1.2.7
28506  else
28507     echo "$as_me:$LINENO: result: no" >&5
28508echo "${ECHO_T}no" >&6
28509     if test "$GTK_CONFIG" = "no" ; then
28510       echo "*** The gtk-config script installed by GTK could not be found"
28511       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28512       echo "*** your path, or set the GTK_CONFIG environment variable to the"
28513       echo "*** full path to gtk-config."
28514     else
28515       if test -f conf.gtktest ; then
28516        :
28517       else
28518          echo "*** Could not run GTK test program, checking why..."
28519          CFLAGS="$CFLAGS $GTK_CFLAGS"
28520          LIBS="$LIBS $GTK_LIBS"
28521          cat >conftest.$ac_ext <<_ACEOF
28522/* confdefs.h.  */
28523_ACEOF
28524cat confdefs.h >>conftest.$ac_ext
28525cat >>conftest.$ac_ext <<_ACEOF
28526/* end confdefs.h.  */
28527
28528#include <gtk/gtk.h>
28529#include <stdio.h>
28530
28531int
28532main ()
28533{
28534 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28535  ;
28536  return 0;
28537}
28538_ACEOF
28539rm -f conftest.$ac_objext conftest$ac_exeext
28540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28541  (eval $ac_link) 2>conftest.er1
28542  ac_status=$?
28543  grep -v '^ *+' conftest.er1 >conftest.err
28544  rm -f conftest.er1
28545  cat conftest.err >&5
28546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547  (exit $ac_status); } &&
28548	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28550  (eval $ac_try) 2>&5
28551  ac_status=$?
28552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553  (exit $ac_status); }; } &&
28554	 { ac_try='test -s conftest$ac_exeext'
28555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556  (eval $ac_try) 2>&5
28557  ac_status=$?
28558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559  (exit $ac_status); }; }; then
28560   echo "*** The test program compiled, but did not run. This usually means"
28561          echo "*** that the run-time linker is not finding GTK or finding the wrong"
28562          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28563          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28564          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28565          echo "*** is required on your system"
28566	  echo "***"
28567          echo "*** If you have an old version installed, it is best to remove it, although"
28568          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28569          echo "***"
28570          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28571          echo "*** came with the system with the command"
28572          echo "***"
28573          echo "***    rpm --erase --nodeps gtk gtk-devel"
28574else
28575  echo "$as_me: failed program was:" >&5
28576sed 's/^/| /' conftest.$ac_ext >&5
28577
28578 echo "*** The test program failed to compile or link. See the file config.log for the"
28579          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28580          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28581          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28582fi
28583rm -f conftest.err conftest.$ac_objext \
28584      conftest$ac_exeext conftest.$ac_ext
28585          CFLAGS="$ac_save_CFLAGS"
28586          LIBS="$ac_save_LIBS"
28587       fi
28588     fi
28589     GTK_CFLAGS=""
28590     GTK_LIBS=""
28591     :
28592  fi
28593
28594
28595  rm -f conf.gtktest
28596
28597
28598                        if test -z "$wx_cv_lib_gtk"; then
28599
28600# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28601if test "${with_gtk_prefix+set}" = set; then
28602  withval="$with_gtk_prefix"
28603  gtk_config_prefix="$withval"
28604else
28605  gtk_config_prefix=""
28606fi;
28607
28608# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28609if test "${with_gtk_exec_prefix+set}" = set; then
28610  withval="$with_gtk_exec_prefix"
28611  gtk_config_exec_prefix="$withval"
28612else
28613  gtk_config_exec_prefix=""
28614fi;
28615# Check whether --enable-gtktest or --disable-gtktest was given.
28616if test "${enable_gtktest+set}" = set; then
28617  enableval="$enable_gtktest"
28618
28619else
28620  enable_gtktest=yes
28621fi;
28622
28623  for module in . $GTK_MODULES
28624  do
28625      case "$module" in
28626         gthread)
28627             gtk_config_args="$gtk_config_args gthread"
28628         ;;
28629      esac
28630  done
28631
28632  if test x$gtk_config_exec_prefix != x ; then
28633     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28634     if test x${GTK_CONFIG+set} != xset ; then
28635        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28636     fi
28637  fi
28638  if test x$gtk_config_prefix != x ; then
28639     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28640     if test x${GTK_CONFIG+set} != xset ; then
28641        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28642     fi
28643  fi
28644
28645  # Extract the first word of "gtk-config", so it can be a program name with args.
28646set dummy gtk-config; ac_word=$2
28647echo "$as_me:$LINENO: checking for $ac_word" >&5
28648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28649if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28650  echo $ECHO_N "(cached) $ECHO_C" >&6
28651else
28652  case $GTK_CONFIG in
28653  [\\/]* | ?:[\\/]*)
28654  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28655  ;;
28656  *)
28657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28658for as_dir in $PATH
28659do
28660  IFS=$as_save_IFS
28661  test -z "$as_dir" && as_dir=.
28662  for ac_exec_ext in '' $ac_executable_extensions; do
28663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28664    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28666    break 2
28667  fi
28668done
28669done
28670
28671  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28672  ;;
28673esac
28674fi
28675GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28676
28677if test -n "$GTK_CONFIG"; then
28678  echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28679echo "${ECHO_T}$GTK_CONFIG" >&6
28680else
28681  echo "$as_me:$LINENO: result: no" >&5
28682echo "${ECHO_T}no" >&6
28683fi
28684
28685  min_gtk_version=1.2.3
28686  echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28687echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28688  no_gtk=""
28689  if test "$GTK_CONFIG" = "no" ; then
28690    no_gtk=yes
28691  else
28692    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28693    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28694    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28695           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28696    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28697           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28698    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28699           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28700    if test "x$enable_gtktest" = "xyes" ; then
28701      ac_save_CFLAGS="$CFLAGS"
28702      ac_save_LIBS="$LIBS"
28703      CFLAGS="$CFLAGS $GTK_CFLAGS"
28704      LIBS="$GTK_LIBS $LIBS"
28705      rm -f conf.gtktest
28706      if test "$cross_compiling" = yes; then
28707  echo $ac_n "cross compiling; assumed OK... $ac_c"
28708else
28709  cat >conftest.$ac_ext <<_ACEOF
28710/* confdefs.h.  */
28711_ACEOF
28712cat confdefs.h >>conftest.$ac_ext
28713cat >>conftest.$ac_ext <<_ACEOF
28714/* end confdefs.h.  */
28715
28716#include <gtk/gtk.h>
28717#include <stdio.h>
28718#include <stdlib.h>
28719
28720int
28721main ()
28722{
28723  int major, minor, micro;
28724  char *tmp_version;
28725
28726  system ("touch conf.gtktest");
28727
28728  /* HP/UX 9 (%@#!) writes to sscanf strings */
28729  tmp_version = g_strdup("$min_gtk_version");
28730  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28731     printf("%s, bad version string\n", "$min_gtk_version");
28732     exit(1);
28733   }
28734
28735  if ((gtk_major_version != $gtk_config_major_version) ||
28736      (gtk_minor_version != $gtk_config_minor_version) ||
28737      (gtk_micro_version != $gtk_config_micro_version))
28738    {
28739      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28740             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28741             gtk_major_version, gtk_minor_version, gtk_micro_version);
28742      printf ("*** was found! If gtk-config was correct, then it is best\n");
28743      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28744      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28745      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28746      printf("*** required on your system.\n");
28747      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28748      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28749      printf("*** before re-running configure\n");
28750    }
28751#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28752  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28753	   (gtk_minor_version != GTK_MINOR_VERSION) ||
28754           (gtk_micro_version != GTK_MICRO_VERSION))
28755    {
28756      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28757	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28758      printf("*** library (version %d.%d.%d)\n",
28759	     gtk_major_version, gtk_minor_version, gtk_micro_version);
28760    }
28761#endif /* defined (GTK_MAJOR_VERSION) ... */
28762  else
28763    {
28764      if ((gtk_major_version > major) ||
28765        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28766        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28767      {
28768        return 0;
28769       }
28770     else
28771      {
28772        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28773               gtk_major_version, gtk_minor_version, gtk_micro_version);
28774        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28775	       major, minor, micro);
28776        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28777        printf("***\n");
28778        printf("*** If you have already installed a sufficiently new version, this error\n");
28779        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28780        printf("*** being found. The easiest way to fix this is to remove the old version\n");
28781        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28782        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28783        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28784        printf("*** so that the correct libraries are found at run-time))\n");
28785      }
28786    }
28787  return 1;
28788}
28789
28790_ACEOF
28791rm -f conftest$ac_exeext
28792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793  (eval $ac_link) 2>&5
28794  ac_status=$?
28795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798  (eval $ac_try) 2>&5
28799  ac_status=$?
28800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801  (exit $ac_status); }; }; then
28802  :
28803else
28804  echo "$as_me: program exited with status $ac_status" >&5
28805echo "$as_me: failed program was:" >&5
28806sed 's/^/| /' conftest.$ac_ext >&5
28807
28808( exit $ac_status )
28809no_gtk=yes
28810fi
28811rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28812fi
28813       CFLAGS="$ac_save_CFLAGS"
28814       LIBS="$ac_save_LIBS"
28815     fi
28816  fi
28817  if test "x$no_gtk" = x ; then
28818     echo "$as_me:$LINENO: result: yes" >&5
28819echo "${ECHO_T}yes" >&6
28820     wx_cv_lib_gtk=1.2.3
28821  else
28822     echo "$as_me:$LINENO: result: no" >&5
28823echo "${ECHO_T}no" >&6
28824     if test "$GTK_CONFIG" = "no" ; then
28825       echo "*** The gtk-config script installed by GTK could not be found"
28826       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28827       echo "*** your path, or set the GTK_CONFIG environment variable to the"
28828       echo "*** full path to gtk-config."
28829     else
28830       if test -f conf.gtktest ; then
28831        :
28832       else
28833          echo "*** Could not run GTK test program, checking why..."
28834          CFLAGS="$CFLAGS $GTK_CFLAGS"
28835          LIBS="$LIBS $GTK_LIBS"
28836          cat >conftest.$ac_ext <<_ACEOF
28837/* confdefs.h.  */
28838_ACEOF
28839cat confdefs.h >>conftest.$ac_ext
28840cat >>conftest.$ac_ext <<_ACEOF
28841/* end confdefs.h.  */
28842
28843#include <gtk/gtk.h>
28844#include <stdio.h>
28845
28846int
28847main ()
28848{
28849 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28850  ;
28851  return 0;
28852}
28853_ACEOF
28854rm -f conftest.$ac_objext conftest$ac_exeext
28855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28856  (eval $ac_link) 2>conftest.er1
28857  ac_status=$?
28858  grep -v '^ *+' conftest.er1 >conftest.err
28859  rm -f conftest.er1
28860  cat conftest.err >&5
28861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862  (exit $ac_status); } &&
28863	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865  (eval $ac_try) 2>&5
28866  ac_status=$?
28867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868  (exit $ac_status); }; } &&
28869	 { ac_try='test -s conftest$ac_exeext'
28870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28871  (eval $ac_try) 2>&5
28872  ac_status=$?
28873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874  (exit $ac_status); }; }; then
28875   echo "*** The test program compiled, but did not run. This usually means"
28876          echo "*** that the run-time linker is not finding GTK or finding the wrong"
28877          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28878          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28879          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28880          echo "*** is required on your system"
28881	  echo "***"
28882          echo "*** If you have an old version installed, it is best to remove it, although"
28883          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28884          echo "***"
28885          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28886          echo "*** came with the system with the command"
28887          echo "***"
28888          echo "***    rpm --erase --nodeps gtk gtk-devel"
28889else
28890  echo "$as_me: failed program was:" >&5
28891sed 's/^/| /' conftest.$ac_ext >&5
28892
28893 echo "*** The test program failed to compile or link. See the file config.log for the"
28894          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28895          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28896          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28897fi
28898rm -f conftest.err conftest.$ac_objext \
28899      conftest$ac_exeext conftest.$ac_ext
28900          CFLAGS="$ac_save_CFLAGS"
28901          LIBS="$ac_save_LIBS"
28902       fi
28903     fi
28904     GTK_CFLAGS=""
28905     GTK_LIBS=""
28906     :
28907  fi
28908
28909
28910  rm -f conf.gtktest
28911
28912                        fi
28913                    fi
28914                fi
28915
28916                if test -z "$wx_cv_lib_gtk"; then
28917                                        wx_cv_lib_gtk=none
28918                else
28919                                                            wx_cv_cflags_gtk=$GTK_CFLAGS
28920                    wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28921                fi
28922
28923
28924fi
28925
28926
28927                        if test "$gtk_version_cached" = 1; then
28928            echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28929echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28930        fi
28931
28932        case "$wx_cv_lib_gtk" in
28933            2.0)    WXGTK20=1
28934                    TOOLKIT_VERSION=2
28935                    ;;
28936            1.2.7)  WXGTK127=1
28937                    WXGTK12=1
28938                    ;;
28939            1.2.3)  WXGTK12=1
28940                    ;;
28941            *)      { { echo "$as_me:$LINENO: error:
28942The development files for GTK+ were not found. For GTK+ 2, please
28943ensure that pkg-config is in the path and that gtk+-2.0.pc is
28944installed. For GTK+ 1.2 please check that gtk-config is in the path,
28945and that the version is 1.2.3 or above. Also check that the
28946libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28947--libs' are in the LD_LIBRARY_PATH or equivalent.
28948                            " >&5
28949echo "$as_me: error:
28950The development files for GTK+ were not found. For GTK+ 2, please
28951ensure that pkg-config is in the path and that gtk+-2.0.pc is
28952installed. For GTK+ 1.2 please check that gtk-config is in the path,
28953and that the version is 1.2.3 or above. Also check that the
28954libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28955--libs' are in the LD_LIBRARY_PATH or equivalent.
28956                            " >&2;}
28957   { (exit 1); exit 1; }; }
28958                    ;;
28959        esac
28960
28961        if test "$WXGTK20" = 1; then
28962            save_CFLAGS="$CFLAGS"
28963            save_LIBS="$LIBS"
28964            CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28965            LIBS="$LIBS $wx_cv_libs_gtk"
28966
28967                                                            echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28968echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28969if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28970  echo $ECHO_N "(cached) $ECHO_C" >&6
28971else
28972  cat >conftest.$ac_ext <<_ACEOF
28973/* confdefs.h.  */
28974_ACEOF
28975cat confdefs.h >>conftest.$ac_ext
28976cat >>conftest.$ac_ext <<_ACEOF
28977/* end confdefs.h.  */
28978#include <gtk/gtk.h>
28979
28980int
28981main ()
28982{
28983#ifndef gtk_icon_size_lookup
28984  char *p = (char *) gtk_icon_size_lookup;
28985#endif
28986
28987  ;
28988  return 0;
28989}
28990_ACEOF
28991rm -f conftest.$ac_objext
28992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28993  (eval $ac_compile) 2>conftest.er1
28994  ac_status=$?
28995  grep -v '^ *+' conftest.er1 >conftest.err
28996  rm -f conftest.er1
28997  cat conftest.err >&5
28998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999  (exit $ac_status); } &&
29000	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002  (eval $ac_try) 2>&5
29003  ac_status=$?
29004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005  (exit $ac_status); }; } &&
29006	 { ac_try='test -s conftest.$ac_objext'
29007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008  (eval $ac_try) 2>&5
29009  ac_status=$?
29010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011  (exit $ac_status); }; }; then
29012  ac_cv_have_decl_gtk_icon_size_lookup=yes
29013else
29014  echo "$as_me: failed program was:" >&5
29015sed 's/^/| /' conftest.$ac_ext >&5
29016
29017ac_cv_have_decl_gtk_icon_size_lookup=no
29018fi
29019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29020fi
29021echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
29022echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
29023if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
29024
29025cat >>confdefs.h <<_ACEOF
29026#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
29027_ACEOF
29028
29029
29030else
29031  cat >>confdefs.h <<_ACEOF
29032#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
29033_ACEOF
29034
29035cat >>confdefs.h <<\_ACEOF
29036#define NEED_GTK_ICON_SIZE_LOOKUP 1
29037_ACEOF
29038
29039fi
29040
29041
29042
29043                        echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29044echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
29045            cat >conftest.$ac_ext <<_ACEOF
29046/* confdefs.h.  */
29047_ACEOF
29048cat confdefs.h >>conftest.$ac_ext
29049cat >>conftest.$ac_ext <<_ACEOF
29050/* end confdefs.h.  */
29051
29052                            #include <gtk/gtk.h>
29053
29054int
29055main ()
29056{
29057
29058                            #if !GTK_CHECK_VERSION(2,6,0)
29059                            Not GTK+ 2.6
29060                            #endif
29061
29062  ;
29063  return 0;
29064}
29065_ACEOF
29066rm -f conftest.$ac_objext
29067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29068  (eval $ac_compile) 2>conftest.er1
29069  ac_status=$?
29070  grep -v '^ *+' conftest.er1 >conftest.err
29071  rm -f conftest.er1
29072  cat conftest.err >&5
29073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074  (exit $ac_status); } &&
29075	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077  (eval $ac_try) 2>&5
29078  ac_status=$?
29079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080  (exit $ac_status); }; } &&
29081	 { ac_try='test -s conftest.$ac_objext'
29082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083  (eval $ac_try) 2>&5
29084  ac_status=$?
29085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086  (exit $ac_status); }; }; then
29087
29088                            cat >>confdefs.h <<\_ACEOF
29089#define __WXGTK26__ 1
29090_ACEOF
29091
29092                            cat >>confdefs.h <<\_ACEOF
29093#define __WXGTK24__ 1
29094_ACEOF
29095
29096                            echo "$as_me:$LINENO: result: yes" >&5
29097echo "${ECHO_T}yes" >&6
29098                            ac_wxgtk26=1
29099
29100else
29101  echo "$as_me: failed program was:" >&5
29102sed 's/^/| /' conftest.$ac_ext >&5
29103
29104
29105                            echo "$as_me:$LINENO: result: no" >&5
29106echo "${ECHO_T}no" >&6
29107                            ac_wxgtk26=0
29108
29109fi
29110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29111
29112            if test "$ac_wxgtk26" = 0; then
29113                        echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
29114echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
29115            cat >conftest.$ac_ext <<_ACEOF
29116/* confdefs.h.  */
29117_ACEOF
29118cat confdefs.h >>conftest.$ac_ext
29119cat >>conftest.$ac_ext <<_ACEOF
29120/* end confdefs.h.  */
29121
29122                            #include <gtk/gtk.h>
29123
29124int
29125main ()
29126{
29127
29128                            #if !GTK_CHECK_VERSION(2,4,0)
29129                            Not GTK+ 2.4
29130                            #endif
29131
29132  ;
29133  return 0;
29134}
29135_ACEOF
29136rm -f conftest.$ac_objext
29137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29138  (eval $ac_compile) 2>conftest.er1
29139  ac_status=$?
29140  grep -v '^ *+' conftest.er1 >conftest.err
29141  rm -f conftest.er1
29142  cat conftest.err >&5
29143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144  (exit $ac_status); } &&
29145	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29147  (eval $ac_try) 2>&5
29148  ac_status=$?
29149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150  (exit $ac_status); }; } &&
29151	 { ac_try='test -s conftest.$ac_objext'
29152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29153  (eval $ac_try) 2>&5
29154  ac_status=$?
29155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156  (exit $ac_status); }; }; then
29157
29158                            cat >>confdefs.h <<\_ACEOF
29159#define __WXGTK24__ 1
29160_ACEOF
29161
29162                            echo "$as_me:$LINENO: result: yes" >&5
29163echo "${ECHO_T}yes" >&6
29164
29165else
29166  echo "$as_me: failed program was:" >&5
29167sed 's/^/| /' conftest.$ac_ext >&5
29168
29169
29170                            echo "$as_me:$LINENO: result: no" >&5
29171echo "${ECHO_T}no" >&6
29172
29173fi
29174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29175            fi
29176
29177            CFLAGS="$save_CFLAGS"
29178            LIBS="$save_LIBS"
29179        else
29180            if test "$wxUSE_UNICODE" = "yes"; then
29181                { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29182echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29183                wxUSE_UNICODE=no
29184            fi
29185
29186                        echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29187echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
29188if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29189  echo $ECHO_N "(cached) $ECHO_C" >&6
29190else
29191  ac_check_lib_save_LIBS=$LIBS
29192LIBS="-lgdk  $LIBS"
29193cat >conftest.$ac_ext <<_ACEOF
29194/* confdefs.h.  */
29195_ACEOF
29196cat confdefs.h >>conftest.$ac_ext
29197cat >>conftest.$ac_ext <<_ACEOF
29198/* end confdefs.h.  */
29199
29200/* Override any gcc2 internal prototype to avoid an error.  */
29201#ifdef __cplusplus
29202extern "C"
29203#endif
29204/* We use char because int might match the return type of a gcc2
29205   builtin and then its argument prototype would still apply.  */
29206char gdk_im_open ();
29207int
29208main ()
29209{
29210gdk_im_open ();
29211  ;
29212  return 0;
29213}
29214_ACEOF
29215rm -f conftest.$ac_objext conftest$ac_exeext
29216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29217  (eval $ac_link) 2>conftest.er1
29218  ac_status=$?
29219  grep -v '^ *+' conftest.er1 >conftest.err
29220  rm -f conftest.er1
29221  cat conftest.err >&5
29222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223  (exit $ac_status); } &&
29224	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29226  (eval $ac_try) 2>&5
29227  ac_status=$?
29228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229  (exit $ac_status); }; } &&
29230	 { ac_try='test -s conftest$ac_exeext'
29231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232  (eval $ac_try) 2>&5
29233  ac_status=$?
29234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235  (exit $ac_status); }; }; then
29236  ac_cv_lib_gdk_gdk_im_open=yes
29237else
29238  echo "$as_me: failed program was:" >&5
29239sed 's/^/| /' conftest.$ac_ext >&5
29240
29241ac_cv_lib_gdk_gdk_im_open=no
29242fi
29243rm -f conftest.err conftest.$ac_objext \
29244      conftest$ac_exeext conftest.$ac_ext
29245LIBS=$ac_check_lib_save_LIBS
29246fi
29247echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29248echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29249if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29250  cat >>confdefs.h <<\_ACEOF
29251#define HAVE_XIM 1
29252_ACEOF
29253
29254fi
29255
29256
29257                                    if test "$USE_DARWIN" != 1; then
29258
29259for ac_func in poll
29260do
29261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29262echo "$as_me:$LINENO: checking for $ac_func" >&5
29263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29264if eval "test \"\${$as_ac_var+set}\" = set"; then
29265  echo $ECHO_N "(cached) $ECHO_C" >&6
29266else
29267  cat >conftest.$ac_ext <<_ACEOF
29268/* confdefs.h.  */
29269_ACEOF
29270cat confdefs.h >>conftest.$ac_ext
29271cat >>conftest.$ac_ext <<_ACEOF
29272/* end confdefs.h.  */
29273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29274   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29275#define $ac_func innocuous_$ac_func
29276
29277/* System header to define __stub macros and hopefully few prototypes,
29278    which can conflict with char $ac_func (); below.
29279    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29280    <limits.h> exists even on freestanding compilers.  */
29281
29282#ifdef __STDC__
29283# include <limits.h>
29284#else
29285# include <assert.h>
29286#endif
29287
29288#undef $ac_func
29289
29290/* Override any gcc2 internal prototype to avoid an error.  */
29291#ifdef __cplusplus
29292extern "C"
29293{
29294#endif
29295/* We use char because int might match the return type of a gcc2
29296   builtin and then its argument prototype would still apply.  */
29297char $ac_func ();
29298/* The GNU C library defines this for functions which it implements
29299    to always fail with ENOSYS.  Some functions are actually named
29300    something starting with __ and the normal name is an alias.  */
29301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29302choke me
29303#else
29304char (*f) () = $ac_func;
29305#endif
29306#ifdef __cplusplus
29307}
29308#endif
29309
29310int
29311main ()
29312{
29313return f != $ac_func;
29314  ;
29315  return 0;
29316}
29317_ACEOF
29318rm -f conftest.$ac_objext conftest$ac_exeext
29319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29320  (eval $ac_link) 2>conftest.er1
29321  ac_status=$?
29322  grep -v '^ *+' conftest.er1 >conftest.err
29323  rm -f conftest.er1
29324  cat conftest.err >&5
29325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326  (exit $ac_status); } &&
29327	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329  (eval $ac_try) 2>&5
29330  ac_status=$?
29331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332  (exit $ac_status); }; } &&
29333	 { ac_try='test -s conftest$ac_exeext'
29334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335  (eval $ac_try) 2>&5
29336  ac_status=$?
29337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338  (exit $ac_status); }; }; then
29339  eval "$as_ac_var=yes"
29340else
29341  echo "$as_me: failed program was:" >&5
29342sed 's/^/| /' conftest.$ac_ext >&5
29343
29344eval "$as_ac_var=no"
29345fi
29346rm -f conftest.err conftest.$ac_objext \
29347      conftest$ac_exeext conftest.$ac_ext
29348fi
29349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29350echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29351if test `eval echo '${'$as_ac_var'}'` = yes; then
29352  cat >>confdefs.h <<_ACEOF
29353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29354_ACEOF
29355
29356fi
29357done
29358
29359            fi
29360        fi
29361
29362        TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29363        GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29364
29365        AFMINSTALL=afminstall
29366        TOOLKIT=GTK
29367        GUIDIST=GTK_DIST
29368
29369                if test "$wxUSE_GPE" = "yes"; then
29370            echo "$as_me:$LINENO: checking for gpewidget library" >&5
29371echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29372
29373  ac_find_libraries=
29374  for ac_dir in $SEARCH_LIB;
29375  do
29376    for ac_extension in a so sl dylib dll.a; do
29377      if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29378        ac_find_libraries=$ac_dir
29379        break 2
29380      fi
29381    done
29382  done
29383
29384            if test "$ac_find_libraries" != "" ; then
29385
29386    if test "$ac_find_libraries" = "default location"; then
29387    ac_path_to_link=""
29388  else
29389    echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29390    result=$?
29391    if test $result = 0; then
29392      ac_path_to_link=""
29393    else
29394      ac_path_to_link=" -L$ac_find_libraries"
29395    fi
29396  fi
29397
29398                                                GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29399                WXGPE=1
29400                echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29401echo "${ECHO_T}found in $ac_find_libraries" >&6
29402            else
29403                echo "$as_me:$LINENO: result: not found" >&5
29404echo "${ECHO_T}not found" >&6
29405            fi
29406
29407                                                                                                                    fi
29408    fi
29409
29410    if test "$wxUSE_MGL" = 1; then
29411       echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29412echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29413        if test "x$MGL_ROOT" = x ; then
29414            echo "$as_me:$LINENO: result: not found" >&5
29415echo "${ECHO_T}not found" >&6
29416            { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29417echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29418   { (exit 1); exit 1; }; }
29419        else
29420            echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29421echo "${ECHO_T}$MGL_ROOT" >&6
29422        fi
29423
29424        echo "$as_me:$LINENO: checking for libmgl location" >&5
29425echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29426                                case "${host}" in
29427            *-*-linux* )
29428                                          if test "x$wxUSE_SHARED" = xyes ; then
29429                  mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29430              else
29431                  mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29432              fi
29433              ;;
29434            *-pc-msdosdjgpp )
29435              mgl_os_candidates="dos32/dj2"
29436              ;;
29437            *)
29438              { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29439echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29440   { (exit 1); exit 1; }; }
29441        esac
29442
29443        mgl_lib_type=""
29444        mgl_os=""
29445
29446        for mgl_os_i in $mgl_os_candidates ; do
29447            if test "x$mgl_os" = x ; then
29448                if test "$wxUSE_DEBUG_FLAG" = yes ; then
29449                    if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29450                            -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29451                        mgl_lib_type=debug
29452                        mgl_os=$mgl_os_i
29453                    fi
29454                fi
29455                if test "x$mgl_lib_type" = x ; then
29456                    if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29457                            -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29458                        mgl_lib_type=release
29459                        mgl_os=$mgl_os_i
29460                    fi
29461                fi
29462            fi
29463        done
29464
29465        if test "x$mgl_os" = x ; then
29466            echo "$as_me:$LINENO: result: not found" >&5
29467echo "${ECHO_T}not found" >&6
29468            { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29469echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29470   { (exit 1); exit 1; }; }
29471        fi
29472        echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29473echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29474
29475        wxUSE_UNIVERSAL="yes"
29476
29477        TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29478        GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29479
29480        AFMINSTALL=afminstall
29481        TOOLKIT=MGL
29482        GUIDIST=MGL_DIST
29483    fi
29484
29485    if test "$wxUSE_DFB" = 1; then
29486
29487
29488if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29489	if test -n "$ac_tool_prefix"; then
29490  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29491set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29492echo "$as_me:$LINENO: checking for $ac_word" >&5
29493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29494if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29495  echo $ECHO_N "(cached) $ECHO_C" >&6
29496else
29497  case $PKG_CONFIG in
29498  [\\/]* | ?:[\\/]*)
29499  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29500  ;;
29501  *)
29502  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29503for as_dir in $PATH
29504do
29505  IFS=$as_save_IFS
29506  test -z "$as_dir" && as_dir=.
29507  for ac_exec_ext in '' $ac_executable_extensions; do
29508  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29509    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29510    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29511    break 2
29512  fi
29513done
29514done
29515
29516  ;;
29517esac
29518fi
29519PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29520
29521if test -n "$PKG_CONFIG"; then
29522  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29523echo "${ECHO_T}$PKG_CONFIG" >&6
29524else
29525  echo "$as_me:$LINENO: result: no" >&5
29526echo "${ECHO_T}no" >&6
29527fi
29528
29529fi
29530if test -z "$ac_cv_path_PKG_CONFIG"; then
29531  ac_pt_PKG_CONFIG=$PKG_CONFIG
29532  # Extract the first word of "pkg-config", so it can be a program name with args.
29533set dummy pkg-config; ac_word=$2
29534echo "$as_me:$LINENO: checking for $ac_word" >&5
29535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29536if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29537  echo $ECHO_N "(cached) $ECHO_C" >&6
29538else
29539  case $ac_pt_PKG_CONFIG in
29540  [\\/]* | ?:[\\/]*)
29541  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29542  ;;
29543  *)
29544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29545for as_dir in $PATH
29546do
29547  IFS=$as_save_IFS
29548  test -z "$as_dir" && as_dir=.
29549  for ac_exec_ext in '' $ac_executable_extensions; do
29550  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29551    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29552    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29553    break 2
29554  fi
29555done
29556done
29557
29558  ;;
29559esac
29560fi
29561ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29562
29563if test -n "$ac_pt_PKG_CONFIG"; then
29564  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29565echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29566else
29567  echo "$as_me:$LINENO: result: no" >&5
29568echo "${ECHO_T}no" >&6
29569fi
29570
29571  PKG_CONFIG=$ac_pt_PKG_CONFIG
29572else
29573  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29574fi
29575
29576fi
29577if test -n "$PKG_CONFIG"; then
29578	_pkg_min_version=0.9.0
29579	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29580echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29581	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29582		echo "$as_me:$LINENO: result: yes" >&5
29583echo "${ECHO_T}yes" >&6
29584	else
29585		echo "$as_me:$LINENO: result: no" >&5
29586echo "${ECHO_T}no" >&6
29587		PKG_CONFIG=""
29588	fi
29589
29590fi
29591
29592
29593pkg_failed=no
29594echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29595echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29596
29597if test -n "$PKG_CONFIG"; then
29598    if test -n "$DIRECTFB_CFLAGS"; then
29599        pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29600    else
29601        if test -n "$PKG_CONFIG" && \
29602    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29603  ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29604  ac_status=$?
29605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606  (exit $ac_status); }; then
29607  pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29608else
29609  pkg_failed=yes
29610fi
29611    fi
29612else
29613	pkg_failed=untried
29614fi
29615if test -n "$PKG_CONFIG"; then
29616    if test -n "$DIRECTFB_LIBS"; then
29617        pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29618    else
29619        if test -n "$PKG_CONFIG" && \
29620    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29621  ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29622  ac_status=$?
29623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624  (exit $ac_status); }; then
29625  pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29626else
29627  pkg_failed=yes
29628fi
29629    fi
29630else
29631	pkg_failed=untried
29632fi
29633
29634
29635
29636if test $pkg_failed = yes; then
29637
29638if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29639        _pkg_short_errors_supported=yes
29640else
29641        _pkg_short_errors_supported=no
29642fi
29643        if test $_pkg_short_errors_supported = yes; then
29644	        DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29645        else
29646	        DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29647        fi
29648	# Put the nasty error message in config.log where it belongs
29649	echo "$DIRECTFB_PKG_ERRORS" >&5
29650
29651
29652                           { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29653echo "$as_me: error: DirectFB not found." >&2;}
29654   { (exit 1); exit 1; }; }
29655
29656
29657elif test $pkg_failed = untried; then
29658
29659                           { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29660echo "$as_me: error: DirectFB not found." >&2;}
29661   { (exit 1); exit 1; }; }
29662
29663
29664else
29665	DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29666	DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29667        echo "$as_me:$LINENO: result: yes" >&5
29668echo "${ECHO_T}yes" >&6
29669
29670                           wxUSE_UNIVERSAL="yes"
29671                           TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29672                           GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29673                           TOOLKIT=DFB
29674                           GUIDIST=DFB_DIST
29675
29676fi
29677    fi
29678
29679    if test "$wxUSE_MICROWIN" = 1; then
29680        echo "$as_me:$LINENO: checking for MicroWindows" >&5
29681echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29682        if test "x$MICROWINDOWS" = x ; then
29683            echo "$as_me:$LINENO: result: not found" >&5
29684echo "${ECHO_T}not found" >&6
29685            { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29686echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29687   { (exit 1); exit 1; }; }
29688        else
29689            echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29690echo "${ECHO_T}$MICROWINDOWS" >&6
29691        fi
29692
29693        if test -f $MICROWINDOWS/lib/libmwin.a; then
29694            echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29695echo "${ECHO_T}MicroWindows' libraries found." >&6
29696        else
29697            { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29698echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29699   { (exit 1); exit 1; }; }
29700        fi
29701
29702        TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29703        GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29704
29705        wxUSE_UNIVERSAL="yes"
29706
29707        AFMINSTALL=afminstall
29708        TOOLKIT=MICROWIN
29709        GUIDIST=MICROWIN_DIST
29710
29711        TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29712    fi
29713
29714        if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29715
29716if test "x$ac_path_x_has_been_run" != xyes; then
29717  echo "$as_me:$LINENO: checking for X" >&5
29718echo $ECHO_N "checking for X... $ECHO_C" >&6
29719
29720ac_path_x_has_been_run=yes
29721
29722# Check whether --with-x or --without-x was given.
29723if test "${with_x+set}" = set; then
29724  withval="$with_x"
29725
29726fi;
29727# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29728if test "x$with_x" = xno; then
29729  # The user explicitly disabled X.
29730  have_x=disabled
29731else
29732  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29733    # Both variables are already set.
29734    have_x=yes
29735  else
29736    if test "${ac_cv_have_x+set}" = set; then
29737  echo $ECHO_N "(cached) $ECHO_C" >&6
29738else
29739  # One or both of the vars are not set, and there is no cached value.
29740ac_x_includes=no ac_x_libraries=no
29741rm -fr conftest.dir
29742if mkdir conftest.dir; then
29743  cd conftest.dir
29744  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29745  cat >Imakefile <<'_ACEOF'
29746acfindx:
29747	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29748_ACEOF
29749  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29750    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29751    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29752    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29753    for ac_extension in a so sl; do
29754      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29755	 test -f $ac_im_libdir/libX11.$ac_extension; then
29756	ac_im_usrlibdir=$ac_im_libdir; break
29757      fi
29758    done
29759    # Screen out bogus values from the imake configuration.  They are
29760    # bogus both because they are the default anyway, and because
29761    # using them would break gcc on systems where it needs fixed includes.
29762    case $ac_im_incroot in
29763	/usr/include) ;;
29764	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29765    esac
29766    case $ac_im_usrlibdir in
29767	/usr/lib | /lib) ;;
29768	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29769    esac
29770  fi
29771  cd ..
29772  rm -fr conftest.dir
29773fi
29774
29775# Standard set of common directories for X headers.
29776# Check X11 before X11Rn because it is often a symlink to the current release.
29777ac_x_header_dirs='
29778/usr/X11/include
29779/usr/X11R6/include
29780/usr/X11R5/include
29781/usr/X11R4/include
29782
29783/usr/include/X11
29784/usr/include/X11R6
29785/usr/include/X11R5
29786/usr/include/X11R4
29787
29788/usr/local/X11/include
29789/usr/local/X11R6/include
29790/usr/local/X11R5/include
29791/usr/local/X11R4/include
29792
29793/usr/local/include/X11
29794/usr/local/include/X11R6
29795/usr/local/include/X11R5
29796/usr/local/include/X11R4
29797
29798/usr/X386/include
29799/usr/x386/include
29800/usr/XFree86/include/X11
29801
29802/usr/include
29803/usr/local/include
29804/usr/unsupported/include
29805/usr/athena/include
29806/usr/local/x11r5/include
29807/usr/lpp/Xamples/include
29808
29809/usr/openwin/include
29810/usr/openwin/share/include'
29811
29812if test "$ac_x_includes" = no; then
29813  # Guess where to find include files, by looking for a specified header file.
29814  # First, try using that file with no special directory specified.
29815  cat >conftest.$ac_ext <<_ACEOF
29816/* confdefs.h.  */
29817_ACEOF
29818cat confdefs.h >>conftest.$ac_ext
29819cat >>conftest.$ac_ext <<_ACEOF
29820/* end confdefs.h.  */
29821#include <X11/Xlib.h>
29822_ACEOF
29823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29824  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29825  ac_status=$?
29826  grep -v '^ *+' conftest.er1 >conftest.err
29827  rm -f conftest.er1
29828  cat conftest.err >&5
29829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830  (exit $ac_status); } >/dev/null; then
29831  if test -s conftest.err; then
29832    ac_cpp_err=$ac_c_preproc_warn_flag
29833    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29834  else
29835    ac_cpp_err=
29836  fi
29837else
29838  ac_cpp_err=yes
29839fi
29840if test -z "$ac_cpp_err"; then
29841  # We can compile using X headers with no special include directory.
29842ac_x_includes=
29843else
29844  echo "$as_me: failed program was:" >&5
29845sed 's/^/| /' conftest.$ac_ext >&5
29846
29847  for ac_dir in $ac_x_header_dirs; do
29848  if test -r "$ac_dir/X11/Xlib.h"; then
29849    ac_x_includes=$ac_dir
29850    break
29851  fi
29852done
29853fi
29854rm -f conftest.err conftest.$ac_ext
29855fi # $ac_x_includes = no
29856
29857if test "$ac_x_libraries" = no; then
29858  # Check for the libraries.
29859  # See if we find them without any special options.
29860  # Don't add to $LIBS permanently.
29861  ac_save_LIBS=$LIBS
29862  LIBS="-lX11 $LIBS"
29863  cat >conftest.$ac_ext <<_ACEOF
29864/* confdefs.h.  */
29865_ACEOF
29866cat confdefs.h >>conftest.$ac_ext
29867cat >>conftest.$ac_ext <<_ACEOF
29868/* end confdefs.h.  */
29869#include <X11/Xlib.h>
29870int
29871main ()
29872{
29873XrmInitialize ()
29874  ;
29875  return 0;
29876}
29877_ACEOF
29878rm -f conftest.$ac_objext conftest$ac_exeext
29879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29880  (eval $ac_link) 2>conftest.er1
29881  ac_status=$?
29882  grep -v '^ *+' conftest.er1 >conftest.err
29883  rm -f conftest.er1
29884  cat conftest.err >&5
29885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886  (exit $ac_status); } &&
29887	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889  (eval $ac_try) 2>&5
29890  ac_status=$?
29891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892  (exit $ac_status); }; } &&
29893	 { ac_try='test -s conftest$ac_exeext'
29894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29895  (eval $ac_try) 2>&5
29896  ac_status=$?
29897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898  (exit $ac_status); }; }; then
29899  LIBS=$ac_save_LIBS
29900# We can link X programs with no special library path.
29901ac_x_libraries=
29902else
29903  echo "$as_me: failed program was:" >&5
29904sed 's/^/| /' conftest.$ac_ext >&5
29905
29906LIBS=$ac_save_LIBS
29907for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29908do
29909  # Don't even attempt the hair of trying to link an X program!
29910  for ac_extension in a so sl; do
29911    if test -r $ac_dir/libX11.$ac_extension; then
29912      ac_x_libraries=$ac_dir
29913      break 2
29914    fi
29915  done
29916done
29917fi
29918rm -f conftest.err conftest.$ac_objext \
29919      conftest$ac_exeext conftest.$ac_ext
29920fi # $ac_x_libraries = no
29921
29922if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29923  # Didn't find X anywhere.  Cache the known absence of X.
29924  ac_cv_have_x="have_x=no"
29925else
29926  # Record where we found X for the cache.
29927  ac_cv_have_x="have_x=yes \
29928		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29929fi
29930fi
29931
29932  fi
29933  eval "$ac_cv_have_x"
29934fi # $with_x != no
29935
29936if test "$have_x" != yes; then
29937  echo "$as_me:$LINENO: result: $have_x" >&5
29938echo "${ECHO_T}$have_x" >&6
29939  no_x=yes
29940else
29941  # If each of the values was on the command line, it overrides each guess.
29942  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29943  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29944  # Update the cache value to reflect the command line values.
29945  ac_cv_have_x="have_x=yes \
29946		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29947  # It might be that x_includes is empty (headers are found in the
29948  # standard search path. Then output the corresponding message
29949  ac_out_x_includes=$x_includes
29950  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29951  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29952echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
29953fi
29954
29955fi
29956if test "$no_x" = yes; then
29957  # Not all programs may use this symbol, but it does not hurt to define it.
29958
29959cat >>confdefs.h <<\_ACEOF
29960#define X_DISPLAY_MISSING 1
29961_ACEOF
29962
29963  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29964else
29965  if test -n "$x_includes"; then
29966    X_CFLAGS="$X_CFLAGS -I$x_includes"
29967  fi
29968
29969  # It would also be nice to do this for all -L options, not just this one.
29970  if test -n "$x_libraries"; then
29971    X_LIBS="$X_LIBS -L$x_libraries"
29972    # For Solaris; some versions of Sun CC require a space after -R and
29973    # others require no space.  Words are not sufficient . . . .
29974    case `(uname -sr) 2>/dev/null` in
29975    "SunOS 5"*)
29976      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29977echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29978      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29979      cat >conftest.$ac_ext <<_ACEOF
29980/* confdefs.h.  */
29981_ACEOF
29982cat confdefs.h >>conftest.$ac_ext
29983cat >>conftest.$ac_ext <<_ACEOF
29984/* end confdefs.h.  */
29985
29986int
29987main ()
29988{
29989
29990  ;
29991  return 0;
29992}
29993_ACEOF
29994rm -f conftest.$ac_objext conftest$ac_exeext
29995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29996  (eval $ac_link) 2>conftest.er1
29997  ac_status=$?
29998  grep -v '^ *+' conftest.er1 >conftest.err
29999  rm -f conftest.er1
30000  cat conftest.err >&5
30001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002  (exit $ac_status); } &&
30003	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005  (eval $ac_try) 2>&5
30006  ac_status=$?
30007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008  (exit $ac_status); }; } &&
30009	 { ac_try='test -s conftest$ac_exeext'
30010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011  (eval $ac_try) 2>&5
30012  ac_status=$?
30013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014  (exit $ac_status); }; }; then
30015  ac_R_nospace=yes
30016else
30017  echo "$as_me: failed program was:" >&5
30018sed 's/^/| /' conftest.$ac_ext >&5
30019
30020ac_R_nospace=no
30021fi
30022rm -f conftest.err conftest.$ac_objext \
30023      conftest$ac_exeext conftest.$ac_ext
30024      if test $ac_R_nospace = yes; then
30025	echo "$as_me:$LINENO: result: no" >&5
30026echo "${ECHO_T}no" >&6
30027	X_LIBS="$X_LIBS -R$x_libraries"
30028      else
30029	LIBS="$ac_xsave_LIBS -R $x_libraries"
30030	cat >conftest.$ac_ext <<_ACEOF
30031/* confdefs.h.  */
30032_ACEOF
30033cat confdefs.h >>conftest.$ac_ext
30034cat >>conftest.$ac_ext <<_ACEOF
30035/* end confdefs.h.  */
30036
30037int
30038main ()
30039{
30040
30041  ;
30042  return 0;
30043}
30044_ACEOF
30045rm -f conftest.$ac_objext conftest$ac_exeext
30046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30047  (eval $ac_link) 2>conftest.er1
30048  ac_status=$?
30049  grep -v '^ *+' conftest.er1 >conftest.err
30050  rm -f conftest.er1
30051  cat conftest.err >&5
30052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053  (exit $ac_status); } &&
30054	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056  (eval $ac_try) 2>&5
30057  ac_status=$?
30058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059  (exit $ac_status); }; } &&
30060	 { ac_try='test -s conftest$ac_exeext'
30061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30062  (eval $ac_try) 2>&5
30063  ac_status=$?
30064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065  (exit $ac_status); }; }; then
30066  ac_R_space=yes
30067else
30068  echo "$as_me: failed program was:" >&5
30069sed 's/^/| /' conftest.$ac_ext >&5
30070
30071ac_R_space=no
30072fi
30073rm -f conftest.err conftest.$ac_objext \
30074      conftest$ac_exeext conftest.$ac_ext
30075	if test $ac_R_space = yes; then
30076	  echo "$as_me:$LINENO: result: yes" >&5
30077echo "${ECHO_T}yes" >&6
30078	  X_LIBS="$X_LIBS -R $x_libraries"
30079	else
30080	  echo "$as_me:$LINENO: result: neither works" >&5
30081echo "${ECHO_T}neither works" >&6
30082	fi
30083      fi
30084      LIBS=$ac_xsave_LIBS
30085    esac
30086  fi
30087
30088  # Check for system-dependent libraries X programs must link with.
30089  # Do this before checking for the system-independent R6 libraries
30090  # (-lICE), since we may need -lsocket or whatever for X linking.
30091
30092  if test "$ISC" = yes; then
30093    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30094  else
30095    # Martyn Johnson says this is needed for Ultrix, if the X
30096    # libraries were built with DECnet support.  And Karl Berry says
30097    # the Alpha needs dnet_stub (dnet does not exist).
30098    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30099    cat >conftest.$ac_ext <<_ACEOF
30100/* confdefs.h.  */
30101_ACEOF
30102cat confdefs.h >>conftest.$ac_ext
30103cat >>conftest.$ac_ext <<_ACEOF
30104/* end confdefs.h.  */
30105
30106/* Override any gcc2 internal prototype to avoid an error.  */
30107#ifdef __cplusplus
30108extern "C"
30109#endif
30110/* We use char because int might match the return type of a gcc2
30111   builtin and then its argument prototype would still apply.  */
30112char XOpenDisplay ();
30113int
30114main ()
30115{
30116XOpenDisplay ();
30117  ;
30118  return 0;
30119}
30120_ACEOF
30121rm -f conftest.$ac_objext conftest$ac_exeext
30122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30123  (eval $ac_link) 2>conftest.er1
30124  ac_status=$?
30125  grep -v '^ *+' conftest.er1 >conftest.err
30126  rm -f conftest.er1
30127  cat conftest.err >&5
30128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129  (exit $ac_status); } &&
30130	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30132  (eval $ac_try) 2>&5
30133  ac_status=$?
30134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135  (exit $ac_status); }; } &&
30136	 { ac_try='test -s conftest$ac_exeext'
30137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30138  (eval $ac_try) 2>&5
30139  ac_status=$?
30140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141  (exit $ac_status); }; }; then
30142  :
30143else
30144  echo "$as_me: failed program was:" >&5
30145sed 's/^/| /' conftest.$ac_ext >&5
30146
30147echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30148echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
30149if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30150  echo $ECHO_N "(cached) $ECHO_C" >&6
30151else
30152  ac_check_lib_save_LIBS=$LIBS
30153LIBS="-ldnet  $LIBS"
30154cat >conftest.$ac_ext <<_ACEOF
30155/* confdefs.h.  */
30156_ACEOF
30157cat confdefs.h >>conftest.$ac_ext
30158cat >>conftest.$ac_ext <<_ACEOF
30159/* end confdefs.h.  */
30160
30161/* Override any gcc2 internal prototype to avoid an error.  */
30162#ifdef __cplusplus
30163extern "C"
30164#endif
30165/* We use char because int might match the return type of a gcc2
30166   builtin and then its argument prototype would still apply.  */
30167char dnet_ntoa ();
30168int
30169main ()
30170{
30171dnet_ntoa ();
30172  ;
30173  return 0;
30174}
30175_ACEOF
30176rm -f conftest.$ac_objext conftest$ac_exeext
30177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30178  (eval $ac_link) 2>conftest.er1
30179  ac_status=$?
30180  grep -v '^ *+' conftest.er1 >conftest.err
30181  rm -f conftest.er1
30182  cat conftest.err >&5
30183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184  (exit $ac_status); } &&
30185	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30187  (eval $ac_try) 2>&5
30188  ac_status=$?
30189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190  (exit $ac_status); }; } &&
30191	 { ac_try='test -s conftest$ac_exeext'
30192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30193  (eval $ac_try) 2>&5
30194  ac_status=$?
30195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196  (exit $ac_status); }; }; then
30197  ac_cv_lib_dnet_dnet_ntoa=yes
30198else
30199  echo "$as_me: failed program was:" >&5
30200sed 's/^/| /' conftest.$ac_ext >&5
30201
30202ac_cv_lib_dnet_dnet_ntoa=no
30203fi
30204rm -f conftest.err conftest.$ac_objext \
30205      conftest$ac_exeext conftest.$ac_ext
30206LIBS=$ac_check_lib_save_LIBS
30207fi
30208echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30209echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
30210if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30211  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30212fi
30213
30214    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30215      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30216echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
30217if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30218  echo $ECHO_N "(cached) $ECHO_C" >&6
30219else
30220  ac_check_lib_save_LIBS=$LIBS
30221LIBS="-ldnet_stub  $LIBS"
30222cat >conftest.$ac_ext <<_ACEOF
30223/* confdefs.h.  */
30224_ACEOF
30225cat confdefs.h >>conftest.$ac_ext
30226cat >>conftest.$ac_ext <<_ACEOF
30227/* end confdefs.h.  */
30228
30229/* Override any gcc2 internal prototype to avoid an error.  */
30230#ifdef __cplusplus
30231extern "C"
30232#endif
30233/* We use char because int might match the return type of a gcc2
30234   builtin and then its argument prototype would still apply.  */
30235char dnet_ntoa ();
30236int
30237main ()
30238{
30239dnet_ntoa ();
30240  ;
30241  return 0;
30242}
30243_ACEOF
30244rm -f conftest.$ac_objext conftest$ac_exeext
30245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30246  (eval $ac_link) 2>conftest.er1
30247  ac_status=$?
30248  grep -v '^ *+' conftest.er1 >conftest.err
30249  rm -f conftest.er1
30250  cat conftest.err >&5
30251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252  (exit $ac_status); } &&
30253	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30255  (eval $ac_try) 2>&5
30256  ac_status=$?
30257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258  (exit $ac_status); }; } &&
30259	 { ac_try='test -s conftest$ac_exeext'
30260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30261  (eval $ac_try) 2>&5
30262  ac_status=$?
30263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264  (exit $ac_status); }; }; then
30265  ac_cv_lib_dnet_stub_dnet_ntoa=yes
30266else
30267  echo "$as_me: failed program was:" >&5
30268sed 's/^/| /' conftest.$ac_ext >&5
30269
30270ac_cv_lib_dnet_stub_dnet_ntoa=no
30271fi
30272rm -f conftest.err conftest.$ac_objext \
30273      conftest$ac_exeext conftest.$ac_ext
30274LIBS=$ac_check_lib_save_LIBS
30275fi
30276echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30277echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30278if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30279  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30280fi
30281
30282    fi
30283fi
30284rm -f conftest.err conftest.$ac_objext \
30285      conftest$ac_exeext conftest.$ac_ext
30286    LIBS="$ac_xsave_LIBS"
30287
30288    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30289    # to get the SysV transport functions.
30290    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30291    # needs -lnsl.
30292    # The nsl library prevents programs from opening the X display
30293    # on Irix 5.2, according to T.E. Dickey.
30294    # The functions gethostbyname, getservbyname, and inet_addr are
30295    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30296    echo "$as_me:$LINENO: checking for gethostbyname" >&5
30297echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30298if test "${ac_cv_func_gethostbyname+set}" = set; then
30299  echo $ECHO_N "(cached) $ECHO_C" >&6
30300else
30301  cat >conftest.$ac_ext <<_ACEOF
30302/* confdefs.h.  */
30303_ACEOF
30304cat confdefs.h >>conftest.$ac_ext
30305cat >>conftest.$ac_ext <<_ACEOF
30306/* end confdefs.h.  */
30307/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30308   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30309#define gethostbyname innocuous_gethostbyname
30310
30311/* System header to define __stub macros and hopefully few prototypes,
30312    which can conflict with char gethostbyname (); below.
30313    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30314    <limits.h> exists even on freestanding compilers.  */
30315
30316#ifdef __STDC__
30317# include <limits.h>
30318#else
30319# include <assert.h>
30320#endif
30321
30322#undef gethostbyname
30323
30324/* Override any gcc2 internal prototype to avoid an error.  */
30325#ifdef __cplusplus
30326extern "C"
30327{
30328#endif
30329/* We use char because int might match the return type of a gcc2
30330   builtin and then its argument prototype would still apply.  */
30331char gethostbyname ();
30332/* The GNU C library defines this for functions which it implements
30333    to always fail with ENOSYS.  Some functions are actually named
30334    something starting with __ and the normal name is an alias.  */
30335#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30336choke me
30337#else
30338char (*f) () = gethostbyname;
30339#endif
30340#ifdef __cplusplus
30341}
30342#endif
30343
30344int
30345main ()
30346{
30347return f != gethostbyname;
30348  ;
30349  return 0;
30350}
30351_ACEOF
30352rm -f conftest.$ac_objext conftest$ac_exeext
30353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30354  (eval $ac_link) 2>conftest.er1
30355  ac_status=$?
30356  grep -v '^ *+' conftest.er1 >conftest.err
30357  rm -f conftest.er1
30358  cat conftest.err >&5
30359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360  (exit $ac_status); } &&
30361	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30363  (eval $ac_try) 2>&5
30364  ac_status=$?
30365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366  (exit $ac_status); }; } &&
30367	 { ac_try='test -s conftest$ac_exeext'
30368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30369  (eval $ac_try) 2>&5
30370  ac_status=$?
30371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372  (exit $ac_status); }; }; then
30373  ac_cv_func_gethostbyname=yes
30374else
30375  echo "$as_me: failed program was:" >&5
30376sed 's/^/| /' conftest.$ac_ext >&5
30377
30378ac_cv_func_gethostbyname=no
30379fi
30380rm -f conftest.err conftest.$ac_objext \
30381      conftest$ac_exeext conftest.$ac_ext
30382fi
30383echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30384echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30385
30386    if test $ac_cv_func_gethostbyname = no; then
30387      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30388echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30389if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30390  echo $ECHO_N "(cached) $ECHO_C" >&6
30391else
30392  ac_check_lib_save_LIBS=$LIBS
30393LIBS="-lnsl  $LIBS"
30394cat >conftest.$ac_ext <<_ACEOF
30395/* confdefs.h.  */
30396_ACEOF
30397cat confdefs.h >>conftest.$ac_ext
30398cat >>conftest.$ac_ext <<_ACEOF
30399/* end confdefs.h.  */
30400
30401/* Override any gcc2 internal prototype to avoid an error.  */
30402#ifdef __cplusplus
30403extern "C"
30404#endif
30405/* We use char because int might match the return type of a gcc2
30406   builtin and then its argument prototype would still apply.  */
30407char gethostbyname ();
30408int
30409main ()
30410{
30411gethostbyname ();
30412  ;
30413  return 0;
30414}
30415_ACEOF
30416rm -f conftest.$ac_objext conftest$ac_exeext
30417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30418  (eval $ac_link) 2>conftest.er1
30419  ac_status=$?
30420  grep -v '^ *+' conftest.er1 >conftest.err
30421  rm -f conftest.er1
30422  cat conftest.err >&5
30423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424  (exit $ac_status); } &&
30425	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427  (eval $ac_try) 2>&5
30428  ac_status=$?
30429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430  (exit $ac_status); }; } &&
30431	 { ac_try='test -s conftest$ac_exeext'
30432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433  (eval $ac_try) 2>&5
30434  ac_status=$?
30435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436  (exit $ac_status); }; }; then
30437  ac_cv_lib_nsl_gethostbyname=yes
30438else
30439  echo "$as_me: failed program was:" >&5
30440sed 's/^/| /' conftest.$ac_ext >&5
30441
30442ac_cv_lib_nsl_gethostbyname=no
30443fi
30444rm -f conftest.err conftest.$ac_objext \
30445      conftest$ac_exeext conftest.$ac_ext
30446LIBS=$ac_check_lib_save_LIBS
30447fi
30448echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30449echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30450if test $ac_cv_lib_nsl_gethostbyname = yes; then
30451  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30452fi
30453
30454      if test $ac_cv_lib_nsl_gethostbyname = no; then
30455	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30456echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30457if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30458  echo $ECHO_N "(cached) $ECHO_C" >&6
30459else
30460  ac_check_lib_save_LIBS=$LIBS
30461LIBS="-lbsd  $LIBS"
30462cat >conftest.$ac_ext <<_ACEOF
30463/* confdefs.h.  */
30464_ACEOF
30465cat confdefs.h >>conftest.$ac_ext
30466cat >>conftest.$ac_ext <<_ACEOF
30467/* end confdefs.h.  */
30468
30469/* Override any gcc2 internal prototype to avoid an error.  */
30470#ifdef __cplusplus
30471extern "C"
30472#endif
30473/* We use char because int might match the return type of a gcc2
30474   builtin and then its argument prototype would still apply.  */
30475char gethostbyname ();
30476int
30477main ()
30478{
30479gethostbyname ();
30480  ;
30481  return 0;
30482}
30483_ACEOF
30484rm -f conftest.$ac_objext conftest$ac_exeext
30485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30486  (eval $ac_link) 2>conftest.er1
30487  ac_status=$?
30488  grep -v '^ *+' conftest.er1 >conftest.err
30489  rm -f conftest.er1
30490  cat conftest.err >&5
30491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492  (exit $ac_status); } &&
30493	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495  (eval $ac_try) 2>&5
30496  ac_status=$?
30497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498  (exit $ac_status); }; } &&
30499	 { ac_try='test -s conftest$ac_exeext'
30500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30501  (eval $ac_try) 2>&5
30502  ac_status=$?
30503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504  (exit $ac_status); }; }; then
30505  ac_cv_lib_bsd_gethostbyname=yes
30506else
30507  echo "$as_me: failed program was:" >&5
30508sed 's/^/| /' conftest.$ac_ext >&5
30509
30510ac_cv_lib_bsd_gethostbyname=no
30511fi
30512rm -f conftest.err conftest.$ac_objext \
30513      conftest$ac_exeext conftest.$ac_ext
30514LIBS=$ac_check_lib_save_LIBS
30515fi
30516echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30517echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30518if test $ac_cv_lib_bsd_gethostbyname = yes; then
30519  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30520fi
30521
30522      fi
30523    fi
30524
30525    # lieder@skyler.mavd.honeywell.com says without -lsocket,
30526    # socket/setsockopt and other routines are undefined under SCO ODT
30527    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30528    # on later versions), says Simon Leinen: it contains gethostby*
30529    # variants that don't use the name server (or something).  -lsocket
30530    # must be given before -lnsl if both are needed.  We assume that
30531    # if connect needs -lnsl, so does gethostbyname.
30532    echo "$as_me:$LINENO: checking for connect" >&5
30533echo $ECHO_N "checking for connect... $ECHO_C" >&6
30534if test "${ac_cv_func_connect+set}" = set; then
30535  echo $ECHO_N "(cached) $ECHO_C" >&6
30536else
30537  cat >conftest.$ac_ext <<_ACEOF
30538/* confdefs.h.  */
30539_ACEOF
30540cat confdefs.h >>conftest.$ac_ext
30541cat >>conftest.$ac_ext <<_ACEOF
30542/* end confdefs.h.  */
30543/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30544   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30545#define connect innocuous_connect
30546
30547/* System header to define __stub macros and hopefully few prototypes,
30548    which can conflict with char connect (); below.
30549    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30550    <limits.h> exists even on freestanding compilers.  */
30551
30552#ifdef __STDC__
30553# include <limits.h>
30554#else
30555# include <assert.h>
30556#endif
30557
30558#undef connect
30559
30560/* Override any gcc2 internal prototype to avoid an error.  */
30561#ifdef __cplusplus
30562extern "C"
30563{
30564#endif
30565/* We use char because int might match the return type of a gcc2
30566   builtin and then its argument prototype would still apply.  */
30567char connect ();
30568/* The GNU C library defines this for functions which it implements
30569    to always fail with ENOSYS.  Some functions are actually named
30570    something starting with __ and the normal name is an alias.  */
30571#if defined (__stub_connect) || defined (__stub___connect)
30572choke me
30573#else
30574char (*f) () = connect;
30575#endif
30576#ifdef __cplusplus
30577}
30578#endif
30579
30580int
30581main ()
30582{
30583return f != connect;
30584  ;
30585  return 0;
30586}
30587_ACEOF
30588rm -f conftest.$ac_objext conftest$ac_exeext
30589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30590  (eval $ac_link) 2>conftest.er1
30591  ac_status=$?
30592  grep -v '^ *+' conftest.er1 >conftest.err
30593  rm -f conftest.er1
30594  cat conftest.err >&5
30595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596  (exit $ac_status); } &&
30597	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30599  (eval $ac_try) 2>&5
30600  ac_status=$?
30601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602  (exit $ac_status); }; } &&
30603	 { ac_try='test -s conftest$ac_exeext'
30604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30605  (eval $ac_try) 2>&5
30606  ac_status=$?
30607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608  (exit $ac_status); }; }; then
30609  ac_cv_func_connect=yes
30610else
30611  echo "$as_me: failed program was:" >&5
30612sed 's/^/| /' conftest.$ac_ext >&5
30613
30614ac_cv_func_connect=no
30615fi
30616rm -f conftest.err conftest.$ac_objext \
30617      conftest$ac_exeext conftest.$ac_ext
30618fi
30619echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30620echo "${ECHO_T}$ac_cv_func_connect" >&6
30621
30622    if test $ac_cv_func_connect = no; then
30623      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30624echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30625if test "${ac_cv_lib_socket_connect+set}" = set; then
30626  echo $ECHO_N "(cached) $ECHO_C" >&6
30627else
30628  ac_check_lib_save_LIBS=$LIBS
30629LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30630cat >conftest.$ac_ext <<_ACEOF
30631/* confdefs.h.  */
30632_ACEOF
30633cat confdefs.h >>conftest.$ac_ext
30634cat >>conftest.$ac_ext <<_ACEOF
30635/* end confdefs.h.  */
30636
30637/* Override any gcc2 internal prototype to avoid an error.  */
30638#ifdef __cplusplus
30639extern "C"
30640#endif
30641/* We use char because int might match the return type of a gcc2
30642   builtin and then its argument prototype would still apply.  */
30643char connect ();
30644int
30645main ()
30646{
30647connect ();
30648  ;
30649  return 0;
30650}
30651_ACEOF
30652rm -f conftest.$ac_objext conftest$ac_exeext
30653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30654  (eval $ac_link) 2>conftest.er1
30655  ac_status=$?
30656  grep -v '^ *+' conftest.er1 >conftest.err
30657  rm -f conftest.er1
30658  cat conftest.err >&5
30659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660  (exit $ac_status); } &&
30661	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663  (eval $ac_try) 2>&5
30664  ac_status=$?
30665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666  (exit $ac_status); }; } &&
30667	 { ac_try='test -s conftest$ac_exeext'
30668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30669  (eval $ac_try) 2>&5
30670  ac_status=$?
30671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672  (exit $ac_status); }; }; then
30673  ac_cv_lib_socket_connect=yes
30674else
30675  echo "$as_me: failed program was:" >&5
30676sed 's/^/| /' conftest.$ac_ext >&5
30677
30678ac_cv_lib_socket_connect=no
30679fi
30680rm -f conftest.err conftest.$ac_objext \
30681      conftest$ac_exeext conftest.$ac_ext
30682LIBS=$ac_check_lib_save_LIBS
30683fi
30684echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30685echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30686if test $ac_cv_lib_socket_connect = yes; then
30687  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30688fi
30689
30690    fi
30691
30692    # Guillermo Gomez says -lposix is necessary on A/UX.
30693    echo "$as_me:$LINENO: checking for remove" >&5
30694echo $ECHO_N "checking for remove... $ECHO_C" >&6
30695if test "${ac_cv_func_remove+set}" = set; then
30696  echo $ECHO_N "(cached) $ECHO_C" >&6
30697else
30698  cat >conftest.$ac_ext <<_ACEOF
30699/* confdefs.h.  */
30700_ACEOF
30701cat confdefs.h >>conftest.$ac_ext
30702cat >>conftest.$ac_ext <<_ACEOF
30703/* end confdefs.h.  */
30704/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30705   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30706#define remove innocuous_remove
30707
30708/* System header to define __stub macros and hopefully few prototypes,
30709    which can conflict with char remove (); below.
30710    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30711    <limits.h> exists even on freestanding compilers.  */
30712
30713#ifdef __STDC__
30714# include <limits.h>
30715#else
30716# include <assert.h>
30717#endif
30718
30719#undef remove
30720
30721/* Override any gcc2 internal prototype to avoid an error.  */
30722#ifdef __cplusplus
30723extern "C"
30724{
30725#endif
30726/* We use char because int might match the return type of a gcc2
30727   builtin and then its argument prototype would still apply.  */
30728char remove ();
30729/* The GNU C library defines this for functions which it implements
30730    to always fail with ENOSYS.  Some functions are actually named
30731    something starting with __ and the normal name is an alias.  */
30732#if defined (__stub_remove) || defined (__stub___remove)
30733choke me
30734#else
30735char (*f) () = remove;
30736#endif
30737#ifdef __cplusplus
30738}
30739#endif
30740
30741int
30742main ()
30743{
30744return f != remove;
30745  ;
30746  return 0;
30747}
30748_ACEOF
30749rm -f conftest.$ac_objext conftest$ac_exeext
30750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30751  (eval $ac_link) 2>conftest.er1
30752  ac_status=$?
30753  grep -v '^ *+' conftest.er1 >conftest.err
30754  rm -f conftest.er1
30755  cat conftest.err >&5
30756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757  (exit $ac_status); } &&
30758	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760  (eval $ac_try) 2>&5
30761  ac_status=$?
30762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763  (exit $ac_status); }; } &&
30764	 { ac_try='test -s conftest$ac_exeext'
30765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30766  (eval $ac_try) 2>&5
30767  ac_status=$?
30768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769  (exit $ac_status); }; }; then
30770  ac_cv_func_remove=yes
30771else
30772  echo "$as_me: failed program was:" >&5
30773sed 's/^/| /' conftest.$ac_ext >&5
30774
30775ac_cv_func_remove=no
30776fi
30777rm -f conftest.err conftest.$ac_objext \
30778      conftest$ac_exeext conftest.$ac_ext
30779fi
30780echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30781echo "${ECHO_T}$ac_cv_func_remove" >&6
30782
30783    if test $ac_cv_func_remove = no; then
30784      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30785echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30786if test "${ac_cv_lib_posix_remove+set}" = set; then
30787  echo $ECHO_N "(cached) $ECHO_C" >&6
30788else
30789  ac_check_lib_save_LIBS=$LIBS
30790LIBS="-lposix  $LIBS"
30791cat >conftest.$ac_ext <<_ACEOF
30792/* confdefs.h.  */
30793_ACEOF
30794cat confdefs.h >>conftest.$ac_ext
30795cat >>conftest.$ac_ext <<_ACEOF
30796/* end confdefs.h.  */
30797
30798/* Override any gcc2 internal prototype to avoid an error.  */
30799#ifdef __cplusplus
30800extern "C"
30801#endif
30802/* We use char because int might match the return type of a gcc2
30803   builtin and then its argument prototype would still apply.  */
30804char remove ();
30805int
30806main ()
30807{
30808remove ();
30809  ;
30810  return 0;
30811}
30812_ACEOF
30813rm -f conftest.$ac_objext conftest$ac_exeext
30814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30815  (eval $ac_link) 2>conftest.er1
30816  ac_status=$?
30817  grep -v '^ *+' conftest.er1 >conftest.err
30818  rm -f conftest.er1
30819  cat conftest.err >&5
30820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821  (exit $ac_status); } &&
30822	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30824  (eval $ac_try) 2>&5
30825  ac_status=$?
30826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827  (exit $ac_status); }; } &&
30828	 { ac_try='test -s conftest$ac_exeext'
30829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30830  (eval $ac_try) 2>&5
30831  ac_status=$?
30832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833  (exit $ac_status); }; }; then
30834  ac_cv_lib_posix_remove=yes
30835else
30836  echo "$as_me: failed program was:" >&5
30837sed 's/^/| /' conftest.$ac_ext >&5
30838
30839ac_cv_lib_posix_remove=no
30840fi
30841rm -f conftest.err conftest.$ac_objext \
30842      conftest$ac_exeext conftest.$ac_ext
30843LIBS=$ac_check_lib_save_LIBS
30844fi
30845echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30846echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30847if test $ac_cv_lib_posix_remove = yes; then
30848  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30849fi
30850
30851    fi
30852
30853    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30854    echo "$as_me:$LINENO: checking for shmat" >&5
30855echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30856if test "${ac_cv_func_shmat+set}" = set; then
30857  echo $ECHO_N "(cached) $ECHO_C" >&6
30858else
30859  cat >conftest.$ac_ext <<_ACEOF
30860/* confdefs.h.  */
30861_ACEOF
30862cat confdefs.h >>conftest.$ac_ext
30863cat >>conftest.$ac_ext <<_ACEOF
30864/* end confdefs.h.  */
30865/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30866   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30867#define shmat innocuous_shmat
30868
30869/* System header to define __stub macros and hopefully few prototypes,
30870    which can conflict with char shmat (); below.
30871    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30872    <limits.h> exists even on freestanding compilers.  */
30873
30874#ifdef __STDC__
30875# include <limits.h>
30876#else
30877# include <assert.h>
30878#endif
30879
30880#undef shmat
30881
30882/* Override any gcc2 internal prototype to avoid an error.  */
30883#ifdef __cplusplus
30884extern "C"
30885{
30886#endif
30887/* We use char because int might match the return type of a gcc2
30888   builtin and then its argument prototype would still apply.  */
30889char shmat ();
30890/* The GNU C library defines this for functions which it implements
30891    to always fail with ENOSYS.  Some functions are actually named
30892    something starting with __ and the normal name is an alias.  */
30893#if defined (__stub_shmat) || defined (__stub___shmat)
30894choke me
30895#else
30896char (*f) () = shmat;
30897#endif
30898#ifdef __cplusplus
30899}
30900#endif
30901
30902int
30903main ()
30904{
30905return f != shmat;
30906  ;
30907  return 0;
30908}
30909_ACEOF
30910rm -f conftest.$ac_objext conftest$ac_exeext
30911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30912  (eval $ac_link) 2>conftest.er1
30913  ac_status=$?
30914  grep -v '^ *+' conftest.er1 >conftest.err
30915  rm -f conftest.er1
30916  cat conftest.err >&5
30917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918  (exit $ac_status); } &&
30919	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30921  (eval $ac_try) 2>&5
30922  ac_status=$?
30923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924  (exit $ac_status); }; } &&
30925	 { ac_try='test -s conftest$ac_exeext'
30926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30927  (eval $ac_try) 2>&5
30928  ac_status=$?
30929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930  (exit $ac_status); }; }; then
30931  ac_cv_func_shmat=yes
30932else
30933  echo "$as_me: failed program was:" >&5
30934sed 's/^/| /' conftest.$ac_ext >&5
30935
30936ac_cv_func_shmat=no
30937fi
30938rm -f conftest.err conftest.$ac_objext \
30939      conftest$ac_exeext conftest.$ac_ext
30940fi
30941echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30942echo "${ECHO_T}$ac_cv_func_shmat" >&6
30943
30944    if test $ac_cv_func_shmat = no; then
30945      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30946echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30947if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30948  echo $ECHO_N "(cached) $ECHO_C" >&6
30949else
30950  ac_check_lib_save_LIBS=$LIBS
30951LIBS="-lipc  $LIBS"
30952cat >conftest.$ac_ext <<_ACEOF
30953/* confdefs.h.  */
30954_ACEOF
30955cat confdefs.h >>conftest.$ac_ext
30956cat >>conftest.$ac_ext <<_ACEOF
30957/* end confdefs.h.  */
30958
30959/* Override any gcc2 internal prototype to avoid an error.  */
30960#ifdef __cplusplus
30961extern "C"
30962#endif
30963/* We use char because int might match the return type of a gcc2
30964   builtin and then its argument prototype would still apply.  */
30965char shmat ();
30966int
30967main ()
30968{
30969shmat ();
30970  ;
30971  return 0;
30972}
30973_ACEOF
30974rm -f conftest.$ac_objext conftest$ac_exeext
30975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30976  (eval $ac_link) 2>conftest.er1
30977  ac_status=$?
30978  grep -v '^ *+' conftest.er1 >conftest.err
30979  rm -f conftest.er1
30980  cat conftest.err >&5
30981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982  (exit $ac_status); } &&
30983	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
30984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30985  (eval $ac_try) 2>&5
30986  ac_status=$?
30987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988  (exit $ac_status); }; } &&
30989	 { ac_try='test -s conftest$ac_exeext'
30990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991  (eval $ac_try) 2>&5
30992  ac_status=$?
30993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994  (exit $ac_status); }; }; then
30995  ac_cv_lib_ipc_shmat=yes
30996else
30997  echo "$as_me: failed program was:" >&5
30998sed 's/^/| /' conftest.$ac_ext >&5
30999
31000ac_cv_lib_ipc_shmat=no
31001fi
31002rm -f conftest.err conftest.$ac_objext \
31003      conftest$ac_exeext conftest.$ac_ext
31004LIBS=$ac_check_lib_save_LIBS
31005fi
31006echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31007echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
31008if test $ac_cv_lib_ipc_shmat = yes; then
31009  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31010fi
31011
31012    fi
31013  fi
31014
31015  # Check for libraries that X11R6 Xt/Xaw programs need.
31016  ac_save_LDFLAGS=$LDFLAGS
31017  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31018  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31019  # check for ICE first), but we must link in the order -lSM -lICE or
31020  # we get undefined symbols.  So assume we have SM if we have ICE.
31021  # These have to be linked with before -lX11, unlike the other
31022  # libraries we check for below, so use a different variable.
31023  # John Interrante, Karl Berry
31024  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31025echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
31026if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31027  echo $ECHO_N "(cached) $ECHO_C" >&6
31028else
31029  ac_check_lib_save_LIBS=$LIBS
31030LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31031cat >conftest.$ac_ext <<_ACEOF
31032/* confdefs.h.  */
31033_ACEOF
31034cat confdefs.h >>conftest.$ac_ext
31035cat >>conftest.$ac_ext <<_ACEOF
31036/* end confdefs.h.  */
31037
31038/* Override any gcc2 internal prototype to avoid an error.  */
31039#ifdef __cplusplus
31040extern "C"
31041#endif
31042/* We use char because int might match the return type of a gcc2
31043   builtin and then its argument prototype would still apply.  */
31044char IceConnectionNumber ();
31045int
31046main ()
31047{
31048IceConnectionNumber ();
31049  ;
31050  return 0;
31051}
31052_ACEOF
31053rm -f conftest.$ac_objext conftest$ac_exeext
31054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31055  (eval $ac_link) 2>conftest.er1
31056  ac_status=$?
31057  grep -v '^ *+' conftest.er1 >conftest.err
31058  rm -f conftest.er1
31059  cat conftest.err >&5
31060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061  (exit $ac_status); } &&
31062	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
31063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31064  (eval $ac_try) 2>&5
31065  ac_status=$?
31066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067  (exit $ac_status); }; } &&
31068	 { ac_try='test -s conftest$ac_exeext'
31069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070  (eval $ac_try) 2>&5
31071  ac_status=$?
31072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073  (exit $ac_status); }; }; then
31074  ac_cv_lib_ICE_IceConnectionNumber=yes
31075else
31076  echo "$as_me: failed program was:" >&5
31077sed 's/^/| /' conftest.$ac_ext >&5
31078
31079ac_cv_lib_ICE_IceConnectionNumber=no
31080fi
31081rm -f conftest.err conftest.$ac_objext \
31082      conftest$ac_exeext conftest.$ac_ext
31083LIBS=$ac_check_lib_save_LIBS
31084fi
31085echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31086echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
31087if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31088  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31089fi
31090
31091  LDFLAGS=$ac_save_LDFLAGS
31092
31093fi
31094
31095
31096        if test "$no_x" = "yes"; then
31097          { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31098echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31099   { (exit 1); exit 1; }; }
31100        fi
31101
31102                                GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31103        TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31104        AFMINSTALL=afminstall
31105        COMPILED_X_PROGRAM=0
31106
31107    fi
31108
31109    if test "$wxUSE_X11" = 1; then
31110        if test "$wxUSE_NANOX" = "yes"; then
31111            echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31112echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
31113            if test "x$MICROWIN" = x ; then
31114                echo "$as_me:$LINENO: result: not found" >&5
31115echo "${ECHO_T}not found" >&6
31116                { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31117echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31118   { (exit 1); exit 1; }; }
31119            else
31120                echo "$as_me:$LINENO: result: $MICROWIN" >&5
31121echo "${ECHO_T}$MICROWIN" >&6
31122                cat >>confdefs.h <<\_ACEOF
31123#define wxUSE_NANOX 1
31124_ACEOF
31125
31126            fi
31127        fi
31128
31129        if test "$wxUSE_UNICODE" = "yes"; then
31130
31131
31132if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31133	if test -n "$ac_tool_prefix"; then
31134  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31135set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31136echo "$as_me:$LINENO: checking for $ac_word" >&5
31137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31138if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31139  echo $ECHO_N "(cached) $ECHO_C" >&6
31140else
31141  case $PKG_CONFIG in
31142  [\\/]* | ?:[\\/]*)
31143  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31144  ;;
31145  *)
31146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31147for as_dir in $PATH
31148do
31149  IFS=$as_save_IFS
31150  test -z "$as_dir" && as_dir=.
31151  for ac_exec_ext in '' $ac_executable_extensions; do
31152  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31153    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31154    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31155    break 2
31156  fi
31157done
31158done
31159
31160  ;;
31161esac
31162fi
31163PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31164
31165if test -n "$PKG_CONFIG"; then
31166  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31167echo "${ECHO_T}$PKG_CONFIG" >&6
31168else
31169  echo "$as_me:$LINENO: result: no" >&5
31170echo "${ECHO_T}no" >&6
31171fi
31172
31173fi
31174if test -z "$ac_cv_path_PKG_CONFIG"; then
31175  ac_pt_PKG_CONFIG=$PKG_CONFIG
31176  # Extract the first word of "pkg-config", so it can be a program name with args.
31177set dummy pkg-config; ac_word=$2
31178echo "$as_me:$LINENO: checking for $ac_word" >&5
31179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31180if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31181  echo $ECHO_N "(cached) $ECHO_C" >&6
31182else
31183  case $ac_pt_PKG_CONFIG in
31184  [\\/]* | ?:[\\/]*)
31185  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31186  ;;
31187  *)
31188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31189for as_dir in $PATH
31190do
31191  IFS=$as_save_IFS
31192  test -z "$as_dir" && as_dir=.
31193  for ac_exec_ext in '' $ac_executable_extensions; do
31194  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31195    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31197    break 2
31198  fi
31199done
31200done
31201
31202  ;;
31203esac
31204fi
31205ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31206
31207if test -n "$ac_pt_PKG_CONFIG"; then
31208  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31209echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
31210else
31211  echo "$as_me:$LINENO: result: no" >&5
31212echo "${ECHO_T}no" >&6
31213fi
31214
31215  PKG_CONFIG=$ac_pt_PKG_CONFIG
31216else
31217  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31218fi
31219
31220fi
31221if test -n "$PKG_CONFIG"; then
31222	_pkg_min_version=0.9.0
31223	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31224echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
31225	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31226		echo "$as_me:$LINENO: result: yes" >&5
31227echo "${ECHO_T}yes" >&6
31228	else
31229		echo "$as_me:$LINENO: result: no" >&5
31230echo "${ECHO_T}no" >&6
31231		PKG_CONFIG=""
31232	fi
31233
31234fi
31235
31236
31237pkg_failed=no
31238echo "$as_me:$LINENO: checking for PANGOX" >&5
31239echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
31240
31241if test -n "$PKG_CONFIG"; then
31242    if test -n "$PANGOX_CFLAGS"; then
31243        pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31244    else
31245        if test -n "$PKG_CONFIG" && \
31246    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31247  ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31248  ac_status=$?
31249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250  (exit $ac_status); }; then
31251  pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31252else
31253  pkg_failed=yes
31254fi
31255    fi
31256else
31257	pkg_failed=untried
31258fi
31259if test -n "$PKG_CONFIG"; then
31260    if test -n "$PANGOX_LIBS"; then
31261        pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31262    else
31263        if test -n "$PKG_CONFIG" && \
31264    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31265  ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31266  ac_status=$?
31267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268  (exit $ac_status); }; then
31269  pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31270else
31271  pkg_failed=yes
31272fi
31273    fi
31274else
31275	pkg_failed=untried
31276fi
31277
31278
31279
31280if test $pkg_failed = yes; then
31281
31282if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31283        _pkg_short_errors_supported=yes
31284else
31285        _pkg_short_errors_supported=no
31286fi
31287        if test $_pkg_short_errors_supported = yes; then
31288	        PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31289        else
31290	        PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31291        fi
31292	# Put the nasty error message in config.log where it belongs
31293	echo "$PANGOX_PKG_ERRORS" >&5
31294
31295
31296                    { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31297echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31298   { (exit 1); exit 1; }; }
31299
31300
31301elif test $pkg_failed = untried; then
31302
31303                    { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31304echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31305   { (exit 1); exit 1; }; }
31306
31307
31308else
31309	PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31310	PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31311        echo "$as_me:$LINENO: result: yes" >&5
31312echo "${ECHO_T}yes" >&6
31313
31314                    CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31315                    CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31316                    GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31317
31318fi
31319
31320pkg_failed=no
31321echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31322echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31323
31324if test -n "$PKG_CONFIG"; then
31325    if test -n "$PANGOFT2_CFLAGS"; then
31326        pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31327    else
31328        if test -n "$PKG_CONFIG" && \
31329    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31330  ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31331  ac_status=$?
31332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333  (exit $ac_status); }; then
31334  pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31335else
31336  pkg_failed=yes
31337fi
31338    fi
31339else
31340	pkg_failed=untried
31341fi
31342if test -n "$PKG_CONFIG"; then
31343    if test -n "$PANGOFT2_LIBS"; then
31344        pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31345    else
31346        if test -n "$PKG_CONFIG" && \
31347    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31348  ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31349  ac_status=$?
31350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351  (exit $ac_status); }; then
31352  pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31353else
31354  pkg_failed=yes
31355fi
31356    fi
31357else
31358	pkg_failed=untried
31359fi
31360
31361
31362
31363if test $pkg_failed = yes; then
31364
31365if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31366        _pkg_short_errors_supported=yes
31367else
31368        _pkg_short_errors_supported=no
31369fi
31370        if test $_pkg_short_errors_supported = yes; then
31371	        PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31372        else
31373	        PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31374        fi
31375	# Put the nasty error message in config.log where it belongs
31376	echo "$PANGOFT2_PKG_ERRORS" >&5
31377
31378
31379                    { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31380echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31381                    wxUSE_PRINTING_ARCHITECTURE="no"
31382
31383
31384elif test $pkg_failed = untried; then
31385
31386                    { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31387echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31388                    wxUSE_PRINTING_ARCHITECTURE="no"
31389
31390
31391else
31392	PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31393	PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31394        echo "$as_me:$LINENO: result: yes" >&5
31395echo "${ECHO_T}yes" >&6
31396
31397                    CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31398                    CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31399                    GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31400
31401fi
31402
31403pkg_failed=no
31404echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31405echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
31406
31407if test -n "$PKG_CONFIG"; then
31408    if test -n "$PANGOXFT_CFLAGS"; then
31409        pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31410    else
31411        if test -n "$PKG_CONFIG" && \
31412    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31413  ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31414  ac_status=$?
31415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416  (exit $ac_status); }; then
31417  pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31418else
31419  pkg_failed=yes
31420fi
31421    fi
31422else
31423	pkg_failed=untried
31424fi
31425if test -n "$PKG_CONFIG"; then
31426    if test -n "$PANGOXFT_LIBS"; then
31427        pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31428    else
31429        if test -n "$PKG_CONFIG" && \
31430    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31431  ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31432  ac_status=$?
31433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434  (exit $ac_status); }; then
31435  pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31436else
31437  pkg_failed=yes
31438fi
31439    fi
31440else
31441	pkg_failed=untried
31442fi
31443
31444
31445
31446if test $pkg_failed = yes; then
31447
31448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31449        _pkg_short_errors_supported=yes
31450else
31451        _pkg_short_errors_supported=no
31452fi
31453        if test $_pkg_short_errors_supported = yes; then
31454	        PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31455        else
31456	        PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31457        fi
31458	# Put the nasty error message in config.log where it belongs
31459	echo "$PANGOXFT_PKG_ERRORS" >&5
31460
31461
31462                    { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31463echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31464
31465
31466elif test $pkg_failed = untried; then
31467
31468                    { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31469echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31470
31471
31472else
31473	PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31474	PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31475        echo "$as_me:$LINENO: result: yes" >&5
31476echo "${ECHO_T}yes" >&6
31477
31478                    cat >>confdefs.h <<\_ACEOF
31479#define HAVE_PANGO_XFT 1
31480_ACEOF
31481
31482                    CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31483                    CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31484                    GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31485
31486fi
31487            save_LIBS="$LIBS"
31488            LIBS="$LIBS $PANGOX_LIBS"
31489
31490for ac_func in pango_font_family_is_monospace
31491do
31492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31493echo "$as_me:$LINENO: checking for $ac_func" >&5
31494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31495if eval "test \"\${$as_ac_var+set}\" = set"; then
31496  echo $ECHO_N "(cached) $ECHO_C" >&6
31497else
31498  cat >conftest.$ac_ext <<_ACEOF
31499/* confdefs.h.  */
31500_ACEOF
31501cat confdefs.h >>conftest.$ac_ext
31502cat >>conftest.$ac_ext <<_ACEOF
31503/* end confdefs.h.  */
31504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31505   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31506#define $ac_func innocuous_$ac_func
31507
31508/* System header to define __stub macros and hopefully few prototypes,
31509    which can conflict with char $ac_func (); below.
31510    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31511    <limits.h> exists even on freestanding compilers.  */
31512
31513#ifdef __STDC__
31514# include <limits.h>
31515#else
31516# include <assert.h>
31517#endif
31518
31519#undef $ac_func
31520
31521/* Override any gcc2 internal prototype to avoid an error.  */
31522#ifdef __cplusplus
31523extern "C"
31524{
31525#endif
31526/* We use char because int might match the return type of a gcc2
31527   builtin and then its argument prototype would still apply.  */
31528char $ac_func ();
31529/* The GNU C library defines this for functions which it implements
31530    to always fail with ENOSYS.  Some functions are actually named
31531    something starting with __ and the normal name is an alias.  */
31532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31533choke me
31534#else
31535char (*f) () = $ac_func;
31536#endif
31537#ifdef __cplusplus
31538}
31539#endif
31540
31541int
31542main ()
31543{
31544return f != $ac_func;
31545  ;
31546  return 0;
31547}
31548_ACEOF
31549rm -f conftest.$ac_objext conftest$ac_exeext
31550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31551  (eval $ac_link) 2>conftest.er1
31552  ac_status=$?
31553  grep -v '^ *+' conftest.er1 >conftest.err
31554  rm -f conftest.er1
31555  cat conftest.err >&5
31556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557  (exit $ac_status); } &&
31558	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
31559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31560  (eval $ac_try) 2>&5
31561  ac_status=$?
31562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563  (exit $ac_status); }; } &&
31564	 { ac_try='test -s conftest$ac_exeext'
31565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31566  (eval $ac_try) 2>&5
31567  ac_status=$?
31568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569  (exit $ac_status); }; }; then
31570  eval "$as_ac_var=yes"
31571else
31572  echo "$as_me: failed program was:" >&5
31573sed 's/^/| /' conftest.$ac_ext >&5
31574
31575eval "$as_ac_var=no"
31576fi
31577rm -f conftest.err conftest.$ac_objext \
31578      conftest$ac_exeext conftest.$ac_ext
31579fi
31580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31582if test `eval echo '${'$as_ac_var'}'` = yes; then
31583  cat >>confdefs.h <<_ACEOF
31584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31585_ACEOF
31586
31587fi
31588done
31589
31590            LIBS="$save_LIBS"
31591        fi
31592
31593        wxUSE_UNIVERSAL="yes"
31594
31595        if test "$wxUSE_NANOX" = "yes"; then
31596            TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31597            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"
31598            GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31599        else
31600            GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31601        fi
31602
31603        TOOLKIT=X11
31604        GUIDIST=X11_DIST
31605    fi
31606
31607    if test "$wxUSE_MOTIF" = 1; then
31608        if test "$wxUSE_UNICODE" = "yes"; then
31609            { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31610echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31611   { (exit 1); exit 1; }; }
31612        fi
31613
31614        echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31615echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
31616
31617ac_find_includes=
31618for ac_dir in $SEARCH_INCLUDE /usr/include;
31619  do
31620    if test -f "$ac_dir/Xm/Xm.h"; then
31621      ac_find_includes=$ac_dir
31622      break
31623    fi
31624  done
31625
31626        if test "$ac_find_includes" != "" ; then
31627            echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31628echo "${ECHO_T}found in $ac_find_includes" >&6
31629
31630    if test "x$ac_find_includes" = "x/usr/include"; then
31631    ac_path_to_include=""
31632  else
31633    echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31634    result=$?
31635    if test $result = 0; then
31636      ac_path_to_include=""
31637    else
31638      ac_path_to_include=" -I$ac_find_includes"
31639    fi
31640  fi
31641
31642            TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31643        else
31644            save_CFLAGS=$CFLAGS
31645            CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31646
31647            cat >conftest.$ac_ext <<_ACEOF
31648/* confdefs.h.  */
31649_ACEOF
31650cat confdefs.h >>conftest.$ac_ext
31651cat >>conftest.$ac_ext <<_ACEOF
31652/* end confdefs.h.  */
31653
31654                    #include <Xm/Xm.h>
31655
31656int
31657main ()
31658{
31659
31660                    int version;
31661                    version = xmUseVersion;
31662
31663  ;
31664  return 0;
31665}
31666_ACEOF
31667rm -f conftest.$ac_objext
31668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31669  (eval $ac_compile) 2>conftest.er1
31670  ac_status=$?
31671  grep -v '^ *+' conftest.er1 >conftest.err
31672  rm -f conftest.er1
31673  cat conftest.err >&5
31674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675  (exit $ac_status); } &&
31676	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
31677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31678  (eval $ac_try) 2>&5
31679  ac_status=$?
31680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681  (exit $ac_status); }; } &&
31682	 { ac_try='test -s conftest.$ac_objext'
31683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31684  (eval $ac_try) 2>&5
31685  ac_status=$?
31686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687  (exit $ac_status); }; }; then
31688
31689                    echo "$as_me:$LINENO: result: found in default search path" >&5
31690echo "${ECHO_T}found in default search path" >&6
31691                    COMPILED_X_PROGRAM=1
31692
31693else
31694  echo "$as_me: failed program was:" >&5
31695sed 's/^/| /' conftest.$ac_ext >&5
31696
31697
31698                    echo "$as_me:$LINENO: result: no" >&5
31699echo "${ECHO_T}no" >&6
31700                    { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31701echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31702   { (exit 1); exit 1; }; }
31703
31704
31705fi
31706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31707
31708            CFLAGS=$save_CFLAGS
31709        fi
31710
31711
31712        echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31713echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31714
31715  ac_find_libraries=
31716  for ac_dir in $SEARCH_LIB;
31717  do
31718    for ac_extension in a so sl dylib dll.a; do
31719      if test -f "$ac_dir/libXm.$ac_extension"; then
31720        ac_find_libraries=$ac_dir
31721        break 2
31722      fi
31723    done
31724  done
31725
31726
31727        if test "x$ac_find_libraries" != "x" ; then
31728            echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31729echo "${ECHO_T}found in $ac_find_libraries" >&6
31730
31731
31732    if test "$ac_find_libraries" = "default location"; then
31733    ac_path_to_link=""
31734  else
31735    echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31736    result=$?
31737    if test $result = 0; then
31738      ac_path_to_link=""
31739    else
31740      ac_path_to_link=" -L$ac_find_libraries"
31741    fi
31742  fi
31743
31744            GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31745        else
31746                                                save_CFLAGS=$CFLAGS
31747            CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31748            save_LIBS="$LIBS"
31749            LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31750
31751            cat >conftest.$ac_ext <<_ACEOF
31752/* confdefs.h.  */
31753_ACEOF
31754cat confdefs.h >>conftest.$ac_ext
31755cat >>conftest.$ac_ext <<_ACEOF
31756/* end confdefs.h.  */
31757
31758                    #include <Xm/Xm.h>
31759
31760int
31761main ()
31762{
31763
31764                    int version;
31765                    version = xmUseVersion;
31766
31767  ;
31768  return 0;
31769}
31770_ACEOF
31771rm -f conftest.$ac_objext conftest$ac_exeext
31772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31773  (eval $ac_link) 2>conftest.er1
31774  ac_status=$?
31775  grep -v '^ *+' conftest.er1 >conftest.err
31776  rm -f conftest.er1
31777  cat conftest.err >&5
31778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779  (exit $ac_status); } &&
31780	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
31781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31782  (eval $ac_try) 2>&5
31783  ac_status=$?
31784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785  (exit $ac_status); }; } &&
31786	 { ac_try='test -s conftest$ac_exeext'
31787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31788  (eval $ac_try) 2>&5
31789  ac_status=$?
31790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791  (exit $ac_status); }; }; then
31792
31793                    echo "$as_me:$LINENO: result: found in default search path" >&5
31794echo "${ECHO_T}found in default search path" >&6
31795                    COMPILED_X_PROGRAM=1
31796
31797else
31798  echo "$as_me: failed program was:" >&5
31799sed 's/^/| /' conftest.$ac_ext >&5
31800
31801
31802                    echo "$as_me:$LINENO: result: no" >&5
31803echo "${ECHO_T}no" >&6
31804                    { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31805echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31806   { (exit 1); exit 1; }; }
31807
31808
31809fi
31810rm -f conftest.err conftest.$ac_objext \
31811      conftest$ac_exeext conftest.$ac_ext
31812
31813            CFLAGS=$save_CFLAGS
31814            LIBS="$save_LIBS"
31815        fi
31816
31817        echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31818echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31819        libp_link=""
31820        libsm_ice_link=""
31821        libs_found=0
31822        for libp in "" " -lXp"; do
31823            if test "$libs_found" = "0"; then
31824                for libsm_ice in "" " -lSM -lICE"; do
31825                    if test "$libs_found" = "0"; then
31826                        save_LIBS="$LIBS"
31827                        LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31828                        save_CFLAGS=$CFLAGS
31829                        CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31830
31831                        cat >conftest.$ac_ext <<_ACEOF
31832/* confdefs.h.  */
31833_ACEOF
31834cat confdefs.h >>conftest.$ac_ext
31835cat >>conftest.$ac_ext <<_ACEOF
31836/* end confdefs.h.  */
31837
31838                                #include <Xm/Xm.h>
31839                                #include <Xm/List.h>
31840
31841int
31842main ()
31843{
31844
31845                                XmString string = NULL;
31846                                Widget w = NULL;
31847                                int position = 0;
31848                                XmListAddItem(w, string, position);
31849
31850  ;
31851  return 0;
31852}
31853_ACEOF
31854rm -f conftest.$ac_objext conftest$ac_exeext
31855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31856  (eval $ac_link) 2>conftest.er1
31857  ac_status=$?
31858  grep -v '^ *+' conftest.er1 >conftest.err
31859  rm -f conftest.er1
31860  cat conftest.err >&5
31861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862  (exit $ac_status); } &&
31863	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
31864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31865  (eval $ac_try) 2>&5
31866  ac_status=$?
31867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868  (exit $ac_status); }; } &&
31869	 { ac_try='test -s conftest$ac_exeext'
31870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31871  (eval $ac_try) 2>&5
31872  ac_status=$?
31873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874  (exit $ac_status); }; }; then
31875
31876                                libp_link="$libp"
31877                                libsm_ice_link="$libsm_ice"
31878                                echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31879echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31880                                libs_found=1
31881
31882else
31883  echo "$as_me: failed program was:" >&5
31884sed 's/^/| /' conftest.$ac_ext >&5
31885
31886
31887
31888fi
31889rm -f conftest.err conftest.$ac_objext \
31890      conftest$ac_exeext conftest.$ac_ext
31891
31892                        LIBS="$save_LIBS"
31893                        CFLAGS=$save_CFLAGS
31894                    fi
31895                done
31896            fi
31897        done
31898
31899        if test "$libs_found" = "0"; then
31900            echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31901echo "${ECHO_T}can't find the right libraries" >&6
31902            { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31903echo "$as_me: error: can't link a simple motif program" >&2;}
31904   { (exit 1); exit 1; }; }
31905        fi
31906
31907                        echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31908echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31909if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31910  echo $ECHO_N "(cached) $ECHO_C" >&6
31911else
31912  ac_check_lib_save_LIBS=$LIBS
31913LIBS="-lSgm  $LIBS"
31914cat >conftest.$ac_ext <<_ACEOF
31915/* confdefs.h.  */
31916_ACEOF
31917cat confdefs.h >>conftest.$ac_ext
31918cat >>conftest.$ac_ext <<_ACEOF
31919/* end confdefs.h.  */
31920
31921/* Override any gcc2 internal prototype to avoid an error.  */
31922#ifdef __cplusplus
31923extern "C"
31924#endif
31925/* We use char because int might match the return type of a gcc2
31926   builtin and then its argument prototype would still apply.  */
31927char SgCreateList ();
31928int
31929main ()
31930{
31931SgCreateList ();
31932  ;
31933  return 0;
31934}
31935_ACEOF
31936rm -f conftest.$ac_objext conftest$ac_exeext
31937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31938  (eval $ac_link) 2>conftest.er1
31939  ac_status=$?
31940  grep -v '^ *+' conftest.er1 >conftest.err
31941  rm -f conftest.er1
31942  cat conftest.err >&5
31943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944  (exit $ac_status); } &&
31945	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
31946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31947  (eval $ac_try) 2>&5
31948  ac_status=$?
31949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950  (exit $ac_status); }; } &&
31951	 { ac_try='test -s conftest$ac_exeext'
31952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31953  (eval $ac_try) 2>&5
31954  ac_status=$?
31955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956  (exit $ac_status); }; }; then
31957  ac_cv_lib_Sgm_SgCreateList=yes
31958else
31959  echo "$as_me: failed program was:" >&5
31960sed 's/^/| /' conftest.$ac_ext >&5
31961
31962ac_cv_lib_Sgm_SgCreateList=no
31963fi
31964rm -f conftest.err conftest.$ac_objext \
31965      conftest$ac_exeext conftest.$ac_ext
31966LIBS=$ac_check_lib_save_LIBS
31967fi
31968echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31969echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31970if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31971  libsgm_link=" -lSgm"
31972fi
31973
31974
31975        save_CFLAGS=$CFLAGS
31976        CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31977
31978        echo "$as_me:$LINENO: checking for Motif 2" >&5
31979echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
31980if test "${wx_cv_lib_motif2+set}" = set; then
31981  echo $ECHO_N "(cached) $ECHO_C" >&6
31982else
31983  cat >conftest.$ac_ext <<_ACEOF
31984/* confdefs.h.  */
31985_ACEOF
31986cat confdefs.h >>conftest.$ac_ext
31987cat >>conftest.$ac_ext <<_ACEOF
31988/* end confdefs.h.  */
31989
31990                            #include <Xm/Xm.h>
31991
31992int
31993main ()
31994{
31995
31996                            #if XmVersion < 2000
31997                            Not Motif 2
31998                            #endif
31999
32000  ;
32001  return 0;
32002}
32003_ACEOF
32004rm -f conftest.$ac_objext
32005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32006  (eval $ac_compile) 2>conftest.er1
32007  ac_status=$?
32008  grep -v '^ *+' conftest.er1 >conftest.err
32009  rm -f conftest.er1
32010  cat conftest.err >&5
32011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012  (exit $ac_status); } &&
32013	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32015  (eval $ac_try) 2>&5
32016  ac_status=$?
32017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018  (exit $ac_status); }; } &&
32019	 { ac_try='test -s conftest.$ac_objext'
32020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32021  (eval $ac_try) 2>&5
32022  ac_status=$?
32023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024  (exit $ac_status); }; }; then
32025  wx_cv_lib_motif2="yes"
32026else
32027  echo "$as_me: failed program was:" >&5
32028sed 's/^/| /' conftest.$ac_ext >&5
32029
32030wx_cv_lib_motif2="no"
32031fi
32032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32033fi
32034echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32035echo "${ECHO_T}$wx_cv_lib_motif2" >&6
32036        if test "$wx_cv_lib_motif2" = "yes"; then
32037            cat >>confdefs.h <<\_ACEOF
32038#define __WXMOTIF20__ 1
32039_ACEOF
32040
32041        else
32042            cat >>confdefs.h <<\_ACEOF
32043#define __WXMOTIF20__ 0
32044_ACEOF
32045
32046        fi
32047
32048        echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32049echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
32050if test "${wx_cv_lib_lesstif+set}" = set; then
32051  echo $ECHO_N "(cached) $ECHO_C" >&6
32052else
32053  cat >conftest.$ac_ext <<_ACEOF
32054/* confdefs.h.  */
32055_ACEOF
32056cat confdefs.h >>conftest.$ac_ext
32057cat >>conftest.$ac_ext <<_ACEOF
32058/* end confdefs.h.  */
32059
32060                            #include <Xm/Xm.h>
32061
32062int
32063main ()
32064{
32065
32066                            #if !defined(LesstifVersion) || LesstifVersion <= 0
32067                            Not Lesstif
32068                            #endif
32069
32070  ;
32071  return 0;
32072}
32073_ACEOF
32074rm -f conftest.$ac_objext
32075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32076  (eval $ac_compile) 2>conftest.er1
32077  ac_status=$?
32078  grep -v '^ *+' conftest.er1 >conftest.err
32079  rm -f conftest.er1
32080  cat conftest.err >&5
32081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082  (exit $ac_status); } &&
32083	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32085  (eval $ac_try) 2>&5
32086  ac_status=$?
32087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088  (exit $ac_status); }; } &&
32089	 { ac_try='test -s conftest.$ac_objext'
32090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32091  (eval $ac_try) 2>&5
32092  ac_status=$?
32093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094  (exit $ac_status); }; }; then
32095  wx_cv_lib_lesstif="yes"
32096else
32097  echo "$as_me: failed program was:" >&5
32098sed 's/^/| /' conftest.$ac_ext >&5
32099
32100wx_cv_lib_lesstif="no"
32101fi
32102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32103
32104fi
32105echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32106echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
32107        if test "$wx_cv_lib_lesstif" = "yes"; then
32108            cat >>confdefs.h <<\_ACEOF
32109#define __WXLESSTIF__ 1
32110_ACEOF
32111
32112        else
32113            cat >>confdefs.h <<\_ACEOF
32114#define __WXLESSTIF__ 0
32115_ACEOF
32116
32117        fi
32118
32119        CFLAGS=$save_CFLAGS
32120
32121        GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32122        TOOLKIT=MOTIF
32123        GUIDIST=MOTIF_DIST
32124    fi
32125
32126        if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32127                if test "$wxUSE_LIBXPM" = "sys"; then
32128            echo "$as_me:$LINENO: checking for Xpm library" >&5
32129echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
32130
32131  ac_find_libraries=
32132  for ac_dir in $SEARCH_LIB;
32133  do
32134    for ac_extension in a so sl dylib dll.a; do
32135      if test -f "$ac_dir/libXpm.$ac_extension"; then
32136        ac_find_libraries=$ac_dir
32137        break 2
32138      fi
32139    done
32140  done
32141
32142            if test "$ac_find_libraries" != "" ; then
32143
32144    if test "$ac_find_libraries" = "default location"; then
32145    ac_path_to_link=""
32146  else
32147    echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32148    result=$?
32149    if test $result = 0; then
32150      ac_path_to_link=""
32151    else
32152      ac_path_to_link=" -L$ac_find_libraries"
32153    fi
32154  fi
32155
32156                GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32157                echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32158echo "${ECHO_T}found in $ac_find_libraries" >&6
32159
32160                echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32161echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
32162if test "${wx_cv_x11_xpm_h+set}" = set; then
32163  echo $ECHO_N "(cached) $ECHO_C" >&6
32164else
32165
32166                        save_CFLAGS=$CFLAGS
32167                        CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32168
32169                        cat >conftest.$ac_ext <<_ACEOF
32170/* confdefs.h.  */
32171_ACEOF
32172cat confdefs.h >>conftest.$ac_ext
32173cat >>conftest.$ac_ext <<_ACEOF
32174/* end confdefs.h.  */
32175
32176                                #include <X11/xpm.h>
32177
32178int
32179main ()
32180{
32181
32182                                int version;
32183                                version = XpmLibraryVersion();
32184
32185  ;
32186  return 0;
32187}
32188_ACEOF
32189rm -f conftest.$ac_objext
32190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32191  (eval $ac_compile) 2>conftest.er1
32192  ac_status=$?
32193  grep -v '^ *+' conftest.er1 >conftest.err
32194  rm -f conftest.er1
32195  cat conftest.err >&5
32196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197  (exit $ac_status); } &&
32198	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32200  (eval $ac_try) 2>&5
32201  ac_status=$?
32202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203  (exit $ac_status); }; } &&
32204	 { ac_try='test -s conftest.$ac_objext'
32205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32206  (eval $ac_try) 2>&5
32207  ac_status=$?
32208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209  (exit $ac_status); }; }; then
32210  wx_cv_x11_xpm_h=yes
32211else
32212  echo "$as_me: failed program was:" >&5
32213sed 's/^/| /' conftest.$ac_ext >&5
32214
32215wx_cv_x11_xpm_h=no
32216
32217fi
32218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32219
32220                        CFLAGS=$save_CFLAGS
32221
32222
32223fi
32224echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32225echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
32226
32227                if test $wx_cv_x11_xpm_h = "yes"; then
32228                    GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32229                    cat >>confdefs.h <<\_ACEOF
32230#define wxHAVE_LIB_XPM 1
32231_ACEOF
32232
32233                else
32234                    { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32235echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32236                fi
32237            fi
32238
32239        fi
32240
32241                echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32242echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
32243if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32244  echo $ECHO_N "(cached) $ECHO_C" >&6
32245else
32246  ac_check_lib_save_LIBS=$LIBS
32247LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32248cat >conftest.$ac_ext <<_ACEOF
32249/* confdefs.h.  */
32250_ACEOF
32251cat confdefs.h >>conftest.$ac_ext
32252cat >>conftest.$ac_ext <<_ACEOF
32253/* end confdefs.h.  */
32254
32255/* Override any gcc2 internal prototype to avoid an error.  */
32256#ifdef __cplusplus
32257extern "C"
32258#endif
32259/* We use char because int might match the return type of a gcc2
32260   builtin and then its argument prototype would still apply.  */
32261char XShapeQueryExtension ();
32262int
32263main ()
32264{
32265XShapeQueryExtension ();
32266  ;
32267  return 0;
32268}
32269_ACEOF
32270rm -f conftest.$ac_objext conftest$ac_exeext
32271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32272  (eval $ac_link) 2>conftest.er1
32273  ac_status=$?
32274  grep -v '^ *+' conftest.er1 >conftest.err
32275  rm -f conftest.er1
32276  cat conftest.err >&5
32277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278  (exit $ac_status); } &&
32279	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281  (eval $ac_try) 2>&5
32282  ac_status=$?
32283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284  (exit $ac_status); }; } &&
32285	 { ac_try='test -s conftest$ac_exeext'
32286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32287  (eval $ac_try) 2>&5
32288  ac_status=$?
32289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290  (exit $ac_status); }; }; then
32291  ac_cv_lib_Xext_XShapeQueryExtension=yes
32292else
32293  echo "$as_me: failed program was:" >&5
32294sed 's/^/| /' conftest.$ac_ext >&5
32295
32296ac_cv_lib_Xext_XShapeQueryExtension=no
32297fi
32298rm -f conftest.err conftest.$ac_objext \
32299      conftest$ac_exeext conftest.$ac_ext
32300LIBS=$ac_check_lib_save_LIBS
32301fi
32302echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32303echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32304if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32305
32306                      GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32307                      wxHAVE_XEXT_LIB=1
32308
32309fi
32310
32311
32312        if test "$wxHAVE_XEXT_LIB" = 1; then
32313            save_CFLAGS="$CFLAGS"
32314            CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32315
32316            echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32317echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32318            cat >conftest.$ac_ext <<_ACEOF
32319/* confdefs.h.  */
32320_ACEOF
32321cat confdefs.h >>conftest.$ac_ext
32322cat >>conftest.$ac_ext <<_ACEOF
32323/* end confdefs.h.  */
32324
32325                            #include <X11/Xlib.h>
32326                            #include <X11/extensions/shape.h>
32327
32328int
32329main ()
32330{
32331
32332                            int dummy1, dummy2;
32333                            XShapeQueryExtension((Display*)NULL,
32334                                                 (int*)NULL, (int*)NULL);
32335
32336  ;
32337  return 0;
32338}
32339_ACEOF
32340rm -f conftest.$ac_objext
32341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32342  (eval $ac_compile) 2>conftest.er1
32343  ac_status=$?
32344  grep -v '^ *+' conftest.er1 >conftest.err
32345  rm -f conftest.er1
32346  cat conftest.err >&5
32347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348  (exit $ac_status); } &&
32349	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32351  (eval $ac_try) 2>&5
32352  ac_status=$?
32353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354  (exit $ac_status); }; } &&
32355	 { ac_try='test -s conftest.$ac_objext'
32356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32357  (eval $ac_try) 2>&5
32358  ac_status=$?
32359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360  (exit $ac_status); }; }; then
32361
32362                            cat >>confdefs.h <<\_ACEOF
32363#define HAVE_XSHAPE 1
32364_ACEOF
32365
32366                            echo "$as_me:$LINENO: result: found" >&5
32367echo "${ECHO_T}found" >&6
32368
32369else
32370  echo "$as_me: failed program was:" >&5
32371sed 's/^/| /' conftest.$ac_ext >&5
32372
32373
32374                            echo "$as_me:$LINENO: result: not found" >&5
32375echo "${ECHO_T}not found" >&6
32376
32377fi
32378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32379            CFLAGS="$save_CFLAGS"
32380
32381        fi
32382    fi
32383
32384    if test "$wxUSE_MAC" = 1; then
32385        echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32386echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32387        if test "$GCC" = yes; then
32388            echo "$as_me:$LINENO: result: gcc" >&5
32389echo "${ECHO_T}gcc" >&6
32390            CPPFLAGS_PASCAL="-fpascal-strings"
32391        elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32392            echo "$as_me:$LINENO: result: xlc" >&5
32393echo "${ECHO_T}xlc" >&6
32394            CPPFLAGS_PASCAL="-qmacpstr"
32395        else
32396            echo "$as_me:$LINENO: result: none" >&5
32397echo "${ECHO_T}none" >&6
32398        fi
32399
32400        if test "x$wxUSE_UNIX" = "xyes"; then
32401            CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32402        else
32403                        CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32404        fi
32405
32406        TOOLKIT=MAC
32407                GUIDIST=MACX_DIST
32408                        WXBASEPORT="_carbon"
32409    fi
32410
32411    if test "$wxUSE_COCOA" = 1; then
32412        TOOLKIT=COCOA
32413        GUIDIST=COCOA_DIST
32414    fi
32415
32416    if test "$wxUSE_PM" = 1; then
32417        TOOLKIT=PM
32418        GUIDIST=PM_DIST
32419        echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32420echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32421if test "${wx_cv_spbcdata+set}" = set; then
32422  echo $ECHO_N "(cached) $ECHO_C" >&6
32423else
32424
32425                cat >conftest.$ac_ext <<_ACEOF
32426/* confdefs.h.  */
32427_ACEOF
32428cat confdefs.h >>conftest.$ac_ext
32429cat >>conftest.$ac_ext <<_ACEOF
32430/* end confdefs.h.  */
32431
32432                        #define INCL_PM
32433                        #include <os2.h>
32434
32435int
32436main ()
32437{
32438
32439                        SPBCDATA test;
32440
32441  ;
32442  return 0;
32443}
32444_ACEOF
32445rm -f conftest.$ac_objext
32446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32447  (eval $ac_compile) 2>conftest.er1
32448  ac_status=$?
32449  grep -v '^ *+' conftest.er1 >conftest.err
32450  rm -f conftest.er1
32451  cat conftest.err >&5
32452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453  (exit $ac_status); } &&
32454	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32456  (eval $ac_try) 2>&5
32457  ac_status=$?
32458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459  (exit $ac_status); }; } &&
32460	 { ac_try='test -s conftest.$ac_objext'
32461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32462  (eval $ac_try) 2>&5
32463  ac_status=$?
32464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465  (exit $ac_status); }; }; then
32466  wx_cv_spbcdata=yes
32467else
32468  echo "$as_me: failed program was:" >&5
32469sed 's/^/| /' conftest.$ac_ext >&5
32470
32471wx_cv_spbcdata=no
32472
32473fi
32474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32475
32476
32477fi
32478echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32479echo "${ECHO_T}$wx_cv_spbcdata" >&6
32480
32481        if test $wx_cv_spbcdata = "yes"; then
32482            cat >>confdefs.h <<\_ACEOF
32483#define HAVE_SPBCDATA 1
32484_ACEOF
32485
32486        fi
32487    fi
32488
32489        if test "$TOOLKIT" = "PM" ; then
32490        TOOLKIT_DIR="os2"
32491    else
32492        TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32493    fi
32494
32495    if test "$wxUSE_UNIVERSAL" = "yes"; then
32496        TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32497        WIDGET_SET=univ
32498    fi
32499
32500        GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32501    DISTDIR="wx\$(TOOLKIT)"
32502else
32503    USE_GUI=0
32504
32505            TOOLKIT_DIR="base"
32506
32507        if test "$USE_WIN32" = 1 ; then
32508                        TOOLKIT="MSW"
32509    fi
32510
32511        GUIDIST="BASE_DIST"
32512    DISTDIR="wxBase"
32513fi
32514
32515
32516if test "$wxUSE_GUI" = "yes"; then
32517    if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32518
32519for ac_header in X11/Xlib.h
32520do
32521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32522echo "$as_me:$LINENO: checking for $ac_header" >&5
32523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32524if eval "test \"\${$as_ac_Header+set}\" = set"; then
32525  echo $ECHO_N "(cached) $ECHO_C" >&6
32526else
32527  cat >conftest.$ac_ext <<_ACEOF
32528/* confdefs.h.  */
32529_ACEOF
32530cat confdefs.h >>conftest.$ac_ext
32531cat >>conftest.$ac_ext <<_ACEOF
32532/* end confdefs.h.  */
32533
32534
32535#include <$ac_header>
32536_ACEOF
32537rm -f conftest.$ac_objext
32538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32539  (eval $ac_compile) 2>conftest.er1
32540  ac_status=$?
32541  grep -v '^ *+' conftest.er1 >conftest.err
32542  rm -f conftest.er1
32543  cat conftest.err >&5
32544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545  (exit $ac_status); } &&
32546	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548  (eval $ac_try) 2>&5
32549  ac_status=$?
32550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551  (exit $ac_status); }; } &&
32552	 { ac_try='test -s conftest.$ac_objext'
32553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32554  (eval $ac_try) 2>&5
32555  ac_status=$?
32556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557  (exit $ac_status); }; }; then
32558  eval "$as_ac_Header=yes"
32559else
32560  echo "$as_me: failed program was:" >&5
32561sed 's/^/| /' conftest.$ac_ext >&5
32562
32563eval "$as_ac_Header=no"
32564fi
32565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32566fi
32567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32569if test `eval echo '${'$as_ac_Header'}'` = yes; then
32570  cat >>confdefs.h <<_ACEOF
32571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32572_ACEOF
32573
32574fi
32575
32576done
32577
32578
32579for ac_header in X11/XKBlib.h
32580do
32581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32582echo "$as_me:$LINENO: checking for $ac_header" >&5
32583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32584if eval "test \"\${$as_ac_Header+set}\" = set"; then
32585  echo $ECHO_N "(cached) $ECHO_C" >&6
32586else
32587  cat >conftest.$ac_ext <<_ACEOF
32588/* confdefs.h.  */
32589_ACEOF
32590cat confdefs.h >>conftest.$ac_ext
32591cat >>conftest.$ac_ext <<_ACEOF
32592/* end confdefs.h.  */
32593
32594                          #if HAVE_X11_XLIB_H
32595                            #include <X11/Xlib.h>
32596                          #endif
32597
32598
32599#include <$ac_header>
32600_ACEOF
32601rm -f conftest.$ac_objext
32602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32603  (eval $ac_compile) 2>conftest.er1
32604  ac_status=$?
32605  grep -v '^ *+' conftest.er1 >conftest.err
32606  rm -f conftest.er1
32607  cat conftest.err >&5
32608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609  (exit $ac_status); } &&
32610	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612  (eval $ac_try) 2>&5
32613  ac_status=$?
32614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615  (exit $ac_status); }; } &&
32616	 { ac_try='test -s conftest.$ac_objext'
32617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32618  (eval $ac_try) 2>&5
32619  ac_status=$?
32620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621  (exit $ac_status); }; }; then
32622  eval "$as_ac_Header=yes"
32623else
32624  echo "$as_me: failed program was:" >&5
32625sed 's/^/| /' conftest.$ac_ext >&5
32626
32627eval "$as_ac_Header=no"
32628fi
32629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32630fi
32631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32633if test `eval echo '${'$as_ac_Header'}'` = yes; then
32634  cat >>confdefs.h <<_ACEOF
32635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32636_ACEOF
32637
32638fi
32639
32640done
32641
32642    fi
32643fi
32644
32645
32646
32647IODBC_C_SRC=""
32648
32649
32650if test "$TOOLKIT" != "MSW" ; then
32651
32652    if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32653
32654        echo "$as_me:$LINENO: checking for sql.h" >&5
32655echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32656if test "${ac_cv_header_sql_h+set}" = set; then
32657  echo $ECHO_N "(cached) $ECHO_C" >&6
32658else
32659  cat >conftest.$ac_ext <<_ACEOF
32660/* confdefs.h.  */
32661_ACEOF
32662cat confdefs.h >>conftest.$ac_ext
32663cat >>conftest.$ac_ext <<_ACEOF
32664/* end confdefs.h.  */
32665
32666
32667#include <sql.h>
32668_ACEOF
32669rm -f conftest.$ac_objext
32670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32671  (eval $ac_compile) 2>conftest.er1
32672  ac_status=$?
32673  grep -v '^ *+' conftest.er1 >conftest.err
32674  rm -f conftest.er1
32675  cat conftest.err >&5
32676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677  (exit $ac_status); } &&
32678	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32680  (eval $ac_try) 2>&5
32681  ac_status=$?
32682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683  (exit $ac_status); }; } &&
32684	 { ac_try='test -s conftest.$ac_objext'
32685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32686  (eval $ac_try) 2>&5
32687  ac_status=$?
32688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689  (exit $ac_status); }; }; then
32690  ac_cv_header_sql_h=yes
32691else
32692  echo "$as_me: failed program was:" >&5
32693sed 's/^/| /' conftest.$ac_ext >&5
32694
32695ac_cv_header_sql_h=no
32696fi
32697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32698fi
32699echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32700echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32701if test $ac_cv_header_sql_h = yes; then
32702  found_sql_h=1
32703fi
32704
32705
32706        if test "x$found_sql_h" = "x1" ; then
32707            echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32708echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32709if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32710  echo $ECHO_N "(cached) $ECHO_C" >&6
32711else
32712  ac_check_lib_save_LIBS=$LIBS
32713LIBS="-liodbc  $LIBS"
32714cat >conftest.$ac_ext <<_ACEOF
32715/* confdefs.h.  */
32716_ACEOF
32717cat confdefs.h >>conftest.$ac_ext
32718cat >>conftest.$ac_ext <<_ACEOF
32719/* end confdefs.h.  */
32720
32721/* Override any gcc2 internal prototype to avoid an error.  */
32722#ifdef __cplusplus
32723extern "C"
32724#endif
32725/* We use char because int might match the return type of a gcc2
32726   builtin and then its argument prototype would still apply.  */
32727char SQLAllocEnv ();
32728int
32729main ()
32730{
32731SQLAllocEnv ();
32732  ;
32733  return 0;
32734}
32735_ACEOF
32736rm -f conftest.$ac_objext conftest$ac_exeext
32737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32738  (eval $ac_link) 2>conftest.er1
32739  ac_status=$?
32740  grep -v '^ *+' conftest.er1 >conftest.err
32741  rm -f conftest.er1
32742  cat conftest.err >&5
32743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744  (exit $ac_status); } &&
32745	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32747  (eval $ac_try) 2>&5
32748  ac_status=$?
32749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750  (exit $ac_status); }; } &&
32751	 { ac_try='test -s conftest$ac_exeext'
32752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32753  (eval $ac_try) 2>&5
32754  ac_status=$?
32755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756  (exit $ac_status); }; }; then
32757  ac_cv_lib_iodbc_SQLAllocEnv=yes
32758else
32759  echo "$as_me: failed program was:" >&5
32760sed 's/^/| /' conftest.$ac_ext >&5
32761
32762ac_cv_lib_iodbc_SQLAllocEnv=no
32763fi
32764rm -f conftest.err conftest.$ac_objext \
32765      conftest$ac_exeext conftest.$ac_ext
32766LIBS=$ac_check_lib_save_LIBS
32767fi
32768echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32769echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32770if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32771  ODBC_LINK=" -liodbc"
32772else
32773
32774                echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32775echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32776if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32777  echo $ECHO_N "(cached) $ECHO_C" >&6
32778else
32779  ac_check_lib_save_LIBS=$LIBS
32780LIBS="-lunixodbc  $LIBS"
32781cat >conftest.$ac_ext <<_ACEOF
32782/* confdefs.h.  */
32783_ACEOF
32784cat confdefs.h >>conftest.$ac_ext
32785cat >>conftest.$ac_ext <<_ACEOF
32786/* end confdefs.h.  */
32787
32788/* Override any gcc2 internal prototype to avoid an error.  */
32789#ifdef __cplusplus
32790extern "C"
32791#endif
32792/* We use char because int might match the return type of a gcc2
32793   builtin and then its argument prototype would still apply.  */
32794char SQLAllocEnv ();
32795int
32796main ()
32797{
32798SQLAllocEnv ();
32799  ;
32800  return 0;
32801}
32802_ACEOF
32803rm -f conftest.$ac_objext conftest$ac_exeext
32804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32805  (eval $ac_link) 2>conftest.er1
32806  ac_status=$?
32807  grep -v '^ *+' conftest.er1 >conftest.err
32808  rm -f conftest.er1
32809  cat conftest.err >&5
32810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811  (exit $ac_status); } &&
32812	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32814  (eval $ac_try) 2>&5
32815  ac_status=$?
32816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817  (exit $ac_status); }; } &&
32818	 { ac_try='test -s conftest$ac_exeext'
32819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32820  (eval $ac_try) 2>&5
32821  ac_status=$?
32822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823  (exit $ac_status); }; }; then
32824  ac_cv_lib_unixodbc_SQLAllocEnv=yes
32825else
32826  echo "$as_me: failed program was:" >&5
32827sed 's/^/| /' conftest.$ac_ext >&5
32828
32829ac_cv_lib_unixodbc_SQLAllocEnv=no
32830fi
32831rm -f conftest.err conftest.$ac_objext \
32832      conftest$ac_exeext conftest.$ac_ext
32833LIBS=$ac_check_lib_save_LIBS
32834fi
32835echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32836echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32837if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32838  ODBC_LINK=" -lunixodbc"
32839else
32840
32841                    echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32842echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32843if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32844  echo $ECHO_N "(cached) $ECHO_C" >&6
32845else
32846  ac_check_lib_save_LIBS=$LIBS
32847LIBS="-lodbc  $LIBS"
32848cat >conftest.$ac_ext <<_ACEOF
32849/* confdefs.h.  */
32850_ACEOF
32851cat confdefs.h >>conftest.$ac_ext
32852cat >>conftest.$ac_ext <<_ACEOF
32853/* end confdefs.h.  */
32854
32855/* Override any gcc2 internal prototype to avoid an error.  */
32856#ifdef __cplusplus
32857extern "C"
32858#endif
32859/* We use char because int might match the return type of a gcc2
32860   builtin and then its argument prototype would still apply.  */
32861char SQLAllocEnv ();
32862int
32863main ()
32864{
32865SQLAllocEnv ();
32866  ;
32867  return 0;
32868}
32869_ACEOF
32870rm -f conftest.$ac_objext conftest$ac_exeext
32871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32872  (eval $ac_link) 2>conftest.er1
32873  ac_status=$?
32874  grep -v '^ *+' conftest.er1 >conftest.err
32875  rm -f conftest.er1
32876  cat conftest.err >&5
32877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878  (exit $ac_status); } &&
32879	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
32880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32881  (eval $ac_try) 2>&5
32882  ac_status=$?
32883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884  (exit $ac_status); }; } &&
32885	 { ac_try='test -s conftest$ac_exeext'
32886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32887  (eval $ac_try) 2>&5
32888  ac_status=$?
32889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890  (exit $ac_status); }; }; then
32891  ac_cv_lib_odbc_SQLAllocEnv=yes
32892else
32893  echo "$as_me: failed program was:" >&5
32894sed 's/^/| /' conftest.$ac_ext >&5
32895
32896ac_cv_lib_odbc_SQLAllocEnv=no
32897fi
32898rm -f conftest.err conftest.$ac_objext \
32899      conftest$ac_exeext conftest.$ac_ext
32900LIBS=$ac_check_lib_save_LIBS
32901fi
32902echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32903echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32904if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32905  ODBC_LINK=" -lodbc"
32906fi
32907
32908
32909fi
32910
32911
32912fi
32913
32914        fi
32915        if test "x$ODBC_LINK" = "x" ; then
32916            if test "$wxUSE_ODBC" = "sys" ; then
32917                { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32918echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32919   { (exit 1); exit 1; }; }
32920            else
32921                { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32922echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32923                wxUSE_ODBC=builtin
32924            fi
32925        else
32926                        wxUSE_ODBC=sys
32927        fi
32928    fi
32929
32930    if test "$wxUSE_ODBC" = "builtin" ; then
32931        cat >>confdefs.h <<\_ACEOF
32932#define wxUSE_BUILTIN_IODBC 1
32933_ACEOF
32934
32935    fi
32936fi
32937
32938if test "$wxUSE_ODBC" != "no" ; then
32939    cat >>confdefs.h <<\_ACEOF
32940#define wxUSE_ODBC 1
32941_ACEOF
32942
32943    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32944
32945        WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
32946fi
32947
32948
32949if test "$wxUSE_DISPLAY" = "yes"; then
32950    if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32951        echo "$as_me:$LINENO: checking for Xinerama" >&5
32952echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32953
32954  ac_find_libraries=
32955  for ac_dir in $SEARCH_LIB;
32956  do
32957    for ac_extension in a so sl dylib dll.a; do
32958      if test -f "$ac_dir/libXinerama.$ac_extension"; then
32959        ac_find_libraries=$ac_dir
32960        break 2
32961      fi
32962    done
32963  done
32964
32965        if test "$ac_find_libraries" != "" ; then
32966
32967    if test "$ac_find_libraries" = "default location"; then
32968    ac_path_to_link=""
32969  else
32970    echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32971    result=$?
32972    if test $result = 0; then
32973      ac_path_to_link=""
32974    else
32975      ac_path_to_link=" -L$ac_find_libraries"
32976    fi
32977  fi
32978
32979            if test "$ac_path_to_link" != " -L/usr/lib" ; then
32980                LDFLAGS="$LDFLAGS $ac_path_to_link"
32981            fi
32982            GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32983            echo "$as_me:$LINENO: result: yes" >&5
32984echo "${ECHO_T}yes" >&6
32985
32986            echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32987echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32988
32989  ac_find_libraries=
32990  for ac_dir in $SEARCH_LIB;
32991  do
32992    for ac_extension in a so sl dylib dll.a; do
32993      if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32994        ac_find_libraries=$ac_dir
32995        break 2
32996      fi
32997    done
32998  done
32999
33000            if test "$ac_find_libraries" != "" ; then
33001                echo "$as_me:$LINENO: result: yes" >&5
33002echo "${ECHO_T}yes" >&6
33003
33004for ac_header in X11/extensions/xf86vmode.h
33005do
33006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33007echo "$as_me:$LINENO: checking for $ac_header" >&5
33008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33009if eval "test \"\${$as_ac_Header+set}\" = set"; then
33010  echo $ECHO_N "(cached) $ECHO_C" >&6
33011else
33012  cat >conftest.$ac_ext <<_ACEOF
33013/* confdefs.h.  */
33014_ACEOF
33015cat confdefs.h >>conftest.$ac_ext
33016cat >>conftest.$ac_ext <<_ACEOF
33017/* end confdefs.h.  */
33018
33019                                      #if HAVE_X11_XLIB_H
33020                                        #include <X11/Xlib.h>
33021                                      #endif
33022
33023
33024#include <$ac_header>
33025_ACEOF
33026rm -f conftest.$ac_objext
33027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33028  (eval $ac_compile) 2>conftest.er1
33029  ac_status=$?
33030  grep -v '^ *+' conftest.er1 >conftest.err
33031  rm -f conftest.er1
33032  cat conftest.err >&5
33033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034  (exit $ac_status); } &&
33035	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
33036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33037  (eval $ac_try) 2>&5
33038  ac_status=$?
33039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040  (exit $ac_status); }; } &&
33041	 { ac_try='test -s conftest.$ac_objext'
33042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33043  (eval $ac_try) 2>&5
33044  ac_status=$?
33045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046  (exit $ac_status); }; }; then
33047  eval "$as_ac_Header=yes"
33048else
33049  echo "$as_me: failed program was:" >&5
33050sed 's/^/| /' conftest.$ac_ext >&5
33051
33052eval "$as_ac_Header=no"
33053fi
33054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33055fi
33056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33058if test `eval echo '${'$as_ac_Header'}'` = yes; then
33059  cat >>confdefs.h <<_ACEOF
33060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33061_ACEOF
33062
33063                                  GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33064
33065fi
33066
33067done
33068
33069            else
33070                echo "$as_me:$LINENO: result: no" >&5
33071echo "${ECHO_T}no" >&6
33072            fi
33073
33074        else
33075            echo "$as_me:$LINENO: result: no" >&5
33076echo "${ECHO_T}no" >&6
33077            { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33078echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33079            wxUSE_DISPLAY="no"
33080        fi
33081    elif test "$wxUSE_MSW" = 1; then
33082        echo "$as_me:$LINENO: checking for ddraw.h" >&5
33083echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6
33084if test "${ac_cv_header_ddraw_h+set}" = set; then
33085  echo $ECHO_N "(cached) $ECHO_C" >&6
33086else
33087  cat >conftest.$ac_ext <<_ACEOF
33088/* confdefs.h.  */
33089_ACEOF
33090cat confdefs.h >>conftest.$ac_ext
33091cat >>conftest.$ac_ext <<_ACEOF
33092/* end confdefs.h.  */
33093#include <windows.h>
33094
33095#include <ddraw.h>
33096_ACEOF
33097rm -f conftest.$ac_objext
33098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33099  (eval $ac_compile) 2>conftest.er1
33100  ac_status=$?
33101  grep -v '^ *+' conftest.er1 >conftest.err
33102  rm -f conftest.er1
33103  cat conftest.err >&5
33104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105  (exit $ac_status); } &&
33106	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
33107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108  (eval $ac_try) 2>&5
33109  ac_status=$?
33110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111  (exit $ac_status); }; } &&
33112	 { ac_try='test -s conftest.$ac_objext'
33113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33114  (eval $ac_try) 2>&5
33115  ac_status=$?
33116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117  (exit $ac_status); }; }; then
33118  ac_cv_header_ddraw_h=yes
33119else
33120  echo "$as_me: failed program was:" >&5
33121sed 's/^/| /' conftest.$ac_ext >&5
33122
33123ac_cv_header_ddraw_h=no
33124fi
33125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33126fi
33127echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33128echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6
33129
33130
33131    fi
33132fi
33133
33134if test "$wxUSE_DETECT_SM" = "yes"; then
33135    if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33136        echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33137echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33138
33139  ac_find_libraries=
33140  for ac_dir in $SEARCH_LIB;
33141  do
33142    for ac_extension in a so sl dylib dll.a; do
33143      if test -f "$ac_dir/libSM.$ac_extension"; then
33144        ac_find_libraries=$ac_dir
33145        break 2
33146      fi
33147    done
33148  done
33149
33150        if test "$ac_find_libraries" != "" ; then
33151
33152    if test "$ac_find_libraries" = "default location"; then
33153    ac_path_to_link=""
33154  else
33155    echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33156    result=$?
33157    if test $result = 0; then
33158      ac_path_to_link=""
33159    else
33160      ac_path_to_link=" -L$ac_find_libraries"
33161    fi
33162  fi
33163
33164            if test "$ac_path_to_link" != " -L/usr/lib" ; then
33165                LDFLAGS="$LDFLAGS $ac_path_to_link"
33166            fi
33167            GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33168            echo "$as_me:$LINENO: result: yes" >&5
33169echo "${ECHO_T}yes" >&6
33170        else
33171            echo "$as_me:$LINENO: result: no" >&5
33172echo "${ECHO_T}no" >&6
33173            { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33174echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33175            wxUSE_DETECT_SM="no"
33176        fi
33177    else
33178        wxUSE_DETECT_SM="no"
33179    fi
33180fi
33181
33182
33183
33184USE_OPENGL=0
33185if test "$wxUSE_OPENGL" = "yes"; then
33186    if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
33187        { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33188echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33189        wxUSE_OPENGL="no"
33190    elif test "$wxUSE_COCOA" = "1"; then
33191        OPENGL_LIBS="-framework OpenGL -framework AGL"
33192    elif test "$wxUSE_MSW" = 1; then
33193        OPENGL_LIBS="-lopengl32 -lglu32"
33194    elif test "$USE_DARWIN" = 1; then
33195        OPENGL_LIBS=""
33196    else
33197                        echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33198echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6
33199
33200ac_find_includes=
33201for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33202  do
33203    if test -f "$ac_dir/GL/gl.h"; then
33204      ac_find_includes=$ac_dir
33205      break
33206    fi
33207  done
33208
33209        if test "$ac_find_includes" != "" ; then
33210            echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33211echo "${ECHO_T}found in $ac_find_includes" >&6
33212
33213    if test "x$ac_find_includes" = "x/usr/include"; then
33214    ac_path_to_include=""
33215  else
33216    echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33217    result=$?
33218    if test $result = 0; then
33219      ac_path_to_include=""
33220    else
33221      ac_path_to_include=" -I$ac_find_includes"
33222    fi
33223  fi
33224
33225            CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33226        else
33227            echo "$as_me:$LINENO: result: not found" >&5
33228echo "${ECHO_T}not found" >&6
33229        fi
33230
33231        echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33232echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33233if test "${ac_cv_header_GL_gl_h+set}" = set; then
33234  echo $ECHO_N "(cached) $ECHO_C" >&6
33235else
33236  cat >conftest.$ac_ext <<_ACEOF
33237/* confdefs.h.  */
33238_ACEOF
33239cat confdefs.h >>conftest.$ac_ext
33240cat >>conftest.$ac_ext <<_ACEOF
33241/* end confdefs.h.  */
33242
33243
33244#include <GL/gl.h>
33245_ACEOF
33246rm -f conftest.$ac_objext
33247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33248  (eval $ac_compile) 2>conftest.er1
33249  ac_status=$?
33250  grep -v '^ *+' conftest.er1 >conftest.err
33251  rm -f conftest.er1
33252  cat conftest.err >&5
33253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254  (exit $ac_status); } &&
33255	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
33256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33257  (eval $ac_try) 2>&5
33258  ac_status=$?
33259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260  (exit $ac_status); }; } &&
33261	 { ac_try='test -s conftest.$ac_objext'
33262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33263  (eval $ac_try) 2>&5
33264  ac_status=$?
33265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266  (exit $ac_status); }; }; then
33267  ac_cv_header_GL_gl_h=yes
33268else
33269  echo "$as_me: failed program was:" >&5
33270sed 's/^/| /' conftest.$ac_ext >&5
33271
33272ac_cv_header_GL_gl_h=no
33273fi
33274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33275fi
33276echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33277echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33278if test $ac_cv_header_GL_gl_h = yes; then
33279
33280            if test "${ac_cv_header_GL_glu_h+set}" = set; then
33281  echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33282echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
33283if test "${ac_cv_header_GL_glu_h+set}" = set; then
33284  echo $ECHO_N "(cached) $ECHO_C" >&6
33285fi
33286echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33287echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
33288else
33289  # Is the header compilable?
33290echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
33291echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6
33292cat >conftest.$ac_ext <<_ACEOF
33293/* confdefs.h.  */
33294_ACEOF
33295cat confdefs.h >>conftest.$ac_ext
33296cat >>conftest.$ac_ext <<_ACEOF
33297/* end confdefs.h.  */
33298$ac_includes_default
33299#include <GL/glu.h>
33300_ACEOF
33301rm -f conftest.$ac_objext
33302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33303  (eval $ac_compile) 2>conftest.er1
33304  ac_status=$?
33305  grep -v '^ *+' conftest.er1 >conftest.err
33306  rm -f conftest.er1
33307  cat conftest.err >&5
33308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309  (exit $ac_status); } &&
33310	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
33311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33312  (eval $ac_try) 2>&5
33313  ac_status=$?
33314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315  (exit $ac_status); }; } &&
33316	 { ac_try='test -s conftest.$ac_objext'
33317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33318  (eval $ac_try) 2>&5
33319  ac_status=$?
33320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321  (exit $ac_status); }; }; then
33322  ac_header_compiler=yes
33323else
33324  echo "$as_me: failed program was:" >&5
33325sed 's/^/| /' conftest.$ac_ext >&5
33326
33327ac_header_compiler=no
33328fi
33329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33330echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33331echo "${ECHO_T}$ac_header_compiler" >&6
33332
33333# Is the header present?
33334echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
33335echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6
33336cat >conftest.$ac_ext <<_ACEOF
33337/* confdefs.h.  */
33338_ACEOF
33339cat confdefs.h >>conftest.$ac_ext
33340cat >>conftest.$ac_ext <<_ACEOF
33341/* end confdefs.h.  */
33342#include <GL/glu.h>
33343_ACEOF
33344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33345  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33346  ac_status=$?
33347  grep -v '^ *+' conftest.er1 >conftest.err
33348  rm -f conftest.er1
33349  cat conftest.err >&5
33350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351  (exit $ac_status); } >/dev/null; then
33352  if test -s conftest.err; then
33353    ac_cpp_err=$ac_c_preproc_warn_flag
33354    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33355  else
33356    ac_cpp_err=
33357  fi
33358else
33359  ac_cpp_err=yes
33360fi
33361if test -z "$ac_cpp_err"; then
33362  ac_header_preproc=yes
33363else
33364  echo "$as_me: failed program was:" >&5
33365sed 's/^/| /' conftest.$ac_ext >&5
33366
33367  ac_header_preproc=no
33368fi
33369rm -f conftest.err conftest.$ac_ext
33370echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33371echo "${ECHO_T}$ac_header_preproc" >&6
33372
33373# So?  What about this header?
33374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33375  yes:no: )
33376    { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
33377echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33378    { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
33379echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
33380    ac_header_preproc=yes
33381    ;;
33382  no:yes:* )
33383    { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
33384echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
33385    { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
33386echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
33387    { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
33388echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
33389    { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
33390echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33391    { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
33392echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
33393    { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
33394echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
33395    (
33396      cat <<\_ASBOX
33397## ----------------------------------------- ##
33398## Report this to wx-dev@lists.wxwidgets.org ##
33399## ----------------------------------------- ##
33400_ASBOX
33401    ) |
33402      sed "s/^/$as_me: WARNING:     /" >&2
33403    ;;
33404esac
33405echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33406echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
33407if test "${ac_cv_header_GL_glu_h+set}" = set; then
33408  echo $ECHO_N "(cached) $ECHO_C" >&6
33409else
33410  ac_cv_header_GL_glu_h=$ac_header_preproc
33411fi
33412echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33413echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
33414
33415fi
33416if test $ac_cv_header_GL_glu_h = yes; then
33417
33418                found_gl=0
33419
33420                echo "$as_me:$LINENO: checking for -lGL" >&5
33421echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33422
33423  ac_find_libraries=
33424  for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33425  do
33426    for ac_extension in a so sl dylib dll.a; do
33427      if test -f "$ac_dir/libGL.$ac_extension"; then
33428        ac_find_libraries=$ac_dir
33429        break 2
33430      fi
33431    done
33432  done
33433
33434                if test "$ac_find_libraries" != "" ; then
33435                    echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33436echo "${ECHO_T}found in $ac_find_libraries" >&6
33437
33438
33439    if test "$ac_find_libraries" = "default location"; then
33440    ac_path_to_link=""
33441  else
33442    echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33443    result=$?
33444    if test $result = 0; then
33445      ac_path_to_link=""
33446    else
33447      ac_path_to_link=" -L$ac_find_libraries"
33448    fi
33449  fi
33450
33451                    if test "$ac_path_to_link" != " -L/usr/lib" ; then
33452                        LDFLAGS_GL="$ac_path_to_link"
33453                    fi
33454
33455                                                                                echo "$as_me:$LINENO: checking for -lGLU" >&5
33456echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
33457
33458  ac_find_libraries=
33459  for ac_dir in $SEARCH_LIB;
33460  do
33461    for ac_extension in a so sl dylib dll.a; do
33462      if test -f "$ac_dir/libGLU.$ac_extension"; then
33463        ac_find_libraries=$ac_dir
33464        break 2
33465      fi
33466    done
33467  done
33468
33469                    if test "$ac_find_libraries" != "" ; then
33470
33471    if test "$ac_find_libraries" = "default location"; then
33472    ac_path_to_link=""
33473  else
33474    echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33475    result=$?
33476    if test $result = 0; then
33477      ac_path_to_link=""
33478    else
33479      ac_path_to_link=" -L$ac_find_libraries"
33480    fi
33481  fi
33482
33483                        if test "$ac_path_to_link" != " -L/usr/lib" -a \
33484                                    "$ac_path_to_link" != "$LDFLAGS_GL"; then
33485                            LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33486                        fi
33487
33488                        found_gl=1
33489                        OPENGL_LIBS="-lGL -lGLU"
33490                        echo "$as_me:$LINENO: result: yes" >&5
33491echo "${ECHO_T}yes" >&6
33492                    else
33493                        echo "$as_me:$LINENO: result: no" >&5
33494echo "${ECHO_T}no" >&6
33495                    fi
33496                else
33497                    echo "$as_me:$LINENO: result: no" >&5
33498echo "${ECHO_T}no" >&6
33499                fi
33500
33501                if test "$found_gl" != 1; then
33502                    echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33503echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33504
33505  ac_find_libraries=
33506  for ac_dir in $SEARCH_LIB;
33507  do
33508    for ac_extension in a so sl dylib dll.a; do
33509      if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33510        ac_find_libraries=$ac_dir
33511        break 2
33512      fi
33513    done
33514  done
33515
33516                    if test "$ac_find_libraries" != "" ; then
33517
33518    if test "$ac_find_libraries" = "default location"; then
33519    ac_path_to_link=""
33520  else
33521    echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33522    result=$?
33523    if test $result = 0; then
33524      ac_path_to_link=""
33525    else
33526      ac_path_to_link=" -L$ac_find_libraries"
33527    fi
33528  fi
33529
33530                        LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33531                        OPENGL_LIBS="-lMesaGL -lMesaGLU"
33532                        echo "$as_me:$LINENO: result: yes" >&5
33533echo "${ECHO_T}yes" >&6
33534                    else
33535                        echo "$as_me:$LINENO: result: no" >&5
33536echo "${ECHO_T}no" >&6
33537                    fi
33538                fi
33539
33540fi
33541
33542
33543
33544fi
33545
33546
33547
33548        if test "x$OPENGL_LIBS" = "x"; then
33549                                                { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33550echo "$as_me: error: OpenGL libraries not available" >&2;}
33551   { (exit 1); exit 1; }; }
33552        fi
33553    fi
33554
33555    if test "$wxUSE_OPENGL" = "yes"; then
33556        USE_OPENGL=1
33557        cat >>confdefs.h <<\_ACEOF
33558#define wxUSE_OPENGL 1
33559_ACEOF
33560
33561        cat >>confdefs.h <<\_ACEOF
33562#define wxUSE_GLCANVAS 1
33563_ACEOF
33564
33565        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33566    fi
33567fi
33568
33569
33570if test -n "$TOOLKIT" ; then
33571    TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33572fi
33573
33574
33575
33576if test "$wxUSE_SHARED" = "yes"; then
33577    case "${host}" in
33578      *-pc-msdosdjgpp )
33579                wxUSE_SHARED=no
33580        { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33581echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33582      ;;
33583    esac
33584fi
33585
33586if test "$wxUSE_SHARED" = "yes"; then
33587
33588
33589    case "${host}" in
33590        *-*-cygwin* | *-*-mingw* )
33591                                                                                                wx_cv_version_script=no
33592            ;;
33593
33594        *)
33595            echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33596echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33597if test "${wx_cv_version_script+set}" = set; then
33598  echo $ECHO_N "(cached) $ECHO_C" >&6
33599else
33600
33601                echo "VER_1 { *; };" >conftest.sym
33602                echo "int main() { return 0; }" >conftest.cpp
33603
33604                if { ac_try='
33605                        $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33606                        -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33608  (eval $ac_try) 2>&5
33609  ac_status=$?
33610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611  (exit $ac_status); }; } ; then
33612                  if test -s conftest.stderr ; then
33613                      wx_cv_version_script=no
33614                  else
33615                      wx_cv_version_script=yes
33616                  fi
33617                else
33618                  wx_cv_version_script=no
33619                fi
33620
33621                                                                                                                                                                                                if test $wx_cv_version_script = yes
33622                then
33623                  echo "struct B { virtual ~B() { } }; \
33624                        struct D : public B { }; \
33625                        void F() { D d; }" > conftest.cpp
33626
33627                  if { ac_try='
33628                        $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33629                        -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33631  (eval $ac_try) 2>&5
33632  ac_status=$?
33633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634  (exit $ac_status); }; } &&
33635                     { ac_try='
33636                        $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33637                        -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33639  (eval $ac_try) 2>&5
33640  ac_status=$?
33641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642  (exit $ac_status); }; }
33643                  then
33644                    if { ac_try='
33645                          $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33646                          -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648  (eval $ac_try) 2>&5
33649  ac_status=$?
33650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651  (exit $ac_status); }; }
33652                    then
33653                      wx_cv_version_script=yes
33654                    else
33655                      wx_cv_version_script=no
33656                    fi
33657                  fi
33658                fi
33659
33660                rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33661                rm -f conftest1.output conftest2.output conftest3.output
33662
33663fi
33664echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33665echo "${ECHO_T}$wx_cv_version_script" >&6
33666
33667            if test $wx_cv_version_script = yes ; then
33668                LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33669            fi
33670            ;;
33671    esac
33672
33673
33674    case "${host}" in
33675      *-*-linux* | *-*-gnu* )
33676        SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33677        WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33678        ;;
33679
33680      *-*-solaris2* )
33681        if test "$GCC" = yes ; then
33682                                    CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33683
33684                                    saveLdflags="$LDFLAGS"
33685            LDFLAGS="$saveLdflags -Wl,-rpath,/"
33686            echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33687echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33688            cat >conftest.$ac_ext <<_ACEOF
33689/* confdefs.h.  */
33690_ACEOF
33691cat confdefs.h >>conftest.$ac_ext
33692cat >>conftest.$ac_ext <<_ACEOF
33693/* end confdefs.h.  */
33694
33695int
33696main ()
33697{
33698
33699  ;
33700  return 0;
33701}
33702_ACEOF
33703rm -f conftest.$ac_objext conftest$ac_exeext
33704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33705  (eval $ac_link) 2>conftest.er1
33706  ac_status=$?
33707  grep -v '^ *+' conftest.er1 >conftest.err
33708  rm -f conftest.er1
33709  cat conftest.err >&5
33710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33711  (exit $ac_status); } &&
33712	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
33713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33714  (eval $ac_try) 2>&5
33715  ac_status=$?
33716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717  (exit $ac_status); }; } &&
33718	 { ac_try='test -s conftest$ac_exeext'
33719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33720  (eval $ac_try) 2>&5
33721  ac_status=$?
33722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723  (exit $ac_status); }; }; then
33724
33725                    echo "$as_me:$LINENO: result: yes" >&5
33726echo "${ECHO_T}yes" >&6
33727                    SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33728                    WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33729
33730else
33731  echo "$as_me: failed program was:" >&5
33732sed 's/^/| /' conftest.$ac_ext >&5
33733
33734
33735                    echo "$as_me:$LINENO: result: no" >&5
33736echo "${ECHO_T}no" >&6
33737                    echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33738echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33739                    LDFLAGS="$saveLdflags -Wl,-R,/"
33740                    cat >conftest.$ac_ext <<_ACEOF
33741/* confdefs.h.  */
33742_ACEOF
33743cat confdefs.h >>conftest.$ac_ext
33744cat >>conftest.$ac_ext <<_ACEOF
33745/* end confdefs.h.  */
33746
33747int
33748main ()
33749{
33750
33751  ;
33752  return 0;
33753}
33754_ACEOF
33755rm -f conftest.$ac_objext conftest$ac_exeext
33756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33757  (eval $ac_link) 2>conftest.er1
33758  ac_status=$?
33759  grep -v '^ *+' conftest.er1 >conftest.err
33760  rm -f conftest.er1
33761  cat conftest.err >&5
33762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763  (exit $ac_status); } &&
33764	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
33765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33766  (eval $ac_try) 2>&5
33767  ac_status=$?
33768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769  (exit $ac_status); }; } &&
33770	 { ac_try='test -s conftest$ac_exeext'
33771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33772  (eval $ac_try) 2>&5
33773  ac_status=$?
33774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775  (exit $ac_status); }; }; then
33776
33777                            echo "$as_me:$LINENO: result: yes" >&5
33778echo "${ECHO_T}yes" >&6
33779                            SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33780                            WXCONFIG_RPATH="-Wl,-R,\$libdir"
33781
33782else
33783  echo "$as_me: failed program was:" >&5
33784sed 's/^/| /' conftest.$ac_ext >&5
33785
33786
33787                            echo "$as_me:$LINENO: result: no" >&5
33788echo "${ECHO_T}no" >&6
33789
33790fi
33791rm -f conftest.err conftest.$ac_objext \
33792      conftest$ac_exeext conftest.$ac_ext
33793
33794fi
33795rm -f conftest.err conftest.$ac_objext \
33796      conftest$ac_exeext conftest.$ac_ext
33797            LDFLAGS="$saveLdflags"
33798        else
33799            SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33800            WXCONFIG_RPATH="-R\$libdir"
33801        fi
33802      ;;
33803
33804      *-*-darwin* )
33805        install_name_tool=`which install_name_tool`
33806        if test "$install_name_tool" -a -x "$install_name_tool"; then
33807            SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33808            cat <<EOF >change-install-names
33809#!/bin/sh
33810libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33811inst_cmd="install_name_tool "
33812for i in \${libnames} ; do
33813    inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33814done
33815\${inst_cmd} \${3}
33816EOF
33817            chmod +x change-install-names
33818
33819            HEADER_PAD_OPTION="-headerpad_max_install_names"
33820        fi
33821      ;;
33822
33823      *-*-cygwin* | *-*-mingw32* )
33824                        WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33825        ;;
33826
33827      *-*-hpux* )
33828        SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33829        WXCONFIG_RPATH="-Wl,+b,\$libdir"
33830        ;;
33831
33832    esac
33833
33834    if test $wxUSE_RPATH = "no"; then
33835        SAMPLES_RPATH_FLAG=''
33836        SAMPLES_RPATH_POSTLINK=''
33837        WXCONFIG_RPATH=''
33838    fi
33839
33840    SHARED=1
33841
33842else
33843
33844    config_linkage_component="-static"
33845    SHARED=0
33846
33847fi
33848
33849
33850UNICODE=0
33851lib_unicode_suffix=
33852WX_CHARTYPE="ansi"
33853if test "$wxUSE_UNICODE" = "yes"; then
33854    lib_unicode_suffix=u
33855    WX_CHARTYPE="unicode"
33856    UNICODE=1
33857fi
33858
33859lib_debug_suffix=
33860WX_DEBUGTYPE="release"
33861DEBUG_FLAG=0
33862if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33863    lib_debug_suffix=d
33864    WX_DEBUGTYPE="debug"
33865    DEBUG_FLAG=1
33866fi
33867
33868WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33869WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33870
33871DEBUG_INFO=0
33872if test "$wxUSE_DEBUG_INFO" = "yes"; then
33873    DEBUG_INFO=1
33874fi
33875
33876WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33877
33878TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33879
33880TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33881
33882if test "$cross_compiling" = "yes"; then
33883    HOST_SUFFIX="-$host_alias"
33884    TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33885    TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33886fi
33887
33888WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33889if test "${TOOLKIT_DIR}" = "os2"; then
33890    WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33891else
33892    WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33893fi
33894
33895
33896
33897if test "$wxUSE_COCOA" = 1; then
33898
33899
33900    ac_ext=c
33901ac_cpp='$CPP $CPPFLAGS'
33902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33904ac_compiler_gnu=$ac_cv_c_compiler_gnu
33905
33906ac_ext=m
33907
33908    echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33909echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33910    cat >conftest.$ac_ext <<_ACEOF
33911/* confdefs.h.  */
33912_ACEOF
33913cat confdefs.h >>conftest.$ac_ext
33914cat >>conftest.$ac_ext <<_ACEOF
33915/* end confdefs.h.  */
33916#include <AppKit/NSEvent.h>
33917#include <CoreFoundation/CoreFoundation.h>
33918
33919int
33920main ()
33921{
33922
33923  ;
33924  return 0;
33925}
33926_ACEOF
33927rm -f conftest.$ac_objext
33928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33929  (eval $ac_compile) 2>conftest.er1
33930  ac_status=$?
33931  grep -v '^ *+' conftest.er1 >conftest.err
33932  rm -f conftest.er1
33933  cat conftest.err >&5
33934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935  (exit $ac_status); } &&
33936	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
33937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938  (eval $ac_try) 2>&5
33939  ac_status=$?
33940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941  (exit $ac_status); }; } &&
33942	 { ac_try='test -s conftest.$ac_objext'
33943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33944  (eval $ac_try) 2>&5
33945  ac_status=$?
33946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947  (exit $ac_status); }; }; then
33948  echo "$as_me:$LINENO: result: no" >&5
33949echo "${ECHO_T}no" >&6
33950else
33951  echo "$as_me: failed program was:" >&5
33952sed 's/^/| /' conftest.$ac_ext >&5
33953
33954echo "$as_me:$LINENO: result: yes" >&5
33955echo "${ECHO_T}yes" >&6
33956        echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33957echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33958        cat >conftest.$ac_ext <<_ACEOF
33959/* confdefs.h.  */
33960_ACEOF
33961cat confdefs.h >>conftest.$ac_ext
33962cat >>conftest.$ac_ext <<_ACEOF
33963/* end confdefs.h.  */
33964#define __Point__ 1
33965#include <AppKit/NSEvent.h>
33966#include <CoreFoundation/CoreFoundation.h>
33967
33968int
33969main ()
33970{
33971
33972  ;
33973  return 0;
33974}
33975_ACEOF
33976rm -f conftest.$ac_objext
33977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33978  (eval $ac_compile) 2>conftest.er1
33979  ac_status=$?
33980  grep -v '^ *+' conftest.er1 >conftest.err
33981  rm -f conftest.er1
33982  cat conftest.err >&5
33983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984  (exit $ac_status); } &&
33985	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
33986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33987  (eval $ac_try) 2>&5
33988  ac_status=$?
33989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990  (exit $ac_status); }; } &&
33991	 { ac_try='test -s conftest.$ac_objext'
33992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33993  (eval $ac_try) 2>&5
33994  ac_status=$?
33995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996  (exit $ac_status); }; }; then
33997  echo "$as_me:$LINENO: result: yes" >&5
33998echo "${ECHO_T}yes" >&6
33999            cat >>confdefs.h <<\_ACEOF
34000#define __Point__ 1
34001_ACEOF
34002
34003
34004else
34005  echo "$as_me: failed program was:" >&5
34006sed 's/^/| /' conftest.$ac_ext >&5
34007
34008{ { echo "$as_me:$LINENO: error: no
34009See \`config.log' for more details." >&5
34010echo "$as_me: error: no
34011See \`config.log' for more details." >&2;}
34012   { (exit 1); exit 1; }; }
34013
34014fi
34015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34016
34017fi
34018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34019    ac_ext=c
34020ac_cpp='$CPP $CPPFLAGS'
34021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34023ac_compiler_gnu=$ac_cv_c_compiler_gnu
34024
34025fi
34026
34027if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
34028            WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
34029    WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
34030
34031        LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
34032
34033    # Extract the first word of "Rez", so it can be a program name with args.
34034set dummy Rez; ac_word=$2
34035echo "$as_me:$LINENO: checking for $ac_word" >&5
34036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34037if test "${ac_cv_prog_REZ+set}" = set; then
34038  echo $ECHO_N "(cached) $ECHO_C" >&6
34039else
34040  if test -n "$REZ"; then
34041  ac_cv_prog_REZ="$REZ" # Let the user override the test.
34042else
34043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34044for as_dir in $PATH
34045do
34046  IFS=$as_save_IFS
34047  test -z "$as_dir" && as_dir=.
34048  for ac_exec_ext in '' $ac_executable_extensions; do
34049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34050    ac_cv_prog_REZ="Rez"
34051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34052    break 2
34053  fi
34054done
34055done
34056
34057  test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
34058fi
34059fi
34060REZ=$ac_cv_prog_REZ
34061if test -n "$REZ"; then
34062  echo "$as_me:$LINENO: result: $REZ" >&5
34063echo "${ECHO_T}$REZ" >&6
34064else
34065  echo "$as_me:$LINENO: result: no" >&5
34066echo "${ECHO_T}no" >&6
34067fi
34068
34069    # Extract the first word of "DeRez", so it can be a program name with args.
34070set dummy DeRez; ac_word=$2
34071echo "$as_me:$LINENO: checking for $ac_word" >&5
34072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34073if test "${ac_cv_prog_DEREZ+set}" = set; then
34074  echo $ECHO_N "(cached) $ECHO_C" >&6
34075else
34076  if test -n "$DEREZ"; then
34077  ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
34078else
34079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34080for as_dir in $PATH
34081do
34082  IFS=$as_save_IFS
34083  test -z "$as_dir" && as_dir=.
34084  for ac_exec_ext in '' $ac_executable_extensions; do
34085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34086    ac_cv_prog_DEREZ="DeRez"
34087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34088    break 2
34089  fi
34090done
34091done
34092
34093  test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
34094fi
34095fi
34096DEREZ=$ac_cv_prog_DEREZ
34097if test -n "$DEREZ"; then
34098  echo "$as_me:$LINENO: result: $DEREZ" >&5
34099echo "${ECHO_T}$DEREZ" >&6
34100else
34101  echo "$as_me:$LINENO: result: no" >&5
34102echo "${ECHO_T}no" >&6
34103fi
34104
34105    # Extract the first word of "SetFile", so it can be a program name with args.
34106set dummy SetFile; ac_word=$2
34107echo "$as_me:$LINENO: checking for $ac_word" >&5
34108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34109if test "${ac_cv_prog_SETFILE+set}" = set; then
34110  echo $ECHO_N "(cached) $ECHO_C" >&6
34111else
34112  if test -n "$SETFILE"; then
34113  ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34114else
34115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34116for as_dir in $PATH
34117do
34118  IFS=$as_save_IFS
34119  test -z "$as_dir" && as_dir=.
34120  for ac_exec_ext in '' $ac_executable_extensions; do
34121  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34122    ac_cv_prog_SETFILE="SetFile"
34123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34124    break 2
34125  fi
34126done
34127done
34128
34129  test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34130fi
34131fi
34132SETFILE=$ac_cv_prog_SETFILE
34133if test -n "$SETFILE"; then
34134  echo "$as_me:$LINENO: result: $SETFILE" >&5
34135echo "${ECHO_T}$SETFILE" >&6
34136else
34137  echo "$as_me:$LINENO: result: no" >&5
34138echo "${ECHO_T}no" >&6
34139fi
34140
34141
34142    MACSETFILE="\$(SETFILE)"
34143
34144            if test "$wxUSE_MAC" = 1; then
34145        POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
34146        RESCOMP="$REZ"
34147        WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
34148    else
34149        POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
34150        RESCOMP="echo -n \| $REZ"
34151        WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
34152    fi
34153
34154else
34155        MACSETFILE="@true"
34156
34157    if test "$wxUSE_PM" = 1; then
34158        RESCOMP="emxbind"
34159        WXCONFIG_RESFLAGS="-ep"
34160
34161                POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
34162    else
34163        POSTLINK_COMMAND="@true"
34164    fi
34165
34166fi
34167
34168
34169
34170echo "$as_me:$LINENO: checking for mode_t" >&5
34171echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
34172if test "${ac_cv_type_mode_t+set}" = set; then
34173  echo $ECHO_N "(cached) $ECHO_C" >&6
34174else
34175  cat >conftest.$ac_ext <<_ACEOF
34176/* confdefs.h.  */
34177_ACEOF
34178cat confdefs.h >>conftest.$ac_ext
34179cat >>conftest.$ac_ext <<_ACEOF
34180/* end confdefs.h.  */
34181$ac_includes_default
34182int
34183main ()
34184{
34185if ((mode_t *) 0)
34186  return 0;
34187if (sizeof (mode_t))
34188  return 0;
34189  ;
34190  return 0;
34191}
34192_ACEOF
34193rm -f conftest.$ac_objext
34194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34195  (eval $ac_compile) 2>conftest.er1
34196  ac_status=$?
34197  grep -v '^ *+' conftest.er1 >conftest.err
34198  rm -f conftest.er1
34199  cat conftest.err >&5
34200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201  (exit $ac_status); } &&
34202	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
34203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204  (eval $ac_try) 2>&5
34205  ac_status=$?
34206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207  (exit $ac_status); }; } &&
34208	 { ac_try='test -s conftest.$ac_objext'
34209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210  (eval $ac_try) 2>&5
34211  ac_status=$?
34212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213  (exit $ac_status); }; }; then
34214  ac_cv_type_mode_t=yes
34215else
34216  echo "$as_me: failed program was:" >&5
34217sed 's/^/| /' conftest.$ac_ext >&5
34218
34219ac_cv_type_mode_t=no
34220fi
34221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34222fi
34223echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34224echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34225if test $ac_cv_type_mode_t = yes; then
34226  :
34227else
34228
34229cat >>confdefs.h <<_ACEOF
34230#define mode_t int
34231_ACEOF
34232
34233fi
34234
34235echo "$as_me:$LINENO: checking for off_t" >&5
34236echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34237if test "${ac_cv_type_off_t+set}" = set; then
34238  echo $ECHO_N "(cached) $ECHO_C" >&6
34239else
34240  cat >conftest.$ac_ext <<_ACEOF
34241/* confdefs.h.  */
34242_ACEOF
34243cat confdefs.h >>conftest.$ac_ext
34244cat >>conftest.$ac_ext <<_ACEOF
34245/* end confdefs.h.  */
34246$ac_includes_default
34247int
34248main ()
34249{
34250if ((off_t *) 0)
34251  return 0;
34252if (sizeof (off_t))
34253  return 0;
34254  ;
34255  return 0;
34256}
34257_ACEOF
34258rm -f conftest.$ac_objext
34259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34260  (eval $ac_compile) 2>conftest.er1
34261  ac_status=$?
34262  grep -v '^ *+' conftest.er1 >conftest.err
34263  rm -f conftest.er1
34264  cat conftest.err >&5
34265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266  (exit $ac_status); } &&
34267	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
34268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34269  (eval $ac_try) 2>&5
34270  ac_status=$?
34271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272  (exit $ac_status); }; } &&
34273	 { ac_try='test -s conftest.$ac_objext'
34274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34275  (eval $ac_try) 2>&5
34276  ac_status=$?
34277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278  (exit $ac_status); }; }; then
34279  ac_cv_type_off_t=yes
34280else
34281  echo "$as_me: failed program was:" >&5
34282sed 's/^/| /' conftest.$ac_ext >&5
34283
34284ac_cv_type_off_t=no
34285fi
34286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34287fi
34288echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34289echo "${ECHO_T}$ac_cv_type_off_t" >&6
34290if test $ac_cv_type_off_t = yes; then
34291  :
34292else
34293
34294cat >>confdefs.h <<_ACEOF
34295#define off_t long
34296_ACEOF
34297
34298fi
34299
34300echo "$as_me:$LINENO: checking for pid_t" >&5
34301echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34302if test "${ac_cv_type_pid_t+set}" = set; then
34303  echo $ECHO_N "(cached) $ECHO_C" >&6
34304else
34305  cat >conftest.$ac_ext <<_ACEOF
34306/* confdefs.h.  */
34307_ACEOF
34308cat confdefs.h >>conftest.$ac_ext
34309cat >>conftest.$ac_ext <<_ACEOF
34310/* end confdefs.h.  */
34311$ac_includes_default
34312int
34313main ()
34314{
34315if ((pid_t *) 0)
34316  return 0;
34317if (sizeof (pid_t))
34318  return 0;
34319  ;
34320  return 0;
34321}
34322_ACEOF
34323rm -f conftest.$ac_objext
34324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34325  (eval $ac_compile) 2>conftest.er1
34326  ac_status=$?
34327  grep -v '^ *+' conftest.er1 >conftest.err
34328  rm -f conftest.er1
34329  cat conftest.err >&5
34330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331  (exit $ac_status); } &&
34332	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
34333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334  (eval $ac_try) 2>&5
34335  ac_status=$?
34336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337  (exit $ac_status); }; } &&
34338	 { ac_try='test -s conftest.$ac_objext'
34339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34340  (eval $ac_try) 2>&5
34341  ac_status=$?
34342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343  (exit $ac_status); }; }; then
34344  ac_cv_type_pid_t=yes
34345else
34346  echo "$as_me: failed program was:" >&5
34347sed 's/^/| /' conftest.$ac_ext >&5
34348
34349ac_cv_type_pid_t=no
34350fi
34351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34352fi
34353echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34354echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34355if test $ac_cv_type_pid_t = yes; then
34356  :
34357else
34358
34359cat >>confdefs.h <<_ACEOF
34360#define pid_t int
34361_ACEOF
34362
34363fi
34364
34365echo "$as_me:$LINENO: checking for size_t" >&5
34366echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34367if test "${ac_cv_type_size_t+set}" = set; then
34368  echo $ECHO_N "(cached) $ECHO_C" >&6
34369else
34370  cat >conftest.$ac_ext <<_ACEOF
34371/* confdefs.h.  */
34372_ACEOF
34373cat confdefs.h >>conftest.$ac_ext
34374cat >>conftest.$ac_ext <<_ACEOF
34375/* end confdefs.h.  */
34376$ac_includes_default
34377int
34378main ()
34379{
34380if ((size_t *) 0)
34381  return 0;
34382if (sizeof (size_t))
34383  return 0;
34384  ;
34385  return 0;
34386}
34387_ACEOF
34388rm -f conftest.$ac_objext
34389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34390  (eval $ac_compile) 2>conftest.er1
34391  ac_status=$?
34392  grep -v '^ *+' conftest.er1 >conftest.err
34393  rm -f conftest.er1
34394  cat conftest.err >&5
34395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396  (exit $ac_status); } &&
34397	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
34398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399  (eval $ac_try) 2>&5
34400  ac_status=$?
34401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402  (exit $ac_status); }; } &&
34403	 { ac_try='test -s conftest.$ac_objext'
34404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34405  (eval $ac_try) 2>&5
34406  ac_status=$?
34407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408  (exit $ac_status); }; }; then
34409  ac_cv_type_size_t=yes
34410else
34411  echo "$as_me: failed program was:" >&5
34412sed 's/^/| /' conftest.$ac_ext >&5
34413
34414ac_cv_type_size_t=no
34415fi
34416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34417fi
34418echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34419echo "${ECHO_T}$ac_cv_type_size_t" >&6
34420if test $ac_cv_type_size_t = yes; then
34421  :
34422else
34423
34424cat >>confdefs.h <<_ACEOF
34425#define size_t unsigned
34426_ACEOF
34427
34428fi
34429
34430echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34431echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34432if test "${ac_cv_type_uid_t+set}" = set; then
34433  echo $ECHO_N "(cached) $ECHO_C" >&6
34434else
34435  cat >conftest.$ac_ext <<_ACEOF
34436/* confdefs.h.  */
34437_ACEOF
34438cat confdefs.h >>conftest.$ac_ext
34439cat >>conftest.$ac_ext <<_ACEOF
34440/* end confdefs.h.  */
34441#include <sys/types.h>
34442
34443_ACEOF
34444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34445  $EGREP "uid_t" >/dev/null 2>&1; then
34446  ac_cv_type_uid_t=yes
34447else
34448  ac_cv_type_uid_t=no
34449fi
34450rm -f conftest*
34451
34452fi
34453echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34454echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34455if test $ac_cv_type_uid_t = no; then
34456
34457cat >>confdefs.h <<\_ACEOF
34458#define uid_t int
34459_ACEOF
34460
34461
34462cat >>confdefs.h <<\_ACEOF
34463#define gid_t int
34464_ACEOF
34465
34466fi
34467
34468
34469echo "$as_me:$LINENO: checking for ssize_t" >&5
34470echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34471if test "${ac_cv_type_ssize_t+set}" = set; then
34472  echo $ECHO_N "(cached) $ECHO_C" >&6
34473else
34474  cat >conftest.$ac_ext <<_ACEOF
34475/* confdefs.h.  */
34476_ACEOF
34477cat confdefs.h >>conftest.$ac_ext
34478cat >>conftest.$ac_ext <<_ACEOF
34479/* end confdefs.h.  */
34480$ac_includes_default
34481int
34482main ()
34483{
34484if ((ssize_t *) 0)
34485  return 0;
34486if (sizeof (ssize_t))
34487  return 0;
34488  ;
34489  return 0;
34490}
34491_ACEOF
34492rm -f conftest.$ac_objext
34493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34494  (eval $ac_compile) 2>conftest.er1
34495  ac_status=$?
34496  grep -v '^ *+' conftest.er1 >conftest.err
34497  rm -f conftest.er1
34498  cat conftest.err >&5
34499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500  (exit $ac_status); } &&
34501	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
34502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34503  (eval $ac_try) 2>&5
34504  ac_status=$?
34505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506  (exit $ac_status); }; } &&
34507	 { ac_try='test -s conftest.$ac_objext'
34508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34509  (eval $ac_try) 2>&5
34510  ac_status=$?
34511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512  (exit $ac_status); }; }; then
34513  ac_cv_type_ssize_t=yes
34514else
34515  echo "$as_me: failed program was:" >&5
34516sed 's/^/| /' conftest.$ac_ext >&5
34517
34518ac_cv_type_ssize_t=no
34519fi
34520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34521fi
34522echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34523echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34524if test $ac_cv_type_ssize_t = yes; then
34525
34526cat >>confdefs.h <<_ACEOF
34527#define HAVE_SSIZE_T 1
34528_ACEOF
34529
34530
34531fi
34532
34533
34534ac_ext=cc
34535ac_cpp='$CXXCPP $CPPFLAGS'
34536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34539 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34540echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34541if test "${wx_cv_size_t_is_uint+set}" = set; then
34542  echo $ECHO_N "(cached) $ECHO_C" >&6
34543else
34544
34545                            cat >conftest.$ac_ext <<_ACEOF
34546/* confdefs.h.  */
34547_ACEOF
34548cat confdefs.h >>conftest.$ac_ext
34549cat >>conftest.$ac_ext <<_ACEOF
34550/* end confdefs.h.  */
34551#include <stddef.h>
34552int
34553main ()
34554{
34555
34556            return 0; }
34557
34558            struct Foo { void foo(size_t); void foo(unsigned int); };
34559
34560            int bar() {
34561
34562  ;
34563  return 0;
34564}
34565_ACEOF
34566rm -f conftest.$ac_objext
34567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34568  (eval $ac_compile) 2>conftest.er1
34569  ac_status=$?
34570  grep -v '^ *+' conftest.er1 >conftest.err
34571  rm -f conftest.er1
34572  cat conftest.err >&5
34573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574  (exit $ac_status); } &&
34575	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
34576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577  (eval $ac_try) 2>&5
34578  ac_status=$?
34579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580  (exit $ac_status); }; } &&
34581	 { ac_try='test -s conftest.$ac_objext'
34582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34583  (eval $ac_try) 2>&5
34584  ac_status=$?
34585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586  (exit $ac_status); }; }; then
34587  wx_cv_size_t_is_uint=no
34588else
34589  echo "$as_me: failed program was:" >&5
34590sed 's/^/| /' conftest.$ac_ext >&5
34591
34592wx_cv_size_t_is_uint=yes
34593
34594fi
34595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34596
34597
34598fi
34599echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34600echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34601
34602if test "$wx_cv_size_t_is_uint" = "yes"; then
34603    cat >>confdefs.h <<\_ACEOF
34604#define wxSIZE_T_IS_UINT 1
34605_ACEOF
34606
34607else
34608    echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34609echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34610if test "${wx_cv_size_t_is_ulong+set}" = set; then
34611  echo $ECHO_N "(cached) $ECHO_C" >&6
34612else
34613  cat >conftest.$ac_ext <<_ACEOF
34614/* confdefs.h.  */
34615_ACEOF
34616cat confdefs.h >>conftest.$ac_ext
34617cat >>conftest.$ac_ext <<_ACEOF
34618/* end confdefs.h.  */
34619#include <stddef.h>
34620int
34621main ()
34622{
34623
34624                return 0; }
34625
34626                struct Foo { void foo(size_t); void foo(unsigned long); };
34627
34628                int bar() {
34629
34630  ;
34631  return 0;
34632}
34633_ACEOF
34634rm -f conftest.$ac_objext
34635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34636  (eval $ac_compile) 2>conftest.er1
34637  ac_status=$?
34638  grep -v '^ *+' conftest.er1 >conftest.err
34639  rm -f conftest.er1
34640  cat conftest.err >&5
34641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642  (exit $ac_status); } &&
34643	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
34644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645  (eval $ac_try) 2>&5
34646  ac_status=$?
34647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648  (exit $ac_status); }; } &&
34649	 { ac_try='test -s conftest.$ac_objext'
34650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34651  (eval $ac_try) 2>&5
34652  ac_status=$?
34653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654  (exit $ac_status); }; }; then
34655  wx_cv_size_t_is_ulong=no
34656else
34657  echo "$as_me: failed program was:" >&5
34658sed 's/^/| /' conftest.$ac_ext >&5
34659
34660wx_cv_size_t_is_ulong=yes
34661
34662fi
34663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34664
34665fi
34666echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34667echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34668
34669    if test "$wx_cv_size_t_is_ulong" = "yes"; then
34670        cat >>confdefs.h <<\_ACEOF
34671#define wxSIZE_T_IS_ULONG 1
34672_ACEOF
34673
34674    fi
34675fi
34676
34677ac_ext=c
34678ac_cpp='$CPP $CPPFLAGS'
34679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34681ac_compiler_gnu=$ac_cv_c_compiler_gnu
34682
34683
34684echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34685echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34686if test "${wx_cv_struct_pw_gecos+set}" = set; then
34687  echo $ECHO_N "(cached) $ECHO_C" >&6
34688else
34689
34690        cat >conftest.$ac_ext <<_ACEOF
34691/* confdefs.h.  */
34692_ACEOF
34693cat confdefs.h >>conftest.$ac_ext
34694cat >>conftest.$ac_ext <<_ACEOF
34695/* end confdefs.h.  */
34696#include <pwd.h>
34697int
34698main ()
34699{
34700
34701                char *p;
34702                struct passwd *pw;
34703                p = pw->pw_gecos;
34704
34705  ;
34706  return 0;
34707}
34708_ACEOF
34709rm -f conftest.$ac_objext
34710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34711  (eval $ac_compile) 2>conftest.er1
34712  ac_status=$?
34713  grep -v '^ *+' conftest.er1 >conftest.err
34714  rm -f conftest.er1
34715  cat conftest.err >&5
34716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717  (exit $ac_status); } &&
34718	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
34719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34720  (eval $ac_try) 2>&5
34721  ac_status=$?
34722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723  (exit $ac_status); }; } &&
34724	 { ac_try='test -s conftest.$ac_objext'
34725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34726  (eval $ac_try) 2>&5
34727  ac_status=$?
34728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729  (exit $ac_status); }; }; then
34730
34731                wx_cv_struct_pw_gecos=yes
34732
34733else
34734  echo "$as_me: failed program was:" >&5
34735sed 's/^/| /' conftest.$ac_ext >&5
34736
34737
34738                wx_cv_struct_pw_gecos=no
34739
34740
34741fi
34742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34743
34744
34745fi
34746echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34747echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34748
34749if test "$wx_cv_struct_pw_gecos" = "yes"; then
34750    cat >>confdefs.h <<\_ACEOF
34751#define HAVE_PW_GECOS 1
34752_ACEOF
34753
34754fi
34755
34756
34757if test "$wxUSE_WCHAR_T" = "yes"; then
34758    cat >>confdefs.h <<\_ACEOF
34759#define wxUSE_WCHAR_T 1
34760_ACEOF
34761
34762
34763        WCSLEN_FOUND=0
34764    WCHAR_LINK=
34765
34766for ac_func in wcslen
34767do
34768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34769echo "$as_me:$LINENO: checking for $ac_func" >&5
34770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34771if eval "test \"\${$as_ac_var+set}\" = set"; then
34772  echo $ECHO_N "(cached) $ECHO_C" >&6
34773else
34774  cat >conftest.$ac_ext <<_ACEOF
34775/* confdefs.h.  */
34776_ACEOF
34777cat confdefs.h >>conftest.$ac_ext
34778cat >>conftest.$ac_ext <<_ACEOF
34779/* end confdefs.h.  */
34780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34781   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34782#define $ac_func innocuous_$ac_func
34783
34784/* System header to define __stub macros and hopefully few prototypes,
34785    which can conflict with char $ac_func (); below.
34786    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34787    <limits.h> exists even on freestanding compilers.  */
34788
34789#ifdef __STDC__
34790# include <limits.h>
34791#else
34792# include <assert.h>
34793#endif
34794
34795#undef $ac_func
34796
34797/* Override any gcc2 internal prototype to avoid an error.  */
34798#ifdef __cplusplus
34799extern "C"
34800{
34801#endif
34802/* We use char because int might match the return type of a gcc2
34803   builtin and then its argument prototype would still apply.  */
34804char $ac_func ();
34805/* The GNU C library defines this for functions which it implements
34806    to always fail with ENOSYS.  Some functions are actually named
34807    something starting with __ and the normal name is an alias.  */
34808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34809choke me
34810#else
34811char (*f) () = $ac_func;
34812#endif
34813#ifdef __cplusplus
34814}
34815#endif
34816
34817int
34818main ()
34819{
34820return f != $ac_func;
34821  ;
34822  return 0;
34823}
34824_ACEOF
34825rm -f conftest.$ac_objext conftest$ac_exeext
34826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34827  (eval $ac_link) 2>conftest.er1
34828  ac_status=$?
34829  grep -v '^ *+' conftest.er1 >conftest.err
34830  rm -f conftest.er1
34831  cat conftest.err >&5
34832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833  (exit $ac_status); } &&
34834	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
34835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34836  (eval $ac_try) 2>&5
34837  ac_status=$?
34838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839  (exit $ac_status); }; } &&
34840	 { ac_try='test -s conftest$ac_exeext'
34841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34842  (eval $ac_try) 2>&5
34843  ac_status=$?
34844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845  (exit $ac_status); }; }; then
34846  eval "$as_ac_var=yes"
34847else
34848  echo "$as_me: failed program was:" >&5
34849sed 's/^/| /' conftest.$ac_ext >&5
34850
34851eval "$as_ac_var=no"
34852fi
34853rm -f conftest.err conftest.$ac_objext \
34854      conftest$ac_exeext conftest.$ac_ext
34855fi
34856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34857echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34858if test `eval echo '${'$as_ac_var'}'` = yes; then
34859  cat >>confdefs.h <<_ACEOF
34860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34861_ACEOF
34862 WCSLEN_FOUND=1
34863fi
34864done
34865
34866
34867    if test "$WCSLEN_FOUND" = 0; then
34868        if test "$TOOLKIT" = "MSW"; then
34869            echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34870echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34871if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34872  echo $ECHO_N "(cached) $ECHO_C" >&6
34873else
34874  ac_check_lib_save_LIBS=$LIBS
34875LIBS="-lmsvcrt  $LIBS"
34876cat >conftest.$ac_ext <<_ACEOF
34877/* confdefs.h.  */
34878_ACEOF
34879cat confdefs.h >>conftest.$ac_ext
34880cat >>conftest.$ac_ext <<_ACEOF
34881/* end confdefs.h.  */
34882
34883/* Override any gcc2 internal prototype to avoid an error.  */
34884#ifdef __cplusplus
34885extern "C"
34886#endif
34887/* We use char because int might match the return type of a gcc2
34888   builtin and then its argument prototype would still apply.  */
34889char wcslen ();
34890int
34891main ()
34892{
34893wcslen ();
34894  ;
34895  return 0;
34896}
34897_ACEOF
34898rm -f conftest.$ac_objext conftest$ac_exeext
34899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34900  (eval $ac_link) 2>conftest.er1
34901  ac_status=$?
34902  grep -v '^ *+' conftest.er1 >conftest.err
34903  rm -f conftest.er1
34904  cat conftest.err >&5
34905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906  (exit $ac_status); } &&
34907	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
34908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34909  (eval $ac_try) 2>&5
34910  ac_status=$?
34911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912  (exit $ac_status); }; } &&
34913	 { ac_try='test -s conftest$ac_exeext'
34914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34915  (eval $ac_try) 2>&5
34916  ac_status=$?
34917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918  (exit $ac_status); }; }; then
34919  ac_cv_lib_msvcrt_wcslen=yes
34920else
34921  echo "$as_me: failed program was:" >&5
34922sed 's/^/| /' conftest.$ac_ext >&5
34923
34924ac_cv_lib_msvcrt_wcslen=no
34925fi
34926rm -f conftest.err conftest.$ac_objext \
34927      conftest$ac_exeext conftest.$ac_ext
34928LIBS=$ac_check_lib_save_LIBS
34929fi
34930echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34931echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34932if test $ac_cv_lib_msvcrt_wcslen = yes; then
34933  WCHAR_OK=1
34934fi
34935
34936        else
34937            echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34938echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34939if test "${ac_cv_lib_w_wcslen+set}" = set; then
34940  echo $ECHO_N "(cached) $ECHO_C" >&6
34941else
34942  ac_check_lib_save_LIBS=$LIBS
34943LIBS="-lw  $LIBS"
34944cat >conftest.$ac_ext <<_ACEOF
34945/* confdefs.h.  */
34946_ACEOF
34947cat confdefs.h >>conftest.$ac_ext
34948cat >>conftest.$ac_ext <<_ACEOF
34949/* end confdefs.h.  */
34950
34951/* Override any gcc2 internal prototype to avoid an error.  */
34952#ifdef __cplusplus
34953extern "C"
34954#endif
34955/* We use char because int might match the return type of a gcc2
34956   builtin and then its argument prototype would still apply.  */
34957char wcslen ();
34958int
34959main ()
34960{
34961wcslen ();
34962  ;
34963  return 0;
34964}
34965_ACEOF
34966rm -f conftest.$ac_objext conftest$ac_exeext
34967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34968  (eval $ac_link) 2>conftest.er1
34969  ac_status=$?
34970  grep -v '^ *+' conftest.er1 >conftest.err
34971  rm -f conftest.er1
34972  cat conftest.err >&5
34973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974  (exit $ac_status); } &&
34975	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
34976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34977  (eval $ac_try) 2>&5
34978  ac_status=$?
34979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980  (exit $ac_status); }; } &&
34981	 { ac_try='test -s conftest$ac_exeext'
34982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34983  (eval $ac_try) 2>&5
34984  ac_status=$?
34985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986  (exit $ac_status); }; }; then
34987  ac_cv_lib_w_wcslen=yes
34988else
34989  echo "$as_me: failed program was:" >&5
34990sed 's/^/| /' conftest.$ac_ext >&5
34991
34992ac_cv_lib_w_wcslen=no
34993fi
34994rm -f conftest.err conftest.$ac_objext \
34995      conftest$ac_exeext conftest.$ac_ext
34996LIBS=$ac_check_lib_save_LIBS
34997fi
34998echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34999echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
35000if test $ac_cv_lib_w_wcslen = yes; then
35001
35002                            WCHAR_LINK=" -lw"
35003                            WCSLEN_FOUND=1
35004
35005fi
35006
35007        fi
35008    fi
35009
35010    if test "$WCSLEN_FOUND" = 1; then
35011        cat >>confdefs.h <<\_ACEOF
35012#define HAVE_WCSLEN 1
35013_ACEOF
35014
35015    fi
35016
35017                    if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35018        CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35019    fi
35020
35021                echo "$as_me:$LINENO: checking for mbstate_t" >&5
35022echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35023if test "${ac_cv_type_mbstate_t+set}" = set; then
35024  echo $ECHO_N "(cached) $ECHO_C" >&6
35025else
35026  cat >conftest.$ac_ext <<_ACEOF
35027/* confdefs.h.  */
35028_ACEOF
35029cat confdefs.h >>conftest.$ac_ext
35030cat >>conftest.$ac_ext <<_ACEOF
35031/* end confdefs.h.  */
35032#include <wchar.h>
35033
35034int
35035main ()
35036{
35037if ((mbstate_t *) 0)
35038  return 0;
35039if (sizeof (mbstate_t))
35040  return 0;
35041  ;
35042  return 0;
35043}
35044_ACEOF
35045rm -f conftest.$ac_objext
35046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35047  (eval $ac_compile) 2>conftest.er1
35048  ac_status=$?
35049  grep -v '^ *+' conftest.er1 >conftest.err
35050  rm -f conftest.er1
35051  cat conftest.err >&5
35052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053  (exit $ac_status); } &&
35054	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35056  (eval $ac_try) 2>&5
35057  ac_status=$?
35058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059  (exit $ac_status); }; } &&
35060	 { ac_try='test -s conftest.$ac_objext'
35061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35062  (eval $ac_try) 2>&5
35063  ac_status=$?
35064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065  (exit $ac_status); }; }; then
35066  ac_cv_type_mbstate_t=yes
35067else
35068  echo "$as_me: failed program was:" >&5
35069sed 's/^/| /' conftest.$ac_ext >&5
35070
35071ac_cv_type_mbstate_t=no
35072fi
35073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35074fi
35075echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35076echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
35077if test $ac_cv_type_mbstate_t = yes; then
35078
35079cat >>confdefs.h <<_ACEOF
35080#define HAVE_MBSTATE_T 1
35081_ACEOF
35082
35083
35084for ac_func in wcsrtombs
35085do
35086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35087echo "$as_me:$LINENO: checking for $ac_func" >&5
35088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35089if eval "test \"\${$as_ac_var+set}\" = set"; then
35090  echo $ECHO_N "(cached) $ECHO_C" >&6
35091else
35092  cat >conftest.$ac_ext <<_ACEOF
35093/* confdefs.h.  */
35094_ACEOF
35095cat confdefs.h >>conftest.$ac_ext
35096cat >>conftest.$ac_ext <<_ACEOF
35097/* end confdefs.h.  */
35098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35099   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35100#define $ac_func innocuous_$ac_func
35101
35102/* System header to define __stub macros and hopefully few prototypes,
35103    which can conflict with char $ac_func (); below.
35104    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35105    <limits.h> exists even on freestanding compilers.  */
35106
35107#ifdef __STDC__
35108# include <limits.h>
35109#else
35110# include <assert.h>
35111#endif
35112
35113#undef $ac_func
35114
35115/* Override any gcc2 internal prototype to avoid an error.  */
35116#ifdef __cplusplus
35117extern "C"
35118{
35119#endif
35120/* We use char because int might match the return type of a gcc2
35121   builtin and then its argument prototype would still apply.  */
35122char $ac_func ();
35123/* The GNU C library defines this for functions which it implements
35124    to always fail with ENOSYS.  Some functions are actually named
35125    something starting with __ and the normal name is an alias.  */
35126#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35127choke me
35128#else
35129char (*f) () = $ac_func;
35130#endif
35131#ifdef __cplusplus
35132}
35133#endif
35134
35135int
35136main ()
35137{
35138return f != $ac_func;
35139  ;
35140  return 0;
35141}
35142_ACEOF
35143rm -f conftest.$ac_objext conftest$ac_exeext
35144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35145  (eval $ac_link) 2>conftest.er1
35146  ac_status=$?
35147  grep -v '^ *+' conftest.er1 >conftest.err
35148  rm -f conftest.er1
35149  cat conftest.err >&5
35150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151  (exit $ac_status); } &&
35152	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154  (eval $ac_try) 2>&5
35155  ac_status=$?
35156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157  (exit $ac_status); }; } &&
35158	 { ac_try='test -s conftest$ac_exeext'
35159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35160  (eval $ac_try) 2>&5
35161  ac_status=$?
35162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163  (exit $ac_status); }; }; then
35164  eval "$as_ac_var=yes"
35165else
35166  echo "$as_me: failed program was:" >&5
35167sed 's/^/| /' conftest.$ac_ext >&5
35168
35169eval "$as_ac_var=no"
35170fi
35171rm -f conftest.err conftest.$ac_objext \
35172      conftest$ac_exeext conftest.$ac_ext
35173fi
35174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35175echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35176if test `eval echo '${'$as_ac_var'}'` = yes; then
35177  cat >>confdefs.h <<_ACEOF
35178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35179_ACEOF
35180
35181fi
35182done
35183
35184fi
35185
35186else
35187    { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35188echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35189fi
35190
35191
35192
35193for ac_func in snprintf vsnprintf
35194do
35195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35196echo "$as_me:$LINENO: checking for $ac_func" >&5
35197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35198if eval "test \"\${$as_ac_var+set}\" = set"; then
35199  echo $ECHO_N "(cached) $ECHO_C" >&6
35200else
35201  cat >conftest.$ac_ext <<_ACEOF
35202/* confdefs.h.  */
35203_ACEOF
35204cat confdefs.h >>conftest.$ac_ext
35205cat >>conftest.$ac_ext <<_ACEOF
35206/* end confdefs.h.  */
35207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35208   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35209#define $ac_func innocuous_$ac_func
35210
35211/* System header to define __stub macros and hopefully few prototypes,
35212    which can conflict with char $ac_func (); below.
35213    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35214    <limits.h> exists even on freestanding compilers.  */
35215
35216#ifdef __STDC__
35217# include <limits.h>
35218#else
35219# include <assert.h>
35220#endif
35221
35222#undef $ac_func
35223
35224/* Override any gcc2 internal prototype to avoid an error.  */
35225#ifdef __cplusplus
35226extern "C"
35227{
35228#endif
35229/* We use char because int might match the return type of a gcc2
35230   builtin and then its argument prototype would still apply.  */
35231char $ac_func ();
35232/* The GNU C library defines this for functions which it implements
35233    to always fail with ENOSYS.  Some functions are actually named
35234    something starting with __ and the normal name is an alias.  */
35235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35236choke me
35237#else
35238char (*f) () = $ac_func;
35239#endif
35240#ifdef __cplusplus
35241}
35242#endif
35243
35244int
35245main ()
35246{
35247return f != $ac_func;
35248  ;
35249  return 0;
35250}
35251_ACEOF
35252rm -f conftest.$ac_objext conftest$ac_exeext
35253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35254  (eval $ac_link) 2>conftest.er1
35255  ac_status=$?
35256  grep -v '^ *+' conftest.er1 >conftest.err
35257  rm -f conftest.er1
35258  cat conftest.err >&5
35259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260  (exit $ac_status); } &&
35261	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35263  (eval $ac_try) 2>&5
35264  ac_status=$?
35265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266  (exit $ac_status); }; } &&
35267	 { ac_try='test -s conftest$ac_exeext'
35268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35269  (eval $ac_try) 2>&5
35270  ac_status=$?
35271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272  (exit $ac_status); }; }; then
35273  eval "$as_ac_var=yes"
35274else
35275  echo "$as_me: failed program was:" >&5
35276sed 's/^/| /' conftest.$ac_ext >&5
35277
35278eval "$as_ac_var=no"
35279fi
35280rm -f conftest.err conftest.$ac_objext \
35281      conftest$ac_exeext conftest.$ac_ext
35282fi
35283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35285if test `eval echo '${'$as_ac_var'}'` = yes; then
35286  cat >>confdefs.h <<_ACEOF
35287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35288_ACEOF
35289
35290fi
35291done
35292
35293
35294if test "$ac_cv_func_vsnprintf" = "yes"; then
35295        echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35296echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35297if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35298  echo $ECHO_N "(cached) $ECHO_C" >&6
35299else
35300
35301                                                            cat >conftest.$ac_ext <<_ACEOF
35302/* confdefs.h.  */
35303_ACEOF
35304cat confdefs.h >>conftest.$ac_ext
35305cat >>conftest.$ac_ext <<_ACEOF
35306/* end confdefs.h.  */
35307
35308                    #include <stdio.h>
35309                    #include <stdarg.h>
35310                    #ifdef __MSL__
35311                    #if __MSL__ >= 0x6000
35312                    namespace std {}
35313                    using namespace std;
35314                    #endif
35315                    #endif
35316
35317int
35318main ()
35319{
35320
35321                    char *buf;
35322                    va_list ap;
35323                    vsnprintf(buf, 10u, "%s", ap);
35324
35325  ;
35326  return 0;
35327}
35328_ACEOF
35329rm -f conftest.$ac_objext
35330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35331  (eval $ac_compile) 2>conftest.er1
35332  ac_status=$?
35333  grep -v '^ *+' conftest.er1 >conftest.err
35334  rm -f conftest.er1
35335  cat conftest.err >&5
35336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337  (exit $ac_status); } &&
35338	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35340  (eval $ac_try) 2>&5
35341  ac_status=$?
35342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343  (exit $ac_status); }; } &&
35344	 { ac_try='test -s conftest.$ac_objext'
35345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35346  (eval $ac_try) 2>&5
35347  ac_status=$?
35348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349  (exit $ac_status); }; }; then
35350  wx_cv_func_vsnprintf_decl=yes
35351else
35352  echo "$as_me: failed program was:" >&5
35353sed 's/^/| /' conftest.$ac_ext >&5
35354
35355wx_cv_func_vsnprintf_decl=no
35356
35357fi
35358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35359
35360
35361fi
35362echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35363echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35364
35365    if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35366        cat >>confdefs.h <<\_ACEOF
35367#define HAVE_VSNPRINTF_DECL 1
35368_ACEOF
35369
35370
35371                        echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35372echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35373if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35374  echo $ECHO_N "(cached) $ECHO_C" >&6
35375else
35376
35377                cat >conftest.$ac_ext <<_ACEOF
35378/* confdefs.h.  */
35379_ACEOF
35380cat confdefs.h >>conftest.$ac_ext
35381cat >>conftest.$ac_ext <<_ACEOF
35382/* end confdefs.h.  */
35383
35384                        #include <stdio.h>
35385                        #include <stdarg.h>
35386                        #ifdef __MSL__
35387                        #if __MSL__ >= 0x6000
35388                        namespace std {}
35389                        using namespace std;
35390                        #endif
35391                        #endif
35392
35393int
35394main ()
35395{
35396
35397                        char *buf;
35398                        va_list ap;
35399                        const char *fmt = "%s";
35400                        vsnprintf(buf, 10u, fmt, ap);
35401
35402  ;
35403  return 0;
35404}
35405_ACEOF
35406rm -f conftest.$ac_objext
35407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35408  (eval $ac_compile) 2>conftest.er1
35409  ac_status=$?
35410  grep -v '^ *+' conftest.er1 >conftest.err
35411  rm -f conftest.er1
35412  cat conftest.err >&5
35413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414  (exit $ac_status); } &&
35415	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35417  (eval $ac_try) 2>&5
35418  ac_status=$?
35419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35420  (exit $ac_status); }; } &&
35421	 { ac_try='test -s conftest.$ac_objext'
35422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35423  (eval $ac_try) 2>&5
35424  ac_status=$?
35425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426  (exit $ac_status); }; }; then
35427  wx_cv_func_broken_vsnprintf_decl=no
35428else
35429  echo "$as_me: failed program was:" >&5
35430sed 's/^/| /' conftest.$ac_ext >&5
35431
35432wx_cv_func_broken_vsnprintf_decl=yes
35433
35434fi
35435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35436
35437
35438fi
35439echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35440echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35441
35442        if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35443            cat >>confdefs.h <<\_ACEOF
35444#define HAVE_BROKEN_VSNPRINTF_DECL 1
35445_ACEOF
35446
35447        fi
35448    fi
35449fi
35450
35451if test "$ac_cv_func_snprintf" = "yes"; then
35452    echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35453echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35454if test "${wx_cv_func_snprintf_decl+set}" = set; then
35455  echo $ECHO_N "(cached) $ECHO_C" >&6
35456else
35457
35458            cat >conftest.$ac_ext <<_ACEOF
35459/* confdefs.h.  */
35460_ACEOF
35461cat confdefs.h >>conftest.$ac_ext
35462cat >>conftest.$ac_ext <<_ACEOF
35463/* end confdefs.h.  */
35464
35465                    #include <stdio.h>
35466                    #include <stdarg.h>
35467                    #ifdef __MSL__
35468                    #if __MSL__ >= 0x6000
35469                    namespace std {}
35470                    using namespace std;
35471                    #endif
35472                    #endif
35473
35474int
35475main ()
35476{
35477
35478                    char *buf;
35479                    snprintf(buf, 10u, "%s", "wx");
35480
35481  ;
35482  return 0;
35483}
35484_ACEOF
35485rm -f conftest.$ac_objext
35486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35487  (eval $ac_compile) 2>conftest.er1
35488  ac_status=$?
35489  grep -v '^ *+' conftest.er1 >conftest.err
35490  rm -f conftest.er1
35491  cat conftest.err >&5
35492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35493  (exit $ac_status); } &&
35494	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35496  (eval $ac_try) 2>&5
35497  ac_status=$?
35498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499  (exit $ac_status); }; } &&
35500	 { ac_try='test -s conftest.$ac_objext'
35501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35502  (eval $ac_try) 2>&5
35503  ac_status=$?
35504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505  (exit $ac_status); }; }; then
35506  wx_cv_func_snprintf_decl=yes
35507else
35508  echo "$as_me: failed program was:" >&5
35509sed 's/^/| /' conftest.$ac_ext >&5
35510
35511wx_cv_func_snprintf_decl=no
35512
35513fi
35514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35515
35516
35517fi
35518echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35519echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35520
35521    if test "$wx_cv_func_snprintf_decl" = "yes"; then
35522        cat >>confdefs.h <<\_ACEOF
35523#define HAVE_SNPRINTF_DECL 1
35524_ACEOF
35525
35526
35527                        echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35528echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35529if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35530  echo $ECHO_N "(cached) $ECHO_C" >&6
35531else
35532
35533                cat >conftest.$ac_ext <<_ACEOF
35534/* confdefs.h.  */
35535_ACEOF
35536cat confdefs.h >>conftest.$ac_ext
35537cat >>conftest.$ac_ext <<_ACEOF
35538/* end confdefs.h.  */
35539
35540                        #include <stdio.h>
35541                        #include <stdarg.h>
35542                        #ifdef __MSL__
35543                        #if __MSL__ >= 0x6000
35544                        namespace std {}
35545                        using namespace std;
35546                        #endif
35547                        #endif
35548
35549int
35550main ()
35551{
35552
35553                        char *buf;
35554                        const char *fmt = "%s";
35555                        snprintf(buf, 10u, fmt, "wx");
35556
35557  ;
35558  return 0;
35559}
35560_ACEOF
35561rm -f conftest.$ac_objext
35562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35563  (eval $ac_compile) 2>conftest.er1
35564  ac_status=$?
35565  grep -v '^ *+' conftest.er1 >conftest.err
35566  rm -f conftest.er1
35567  cat conftest.err >&5
35568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569  (exit $ac_status); } &&
35570	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35572  (eval $ac_try) 2>&5
35573  ac_status=$?
35574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575  (exit $ac_status); }; } &&
35576	 { ac_try='test -s conftest.$ac_objext'
35577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35578  (eval $ac_try) 2>&5
35579  ac_status=$?
35580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581  (exit $ac_status); }; }; then
35582  wx_cv_func_broken_snprintf_decl=no
35583else
35584  echo "$as_me: failed program was:" >&5
35585sed 's/^/| /' conftest.$ac_ext >&5
35586
35587wx_cv_func_broken_snprintf_decl=yes
35588
35589fi
35590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35591
35592
35593fi
35594echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35595echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35596
35597        if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35598            cat >>confdefs.h <<\_ACEOF
35599#define HAVE_BROKEN_SNPRINTF_DECL 1
35600_ACEOF
35601
35602        fi
35603    fi
35604
35605    if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35606
35607                                        echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35608echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35609if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35610  echo $ECHO_N "(cached) $ECHO_C" >&6
35611else
35612
35613                if test "$cross_compiling" = yes; then
35614
35615                        { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35616define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35617echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35618define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35619                        wx_cv_func_snprintf_pos_params=no
35620
35621
35622else
35623  cat >conftest.$ac_ext <<_ACEOF
35624/* confdefs.h.  */
35625_ACEOF
35626cat confdefs.h >>conftest.$ac_ext
35627cat >>conftest.$ac_ext <<_ACEOF
35628/* end confdefs.h.  */
35629
35630                        #include <stdio.h>
35631
35632                        int main (void)
35633                        {
35634                            char buffer[128];
35635                            snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35636                            if (strcmp ("2 3 1", buffer) == 0)
35637                                exit (0);
35638                            exit (1);
35639                        }
35640
35641_ACEOF
35642rm -f conftest$ac_exeext
35643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35644  (eval $ac_link) 2>&5
35645  ac_status=$?
35646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35649  (eval $ac_try) 2>&5
35650  ac_status=$?
35651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35652  (exit $ac_status); }; }; then
35653  wx_cv_func_snprintf_pos_params=no
35654else
35655  echo "$as_me: program exited with status $ac_status" >&5
35656echo "$as_me: failed program was:" >&5
35657sed 's/^/| /' conftest.$ac_ext >&5
35658
35659( exit $ac_status )
35660wx_cv_func_snprintf_pos_params=yes
35661fi
35662rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35663fi
35664
35665
35666fi
35667echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35668echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35669
35670        if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35671            cat >>confdefs.h <<\_ACEOF
35672#define HAVE_UNIX98_PRINTF 1
35673_ACEOF
35674
35675        fi
35676    fi
35677fi
35678
35679if test "$wxUSE_UNICODE" = yes; then
35680
35681
35682for ac_func in swprintf
35683do
35684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35685echo "$as_me:$LINENO: checking for $ac_func" >&5
35686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35687if eval "test \"\${$as_ac_var+set}\" = set"; then
35688  echo $ECHO_N "(cached) $ECHO_C" >&6
35689else
35690  cat >conftest.$ac_ext <<_ACEOF
35691/* confdefs.h.  */
35692_ACEOF
35693cat confdefs.h >>conftest.$ac_ext
35694cat >>conftest.$ac_ext <<_ACEOF
35695/* end confdefs.h.  */
35696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35698#define $ac_func innocuous_$ac_func
35699
35700/* System header to define __stub macros and hopefully few prototypes,
35701    which can conflict with char $ac_func (); below.
35702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35703    <limits.h> exists even on freestanding compilers.  */
35704
35705#ifdef __STDC__
35706# include <limits.h>
35707#else
35708# include <assert.h>
35709#endif
35710
35711#undef $ac_func
35712
35713/* Override any gcc2 internal prototype to avoid an error.  */
35714#ifdef __cplusplus
35715extern "C"
35716{
35717#endif
35718/* We use char because int might match the return type of a gcc2
35719   builtin and then its argument prototype would still apply.  */
35720char $ac_func ();
35721/* The GNU C library defines this for functions which it implements
35722    to always fail with ENOSYS.  Some functions are actually named
35723    something starting with __ and the normal name is an alias.  */
35724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35725choke me
35726#else
35727char (*f) () = $ac_func;
35728#endif
35729#ifdef __cplusplus
35730}
35731#endif
35732
35733int
35734main ()
35735{
35736return f != $ac_func;
35737  ;
35738  return 0;
35739}
35740_ACEOF
35741rm -f conftest.$ac_objext conftest$ac_exeext
35742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35743  (eval $ac_link) 2>conftest.er1
35744  ac_status=$?
35745  grep -v '^ *+' conftest.er1 >conftest.err
35746  rm -f conftest.er1
35747  cat conftest.err >&5
35748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749  (exit $ac_status); } &&
35750	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752  (eval $ac_try) 2>&5
35753  ac_status=$?
35754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755  (exit $ac_status); }; } &&
35756	 { ac_try='test -s conftest$ac_exeext'
35757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35758  (eval $ac_try) 2>&5
35759  ac_status=$?
35760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761  (exit $ac_status); }; }; then
35762  eval "$as_ac_var=yes"
35763else
35764  echo "$as_me: failed program was:" >&5
35765sed 's/^/| /' conftest.$ac_ext >&5
35766
35767eval "$as_ac_var=no"
35768fi
35769rm -f conftest.err conftest.$ac_objext \
35770      conftest$ac_exeext conftest.$ac_ext
35771fi
35772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35773echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35774if test `eval echo '${'$as_ac_var'}'` = yes; then
35775  cat >>confdefs.h <<_ACEOF
35776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35777_ACEOF
35778
35779fi
35780done
35781
35782
35783    if test "$ac_cv_func_swprintf" = "yes"; then
35784        echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35785echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35786if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35787  echo $ECHO_N "(cached) $ECHO_C" >&6
35788else
35789
35790                cat >conftest.$ac_ext <<_ACEOF
35791/* confdefs.h.  */
35792_ACEOF
35793cat confdefs.h >>conftest.$ac_ext
35794cat >>conftest.$ac_ext <<_ACEOF
35795/* end confdefs.h.  */
35796
35797                        #include <stdio.h>
35798                        #include <stdarg.h>
35799                        #include <wchar.h>
35800
35801int
35802main ()
35803{
35804
35805                        wchar_t *buf;
35806                        const wchar_t *fmt = L"test";
35807                        swprintf(buf, 10u, fmt);
35808
35809  ;
35810  return 0;
35811}
35812_ACEOF
35813rm -f conftest.$ac_objext
35814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35815  (eval $ac_compile) 2>conftest.er1
35816  ac_status=$?
35817  grep -v '^ *+' conftest.er1 >conftest.err
35818  rm -f conftest.er1
35819  cat conftest.err >&5
35820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821  (exit $ac_status); } &&
35822	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35824  (eval $ac_try) 2>&5
35825  ac_status=$?
35826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827  (exit $ac_status); }; } &&
35828	 { ac_try='test -s conftest.$ac_objext'
35829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35830  (eval $ac_try) 2>&5
35831  ac_status=$?
35832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833  (exit $ac_status); }; }; then
35834  wx_cv_func_broken_swprintf_decl=no
35835else
35836  echo "$as_me: failed program was:" >&5
35837sed 's/^/| /' conftest.$ac_ext >&5
35838
35839wx_cv_func_broken_swprintf_decl=yes
35840
35841fi
35842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35843
35844
35845fi
35846echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35847echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35848
35849        if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35850            cat >>confdefs.h <<\_ACEOF
35851#define HAVE_BROKEN_SWPRINTF_DECL 1
35852_ACEOF
35853
35854        fi
35855    fi
35856
35857            wchar_headers="#include <stdio.h>
35858#include <wchar.h>"
35859    case "${host}" in
35860        *-*-solaris2* )
35861
35862for ac_header in widec.h
35863do
35864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35865echo "$as_me:$LINENO: checking for $ac_header" >&5
35866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35867if eval "test \"\${$as_ac_Header+set}\" = set"; then
35868  echo $ECHO_N "(cached) $ECHO_C" >&6
35869else
35870  cat >conftest.$ac_ext <<_ACEOF
35871/* confdefs.h.  */
35872_ACEOF
35873cat confdefs.h >>conftest.$ac_ext
35874cat >>conftest.$ac_ext <<_ACEOF
35875/* end confdefs.h.  */
35876$ac_includes_default
35877
35878#include <$ac_header>
35879_ACEOF
35880rm -f conftest.$ac_objext
35881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35882  (eval $ac_compile) 2>conftest.er1
35883  ac_status=$?
35884  grep -v '^ *+' conftest.er1 >conftest.err
35885  rm -f conftest.er1
35886  cat conftest.err >&5
35887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888  (exit $ac_status); } &&
35889	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35891  (eval $ac_try) 2>&5
35892  ac_status=$?
35893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35894  (exit $ac_status); }; } &&
35895	 { ac_try='test -s conftest.$ac_objext'
35896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35897  (eval $ac_try) 2>&5
35898  ac_status=$?
35899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900  (exit $ac_status); }; }; then
35901  eval "$as_ac_Header=yes"
35902else
35903  echo "$as_me: failed program was:" >&5
35904sed 's/^/| /' conftest.$ac_ext >&5
35905
35906eval "$as_ac_Header=no"
35907fi
35908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35909fi
35910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35912if test `eval echo '${'$as_ac_Header'}'` = yes; then
35913  cat >>confdefs.h <<_ACEOF
35914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35915_ACEOF
35916
35917fi
35918
35919done
35920
35921            if test "$ac_cv_header_widec_h" = "yes"; then
35922                wchar_headers="$wchar_headers
35923#include <widec.h>"
35924            fi
35925    esac
35926
35927
35928  for wx_func in wputc wputchar putws fputws wprintf vswprintf
35929  do
35930    echo "$as_me:$LINENO: checking for $wx_func" >&5
35931echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
35932if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
35933  echo $ECHO_N "(cached) $ECHO_C" >&6
35934else
35935
35936        cat >conftest.$ac_ext <<_ACEOF
35937
35938            /* confdefs.h.  */
35939_ACEOF
35940cat confdefs.h >>conftest.$ac_ext
35941cat >>conftest.$ac_ext <<_ACEOF
35942/* end confdefs.h.  */
35943
35944                $wchar_headers
35945                $ac_includes_default
35946
35947int
35948main ()
35949{
35950
35951                #ifndef $wx_func
35952                  &$wx_func;
35953                #endif
35954
35955
35956  ;
35957  return 0;
35958}
35959
35960_ACEOF
35961rm -f conftest.$ac_objext conftest$ac_exeext
35962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35963  (eval $ac_link) 2>conftest.er1
35964  ac_status=$?
35965  grep -v '^ *+' conftest.er1 >conftest.err
35966  rm -f conftest.er1
35967  cat conftest.err >&5
35968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969  (exit $ac_status); } &&
35970	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
35971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35972  (eval $ac_try) 2>&5
35973  ac_status=$?
35974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975  (exit $ac_status); }; } &&
35976	 { ac_try='test -s conftest$ac_exeext'
35977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35978  (eval $ac_try) 2>&5
35979  ac_status=$?
35980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981  (exit $ac_status); }; }; then
35982  eval wx_cv_func_$wx_func=yes
35983else
35984  echo "$as_me: failed program was:" >&5
35985sed 's/^/| /' conftest.$ac_ext >&5
35986
35987eval wx_cv_func_$wx_func=no
35988fi
35989rm -f conftest.err conftest.$ac_objext \
35990      conftest$ac_exeext conftest.$ac_ext
35991
35992fi
35993echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
35994echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
35995
35996    if eval test \$wx_cv_func_$wx_func = yes
35997    then
35998      cat >>confdefs.h <<_ACEOF
35999#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36000_ACEOF
36001
36002
36003    else
36004      :
36005
36006    fi
36007  done
36008
36009
36010                echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36011echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
36012    cat >conftest.$ac_ext <<_ACEOF
36013/* confdefs.h.  */
36014_ACEOF
36015cat confdefs.h >>conftest.$ac_ext
36016cat >>conftest.$ac_ext <<_ACEOF
36017/* end confdefs.h.  */
36018#include <wchar.h>
36019int
36020main ()
36021{
36022&_vsnwprintf;
36023  ;
36024  return 0;
36025}
36026_ACEOF
36027rm -f conftest.$ac_objext
36028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36029  (eval $ac_compile) 2>conftest.er1
36030  ac_status=$?
36031  grep -v '^ *+' conftest.er1 >conftest.err
36032  rm -f conftest.er1
36033  cat conftest.err >&5
36034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035  (exit $ac_status); } &&
36036	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
36037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36038  (eval $ac_try) 2>&5
36039  ac_status=$?
36040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36041  (exit $ac_status); }; } &&
36042	 { ac_try='test -s conftest.$ac_objext'
36043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36044  (eval $ac_try) 2>&5
36045  ac_status=$?
36046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047  (exit $ac_status); }; }; then
36048  echo "$as_me:$LINENO: result: yes" >&5
36049echo "${ECHO_T}yes" >&6
36050                    cat >>confdefs.h <<\_ACEOF
36051#define HAVE__VSNWPRINTF 1
36052_ACEOF
36053
36054else
36055  echo "$as_me: failed program was:" >&5
36056sed 's/^/| /' conftest.$ac_ext >&5
36057
36058echo "$as_me:$LINENO: result: no" >&5
36059echo "${ECHO_T}no" >&6
36060fi
36061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
36062fi
36063
36064if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
36065
36066  for wx_func in fnmatch
36067  do
36068    echo "$as_me:$LINENO: checking for $wx_func" >&5
36069echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36070if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
36071  echo $ECHO_N "(cached) $ECHO_C" >&6
36072else
36073
36074        cat >conftest.$ac_ext <<_ACEOF
36075
36076            /* confdefs.h.  */
36077_ACEOF
36078cat confdefs.h >>conftest.$ac_ext
36079cat >>conftest.$ac_ext <<_ACEOF
36080/* end confdefs.h.  */
36081
36082                #include <fnmatch.h>
36083                $ac_includes_default
36084
36085int
36086main ()
36087{
36088
36089                #ifndef $wx_func
36090                  &$wx_func;
36091                #endif
36092
36093
36094  ;
36095  return 0;
36096}
36097
36098_ACEOF
36099rm -f conftest.$ac_objext conftest$ac_exeext
36100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36101  (eval $ac_link) 2>conftest.er1
36102  ac_status=$?
36103  grep -v '^ *+' conftest.er1 >conftest.err
36104  rm -f conftest.er1
36105  cat conftest.err >&5
36106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107  (exit $ac_status); } &&
36108	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
36109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36110  (eval $ac_try) 2>&5
36111  ac_status=$?
36112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113  (exit $ac_status); }; } &&
36114	 { ac_try='test -s conftest$ac_exeext'
36115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36116  (eval $ac_try) 2>&5
36117  ac_status=$?
36118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119  (exit $ac_status); }; }; then
36120  eval wx_cv_func_$wx_func=yes
36121else
36122  echo "$as_me: failed program was:" >&5
36123sed 's/^/| /' conftest.$ac_ext >&5
36124
36125eval wx_cv_func_$wx_func=no
36126fi
36127rm -f conftest.err conftest.$ac_objext \
36128      conftest$ac_exeext conftest.$ac_ext
36129
36130fi
36131echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36132echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
36133
36134    if eval test \$wx_cv_func_$wx_func = yes
36135    then
36136      cat >>confdefs.h <<_ACEOF
36137#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36138_ACEOF
36139
36140
36141    else
36142      :
36143
36144    fi
36145  done
36146
36147fi
36148
36149if test "$wxUSE_FILE" = "yes"; then
36150
36151  for wx_func in fsync
36152  do
36153    echo "$as_me:$LINENO: checking for $wx_func" >&5
36154echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36155if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
36156  echo $ECHO_N "(cached) $ECHO_C" >&6
36157else
36158
36159        cat >conftest.$ac_ext <<_ACEOF
36160
36161            /* confdefs.h.  */
36162_ACEOF
36163cat confdefs.h >>conftest.$ac_ext
36164cat >>conftest.$ac_ext <<_ACEOF
36165/* end confdefs.h.  */
36166
36167
36168                $ac_includes_default
36169
36170int
36171main ()
36172{
36173
36174                #ifndef $wx_func
36175                  &$wx_func;
36176                #endif
36177
36178
36179  ;
36180  return 0;
36181}
36182
36183_ACEOF
36184rm -f conftest.$ac_objext conftest$ac_exeext
36185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36186  (eval $ac_link) 2>conftest.er1
36187  ac_status=$?
36188  grep -v '^ *+' conftest.er1 >conftest.err
36189  rm -f conftest.er1
36190  cat conftest.err >&5
36191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192  (exit $ac_status); } &&
36193	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
36194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195  (eval $ac_try) 2>&5
36196  ac_status=$?
36197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198  (exit $ac_status); }; } &&
36199	 { ac_try='test -s conftest$ac_exeext'
36200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36201  (eval $ac_try) 2>&5
36202  ac_status=$?
36203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204  (exit $ac_status); }; }; then
36205  eval wx_cv_func_$wx_func=yes
36206else
36207  echo "$as_me: failed program was:" >&5
36208sed 's/^/| /' conftest.$ac_ext >&5
36209
36210eval wx_cv_func_$wx_func=no
36211fi
36212rm -f conftest.err conftest.$ac_objext \
36213      conftest$ac_exeext conftest.$ac_ext
36214
36215fi
36216echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36217echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
36218
36219    if eval test \$wx_cv_func_$wx_func = yes
36220    then
36221      cat >>confdefs.h <<_ACEOF
36222#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36223_ACEOF
36224
36225
36226    else
36227      :
36228
36229    fi
36230  done
36231
36232fi
36233
36234ac_ext=cc
36235ac_cpp='$CXXCPP $CPPFLAGS'
36236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36239
36240
36241  for wx_func in round
36242  do
36243    echo "$as_me:$LINENO: checking for $wx_func" >&5
36244echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36245if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
36246  echo $ECHO_N "(cached) $ECHO_C" >&6
36247else
36248
36249        cat >conftest.$ac_ext <<_ACEOF
36250
36251            /* confdefs.h.  */
36252_ACEOF
36253cat confdefs.h >>conftest.$ac_ext
36254cat >>conftest.$ac_ext <<_ACEOF
36255/* end confdefs.h.  */
36256
36257                #include <math.h>
36258                $ac_includes_default
36259
36260int
36261main ()
36262{
36263
36264                #ifndef $wx_func
36265                  &$wx_func;
36266                #endif
36267
36268
36269  ;
36270  return 0;
36271}
36272
36273_ACEOF
36274rm -f conftest.$ac_objext conftest$ac_exeext
36275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36276  (eval $ac_link) 2>conftest.er1
36277  ac_status=$?
36278  grep -v '^ *+' conftest.er1 >conftest.err
36279  rm -f conftest.er1
36280  cat conftest.err >&5
36281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282  (exit $ac_status); } &&
36283	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
36284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36285  (eval $ac_try) 2>&5
36286  ac_status=$?
36287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288  (exit $ac_status); }; } &&
36289	 { ac_try='test -s conftest$ac_exeext'
36290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36291  (eval $ac_try) 2>&5
36292  ac_status=$?
36293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36294  (exit $ac_status); }; }; then
36295  eval wx_cv_func_$wx_func=yes
36296else
36297  echo "$as_me: failed program was:" >&5
36298sed 's/^/| /' conftest.$ac_ext >&5
36299
36300eval wx_cv_func_$wx_func=no
36301fi
36302rm -f conftest.err conftest.$ac_objext \
36303      conftest$ac_exeext conftest.$ac_ext
36304
36305fi
36306echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36307echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
36308
36309    if eval test \$wx_cv_func_$wx_func = yes
36310    then
36311      cat >>confdefs.h <<_ACEOF
36312#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36313_ACEOF
36314
36315
36316    else
36317      :
36318
36319    fi
36320  done
36321
36322ac_ext=c
36323ac_cpp='$CPP $CPPFLAGS'
36324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36326ac_compiler_gnu=$ac_cv_c_compiler_gnu
36327
36328
36329if test "$TOOLKIT" != "MSW"; then
36330
36331
36332
36333
36334
36335# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36336if test "${with_libiconv_prefix+set}" = set; then
36337  withval="$with_libiconv_prefix"
36338
36339    for dir in `echo "$withval" | tr : ' '`; do
36340      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36341      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36342    done
36343
36344fi;
36345
36346  echo "$as_me:$LINENO: checking for iconv" >&5
36347echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36348if test "${am_cv_func_iconv+set}" = set; then
36349  echo $ECHO_N "(cached) $ECHO_C" >&6
36350else
36351
36352    am_cv_func_iconv="no, consider installing GNU libiconv"
36353    am_cv_lib_iconv=no
36354    cat >conftest.$ac_ext <<_ACEOF
36355/* confdefs.h.  */
36356_ACEOF
36357cat confdefs.h >>conftest.$ac_ext
36358cat >>conftest.$ac_ext <<_ACEOF
36359/* end confdefs.h.  */
36360#include <stdlib.h>
36361#include <iconv.h>
36362int
36363main ()
36364{
36365iconv_t cd = iconv_open("","");
36366       iconv(cd,NULL,NULL,NULL,NULL);
36367       iconv_close(cd);
36368  ;
36369  return 0;
36370}
36371_ACEOF
36372rm -f conftest.$ac_objext conftest$ac_exeext
36373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36374  (eval $ac_link) 2>conftest.er1
36375  ac_status=$?
36376  grep -v '^ *+' conftest.er1 >conftest.err
36377  rm -f conftest.er1
36378  cat conftest.err >&5
36379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380  (exit $ac_status); } &&
36381	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
36382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36383  (eval $ac_try) 2>&5
36384  ac_status=$?
36385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386  (exit $ac_status); }; } &&
36387	 { ac_try='test -s conftest$ac_exeext'
36388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36389  (eval $ac_try) 2>&5
36390  ac_status=$?
36391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392  (exit $ac_status); }; }; then
36393  am_cv_func_iconv=yes
36394else
36395  echo "$as_me: failed program was:" >&5
36396sed 's/^/| /' conftest.$ac_ext >&5
36397
36398fi
36399rm -f conftest.err conftest.$ac_objext \
36400      conftest$ac_exeext conftest.$ac_ext
36401    if test "$am_cv_func_iconv" != yes; then
36402      am_save_LIBS="$LIBS"
36403      LIBS="$LIBS -liconv"
36404      cat >conftest.$ac_ext <<_ACEOF
36405/* confdefs.h.  */
36406_ACEOF
36407cat confdefs.h >>conftest.$ac_ext
36408cat >>conftest.$ac_ext <<_ACEOF
36409/* end confdefs.h.  */
36410#include <stdlib.h>
36411#include <iconv.h>
36412int
36413main ()
36414{
36415iconv_t cd = iconv_open("","");
36416         iconv(cd,NULL,NULL,NULL,NULL);
36417         iconv_close(cd);
36418  ;
36419  return 0;
36420}
36421_ACEOF
36422rm -f conftest.$ac_objext conftest$ac_exeext
36423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36424  (eval $ac_link) 2>conftest.er1
36425  ac_status=$?
36426  grep -v '^ *+' conftest.er1 >conftest.err
36427  rm -f conftest.er1
36428  cat conftest.err >&5
36429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36430  (exit $ac_status); } &&
36431	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
36432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36433  (eval $ac_try) 2>&5
36434  ac_status=$?
36435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36436  (exit $ac_status); }; } &&
36437	 { ac_try='test -s conftest$ac_exeext'
36438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36439  (eval $ac_try) 2>&5
36440  ac_status=$?
36441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36442  (exit $ac_status); }; }; then
36443  am_cv_lib_iconv=yes
36444        am_cv_func_iconv=yes
36445else
36446  echo "$as_me: failed program was:" >&5
36447sed 's/^/| /' conftest.$ac_ext >&5
36448
36449fi
36450rm -f conftest.err conftest.$ac_objext \
36451      conftest$ac_exeext conftest.$ac_ext
36452      LIBS="$am_save_LIBS"
36453    fi
36454
36455fi
36456echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36457echo "${ECHO_T}$am_cv_func_iconv" >&6
36458  if test "$am_cv_func_iconv" = yes; then
36459
36460cat >>confdefs.h <<\_ACEOF
36461#define HAVE_ICONV 1
36462_ACEOF
36463
36464    echo "$as_me:$LINENO: checking if iconv needs const" >&5
36465echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36466if test "${wx_cv_func_iconv_const+set}" = set; then
36467  echo $ECHO_N "(cached) $ECHO_C" >&6
36468else
36469  cat >conftest.$ac_ext <<_ACEOF
36470/* confdefs.h.  */
36471_ACEOF
36472cat confdefs.h >>conftest.$ac_ext
36473cat >>conftest.$ac_ext <<_ACEOF
36474/* end confdefs.h.  */
36475
36476#include <stdlib.h>
36477#include <iconv.h>
36478extern
36479#ifdef __cplusplus
36480"C"
36481#endif
36482#if defined(__STDC__) || defined(__cplusplus)
36483size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36484#else
36485size_t iconv();
36486#endif
36487
36488int
36489main ()
36490{
36491
36492  ;
36493  return 0;
36494}
36495_ACEOF
36496rm -f conftest.$ac_objext
36497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36498  (eval $ac_compile) 2>conftest.er1
36499  ac_status=$?
36500  grep -v '^ *+' conftest.er1 >conftest.err
36501  rm -f conftest.er1
36502  cat conftest.err >&5
36503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504  (exit $ac_status); } &&
36505	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
36506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36507  (eval $ac_try) 2>&5
36508  ac_status=$?
36509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510  (exit $ac_status); }; } &&
36511	 { ac_try='test -s conftest.$ac_objext'
36512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36513  (eval $ac_try) 2>&5
36514  ac_status=$?
36515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516  (exit $ac_status); }; }; then
36517  wx_cv_func_iconv_const="no"
36518else
36519  echo "$as_me: failed program was:" >&5
36520sed 's/^/| /' conftest.$ac_ext >&5
36521
36522wx_cv_func_iconv_const="yes"
36523
36524fi
36525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36526
36527fi
36528echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36529echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36530
36531    iconv_const=
36532    if test "x$wx_cv_func_iconv_const" = "xyes"; then
36533        iconv_const="const"
36534    fi
36535
36536
36537cat >>confdefs.h <<_ACEOF
36538#define ICONV_CONST $iconv_const
36539_ACEOF
36540
36541  fi
36542  LIBICONV=
36543  if test "$am_cv_lib_iconv" = yes; then
36544    LIBICONV="-liconv"
36545  fi
36546
36547
36548LIBS="$LIBICONV $LIBS"
36549
36550if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36551
36552for ac_func in sigaction
36553do
36554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36555echo "$as_me:$LINENO: checking for $ac_func" >&5
36556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36557if eval "test \"\${$as_ac_var+set}\" = set"; then
36558  echo $ECHO_N "(cached) $ECHO_C" >&6
36559else
36560  cat >conftest.$ac_ext <<_ACEOF
36561/* confdefs.h.  */
36562_ACEOF
36563cat confdefs.h >>conftest.$ac_ext
36564cat >>conftest.$ac_ext <<_ACEOF
36565/* end confdefs.h.  */
36566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36567   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36568#define $ac_func innocuous_$ac_func
36569
36570/* System header to define __stub macros and hopefully few prototypes,
36571    which can conflict with char $ac_func (); below.
36572    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36573    <limits.h> exists even on freestanding compilers.  */
36574
36575#ifdef __STDC__
36576# include <limits.h>
36577#else
36578# include <assert.h>
36579#endif
36580
36581#undef $ac_func
36582
36583/* Override any gcc2 internal prototype to avoid an error.  */
36584#ifdef __cplusplus
36585extern "C"
36586{
36587#endif
36588/* We use char because int might match the return type of a gcc2
36589   builtin and then its argument prototype would still apply.  */
36590char $ac_func ();
36591/* The GNU C library defines this for functions which it implements
36592    to always fail with ENOSYS.  Some functions are actually named
36593    something starting with __ and the normal name is an alias.  */
36594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36595choke me
36596#else
36597char (*f) () = $ac_func;
36598#endif
36599#ifdef __cplusplus
36600}
36601#endif
36602
36603int
36604main ()
36605{
36606return f != $ac_func;
36607  ;
36608  return 0;
36609}
36610_ACEOF
36611rm -f conftest.$ac_objext conftest$ac_exeext
36612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36613  (eval $ac_link) 2>conftest.er1
36614  ac_status=$?
36615  grep -v '^ *+' conftest.er1 >conftest.err
36616  rm -f conftest.er1
36617  cat conftest.err >&5
36618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619  (exit $ac_status); } &&
36620	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
36621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36622  (eval $ac_try) 2>&5
36623  ac_status=$?
36624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36625  (exit $ac_status); }; } &&
36626	 { ac_try='test -s conftest$ac_exeext'
36627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36628  (eval $ac_try) 2>&5
36629  ac_status=$?
36630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631  (exit $ac_status); }; }; then
36632  eval "$as_ac_var=yes"
36633else
36634  echo "$as_me: failed program was:" >&5
36635sed 's/^/| /' conftest.$ac_ext >&5
36636
36637eval "$as_ac_var=no"
36638fi
36639rm -f conftest.err conftest.$ac_objext \
36640      conftest$ac_exeext conftest.$ac_ext
36641fi
36642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36644if test `eval echo '${'$as_ac_var'}'` = yes; then
36645  cat >>confdefs.h <<_ACEOF
36646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36647_ACEOF
36648
36649fi
36650done
36651
36652
36653    if test "$ac_cv_func_sigaction" = "no"; then
36654        { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36655echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36656        wxUSE_ON_FATAL_EXCEPTION=no
36657    fi
36658
36659    if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36660      echo "$as_me:$LINENO: checking for sa_handler type" >&5
36661echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36662if test "${wx_cv_type_sa_handler+set}" = set; then
36663  echo $ECHO_N "(cached) $ECHO_C" >&6
36664else
36665
36666                ac_ext=cc
36667ac_cpp='$CXXCPP $CPPFLAGS'
36668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36671
36672        cat >conftest.$ac_ext <<_ACEOF
36673/* confdefs.h.  */
36674_ACEOF
36675cat confdefs.h >>conftest.$ac_ext
36676cat >>conftest.$ac_ext <<_ACEOF
36677/* end confdefs.h.  */
36678#include <signal.h>
36679int
36680main ()
36681{
36682
36683                        extern void testSigHandler(int);
36684
36685                        struct sigaction sa;
36686                        sa.sa_handler = testSigHandler;
36687
36688  ;
36689  return 0;
36690}
36691_ACEOF
36692rm -f conftest.$ac_objext
36693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36694  (eval $ac_compile) 2>conftest.er1
36695  ac_status=$?
36696  grep -v '^ *+' conftest.er1 >conftest.err
36697  rm -f conftest.er1
36698  cat conftest.err >&5
36699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700  (exit $ac_status); } &&
36701	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
36702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703  (eval $ac_try) 2>&5
36704  ac_status=$?
36705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706  (exit $ac_status); }; } &&
36707	 { ac_try='test -s conftest.$ac_objext'
36708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36709  (eval $ac_try) 2>&5
36710  ac_status=$?
36711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712  (exit $ac_status); }; }; then
36713
36714                        wx_cv_type_sa_handler=int
36715
36716else
36717  echo "$as_me: failed program was:" >&5
36718sed 's/^/| /' conftest.$ac_ext >&5
36719
36720
36721                        wx_cv_type_sa_handler=void
36722
36723fi
36724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36725        ac_ext=c
36726ac_cpp='$CPP $CPPFLAGS'
36727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36729ac_compiler_gnu=$ac_cv_c_compiler_gnu
36730
36731
36732fi
36733echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36734echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36735
36736      cat >>confdefs.h <<_ACEOF
36737#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36738_ACEOF
36739
36740    fi
36741fi
36742
36743if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36744    ac_ext=cc
36745ac_cpp='$CXXCPP $CPPFLAGS'
36746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36749
36750    echo "$as_me:$LINENO: checking for library containing backtrace" >&5
36751echo $ECHO_N "checking for library containing backtrace... $ECHO_C" >&6
36752if test "${ac_cv_search_backtrace+set}" = set; then
36753  echo $ECHO_N "(cached) $ECHO_C" >&6
36754else
36755  ac_func_search_save_LIBS=$LIBS
36756ac_cv_search_backtrace=no
36757cat >conftest.$ac_ext <<_ACEOF
36758/* confdefs.h.  */
36759_ACEOF
36760cat confdefs.h >>conftest.$ac_ext
36761cat >>conftest.$ac_ext <<_ACEOF
36762/* end confdefs.h.  */
36763
36764/* Override any gcc2 internal prototype to avoid an error.  */
36765#ifdef __cplusplus
36766extern "C"
36767#endif
36768/* We use char because int might match the return type of a gcc2
36769   builtin and then its argument prototype would still apply.  */
36770char backtrace ();
36771int
36772main ()
36773{
36774backtrace ();
36775  ;
36776  return 0;
36777}
36778_ACEOF
36779rm -f conftest.$ac_objext conftest$ac_exeext
36780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36781  (eval $ac_link) 2>conftest.er1
36782  ac_status=$?
36783  grep -v '^ *+' conftest.er1 >conftest.err
36784  rm -f conftest.er1
36785  cat conftest.err >&5
36786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36787  (exit $ac_status); } &&
36788	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
36789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36790  (eval $ac_try) 2>&5
36791  ac_status=$?
36792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793  (exit $ac_status); }; } &&
36794	 { ac_try='test -s conftest$ac_exeext'
36795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36796  (eval $ac_try) 2>&5
36797  ac_status=$?
36798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799  (exit $ac_status); }; }; then
36800  ac_cv_search_backtrace="none required"
36801else
36802  echo "$as_me: failed program was:" >&5
36803sed 's/^/| /' conftest.$ac_ext >&5
36804
36805fi
36806rm -f conftest.err conftest.$ac_objext \
36807      conftest$ac_exeext conftest.$ac_ext
36808if test "$ac_cv_search_backtrace" = no; then
36809  for ac_lib in execinfo; do
36810    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36811    cat >conftest.$ac_ext <<_ACEOF
36812/* confdefs.h.  */
36813_ACEOF
36814cat confdefs.h >>conftest.$ac_ext
36815cat >>conftest.$ac_ext <<_ACEOF
36816/* end confdefs.h.  */
36817
36818/* Override any gcc2 internal prototype to avoid an error.  */
36819#ifdef __cplusplus
36820extern "C"
36821#endif
36822/* We use char because int might match the return type of a gcc2
36823   builtin and then its argument prototype would still apply.  */
36824char backtrace ();
36825int
36826main ()
36827{
36828backtrace ();
36829  ;
36830  return 0;
36831}
36832_ACEOF
36833rm -f conftest.$ac_objext conftest$ac_exeext
36834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36835  (eval $ac_link) 2>conftest.er1
36836  ac_status=$?
36837  grep -v '^ *+' conftest.er1 >conftest.err
36838  rm -f conftest.er1
36839  cat conftest.err >&5
36840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841  (exit $ac_status); } &&
36842	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
36843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36844  (eval $ac_try) 2>&5
36845  ac_status=$?
36846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36847  (exit $ac_status); }; } &&
36848	 { ac_try='test -s conftest$ac_exeext'
36849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36850  (eval $ac_try) 2>&5
36851  ac_status=$?
36852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853  (exit $ac_status); }; }; then
36854  ac_cv_search_backtrace="-l$ac_lib"
36855break
36856else
36857  echo "$as_me: failed program was:" >&5
36858sed 's/^/| /' conftest.$ac_ext >&5
36859
36860fi
36861rm -f conftest.err conftest.$ac_objext \
36862      conftest$ac_exeext conftest.$ac_ext
36863  done
36864fi
36865LIBS=$ac_func_search_save_LIBS
36866fi
36867echo "$as_me:$LINENO: result: $ac_cv_search_backtrace" >&5
36868echo "${ECHO_T}$ac_cv_search_backtrace" >&6
36869if test "$ac_cv_search_backtrace" != no; then
36870  test "$ac_cv_search_backtrace" = "none required" || LIBS="$ac_cv_search_backtrace $LIBS"
36871  echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36872echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36873if test "${wx_cv_func_backtrace+set}" = set; then
36874  echo $ECHO_N "(cached) $ECHO_C" >&6
36875else
36876  cat >conftest.$ac_ext <<_ACEOF
36877/* confdefs.h.  */
36878_ACEOF
36879cat confdefs.h >>conftest.$ac_ext
36880cat >>conftest.$ac_ext <<_ACEOF
36881/* end confdefs.h.  */
36882#include <execinfo.h>
36883int
36884main ()
36885{
36886
36887                    void *trace[1];
36888                    char **messages;
36889                    backtrace(trace, 1);
36890                    messages = backtrace_symbols(trace, 1);
36891
36892  ;
36893  return 0;
36894}
36895_ACEOF
36896rm -f conftest.$ac_objext conftest$ac_exeext
36897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36898  (eval $ac_link) 2>conftest.er1
36899  ac_status=$?
36900  grep -v '^ *+' conftest.er1 >conftest.err
36901  rm -f conftest.er1
36902  cat conftest.err >&5
36903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904  (exit $ac_status); } &&
36905	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
36906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36907  (eval $ac_try) 2>&5
36908  ac_status=$?
36909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910  (exit $ac_status); }; } &&
36911	 { ac_try='test -s conftest$ac_exeext'
36912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36913  (eval $ac_try) 2>&5
36914  ac_status=$?
36915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916  (exit $ac_status); }; }; then
36917  wx_cv_func_backtrace=yes
36918else
36919  echo "$as_me: failed program was:" >&5
36920sed 's/^/| /' conftest.$ac_ext >&5
36921
36922wx_cv_func_backtrace=no
36923
36924fi
36925rm -f conftest.err conftest.$ac_objext \
36926      conftest$ac_exeext conftest.$ac_ext
36927
36928fi
36929echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36930echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36931else
36932  wx_cv_func_backtrace=no
36933fi
36934
36935
36936    if test "$wx_cv_func_backtrace" = "no"; then
36937        { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36938echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36939        wxUSE_STACKWALKER=no
36940    else
36941        echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36942echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36943if test "${wx_cv_func_cxa_demangle+set}" = set; then
36944  echo $ECHO_N "(cached) $ECHO_C" >&6
36945else
36946
36947                cat >conftest.$ac_ext <<_ACEOF
36948/* confdefs.h.  */
36949_ACEOF
36950cat confdefs.h >>conftest.$ac_ext
36951cat >>conftest.$ac_ext <<_ACEOF
36952/* end confdefs.h.  */
36953#include <cxxabi.h>
36954int
36955main ()
36956{
36957
36958                        int rc;
36959                        __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36960
36961  ;
36962  return 0;
36963}
36964_ACEOF
36965rm -f conftest.$ac_objext conftest$ac_exeext
36966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36967  (eval $ac_link) 2>conftest.er1
36968  ac_status=$?
36969  grep -v '^ *+' conftest.er1 >conftest.err
36970  rm -f conftest.er1
36971  cat conftest.err >&5
36972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36973  (exit $ac_status); } &&
36974	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
36975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36976  (eval $ac_try) 2>&5
36977  ac_status=$?
36978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36979  (exit $ac_status); }; } &&
36980	 { ac_try='test -s conftest$ac_exeext'
36981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36982  (eval $ac_try) 2>&5
36983  ac_status=$?
36984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985  (exit $ac_status); }; }; then
36986  wx_cv_func_cxa_demangle=yes
36987else
36988  echo "$as_me: failed program was:" >&5
36989sed 's/^/| /' conftest.$ac_ext >&5
36990
36991wx_cv_func_cxa_demangle=no
36992
36993fi
36994rm -f conftest.err conftest.$ac_objext \
36995      conftest$ac_exeext conftest.$ac_ext
36996
36997
36998fi
36999echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37000echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
37001
37002        if test "$wx_cv_func_cxa_demangle" = "yes"; then
37003            cat >>confdefs.h <<\_ACEOF
37004#define HAVE_CXA_DEMANGLE 1
37005_ACEOF
37006
37007        fi
37008    fi
37009    ac_ext=c
37010ac_cpp='$CPP $CPPFLAGS'
37011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37013ac_compiler_gnu=$ac_cv_c_compiler_gnu
37014
37015fi
37016
37017if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
37018    { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37019echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37020    wxUSE_STACKWALKER=no
37021fi
37022
37023
37024
37025
37026for ac_func in mkstemp mktemp
37027do
37028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37029echo "$as_me:$LINENO: checking for $ac_func" >&5
37030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37031if eval "test \"\${$as_ac_var+set}\" = set"; then
37032  echo $ECHO_N "(cached) $ECHO_C" >&6
37033else
37034  cat >conftest.$ac_ext <<_ACEOF
37035/* confdefs.h.  */
37036_ACEOF
37037cat confdefs.h >>conftest.$ac_ext
37038cat >>conftest.$ac_ext <<_ACEOF
37039/* end confdefs.h.  */
37040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37041   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37042#define $ac_func innocuous_$ac_func
37043
37044/* System header to define __stub macros and hopefully few prototypes,
37045    which can conflict with char $ac_func (); below.
37046    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37047    <limits.h> exists even on freestanding compilers.  */
37048
37049#ifdef __STDC__
37050# include <limits.h>
37051#else
37052# include <assert.h>
37053#endif
37054
37055#undef $ac_func
37056
37057/* Override any gcc2 internal prototype to avoid an error.  */
37058#ifdef __cplusplus
37059extern "C"
37060{
37061#endif
37062/* We use char because int might match the return type of a gcc2
37063   builtin and then its argument prototype would still apply.  */
37064char $ac_func ();
37065/* The GNU C library defines this for functions which it implements
37066    to always fail with ENOSYS.  Some functions are actually named
37067    something starting with __ and the normal name is an alias.  */
37068#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37069choke me
37070#else
37071char (*f) () = $ac_func;
37072#endif
37073#ifdef __cplusplus
37074}
37075#endif
37076
37077int
37078main ()
37079{
37080return f != $ac_func;
37081  ;
37082  return 0;
37083}
37084_ACEOF
37085rm -f conftest.$ac_objext conftest$ac_exeext
37086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37087  (eval $ac_link) 2>conftest.er1
37088  ac_status=$?
37089  grep -v '^ *+' conftest.er1 >conftest.err
37090  rm -f conftest.er1
37091  cat conftest.err >&5
37092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093  (exit $ac_status); } &&
37094	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
37095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37096  (eval $ac_try) 2>&5
37097  ac_status=$?
37098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099  (exit $ac_status); }; } &&
37100	 { ac_try='test -s conftest$ac_exeext'
37101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102  (eval $ac_try) 2>&5
37103  ac_status=$?
37104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105  (exit $ac_status); }; }; then
37106  eval "$as_ac_var=yes"
37107else
37108  echo "$as_me: failed program was:" >&5
37109sed 's/^/| /' conftest.$ac_ext >&5
37110
37111eval "$as_ac_var=no"
37112fi
37113rm -f conftest.err conftest.$ac_objext \
37114      conftest$ac_exeext conftest.$ac_ext
37115fi
37116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37117echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37118if test `eval echo '${'$as_ac_var'}'` = yes; then
37119  cat >>confdefs.h <<_ACEOF
37120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37121_ACEOF
37122 break
37123fi
37124done
37125
37126
37127echo "$as_me:$LINENO: checking for statfs" >&5
37128echo $ECHO_N "checking for statfs... $ECHO_C" >&6
37129if test "${wx_cv_func_statfs+set}" = set; then
37130  echo $ECHO_N "(cached) $ECHO_C" >&6
37131else
37132  cat >conftest.$ac_ext <<_ACEOF
37133/* confdefs.h.  */
37134_ACEOF
37135cat confdefs.h >>conftest.$ac_ext
37136cat >>conftest.$ac_ext <<_ACEOF
37137/* end confdefs.h.  */
37138
37139             #if defined(__BSD__)
37140             #include <sys/param.h>
37141             #include <sys/mount.h>
37142             #else
37143             #include <sys/vfs.h>
37144             #endif
37145
37146int
37147main ()
37148{
37149
37150             long l;
37151             struct statfs fs;
37152             statfs("/", &fs);
37153             l = fs.f_bsize;
37154             l += fs.f_blocks;
37155             l += fs.f_bavail;
37156
37157  ;
37158  return 0;
37159}
37160_ACEOF
37161rm -f conftest.$ac_objext
37162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37163  (eval $ac_compile) 2>conftest.er1
37164  ac_status=$?
37165  grep -v '^ *+' conftest.er1 >conftest.err
37166  rm -f conftest.er1
37167  cat conftest.err >&5
37168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169  (exit $ac_status); } &&
37170	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
37171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172  (eval $ac_try) 2>&5
37173  ac_status=$?
37174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175  (exit $ac_status); }; } &&
37176	 { ac_try='test -s conftest.$ac_objext'
37177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37178  (eval $ac_try) 2>&5
37179  ac_status=$?
37180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181  (exit $ac_status); }; }; then
37182  wx_cv_func_statfs=yes
37183else
37184  echo "$as_me: failed program was:" >&5
37185sed 's/^/| /' conftest.$ac_ext >&5
37186
37187wx_cv_func_statfs=no
37188
37189fi
37190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37191
37192fi
37193echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37194echo "${ECHO_T}$wx_cv_func_statfs" >&6
37195
37196if test "$wx_cv_func_statfs" = "yes"; then
37197        echo "$as_me:$LINENO: checking for statfs declaration" >&5
37198echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
37199if test "${wx_cv_func_statfs_decl+set}" = set; then
37200  echo $ECHO_N "(cached) $ECHO_C" >&6
37201else
37202  ac_ext=cc
37203ac_cpp='$CXXCPP $CPPFLAGS'
37204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37207
37208        cat >conftest.$ac_ext <<_ACEOF
37209/* confdefs.h.  */
37210_ACEOF
37211cat confdefs.h >>conftest.$ac_ext
37212cat >>conftest.$ac_ext <<_ACEOF
37213/* end confdefs.h.  */
37214
37215                 #if defined(__BSD__)
37216                 #include <sys/param.h>
37217                 #include <sys/mount.h>
37218                 #else
37219                 #include <sys/vfs.h>
37220                 #endif
37221
37222int
37223main ()
37224{
37225
37226                struct statfs fs;
37227                statfs("", &fs);
37228
37229  ;
37230  return 0;
37231}
37232_ACEOF
37233rm -f conftest.$ac_objext
37234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37235  (eval $ac_compile) 2>conftest.er1
37236  ac_status=$?
37237  grep -v '^ *+' conftest.er1 >conftest.err
37238  rm -f conftest.er1
37239  cat conftest.err >&5
37240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241  (exit $ac_status); } &&
37242	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
37243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244  (eval $ac_try) 2>&5
37245  ac_status=$?
37246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247  (exit $ac_status); }; } &&
37248	 { ac_try='test -s conftest.$ac_objext'
37249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37250  (eval $ac_try) 2>&5
37251  ac_status=$?
37252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37253  (exit $ac_status); }; }; then
37254  wx_cv_func_statfs_decl=yes
37255else
37256  echo "$as_me: failed program was:" >&5
37257sed 's/^/| /' conftest.$ac_ext >&5
37258
37259wx_cv_func_statfs_decl=no
37260
37261fi
37262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37263        ac_ext=c
37264ac_cpp='$CPP $CPPFLAGS'
37265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37267ac_compiler_gnu=$ac_cv_c_compiler_gnu
37268
37269
37270fi
37271echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37272echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
37273
37274    if test "$wx_cv_func_statfs_decl" = "yes"; then
37275        cat >>confdefs.h <<\_ACEOF
37276#define HAVE_STATFS_DECL 1
37277_ACEOF
37278
37279    fi
37280
37281    wx_cv_type_statvfs_t="struct statfs"
37282    cat >>confdefs.h <<\_ACEOF
37283#define HAVE_STATFS 1
37284_ACEOF
37285
37286else
37287    echo "$as_me:$LINENO: checking for statvfs" >&5
37288echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37289if test "${wx_cv_func_statvfs+set}" = set; then
37290  echo $ECHO_N "(cached) $ECHO_C" >&6
37291else
37292  cat >conftest.$ac_ext <<_ACEOF
37293/* confdefs.h.  */
37294_ACEOF
37295cat confdefs.h >>conftest.$ac_ext
37296cat >>conftest.$ac_ext <<_ACEOF
37297/* end confdefs.h.  */
37298
37299                #include <stddef.h>
37300                #include <sys/statvfs.h>
37301
37302int
37303main ()
37304{
37305
37306                statvfs("/", NULL);
37307
37308  ;
37309  return 0;
37310}
37311_ACEOF
37312rm -f conftest.$ac_objext
37313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37314  (eval $ac_compile) 2>conftest.er1
37315  ac_status=$?
37316  grep -v '^ *+' conftest.er1 >conftest.err
37317  rm -f conftest.er1
37318  cat conftest.err >&5
37319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320  (exit $ac_status); } &&
37321	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
37322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37323  (eval $ac_try) 2>&5
37324  ac_status=$?
37325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326  (exit $ac_status); }; } &&
37327	 { ac_try='test -s conftest.$ac_objext'
37328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37329  (eval $ac_try) 2>&5
37330  ac_status=$?
37331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332  (exit $ac_status); }; }; then
37333  wx_cv_func_statvfs=yes
37334else
37335  echo "$as_me: failed program was:" >&5
37336sed 's/^/| /' conftest.$ac_ext >&5
37337
37338wx_cv_func_statvfs=no
37339
37340fi
37341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37342
37343fi
37344echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37345echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37346
37347    if test "$wx_cv_func_statvfs" = "yes"; then
37348                                                                echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37349echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37350if test "${wx_cv_type_statvfs_t+set}" = set; then
37351  echo $ECHO_N "(cached) $ECHO_C" >&6
37352else
37353  ac_ext=cc
37354ac_cpp='$CXXCPP $CPPFLAGS'
37355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37358
37359            cat >conftest.$ac_ext <<_ACEOF
37360/* confdefs.h.  */
37361_ACEOF
37362cat confdefs.h >>conftest.$ac_ext
37363cat >>conftest.$ac_ext <<_ACEOF
37364/* end confdefs.h.  */
37365
37366                    #include <sys/statvfs.h>
37367
37368int
37369main ()
37370{
37371
37372                    long l;
37373                    statvfs_t fs;
37374                    statvfs("/", &fs);
37375                    l = fs.f_bsize;
37376                    l += fs.f_blocks;
37377                    l += fs.f_bavail;
37378
37379  ;
37380  return 0;
37381}
37382_ACEOF
37383rm -f conftest.$ac_objext
37384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37385  (eval $ac_compile) 2>conftest.er1
37386  ac_status=$?
37387  grep -v '^ *+' conftest.er1 >conftest.err
37388  rm -f conftest.er1
37389  cat conftest.err >&5
37390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391  (exit $ac_status); } &&
37392	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
37393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37394  (eval $ac_try) 2>&5
37395  ac_status=$?
37396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37397  (exit $ac_status); }; } &&
37398	 { ac_try='test -s conftest.$ac_objext'
37399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37400  (eval $ac_try) 2>&5
37401  ac_status=$?
37402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403  (exit $ac_status); }; }; then
37404  wx_cv_type_statvfs_t=statvfs_t
37405else
37406  echo "$as_me: failed program was:" >&5
37407sed 's/^/| /' conftest.$ac_ext >&5
37408
37409
37410                    cat >conftest.$ac_ext <<_ACEOF
37411/* confdefs.h.  */
37412_ACEOF
37413cat confdefs.h >>conftest.$ac_ext
37414cat >>conftest.$ac_ext <<_ACEOF
37415/* end confdefs.h.  */
37416
37417                            #include <sys/statvfs.h>
37418
37419int
37420main ()
37421{
37422
37423                            long l;
37424                            struct statvfs fs;
37425                            statvfs("/", &fs);
37426                            l = fs.f_bsize;
37427                            l += fs.f_blocks;
37428                            l += fs.f_bavail;
37429
37430  ;
37431  return 0;
37432}
37433_ACEOF
37434rm -f conftest.$ac_objext
37435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37436  (eval $ac_compile) 2>conftest.er1
37437  ac_status=$?
37438  grep -v '^ *+' conftest.er1 >conftest.err
37439  rm -f conftest.er1
37440  cat conftest.err >&5
37441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442  (exit $ac_status); } &&
37443	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
37444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37445  (eval $ac_try) 2>&5
37446  ac_status=$?
37447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448  (exit $ac_status); }; } &&
37449	 { ac_try='test -s conftest.$ac_objext'
37450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451  (eval $ac_try) 2>&5
37452  ac_status=$?
37453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454  (exit $ac_status); }; }; then
37455  wx_cv_type_statvfs_t="struct statvfs"
37456else
37457  echo "$as_me: failed program was:" >&5
37458sed 's/^/| /' conftest.$ac_ext >&5
37459
37460wx_cv_type_statvfs_t="unknown"
37461
37462fi
37463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37464
37465
37466fi
37467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37468            ac_ext=c
37469ac_cpp='$CPP $CPPFLAGS'
37470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37472ac_compiler_gnu=$ac_cv_c_compiler_gnu
37473
37474
37475fi
37476echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37477echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37478
37479        if test "$wx_cv_type_statvfs_t" != "unknown"; then
37480            cat >>confdefs.h <<\_ACEOF
37481#define HAVE_STATVFS 1
37482_ACEOF
37483
37484        fi
37485    else
37486                wx_cv_type_statvfs_t="unknown"
37487    fi
37488fi
37489
37490if test "$wx_cv_type_statvfs_t" != "unknown"; then
37491    cat >>confdefs.h <<_ACEOF
37492#define WX_STATFS_T $wx_cv_type_statvfs_t
37493_ACEOF
37494
37495else
37496    { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37497echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37498fi
37499
37500if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37501
37502
37503for ac_func in fcntl flock
37504do
37505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37506echo "$as_me:$LINENO: checking for $ac_func" >&5
37507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37508if eval "test \"\${$as_ac_var+set}\" = set"; then
37509  echo $ECHO_N "(cached) $ECHO_C" >&6
37510else
37511  cat >conftest.$ac_ext <<_ACEOF
37512/* confdefs.h.  */
37513_ACEOF
37514cat confdefs.h >>conftest.$ac_ext
37515cat >>conftest.$ac_ext <<_ACEOF
37516/* end confdefs.h.  */
37517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37518   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37519#define $ac_func innocuous_$ac_func
37520
37521/* System header to define __stub macros and hopefully few prototypes,
37522    which can conflict with char $ac_func (); below.
37523    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37524    <limits.h> exists even on freestanding compilers.  */
37525
37526#ifdef __STDC__
37527# include <limits.h>
37528#else
37529# include <assert.h>
37530#endif
37531
37532#undef $ac_func
37533
37534/* Override any gcc2 internal prototype to avoid an error.  */
37535#ifdef __cplusplus
37536extern "C"
37537{
37538#endif
37539/* We use char because int might match the return type of a gcc2
37540   builtin and then its argument prototype would still apply.  */
37541char $ac_func ();
37542/* The GNU C library defines this for functions which it implements
37543    to always fail with ENOSYS.  Some functions are actually named
37544    something starting with __ and the normal name is an alias.  */
37545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37546choke me
37547#else
37548char (*f) () = $ac_func;
37549#endif
37550#ifdef __cplusplus
37551}
37552#endif
37553
37554int
37555main ()
37556{
37557return f != $ac_func;
37558  ;
37559  return 0;
37560}
37561_ACEOF
37562rm -f conftest.$ac_objext conftest$ac_exeext
37563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37564  (eval $ac_link) 2>conftest.er1
37565  ac_status=$?
37566  grep -v '^ *+' conftest.er1 >conftest.err
37567  rm -f conftest.er1
37568  cat conftest.err >&5
37569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570  (exit $ac_status); } &&
37571	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
37572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37573  (eval $ac_try) 2>&5
37574  ac_status=$?
37575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37576  (exit $ac_status); }; } &&
37577	 { ac_try='test -s conftest$ac_exeext'
37578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37579  (eval $ac_try) 2>&5
37580  ac_status=$?
37581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582  (exit $ac_status); }; }; then
37583  eval "$as_ac_var=yes"
37584else
37585  echo "$as_me: failed program was:" >&5
37586sed 's/^/| /' conftest.$ac_ext >&5
37587
37588eval "$as_ac_var=no"
37589fi
37590rm -f conftest.err conftest.$ac_objext \
37591      conftest$ac_exeext conftest.$ac_ext
37592fi
37593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37594echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37595if test `eval echo '${'$as_ac_var'}'` = yes; then
37596  cat >>confdefs.h <<_ACEOF
37597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37598_ACEOF
37599 break
37600fi
37601done
37602
37603
37604    if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37605        { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37606echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37607        wxUSE_SNGLINST_CHECKER=no
37608    fi
37609fi
37610
37611
37612for ac_func in timegm
37613do
37614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37615echo "$as_me:$LINENO: checking for $ac_func" >&5
37616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37617if eval "test \"\${$as_ac_var+set}\" = set"; then
37618  echo $ECHO_N "(cached) $ECHO_C" >&6
37619else
37620  cat >conftest.$ac_ext <<_ACEOF
37621/* confdefs.h.  */
37622_ACEOF
37623cat confdefs.h >>conftest.$ac_ext
37624cat >>conftest.$ac_ext <<_ACEOF
37625/* end confdefs.h.  */
37626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37627   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37628#define $ac_func innocuous_$ac_func
37629
37630/* System header to define __stub macros and hopefully few prototypes,
37631    which can conflict with char $ac_func (); below.
37632    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37633    <limits.h> exists even on freestanding compilers.  */
37634
37635#ifdef __STDC__
37636# include <limits.h>
37637#else
37638# include <assert.h>
37639#endif
37640
37641#undef $ac_func
37642
37643/* Override any gcc2 internal prototype to avoid an error.  */
37644#ifdef __cplusplus
37645extern "C"
37646{
37647#endif
37648/* We use char because int might match the return type of a gcc2
37649   builtin and then its argument prototype would still apply.  */
37650char $ac_func ();
37651/* The GNU C library defines this for functions which it implements
37652    to always fail with ENOSYS.  Some functions are actually named
37653    something starting with __ and the normal name is an alias.  */
37654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37655choke me
37656#else
37657char (*f) () = $ac_func;
37658#endif
37659#ifdef __cplusplus
37660}
37661#endif
37662
37663int
37664main ()
37665{
37666return f != $ac_func;
37667  ;
37668  return 0;
37669}
37670_ACEOF
37671rm -f conftest.$ac_objext conftest$ac_exeext
37672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37673  (eval $ac_link) 2>conftest.er1
37674  ac_status=$?
37675  grep -v '^ *+' conftest.er1 >conftest.err
37676  rm -f conftest.er1
37677  cat conftest.err >&5
37678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679  (exit $ac_status); } &&
37680	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
37681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37682  (eval $ac_try) 2>&5
37683  ac_status=$?
37684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685  (exit $ac_status); }; } &&
37686	 { ac_try='test -s conftest$ac_exeext'
37687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37688  (eval $ac_try) 2>&5
37689  ac_status=$?
37690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691  (exit $ac_status); }; }; then
37692  eval "$as_ac_var=yes"
37693else
37694  echo "$as_me: failed program was:" >&5
37695sed 's/^/| /' conftest.$ac_ext >&5
37696
37697eval "$as_ac_var=no"
37698fi
37699rm -f conftest.err conftest.$ac_objext \
37700      conftest$ac_exeext conftest.$ac_ext
37701fi
37702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37703echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37704if test `eval echo '${'$as_ac_var'}'` = yes; then
37705  cat >>confdefs.h <<_ACEOF
37706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37707_ACEOF
37708
37709fi
37710done
37711
37712
37713
37714
37715for ac_func in setenv putenv
37716do
37717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37718echo "$as_me:$LINENO: checking for $ac_func" >&5
37719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37720if eval "test \"\${$as_ac_var+set}\" = set"; then
37721  echo $ECHO_N "(cached) $ECHO_C" >&6
37722else
37723  cat >conftest.$ac_ext <<_ACEOF
37724/* confdefs.h.  */
37725_ACEOF
37726cat confdefs.h >>conftest.$ac_ext
37727cat >>conftest.$ac_ext <<_ACEOF
37728/* end confdefs.h.  */
37729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37731#define $ac_func innocuous_$ac_func
37732
37733/* System header to define __stub macros and hopefully few prototypes,
37734    which can conflict with char $ac_func (); below.
37735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37736    <limits.h> exists even on freestanding compilers.  */
37737
37738#ifdef __STDC__
37739# include <limits.h>
37740#else
37741# include <assert.h>
37742#endif
37743
37744#undef $ac_func
37745
37746/* Override any gcc2 internal prototype to avoid an error.  */
37747#ifdef __cplusplus
37748extern "C"
37749{
37750#endif
37751/* We use char because int might match the return type of a gcc2
37752   builtin and then its argument prototype would still apply.  */
37753char $ac_func ();
37754/* The GNU C library defines this for functions which it implements
37755    to always fail with ENOSYS.  Some functions are actually named
37756    something starting with __ and the normal name is an alias.  */
37757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37758choke me
37759#else
37760char (*f) () = $ac_func;
37761#endif
37762#ifdef __cplusplus
37763}
37764#endif
37765
37766int
37767main ()
37768{
37769return f != $ac_func;
37770  ;
37771  return 0;
37772}
37773_ACEOF
37774rm -f conftest.$ac_objext conftest$ac_exeext
37775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37776  (eval $ac_link) 2>conftest.er1
37777  ac_status=$?
37778  grep -v '^ *+' conftest.er1 >conftest.err
37779  rm -f conftest.er1
37780  cat conftest.err >&5
37781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782  (exit $ac_status); } &&
37783	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
37784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37785  (eval $ac_try) 2>&5
37786  ac_status=$?
37787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788  (exit $ac_status); }; } &&
37789	 { ac_try='test -s conftest$ac_exeext'
37790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37791  (eval $ac_try) 2>&5
37792  ac_status=$?
37793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37794  (exit $ac_status); }; }; then
37795  eval "$as_ac_var=yes"
37796else
37797  echo "$as_me: failed program was:" >&5
37798sed 's/^/| /' conftest.$ac_ext >&5
37799
37800eval "$as_ac_var=no"
37801fi
37802rm -f conftest.err conftest.$ac_objext \
37803      conftest$ac_exeext conftest.$ac_ext
37804fi
37805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37807if test `eval echo '${'$as_ac_var'}'` = yes; then
37808  cat >>confdefs.h <<_ACEOF
37809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37810_ACEOF
37811 break
37812fi
37813done
37814
37815if test "$ac_cv_func_setenv" = "yes"; then
37816
37817for ac_func in unsetenv
37818do
37819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37820echo "$as_me:$LINENO: checking for $ac_func" >&5
37821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37822if eval "test \"\${$as_ac_var+set}\" = set"; then
37823  echo $ECHO_N "(cached) $ECHO_C" >&6
37824else
37825  cat >conftest.$ac_ext <<_ACEOF
37826/* confdefs.h.  */
37827_ACEOF
37828cat confdefs.h >>conftest.$ac_ext
37829cat >>conftest.$ac_ext <<_ACEOF
37830/* end confdefs.h.  */
37831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37832   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37833#define $ac_func innocuous_$ac_func
37834
37835/* System header to define __stub macros and hopefully few prototypes,
37836    which can conflict with char $ac_func (); below.
37837    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37838    <limits.h> exists even on freestanding compilers.  */
37839
37840#ifdef __STDC__
37841# include <limits.h>
37842#else
37843# include <assert.h>
37844#endif
37845
37846#undef $ac_func
37847
37848/* Override any gcc2 internal prototype to avoid an error.  */
37849#ifdef __cplusplus
37850extern "C"
37851{
37852#endif
37853/* We use char because int might match the return type of a gcc2
37854   builtin and then its argument prototype would still apply.  */
37855char $ac_func ();
37856/* The GNU C library defines this for functions which it implements
37857    to always fail with ENOSYS.  Some functions are actually named
37858    something starting with __ and the normal name is an alias.  */
37859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37860choke me
37861#else
37862char (*f) () = $ac_func;
37863#endif
37864#ifdef __cplusplus
37865}
37866#endif
37867
37868int
37869main ()
37870{
37871return f != $ac_func;
37872  ;
37873  return 0;
37874}
37875_ACEOF
37876rm -f conftest.$ac_objext conftest$ac_exeext
37877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37878  (eval $ac_link) 2>conftest.er1
37879  ac_status=$?
37880  grep -v '^ *+' conftest.er1 >conftest.err
37881  rm -f conftest.er1
37882  cat conftest.err >&5
37883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37884  (exit $ac_status); } &&
37885	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
37886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37887  (eval $ac_try) 2>&5
37888  ac_status=$?
37889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37890  (exit $ac_status); }; } &&
37891	 { ac_try='test -s conftest$ac_exeext'
37892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37893  (eval $ac_try) 2>&5
37894  ac_status=$?
37895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896  (exit $ac_status); }; }; then
37897  eval "$as_ac_var=yes"
37898else
37899  echo "$as_me: failed program was:" >&5
37900sed 's/^/| /' conftest.$ac_ext >&5
37901
37902eval "$as_ac_var=no"
37903fi
37904rm -f conftest.err conftest.$ac_objext \
37905      conftest$ac_exeext conftest.$ac_ext
37906fi
37907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37909if test `eval echo '${'$as_ac_var'}'` = yes; then
37910  cat >>confdefs.h <<_ACEOF
37911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37912_ACEOF
37913
37914fi
37915done
37916
37917fi
37918
37919HAVE_SOME_SLEEP_FUNC=0
37920if test "$USE_BEOS" = 1; then
37921            cat >>confdefs.h <<\_ACEOF
37922#define HAVE_SLEEP 1
37923_ACEOF
37924
37925    HAVE_SOME_SLEEP_FUNC=1
37926fi
37927
37928if test "$USE_DARWIN" = 1; then
37929            cat >>confdefs.h <<\_ACEOF
37930#define HAVE_USLEEP 1
37931_ACEOF
37932
37933    HAVE_SOME_SLEEP_FUNC=1
37934fi
37935
37936if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37937        POSIX4_LINK=
37938
37939for ac_func in nanosleep
37940do
37941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37942echo "$as_me:$LINENO: checking for $ac_func" >&5
37943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37944if eval "test \"\${$as_ac_var+set}\" = set"; then
37945  echo $ECHO_N "(cached) $ECHO_C" >&6
37946else
37947  cat >conftest.$ac_ext <<_ACEOF
37948/* confdefs.h.  */
37949_ACEOF
37950cat confdefs.h >>conftest.$ac_ext
37951cat >>conftest.$ac_ext <<_ACEOF
37952/* end confdefs.h.  */
37953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37954   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37955#define $ac_func innocuous_$ac_func
37956
37957/* System header to define __stub macros and hopefully few prototypes,
37958    which can conflict with char $ac_func (); below.
37959    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37960    <limits.h> exists even on freestanding compilers.  */
37961
37962#ifdef __STDC__
37963# include <limits.h>
37964#else
37965# include <assert.h>
37966#endif
37967
37968#undef $ac_func
37969
37970/* Override any gcc2 internal prototype to avoid an error.  */
37971#ifdef __cplusplus
37972extern "C"
37973{
37974#endif
37975/* We use char because int might match the return type of a gcc2
37976   builtin and then its argument prototype would still apply.  */
37977char $ac_func ();
37978/* The GNU C library defines this for functions which it implements
37979    to always fail with ENOSYS.  Some functions are actually named
37980    something starting with __ and the normal name is an alias.  */
37981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37982choke me
37983#else
37984char (*f) () = $ac_func;
37985#endif
37986#ifdef __cplusplus
37987}
37988#endif
37989
37990int
37991main ()
37992{
37993return f != $ac_func;
37994  ;
37995  return 0;
37996}
37997_ACEOF
37998rm -f conftest.$ac_objext conftest$ac_exeext
37999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38000  (eval $ac_link) 2>conftest.er1
38001  ac_status=$?
38002  grep -v '^ *+' conftest.er1 >conftest.err
38003  rm -f conftest.er1
38004  cat conftest.err >&5
38005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006  (exit $ac_status); } &&
38007	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38009  (eval $ac_try) 2>&5
38010  ac_status=$?
38011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38012  (exit $ac_status); }; } &&
38013	 { ac_try='test -s conftest$ac_exeext'
38014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38015  (eval $ac_try) 2>&5
38016  ac_status=$?
38017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018  (exit $ac_status); }; }; then
38019  eval "$as_ac_var=yes"
38020else
38021  echo "$as_me: failed program was:" >&5
38022sed 's/^/| /' conftest.$ac_ext >&5
38023
38024eval "$as_ac_var=no"
38025fi
38026rm -f conftest.err conftest.$ac_objext \
38027      conftest$ac_exeext conftest.$ac_ext
38028fi
38029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38030echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38031if test `eval echo '${'$as_ac_var'}'` = yes; then
38032  cat >>confdefs.h <<_ACEOF
38033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38034_ACEOF
38035 cat >>confdefs.h <<\_ACEOF
38036#define HAVE_NANOSLEEP 1
38037_ACEOF
38038
38039else
38040
38041            echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38042echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
38043if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38044  echo $ECHO_N "(cached) $ECHO_C" >&6
38045else
38046  ac_check_lib_save_LIBS=$LIBS
38047LIBS="-lposix4  $LIBS"
38048cat >conftest.$ac_ext <<_ACEOF
38049/* confdefs.h.  */
38050_ACEOF
38051cat confdefs.h >>conftest.$ac_ext
38052cat >>conftest.$ac_ext <<_ACEOF
38053/* end confdefs.h.  */
38054
38055/* Override any gcc2 internal prototype to avoid an error.  */
38056#ifdef __cplusplus
38057extern "C"
38058#endif
38059/* We use char because int might match the return type of a gcc2
38060   builtin and then its argument prototype would still apply.  */
38061char nanosleep ();
38062int
38063main ()
38064{
38065nanosleep ();
38066  ;
38067  return 0;
38068}
38069_ACEOF
38070rm -f conftest.$ac_objext conftest$ac_exeext
38071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38072  (eval $ac_link) 2>conftest.er1
38073  ac_status=$?
38074  grep -v '^ *+' conftest.er1 >conftest.err
38075  rm -f conftest.er1
38076  cat conftest.err >&5
38077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078  (exit $ac_status); } &&
38079	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38081  (eval $ac_try) 2>&5
38082  ac_status=$?
38083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084  (exit $ac_status); }; } &&
38085	 { ac_try='test -s conftest$ac_exeext'
38086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38087  (eval $ac_try) 2>&5
38088  ac_status=$?
38089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38090  (exit $ac_status); }; }; then
38091  ac_cv_lib_posix4_nanosleep=yes
38092else
38093  echo "$as_me: failed program was:" >&5
38094sed 's/^/| /' conftest.$ac_ext >&5
38095
38096ac_cv_lib_posix4_nanosleep=no
38097fi
38098rm -f conftest.err conftest.$ac_objext \
38099      conftest$ac_exeext conftest.$ac_ext
38100LIBS=$ac_check_lib_save_LIBS
38101fi
38102echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38103echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
38104if test $ac_cv_lib_posix4_nanosleep = yes; then
38105
38106                    cat >>confdefs.h <<\_ACEOF
38107#define HAVE_NANOSLEEP 1
38108_ACEOF
38109
38110                    POSIX4_LINK=" -lposix4"
38111
38112else
38113
38114
38115  for wx_func in usleep
38116  do
38117    echo "$as_me:$LINENO: checking for $wx_func" >&5
38118echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38119if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38120  echo $ECHO_N "(cached) $ECHO_C" >&6
38121else
38122
38123        cat >conftest.$ac_ext <<_ACEOF
38124
38125            /* confdefs.h.  */
38126_ACEOF
38127cat confdefs.h >>conftest.$ac_ext
38128cat >>conftest.$ac_ext <<_ACEOF
38129/* end confdefs.h.  */
38130
38131
38132                $ac_includes_default
38133
38134int
38135main ()
38136{
38137
38138                #ifndef $wx_func
38139                  &$wx_func;
38140                #endif
38141
38142
38143  ;
38144  return 0;
38145}
38146
38147_ACEOF
38148rm -f conftest.$ac_objext conftest$ac_exeext
38149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38150  (eval $ac_link) 2>conftest.er1
38151  ac_status=$?
38152  grep -v '^ *+' conftest.er1 >conftest.err
38153  rm -f conftest.er1
38154  cat conftest.err >&5
38155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38156  (exit $ac_status); } &&
38157	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38159  (eval $ac_try) 2>&5
38160  ac_status=$?
38161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162  (exit $ac_status); }; } &&
38163	 { ac_try='test -s conftest$ac_exeext'
38164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38165  (eval $ac_try) 2>&5
38166  ac_status=$?
38167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168  (exit $ac_status); }; }; then
38169  eval wx_cv_func_$wx_func=yes
38170else
38171  echo "$as_me: failed program was:" >&5
38172sed 's/^/| /' conftest.$ac_ext >&5
38173
38174eval wx_cv_func_$wx_func=no
38175fi
38176rm -f conftest.err conftest.$ac_objext \
38177      conftest$ac_exeext conftest.$ac_ext
38178
38179fi
38180echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38181echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38182
38183    if eval test \$wx_cv_func_$wx_func = yes
38184    then
38185      cat >>confdefs.h <<_ACEOF
38186#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38187_ACEOF
38188
38189
38190    else
38191      :
38192      { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
38193echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38194
38195    fi
38196  done
38197
38198
38199
38200fi
38201
38202
38203
38204fi
38205done
38206
38207fi
38208
38209
38210  for wx_func in uname
38211  do
38212    echo "$as_me:$LINENO: checking for $wx_func" >&5
38213echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38214if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38215  echo $ECHO_N "(cached) $ECHO_C" >&6
38216else
38217
38218        cat >conftest.$ac_ext <<_ACEOF
38219
38220            /* confdefs.h.  */
38221_ACEOF
38222cat confdefs.h >>conftest.$ac_ext
38223cat >>conftest.$ac_ext <<_ACEOF
38224/* end confdefs.h.  */
38225
38226                #include <sys/utsname.h>
38227                $ac_includes_default
38228
38229int
38230main ()
38231{
38232
38233                #ifndef $wx_func
38234                  &$wx_func;
38235                #endif
38236
38237
38238  ;
38239  return 0;
38240}
38241
38242_ACEOF
38243rm -f conftest.$ac_objext conftest$ac_exeext
38244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38245  (eval $ac_link) 2>conftest.er1
38246  ac_status=$?
38247  grep -v '^ *+' conftest.er1 >conftest.err
38248  rm -f conftest.er1
38249  cat conftest.err >&5
38250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251  (exit $ac_status); } &&
38252	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38254  (eval $ac_try) 2>&5
38255  ac_status=$?
38256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257  (exit $ac_status); }; } &&
38258	 { ac_try='test -s conftest$ac_exeext'
38259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38260  (eval $ac_try) 2>&5
38261  ac_status=$?
38262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38263  (exit $ac_status); }; }; then
38264  eval wx_cv_func_$wx_func=yes
38265else
38266  echo "$as_me: failed program was:" >&5
38267sed 's/^/| /' conftest.$ac_ext >&5
38268
38269eval wx_cv_func_$wx_func=no
38270fi
38271rm -f conftest.err conftest.$ac_objext \
38272      conftest$ac_exeext conftest.$ac_ext
38273
38274fi
38275echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38276echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38277
38278    if eval test \$wx_cv_func_$wx_func = yes
38279    then
38280      cat >>confdefs.h <<_ACEOF
38281#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38282_ACEOF
38283
38284
38285    else
38286      :
38287
38288    fi
38289  done
38290
38291if test "$wx_cv_func_uname" != yes; then
38292
38293  for wx_func in gethostname
38294  do
38295    echo "$as_me:$LINENO: checking for $wx_func" >&5
38296echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38297if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38298  echo $ECHO_N "(cached) $ECHO_C" >&6
38299else
38300
38301        cat >conftest.$ac_ext <<_ACEOF
38302
38303            /* confdefs.h.  */
38304_ACEOF
38305cat confdefs.h >>conftest.$ac_ext
38306cat >>conftest.$ac_ext <<_ACEOF
38307/* end confdefs.h.  */
38308
38309
38310                $ac_includes_default
38311
38312int
38313main ()
38314{
38315
38316                #ifndef $wx_func
38317                  &$wx_func;
38318                #endif
38319
38320
38321  ;
38322  return 0;
38323}
38324
38325_ACEOF
38326rm -f conftest.$ac_objext conftest$ac_exeext
38327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38328  (eval $ac_link) 2>conftest.er1
38329  ac_status=$?
38330  grep -v '^ *+' conftest.er1 >conftest.err
38331  rm -f conftest.er1
38332  cat conftest.err >&5
38333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38334  (exit $ac_status); } &&
38335	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38337  (eval $ac_try) 2>&5
38338  ac_status=$?
38339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38340  (exit $ac_status); }; } &&
38341	 { ac_try='test -s conftest$ac_exeext'
38342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38343  (eval $ac_try) 2>&5
38344  ac_status=$?
38345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346  (exit $ac_status); }; }; then
38347  eval wx_cv_func_$wx_func=yes
38348else
38349  echo "$as_me: failed program was:" >&5
38350sed 's/^/| /' conftest.$ac_ext >&5
38351
38352eval wx_cv_func_$wx_func=no
38353fi
38354rm -f conftest.err conftest.$ac_objext \
38355      conftest$ac_exeext conftest.$ac_ext
38356
38357fi
38358echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38359echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38360
38361    if eval test \$wx_cv_func_$wx_func = yes
38362    then
38363      cat >>confdefs.h <<_ACEOF
38364#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38365_ACEOF
38366
38367
38368    else
38369      :
38370
38371    fi
38372  done
38373
38374fi
38375
38376
38377  for wx_func in strtok_r
38378  do
38379    echo "$as_me:$LINENO: checking for $wx_func" >&5
38380echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38381if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38382  echo $ECHO_N "(cached) $ECHO_C" >&6
38383else
38384
38385        cat >conftest.$ac_ext <<_ACEOF
38386
38387            /* confdefs.h.  */
38388_ACEOF
38389cat confdefs.h >>conftest.$ac_ext
38390cat >>conftest.$ac_ext <<_ACEOF
38391/* end confdefs.h.  */
38392
38393                #define _REENTRANT
38394                $ac_includes_default
38395
38396int
38397main ()
38398{
38399
38400                #ifndef $wx_func
38401                  &$wx_func;
38402                #endif
38403
38404
38405  ;
38406  return 0;
38407}
38408
38409_ACEOF
38410rm -f conftest.$ac_objext conftest$ac_exeext
38411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38412  (eval $ac_link) 2>conftest.er1
38413  ac_status=$?
38414  grep -v '^ *+' conftest.er1 >conftest.err
38415  rm -f conftest.er1
38416  cat conftest.err >&5
38417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418  (exit $ac_status); } &&
38419	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38421  (eval $ac_try) 2>&5
38422  ac_status=$?
38423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424  (exit $ac_status); }; } &&
38425	 { ac_try='test -s conftest$ac_exeext'
38426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38427  (eval $ac_try) 2>&5
38428  ac_status=$?
38429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430  (exit $ac_status); }; }; then
38431  eval wx_cv_func_$wx_func=yes
38432else
38433  echo "$as_me: failed program was:" >&5
38434sed 's/^/| /' conftest.$ac_ext >&5
38435
38436eval wx_cv_func_$wx_func=no
38437fi
38438rm -f conftest.err conftest.$ac_objext \
38439      conftest$ac_exeext conftest.$ac_ext
38440
38441fi
38442echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38443echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38444
38445    if eval test \$wx_cv_func_$wx_func = yes
38446    then
38447      cat >>confdefs.h <<_ACEOF
38448#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38449_ACEOF
38450
38451
38452    else
38453      :
38454
38455    fi
38456  done
38457
38458
38459INET_LINK=
38460
38461for ac_func in inet_addr
38462do
38463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38464echo "$as_me:$LINENO: checking for $ac_func" >&5
38465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38466if eval "test \"\${$as_ac_var+set}\" = set"; then
38467  echo $ECHO_N "(cached) $ECHO_C" >&6
38468else
38469  cat >conftest.$ac_ext <<_ACEOF
38470/* confdefs.h.  */
38471_ACEOF
38472cat confdefs.h >>conftest.$ac_ext
38473cat >>conftest.$ac_ext <<_ACEOF
38474/* end confdefs.h.  */
38475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38476   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38477#define $ac_func innocuous_$ac_func
38478
38479/* System header to define __stub macros and hopefully few prototypes,
38480    which can conflict with char $ac_func (); below.
38481    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38482    <limits.h> exists even on freestanding compilers.  */
38483
38484#ifdef __STDC__
38485# include <limits.h>
38486#else
38487# include <assert.h>
38488#endif
38489
38490#undef $ac_func
38491
38492/* Override any gcc2 internal prototype to avoid an error.  */
38493#ifdef __cplusplus
38494extern "C"
38495{
38496#endif
38497/* We use char because int might match the return type of a gcc2
38498   builtin and then its argument prototype would still apply.  */
38499char $ac_func ();
38500/* The GNU C library defines this for functions which it implements
38501    to always fail with ENOSYS.  Some functions are actually named
38502    something starting with __ and the normal name is an alias.  */
38503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38504choke me
38505#else
38506char (*f) () = $ac_func;
38507#endif
38508#ifdef __cplusplus
38509}
38510#endif
38511
38512int
38513main ()
38514{
38515return f != $ac_func;
38516  ;
38517  return 0;
38518}
38519_ACEOF
38520rm -f conftest.$ac_objext conftest$ac_exeext
38521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38522  (eval $ac_link) 2>conftest.er1
38523  ac_status=$?
38524  grep -v '^ *+' conftest.er1 >conftest.err
38525  rm -f conftest.er1
38526  cat conftest.err >&5
38527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38528  (exit $ac_status); } &&
38529	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38531  (eval $ac_try) 2>&5
38532  ac_status=$?
38533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38534  (exit $ac_status); }; } &&
38535	 { ac_try='test -s conftest$ac_exeext'
38536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38537  (eval $ac_try) 2>&5
38538  ac_status=$?
38539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38540  (exit $ac_status); }; }; then
38541  eval "$as_ac_var=yes"
38542else
38543  echo "$as_me: failed program was:" >&5
38544sed 's/^/| /' conftest.$ac_ext >&5
38545
38546eval "$as_ac_var=no"
38547fi
38548rm -f conftest.err conftest.$ac_objext \
38549      conftest$ac_exeext conftest.$ac_ext
38550fi
38551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38553if test `eval echo '${'$as_ac_var'}'` = yes; then
38554  cat >>confdefs.h <<_ACEOF
38555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38556_ACEOF
38557 cat >>confdefs.h <<\_ACEOF
38558#define HAVE_INET_ADDR 1
38559_ACEOF
38560
38561else
38562
38563        echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38564echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38565if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38566  echo $ECHO_N "(cached) $ECHO_C" >&6
38567else
38568  ac_check_lib_save_LIBS=$LIBS
38569LIBS="-lnsl  $LIBS"
38570cat >conftest.$ac_ext <<_ACEOF
38571/* confdefs.h.  */
38572_ACEOF
38573cat confdefs.h >>conftest.$ac_ext
38574cat >>conftest.$ac_ext <<_ACEOF
38575/* end confdefs.h.  */
38576
38577/* Override any gcc2 internal prototype to avoid an error.  */
38578#ifdef __cplusplus
38579extern "C"
38580#endif
38581/* We use char because int might match the return type of a gcc2
38582   builtin and then its argument prototype would still apply.  */
38583char inet_addr ();
38584int
38585main ()
38586{
38587inet_addr ();
38588  ;
38589  return 0;
38590}
38591_ACEOF
38592rm -f conftest.$ac_objext conftest$ac_exeext
38593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38594  (eval $ac_link) 2>conftest.er1
38595  ac_status=$?
38596  grep -v '^ *+' conftest.er1 >conftest.err
38597  rm -f conftest.er1
38598  cat conftest.err >&5
38599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38600  (exit $ac_status); } &&
38601	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38603  (eval $ac_try) 2>&5
38604  ac_status=$?
38605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606  (exit $ac_status); }; } &&
38607	 { ac_try='test -s conftest$ac_exeext'
38608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38609  (eval $ac_try) 2>&5
38610  ac_status=$?
38611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38612  (exit $ac_status); }; }; then
38613  ac_cv_lib_nsl_inet_addr=yes
38614else
38615  echo "$as_me: failed program was:" >&5
38616sed 's/^/| /' conftest.$ac_ext >&5
38617
38618ac_cv_lib_nsl_inet_addr=no
38619fi
38620rm -f conftest.err conftest.$ac_objext \
38621      conftest$ac_exeext conftest.$ac_ext
38622LIBS=$ac_check_lib_save_LIBS
38623fi
38624echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38625echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38626if test $ac_cv_lib_nsl_inet_addr = yes; then
38627  INET_LINK="nsl"
38628else
38629
38630                echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38631echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38632if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38633  echo $ECHO_N "(cached) $ECHO_C" >&6
38634else
38635  ac_check_lib_save_LIBS=$LIBS
38636LIBS="-lresolv  $LIBS"
38637cat >conftest.$ac_ext <<_ACEOF
38638/* confdefs.h.  */
38639_ACEOF
38640cat confdefs.h >>conftest.$ac_ext
38641cat >>conftest.$ac_ext <<_ACEOF
38642/* end confdefs.h.  */
38643
38644/* Override any gcc2 internal prototype to avoid an error.  */
38645#ifdef __cplusplus
38646extern "C"
38647#endif
38648/* We use char because int might match the return type of a gcc2
38649   builtin and then its argument prototype would still apply.  */
38650char inet_addr ();
38651int
38652main ()
38653{
38654inet_addr ();
38655  ;
38656  return 0;
38657}
38658_ACEOF
38659rm -f conftest.$ac_objext conftest$ac_exeext
38660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38661  (eval $ac_link) 2>conftest.er1
38662  ac_status=$?
38663  grep -v '^ *+' conftest.er1 >conftest.err
38664  rm -f conftest.er1
38665  cat conftest.err >&5
38666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667  (exit $ac_status); } &&
38668	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38670  (eval $ac_try) 2>&5
38671  ac_status=$?
38672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673  (exit $ac_status); }; } &&
38674	 { ac_try='test -s conftest$ac_exeext'
38675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38676  (eval $ac_try) 2>&5
38677  ac_status=$?
38678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679  (exit $ac_status); }; }; then
38680  ac_cv_lib_resolv_inet_addr=yes
38681else
38682  echo "$as_me: failed program was:" >&5
38683sed 's/^/| /' conftest.$ac_ext >&5
38684
38685ac_cv_lib_resolv_inet_addr=no
38686fi
38687rm -f conftest.err conftest.$ac_objext \
38688      conftest$ac_exeext conftest.$ac_ext
38689LIBS=$ac_check_lib_save_LIBS
38690fi
38691echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38692echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38693if test $ac_cv_lib_resolv_inet_addr = yes; then
38694  INET_LINK="resolv"
38695else
38696
38697                        echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38698echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38699if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38700  echo $ECHO_N "(cached) $ECHO_C" >&6
38701else
38702  ac_check_lib_save_LIBS=$LIBS
38703LIBS="-lsocket  $LIBS"
38704cat >conftest.$ac_ext <<_ACEOF
38705/* confdefs.h.  */
38706_ACEOF
38707cat confdefs.h >>conftest.$ac_ext
38708cat >>conftest.$ac_ext <<_ACEOF
38709/* end confdefs.h.  */
38710
38711/* Override any gcc2 internal prototype to avoid an error.  */
38712#ifdef __cplusplus
38713extern "C"
38714#endif
38715/* We use char because int might match the return type of a gcc2
38716   builtin and then its argument prototype would still apply.  */
38717char inet_addr ();
38718int
38719main ()
38720{
38721inet_addr ();
38722  ;
38723  return 0;
38724}
38725_ACEOF
38726rm -f conftest.$ac_objext conftest$ac_exeext
38727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38728  (eval $ac_link) 2>conftest.er1
38729  ac_status=$?
38730  grep -v '^ *+' conftest.er1 >conftest.err
38731  rm -f conftest.er1
38732  cat conftest.err >&5
38733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734  (exit $ac_status); } &&
38735	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38737  (eval $ac_try) 2>&5
38738  ac_status=$?
38739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740  (exit $ac_status); }; } &&
38741	 { ac_try='test -s conftest$ac_exeext'
38742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743  (eval $ac_try) 2>&5
38744  ac_status=$?
38745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746  (exit $ac_status); }; }; then
38747  ac_cv_lib_socket_inet_addr=yes
38748else
38749  echo "$as_me: failed program was:" >&5
38750sed 's/^/| /' conftest.$ac_ext >&5
38751
38752ac_cv_lib_socket_inet_addr=no
38753fi
38754rm -f conftest.err conftest.$ac_objext \
38755      conftest$ac_exeext conftest.$ac_ext
38756LIBS=$ac_check_lib_save_LIBS
38757fi
38758echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38759echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38760if test $ac_cv_lib_socket_inet_addr = yes; then
38761  INET_LINK="socket"
38762
38763fi
38764
38765
38766
38767fi
38768
38769
38770
38771fi
38772
38773
38774
38775fi
38776done
38777
38778
38779
38780for ac_func in inet_aton
38781do
38782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38783echo "$as_me:$LINENO: checking for $ac_func" >&5
38784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38785if eval "test \"\${$as_ac_var+set}\" = set"; then
38786  echo $ECHO_N "(cached) $ECHO_C" >&6
38787else
38788  cat >conftest.$ac_ext <<_ACEOF
38789/* confdefs.h.  */
38790_ACEOF
38791cat confdefs.h >>conftest.$ac_ext
38792cat >>conftest.$ac_ext <<_ACEOF
38793/* end confdefs.h.  */
38794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38795   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38796#define $ac_func innocuous_$ac_func
38797
38798/* System header to define __stub macros and hopefully few prototypes,
38799    which can conflict with char $ac_func (); below.
38800    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38801    <limits.h> exists even on freestanding compilers.  */
38802
38803#ifdef __STDC__
38804# include <limits.h>
38805#else
38806# include <assert.h>
38807#endif
38808
38809#undef $ac_func
38810
38811/* Override any gcc2 internal prototype to avoid an error.  */
38812#ifdef __cplusplus
38813extern "C"
38814{
38815#endif
38816/* We use char because int might match the return type of a gcc2
38817   builtin and then its argument prototype would still apply.  */
38818char $ac_func ();
38819/* The GNU C library defines this for functions which it implements
38820    to always fail with ENOSYS.  Some functions are actually named
38821    something starting with __ and the normal name is an alias.  */
38822#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38823choke me
38824#else
38825char (*f) () = $ac_func;
38826#endif
38827#ifdef __cplusplus
38828}
38829#endif
38830
38831int
38832main ()
38833{
38834return f != $ac_func;
38835  ;
38836  return 0;
38837}
38838_ACEOF
38839rm -f conftest.$ac_objext conftest$ac_exeext
38840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38841  (eval $ac_link) 2>conftest.er1
38842  ac_status=$?
38843  grep -v '^ *+' conftest.er1 >conftest.err
38844  rm -f conftest.er1
38845  cat conftest.err >&5
38846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847  (exit $ac_status); } &&
38848	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38850  (eval $ac_try) 2>&5
38851  ac_status=$?
38852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38853  (exit $ac_status); }; } &&
38854	 { ac_try='test -s conftest$ac_exeext'
38855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38856  (eval $ac_try) 2>&5
38857  ac_status=$?
38858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859  (exit $ac_status); }; }; then
38860  eval "$as_ac_var=yes"
38861else
38862  echo "$as_me: failed program was:" >&5
38863sed 's/^/| /' conftest.$ac_ext >&5
38864
38865eval "$as_ac_var=no"
38866fi
38867rm -f conftest.err conftest.$ac_objext \
38868      conftest$ac_exeext conftest.$ac_ext
38869fi
38870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38871echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38872if test `eval echo '${'$as_ac_var'}'` = yes; then
38873  cat >>confdefs.h <<_ACEOF
38874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38875_ACEOF
38876 cat >>confdefs.h <<\_ACEOF
38877#define HAVE_INET_ATON 1
38878_ACEOF
38879
38880else
38881
38882                        as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38883echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38884echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38885if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38886  echo $ECHO_N "(cached) $ECHO_C" >&6
38887else
38888  ac_check_lib_save_LIBS=$LIBS
38889LIBS="-l$INET_LINK  $LIBS"
38890cat >conftest.$ac_ext <<_ACEOF
38891/* confdefs.h.  */
38892_ACEOF
38893cat confdefs.h >>conftest.$ac_ext
38894cat >>conftest.$ac_ext <<_ACEOF
38895/* end confdefs.h.  */
38896
38897/* Override any gcc2 internal prototype to avoid an error.  */
38898#ifdef __cplusplus
38899extern "C"
38900#endif
38901/* We use char because int might match the return type of a gcc2
38902   builtin and then its argument prototype would still apply.  */
38903char inet_aton ();
38904int
38905main ()
38906{
38907inet_aton ();
38908  ;
38909  return 0;
38910}
38911_ACEOF
38912rm -f conftest.$ac_objext conftest$ac_exeext
38913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38914  (eval $ac_link) 2>conftest.er1
38915  ac_status=$?
38916  grep -v '^ *+' conftest.er1 >conftest.err
38917  rm -f conftest.er1
38918  cat conftest.err >&5
38919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920  (exit $ac_status); } &&
38921	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
38922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38923  (eval $ac_try) 2>&5
38924  ac_status=$?
38925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926  (exit $ac_status); }; } &&
38927	 { ac_try='test -s conftest$ac_exeext'
38928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38929  (eval $ac_try) 2>&5
38930  ac_status=$?
38931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932  (exit $ac_status); }; }; then
38933  eval "$as_ac_Lib=yes"
38934else
38935  echo "$as_me: failed program was:" >&5
38936sed 's/^/| /' conftest.$ac_ext >&5
38937
38938eval "$as_ac_Lib=no"
38939fi
38940rm -f conftest.err conftest.$ac_objext \
38941      conftest$ac_exeext conftest.$ac_ext
38942LIBS=$ac_check_lib_save_LIBS
38943fi
38944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38945echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38946if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38947  cat >>confdefs.h <<\_ACEOF
38948#define HAVE_INET_ATON 1
38949_ACEOF
38950
38951fi
38952
38953
38954fi
38955done
38956
38957
38958if test "x$INET_LINK" != "x"; then
38959    cat >>confdefs.h <<\_ACEOF
38960#define HAVE_INET_ADDR 1
38961_ACEOF
38962
38963    INET_LINK=" -l$INET_LINK"
38964fi
38965
38966
38967  for wx_func in fdopen
38968  do
38969    echo "$as_me:$LINENO: checking for $wx_func" >&5
38970echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38971if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38972  echo $ECHO_N "(cached) $ECHO_C" >&6
38973else
38974
38975        cat >conftest.$ac_ext <<_ACEOF
38976
38977            /* confdefs.h.  */
38978_ACEOF
38979cat confdefs.h >>conftest.$ac_ext
38980cat >>conftest.$ac_ext <<_ACEOF
38981/* end confdefs.h.  */
38982
38983
38984                $ac_includes_default
38985
38986int
38987main ()
38988{
38989
38990                #ifndef $wx_func
38991                  &$wx_func;
38992                #endif
38993
38994
38995  ;
38996  return 0;
38997}
38998
38999_ACEOF
39000rm -f conftest.$ac_objext conftest$ac_exeext
39001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39002  (eval $ac_link) 2>conftest.er1
39003  ac_status=$?
39004  grep -v '^ *+' conftest.er1 >conftest.err
39005  rm -f conftest.er1
39006  cat conftest.err >&5
39007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008  (exit $ac_status); } &&
39009	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39011  (eval $ac_try) 2>&5
39012  ac_status=$?
39013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014  (exit $ac_status); }; } &&
39015	 { ac_try='test -s conftest$ac_exeext'
39016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39017  (eval $ac_try) 2>&5
39018  ac_status=$?
39019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39020  (exit $ac_status); }; }; then
39021  eval wx_cv_func_$wx_func=yes
39022else
39023  echo "$as_me: failed program was:" >&5
39024sed 's/^/| /' conftest.$ac_ext >&5
39025
39026eval wx_cv_func_$wx_func=no
39027fi
39028rm -f conftest.err conftest.$ac_objext \
39029      conftest$ac_exeext conftest.$ac_ext
39030
39031fi
39032echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39033echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39034
39035    if eval test \$wx_cv_func_$wx_func = yes
39036    then
39037      cat >>confdefs.h <<_ACEOF
39038#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39039_ACEOF
39040
39041
39042    else
39043      :
39044
39045    fi
39046  done
39047
39048
39049if test "$wxUSE_TARSTREAM" = "yes"; then
39050
39051  for wx_func in sysconf
39052  do
39053    echo "$as_me:$LINENO: checking for $wx_func" >&5
39054echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39055if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
39056  echo $ECHO_N "(cached) $ECHO_C" >&6
39057else
39058
39059        cat >conftest.$ac_ext <<_ACEOF
39060
39061            /* confdefs.h.  */
39062_ACEOF
39063cat confdefs.h >>conftest.$ac_ext
39064cat >>conftest.$ac_ext <<_ACEOF
39065/* end confdefs.h.  */
39066
39067
39068                $ac_includes_default
39069
39070int
39071main ()
39072{
39073
39074                #ifndef $wx_func
39075                  &$wx_func;
39076                #endif
39077
39078
39079  ;
39080  return 0;
39081}
39082
39083_ACEOF
39084rm -f conftest.$ac_objext conftest$ac_exeext
39085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39086  (eval $ac_link) 2>conftest.er1
39087  ac_status=$?
39088  grep -v '^ *+' conftest.er1 >conftest.err
39089  rm -f conftest.er1
39090  cat conftest.err >&5
39091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39092  (exit $ac_status); } &&
39093	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39095  (eval $ac_try) 2>&5
39096  ac_status=$?
39097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39098  (exit $ac_status); }; } &&
39099	 { ac_try='test -s conftest$ac_exeext'
39100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39101  (eval $ac_try) 2>&5
39102  ac_status=$?
39103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104  (exit $ac_status); }; }; then
39105  eval wx_cv_func_$wx_func=yes
39106else
39107  echo "$as_me: failed program was:" >&5
39108sed 's/^/| /' conftest.$ac_ext >&5
39109
39110eval wx_cv_func_$wx_func=no
39111fi
39112rm -f conftest.err conftest.$ac_objext \
39113      conftest$ac_exeext conftest.$ac_ext
39114
39115fi
39116echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39117echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39118
39119    if eval test \$wx_cv_func_$wx_func = yes
39120    then
39121      cat >>confdefs.h <<_ACEOF
39122#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39123_ACEOF
39124
39125
39126    else
39127      :
39128
39129    fi
39130  done
39131
39132
39133
39134  for wx_func in getpwuid_r
39135  do
39136    echo "$as_me:$LINENO: checking for $wx_func" >&5
39137echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39138if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
39139  echo $ECHO_N "(cached) $ECHO_C" >&6
39140else
39141
39142        cat >conftest.$ac_ext <<_ACEOF
39143
39144            /* confdefs.h.  */
39145_ACEOF
39146cat confdefs.h >>conftest.$ac_ext
39147cat >>conftest.$ac_ext <<_ACEOF
39148/* end confdefs.h.  */
39149
39150
39151                    #define _REENTRANT
39152                    #include <pwd.h>
39153
39154                $ac_includes_default
39155
39156int
39157main ()
39158{
39159
39160                #ifndef $wx_func
39161                  &$wx_func;
39162                #endif
39163
39164                    struct passwd pw, *ppw;
39165                    char buf[1024];
39166                    getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
39167
39168
39169  ;
39170  return 0;
39171}
39172
39173_ACEOF
39174rm -f conftest.$ac_objext conftest$ac_exeext
39175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39176  (eval $ac_link) 2>conftest.er1
39177  ac_status=$?
39178  grep -v '^ *+' conftest.er1 >conftest.err
39179  rm -f conftest.er1
39180  cat conftest.err >&5
39181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182  (exit $ac_status); } &&
39183	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39185  (eval $ac_try) 2>&5
39186  ac_status=$?
39187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39188  (exit $ac_status); }; } &&
39189	 { ac_try='test -s conftest$ac_exeext'
39190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39191  (eval $ac_try) 2>&5
39192  ac_status=$?
39193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39194  (exit $ac_status); }; }; then
39195  eval wx_cv_func_$wx_func=yes
39196else
39197  echo "$as_me: failed program was:" >&5
39198sed 's/^/| /' conftest.$ac_ext >&5
39199
39200eval wx_cv_func_$wx_func=no
39201fi
39202rm -f conftest.err conftest.$ac_objext \
39203      conftest$ac_exeext conftest.$ac_ext
39204
39205fi
39206echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39207echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39208
39209    if eval test \$wx_cv_func_$wx_func = yes
39210    then
39211      cat >>confdefs.h <<_ACEOF
39212#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39213_ACEOF
39214
39215
39216    else
39217      :
39218
39219    fi
39220  done
39221
39222
39223
39224  for wx_func in getgrgid_r
39225  do
39226    echo "$as_me:$LINENO: checking for $wx_func" >&5
39227echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39228if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
39229  echo $ECHO_N "(cached) $ECHO_C" >&6
39230else
39231
39232        cat >conftest.$ac_ext <<_ACEOF
39233
39234            /* confdefs.h.  */
39235_ACEOF
39236cat confdefs.h >>conftest.$ac_ext
39237cat >>conftest.$ac_ext <<_ACEOF
39238/* end confdefs.h.  */
39239
39240
39241                    #define _REENTRANT
39242                    #include <grp.h>
39243
39244                $ac_includes_default
39245
39246int
39247main ()
39248{
39249
39250                #ifndef $wx_func
39251                  &$wx_func;
39252                #endif
39253
39254                    struct group grp, *pgrp;
39255                    char buf[1024];
39256                    getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
39257
39258
39259  ;
39260  return 0;
39261}
39262
39263_ACEOF
39264rm -f conftest.$ac_objext conftest$ac_exeext
39265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39266  (eval $ac_link) 2>conftest.er1
39267  ac_status=$?
39268  grep -v '^ *+' conftest.er1 >conftest.err
39269  rm -f conftest.er1
39270  cat conftest.err >&5
39271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272  (exit $ac_status); } &&
39273	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39275  (eval $ac_try) 2>&5
39276  ac_status=$?
39277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278  (exit $ac_status); }; } &&
39279	 { ac_try='test -s conftest$ac_exeext'
39280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281  (eval $ac_try) 2>&5
39282  ac_status=$?
39283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284  (exit $ac_status); }; }; then
39285  eval wx_cv_func_$wx_func=yes
39286else
39287  echo "$as_me: failed program was:" >&5
39288sed 's/^/| /' conftest.$ac_ext >&5
39289
39290eval wx_cv_func_$wx_func=no
39291fi
39292rm -f conftest.err conftest.$ac_objext \
39293      conftest$ac_exeext conftest.$ac_ext
39294
39295fi
39296echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39297echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39298
39299    if eval test \$wx_cv_func_$wx_func = yes
39300    then
39301      cat >>confdefs.h <<_ACEOF
39302#define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39303_ACEOF
39304
39305
39306    else
39307      :
39308
39309    fi
39310  done
39311
39312fi
39313
39314fi
39315
39316
39317
39318
39319EXTRALIBS_ESD=
39320echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
39321echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
39322if test "${ac_cv_lib_esd_esd_close+set}" = set; then
39323  echo $ECHO_N "(cached) $ECHO_C" >&6
39324else
39325  ac_check_lib_save_LIBS=$LIBS
39326LIBS="-lesd  $LIBS"
39327cat >conftest.$ac_ext <<_ACEOF
39328/* confdefs.h.  */
39329_ACEOF
39330cat confdefs.h >>conftest.$ac_ext
39331cat >>conftest.$ac_ext <<_ACEOF
39332/* end confdefs.h.  */
39333
39334/* Override any gcc2 internal prototype to avoid an error.  */
39335#ifdef __cplusplus
39336extern "C"
39337#endif
39338/* We use char because int might match the return type of a gcc2
39339   builtin and then its argument prototype would still apply.  */
39340char esd_close ();
39341int
39342main ()
39343{
39344esd_close ();
39345  ;
39346  return 0;
39347}
39348_ACEOF
39349rm -f conftest.$ac_objext conftest$ac_exeext
39350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39351  (eval $ac_link) 2>conftest.er1
39352  ac_status=$?
39353  grep -v '^ *+' conftest.er1 >conftest.err
39354  rm -f conftest.er1
39355  cat conftest.err >&5
39356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357  (exit $ac_status); } &&
39358	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39360  (eval $ac_try) 2>&5
39361  ac_status=$?
39362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39363  (exit $ac_status); }; } &&
39364	 { ac_try='test -s conftest$ac_exeext'
39365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39366  (eval $ac_try) 2>&5
39367  ac_status=$?
39368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369  (exit $ac_status); }; }; then
39370  ac_cv_lib_esd_esd_close=yes
39371else
39372  echo "$as_me: failed program was:" >&5
39373sed 's/^/| /' conftest.$ac_ext >&5
39374
39375ac_cv_lib_esd_esd_close=no
39376fi
39377rm -f conftest.err conftest.$ac_objext \
39378      conftest$ac_exeext conftest.$ac_ext
39379LIBS=$ac_check_lib_save_LIBS
39380fi
39381echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
39382echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
39383if test $ac_cv_lib_esd_esd_close = yes; then
39384
39385
39386for ac_header in esd.h
39387do
39388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39389echo "$as_me:$LINENO: checking for $ac_header" >&5
39390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39391if eval "test \"\${$as_ac_Header+set}\" = set"; then
39392  echo $ECHO_N "(cached) $ECHO_C" >&6
39393else
39394  cat >conftest.$ac_ext <<_ACEOF
39395/* confdefs.h.  */
39396_ACEOF
39397cat confdefs.h >>conftest.$ac_ext
39398cat >>conftest.$ac_ext <<_ACEOF
39399/* end confdefs.h.  */
39400
39401
39402#include <$ac_header>
39403_ACEOF
39404rm -f conftest.$ac_objext
39405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39406  (eval $ac_compile) 2>conftest.er1
39407  ac_status=$?
39408  grep -v '^ *+' conftest.er1 >conftest.err
39409  rm -f conftest.er1
39410  cat conftest.err >&5
39411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39412  (exit $ac_status); } &&
39413	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39415  (eval $ac_try) 2>&5
39416  ac_status=$?
39417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418  (exit $ac_status); }; } &&
39419	 { ac_try='test -s conftest.$ac_objext'
39420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39421  (eval $ac_try) 2>&5
39422  ac_status=$?
39423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424  (exit $ac_status); }; }; then
39425  eval "$as_ac_Header=yes"
39426else
39427  echo "$as_me: failed program was:" >&5
39428sed 's/^/| /' conftest.$ac_ext >&5
39429
39430eval "$as_ac_Header=no"
39431fi
39432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39433fi
39434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39436if test `eval echo '${'$as_ac_Header'}'` = yes; then
39437  cat >>confdefs.h <<_ACEOF
39438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39439_ACEOF
39440
39441    EXTRALIBS_ESD="-lesd"
39442
39443fi
39444
39445done
39446
39447
39448fi
39449
39450
39451
39452echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
39453echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
39454cat >conftest.$ac_ext <<_ACEOF
39455/* confdefs.h.  */
39456_ACEOF
39457cat confdefs.h >>conftest.$ac_ext
39458cat >>conftest.$ac_ext <<_ACEOF
39459/* end confdefs.h.  */
39460#ifdef __linux__
39461                #include <linux/cdrom.h>
39462                #else
39463                /* For Solaris */
39464                #include <sys/cdio.h>
39465                #endif
39466
39467int
39468main ()
39469{
39470struct cdrom_tocentry entry, old_entry;
39471  ;
39472  return 0;
39473}
39474_ACEOF
39475rm -f conftest.$ac_objext
39476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39477  (eval $ac_compile) 2>conftest.er1
39478  ac_status=$?
39479  grep -v '^ *+' conftest.er1 >conftest.err
39480  rm -f conftest.er1
39481  cat conftest.err >&5
39482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483  (exit $ac_status); } &&
39484	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39486  (eval $ac_try) 2>&5
39487  ac_status=$?
39488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489  (exit $ac_status); }; } &&
39490	 { ac_try='test -s conftest.$ac_objext'
39491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39492  (eval $ac_try) 2>&5
39493  ac_status=$?
39494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39495  (exit $ac_status); }; }; then
39496  echo "$as_me:$LINENO: result: yes" >&5
39497echo "${ECHO_T}yes" >&6
39498                cat >>confdefs.h <<\_ACEOF
39499#define HAVE_KNOWN_CDROM_INTERFACE 1
39500_ACEOF
39501
39502else
39503  echo "$as_me: failed program was:" >&5
39504sed 's/^/| /' conftest.$ac_ext >&5
39505
39506echo "$as_me:$LINENO: result: no" >&5
39507echo "${ECHO_T}no" >&6
39508fi
39509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39510
39511
39512cat >confcache <<\_ACEOF
39513# This file is a shell script that caches the results of configure
39514# tests run on this system so they can be shared between configure
39515# scripts and configure runs, see configure's option --config-cache.
39516# It is not useful on other systems.  If it contains results you don't
39517# want to keep, you may remove or edit it.
39518#
39519# config.status only pays attention to the cache file if you give it
39520# the --recheck option to rerun configure.
39521#
39522# `ac_cv_env_foo' variables (set or unset) will be overridden when
39523# loading this file, other *unset* `ac_cv_foo' will be assigned the
39524# following values.
39525
39526_ACEOF
39527
39528# The following way of writing the cache mishandles newlines in values,
39529# but we know of no workaround that is simple, portable, and efficient.
39530# So, don't put newlines in cache variables' values.
39531# Ultrix sh set writes to stderr and can't be redirected directly,
39532# and sets the high bit in the cache file unless we assign to the vars.
39533{
39534  (set) 2>&1 |
39535    case `(ac_space=' '; set | grep ac_space) 2>&1` in
39536    *ac_space=\ *)
39537      # `set' does not quote correctly, so add quotes (double-quote
39538      # substitution turns \\\\ into \\, and sed turns \\ into \).
39539      sed -n \
39540	"s/'/'\\\\''/g;
39541	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39542      ;;
39543    *)
39544      # `set' quotes correctly as required by POSIX, so do not add quotes.
39545      sed -n \
39546	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39547      ;;
39548    esac;
39549} |
39550  sed '
39551     t clear
39552     : clear
39553     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39554     t end
39555     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39556     : end' >>confcache
39557if diff $cache_file confcache >/dev/null 2>&1; then :; else
39558  if test -w $cache_file; then
39559    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39560    cat confcache >$cache_file
39561  else
39562    echo "not updating unwritable cache $cache_file"
39563  fi
39564fi
39565rm -f confcache
39566
39567
39568if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39569
39570
39571    THREADS_LINK=
39572    THREADS_CFLAGS=
39573
39574    if test "$wxUSE_THREADS" = "yes" ; then
39575        if test "$USE_BEOS" = 1; then
39576            { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39577echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39578            wxUSE_THREADS="no"
39579        fi
39580    fi
39581
39582    if test "$wxUSE_THREADS" = "yes" ; then
39583
39584
39585                                THREAD_OPTS="-pthread"
39586        case "${host}" in
39587          *-*-solaris2* | *-*-sunos4* )
39588                if test "x$GCC" = "xyes"; then
39589                                        THREAD_OPTS="-pthreads $THREAD_OPTS"
39590                else
39591                    THREAD_OPTS="-mt $THREAD_OPTS"
39592                fi
39593                ;;
39594          *-*-freebsd*|*-*-dragonfly*)
39595                                                THREAD_OPTS="-pthread"
39596                ;;
39597          *-*-darwin* | *-*-cygwin* )
39598                                                THREAD_OPTS=""
39599                ;;
39600          *-*-aix*)
39601                                THREAD_OPTS="pthreads"
39602                ;;
39603          *-hp-hpux* )
39604                if test "x$GCC" = "xyes"; then
39605                                        $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39606                        THREAD_OPTS=""
39607                else
39608                                                            THREAD_OPTS="-mt"
39609                fi
39610                ;;
39611
39612          *-*-irix* )
39613                                                                if test "x$GCC" = "xyes"; then
39614                    THREAD_OPTS=""
39615                fi
39616                ;;
39617
39618          *-*-*UnixWare*)
39619                                if test "x$GCC" != "xyes"; then
39620                    THREAD_OPTS="-Ethread"
39621                fi
39622                ;;
39623        esac
39624
39625                                THREAD_OPTS="$THREAD_OPTS pthread none"
39626
39627                THREADS_OK=no
39628        for flag in $THREAD_OPTS; do
39629            case $flag in
39630                none)
39631                    echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39632echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39633                    ;;
39634
39635                -*)
39636                    echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39637echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
39638                    THREADS_CFLAGS="$flag"
39639                    ;;
39640
39641                *)
39642                    echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39643echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39644                    THREADS_LINK="-l$flag"
39645                    ;;
39646              esac
39647
39648              save_LIBS="$LIBS"
39649              save_CFLAGS="$CFLAGS"
39650              LIBS="$THREADS_LINK $LIBS"
39651              CFLAGS="$THREADS_CFLAGS $CFLAGS"
39652
39653              cat >conftest.$ac_ext <<_ACEOF
39654/* confdefs.h.  */
39655_ACEOF
39656cat confdefs.h >>conftest.$ac_ext
39657cat >>conftest.$ac_ext <<_ACEOF
39658/* end confdefs.h.  */
39659#include <pthread.h>
39660int
39661main ()
39662{
39663pthread_create(0,0,0,0);
39664  ;
39665  return 0;
39666}
39667_ACEOF
39668rm -f conftest.$ac_objext conftest$ac_exeext
39669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39670  (eval $ac_link) 2>conftest.er1
39671  ac_status=$?
39672  grep -v '^ *+' conftest.er1 >conftest.err
39673  rm -f conftest.er1
39674  cat conftest.err >&5
39675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676  (exit $ac_status); } &&
39677	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39679  (eval $ac_try) 2>&5
39680  ac_status=$?
39681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39682  (exit $ac_status); }; } &&
39683	 { ac_try='test -s conftest$ac_exeext'
39684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39685  (eval $ac_try) 2>&5
39686  ac_status=$?
39687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39688  (exit $ac_status); }; }; then
39689  THREADS_OK=yes
39690else
39691  echo "$as_me: failed program was:" >&5
39692sed 's/^/| /' conftest.$ac_ext >&5
39693
39694fi
39695rm -f conftest.err conftest.$ac_objext \
39696      conftest$ac_exeext conftest.$ac_ext
39697
39698              LIBS="$save_LIBS"
39699              CFLAGS="$save_CFLAGS"
39700
39701              echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39702echo "${ECHO_T}$THREADS_OK" >&6
39703              if test "x$THREADS_OK" = "xyes"; then
39704                      break;
39705              fi
39706
39707              THREADS_LINK=""
39708              THREADS_CFLAGS=""
39709      done
39710
39711      if test "x$THREADS_OK" != "xyes"; then
39712          wxUSE_THREADS=no
39713          { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39714echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39715      else
39716                              LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39717          LIBS="$THREADS_LINK $LIBS"
39718
39719          echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39720echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39721          flag=no
39722          case "${host}" in
39723            *-aix*)
39724                                                                                                                LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39725                flag="-D_THREAD_SAFE"
39726                ;;
39727            *-freebsd*)
39728                flag="-D_THREAD_SAFE"
39729                ;;
39730            *-hp-hpux* )
39731                flag="-D_REENTRANT"
39732                if test "x$GCC" != "xyes"; then
39733                                        flag="$flag -D_RWSTD_MULTI_THREAD"
39734                fi
39735                ;;
39736            *solaris* | alpha*-osf*)
39737                flag="-D_REENTRANT"
39738                ;;
39739          esac
39740          echo "$as_me:$LINENO: result: ${flag}" >&5
39741echo "${ECHO_T}${flag}" >&6
39742          if test "x$flag" != xno; then
39743              THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39744          fi
39745
39746                    WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39747      fi
39748    fi
39749
39750        if test "$wxUSE_THREADS" = "yes" ; then
39751
39752for ac_func in thr_setconcurrency
39753do
39754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39755echo "$as_me:$LINENO: checking for $ac_func" >&5
39756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39757if eval "test \"\${$as_ac_var+set}\" = set"; then
39758  echo $ECHO_N "(cached) $ECHO_C" >&6
39759else
39760  cat >conftest.$ac_ext <<_ACEOF
39761/* confdefs.h.  */
39762_ACEOF
39763cat confdefs.h >>conftest.$ac_ext
39764cat >>conftest.$ac_ext <<_ACEOF
39765/* end confdefs.h.  */
39766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39767   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39768#define $ac_func innocuous_$ac_func
39769
39770/* System header to define __stub macros and hopefully few prototypes,
39771    which can conflict with char $ac_func (); below.
39772    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39773    <limits.h> exists even on freestanding compilers.  */
39774
39775#ifdef __STDC__
39776# include <limits.h>
39777#else
39778# include <assert.h>
39779#endif
39780
39781#undef $ac_func
39782
39783/* Override any gcc2 internal prototype to avoid an error.  */
39784#ifdef __cplusplus
39785extern "C"
39786{
39787#endif
39788/* We use char because int might match the return type of a gcc2
39789   builtin and then its argument prototype would still apply.  */
39790char $ac_func ();
39791/* The GNU C library defines this for functions which it implements
39792    to always fail with ENOSYS.  Some functions are actually named
39793    something starting with __ and the normal name is an alias.  */
39794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39795choke me
39796#else
39797char (*f) () = $ac_func;
39798#endif
39799#ifdef __cplusplus
39800}
39801#endif
39802
39803int
39804main ()
39805{
39806return f != $ac_func;
39807  ;
39808  return 0;
39809}
39810_ACEOF
39811rm -f conftest.$ac_objext conftest$ac_exeext
39812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39813  (eval $ac_link) 2>conftest.er1
39814  ac_status=$?
39815  grep -v '^ *+' conftest.er1 >conftest.err
39816  rm -f conftest.er1
39817  cat conftest.err >&5
39818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39819  (exit $ac_status); } &&
39820	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39822  (eval $ac_try) 2>&5
39823  ac_status=$?
39824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39825  (exit $ac_status); }; } &&
39826	 { ac_try='test -s conftest$ac_exeext'
39827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39828  (eval $ac_try) 2>&5
39829  ac_status=$?
39830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39831  (exit $ac_status); }; }; then
39832  eval "$as_ac_var=yes"
39833else
39834  echo "$as_me: failed program was:" >&5
39835sed 's/^/| /' conftest.$ac_ext >&5
39836
39837eval "$as_ac_var=no"
39838fi
39839rm -f conftest.err conftest.$ac_objext \
39840      conftest$ac_exeext conftest.$ac_ext
39841fi
39842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39843echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39844if test `eval echo '${'$as_ac_var'}'` = yes; then
39845  cat >>confdefs.h <<_ACEOF
39846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39847_ACEOF
39848
39849fi
39850done
39851
39852
39853                  echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39854echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39855if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39856  echo $ECHO_N "(cached) $ECHO_C" >&6
39857else
39858
39859        cat >conftest.$ac_ext <<_ACEOF
39860/* confdefs.h.  */
39861_ACEOF
39862cat confdefs.h >>conftest.$ac_ext
39863cat >>conftest.$ac_ext <<_ACEOF
39864/* end confdefs.h.  */
39865#include <pthread.h>
39866               void ThreadCleanupFunc(void *p);
39867
39868int
39869main ()
39870{
39871
39872                void *p;
39873                pthread_cleanup_push(ThreadCleanupFunc, p);
39874                pthread_cleanup_pop(0);
39875
39876  ;
39877  return 0;
39878}
39879_ACEOF
39880rm -f conftest.$ac_objext
39881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39882  (eval $ac_compile) 2>conftest.er1
39883  ac_status=$?
39884  grep -v '^ *+' conftest.er1 >conftest.err
39885  rm -f conftest.er1
39886  cat conftest.err >&5
39887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888  (exit $ac_status); } &&
39889	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39891  (eval $ac_try) 2>&5
39892  ac_status=$?
39893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39894  (exit $ac_status); }; } &&
39895	 { ac_try='test -s conftest.$ac_objext'
39896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39897  (eval $ac_try) 2>&5
39898  ac_status=$?
39899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900  (exit $ac_status); }; }; then
39901
39902               wx_cv_func_pthread_cleanup=yes
39903
39904else
39905  echo "$as_me: failed program was:" >&5
39906sed 's/^/| /' conftest.$ac_ext >&5
39907
39908
39909               wx_cv_func_pthread_cleanup=no
39910
39911
39912fi
39913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39914
39915fi
39916echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39917echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39918      if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39919        cat >>confdefs.h <<\_ACEOF
39920#define wxHAVE_PTHREAD_CLEANUP 1
39921_ACEOF
39922
39923      fi
39924
39925
39926for ac_header in sched.h
39927do
39928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39929echo "$as_me:$LINENO: checking for $ac_header" >&5
39930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39931if eval "test \"\${$as_ac_Header+set}\" = set"; then
39932  echo $ECHO_N "(cached) $ECHO_C" >&6
39933else
39934  cat >conftest.$ac_ext <<_ACEOF
39935/* confdefs.h.  */
39936_ACEOF
39937cat confdefs.h >>conftest.$ac_ext
39938cat >>conftest.$ac_ext <<_ACEOF
39939/* end confdefs.h.  */
39940$ac_includes_default
39941
39942#include <$ac_header>
39943_ACEOF
39944rm -f conftest.$ac_objext
39945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39946  (eval $ac_compile) 2>conftest.er1
39947  ac_status=$?
39948  grep -v '^ *+' conftest.er1 >conftest.err
39949  rm -f conftest.er1
39950  cat conftest.err >&5
39951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39952  (exit $ac_status); } &&
39953	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
39954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39955  (eval $ac_try) 2>&5
39956  ac_status=$?
39957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39958  (exit $ac_status); }; } &&
39959	 { ac_try='test -s conftest.$ac_objext'
39960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39961  (eval $ac_try) 2>&5
39962  ac_status=$?
39963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39964  (exit $ac_status); }; }; then
39965  eval "$as_ac_Header=yes"
39966else
39967  echo "$as_me: failed program was:" >&5
39968sed 's/^/| /' conftest.$ac_ext >&5
39969
39970eval "$as_ac_Header=no"
39971fi
39972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39973fi
39974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39976if test `eval echo '${'$as_ac_Header'}'` = yes; then
39977  cat >>confdefs.h <<_ACEOF
39978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39979_ACEOF
39980
39981fi
39982
39983done
39984
39985      if test "$ac_cv_header_sched_h" = "yes"; then
39986          echo "$as_me:$LINENO: checking for sched_yield" >&5
39987echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39988if test "${ac_cv_func_sched_yield+set}" = set; then
39989  echo $ECHO_N "(cached) $ECHO_C" >&6
39990else
39991  cat >conftest.$ac_ext <<_ACEOF
39992/* confdefs.h.  */
39993_ACEOF
39994cat confdefs.h >>conftest.$ac_ext
39995cat >>conftest.$ac_ext <<_ACEOF
39996/* end confdefs.h.  */
39997/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39998   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39999#define sched_yield innocuous_sched_yield
40000
40001/* System header to define __stub macros and hopefully few prototypes,
40002    which can conflict with char sched_yield (); below.
40003    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40004    <limits.h> exists even on freestanding compilers.  */
40005
40006#ifdef __STDC__
40007# include <limits.h>
40008#else
40009# include <assert.h>
40010#endif
40011
40012#undef sched_yield
40013
40014/* Override any gcc2 internal prototype to avoid an error.  */
40015#ifdef __cplusplus
40016extern "C"
40017{
40018#endif
40019/* We use char because int might match the return type of a gcc2
40020   builtin and then its argument prototype would still apply.  */
40021char sched_yield ();
40022/* The GNU C library defines this for functions which it implements
40023    to always fail with ENOSYS.  Some functions are actually named
40024    something starting with __ and the normal name is an alias.  */
40025#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
40026choke me
40027#else
40028char (*f) () = sched_yield;
40029#endif
40030#ifdef __cplusplus
40031}
40032#endif
40033
40034int
40035main ()
40036{
40037return f != sched_yield;
40038  ;
40039  return 0;
40040}
40041_ACEOF
40042rm -f conftest.$ac_objext conftest$ac_exeext
40043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40044  (eval $ac_link) 2>conftest.er1
40045  ac_status=$?
40046  grep -v '^ *+' conftest.er1 >conftest.err
40047  rm -f conftest.er1
40048  cat conftest.err >&5
40049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40050  (exit $ac_status); } &&
40051	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40053  (eval $ac_try) 2>&5
40054  ac_status=$?
40055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40056  (exit $ac_status); }; } &&
40057	 { ac_try='test -s conftest$ac_exeext'
40058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40059  (eval $ac_try) 2>&5
40060  ac_status=$?
40061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40062  (exit $ac_status); }; }; then
40063  ac_cv_func_sched_yield=yes
40064else
40065  echo "$as_me: failed program was:" >&5
40066sed 's/^/| /' conftest.$ac_ext >&5
40067
40068ac_cv_func_sched_yield=no
40069fi
40070rm -f conftest.err conftest.$ac_objext \
40071      conftest$ac_exeext conftest.$ac_ext
40072fi
40073echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40074echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
40075if test $ac_cv_func_sched_yield = yes; then
40076  cat >>confdefs.h <<\_ACEOF
40077#define HAVE_SCHED_YIELD 1
40078_ACEOF
40079
40080else
40081
40082                echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40083echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
40084if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40085  echo $ECHO_N "(cached) $ECHO_C" >&6
40086else
40087  ac_check_lib_save_LIBS=$LIBS
40088LIBS="-lposix4  $LIBS"
40089cat >conftest.$ac_ext <<_ACEOF
40090/* confdefs.h.  */
40091_ACEOF
40092cat confdefs.h >>conftest.$ac_ext
40093cat >>conftest.$ac_ext <<_ACEOF
40094/* end confdefs.h.  */
40095
40096/* Override any gcc2 internal prototype to avoid an error.  */
40097#ifdef __cplusplus
40098extern "C"
40099#endif
40100/* We use char because int might match the return type of a gcc2
40101   builtin and then its argument prototype would still apply.  */
40102char sched_yield ();
40103int
40104main ()
40105{
40106sched_yield ();
40107  ;
40108  return 0;
40109}
40110_ACEOF
40111rm -f conftest.$ac_objext conftest$ac_exeext
40112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40113  (eval $ac_link) 2>conftest.er1
40114  ac_status=$?
40115  grep -v '^ *+' conftest.er1 >conftest.err
40116  rm -f conftest.er1
40117  cat conftest.err >&5
40118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40119  (exit $ac_status); } &&
40120	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40122  (eval $ac_try) 2>&5
40123  ac_status=$?
40124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40125  (exit $ac_status); }; } &&
40126	 { ac_try='test -s conftest$ac_exeext'
40127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40128  (eval $ac_try) 2>&5
40129  ac_status=$?
40130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40131  (exit $ac_status); }; }; then
40132  ac_cv_lib_posix4_sched_yield=yes
40133else
40134  echo "$as_me: failed program was:" >&5
40135sed 's/^/| /' conftest.$ac_ext >&5
40136
40137ac_cv_lib_posix4_sched_yield=no
40138fi
40139rm -f conftest.err conftest.$ac_objext \
40140      conftest$ac_exeext conftest.$ac_ext
40141LIBS=$ac_check_lib_save_LIBS
40142fi
40143echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40144echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
40145if test $ac_cv_lib_posix4_sched_yield = yes; then
40146  cat >>confdefs.h <<\_ACEOF
40147#define HAVE_SCHED_YIELD 1
40148_ACEOF
40149 POSIX4_LINK=" -lposix4"
40150else
40151  { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40152echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40153
40154fi
40155
40156
40157
40158fi
40159
40160      fi
40161
40162                                          HAVE_PRIOR_FUNCS=0
40163      echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40164echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
40165if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40166  echo $ECHO_N "(cached) $ECHO_C" >&6
40167else
40168  cat >conftest.$ac_ext <<_ACEOF
40169/* confdefs.h.  */
40170_ACEOF
40171cat confdefs.h >>conftest.$ac_ext
40172cat >>conftest.$ac_ext <<_ACEOF
40173/* end confdefs.h.  */
40174/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40175   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40176#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40177
40178/* System header to define __stub macros and hopefully few prototypes,
40179    which can conflict with char pthread_attr_getschedpolicy (); below.
40180    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40181    <limits.h> exists even on freestanding compilers.  */
40182
40183#ifdef __STDC__
40184# include <limits.h>
40185#else
40186# include <assert.h>
40187#endif
40188
40189#undef pthread_attr_getschedpolicy
40190
40191/* Override any gcc2 internal prototype to avoid an error.  */
40192#ifdef __cplusplus
40193extern "C"
40194{
40195#endif
40196/* We use char because int might match the return type of a gcc2
40197   builtin and then its argument prototype would still apply.  */
40198char pthread_attr_getschedpolicy ();
40199/* The GNU C library defines this for functions which it implements
40200    to always fail with ENOSYS.  Some functions are actually named
40201    something starting with __ and the normal name is an alias.  */
40202#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
40203choke me
40204#else
40205char (*f) () = pthread_attr_getschedpolicy;
40206#endif
40207#ifdef __cplusplus
40208}
40209#endif
40210
40211int
40212main ()
40213{
40214return f != pthread_attr_getschedpolicy;
40215  ;
40216  return 0;
40217}
40218_ACEOF
40219rm -f conftest.$ac_objext conftest$ac_exeext
40220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40221  (eval $ac_link) 2>conftest.er1
40222  ac_status=$?
40223  grep -v '^ *+' conftest.er1 >conftest.err
40224  rm -f conftest.er1
40225  cat conftest.err >&5
40226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40227  (exit $ac_status); } &&
40228	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40230  (eval $ac_try) 2>&5
40231  ac_status=$?
40232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233  (exit $ac_status); }; } &&
40234	 { ac_try='test -s conftest$ac_exeext'
40235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40236  (eval $ac_try) 2>&5
40237  ac_status=$?
40238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239  (exit $ac_status); }; }; then
40240  ac_cv_func_pthread_attr_getschedpolicy=yes
40241else
40242  echo "$as_me: failed program was:" >&5
40243sed 's/^/| /' conftest.$ac_ext >&5
40244
40245ac_cv_func_pthread_attr_getschedpolicy=no
40246fi
40247rm -f conftest.err conftest.$ac_objext \
40248      conftest$ac_exeext conftest.$ac_ext
40249fi
40250echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40251echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
40252if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40253  echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40254echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
40255if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40256  echo $ECHO_N "(cached) $ECHO_C" >&6
40257else
40258  cat >conftest.$ac_ext <<_ACEOF
40259/* confdefs.h.  */
40260_ACEOF
40261cat confdefs.h >>conftest.$ac_ext
40262cat >>conftest.$ac_ext <<_ACEOF
40263/* end confdefs.h.  */
40264/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40265   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40266#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40267
40268/* System header to define __stub macros and hopefully few prototypes,
40269    which can conflict with char pthread_attr_setschedparam (); below.
40270    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40271    <limits.h> exists even on freestanding compilers.  */
40272
40273#ifdef __STDC__
40274# include <limits.h>
40275#else
40276# include <assert.h>
40277#endif
40278
40279#undef pthread_attr_setschedparam
40280
40281/* Override any gcc2 internal prototype to avoid an error.  */
40282#ifdef __cplusplus
40283extern "C"
40284{
40285#endif
40286/* We use char because int might match the return type of a gcc2
40287   builtin and then its argument prototype would still apply.  */
40288char pthread_attr_setschedparam ();
40289/* The GNU C library defines this for functions which it implements
40290    to always fail with ENOSYS.  Some functions are actually named
40291    something starting with __ and the normal name is an alias.  */
40292#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
40293choke me
40294#else
40295char (*f) () = pthread_attr_setschedparam;
40296#endif
40297#ifdef __cplusplus
40298}
40299#endif
40300
40301int
40302main ()
40303{
40304return f != pthread_attr_setschedparam;
40305  ;
40306  return 0;
40307}
40308_ACEOF
40309rm -f conftest.$ac_objext conftest$ac_exeext
40310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40311  (eval $ac_link) 2>conftest.er1
40312  ac_status=$?
40313  grep -v '^ *+' conftest.er1 >conftest.err
40314  rm -f conftest.er1
40315  cat conftest.err >&5
40316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40317  (exit $ac_status); } &&
40318	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40320  (eval $ac_try) 2>&5
40321  ac_status=$?
40322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40323  (exit $ac_status); }; } &&
40324	 { ac_try='test -s conftest$ac_exeext'
40325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326  (eval $ac_try) 2>&5
40327  ac_status=$?
40328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329  (exit $ac_status); }; }; then
40330  ac_cv_func_pthread_attr_setschedparam=yes
40331else
40332  echo "$as_me: failed program was:" >&5
40333sed 's/^/| /' conftest.$ac_ext >&5
40334
40335ac_cv_func_pthread_attr_setschedparam=no
40336fi
40337rm -f conftest.err conftest.$ac_objext \
40338      conftest$ac_exeext conftest.$ac_ext
40339fi
40340echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40341echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
40342if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40343  echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40344echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
40345if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40346  echo $ECHO_N "(cached) $ECHO_C" >&6
40347else
40348  cat >conftest.$ac_ext <<_ACEOF
40349/* confdefs.h.  */
40350_ACEOF
40351cat confdefs.h >>conftest.$ac_ext
40352cat >>conftest.$ac_ext <<_ACEOF
40353/* end confdefs.h.  */
40354/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40356#define sched_get_priority_max innocuous_sched_get_priority_max
40357
40358/* System header to define __stub macros and hopefully few prototypes,
40359    which can conflict with char sched_get_priority_max (); below.
40360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40361    <limits.h> exists even on freestanding compilers.  */
40362
40363#ifdef __STDC__
40364# include <limits.h>
40365#else
40366# include <assert.h>
40367#endif
40368
40369#undef sched_get_priority_max
40370
40371/* Override any gcc2 internal prototype to avoid an error.  */
40372#ifdef __cplusplus
40373extern "C"
40374{
40375#endif
40376/* We use char because int might match the return type of a gcc2
40377   builtin and then its argument prototype would still apply.  */
40378char sched_get_priority_max ();
40379/* The GNU C library defines this for functions which it implements
40380    to always fail with ENOSYS.  Some functions are actually named
40381    something starting with __ and the normal name is an alias.  */
40382#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
40383choke me
40384#else
40385char (*f) () = sched_get_priority_max;
40386#endif
40387#ifdef __cplusplus
40388}
40389#endif
40390
40391int
40392main ()
40393{
40394return f != sched_get_priority_max;
40395  ;
40396  return 0;
40397}
40398_ACEOF
40399rm -f conftest.$ac_objext conftest$ac_exeext
40400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40401  (eval $ac_link) 2>conftest.er1
40402  ac_status=$?
40403  grep -v '^ *+' conftest.er1 >conftest.err
40404  rm -f conftest.er1
40405  cat conftest.err >&5
40406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40407  (exit $ac_status); } &&
40408	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40410  (eval $ac_try) 2>&5
40411  ac_status=$?
40412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40413  (exit $ac_status); }; } &&
40414	 { ac_try='test -s conftest$ac_exeext'
40415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40416  (eval $ac_try) 2>&5
40417  ac_status=$?
40418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40419  (exit $ac_status); }; }; then
40420  ac_cv_func_sched_get_priority_max=yes
40421else
40422  echo "$as_me: failed program was:" >&5
40423sed 's/^/| /' conftest.$ac_ext >&5
40424
40425ac_cv_func_sched_get_priority_max=no
40426fi
40427rm -f conftest.err conftest.$ac_objext \
40428      conftest$ac_exeext conftest.$ac_ext
40429fi
40430echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40431echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
40432if test $ac_cv_func_sched_get_priority_max = yes; then
40433  HAVE_PRIOR_FUNCS=1
40434else
40435  echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40436echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
40437if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40438  echo $ECHO_N "(cached) $ECHO_C" >&6
40439else
40440  ac_check_lib_save_LIBS=$LIBS
40441LIBS="-lposix4  $LIBS"
40442cat >conftest.$ac_ext <<_ACEOF
40443/* confdefs.h.  */
40444_ACEOF
40445cat confdefs.h >>conftest.$ac_ext
40446cat >>conftest.$ac_ext <<_ACEOF
40447/* end confdefs.h.  */
40448
40449/* Override any gcc2 internal prototype to avoid an error.  */
40450#ifdef __cplusplus
40451extern "C"
40452#endif
40453/* We use char because int might match the return type of a gcc2
40454   builtin and then its argument prototype would still apply.  */
40455char sched_get_priority_max ();
40456int
40457main ()
40458{
40459sched_get_priority_max ();
40460  ;
40461  return 0;
40462}
40463_ACEOF
40464rm -f conftest.$ac_objext conftest$ac_exeext
40465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40466  (eval $ac_link) 2>conftest.er1
40467  ac_status=$?
40468  grep -v '^ *+' conftest.er1 >conftest.err
40469  rm -f conftest.er1
40470  cat conftest.err >&5
40471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472  (exit $ac_status); } &&
40473	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40475  (eval $ac_try) 2>&5
40476  ac_status=$?
40477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478  (exit $ac_status); }; } &&
40479	 { ac_try='test -s conftest$ac_exeext'
40480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40481  (eval $ac_try) 2>&5
40482  ac_status=$?
40483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484  (exit $ac_status); }; }; then
40485  ac_cv_lib_posix4_sched_get_priority_max=yes
40486else
40487  echo "$as_me: failed program was:" >&5
40488sed 's/^/| /' conftest.$ac_ext >&5
40489
40490ac_cv_lib_posix4_sched_get_priority_max=no
40491fi
40492rm -f conftest.err conftest.$ac_objext \
40493      conftest$ac_exeext conftest.$ac_ext
40494LIBS=$ac_check_lib_save_LIBS
40495fi
40496echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40497echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
40498if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40499
40500                                HAVE_PRIOR_FUNCS=1
40501                                POSIX4_LINK=" -lposix4"
40502
40503fi
40504
40505
40506fi
40507
40508
40509fi
40510
40511
40512fi
40513
40514
40515      if test "$HAVE_PRIOR_FUNCS" = 1; then
40516        cat >>confdefs.h <<\_ACEOF
40517#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40518_ACEOF
40519
40520      else
40521        { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40522echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40523      fi
40524
40525      echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40526echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40527if test "${ac_cv_func_pthread_cancel+set}" = set; then
40528  echo $ECHO_N "(cached) $ECHO_C" >&6
40529else
40530  cat >conftest.$ac_ext <<_ACEOF
40531/* confdefs.h.  */
40532_ACEOF
40533cat confdefs.h >>conftest.$ac_ext
40534cat >>conftest.$ac_ext <<_ACEOF
40535/* end confdefs.h.  */
40536/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40537   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40538#define pthread_cancel innocuous_pthread_cancel
40539
40540/* System header to define __stub macros and hopefully few prototypes,
40541    which can conflict with char pthread_cancel (); below.
40542    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40543    <limits.h> exists even on freestanding compilers.  */
40544
40545#ifdef __STDC__
40546# include <limits.h>
40547#else
40548# include <assert.h>
40549#endif
40550
40551#undef pthread_cancel
40552
40553/* Override any gcc2 internal prototype to avoid an error.  */
40554#ifdef __cplusplus
40555extern "C"
40556{
40557#endif
40558/* We use char because int might match the return type of a gcc2
40559   builtin and then its argument prototype would still apply.  */
40560char pthread_cancel ();
40561/* The GNU C library defines this for functions which it implements
40562    to always fail with ENOSYS.  Some functions are actually named
40563    something starting with __ and the normal name is an alias.  */
40564#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40565choke me
40566#else
40567char (*f) () = pthread_cancel;
40568#endif
40569#ifdef __cplusplus
40570}
40571#endif
40572
40573int
40574main ()
40575{
40576return f != pthread_cancel;
40577  ;
40578  return 0;
40579}
40580_ACEOF
40581rm -f conftest.$ac_objext conftest$ac_exeext
40582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40583  (eval $ac_link) 2>conftest.er1
40584  ac_status=$?
40585  grep -v '^ *+' conftest.er1 >conftest.err
40586  rm -f conftest.er1
40587  cat conftest.err >&5
40588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40589  (exit $ac_status); } &&
40590	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40592  (eval $ac_try) 2>&5
40593  ac_status=$?
40594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40595  (exit $ac_status); }; } &&
40596	 { ac_try='test -s conftest$ac_exeext'
40597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40598  (eval $ac_try) 2>&5
40599  ac_status=$?
40600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601  (exit $ac_status); }; }; then
40602  ac_cv_func_pthread_cancel=yes
40603else
40604  echo "$as_me: failed program was:" >&5
40605sed 's/^/| /' conftest.$ac_ext >&5
40606
40607ac_cv_func_pthread_cancel=no
40608fi
40609rm -f conftest.err conftest.$ac_objext \
40610      conftest$ac_exeext conftest.$ac_ext
40611fi
40612echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40613echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40614if test $ac_cv_func_pthread_cancel = yes; then
40615  cat >>confdefs.h <<\_ACEOF
40616#define HAVE_PTHREAD_CANCEL 1
40617_ACEOF
40618
40619else
40620  { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40621echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40622fi
40623
40624
40625      echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40626echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40627if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40628  echo $ECHO_N "(cached) $ECHO_C" >&6
40629else
40630  cat >conftest.$ac_ext <<_ACEOF
40631/* confdefs.h.  */
40632_ACEOF
40633cat confdefs.h >>conftest.$ac_ext
40634cat >>conftest.$ac_ext <<_ACEOF
40635/* end confdefs.h.  */
40636/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40637   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40638#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40639
40640/* System header to define __stub macros and hopefully few prototypes,
40641    which can conflict with char pthread_attr_setstacksize (); below.
40642    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40643    <limits.h> exists even on freestanding compilers.  */
40644
40645#ifdef __STDC__
40646# include <limits.h>
40647#else
40648# include <assert.h>
40649#endif
40650
40651#undef pthread_attr_setstacksize
40652
40653/* Override any gcc2 internal prototype to avoid an error.  */
40654#ifdef __cplusplus
40655extern "C"
40656{
40657#endif
40658/* We use char because int might match the return type of a gcc2
40659   builtin and then its argument prototype would still apply.  */
40660char pthread_attr_setstacksize ();
40661/* The GNU C library defines this for functions which it implements
40662    to always fail with ENOSYS.  Some functions are actually named
40663    something starting with __ and the normal name is an alias.  */
40664#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40665choke me
40666#else
40667char (*f) () = pthread_attr_setstacksize;
40668#endif
40669#ifdef __cplusplus
40670}
40671#endif
40672
40673int
40674main ()
40675{
40676return f != pthread_attr_setstacksize;
40677  ;
40678  return 0;
40679}
40680_ACEOF
40681rm -f conftest.$ac_objext conftest$ac_exeext
40682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40683  (eval $ac_link) 2>conftest.er1
40684  ac_status=$?
40685  grep -v '^ *+' conftest.er1 >conftest.err
40686  rm -f conftest.er1
40687  cat conftest.err >&5
40688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689  (exit $ac_status); } &&
40690	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40692  (eval $ac_try) 2>&5
40693  ac_status=$?
40694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40695  (exit $ac_status); }; } &&
40696	 { ac_try='test -s conftest$ac_exeext'
40697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40698  (eval $ac_try) 2>&5
40699  ac_status=$?
40700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40701  (exit $ac_status); }; }; then
40702  ac_cv_func_pthread_attr_setstacksize=yes
40703else
40704  echo "$as_me: failed program was:" >&5
40705sed 's/^/| /' conftest.$ac_ext >&5
40706
40707ac_cv_func_pthread_attr_setstacksize=no
40708fi
40709rm -f conftest.err conftest.$ac_objext \
40710      conftest$ac_exeext conftest.$ac_ext
40711fi
40712echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40713echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40714if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40715  cat >>confdefs.h <<\_ACEOF
40716#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40717_ACEOF
40718
40719fi
40720
40721
40722
40723      echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40724echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40725if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40726  echo $ECHO_N "(cached) $ECHO_C" >&6
40727else
40728
40729        cat >conftest.$ac_ext <<_ACEOF
40730/* confdefs.h.  */
40731_ACEOF
40732cat confdefs.h >>conftest.$ac_ext
40733cat >>conftest.$ac_ext <<_ACEOF
40734/* end confdefs.h.  */
40735#include <pthread.h>
40736int
40737main ()
40738{
40739
40740               pthread_mutexattr_t attr;
40741               pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40742
40743  ;
40744  return 0;
40745}
40746_ACEOF
40747rm -f conftest.$ac_objext
40748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40749  (eval $ac_compile) 2>conftest.er1
40750  ac_status=$?
40751  grep -v '^ *+' conftest.er1 >conftest.err
40752  rm -f conftest.er1
40753  cat conftest.err >&5
40754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755  (exit $ac_status); } &&
40756	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40758  (eval $ac_try) 2>&5
40759  ac_status=$?
40760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40761  (exit $ac_status); }; } &&
40762	 { ac_try='test -s conftest.$ac_objext'
40763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40764  (eval $ac_try) 2>&5
40765  ac_status=$?
40766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40767  (exit $ac_status); }; }; then
40768  wx_cv_type_pthread_mutexattr_t=yes
40769else
40770  echo "$as_me: failed program was:" >&5
40771sed 's/^/| /' conftest.$ac_ext >&5
40772
40773wx_cv_type_pthread_mutexattr_t=no
40774
40775fi
40776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40777
40778fi
40779echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40780echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40781
40782      if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40783        cat >>confdefs.h <<\_ACEOF
40784#define HAVE_PTHREAD_MUTEXATTR_T 1
40785_ACEOF
40786
40787
40788                        echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40789echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40790if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40791  echo $ECHO_N "(cached) $ECHO_C" >&6
40792else
40793
40794                       cat >conftest.$ac_ext <<_ACEOF
40795/* confdefs.h.  */
40796_ACEOF
40797cat confdefs.h >>conftest.$ac_ext
40798cat >>conftest.$ac_ext <<_ACEOF
40799/* end confdefs.h.  */
40800#include <pthread.h>
40801int
40802main ()
40803{
40804
40805                               pthread_mutexattr_t attr;
40806                               pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40807
40808  ;
40809  return 0;
40810}
40811_ACEOF
40812rm -f conftest.$ac_objext
40813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40814  (eval $ac_compile) 2>conftest.er1
40815  ac_status=$?
40816  grep -v '^ *+' conftest.er1 >conftest.err
40817  rm -f conftest.er1
40818  cat conftest.err >&5
40819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820  (exit $ac_status); } &&
40821	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40823  (eval $ac_try) 2>&5
40824  ac_status=$?
40825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40826  (exit $ac_status); }; } &&
40827	 { ac_try='test -s conftest.$ac_objext'
40828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40829  (eval $ac_try) 2>&5
40830  ac_status=$?
40831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40832  (exit $ac_status); }; }; then
40833  wx_cv_func_pthread_mutexattr_settype_decl=yes
40834else
40835  echo "$as_me: failed program was:" >&5
40836sed 's/^/| /' conftest.$ac_ext >&5
40837
40838wx_cv_func_pthread_mutexattr_settype_decl=no
40839
40840fi
40841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40842
40843fi
40844echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40845echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40846        if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40847            cat >>confdefs.h <<\_ACEOF
40848#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40849_ACEOF
40850
40851        fi
40852      else
40853                echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40854echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40855if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40856  echo $ECHO_N "(cached) $ECHO_C" >&6
40857else
40858
40859            cat >conftest.$ac_ext <<_ACEOF
40860/* confdefs.h.  */
40861_ACEOF
40862cat confdefs.h >>conftest.$ac_ext
40863cat >>conftest.$ac_ext <<_ACEOF
40864/* end confdefs.h.  */
40865#include <pthread.h>
40866int
40867main ()
40868{
40869
40870                    pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40871
40872  ;
40873  return 0;
40874}
40875_ACEOF
40876rm -f conftest.$ac_objext
40877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40878  (eval $ac_compile) 2>conftest.er1
40879  ac_status=$?
40880  grep -v '^ *+' conftest.er1 >conftest.err
40881  rm -f conftest.er1
40882  cat conftest.err >&5
40883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40884  (exit $ac_status); } &&
40885	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40887  (eval $ac_try) 2>&5
40888  ac_status=$?
40889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890  (exit $ac_status); }; } &&
40891	 { ac_try='test -s conftest.$ac_objext'
40892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40893  (eval $ac_try) 2>&5
40894  ac_status=$?
40895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896  (exit $ac_status); }; }; then
40897
40898                    wx_cv_type_pthread_rec_mutex_init=yes
40899
40900else
40901  echo "$as_me: failed program was:" >&5
40902sed 's/^/| /' conftest.$ac_ext >&5
40903
40904
40905                    wx_cv_type_pthread_rec_mutex_init=no
40906
40907
40908fi
40909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40910
40911fi
40912echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40913echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40914        if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40915          cat >>confdefs.h <<\_ACEOF
40916#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40917_ACEOF
40918
40919        else
40920                    { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40921echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40922        fi
40923      fi
40924    fi
40925
40926else
40927    if test "$wxUSE_THREADS" = "yes" ; then
40928      case "${host}" in
40929	x86_64-*-mingw32* )
40930        ;;
40931        *-*-mingw32* )
40932                        echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40933echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40934if test "${wx_cv_cflags_mthread+set}" = set; then
40935  echo $ECHO_N "(cached) $ECHO_C" >&6
40936else
40937
40938                    CFLAGS_OLD="$CFLAGS"
40939                    CFLAGS="-mthreads $CFLAGS"
40940                    cat >conftest.$ac_ext <<_ACEOF
40941/* confdefs.h.  */
40942_ACEOF
40943cat confdefs.h >>conftest.$ac_ext
40944cat >>conftest.$ac_ext <<_ACEOF
40945/* end confdefs.h.  */
40946
40947int
40948main ()
40949{
40950
40951  ;
40952  return 0;
40953}
40954_ACEOF
40955rm -f conftest.$ac_objext
40956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40957  (eval $ac_compile) 2>conftest.er1
40958  ac_status=$?
40959  grep -v '^ *+' conftest.er1 >conftest.err
40960  rm -f conftest.er1
40961  cat conftest.err >&5
40962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963  (exit $ac_status); } &&
40964	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
40965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966  (eval $ac_try) 2>&5
40967  ac_status=$?
40968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969  (exit $ac_status); }; } &&
40970	 { ac_try='test -s conftest.$ac_objext'
40971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40972  (eval $ac_try) 2>&5
40973  ac_status=$?
40974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40975  (exit $ac_status); }; }; then
40976  wx_cv_cflags_mthread=yes
40977else
40978  echo "$as_me: failed program was:" >&5
40979sed 's/^/| /' conftest.$ac_ext >&5
40980
40981wx_cv_cflags_mthread=no
40982
40983fi
40984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40985
40986
40987fi
40988echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40989echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40990
40991            if test "$wx_cv_cflags_mthread" = "yes"; then
40992                                WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40993                LDFLAGS="$LDFLAGS -mthreads"
40994            else
40995                                CFLAGS="$CFLAGS_OLD"
40996            fi
40997        ;;
40998        *-pc-os2*emx )
40999            WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
41000            LDFLAGS="$LDFLAGS -Zmt"
41001        ;;
41002      esac
41003    fi
41004fi
41005
41006echo "$as_me:$LINENO: checking for localtime_r" >&5
41007echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
41008if test "${ac_cv_func_localtime_r+set}" = set; then
41009  echo $ECHO_N "(cached) $ECHO_C" >&6
41010else
41011  cat >conftest.$ac_ext <<_ACEOF
41012/* confdefs.h.  */
41013_ACEOF
41014cat confdefs.h >>conftest.$ac_ext
41015cat >>conftest.$ac_ext <<_ACEOF
41016/* end confdefs.h.  */
41017/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
41018   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41019#define localtime_r innocuous_localtime_r
41020
41021/* System header to define __stub macros and hopefully few prototypes,
41022    which can conflict with char localtime_r (); below.
41023    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41024    <limits.h> exists even on freestanding compilers.  */
41025
41026#ifdef __STDC__
41027# include <limits.h>
41028#else
41029# include <assert.h>
41030#endif
41031
41032#undef localtime_r
41033
41034/* Override any gcc2 internal prototype to avoid an error.  */
41035#ifdef __cplusplus
41036extern "C"
41037{
41038#endif
41039/* We use char because int might match the return type of a gcc2
41040   builtin and then its argument prototype would still apply.  */
41041char localtime_r ();
41042/* The GNU C library defines this for functions which it implements
41043    to always fail with ENOSYS.  Some functions are actually named
41044    something starting with __ and the normal name is an alias.  */
41045#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
41046choke me
41047#else
41048char (*f) () = localtime_r;
41049#endif
41050#ifdef __cplusplus
41051}
41052#endif
41053
41054int
41055main ()
41056{
41057return f != localtime_r;
41058  ;
41059  return 0;
41060}
41061_ACEOF
41062rm -f conftest.$ac_objext conftest$ac_exeext
41063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41064  (eval $ac_link) 2>conftest.er1
41065  ac_status=$?
41066  grep -v '^ *+' conftest.er1 >conftest.err
41067  rm -f conftest.er1
41068  cat conftest.err >&5
41069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41070  (exit $ac_status); } &&
41071	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
41072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41073  (eval $ac_try) 2>&5
41074  ac_status=$?
41075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41076  (exit $ac_status); }; } &&
41077	 { ac_try='test -s conftest$ac_exeext'
41078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41079  (eval $ac_try) 2>&5
41080  ac_status=$?
41081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41082  (exit $ac_status); }; }; then
41083  ac_cv_func_localtime_r=yes
41084else
41085  echo "$as_me: failed program was:" >&5
41086sed 's/^/| /' conftest.$ac_ext >&5
41087
41088ac_cv_func_localtime_r=no
41089fi
41090rm -f conftest.err conftest.$ac_objext \
41091      conftest$ac_exeext conftest.$ac_ext
41092fi
41093echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41094echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
41095if test $ac_cv_func_localtime_r = yes; then
41096   cat >>confdefs.h <<\_ACEOF
41097#define HAVE_LOCALTIME_R 1
41098_ACEOF
41099
41100fi
41101
41102echo "$as_me:$LINENO: checking for gmtime_r" >&5
41103echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
41104if test "${ac_cv_func_gmtime_r+set}" = set; then
41105  echo $ECHO_N "(cached) $ECHO_C" >&6
41106else
41107  cat >conftest.$ac_ext <<_ACEOF
41108/* confdefs.h.  */
41109_ACEOF
41110cat confdefs.h >>conftest.$ac_ext
41111cat >>conftest.$ac_ext <<_ACEOF
41112/* end confdefs.h.  */
41113/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41114   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41115#define gmtime_r innocuous_gmtime_r
41116
41117/* System header to define __stub macros and hopefully few prototypes,
41118    which can conflict with char gmtime_r (); below.
41119    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41120    <limits.h> exists even on freestanding compilers.  */
41121
41122#ifdef __STDC__
41123# include <limits.h>
41124#else
41125# include <assert.h>
41126#endif
41127
41128#undef gmtime_r
41129
41130/* Override any gcc2 internal prototype to avoid an error.  */
41131#ifdef __cplusplus
41132extern "C"
41133{
41134#endif
41135/* We use char because int might match the return type of a gcc2
41136   builtin and then its argument prototype would still apply.  */
41137char gmtime_r ();
41138/* The GNU C library defines this for functions which it implements
41139    to always fail with ENOSYS.  Some functions are actually named
41140    something starting with __ and the normal name is an alias.  */
41141#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
41142choke me
41143#else
41144char (*f) () = gmtime_r;
41145#endif
41146#ifdef __cplusplus
41147}
41148#endif
41149
41150int
41151main ()
41152{
41153return f != gmtime_r;
41154  ;
41155  return 0;
41156}
41157_ACEOF
41158rm -f conftest.$ac_objext conftest$ac_exeext
41159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41160  (eval $ac_link) 2>conftest.er1
41161  ac_status=$?
41162  grep -v '^ *+' conftest.er1 >conftest.err
41163  rm -f conftest.er1
41164  cat conftest.err >&5
41165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41166  (exit $ac_status); } &&
41167	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
41168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41169  (eval $ac_try) 2>&5
41170  ac_status=$?
41171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41172  (exit $ac_status); }; } &&
41173	 { ac_try='test -s conftest$ac_exeext'
41174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41175  (eval $ac_try) 2>&5
41176  ac_status=$?
41177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178  (exit $ac_status); }; }; then
41179  ac_cv_func_gmtime_r=yes
41180else
41181  echo "$as_me: failed program was:" >&5
41182sed 's/^/| /' conftest.$ac_ext >&5
41183
41184ac_cv_func_gmtime_r=no
41185fi
41186rm -f conftest.err conftest.$ac_objext \
41187      conftest$ac_exeext conftest.$ac_ext
41188fi
41189echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41190echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
41191if test $ac_cv_func_gmtime_r = yes; then
41192   cat >>confdefs.h <<\_ACEOF
41193#define HAVE_GMTIME_R 1
41194_ACEOF
41195
41196fi
41197
41198echo "$as_me:$LINENO: checking for readdir_r" >&5
41199echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
41200if test "${ac_cv_func_readdir_r+set}" = set; then
41201  echo $ECHO_N "(cached) $ECHO_C" >&6
41202else
41203  cat >conftest.$ac_ext <<_ACEOF
41204/* confdefs.h.  */
41205_ACEOF
41206cat confdefs.h >>conftest.$ac_ext
41207cat >>conftest.$ac_ext <<_ACEOF
41208/* end confdefs.h.  */
41209/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
41210   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41211#define readdir_r innocuous_readdir_r
41212
41213/* System header to define __stub macros and hopefully few prototypes,
41214    which can conflict with char readdir_r (); below.
41215    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41216    <limits.h> exists even on freestanding compilers.  */
41217
41218#ifdef __STDC__
41219# include <limits.h>
41220#else
41221# include <assert.h>
41222#endif
41223
41224#undef readdir_r
41225
41226/* Override any gcc2 internal prototype to avoid an error.  */
41227#ifdef __cplusplus
41228extern "C"
41229{
41230#endif
41231/* We use char because int might match the return type of a gcc2
41232   builtin and then its argument prototype would still apply.  */
41233char readdir_r ();
41234/* The GNU C library defines this for functions which it implements
41235    to always fail with ENOSYS.  Some functions are actually named
41236    something starting with __ and the normal name is an alias.  */
41237#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
41238choke me
41239#else
41240char (*f) () = readdir_r;
41241#endif
41242#ifdef __cplusplus
41243}
41244#endif
41245
41246int
41247main ()
41248{
41249return f != readdir_r;
41250  ;
41251  return 0;
41252}
41253_ACEOF
41254rm -f conftest.$ac_objext conftest$ac_exeext
41255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41256  (eval $ac_link) 2>conftest.er1
41257  ac_status=$?
41258  grep -v '^ *+' conftest.er1 >conftest.err
41259  rm -f conftest.er1
41260  cat conftest.err >&5
41261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41262  (exit $ac_status); } &&
41263	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
41264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41265  (eval $ac_try) 2>&5
41266  ac_status=$?
41267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268  (exit $ac_status); }; } &&
41269	 { ac_try='test -s conftest$ac_exeext'
41270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41271  (eval $ac_try) 2>&5
41272  ac_status=$?
41273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274  (exit $ac_status); }; }; then
41275  ac_cv_func_readdir_r=yes
41276else
41277  echo "$as_me: failed program was:" >&5
41278sed 's/^/| /' conftest.$ac_ext >&5
41279
41280ac_cv_func_readdir_r=no
41281fi
41282rm -f conftest.err conftest.$ac_objext \
41283      conftest$ac_exeext conftest.$ac_ext
41284fi
41285echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
41286echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
41287if test $ac_cv_func_readdir_r = yes; then
41288   cat >>confdefs.h <<\_ACEOF
41289#define HAVE_READDIR_R 1
41290_ACEOF
41291
41292fi
41293
41294
41295
41296
41297    ac_ext=c
41298ac_cpp='$CPP $CPPFLAGS'
41299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41301ac_compiler_gnu=$ac_cv_c_compiler_gnu
41302
41303    echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41304echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
41305
41306    if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41307  echo $ECHO_N "(cached) $ECHO_C" >&6
41308else
41309
41310
41311################################################################
41312
41313ac_cv_func_which_gethostbyname_r=unknown
41314
41315#
41316# ONE ARGUMENT (sanity check)
41317#
41318
41319# This should fail, as there is no variant of gethostbyname_r() that takes
41320# a single argument. If it actually compiles, then we can assume that
41321# netdb.h is not declaring the function, and the compiler is thereby
41322# assuming an implicit prototype. In which case, we're out of luck.
41323#
41324cat >conftest.$ac_ext <<_ACEOF
41325/* confdefs.h.  */
41326_ACEOF
41327cat confdefs.h >>conftest.$ac_ext
41328cat >>conftest.$ac_ext <<_ACEOF
41329/* end confdefs.h.  */
41330#include <netdb.h>
41331int
41332main ()
41333{
41334
41335	    char *name = "www.gnu.org";
41336	    (void)gethostbyname_r(name) /* ; */
41337
41338  ;
41339  return 0;
41340}
41341_ACEOF
41342rm -f conftest.$ac_objext
41343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41344  (eval $ac_compile) 2>conftest.er1
41345  ac_status=$?
41346  grep -v '^ *+' conftest.er1 >conftest.err
41347  rm -f conftest.er1
41348  cat conftest.err >&5
41349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350  (exit $ac_status); } &&
41351	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
41352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41353  (eval $ac_try) 2>&5
41354  ac_status=$?
41355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41356  (exit $ac_status); }; } &&
41357	 { ac_try='test -s conftest.$ac_objext'
41358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41359  (eval $ac_try) 2>&5
41360  ac_status=$?
41361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362  (exit $ac_status); }; }; then
41363  ac_cv_func_which_gethostbyname_r=no
41364else
41365  echo "$as_me: failed program was:" >&5
41366sed 's/^/| /' conftest.$ac_ext >&5
41367
41368fi
41369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41370
41371#
41372# SIX ARGUMENTS
41373# (e.g. Linux)
41374#
41375
41376if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41377
41378cat >conftest.$ac_ext <<_ACEOF
41379/* confdefs.h.  */
41380_ACEOF
41381cat confdefs.h >>conftest.$ac_ext
41382cat >>conftest.$ac_ext <<_ACEOF
41383/* end confdefs.h.  */
41384#include <netdb.h>
41385int
41386main ()
41387{
41388
41389	    char *name = "www.gnu.org";
41390	    struct hostent ret, *retp;
41391	    char buf[1024];
41392	    int buflen = 1024;
41393	    int my_h_errno;
41394	    (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41395
41396  ;
41397  return 0;
41398}
41399_ACEOF
41400rm -f conftest.$ac_objext
41401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41402  (eval $ac_compile) 2>conftest.er1
41403  ac_status=$?
41404  grep -v '^ *+' conftest.er1 >conftest.err
41405  rm -f conftest.er1
41406  cat conftest.err >&5
41407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41408  (exit $ac_status); } &&
41409	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
41410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41411  (eval $ac_try) 2>&5
41412  ac_status=$?
41413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41414  (exit $ac_status); }; } &&
41415	 { ac_try='test -s conftest.$ac_objext'
41416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41417  (eval $ac_try) 2>&5
41418  ac_status=$?
41419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41420  (exit $ac_status); }; }; then
41421  ac_cv_func_which_gethostbyname_r=six
41422else
41423  echo "$as_me: failed program was:" >&5
41424sed 's/^/| /' conftest.$ac_ext >&5
41425
41426fi
41427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41428
41429fi
41430
41431#
41432# FIVE ARGUMENTS
41433# (e.g. Solaris)
41434#
41435
41436if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41437
41438cat >conftest.$ac_ext <<_ACEOF
41439/* confdefs.h.  */
41440_ACEOF
41441cat confdefs.h >>conftest.$ac_ext
41442cat >>conftest.$ac_ext <<_ACEOF
41443/* end confdefs.h.  */
41444#include <netdb.h>
41445int
41446main ()
41447{
41448
41449	    char *name = "www.gnu.org";
41450	    struct hostent ret;
41451	    char buf[1024];
41452	    int buflen = 1024;
41453	    int my_h_errno;
41454	    (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41455
41456  ;
41457  return 0;
41458}
41459_ACEOF
41460rm -f conftest.$ac_objext
41461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41462  (eval $ac_compile) 2>conftest.er1
41463  ac_status=$?
41464  grep -v '^ *+' conftest.er1 >conftest.err
41465  rm -f conftest.er1
41466  cat conftest.err >&5
41467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41468  (exit $ac_status); } &&
41469	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
41470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41471  (eval $ac_try) 2>&5
41472  ac_status=$?
41473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474  (exit $ac_status); }; } &&
41475	 { ac_try='test -s conftest.$ac_objext'
41476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41477  (eval $ac_try) 2>&5
41478  ac_status=$?
41479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41480  (exit $ac_status); }; }; then
41481  ac_cv_func_which_gethostbyname_r=five
41482else
41483  echo "$as_me: failed program was:" >&5
41484sed 's/^/| /' conftest.$ac_ext >&5
41485
41486fi
41487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41488
41489fi
41490
41491#
41492# THREE ARGUMENTS
41493# (e.g. AIX, HP-UX, Tru64)
41494#
41495
41496if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41497
41498cat >conftest.$ac_ext <<_ACEOF
41499/* confdefs.h.  */
41500_ACEOF
41501cat confdefs.h >>conftest.$ac_ext
41502cat >>conftest.$ac_ext <<_ACEOF
41503/* end confdefs.h.  */
41504#include <netdb.h>
41505int
41506main ()
41507{
41508
41509	    char *name = "www.gnu.org";
41510	    struct hostent ret;
41511	    struct hostent_data data;
41512	    (void)gethostbyname_r(name, &ret, &data) /* ; */
41513
41514  ;
41515  return 0;
41516}
41517_ACEOF
41518rm -f conftest.$ac_objext
41519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41520  (eval $ac_compile) 2>conftest.er1
41521  ac_status=$?
41522  grep -v '^ *+' conftest.er1 >conftest.err
41523  rm -f conftest.er1
41524  cat conftest.err >&5
41525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526  (exit $ac_status); } &&
41527	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
41528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41529  (eval $ac_try) 2>&5
41530  ac_status=$?
41531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532  (exit $ac_status); }; } &&
41533	 { ac_try='test -s conftest.$ac_objext'
41534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41535  (eval $ac_try) 2>&5
41536  ac_status=$?
41537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538  (exit $ac_status); }; }; then
41539  ac_cv_func_which_gethostbyname_r=three
41540else
41541  echo "$as_me: failed program was:" >&5
41542sed 's/^/| /' conftest.$ac_ext >&5
41543
41544fi
41545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41546
41547fi
41548
41549################################################################
41550
41551
41552fi
41553
41554case "$ac_cv_func_which_gethostbyname_r" in
41555    three)
41556    echo "$as_me:$LINENO: result: three" >&5
41557echo "${ECHO_T}three" >&6
41558    cat >>confdefs.h <<\_ACEOF
41559#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41560_ACEOF
41561
41562    ;;
41563
41564    five)
41565    echo "$as_me:$LINENO: result: five" >&5
41566echo "${ECHO_T}five" >&6
41567    cat >>confdefs.h <<\_ACEOF
41568#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41569_ACEOF
41570
41571    ;;
41572
41573    six)
41574    echo "$as_me:$LINENO: result: six" >&5
41575echo "${ECHO_T}six" >&6
41576    cat >>confdefs.h <<\_ACEOF
41577#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41578_ACEOF
41579
41580    ;;
41581
41582    no)
41583    echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41584echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41585    ;;
41586
41587    unknown)
41588    echo "$as_me:$LINENO: result: can't tell" >&5
41589echo "${ECHO_T}can't tell" >&6
41590    ;;
41591
41592    *)
41593    { { echo "$as_me:$LINENO: error: internal error" >&5
41594echo "$as_me: error: internal error" >&2;}
41595   { (exit 1); exit 1; }; }
41596    ;;
41597esac
41598
41599ac_ext=c
41600ac_cpp='$CPP $CPPFLAGS'
41601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41603ac_compiler_gnu=$ac_cv_c_compiler_gnu
41604
41605
41606
41607      if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41608              "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41609          echo "$as_me:$LINENO: checking for gethostbyname" >&5
41610echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41611if test "${ac_cv_func_gethostbyname+set}" = set; then
41612  echo $ECHO_N "(cached) $ECHO_C" >&6
41613else
41614  cat >conftest.$ac_ext <<_ACEOF
41615/* confdefs.h.  */
41616_ACEOF
41617cat confdefs.h >>conftest.$ac_ext
41618cat >>conftest.$ac_ext <<_ACEOF
41619/* end confdefs.h.  */
41620/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41621   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41622#define gethostbyname innocuous_gethostbyname
41623
41624/* System header to define __stub macros and hopefully few prototypes,
41625    which can conflict with char gethostbyname (); below.
41626    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41627    <limits.h> exists even on freestanding compilers.  */
41628
41629#ifdef __STDC__
41630# include <limits.h>
41631#else
41632# include <assert.h>
41633#endif
41634
41635#undef gethostbyname
41636
41637/* Override any gcc2 internal prototype to avoid an error.  */
41638#ifdef __cplusplus
41639extern "C"
41640{
41641#endif
41642/* We use char because int might match the return type of a gcc2
41643   builtin and then its argument prototype would still apply.  */
41644char gethostbyname ();
41645/* The GNU C library defines this for functions which it implements
41646    to always fail with ENOSYS.  Some functions are actually named
41647    something starting with __ and the normal name is an alias.  */
41648#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41649choke me
41650#else
41651char (*f) () = gethostbyname;
41652#endif
41653#ifdef __cplusplus
41654}
41655#endif
41656
41657int
41658main ()
41659{
41660return f != gethostbyname;
41661  ;
41662  return 0;
41663}
41664_ACEOF
41665rm -f conftest.$ac_objext conftest$ac_exeext
41666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41667  (eval $ac_link) 2>conftest.er1
41668  ac_status=$?
41669  grep -v '^ *+' conftest.er1 >conftest.err
41670  rm -f conftest.er1
41671  cat conftest.err >&5
41672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41673  (exit $ac_status); } &&
41674	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
41675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41676  (eval $ac_try) 2>&5
41677  ac_status=$?
41678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41679  (exit $ac_status); }; } &&
41680	 { ac_try='test -s conftest$ac_exeext'
41681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41682  (eval $ac_try) 2>&5
41683  ac_status=$?
41684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685  (exit $ac_status); }; }; then
41686  ac_cv_func_gethostbyname=yes
41687else
41688  echo "$as_me: failed program was:" >&5
41689sed 's/^/| /' conftest.$ac_ext >&5
41690
41691ac_cv_func_gethostbyname=no
41692fi
41693rm -f conftest.err conftest.$ac_objext \
41694      conftest$ac_exeext conftest.$ac_ext
41695fi
41696echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41697echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41698if test $ac_cv_func_gethostbyname = yes; then
41699   cat >>confdefs.h <<\_ACEOF
41700#define HAVE_GETHOSTBYNAME 1
41701_ACEOF
41702
41703fi
41704
41705      fi
41706
41707echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41708echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41709if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41710  echo $ECHO_N "(cached) $ECHO_C" >&6
41711else
41712
41713                ac_ext=cc
41714ac_cpp='$CXXCPP $CPPFLAGS'
41715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41718
41719
41720        cat >conftest.$ac_ext <<_ACEOF
41721/* confdefs.h.  */
41722_ACEOF
41723cat confdefs.h >>conftest.$ac_ext
41724cat >>conftest.$ac_ext <<_ACEOF
41725/* end confdefs.h.  */
41726#include <netdb.h>
41727int
41728main ()
41729{
41730
41731                char *name;
41732                char *proto;
41733                struct servent *se, *res;
41734                char buffer[2048];
41735                int buflen = 2048;
41736                (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41737
41738  ;
41739  return 0;
41740}
41741_ACEOF
41742rm -f conftest.$ac_objext
41743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41744  (eval $ac_compile) 2>conftest.er1
41745  ac_status=$?
41746  grep -v '^ *+' conftest.er1 >conftest.err
41747  rm -f conftest.er1
41748  cat conftest.err >&5
41749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750  (exit $ac_status); } &&
41751	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
41752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41753  (eval $ac_try) 2>&5
41754  ac_status=$?
41755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41756  (exit $ac_status); }; } &&
41757	 { ac_try='test -s conftest.$ac_objext'
41758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41759  (eval $ac_try) 2>&5
41760  ac_status=$?
41761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41762  (exit $ac_status); }; }; then
41763  ac_cv_func_which_getservbyname_r=six
41764else
41765  echo "$as_me: failed program was:" >&5
41766sed 's/^/| /' conftest.$ac_ext >&5
41767
41768
41769                cat >conftest.$ac_ext <<_ACEOF
41770/* confdefs.h.  */
41771_ACEOF
41772cat confdefs.h >>conftest.$ac_ext
41773cat >>conftest.$ac_ext <<_ACEOF
41774/* end confdefs.h.  */
41775#include <netdb.h>
41776int
41777main ()
41778{
41779
41780                        char *name;
41781                        char *proto;
41782                        struct servent *se;
41783                        char buffer[2048];
41784                        int buflen = 2048;
41785                        (void) getservbyname_r(name, proto, se, buffer, buflen)
41786
41787  ;
41788  return 0;
41789}
41790_ACEOF
41791rm -f conftest.$ac_objext
41792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41793  (eval $ac_compile) 2>conftest.er1
41794  ac_status=$?
41795  grep -v '^ *+' conftest.er1 >conftest.err
41796  rm -f conftest.er1
41797  cat conftest.err >&5
41798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41799  (exit $ac_status); } &&
41800	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
41801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41802  (eval $ac_try) 2>&5
41803  ac_status=$?
41804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41805  (exit $ac_status); }; } &&
41806	 { ac_try='test -s conftest.$ac_objext'
41807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41808  (eval $ac_try) 2>&5
41809  ac_status=$?
41810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41811  (exit $ac_status); }; }; then
41812  ac_cv_func_which_getservbyname_r=five
41813else
41814  echo "$as_me: failed program was:" >&5
41815sed 's/^/| /' conftest.$ac_ext >&5
41816
41817
41818                        cat >conftest.$ac_ext <<_ACEOF
41819/* confdefs.h.  */
41820_ACEOF
41821cat confdefs.h >>conftest.$ac_ext
41822cat >>conftest.$ac_ext <<_ACEOF
41823/* end confdefs.h.  */
41824#include <netdb.h>
41825int
41826main ()
41827{
41828
41829                                char *name;
41830                                char *proto;
41831                                struct servent *se;
41832                                struct servent_data data;
41833                                (void) getservbyname_r(name, proto, se, &data);
41834
41835  ;
41836  return 0;
41837}
41838_ACEOF
41839rm -f conftest.$ac_objext
41840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41841  (eval $ac_compile) 2>conftest.er1
41842  ac_status=$?
41843  grep -v '^ *+' conftest.er1 >conftest.err
41844  rm -f conftest.er1
41845  cat conftest.err >&5
41846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847  (exit $ac_status); } &&
41848	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
41849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41850  (eval $ac_try) 2>&5
41851  ac_status=$?
41852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853  (exit $ac_status); }; } &&
41854	 { ac_try='test -s conftest.$ac_objext'
41855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41856  (eval $ac_try) 2>&5
41857  ac_status=$?
41858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41859  (exit $ac_status); }; }; then
41860  ac_cv_func_which_getservbyname_r=four
41861else
41862  echo "$as_me: failed program was:" >&5
41863sed 's/^/| /' conftest.$ac_ext >&5
41864
41865ac_cv_func_which_getservbyname_r=no
41866
41867fi
41868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41869
41870
41871fi
41872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41873
41874
41875fi
41876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41877        ac_ext=c
41878ac_cpp='$CPP $CPPFLAGS'
41879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41881ac_compiler_gnu=$ac_cv_c_compiler_gnu
41882
41883
41884
41885fi
41886echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41887echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
41888
41889if test $ac_cv_func_which_getservbyname_r = six; then
41890  cat >>confdefs.h <<\_ACEOF
41891#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41892_ACEOF
41893
41894elif test $ac_cv_func_which_getservbyname_r = five; then
41895  cat >>confdefs.h <<\_ACEOF
41896#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41897_ACEOF
41898
41899elif test $ac_cv_func_which_getservbyname_r = four; then
41900  cat >>confdefs.h <<\_ACEOF
41901#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41902_ACEOF
41903
41904fi
41905
41906
41907      if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41908              "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41909
41910for ac_func in getservbyname
41911do
41912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41913echo "$as_me:$LINENO: checking for $ac_func" >&5
41914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41915if eval "test \"\${$as_ac_var+set}\" = set"; then
41916  echo $ECHO_N "(cached) $ECHO_C" >&6
41917else
41918  cat >conftest.$ac_ext <<_ACEOF
41919/* confdefs.h.  */
41920_ACEOF
41921cat confdefs.h >>conftest.$ac_ext
41922cat >>conftest.$ac_ext <<_ACEOF
41923/* end confdefs.h.  */
41924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41925   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41926#define $ac_func innocuous_$ac_func
41927
41928/* System header to define __stub macros and hopefully few prototypes,
41929    which can conflict with char $ac_func (); below.
41930    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41931    <limits.h> exists even on freestanding compilers.  */
41932
41933#ifdef __STDC__
41934# include <limits.h>
41935#else
41936# include <assert.h>
41937#endif
41938
41939#undef $ac_func
41940
41941/* Override any gcc2 internal prototype to avoid an error.  */
41942#ifdef __cplusplus
41943extern "C"
41944{
41945#endif
41946/* We use char because int might match the return type of a gcc2
41947   builtin and then its argument prototype would still apply.  */
41948char $ac_func ();
41949/* The GNU C library defines this for functions which it implements
41950    to always fail with ENOSYS.  Some functions are actually named
41951    something starting with __ and the normal name is an alias.  */
41952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41953choke me
41954#else
41955char (*f) () = $ac_func;
41956#endif
41957#ifdef __cplusplus
41958}
41959#endif
41960
41961int
41962main ()
41963{
41964return f != $ac_func;
41965  ;
41966  return 0;
41967}
41968_ACEOF
41969rm -f conftest.$ac_objext conftest$ac_exeext
41970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41971  (eval $ac_link) 2>conftest.er1
41972  ac_status=$?
41973  grep -v '^ *+' conftest.er1 >conftest.err
41974  rm -f conftest.er1
41975  cat conftest.err >&5
41976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41977  (exit $ac_status); } &&
41978	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
41979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41980  (eval $ac_try) 2>&5
41981  ac_status=$?
41982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983  (exit $ac_status); }; } &&
41984	 { ac_try='test -s conftest$ac_exeext'
41985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41986  (eval $ac_try) 2>&5
41987  ac_status=$?
41988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989  (exit $ac_status); }; }; then
41990  eval "$as_ac_var=yes"
41991else
41992  echo "$as_me: failed program was:" >&5
41993sed 's/^/| /' conftest.$ac_ext >&5
41994
41995eval "$as_ac_var=no"
41996fi
41997rm -f conftest.err conftest.$ac_objext \
41998      conftest$ac_exeext conftest.$ac_ext
41999fi
42000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42002if test `eval echo '${'$as_ac_var'}'` = yes; then
42003  cat >>confdefs.h <<_ACEOF
42004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42005_ACEOF
42006  cat >>confdefs.h <<\_ACEOF
42007#define HAVE_GETSERVBYNAME 1
42008_ACEOF
42009
42010fi
42011done
42012
42013      fi
42014
42015if test "$wxUSE_THREADS" = "yes"; then
42016  cat >>confdefs.h <<\_ACEOF
42017#define wxUSE_THREADS 1
42018_ACEOF
42019
42020
42021  SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42022else
42023      if test "$wx_cv_func_strtok_r" = "yes"; then
42024    echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42025echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
42026    if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42027        WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42028        echo "$as_me:$LINENO: result: yes" >&5
42029echo "${ECHO_T}yes" >&6
42030    else
42031        echo "$as_me:$LINENO: result: no" >&5
42032echo "${ECHO_T}no" >&6
42033    fi
42034  fi
42035fi
42036
42037if test "$WXGTK20" = 1 ; then
42038  cat >>confdefs.h <<_ACEOF
42039#define __WXGTK20__ $WXGTK20
42040_ACEOF
42041
42042  WXGTK12=1
42043fi
42044
42045if test "$WXGTK12" = 1 ; then
42046  cat >>confdefs.h <<_ACEOF
42047#define __WXGTK12__ $WXGTK12
42048_ACEOF
42049
42050fi
42051
42052if test "$WXGTK127" = 1 ; then
42053  cat >>confdefs.h <<_ACEOF
42054#define __WXGTK127__ $WXGTK127
42055_ACEOF
42056
42057fi
42058
42059if test "$WXGPE" = 1 ; then
42060  cat >>confdefs.h <<_ACEOF
42061#define __WXGPE__ $WXGPE
42062_ACEOF
42063
42064fi
42065
42066DEBUG_CFLAGS=
42067if test "$wxUSE_DEBUG_INFO" = "yes" ; then
42068    DEBUG_CFLAGS="-g"
42069    wxUSE_OPTIMISE=no
42070fi
42071
42072if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42073    wxUSE_DEBUG_INFO=yes
42074    if test "$GCC" = yes; then
42075        DEBUG_CFLAGS="-ggdb"
42076    fi
42077fi
42078
42079if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
42080    cat >>confdefs.h <<\_ACEOF
42081#define WXDEBUG 1
42082_ACEOF
42083
42084    WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
42085else
42086    if test "$wxUSE_GTK" = 1 ; then
42087        if test "x$wxGTK_VERSION" = "x1" ; then
42088            CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42089        fi
42090    fi
42091fi
42092
42093if test "$wxUSE_MEM_TRACING" = "yes" ; then
42094    cat >>confdefs.h <<\_ACEOF
42095#define wxUSE_MEMORY_TRACING 1
42096_ACEOF
42097
42098    cat >>confdefs.h <<\_ACEOF
42099#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42100_ACEOF
42101
42102    cat >>confdefs.h <<\_ACEOF
42103#define wxUSE_DEBUG_NEW_ALWAYS 1
42104_ACEOF
42105
42106    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42107fi
42108
42109if test "$wxUSE_DMALLOC" = "yes" ; then
42110    DMALLOC_LIBS="-ldmallocthcxx"
42111fi
42112
42113PROFILE_FLAGS=
42114if test "$wxUSE_PROFILE" = "yes" ; then
42115    PROFILE_FLAGS=" -pg"
42116fi
42117
42118if test "$GCC" = "yes" ; then
42119    if test "$wxUSE_NO_RTTI" = "yes" ; then
42120        WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
42121    fi
42122    if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42123        WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42124    fi
42125    if test "$wxUSE_PERMISSIVE" = "yes" ; then
42126        WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42127    fi
42128
42129                                                case "${host}" in
42130      powerpc*-*-aix* )
42131        WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42132        ;;
42133      *-hppa* )
42134        WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42135        ;;
42136    esac
42137fi
42138
42139OPTIMISE_CFLAGS=
42140if test "$wxUSE_OPTIMISE" = "no" ; then
42141    if test "$GCC" = yes ; then
42142                        OPTIMISE_CFLAGS="-O0"
42143    fi
42144else
42145    if test "$GCC" = yes ; then
42146        case "${host}" in
42147            *-pc-os2_emx | *-pc-os2-emx )
42148                                                OPTIMISE_CFLAGS="-O2"
42149            ;;
42150            *)
42151                                                                OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42152            ;;
42153        esac
42154    else
42155        OPTIMISE_CFLAGS="-O"
42156    fi
42157fi
42158OPTIMISE_CFLAGS=
42159
42160if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
42161    cat >>confdefs.h <<\_ACEOF
42162#define WXWIN_COMPATIBILITY_2_4 1
42163_ACEOF
42164
42165
42166    WXWIN_COMPATIBILITY_2_6="yes"
42167fi
42168
42169if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
42170    cat >>confdefs.h <<\_ACEOF
42171#define WXWIN_COMPATIBILITY_2_6 1
42172_ACEOF
42173
42174fi
42175
42176
42177if test "$wxUSE_GUI" = "yes"; then
42178    cat >>confdefs.h <<\_ACEOF
42179#define wxUSE_GUI 1
42180_ACEOF
42181
42182
42183                                            fi
42184
42185
42186if test "$wxUSE_UNIX" = "yes"; then
42187  cat >>confdefs.h <<\_ACEOF
42188#define wxUSE_UNIX 1
42189_ACEOF
42190
42191fi
42192
42193
42194if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42195
42196    HAVE_DL_FUNCS=0
42197    HAVE_SHL_FUNCS=0
42198    if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42199        if test "$USE_DOS" = 1; then
42200            HAVE_DL_FUNCS=0
42201        else
42202
42203for ac_func in dlopen
42204do
42205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42206echo "$as_me:$LINENO: checking for $ac_func" >&5
42207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42208if eval "test \"\${$as_ac_var+set}\" = set"; then
42209  echo $ECHO_N "(cached) $ECHO_C" >&6
42210else
42211  cat >conftest.$ac_ext <<_ACEOF
42212/* confdefs.h.  */
42213_ACEOF
42214cat confdefs.h >>conftest.$ac_ext
42215cat >>conftest.$ac_ext <<_ACEOF
42216/* end confdefs.h.  */
42217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42218   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42219#define $ac_func innocuous_$ac_func
42220
42221/* System header to define __stub macros and hopefully few prototypes,
42222    which can conflict with char $ac_func (); below.
42223    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42224    <limits.h> exists even on freestanding compilers.  */
42225
42226#ifdef __STDC__
42227# include <limits.h>
42228#else
42229# include <assert.h>
42230#endif
42231
42232#undef $ac_func
42233
42234/* Override any gcc2 internal prototype to avoid an error.  */
42235#ifdef __cplusplus
42236extern "C"
42237{
42238#endif
42239/* We use char because int might match the return type of a gcc2
42240   builtin and then its argument prototype would still apply.  */
42241char $ac_func ();
42242/* The GNU C library defines this for functions which it implements
42243    to always fail with ENOSYS.  Some functions are actually named
42244    something starting with __ and the normal name is an alias.  */
42245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42246choke me
42247#else
42248char (*f) () = $ac_func;
42249#endif
42250#ifdef __cplusplus
42251}
42252#endif
42253
42254int
42255main ()
42256{
42257return f != $ac_func;
42258  ;
42259  return 0;
42260}
42261_ACEOF
42262rm -f conftest.$ac_objext conftest$ac_exeext
42263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42264  (eval $ac_link) 2>conftest.er1
42265  ac_status=$?
42266  grep -v '^ *+' conftest.er1 >conftest.err
42267  rm -f conftest.er1
42268  cat conftest.err >&5
42269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42270  (exit $ac_status); } &&
42271	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
42272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42273  (eval $ac_try) 2>&5
42274  ac_status=$?
42275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42276  (exit $ac_status); }; } &&
42277	 { ac_try='test -s conftest$ac_exeext'
42278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42279  (eval $ac_try) 2>&5
42280  ac_status=$?
42281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42282  (exit $ac_status); }; }; then
42283  eval "$as_ac_var=yes"
42284else
42285  echo "$as_me: failed program was:" >&5
42286sed 's/^/| /' conftest.$ac_ext >&5
42287
42288eval "$as_ac_var=no"
42289fi
42290rm -f conftest.err conftest.$ac_objext \
42291      conftest$ac_exeext conftest.$ac_ext
42292fi
42293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42294echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42295if test `eval echo '${'$as_ac_var'}'` = yes; then
42296  cat >>confdefs.h <<_ACEOF
42297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42298_ACEOF
42299
42300                cat >>confdefs.h <<\_ACEOF
42301#define HAVE_DLOPEN 1
42302_ACEOF
42303
42304                HAVE_DL_FUNCS=1
42305
42306else
42307
42308                echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42309echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
42310if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42311  echo $ECHO_N "(cached) $ECHO_C" >&6
42312else
42313  ac_check_lib_save_LIBS=$LIBS
42314LIBS="-ldl  $LIBS"
42315cat >conftest.$ac_ext <<_ACEOF
42316/* confdefs.h.  */
42317_ACEOF
42318cat confdefs.h >>conftest.$ac_ext
42319cat >>conftest.$ac_ext <<_ACEOF
42320/* end confdefs.h.  */
42321
42322/* Override any gcc2 internal prototype to avoid an error.  */
42323#ifdef __cplusplus
42324extern "C"
42325#endif
42326/* We use char because int might match the return type of a gcc2
42327   builtin and then its argument prototype would still apply.  */
42328char dlopen ();
42329int
42330main ()
42331{
42332dlopen ();
42333  ;
42334  return 0;
42335}
42336_ACEOF
42337rm -f conftest.$ac_objext conftest$ac_exeext
42338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42339  (eval $ac_link) 2>conftest.er1
42340  ac_status=$?
42341  grep -v '^ *+' conftest.er1 >conftest.err
42342  rm -f conftest.er1
42343  cat conftest.err >&5
42344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42345  (exit $ac_status); } &&
42346	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
42347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42348  (eval $ac_try) 2>&5
42349  ac_status=$?
42350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42351  (exit $ac_status); }; } &&
42352	 { ac_try='test -s conftest$ac_exeext'
42353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42354  (eval $ac_try) 2>&5
42355  ac_status=$?
42356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42357  (exit $ac_status); }; }; then
42358  ac_cv_lib_dl_dlopen=yes
42359else
42360  echo "$as_me: failed program was:" >&5
42361sed 's/^/| /' conftest.$ac_ext >&5
42362
42363ac_cv_lib_dl_dlopen=no
42364fi
42365rm -f conftest.err conftest.$ac_objext \
42366      conftest$ac_exeext conftest.$ac_ext
42367LIBS=$ac_check_lib_save_LIBS
42368fi
42369echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42370echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
42371if test $ac_cv_lib_dl_dlopen = yes; then
42372
42373                                cat >>confdefs.h <<\_ACEOF
42374#define HAVE_DLOPEN 1
42375_ACEOF
42376
42377                                HAVE_DL_FUNCS=1
42378                                DL_LINK=" -ldl$DL_LINK"
42379
42380else
42381
42382
42383for ac_func in shl_load
42384do
42385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42386echo "$as_me:$LINENO: checking for $ac_func" >&5
42387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42388if eval "test \"\${$as_ac_var+set}\" = set"; then
42389  echo $ECHO_N "(cached) $ECHO_C" >&6
42390else
42391  cat >conftest.$ac_ext <<_ACEOF
42392/* confdefs.h.  */
42393_ACEOF
42394cat confdefs.h >>conftest.$ac_ext
42395cat >>conftest.$ac_ext <<_ACEOF
42396/* end confdefs.h.  */
42397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42398   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42399#define $ac_func innocuous_$ac_func
42400
42401/* System header to define __stub macros and hopefully few prototypes,
42402    which can conflict with char $ac_func (); below.
42403    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42404    <limits.h> exists even on freestanding compilers.  */
42405
42406#ifdef __STDC__
42407# include <limits.h>
42408#else
42409# include <assert.h>
42410#endif
42411
42412#undef $ac_func
42413
42414/* Override any gcc2 internal prototype to avoid an error.  */
42415#ifdef __cplusplus
42416extern "C"
42417{
42418#endif
42419/* We use char because int might match the return type of a gcc2
42420   builtin and then its argument prototype would still apply.  */
42421char $ac_func ();
42422/* The GNU C library defines this for functions which it implements
42423    to always fail with ENOSYS.  Some functions are actually named
42424    something starting with __ and the normal name is an alias.  */
42425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42426choke me
42427#else
42428char (*f) () = $ac_func;
42429#endif
42430#ifdef __cplusplus
42431}
42432#endif
42433
42434int
42435main ()
42436{
42437return f != $ac_func;
42438  ;
42439  return 0;
42440}
42441_ACEOF
42442rm -f conftest.$ac_objext conftest$ac_exeext
42443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42444  (eval $ac_link) 2>conftest.er1
42445  ac_status=$?
42446  grep -v '^ *+' conftest.er1 >conftest.err
42447  rm -f conftest.er1
42448  cat conftest.err >&5
42449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42450  (exit $ac_status); } &&
42451	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
42452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42453  (eval $ac_try) 2>&5
42454  ac_status=$?
42455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42456  (exit $ac_status); }; } &&
42457	 { ac_try='test -s conftest$ac_exeext'
42458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42459  (eval $ac_try) 2>&5
42460  ac_status=$?
42461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462  (exit $ac_status); }; }; then
42463  eval "$as_ac_var=yes"
42464else
42465  echo "$as_me: failed program was:" >&5
42466sed 's/^/| /' conftest.$ac_ext >&5
42467
42468eval "$as_ac_var=no"
42469fi
42470rm -f conftest.err conftest.$ac_objext \
42471      conftest$ac_exeext conftest.$ac_ext
42472fi
42473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42475if test `eval echo '${'$as_ac_var'}'` = yes; then
42476  cat >>confdefs.h <<_ACEOF
42477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42478_ACEOF
42479
42480                                                cat >>confdefs.h <<\_ACEOF
42481#define HAVE_SHL_LOAD 1
42482_ACEOF
42483
42484                                                HAVE_SHL_FUNCS=1
42485
42486else
42487
42488                                                echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42489echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
42490if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42491  echo $ECHO_N "(cached) $ECHO_C" >&6
42492else
42493  ac_check_lib_save_LIBS=$LIBS
42494LIBS="-lshl_load  $LIBS"
42495cat >conftest.$ac_ext <<_ACEOF
42496/* confdefs.h.  */
42497_ACEOF
42498cat confdefs.h >>conftest.$ac_ext
42499cat >>conftest.$ac_ext <<_ACEOF
42500/* end confdefs.h.  */
42501
42502/* Override any gcc2 internal prototype to avoid an error.  */
42503#ifdef __cplusplus
42504extern "C"
42505#endif
42506/* We use char because int might match the return type of a gcc2
42507   builtin and then its argument prototype would still apply.  */
42508char dld ();
42509int
42510main ()
42511{
42512dld ();
42513  ;
42514  return 0;
42515}
42516_ACEOF
42517rm -f conftest.$ac_objext conftest$ac_exeext
42518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42519  (eval $ac_link) 2>conftest.er1
42520  ac_status=$?
42521  grep -v '^ *+' conftest.er1 >conftest.err
42522  rm -f conftest.er1
42523  cat conftest.err >&5
42524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42525  (exit $ac_status); } &&
42526	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
42527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42528  (eval $ac_try) 2>&5
42529  ac_status=$?
42530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531  (exit $ac_status); }; } &&
42532	 { ac_try='test -s conftest$ac_exeext'
42533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42534  (eval $ac_try) 2>&5
42535  ac_status=$?
42536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537  (exit $ac_status); }; }; then
42538  ac_cv_lib_shl_load_dld=yes
42539else
42540  echo "$as_me: failed program was:" >&5
42541sed 's/^/| /' conftest.$ac_ext >&5
42542
42543ac_cv_lib_shl_load_dld=no
42544fi
42545rm -f conftest.err conftest.$ac_objext \
42546      conftest$ac_exeext conftest.$ac_ext
42547LIBS=$ac_check_lib_save_LIBS
42548fi
42549echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42550echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42551if test $ac_cv_lib_shl_load_dld = yes; then
42552
42553                                                                HAVE_SHL_FUNCS=1
42554                                                                DL_LINK=" -ldld$DL_LINK"
42555
42556fi
42557
42558
42559fi
42560done
42561
42562
42563fi
42564
42565
42566fi
42567done
42568
42569
42570                        if test "$HAVE_DL_FUNCS" = 1; then
42571
42572for ac_func in dlerror
42573do
42574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42575echo "$as_me:$LINENO: checking for $ac_func" >&5
42576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42577if eval "test \"\${$as_ac_var+set}\" = set"; then
42578  echo $ECHO_N "(cached) $ECHO_C" >&6
42579else
42580  cat >conftest.$ac_ext <<_ACEOF
42581/* confdefs.h.  */
42582_ACEOF
42583cat confdefs.h >>conftest.$ac_ext
42584cat >>conftest.$ac_ext <<_ACEOF
42585/* end confdefs.h.  */
42586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42587   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42588#define $ac_func innocuous_$ac_func
42589
42590/* System header to define __stub macros and hopefully few prototypes,
42591    which can conflict with char $ac_func (); below.
42592    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42593    <limits.h> exists even on freestanding compilers.  */
42594
42595#ifdef __STDC__
42596# include <limits.h>
42597#else
42598# include <assert.h>
42599#endif
42600
42601#undef $ac_func
42602
42603/* Override any gcc2 internal prototype to avoid an error.  */
42604#ifdef __cplusplus
42605extern "C"
42606{
42607#endif
42608/* We use char because int might match the return type of a gcc2
42609   builtin and then its argument prototype would still apply.  */
42610char $ac_func ();
42611/* The GNU C library defines this for functions which it implements
42612    to always fail with ENOSYS.  Some functions are actually named
42613    something starting with __ and the normal name is an alias.  */
42614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42615choke me
42616#else
42617char (*f) () = $ac_func;
42618#endif
42619#ifdef __cplusplus
42620}
42621#endif
42622
42623int
42624main ()
42625{
42626return f != $ac_func;
42627  ;
42628  return 0;
42629}
42630_ACEOF
42631rm -f conftest.$ac_objext conftest$ac_exeext
42632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42633  (eval $ac_link) 2>conftest.er1
42634  ac_status=$?
42635  grep -v '^ *+' conftest.er1 >conftest.err
42636  rm -f conftest.er1
42637  cat conftest.err >&5
42638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42639  (exit $ac_status); } &&
42640	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
42641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42642  (eval $ac_try) 2>&5
42643  ac_status=$?
42644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645  (exit $ac_status); }; } &&
42646	 { ac_try='test -s conftest$ac_exeext'
42647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42648  (eval $ac_try) 2>&5
42649  ac_status=$?
42650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651  (exit $ac_status); }; }; then
42652  eval "$as_ac_var=yes"
42653else
42654  echo "$as_me: failed program was:" >&5
42655sed 's/^/| /' conftest.$ac_ext >&5
42656
42657eval "$as_ac_var=no"
42658fi
42659rm -f conftest.err conftest.$ac_objext \
42660      conftest$ac_exeext conftest.$ac_ext
42661fi
42662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42663echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42664if test `eval echo '${'$as_ac_var'}'` = yes; then
42665  cat >>confdefs.h <<_ACEOF
42666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42667_ACEOF
42668 cat >>confdefs.h <<\_ACEOF
42669#define HAVE_DLERROR 1
42670_ACEOF
42671
42672else
42673
42674                        echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42675echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42676if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42677  echo $ECHO_N "(cached) $ECHO_C" >&6
42678else
42679  ac_check_lib_save_LIBS=$LIBS
42680LIBS="-ldl  $LIBS"
42681cat >conftest.$ac_ext <<_ACEOF
42682/* confdefs.h.  */
42683_ACEOF
42684cat confdefs.h >>conftest.$ac_ext
42685cat >>conftest.$ac_ext <<_ACEOF
42686/* end confdefs.h.  */
42687
42688/* Override any gcc2 internal prototype to avoid an error.  */
42689#ifdef __cplusplus
42690extern "C"
42691#endif
42692/* We use char because int might match the return type of a gcc2
42693   builtin and then its argument prototype would still apply.  */
42694char dlerror ();
42695int
42696main ()
42697{
42698dlerror ();
42699  ;
42700  return 0;
42701}
42702_ACEOF
42703rm -f conftest.$ac_objext conftest$ac_exeext
42704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42705  (eval $ac_link) 2>conftest.er1
42706  ac_status=$?
42707  grep -v '^ *+' conftest.er1 >conftest.err
42708  rm -f conftest.er1
42709  cat conftest.err >&5
42710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42711  (exit $ac_status); } &&
42712	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
42713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42714  (eval $ac_try) 2>&5
42715  ac_status=$?
42716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42717  (exit $ac_status); }; } &&
42718	 { ac_try='test -s conftest$ac_exeext'
42719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42720  (eval $ac_try) 2>&5
42721  ac_status=$?
42722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42723  (exit $ac_status); }; }; then
42724  ac_cv_lib_dl_dlerror=yes
42725else
42726  echo "$as_me: failed program was:" >&5
42727sed 's/^/| /' conftest.$ac_ext >&5
42728
42729ac_cv_lib_dl_dlerror=no
42730fi
42731rm -f conftest.err conftest.$ac_objext \
42732      conftest$ac_exeext conftest.$ac_ext
42733LIBS=$ac_check_lib_save_LIBS
42734fi
42735echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42736echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42737if test $ac_cv_lib_dl_dlerror = yes; then
42738  cat >>confdefs.h <<\_ACEOF
42739#define HAVE_DLERROR 1
42740_ACEOF
42741
42742fi
42743
42744
42745
42746fi
42747done
42748
42749            fi
42750        fi
42751
42752                if test "$USE_DARWIN" = 1; then
42753                        HAVE_DL_FUNCS=1
42754        fi
42755
42756        if test "$HAVE_DL_FUNCS" = 0; then
42757            if test "$HAVE_SHL_FUNCS" = 0; then
42758              if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42759                  { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42760echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42761                  wxUSE_DYNAMIC_LOADER=no
42762                  wxUSE_DYNLIB_CLASS=no
42763              else
42764                  { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42765echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42766              fi
42767            fi
42768        fi
42769    fi
42770fi
42771
42772if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42773    cat >>confdefs.h <<\_ACEOF
42774#define wxUSE_DYNAMIC_LOADER 1
42775_ACEOF
42776
42777fi
42778if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42779    cat >>confdefs.h <<\_ACEOF
42780#define wxUSE_DYNLIB_CLASS 1
42781_ACEOF
42782
42783fi
42784
42785
42786
42787if test "$wxUSE_PLUGINS" = "yes" ; then
42788    if test "$wxUSE_SHARED" = "no" ; then
42789        { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42790echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42791        wxUSE_PLUGINS=no
42792    fi
42793    if test "$wxUSE_MONOLITHIC" = "yes" ; then
42794        { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42795echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42796        wxUSE_PLUGINS=no
42797    fi
42798    if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42799        { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42800echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42801        wxUSE_PLUGINS=no
42802    fi
42803    if test "$wxUSE_PLUGINS" = "yes" ; then
42804        cat >>confdefs.h <<\_ACEOF
42805#define wxUSE_PLUGINS 1
42806_ACEOF
42807
42808    fi
42809fi
42810
42811
42812if test "$wxUSE_STL" = "yes"; then
42813  cat >>confdefs.h <<\_ACEOF
42814#define wxUSE_STL 1
42815_ACEOF
42816
42817fi
42818
42819if test "$wxUSE_APPLE_IEEE" = "yes"; then
42820  cat >>confdefs.h <<\_ACEOF
42821#define wxUSE_APPLE_IEEE 1
42822_ACEOF
42823
42824fi
42825
42826if test "$wxUSE_TIMER" = "yes"; then
42827  cat >>confdefs.h <<\_ACEOF
42828#define wxUSE_TIMER 1
42829_ACEOF
42830
42831fi
42832
42833if test "$USE_UNIX" = "1" ; then
42834        if test "$wxUSE_MGL" != 1; then
42835                                echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42836echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
42837if test "${ac_cv_header_sys_soundcard+set}" = set; then
42838  echo $ECHO_N "(cached) $ECHO_C" >&6
42839else
42840
42841            cat >conftest.$ac_ext <<_ACEOF
42842/* confdefs.h.  */
42843_ACEOF
42844cat confdefs.h >>conftest.$ac_ext
42845cat >>conftest.$ac_ext <<_ACEOF
42846/* end confdefs.h.  */
42847
42848                    #include <sys/ioctl.h>
42849                    #include <sys/soundcard.h>
42850
42851int
42852main ()
42853{
42854
42855                    ioctl(0, SNDCTL_DSP_SPEED, 0);
42856
42857  ;
42858  return 0;
42859}
42860_ACEOF
42861rm -f conftest.$ac_objext conftest$ac_exeext
42862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42863  (eval $ac_link) 2>conftest.er1
42864  ac_status=$?
42865  grep -v '^ *+' conftest.er1 >conftest.err
42866  rm -f conftest.er1
42867  cat conftest.err >&5
42868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869  (exit $ac_status); } &&
42870	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
42871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42872  (eval $ac_try) 2>&5
42873  ac_status=$?
42874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42875  (exit $ac_status); }; } &&
42876	 { ac_try='test -s conftest$ac_exeext'
42877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42878  (eval $ac_try) 2>&5
42879  ac_status=$?
42880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881  (exit $ac_status); }; }; then
42882  ac_cv_header_sys_soundcard=yes
42883else
42884  echo "$as_me: failed program was:" >&5
42885sed 's/^/| /' conftest.$ac_ext >&5
42886
42887
42888                    saveLibs="$LIBS"
42889                    LIBS="$saveLibs -lossaudio"
42890                    cat >conftest.$ac_ext <<_ACEOF
42891/* confdefs.h.  */
42892_ACEOF
42893cat confdefs.h >>conftest.$ac_ext
42894cat >>conftest.$ac_ext <<_ACEOF
42895/* end confdefs.h.  */
42896
42897                            #include <sys/ioctl.h>
42898                            #include <sys/soundcard.h>
42899
42900int
42901main ()
42902{
42903
42904                            ioctl(0, SNDCTL_DSP_SPEED, 0);
42905
42906  ;
42907  return 0;
42908}
42909_ACEOF
42910rm -f conftest.$ac_objext conftest$ac_exeext
42911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42912  (eval $ac_link) 2>conftest.er1
42913  ac_status=$?
42914  grep -v '^ *+' conftest.er1 >conftest.err
42915  rm -f conftest.er1
42916  cat conftest.err >&5
42917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42918  (exit $ac_status); } &&
42919	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
42920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42921  (eval $ac_try) 2>&5
42922  ac_status=$?
42923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42924  (exit $ac_status); }; } &&
42925	 { ac_try='test -s conftest$ac_exeext'
42926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42927  (eval $ac_try) 2>&5
42928  ac_status=$?
42929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42930  (exit $ac_status); }; }; then
42931  ac_cv_header_sys_soundcard=yes
42932else
42933  echo "$as_me: failed program was:" >&5
42934sed 's/^/| /' conftest.$ac_ext >&5
42935
42936
42937                            LIBS="$saveLibs"
42938                            ac_cv_header_sys_soundcard=no
42939
42940
42941fi
42942rm -f conftest.err conftest.$ac_objext \
42943      conftest$ac_exeext conftest.$ac_ext
42944
42945
42946fi
42947rm -f conftest.err conftest.$ac_objext \
42948      conftest$ac_exeext conftest.$ac_ext
42949
42950fi
42951echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42952echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
42953    fi
42954
42955    if test "$ac_cv_header_sys_soundcard" = "yes"; then
42956        cat >>confdefs.h <<\_ACEOF
42957#define HAVE_SYS_SOUNDCARD_H 1
42958_ACEOF
42959
42960    else
42961        DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42962    fi
42963fi
42964
42965WITH_PLUGIN_SDL=0
42966if test "$wxUSE_SOUND" = "yes"; then
42967  if test "$USE_UNIX" = "1" ; then
42968    if test "$wxUSE_LIBSDL" != "no"; then
42969
42970# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42971if test "${with_sdl_prefix+set}" = set; then
42972  withval="$with_sdl_prefix"
42973  sdl_prefix="$withval"
42974else
42975  sdl_prefix=""
42976fi;
42977
42978# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42979if test "${with_sdl_exec_prefix+set}" = set; then
42980  withval="$with_sdl_exec_prefix"
42981  sdl_exec_prefix="$withval"
42982else
42983  sdl_exec_prefix=""
42984fi;
42985# Check whether --enable-sdltest or --disable-sdltest was given.
42986if test "${enable_sdltest+set}" = set; then
42987  enableval="$enable_sdltest"
42988
42989else
42990  enable_sdltest=yes
42991fi;
42992
42993  if test x$sdl_exec_prefix != x ; then
42994    sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42995    if test x${SDL_CONFIG+set} != xset ; then
42996      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42997    fi
42998  fi
42999  if test x$sdl_prefix != x ; then
43000    sdl_args="$sdl_args --prefix=$sdl_prefix"
43001    if test x${SDL_CONFIG+set} != xset ; then
43002      SDL_CONFIG=$sdl_prefix/bin/sdl-config
43003    fi
43004  fi
43005
43006  if test "x$prefix" != xNONE; then
43007    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43008  fi
43009  # Extract the first word of "sdl-config", so it can be a program name with args.
43010set dummy sdl-config; ac_word=$2
43011echo "$as_me:$LINENO: checking for $ac_word" >&5
43012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43013if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43014  echo $ECHO_N "(cached) $ECHO_C" >&6
43015else
43016  case $SDL_CONFIG in
43017  [\\/]* | ?:[\\/]*)
43018  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43019  ;;
43020  *)
43021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43022for as_dir in $PATH
43023do
43024  IFS=$as_save_IFS
43025  test -z "$as_dir" && as_dir=.
43026  for ac_exec_ext in '' $ac_executable_extensions; do
43027  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43028    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43030    break 2
43031  fi
43032done
43033done
43034
43035  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43036  ;;
43037esac
43038fi
43039SDL_CONFIG=$ac_cv_path_SDL_CONFIG
43040
43041if test -n "$SDL_CONFIG"; then
43042  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43043echo "${ECHO_T}$SDL_CONFIG" >&6
43044else
43045  echo "$as_me:$LINENO: result: no" >&5
43046echo "${ECHO_T}no" >&6
43047fi
43048
43049  min_sdl_version=1.2.0
43050  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43051echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
43052  no_sdl=""
43053  if test "$SDL_CONFIG" = "no" ; then
43054    no_sdl=yes
43055  else
43056    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43057    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43058
43059    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43060           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43061    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43062           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43063    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43064           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43065    if test "x$enable_sdltest" = "xyes" ; then
43066      ac_save_CFLAGS="$CFLAGS"
43067      ac_save_CXXFLAGS="$CXXFLAGS"
43068      ac_save_LIBS="$LIBS"
43069      CFLAGS="$CFLAGS $SDL_CFLAGS"
43070      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43071      LIBS="$LIBS $SDL_LIBS"
43072      rm -f conf.sdltest
43073      if test "$cross_compiling" = yes; then
43074  echo $ac_n "cross compiling; assumed OK... $ac_c"
43075else
43076  cat >conftest.$ac_ext <<_ACEOF
43077/* confdefs.h.  */
43078_ACEOF
43079cat confdefs.h >>conftest.$ac_ext
43080cat >>conftest.$ac_ext <<_ACEOF
43081/* end confdefs.h.  */
43082
43083#include <stdio.h>
43084#include <stdlib.h>
43085#include <string.h>
43086#include "SDL.h"
43087
43088char*
43089my_strdup (char *str)
43090{
43091  char *new_str;
43092
43093  if (str)
43094    {
43095      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43096      strcpy (new_str, str);
43097    }
43098  else
43099    new_str = NULL;
43100
43101  return new_str;
43102}
43103
43104int main (int argc, char *argv[])
43105{
43106  int major, minor, micro;
43107  char *tmp_version;
43108
43109  /* This hangs on some systems (?)
43110  system ("touch conf.sdltest");
43111  */
43112  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43113
43114  /* HP/UX 9 (%@#!) writes to sscanf strings */
43115  tmp_version = my_strdup("$min_sdl_version");
43116  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43117     printf("%s, bad version string\n", "$min_sdl_version");
43118     exit(1);
43119   }
43120
43121   if (($sdl_major_version > major) ||
43122      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43123      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43124    {
43125      return 0;
43126    }
43127  else
43128    {
43129      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43130      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43131      printf("*** best to upgrade to the required version.\n");
43132      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43133      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43134      printf("*** config.cache before re-running configure\n");
43135      return 1;
43136    }
43137}
43138
43139
43140_ACEOF
43141rm -f conftest$ac_exeext
43142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43143  (eval $ac_link) 2>&5
43144  ac_status=$?
43145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43146  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43148  (eval $ac_try) 2>&5
43149  ac_status=$?
43150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43151  (exit $ac_status); }; }; then
43152  :
43153else
43154  echo "$as_me: program exited with status $ac_status" >&5
43155echo "$as_me: failed program was:" >&5
43156sed 's/^/| /' conftest.$ac_ext >&5
43157
43158( exit $ac_status )
43159no_sdl=yes
43160fi
43161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43162fi
43163       CFLAGS="$ac_save_CFLAGS"
43164       CXXFLAGS="$ac_save_CXXFLAGS"
43165       LIBS="$ac_save_LIBS"
43166     fi
43167  fi
43168  if test "x$no_sdl" = x ; then
43169     echo "$as_me:$LINENO: result: yes" >&5
43170echo "${ECHO_T}yes" >&6
43171
43172                    EXTRALIBS_SDL="$SDL_LIBS"
43173                    CFLAGS="$SDL_CFLAGS $CFLAGS"
43174                    CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
43175                    cat >>confdefs.h <<\_ACEOF
43176#define wxUSE_LIBSDL 1
43177_ACEOF
43178
43179
43180  else
43181     echo "$as_me:$LINENO: result: no" >&5
43182echo "${ECHO_T}no" >&6
43183     if test "$SDL_CONFIG" = "no" ; then
43184       echo "*** The sdl-config script installed by SDL could not be found"
43185       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43186       echo "*** your path, or set the SDL_CONFIG environment variable to the"
43187       echo "*** full path to sdl-config."
43188     else
43189       if test -f conf.sdltest ; then
43190        :
43191       else
43192          echo "*** Could not run SDL test program, checking why..."
43193          CFLAGS="$CFLAGS $SDL_CFLAGS"
43194          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43195          LIBS="$LIBS $SDL_LIBS"
43196          cat >conftest.$ac_ext <<_ACEOF
43197/* confdefs.h.  */
43198_ACEOF
43199cat confdefs.h >>conftest.$ac_ext
43200cat >>conftest.$ac_ext <<_ACEOF
43201/* end confdefs.h.  */
43202
43203#include <stdio.h>
43204#include "SDL.h"
43205
43206int main(int argc, char *argv[])
43207{ return 0; }
43208#undef  main
43209#define main K_and_R_C_main
43210
43211int
43212main ()
43213{
43214 return 0;
43215  ;
43216  return 0;
43217}
43218_ACEOF
43219rm -f conftest.$ac_objext conftest$ac_exeext
43220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43221  (eval $ac_link) 2>conftest.er1
43222  ac_status=$?
43223  grep -v '^ *+' conftest.er1 >conftest.err
43224  rm -f conftest.er1
43225  cat conftest.err >&5
43226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43227  (exit $ac_status); } &&
43228	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
43229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43230  (eval $ac_try) 2>&5
43231  ac_status=$?
43232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43233  (exit $ac_status); }; } &&
43234	 { ac_try='test -s conftest$ac_exeext'
43235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43236  (eval $ac_try) 2>&5
43237  ac_status=$?
43238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43239  (exit $ac_status); }; }; then
43240   echo "*** The test program compiled, but did not run. This usually means"
43241          echo "*** that the run-time linker is not finding SDL or finding the wrong"
43242          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43243          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43244          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
43245          echo "*** is required on your system"
43246	  echo "***"
43247          echo "*** If you have an old version installed, it is best to remove it, although"
43248          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43249else
43250  echo "$as_me: failed program was:" >&5
43251sed 's/^/| /' conftest.$ac_ext >&5
43252
43253 echo "*** The test program failed to compile or link. See the file config.log for the"
43254          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43255          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43256          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43257fi
43258rm -f conftest.err conftest.$ac_objext \
43259      conftest$ac_exeext conftest.$ac_ext
43260          CFLAGS="$ac_save_CFLAGS"
43261          CXXFLAGS="$ac_save_CXXFLAGS"
43262          LIBS="$ac_save_LIBS"
43263       fi
43264     fi
43265     SDL_CFLAGS=""
43266     SDL_LIBS=""
43267     wxUSE_LIBSDL="no"
43268  fi
43269
43270
43271  rm -f conf.sdltest
43272
43273      if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43274        WITH_PLUGIN_SDL=1
43275      fi
43276    fi
43277  else
43278        if test "$wxUSE_MGL" = 1; then
43279        { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
43280echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
43281        wxUSE_SOUND="no"
43282    fi
43283  fi
43284fi
43285
43286if test "$wxUSE_SOUND" = "yes"; then
43287  cat >>confdefs.h <<\_ACEOF
43288#define wxUSE_SOUND 1
43289_ACEOF
43290
43291  SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43292fi
43293
43294if test "$WXGTK20" = 1; then
43295
43296
43297if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43298	if test -n "$ac_tool_prefix"; then
43299  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43300set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43301echo "$as_me:$LINENO: checking for $ac_word" >&5
43302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43303if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43304  echo $ECHO_N "(cached) $ECHO_C" >&6
43305else
43306  case $PKG_CONFIG in
43307  [\\/]* | ?:[\\/]*)
43308  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43309  ;;
43310  *)
43311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43312for as_dir in $PATH
43313do
43314  IFS=$as_save_IFS
43315  test -z "$as_dir" && as_dir=.
43316  for ac_exec_ext in '' $ac_executable_extensions; do
43317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43318    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43320    break 2
43321  fi
43322done
43323done
43324
43325  ;;
43326esac
43327fi
43328PKG_CONFIG=$ac_cv_path_PKG_CONFIG
43329
43330if test -n "$PKG_CONFIG"; then
43331  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43332echo "${ECHO_T}$PKG_CONFIG" >&6
43333else
43334  echo "$as_me:$LINENO: result: no" >&5
43335echo "${ECHO_T}no" >&6
43336fi
43337
43338fi
43339if test -z "$ac_cv_path_PKG_CONFIG"; then
43340  ac_pt_PKG_CONFIG=$PKG_CONFIG
43341  # Extract the first word of "pkg-config", so it can be a program name with args.
43342set dummy pkg-config; ac_word=$2
43343echo "$as_me:$LINENO: checking for $ac_word" >&5
43344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43345if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
43346  echo $ECHO_N "(cached) $ECHO_C" >&6
43347else
43348  case $ac_pt_PKG_CONFIG in
43349  [\\/]* | ?:[\\/]*)
43350  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43351  ;;
43352  *)
43353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43354for as_dir in $PATH
43355do
43356  IFS=$as_save_IFS
43357  test -z "$as_dir" && as_dir=.
43358  for ac_exec_ext in '' $ac_executable_extensions; do
43359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43360    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43362    break 2
43363  fi
43364done
43365done
43366
43367  ;;
43368esac
43369fi
43370ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43371
43372if test -n "$ac_pt_PKG_CONFIG"; then
43373  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
43374echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
43375else
43376  echo "$as_me:$LINENO: result: no" >&5
43377echo "${ECHO_T}no" >&6
43378fi
43379
43380  PKG_CONFIG=$ac_pt_PKG_CONFIG
43381else
43382  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43383fi
43384
43385fi
43386if test -n "$PKG_CONFIG"; then
43387	_pkg_min_version=0.9.0
43388	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
43389echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
43390	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43391		echo "$as_me:$LINENO: result: yes" >&5
43392echo "${ECHO_T}yes" >&6
43393	else
43394		echo "$as_me:$LINENO: result: no" >&5
43395echo "${ECHO_T}no" >&6
43396		PKG_CONFIG=""
43397	fi
43398
43399fi
43400
43401    if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43402        if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43403
43404
43405pkg_failed=no
43406echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43407echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
43408
43409if test -n "$PKG_CONFIG"; then
43410    if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43411        pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43412    else
43413        if test -n "$PKG_CONFIG" && \
43414    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43415  ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43416  ac_status=$?
43417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43418  (exit $ac_status); }; then
43419  pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43420else
43421  pkg_failed=yes
43422fi
43423    fi
43424else
43425	pkg_failed=untried
43426fi
43427if test -n "$PKG_CONFIG"; then
43428    if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43429        pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43430    else
43431        if test -n "$PKG_CONFIG" && \
43432    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43433  ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43434  ac_status=$?
43435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43436  (exit $ac_status); }; then
43437  pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43438else
43439  pkg_failed=yes
43440fi
43441    fi
43442else
43443	pkg_failed=untried
43444fi
43445
43446
43447
43448if test $pkg_failed = yes; then
43449
43450if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43451        _pkg_short_errors_supported=yes
43452else
43453        _pkg_short_errors_supported=no
43454fi
43455        if test $_pkg_short_errors_supported = yes; then
43456	        LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43457        else
43458	        LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43459        fi
43460	# Put the nasty error message in config.log where it belongs
43461	echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
43462
43463
43464                        { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43465echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43466                        wxUSE_LIBGNOMEPRINT="no"
43467
43468
43469elif test $pkg_failed = untried; then
43470
43471                        { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43472echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43473                        wxUSE_LIBGNOMEPRINT="no"
43474
43475
43476else
43477	LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43478	LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43479        echo "$as_me:$LINENO: result: yes" >&5
43480echo "${ECHO_T}yes" >&6
43481
43482                        CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
43483                        CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43484                        cat >>confdefs.h <<\_ACEOF
43485#define wxUSE_LIBGNOMEPRINT 1
43486_ACEOF
43487
43488
43489fi
43490        fi
43491    fi
43492
43493    if test "$wxUSE_MIMETYPE" = "yes" ; then
43494        if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43495
43496
43497pkg_failed=no
43498echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43499echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
43500
43501if test -n "$PKG_CONFIG"; then
43502    if test -n "$GNOMEVFS_CFLAGS"; then
43503        pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43504    else
43505        if test -n "$PKG_CONFIG" && \
43506    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43507  ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43508  ac_status=$?
43509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43510  (exit $ac_status); }; then
43511  pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43512else
43513  pkg_failed=yes
43514fi
43515    fi
43516else
43517	pkg_failed=untried
43518fi
43519if test -n "$PKG_CONFIG"; then
43520    if test -n "$GNOMEVFS_LIBS"; then
43521        pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43522    else
43523        if test -n "$PKG_CONFIG" && \
43524    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43525  ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43526  ac_status=$?
43527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43528  (exit $ac_status); }; then
43529  pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43530else
43531  pkg_failed=yes
43532fi
43533    fi
43534else
43535	pkg_failed=untried
43536fi
43537
43538
43539
43540if test $pkg_failed = yes; then
43541
43542if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43543        _pkg_short_errors_supported=yes
43544else
43545        _pkg_short_errors_supported=no
43546fi
43547        if test $_pkg_short_errors_supported = yes; then
43548	        GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43549        else
43550	        GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43551        fi
43552	# Put the nasty error message in config.log where it belongs
43553	echo "$GNOMEVFS_PKG_ERRORS" >&5
43554
43555
43556                        { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43557echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43558                        wxUSE_LIBGNOMEVFS="no"
43559
43560
43561elif test $pkg_failed = untried; then
43562
43563                        { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43564echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43565                        wxUSE_LIBGNOMEVFS="no"
43566
43567
43568else
43569	GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43570	GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43571        echo "$as_me:$LINENO: result: yes" >&5
43572echo "${ECHO_T}yes" >&6
43573
43574                        CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43575                        CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43576                        cat >>confdefs.h <<\_ACEOF
43577#define wxUSE_LIBGNOMEVFS 1
43578_ACEOF
43579
43580
43581fi
43582        fi
43583    fi
43584
43585    if test "$wxUSE_LIBHILDON" = "yes" ; then
43586
43587pkg_failed=no
43588echo "$as_me:$LINENO: checking for HILDON" >&5
43589echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
43590
43591if test -n "$PKG_CONFIG"; then
43592    if test -n "$HILDON_CFLAGS"; then
43593        pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43594    else
43595        if test -n "$PKG_CONFIG" && \
43596    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43597  ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43598  ac_status=$?
43599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43600  (exit $ac_status); }; then
43601  pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43602else
43603  pkg_failed=yes
43604fi
43605    fi
43606else
43607	pkg_failed=untried
43608fi
43609if test -n "$PKG_CONFIG"; then
43610    if test -n "$HILDON_LIBS"; then
43611        pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43612    else
43613        if test -n "$PKG_CONFIG" && \
43614    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43615  ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43616  ac_status=$?
43617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618  (exit $ac_status); }; then
43619  pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43620else
43621  pkg_failed=yes
43622fi
43623    fi
43624else
43625	pkg_failed=untried
43626fi
43627
43628
43629
43630if test $pkg_failed = yes; then
43631
43632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43633        _pkg_short_errors_supported=yes
43634else
43635        _pkg_short_errors_supported=no
43636fi
43637        if test $_pkg_short_errors_supported = yes; then
43638	        HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43639        else
43640	        HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43641        fi
43642	# Put the nasty error message in config.log where it belongs
43643	echo "$HILDON_PKG_ERRORS" >&5
43644
43645
43646                { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43647echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43648                        wxUSE_LIBHILDON="no"
43649
43650
43651elif test $pkg_failed = untried; then
43652
43653                { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43654echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43655                        wxUSE_LIBHILDON="no"
43656
43657
43658else
43659	HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43660	HILDON_LIBS=$pkg_cv_HILDON_LIBS
43661        echo "$as_me:$LINENO: result: yes" >&5
43662echo "${ECHO_T}yes" >&6
43663
43664                EXTRALIBS_HILDON="$HILDON_LIBS"
43665                CFLAGS="$CFLAGS $HILDON_CFLAGS"
43666                CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43667                cat >>confdefs.h <<\_ACEOF
43668#define wxUSE_LIBHILDON 1
43669_ACEOF
43670
43671
43672fi
43673    fi
43674fi
43675
43676if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43677  cat >>confdefs.h <<\_ACEOF
43678#define wxUSE_CMDLINE_PARSER 1
43679_ACEOF
43680
43681fi
43682
43683if test "$wxUSE_STOPWATCH" = "yes"; then
43684  cat >>confdefs.h <<\_ACEOF
43685#define wxUSE_STOPWATCH 1
43686_ACEOF
43687
43688fi
43689
43690if test "$wxUSE_DATETIME" = "yes"; then
43691  cat >>confdefs.h <<\_ACEOF
43692#define wxUSE_DATETIME 1
43693_ACEOF
43694
43695fi
43696
43697if test "$wxUSE_FILE" = "yes"; then
43698  cat >>confdefs.h <<\_ACEOF
43699#define wxUSE_FILE 1
43700_ACEOF
43701
43702fi
43703
43704if test "$wxUSE_FFILE" = "yes"; then
43705  cat >>confdefs.h <<\_ACEOF
43706#define wxUSE_FFILE 1
43707_ACEOF
43708
43709fi
43710
43711if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43712  if test "$wxUSE_STREAMS" != yes; then
43713    { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43714echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43715    wxUSE_ARCHIVE_STREAMS=no
43716  else
43717    cat >>confdefs.h <<\_ACEOF
43718#define wxUSE_ARCHIVE_STREAMS 1
43719_ACEOF
43720
43721  fi
43722fi
43723
43724if test "$wxUSE_ZIPSTREAM" = "yes"; then
43725  if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43726    { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43727echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43728  elif test "$wxUSE_ZLIB" = "no"; then
43729    { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43730echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43731  else
43732    cat >>confdefs.h <<\_ACEOF
43733#define wxUSE_ZIPSTREAM 1
43734_ACEOF
43735
43736  fi
43737fi
43738
43739if test "$wxUSE_TARSTREAM" = "yes"; then
43740  if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43741    { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43742echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43743  else
43744    cat >>confdefs.h <<\_ACEOF
43745#define wxUSE_TARSTREAM 1
43746_ACEOF
43747
43748  fi
43749fi
43750
43751if test "$wxUSE_FILESYSTEM" = "yes"; then
43752  if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43753    { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43754echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43755    wxUSE_FILESYSTEM=no
43756  else
43757    cat >>confdefs.h <<\_ACEOF
43758#define wxUSE_FILESYSTEM 1
43759_ACEOF
43760
43761  fi
43762fi
43763
43764if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43765  if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43766    { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43767echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43768  else
43769    cat >>confdefs.h <<\_ACEOF
43770#define wxUSE_FS_ARCHIVE 1
43771_ACEOF
43772
43773  fi
43774fi
43775
43776if test "$wxUSE_FS_ZIP" = "yes"; then
43777  if test "$wxUSE_FS_ARCHIVE" != yes; then
43778    { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43779echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43780  else
43781    cat >>confdefs.h <<\_ACEOF
43782#define wxUSE_FS_ZIP 1
43783_ACEOF
43784
43785  fi
43786fi
43787
43788if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43789  if test "$USE_UNIX" != 1; then
43790    { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43791echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43792    wxUSE_ON_FATAL_EXCEPTION=no
43793  else
43794    cat >>confdefs.h <<\_ACEOF
43795#define wxUSE_ON_FATAL_EXCEPTION 1
43796_ACEOF
43797
43798  fi
43799fi
43800
43801if test "$wxUSE_STACKWALKER" = "yes"; then
43802    cat >>confdefs.h <<\_ACEOF
43803#define wxUSE_STACKWALKER 1
43804_ACEOF
43805
43806fi
43807
43808if test "$wxUSE_DEBUGREPORT" = "yes"; then
43809    if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43810        { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43811echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43812        wxUSE_DEBUGREPORT=no
43813    else
43814        cat >>confdefs.h <<\_ACEOF
43815#define wxUSE_DEBUGREPORT 1
43816_ACEOF
43817
43818        if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43819            SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43820        fi
43821    fi
43822fi
43823
43824if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43825  cat >>confdefs.h <<\_ACEOF
43826#define wxUSE_SNGLINST_CHECKER 1
43827_ACEOF
43828
43829fi
43830
43831if test "$wxUSE_BUSYINFO" = "yes"; then
43832  cat >>confdefs.h <<\_ACEOF
43833#define wxUSE_BUSYINFO 1
43834_ACEOF
43835
43836fi
43837
43838if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43839  cat >>confdefs.h <<\_ACEOF
43840#define wxUSE_STD_IOSTREAM 1
43841_ACEOF
43842
43843fi
43844
43845if test "$wxUSE_STD_STRING" = "yes"; then
43846  cat >>confdefs.h <<\_ACEOF
43847#define wxUSE_STD_STRING 1
43848_ACEOF
43849
43850fi
43851
43852if test "$wxUSE_STDPATHS" = "yes"; then
43853  cat >>confdefs.h <<\_ACEOF
43854#define wxUSE_STDPATHS 1
43855_ACEOF
43856
43857fi
43858
43859if test "$wxUSE_TEXTBUFFER" = "yes"; then
43860    cat >>confdefs.h <<\_ACEOF
43861#define wxUSE_TEXTBUFFER 1
43862_ACEOF
43863
43864fi
43865
43866if test "$wxUSE_TEXTFILE" = "yes"; then
43867  if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43868    { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43869echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43870  else
43871    cat >>confdefs.h <<\_ACEOF
43872#define wxUSE_TEXTFILE 1
43873_ACEOF
43874
43875  fi
43876fi
43877
43878if test "$wxUSE_CONFIG" = "yes" ; then
43879  if test "$wxUSE_TEXTFILE" != "yes"; then
43880    { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43881echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43882  else
43883    cat >>confdefs.h <<\_ACEOF
43884#define wxUSE_CONFIG 1
43885_ACEOF
43886
43887    cat >>confdefs.h <<\_ACEOF
43888#define wxUSE_CONFIG_NATIVE 1
43889_ACEOF
43890
43891    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43892  fi
43893fi
43894
43895if test "$wxUSE_INTL" = "yes" ; then
43896  if test "$wxUSE_FILE" != "yes"; then
43897    { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43898echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43899  else
43900    cat >>confdefs.h <<\_ACEOF
43901#define wxUSE_INTL 1
43902_ACEOF
43903
43904    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43905    GUIDIST="$GUIDIST INTL_DIST"
43906  fi
43907fi
43908
43909if test "$wxUSE_LOG" = "yes"; then
43910  cat >>confdefs.h <<\_ACEOF
43911#define wxUSE_LOG 1
43912_ACEOF
43913
43914
43915    if test "$wxUSE_LOGGUI" = "yes"; then
43916      cat >>confdefs.h <<\_ACEOF
43917#define wxUSE_LOGGUI 1
43918_ACEOF
43919
43920    fi
43921
43922    if test "$wxUSE_LOGWINDOW" = "yes"; then
43923      cat >>confdefs.h <<\_ACEOF
43924#define wxUSE_LOGWINDOW 1
43925_ACEOF
43926
43927    fi
43928
43929    if test "$wxUSE_LOGDIALOG" = "yes"; then
43930      cat >>confdefs.h <<\_ACEOF
43931#define wxUSE_LOG_DIALOG 1
43932_ACEOF
43933
43934    fi
43935
43936        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43937fi
43938
43939if test "$wxUSE_LONGLONG" = "yes"; then
43940  cat >>confdefs.h <<\_ACEOF
43941#define wxUSE_LONGLONG 1
43942_ACEOF
43943
43944fi
43945
43946if test "$wxUSE_GEOMETRY" = "yes"; then
43947  cat >>confdefs.h <<\_ACEOF
43948#define wxUSE_GEOMETRY 1
43949_ACEOF
43950
43951fi
43952
43953if test "$wxUSE_STREAMS" = "yes" ; then
43954  cat >>confdefs.h <<\_ACEOF
43955#define wxUSE_STREAMS 1
43956_ACEOF
43957
43958fi
43959
43960if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43961  cat >>confdefs.h <<\_ACEOF
43962#define wxUSE_PRINTF_POS_PARAMS 1
43963_ACEOF
43964
43965fi
43966
43967if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43968  cat >>confdefs.h <<\_ACEOF
43969#define wxUSE_OBJC_UNIQUIFYING 1
43970_ACEOF
43971
43972fi
43973
43974if test "$wxUSE_ABI_INCOMPATIBLE_FEATURES" = "yes"; then
43975  cat >>confdefs.h <<\_ACEOF
43976#define wxUSE_ABI_INCOMPATIBLE_FEATURES 1
43977_ACEOF
43978
43979fi
43980
43981
43982if test "$wxUSE_DATETIME" = "yes"; then
43983        echo "$as_me:$LINENO: checking for strptime" >&5
43984echo $ECHO_N "checking for strptime... $ECHO_C" >&6
43985if test "${ac_cv_func_strptime+set}" = set; then
43986  echo $ECHO_N "(cached) $ECHO_C" >&6
43987else
43988  cat >conftest.$ac_ext <<_ACEOF
43989/* confdefs.h.  */
43990_ACEOF
43991cat confdefs.h >>conftest.$ac_ext
43992cat >>conftest.$ac_ext <<_ACEOF
43993/* end confdefs.h.  */
43994/* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43995   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43996#define strptime innocuous_strptime
43997
43998/* System header to define __stub macros and hopefully few prototypes,
43999    which can conflict with char strptime (); below.
44000    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44001    <limits.h> exists even on freestanding compilers.  */
44002
44003#ifdef __STDC__
44004# include <limits.h>
44005#else
44006# include <assert.h>
44007#endif
44008
44009#undef strptime
44010
44011/* Override any gcc2 internal prototype to avoid an error.  */
44012#ifdef __cplusplus
44013extern "C"
44014{
44015#endif
44016/* We use char because int might match the return type of a gcc2
44017   builtin and then its argument prototype would still apply.  */
44018char strptime ();
44019/* The GNU C library defines this for functions which it implements
44020    to always fail with ENOSYS.  Some functions are actually named
44021    something starting with __ and the normal name is an alias.  */
44022#if defined (__stub_strptime) || defined (__stub___strptime)
44023choke me
44024#else
44025char (*f) () = strptime;
44026#endif
44027#ifdef __cplusplus
44028}
44029#endif
44030
44031int
44032main ()
44033{
44034return f != strptime;
44035  ;
44036  return 0;
44037}
44038_ACEOF
44039rm -f conftest.$ac_objext conftest$ac_exeext
44040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44041  (eval $ac_link) 2>conftest.er1
44042  ac_status=$?
44043  grep -v '^ *+' conftest.er1 >conftest.err
44044  rm -f conftest.er1
44045  cat conftest.err >&5
44046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44047  (exit $ac_status); } &&
44048	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
44049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44050  (eval $ac_try) 2>&5
44051  ac_status=$?
44052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44053  (exit $ac_status); }; } &&
44054	 { ac_try='test -s conftest$ac_exeext'
44055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44056  (eval $ac_try) 2>&5
44057  ac_status=$?
44058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44059  (exit $ac_status); }; }; then
44060  ac_cv_func_strptime=yes
44061else
44062  echo "$as_me: failed program was:" >&5
44063sed 's/^/| /' conftest.$ac_ext >&5
44064
44065ac_cv_func_strptime=no
44066fi
44067rm -f conftest.err conftest.$ac_objext \
44068      conftest$ac_exeext conftest.$ac_ext
44069fi
44070echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
44071echo "${ECHO_T}$ac_cv_func_strptime" >&6
44072
44073    if test "$ac_cv_func_strptime" = "yes"; then
44074        echo "$as_me:$LINENO: checking for strptime declaration" >&5
44075echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
44076if test "${wx_cv_func_strptime_decl+set}" = set; then
44077  echo $ECHO_N "(cached) $ECHO_C" >&6
44078else
44079
44080                ac_ext=cc
44081ac_cpp='$CXXCPP $CPPFLAGS'
44082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44085
44086                cat >conftest.$ac_ext <<_ACEOF
44087/* confdefs.h.  */
44088_ACEOF
44089cat confdefs.h >>conftest.$ac_ext
44090cat >>conftest.$ac_ext <<_ACEOF
44091/* end confdefs.h.  */
44092
44093                        #include <time.h>
44094
44095int
44096main ()
44097{
44098
44099                        struct tm t;
44100                        strptime("foo", "bar", &t);
44101
44102  ;
44103  return 0;
44104}
44105_ACEOF
44106rm -f conftest.$ac_objext
44107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44108  (eval $ac_compile) 2>conftest.er1
44109  ac_status=$?
44110  grep -v '^ *+' conftest.er1 >conftest.err
44111  rm -f conftest.er1
44112  cat conftest.err >&5
44113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114  (exit $ac_status); } &&
44115	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
44116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44117  (eval $ac_try) 2>&5
44118  ac_status=$?
44119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44120  (exit $ac_status); }; } &&
44121	 { ac_try='test -s conftest.$ac_objext'
44122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44123  (eval $ac_try) 2>&5
44124  ac_status=$?
44125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44126  (exit $ac_status); }; }; then
44127  wx_cv_func_strptime_decl=yes
44128else
44129  echo "$as_me: failed program was:" >&5
44130sed 's/^/| /' conftest.$ac_ext >&5
44131
44132wx_cv_func_strptime_decl=no
44133
44134fi
44135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44136                ac_ext=c
44137ac_cpp='$CPP $CPPFLAGS'
44138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44140ac_compiler_gnu=$ac_cv_c_compiler_gnu
44141
44142
44143
44144fi
44145echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
44146echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
44147    fi
44148    if test "$wx_cv_func_strptime_decl" = "yes"; then
44149        cat >>confdefs.h <<\_ACEOF
44150#define HAVE_STRPTIME_DECL 1
44151_ACEOF
44152
44153    else
44154        wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
44155    fi
44156    if test "$ac_cv_func_strptime" = "yes"; then
44157                                        echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
44158echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6
44159if test "${wx_cv_func_strptime_ok+set}" = set; then
44160  echo $ECHO_N "(cached) $ECHO_C" >&6
44161else
44162  if test "$cross_compiling" = yes; then
44163                  wx_cv_func_strptime_ok=no
44164
44165else
44166  cat >conftest.$ac_ext <<_ACEOF
44167
44168                    #include <stdlib.h>
44169                    #include <time.h>
44170                    #include "confdefs.h"
44171
44172                    $wx_strptime_decl
44173
44174                    int main()
44175                    {
44176                        struct tm t;
44177                        return !!strptime("", "%x", &t);
44178                    }
44179
44180_ACEOF
44181rm -f conftest$ac_exeext
44182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44183  (eval $ac_link) 2>&5
44184  ac_status=$?
44185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44186  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44188  (eval $ac_try) 2>&5
44189  ac_status=$?
44190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44191  (exit $ac_status); }; }; then
44192  wx_cv_func_strptime_ok=yes
44193else
44194  echo "$as_me: program exited with status $ac_status" >&5
44195echo "$as_me: failed program was:" >&5
44196sed 's/^/| /' conftest.$ac_ext >&5
44197
44198( exit $ac_status )
44199wx_cv_func_strptime_ok=no
44200fi
44201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44202fi
44203
44204fi
44205echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
44206echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6
44207
44208        if test "$wx_cv_func_strptime_ok" = "yes"; then
44209            cat >>confdefs.h <<\_ACEOF
44210#define HAVE_STRPTIME 1
44211_ACEOF
44212
44213        fi
44214    fi
44215
44216            echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44217echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
44218if test "${wx_cv_var_timezone+set}" = set; then
44219  echo $ECHO_N "(cached) $ECHO_C" >&6
44220else
44221
44222                        ac_ext=cc
44223ac_cpp='$CXXCPP $CPPFLAGS'
44224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44227
44228                        cat >conftest.$ac_ext <<_ACEOF
44229/* confdefs.h.  */
44230_ACEOF
44231cat confdefs.h >>conftest.$ac_ext
44232cat >>conftest.$ac_ext <<_ACEOF
44233/* end confdefs.h.  */
44234
44235                                #include <time.h>
44236
44237int
44238main ()
44239{
44240
44241                                int tz;
44242                                tz = timezone;
44243
44244  ;
44245  return 0;
44246}
44247_ACEOF
44248rm -f conftest.$ac_objext
44249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44250  (eval $ac_compile) 2>conftest.er1
44251  ac_status=$?
44252  grep -v '^ *+' conftest.er1 >conftest.err
44253  rm -f conftest.er1
44254  cat conftest.err >&5
44255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44256  (exit $ac_status); } &&
44257	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
44258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44259  (eval $ac_try) 2>&5
44260  ac_status=$?
44261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44262  (exit $ac_status); }; } &&
44263	 { ac_try='test -s conftest.$ac_objext'
44264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44265  (eval $ac_try) 2>&5
44266  ac_status=$?
44267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44268  (exit $ac_status); }; }; then
44269
44270                                wx_cv_var_timezone=timezone
44271
44272else
44273  echo "$as_me: failed program was:" >&5
44274sed 's/^/| /' conftest.$ac_ext >&5
44275
44276
44277                                cat >conftest.$ac_ext <<_ACEOF
44278/* confdefs.h.  */
44279_ACEOF
44280cat confdefs.h >>conftest.$ac_ext
44281cat >>conftest.$ac_ext <<_ACEOF
44282/* end confdefs.h.  */
44283
44284                                        #include <time.h>
44285
44286int
44287main ()
44288{
44289
44290                                        int tz;
44291                                        tz = _timezone;
44292
44293  ;
44294  return 0;
44295}
44296_ACEOF
44297rm -f conftest.$ac_objext
44298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44299  (eval $ac_compile) 2>conftest.er1
44300  ac_status=$?
44301  grep -v '^ *+' conftest.er1 >conftest.err
44302  rm -f conftest.er1
44303  cat conftest.err >&5
44304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44305  (exit $ac_status); } &&
44306	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
44307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44308  (eval $ac_try) 2>&5
44309  ac_status=$?
44310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44311  (exit $ac_status); }; } &&
44312	 { ac_try='test -s conftest.$ac_objext'
44313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44314  (eval $ac_try) 2>&5
44315  ac_status=$?
44316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44317  (exit $ac_status); }; }; then
44318
44319                                        wx_cv_var_timezone=_timezone
44320
44321else
44322  echo "$as_me: failed program was:" >&5
44323sed 's/^/| /' conftest.$ac_ext >&5
44324
44325
44326                                        cat >conftest.$ac_ext <<_ACEOF
44327/* confdefs.h.  */
44328_ACEOF
44329cat confdefs.h >>conftest.$ac_ext
44330cat >>conftest.$ac_ext <<_ACEOF
44331/* end confdefs.h.  */
44332
44333                                                #include <time.h>
44334
44335int
44336main ()
44337{
44338
44339                                                int tz;
44340                                                tz = __timezone;
44341
44342  ;
44343  return 0;
44344}
44345_ACEOF
44346rm -f conftest.$ac_objext
44347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44348  (eval $ac_compile) 2>conftest.er1
44349  ac_status=$?
44350  grep -v '^ *+' conftest.er1 >conftest.err
44351  rm -f conftest.er1
44352  cat conftest.err >&5
44353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44354  (exit $ac_status); } &&
44355	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
44356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44357  (eval $ac_try) 2>&5
44358  ac_status=$?
44359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44360  (exit $ac_status); }; } &&
44361	 { ac_try='test -s conftest.$ac_objext'
44362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44363  (eval $ac_try) 2>&5
44364  ac_status=$?
44365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44366  (exit $ac_status); }; }; then
44367
44368                                                wx_cv_var_timezone=__timezone
44369
44370else
44371  echo "$as_me: failed program was:" >&5
44372sed 's/^/| /' conftest.$ac_ext >&5
44373
44374
44375                                                if test "$USE_DOS" = 0 ; then
44376                                                    { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44377echo "$as_me: WARNING: no timezone variable" >&2;}
44378                                                fi
44379
44380
44381fi
44382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44383
44384
44385fi
44386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44387
44388
44389fi
44390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44391                        ac_ext=c
44392ac_cpp='$CPP $CPPFLAGS'
44393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44395ac_compiler_gnu=$ac_cv_c_compiler_gnu
44396
44397
44398
44399fi
44400echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44401echo "${ECHO_T}$wx_cv_var_timezone" >&6
44402
44403        if test "x$wx_cv_var_timezone" != x ; then
44404        cat >>confdefs.h <<_ACEOF
44405#define WX_TIMEZONE $wx_cv_var_timezone
44406_ACEOF
44407
44408    fi
44409
44410
44411for ac_func in localtime
44412do
44413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44414echo "$as_me:$LINENO: checking for $ac_func" >&5
44415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44416if eval "test \"\${$as_ac_var+set}\" = set"; then
44417  echo $ECHO_N "(cached) $ECHO_C" >&6
44418else
44419  cat >conftest.$ac_ext <<_ACEOF
44420/* confdefs.h.  */
44421_ACEOF
44422cat confdefs.h >>conftest.$ac_ext
44423cat >>conftest.$ac_ext <<_ACEOF
44424/* end confdefs.h.  */
44425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44426   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44427#define $ac_func innocuous_$ac_func
44428
44429/* System header to define __stub macros and hopefully few prototypes,
44430    which can conflict with char $ac_func (); below.
44431    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44432    <limits.h> exists even on freestanding compilers.  */
44433
44434#ifdef __STDC__
44435# include <limits.h>
44436#else
44437# include <assert.h>
44438#endif
44439
44440#undef $ac_func
44441
44442/* Override any gcc2 internal prototype to avoid an error.  */
44443#ifdef __cplusplus
44444extern "C"
44445{
44446#endif
44447/* We use char because int might match the return type of a gcc2
44448   builtin and then its argument prototype would still apply.  */
44449char $ac_func ();
44450/* The GNU C library defines this for functions which it implements
44451    to always fail with ENOSYS.  Some functions are actually named
44452    something starting with __ and the normal name is an alias.  */
44453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44454choke me
44455#else
44456char (*f) () = $ac_func;
44457#endif
44458#ifdef __cplusplus
44459}
44460#endif
44461
44462int
44463main ()
44464{
44465return f != $ac_func;
44466  ;
44467  return 0;
44468}
44469_ACEOF
44470rm -f conftest.$ac_objext conftest$ac_exeext
44471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44472  (eval $ac_link) 2>conftest.er1
44473  ac_status=$?
44474  grep -v '^ *+' conftest.er1 >conftest.err
44475  rm -f conftest.er1
44476  cat conftest.err >&5
44477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478  (exit $ac_status); } &&
44479	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
44480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44481  (eval $ac_try) 2>&5
44482  ac_status=$?
44483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484  (exit $ac_status); }; } &&
44485	 { ac_try='test -s conftest$ac_exeext'
44486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44487  (eval $ac_try) 2>&5
44488  ac_status=$?
44489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44490  (exit $ac_status); }; }; then
44491  eval "$as_ac_var=yes"
44492else
44493  echo "$as_me: failed program was:" >&5
44494sed 's/^/| /' conftest.$ac_ext >&5
44495
44496eval "$as_ac_var=no"
44497fi
44498rm -f conftest.err conftest.$ac_objext \
44499      conftest$ac_exeext conftest.$ac_ext
44500fi
44501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44503if test `eval echo '${'$as_ac_var'}'` = yes; then
44504  cat >>confdefs.h <<_ACEOF
44505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44506_ACEOF
44507
44508fi
44509done
44510
44511
44512    if test "$ac_cv_func_localtime" = "yes"; then
44513        echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44514echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
44515if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44516  echo $ECHO_N "(cached) $ECHO_C" >&6
44517else
44518
44519            cat >conftest.$ac_ext <<_ACEOF
44520/* confdefs.h.  */
44521_ACEOF
44522cat confdefs.h >>conftest.$ac_ext
44523cat >>conftest.$ac_ext <<_ACEOF
44524/* end confdefs.h.  */
44525
44526                    #include <time.h>
44527
44528int
44529main ()
44530{
44531
44532                    struct tm tm;
44533                    tm.tm_gmtoff++;
44534
44535  ;
44536  return 0;
44537}
44538_ACEOF
44539rm -f conftest.$ac_objext
44540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44541  (eval $ac_compile) 2>conftest.er1
44542  ac_status=$?
44543  grep -v '^ *+' conftest.er1 >conftest.err
44544  rm -f conftest.er1
44545  cat conftest.err >&5
44546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547  (exit $ac_status); } &&
44548	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
44549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44550  (eval $ac_try) 2>&5
44551  ac_status=$?
44552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44553  (exit $ac_status); }; } &&
44554	 { ac_try='test -s conftest.$ac_objext'
44555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44556  (eval $ac_try) 2>&5
44557  ac_status=$?
44558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44559  (exit $ac_status); }; }; then
44560
44561                    wx_cv_struct_tm_has_gmtoff=yes
44562
44563else
44564  echo "$as_me: failed program was:" >&5
44565sed 's/^/| /' conftest.$ac_ext >&5
44566
44567wx_cv_struct_tm_has_gmtoff=no
44568
44569fi
44570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44571
44572fi
44573echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44574echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
44575    fi
44576
44577    if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44578        cat >>confdefs.h <<\_ACEOF
44579#define WX_GMTOFF_IN_TM 1
44580_ACEOF
44581
44582    fi
44583
44584
44585
44586for ac_func in gettimeofday ftime
44587do
44588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44589echo "$as_me:$LINENO: checking for $ac_func" >&5
44590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44591if eval "test \"\${$as_ac_var+set}\" = set"; then
44592  echo $ECHO_N "(cached) $ECHO_C" >&6
44593else
44594  cat >conftest.$ac_ext <<_ACEOF
44595/* confdefs.h.  */
44596_ACEOF
44597cat confdefs.h >>conftest.$ac_ext
44598cat >>conftest.$ac_ext <<_ACEOF
44599/* end confdefs.h.  */
44600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44601   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44602#define $ac_func innocuous_$ac_func
44603
44604/* System header to define __stub macros and hopefully few prototypes,
44605    which can conflict with char $ac_func (); below.
44606    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44607    <limits.h> exists even on freestanding compilers.  */
44608
44609#ifdef __STDC__
44610# include <limits.h>
44611#else
44612# include <assert.h>
44613#endif
44614
44615#undef $ac_func
44616
44617/* Override any gcc2 internal prototype to avoid an error.  */
44618#ifdef __cplusplus
44619extern "C"
44620{
44621#endif
44622/* We use char because int might match the return type of a gcc2
44623   builtin and then its argument prototype would still apply.  */
44624char $ac_func ();
44625/* The GNU C library defines this for functions which it implements
44626    to always fail with ENOSYS.  Some functions are actually named
44627    something starting with __ and the normal name is an alias.  */
44628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44629choke me
44630#else
44631char (*f) () = $ac_func;
44632#endif
44633#ifdef __cplusplus
44634}
44635#endif
44636
44637int
44638main ()
44639{
44640return f != $ac_func;
44641  ;
44642  return 0;
44643}
44644_ACEOF
44645rm -f conftest.$ac_objext conftest$ac_exeext
44646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44647  (eval $ac_link) 2>conftest.er1
44648  ac_status=$?
44649  grep -v '^ *+' conftest.er1 >conftest.err
44650  rm -f conftest.er1
44651  cat conftest.err >&5
44652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44653  (exit $ac_status); } &&
44654	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
44655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44656  (eval $ac_try) 2>&5
44657  ac_status=$?
44658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659  (exit $ac_status); }; } &&
44660	 { ac_try='test -s conftest$ac_exeext'
44661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44662  (eval $ac_try) 2>&5
44663  ac_status=$?
44664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665  (exit $ac_status); }; }; then
44666  eval "$as_ac_var=yes"
44667else
44668  echo "$as_me: failed program was:" >&5
44669sed 's/^/| /' conftest.$ac_ext >&5
44670
44671eval "$as_ac_var=no"
44672fi
44673rm -f conftest.err conftest.$ac_objext \
44674      conftest$ac_exeext conftest.$ac_ext
44675fi
44676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44678if test `eval echo '${'$as_ac_var'}'` = yes; then
44679  cat >>confdefs.h <<_ACEOF
44680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44681_ACEOF
44682 break
44683fi
44684done
44685
44686
44687    if test "$ac_cv_func_gettimeofday" = "yes"; then
44688        echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44689echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
44690if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44691  echo $ECHO_N "(cached) $ECHO_C" >&6
44692else
44693
44694                        cat >conftest.$ac_ext <<_ACEOF
44695/* confdefs.h.  */
44696_ACEOF
44697cat confdefs.h >>conftest.$ac_ext
44698cat >>conftest.$ac_ext <<_ACEOF
44699/* end confdefs.h.  */
44700
44701                    #include <sys/time.h>
44702                    #include <unistd.h>
44703
44704int
44705main ()
44706{
44707
44708                    struct timeval tv;
44709                    gettimeofday(&tv, NULL);
44710
44711  ;
44712  return 0;
44713}
44714_ACEOF
44715rm -f conftest.$ac_objext
44716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44717  (eval $ac_compile) 2>conftest.er1
44718  ac_status=$?
44719  grep -v '^ *+' conftest.er1 >conftest.err
44720  rm -f conftest.er1
44721  cat conftest.err >&5
44722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44723  (exit $ac_status); } &&
44724	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
44725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44726  (eval $ac_try) 2>&5
44727  ac_status=$?
44728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44729  (exit $ac_status); }; } &&
44730	 { ac_try='test -s conftest.$ac_objext'
44731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44732  (eval $ac_try) 2>&5
44733  ac_status=$?
44734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44735  (exit $ac_status); }; }; then
44736  wx_cv_func_gettimeofday_has_2_args=yes
44737else
44738  echo "$as_me: failed program was:" >&5
44739sed 's/^/| /' conftest.$ac_ext >&5
44740
44741cat >conftest.$ac_ext <<_ACEOF
44742/* confdefs.h.  */
44743_ACEOF
44744cat confdefs.h >>conftest.$ac_ext
44745cat >>conftest.$ac_ext <<_ACEOF
44746/* end confdefs.h.  */
44747
44748                        #include <sys/time.h>
44749                        #include <unistd.h>
44750
44751int
44752main ()
44753{
44754
44755                        struct timeval tv;
44756                        gettimeofday(&tv);
44757
44758  ;
44759  return 0;
44760}
44761_ACEOF
44762rm -f conftest.$ac_objext
44763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44764  (eval $ac_compile) 2>conftest.er1
44765  ac_status=$?
44766  grep -v '^ *+' conftest.er1 >conftest.err
44767  rm -f conftest.er1
44768  cat conftest.err >&5
44769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44770  (exit $ac_status); } &&
44771	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
44772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44773  (eval $ac_try) 2>&5
44774  ac_status=$?
44775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44776  (exit $ac_status); }; } &&
44777	 { ac_try='test -s conftest.$ac_objext'
44778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44779  (eval $ac_try) 2>&5
44780  ac_status=$?
44781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44782  (exit $ac_status); }; }; then
44783  wx_cv_func_gettimeofday_has_2_args=no
44784else
44785  echo "$as_me: failed program was:" >&5
44786sed 's/^/| /' conftest.$ac_ext >&5
44787
44788
44789                        { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44790echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44791                        wx_cv_func_gettimeofday_has_2_args=unknown
44792
44793
44794fi
44795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44796
44797fi
44798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44799
44800fi
44801echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44802echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44803
44804        if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44805            cat >>confdefs.h <<\_ACEOF
44806#define WX_GETTIMEOFDAY_NO_TZ 1
44807_ACEOF
44808
44809        fi
44810    fi
44811
44812    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44813fi
44814
44815
44816if test "$wxUSE_SOCKETS" = "yes"; then
44817    if test "$wxUSE_MGL" = "1"; then
44818        { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44819echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44820        wxUSE_SOCKETS="no"
44821    fi
44822fi
44823
44824if test "$wxUSE_SOCKETS" = "yes"; then
44825        if test "$TOOLKIT" != "MSW"; then
44826                echo "$as_me:$LINENO: checking for socket" >&5
44827echo $ECHO_N "checking for socket... $ECHO_C" >&6
44828if test "${ac_cv_func_socket+set}" = set; then
44829  echo $ECHO_N "(cached) $ECHO_C" >&6
44830else
44831  cat >conftest.$ac_ext <<_ACEOF
44832/* confdefs.h.  */
44833_ACEOF
44834cat confdefs.h >>conftest.$ac_ext
44835cat >>conftest.$ac_ext <<_ACEOF
44836/* end confdefs.h.  */
44837/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44838   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44839#define socket innocuous_socket
44840
44841/* System header to define __stub macros and hopefully few prototypes,
44842    which can conflict with char socket (); below.
44843    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44844    <limits.h> exists even on freestanding compilers.  */
44845
44846#ifdef __STDC__
44847# include <limits.h>
44848#else
44849# include <assert.h>
44850#endif
44851
44852#undef socket
44853
44854/* Override any gcc2 internal prototype to avoid an error.  */
44855#ifdef __cplusplus
44856extern "C"
44857{
44858#endif
44859/* We use char because int might match the return type of a gcc2
44860   builtin and then its argument prototype would still apply.  */
44861char socket ();
44862/* The GNU C library defines this for functions which it implements
44863    to always fail with ENOSYS.  Some functions are actually named
44864    something starting with __ and the normal name is an alias.  */
44865#if defined (__stub_socket) || defined (__stub___socket)
44866choke me
44867#else
44868char (*f) () = socket;
44869#endif
44870#ifdef __cplusplus
44871}
44872#endif
44873
44874int
44875main ()
44876{
44877return f != socket;
44878  ;
44879  return 0;
44880}
44881_ACEOF
44882rm -f conftest.$ac_objext conftest$ac_exeext
44883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44884  (eval $ac_link) 2>conftest.er1
44885  ac_status=$?
44886  grep -v '^ *+' conftest.er1 >conftest.err
44887  rm -f conftest.er1
44888  cat conftest.err >&5
44889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44890  (exit $ac_status); } &&
44891	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
44892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44893  (eval $ac_try) 2>&5
44894  ac_status=$?
44895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44896  (exit $ac_status); }; } &&
44897	 { ac_try='test -s conftest$ac_exeext'
44898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44899  (eval $ac_try) 2>&5
44900  ac_status=$?
44901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44902  (exit $ac_status); }; }; then
44903  ac_cv_func_socket=yes
44904else
44905  echo "$as_me: failed program was:" >&5
44906sed 's/^/| /' conftest.$ac_ext >&5
44907
44908ac_cv_func_socket=no
44909fi
44910rm -f conftest.err conftest.$ac_objext \
44911      conftest$ac_exeext conftest.$ac_ext
44912fi
44913echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44914echo "${ECHO_T}$ac_cv_func_socket" >&6
44915if test $ac_cv_func_socket = yes; then
44916  :
44917else
44918
44919                echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44920echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44921if test "${ac_cv_lib_socket_socket+set}" = set; then
44922  echo $ECHO_N "(cached) $ECHO_C" >&6
44923else
44924  ac_check_lib_save_LIBS=$LIBS
44925LIBS="-lsocket  $LIBS"
44926cat >conftest.$ac_ext <<_ACEOF
44927/* confdefs.h.  */
44928_ACEOF
44929cat confdefs.h >>conftest.$ac_ext
44930cat >>conftest.$ac_ext <<_ACEOF
44931/* end confdefs.h.  */
44932
44933/* Override any gcc2 internal prototype to avoid an error.  */
44934#ifdef __cplusplus
44935extern "C"
44936#endif
44937/* We use char because int might match the return type of a gcc2
44938   builtin and then its argument prototype would still apply.  */
44939char socket ();
44940int
44941main ()
44942{
44943socket ();
44944  ;
44945  return 0;
44946}
44947_ACEOF
44948rm -f conftest.$ac_objext conftest$ac_exeext
44949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44950  (eval $ac_link) 2>conftest.er1
44951  ac_status=$?
44952  grep -v '^ *+' conftest.er1 >conftest.err
44953  rm -f conftest.er1
44954  cat conftest.err >&5
44955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44956  (exit $ac_status); } &&
44957	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
44958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44959  (eval $ac_try) 2>&5
44960  ac_status=$?
44961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44962  (exit $ac_status); }; } &&
44963	 { ac_try='test -s conftest$ac_exeext'
44964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44965  (eval $ac_try) 2>&5
44966  ac_status=$?
44967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44968  (exit $ac_status); }; }; then
44969  ac_cv_lib_socket_socket=yes
44970else
44971  echo "$as_me: failed program was:" >&5
44972sed 's/^/| /' conftest.$ac_ext >&5
44973
44974ac_cv_lib_socket_socket=no
44975fi
44976rm -f conftest.err conftest.$ac_objext \
44977      conftest$ac_exeext conftest.$ac_ext
44978LIBS=$ac_check_lib_save_LIBS
44979fi
44980echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44981echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44982if test $ac_cv_lib_socket_socket = yes; then
44983  if test "$INET_LINK" != " -lsocket"; then
44984                        INET_LINK="$INET_LINK -lsocket"
44985                    fi
44986else
44987
44988                        { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44989echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44990                        wxUSE_SOCKETS=no
44991
44992
44993fi
44994
44995
44996
44997fi
44998
44999    fi
45000fi
45001
45002if test "$wxUSE_SOCKETS" = "yes" ; then
45003                if test "$TOOLKIT" != "MSW"; then
45004                                        echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
45005echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
45006if test "${wx_cv_type_getsockname3+set}" = set; then
45007  echo $ECHO_N "(cached) $ECHO_C" >&6
45008else
45009
45010                ac_ext=cc
45011ac_cpp='$CXXCPP $CPPFLAGS'
45012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45015
45016                cat >conftest.$ac_ext <<_ACEOF
45017/* confdefs.h.  */
45018_ACEOF
45019cat confdefs.h >>conftest.$ac_ext
45020cat >>conftest.$ac_ext <<_ACEOF
45021/* end confdefs.h.  */
45022
45023                        #include <sys/types.h>
45024                        #include <sys/socket.h>
45025
45026int
45027main ()
45028{
45029
45030                        socklen_t len;
45031                        getsockname(0, 0, &len);
45032
45033  ;
45034  return 0;
45035}
45036_ACEOF
45037rm -f conftest.$ac_objext
45038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45039  (eval $ac_compile) 2>conftest.er1
45040  ac_status=$?
45041  grep -v '^ *+' conftest.er1 >conftest.err
45042  rm -f conftest.er1
45043  cat conftest.err >&5
45044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45045  (exit $ac_status); } &&
45046	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
45047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45048  (eval $ac_try) 2>&5
45049  ac_status=$?
45050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45051  (exit $ac_status); }; } &&
45052	 { ac_try='test -s conftest.$ac_objext'
45053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45054  (eval $ac_try) 2>&5
45055  ac_status=$?
45056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45057  (exit $ac_status); }; }; then
45058  wx_cv_type_getsockname3=socklen_t
45059else
45060  echo "$as_me: failed program was:" >&5
45061sed 's/^/| /' conftest.$ac_ext >&5
45062
45063
45064                                                                                                                                                                        CFLAGS_OLD="$CFLAGS"
45065                        if test "$GCC" = yes ; then
45066                            CFLAGS="-Werror $CFLAGS"
45067                        fi
45068
45069                        cat >conftest.$ac_ext <<_ACEOF
45070/* confdefs.h.  */
45071_ACEOF
45072cat confdefs.h >>conftest.$ac_ext
45073cat >>conftest.$ac_ext <<_ACEOF
45074/* end confdefs.h.  */
45075
45076                                #include <sys/types.h>
45077                                #include <sys/socket.h>
45078
45079int
45080main ()
45081{
45082
45083                                size_t len;
45084                                getsockname(0, 0, &len);
45085
45086  ;
45087  return 0;
45088}
45089_ACEOF
45090rm -f conftest.$ac_objext
45091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45092  (eval $ac_compile) 2>conftest.er1
45093  ac_status=$?
45094  grep -v '^ *+' conftest.er1 >conftest.err
45095  rm -f conftest.er1
45096  cat conftest.err >&5
45097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45098  (exit $ac_status); } &&
45099	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
45100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45101  (eval $ac_try) 2>&5
45102  ac_status=$?
45103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45104  (exit $ac_status); }; } &&
45105	 { ac_try='test -s conftest.$ac_objext'
45106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45107  (eval $ac_try) 2>&5
45108  ac_status=$?
45109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45110  (exit $ac_status); }; }; then
45111  wx_cv_type_getsockname3=size_t
45112else
45113  echo "$as_me: failed program was:" >&5
45114sed 's/^/| /' conftest.$ac_ext >&5
45115
45116cat >conftest.$ac_ext <<_ACEOF
45117/* confdefs.h.  */
45118_ACEOF
45119cat confdefs.h >>conftest.$ac_ext
45120cat >>conftest.$ac_ext <<_ACEOF
45121/* end confdefs.h.  */
45122
45123                                    #include <sys/types.h>
45124                                    #include <sys/socket.h>
45125
45126int
45127main ()
45128{
45129
45130                                    int len;
45131                                    getsockname(0, 0, &len);
45132
45133  ;
45134  return 0;
45135}
45136_ACEOF
45137rm -f conftest.$ac_objext
45138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45139  (eval $ac_compile) 2>conftest.er1
45140  ac_status=$?
45141  grep -v '^ *+' conftest.er1 >conftest.err
45142  rm -f conftest.er1
45143  cat conftest.err >&5
45144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45145  (exit $ac_status); } &&
45146	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
45147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45148  (eval $ac_try) 2>&5
45149  ac_status=$?
45150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45151  (exit $ac_status); }; } &&
45152	 { ac_try='test -s conftest.$ac_objext'
45153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45154  (eval $ac_try) 2>&5
45155  ac_status=$?
45156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45157  (exit $ac_status); }; }; then
45158  wx_cv_type_getsockname3=int
45159else
45160  echo "$as_me: failed program was:" >&5
45161sed 's/^/| /' conftest.$ac_ext >&5
45162
45163wx_cv_type_getsockname3=unknown
45164
45165fi
45166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45167
45168fi
45169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45170
45171                        CFLAGS="$CFLAGS_OLD"
45172
45173
45174fi
45175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45176                ac_ext=c
45177ac_cpp='$CPP $CPPFLAGS'
45178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45180ac_compiler_gnu=$ac_cv_c_compiler_gnu
45181
45182
45183fi
45184echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
45185echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
45186
45187        if test "$wx_cv_type_getsockname3" = "unknown"; then
45188            wxUSE_SOCKETS=no
45189            { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45190echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45191        else
45192            cat >>confdefs.h <<_ACEOF
45193#define WX_SOCKLEN_T $wx_cv_type_getsockname3
45194_ACEOF
45195
45196        fi
45197                echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
45198echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
45199if test "${wx_cv_type_getsockopt5+set}" = set; then
45200  echo $ECHO_N "(cached) $ECHO_C" >&6
45201else
45202
45203                ac_ext=cc
45204ac_cpp='$CXXCPP $CPPFLAGS'
45205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45208
45209                cat >conftest.$ac_ext <<_ACEOF
45210/* confdefs.h.  */
45211_ACEOF
45212cat confdefs.h >>conftest.$ac_ext
45213cat >>conftest.$ac_ext <<_ACEOF
45214/* end confdefs.h.  */
45215
45216                        #include <sys/types.h>
45217                        #include <sys/socket.h>
45218
45219int
45220main ()
45221{
45222
45223                        socklen_t len;
45224                        getsockopt(0, 0, 0, 0, &len);
45225
45226  ;
45227  return 0;
45228}
45229_ACEOF
45230rm -f conftest.$ac_objext
45231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45232  (eval $ac_compile) 2>conftest.er1
45233  ac_status=$?
45234  grep -v '^ *+' conftest.er1 >conftest.err
45235  rm -f conftest.er1
45236  cat conftest.err >&5
45237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45238  (exit $ac_status); } &&
45239	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
45240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45241  (eval $ac_try) 2>&5
45242  ac_status=$?
45243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45244  (exit $ac_status); }; } &&
45245	 { ac_try='test -s conftest.$ac_objext'
45246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45247  (eval $ac_try) 2>&5
45248  ac_status=$?
45249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45250  (exit $ac_status); }; }; then
45251  wx_cv_type_getsockopt5=socklen_t
45252else
45253  echo "$as_me: failed program was:" >&5
45254sed 's/^/| /' conftest.$ac_ext >&5
45255
45256
45257                                                                                                                                                ac_ext=cc
45258ac_cpp='$CXXCPP $CPPFLAGS'
45259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45262
45263                        cat >conftest.$ac_ext <<_ACEOF
45264/* confdefs.h.  */
45265_ACEOF
45266cat confdefs.h >>conftest.$ac_ext
45267cat >>conftest.$ac_ext <<_ACEOF
45268/* end confdefs.h.  */
45269
45270                                #include <sys/types.h>
45271                                #include <sys/socket.h>
45272
45273int
45274main ()
45275{
45276
45277                                size_t len;
45278                                getsockopt(0, 0, 0, 0, &len);
45279
45280  ;
45281  return 0;
45282}
45283_ACEOF
45284rm -f conftest.$ac_objext
45285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45286  (eval $ac_compile) 2>conftest.er1
45287  ac_status=$?
45288  grep -v '^ *+' conftest.er1 >conftest.err
45289  rm -f conftest.er1
45290  cat conftest.err >&5
45291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45292  (exit $ac_status); } &&
45293	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
45294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45295  (eval $ac_try) 2>&5
45296  ac_status=$?
45297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45298  (exit $ac_status); }; } &&
45299	 { ac_try='test -s conftest.$ac_objext'
45300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45301  (eval $ac_try) 2>&5
45302  ac_status=$?
45303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45304  (exit $ac_status); }; }; then
45305  wx_cv_type_getsockopt5=size_t
45306else
45307  echo "$as_me: failed program was:" >&5
45308sed 's/^/| /' conftest.$ac_ext >&5
45309
45310cat >conftest.$ac_ext <<_ACEOF
45311/* confdefs.h.  */
45312_ACEOF
45313cat confdefs.h >>conftest.$ac_ext
45314cat >>conftest.$ac_ext <<_ACEOF
45315/* end confdefs.h.  */
45316
45317                                    #include <sys/types.h>
45318                                    #include <sys/socket.h>
45319
45320int
45321main ()
45322{
45323
45324                                    int len;
45325                                    getsockopt(0, 0, 0, 0, &len);
45326
45327  ;
45328  return 0;
45329}
45330_ACEOF
45331rm -f conftest.$ac_objext
45332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45333  (eval $ac_compile) 2>conftest.er1
45334  ac_status=$?
45335  grep -v '^ *+' conftest.er1 >conftest.err
45336  rm -f conftest.er1
45337  cat conftest.err >&5
45338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45339  (exit $ac_status); } &&
45340	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
45341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45342  (eval $ac_try) 2>&5
45343  ac_status=$?
45344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45345  (exit $ac_status); }; } &&
45346	 { ac_try='test -s conftest.$ac_objext'
45347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45348  (eval $ac_try) 2>&5
45349  ac_status=$?
45350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45351  (exit $ac_status); }; }; then
45352  wx_cv_type_getsockopt5=int
45353else
45354  echo "$as_me: failed program was:" >&5
45355sed 's/^/| /' conftest.$ac_ext >&5
45356
45357wx_cv_type_getsockopt5=unknown
45358
45359fi
45360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45361
45362fi
45363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45364                        ac_ext=cc
45365ac_cpp='$CXXCPP $CPPFLAGS'
45366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45369
45370
45371
45372fi
45373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45374                ac_ext=c
45375ac_cpp='$CPP $CPPFLAGS'
45376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45378ac_compiler_gnu=$ac_cv_c_compiler_gnu
45379
45380
45381fi
45382echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45383echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
45384
45385        if test "$wx_cv_type_getsockopt5" = "unknown"; then
45386            wxUSE_SOCKETS=no
45387            { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45388echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45389        else
45390            cat >>confdefs.h <<_ACEOF
45391#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
45392_ACEOF
45393
45394        fi
45395    fi
45396fi
45397
45398if test "$wxUSE_SOCKETS" = "yes" ; then
45399    cat >>confdefs.h <<\_ACEOF
45400#define wxUSE_SOCKETS 1
45401_ACEOF
45402
45403    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45404fi
45405
45406if test "$wxUSE_PROTOCOL" = "yes"; then
45407    if test "$wxUSE_SOCKETS" != "yes"; then
45408        { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45409echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45410        wxUSE_PROTOCOL=no
45411    fi
45412fi
45413
45414if test "$wxUSE_PROTOCOL" = "yes"; then
45415    cat >>confdefs.h <<\_ACEOF
45416#define wxUSE_PROTOCOL 1
45417_ACEOF
45418
45419
45420    if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45421        cat >>confdefs.h <<\_ACEOF
45422#define wxUSE_PROTOCOL_HTTP 1
45423_ACEOF
45424
45425    fi
45426    if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45427        cat >>confdefs.h <<\_ACEOF
45428#define wxUSE_PROTOCOL_FTP 1
45429_ACEOF
45430
45431    fi
45432    if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45433        cat >>confdefs.h <<\_ACEOF
45434#define wxUSE_PROTOCOL_FILE 1
45435_ACEOF
45436
45437    fi
45438else
45439    if test "$wxUSE_FS_INET" = "yes"; then
45440        { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45441echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45442        wxUSE_FS_INET="no"
45443    fi
45444fi
45445
45446if test "$wxUSE_URL" = "yes"; then
45447    if test "$wxUSE_PROTOCOL" != "yes"; then
45448        { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45449echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45450        wxUSE_URL=no
45451    fi
45452    if test "$wxUSE_URL" = "yes"; then
45453        cat >>confdefs.h <<\_ACEOF
45454#define wxUSE_URL 1
45455_ACEOF
45456
45457    fi
45458fi
45459
45460if test "$wxUSE_VARIANT" = "yes"; then
45461    cat >>confdefs.h <<\_ACEOF
45462#define wxUSE_VARIANT 1
45463_ACEOF
45464
45465fi
45466
45467if test "$wxUSE_FS_INET" = "yes"; then
45468  cat >>confdefs.h <<\_ACEOF
45469#define wxUSE_FS_INET 1
45470_ACEOF
45471
45472fi
45473
45474
45475if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45476    wxUSE_JOYSTICK=no
45477
45478        if test "$TOOLKIT" = "MSW"; then
45479        wxUSE_JOYSTICK=yes
45480
45481        elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
45482        if test "$USE_DARWIN" = 1; then
45483                        echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45484echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
45485            ac_ext=cc
45486ac_cpp='$CXXCPP $CPPFLAGS'
45487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45490
45491            cat >conftest.$ac_ext <<_ACEOF
45492/* confdefs.h.  */
45493_ACEOF
45494cat confdefs.h >>conftest.$ac_ext
45495cat >>conftest.$ac_ext <<_ACEOF
45496/* end confdefs.h.  */
45497 #include <IOKit/hid/IOHIDLib.h>
45498int
45499main ()
45500{
45501 IOHIDQueueInterface *qi = NULL;
45502                              IOHIDCallbackFunction cb = NULL;
45503                              qi->setEventCallout(NULL, cb, NULL, NULL);
45504  ;
45505  return 0;
45506}
45507_ACEOF
45508rm -f conftest.$ac_objext
45509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45510  (eval $ac_compile) 2>conftest.er1
45511  ac_status=$?
45512  grep -v '^ *+' conftest.er1 >conftest.err
45513  rm -f conftest.er1
45514  cat conftest.err >&5
45515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45516  (exit $ac_status); } &&
45517	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
45518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45519  (eval $ac_try) 2>&5
45520  ac_status=$?
45521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45522  (exit $ac_status); }; } &&
45523	 { ac_try='test -s conftest.$ac_objext'
45524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45525  (eval $ac_try) 2>&5
45526  ac_status=$?
45527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45528  (exit $ac_status); }; }; then
45529   wxUSE_JOYSTICK=yes
45530
45531else
45532  echo "$as_me: failed program was:" >&5
45533sed 's/^/| /' conftest.$ac_ext >&5
45534
45535fi
45536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45537            ac_ext=c
45538ac_cpp='$CPP $CPPFLAGS'
45539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45541ac_compiler_gnu=$ac_cv_c_compiler_gnu
45542
45543            echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45544echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
45545        fi
45546
45547        else
45548                if test "$wxUSE_MGL" != "1"; then
45549
45550for ac_header in linux/joystick.h
45551do
45552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45553echo "$as_me:$LINENO: checking for $ac_header" >&5
45554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45555if eval "test \"\${$as_ac_Header+set}\" = set"; then
45556  echo $ECHO_N "(cached) $ECHO_C" >&6
45557else
45558  cat >conftest.$ac_ext <<_ACEOF
45559/* confdefs.h.  */
45560_ACEOF
45561cat confdefs.h >>conftest.$ac_ext
45562cat >>conftest.$ac_ext <<_ACEOF
45563/* end confdefs.h.  */
45564$ac_includes_default
45565
45566#include <$ac_header>
45567_ACEOF
45568rm -f conftest.$ac_objext
45569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45570  (eval $ac_compile) 2>conftest.er1
45571  ac_status=$?
45572  grep -v '^ *+' conftest.er1 >conftest.err
45573  rm -f conftest.er1
45574  cat conftest.err >&5
45575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45576  (exit $ac_status); } &&
45577	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
45578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45579  (eval $ac_try) 2>&5
45580  ac_status=$?
45581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45582  (exit $ac_status); }; } &&
45583	 { ac_try='test -s conftest.$ac_objext'
45584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45585  (eval $ac_try) 2>&5
45586  ac_status=$?
45587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45588  (exit $ac_status); }; }; then
45589  eval "$as_ac_Header=yes"
45590else
45591  echo "$as_me: failed program was:" >&5
45592sed 's/^/| /' conftest.$ac_ext >&5
45593
45594eval "$as_ac_Header=no"
45595fi
45596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45597fi
45598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45600if test `eval echo '${'$as_ac_Header'}'` = yes; then
45601  cat >>confdefs.h <<_ACEOF
45602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45603_ACEOF
45604 wxUSE_JOYSTICK=yes
45605fi
45606
45607done
45608
45609        fi
45610    fi
45611
45612    if test "$wxUSE_JOYSTICK" = "yes"; then
45613        cat >>confdefs.h <<\_ACEOF
45614#define wxUSE_JOYSTICK 1
45615_ACEOF
45616
45617        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45618    else
45619        { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45620echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45621    fi
45622fi
45623
45624
45625
45626if test "$wxUSE_FONTMAP" = "yes" ; then
45627  cat >>confdefs.h <<\_ACEOF
45628#define wxUSE_FONTMAP 1
45629_ACEOF
45630
45631fi
45632
45633if test "$wxUSE_UNICODE" = "yes" ; then
45634  cat >>confdefs.h <<\_ACEOF
45635#define wxUSE_UNICODE 1
45636_ACEOF
45637
45638
45639  if test "$USE_WIN32" != 1; then
45640      wxUSE_UNICODE_MSLU=no
45641  fi
45642
45643  if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45644        echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45645echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
45646if test "${ac_cv_lib_unicows_main+set}" = set; then
45647  echo $ECHO_N "(cached) $ECHO_C" >&6
45648else
45649  ac_check_lib_save_LIBS=$LIBS
45650LIBS="-lunicows  $LIBS"
45651cat >conftest.$ac_ext <<_ACEOF
45652/* confdefs.h.  */
45653_ACEOF
45654cat confdefs.h >>conftest.$ac_ext
45655cat >>conftest.$ac_ext <<_ACEOF
45656/* end confdefs.h.  */
45657
45658
45659int
45660main ()
45661{
45662main ();
45663  ;
45664  return 0;
45665}
45666_ACEOF
45667rm -f conftest.$ac_objext conftest$ac_exeext
45668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45669  (eval $ac_link) 2>conftest.er1
45670  ac_status=$?
45671  grep -v '^ *+' conftest.er1 >conftest.err
45672  rm -f conftest.er1
45673  cat conftest.err >&5
45674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45675  (exit $ac_status); } &&
45676	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
45677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45678  (eval $ac_try) 2>&5
45679  ac_status=$?
45680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45681  (exit $ac_status); }; } &&
45682	 { ac_try='test -s conftest$ac_exeext'
45683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45684  (eval $ac_try) 2>&5
45685  ac_status=$?
45686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45687  (exit $ac_status); }; }; then
45688  ac_cv_lib_unicows_main=yes
45689else
45690  echo "$as_me: failed program was:" >&5
45691sed 's/^/| /' conftest.$ac_ext >&5
45692
45693ac_cv_lib_unicows_main=no
45694fi
45695rm -f conftest.err conftest.$ac_objext \
45696      conftest$ac_exeext conftest.$ac_ext
45697LIBS=$ac_check_lib_save_LIBS
45698fi
45699echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45700echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45701if test $ac_cv_lib_unicows_main = yes; then
45702
45703                cat >>confdefs.h <<\_ACEOF
45704#define wxUSE_UNICODE_MSLU 1
45705_ACEOF
45706
45707
45708else
45709
45710                { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45711                             Applications will only run on Windows NT/2000/XP!" >&5
45712echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45713                             Applications will only run on Windows NT/2000/XP!" >&2;}
45714                wxUSE_UNICODE_MSLU=no
45715
45716fi
45717
45718    fi
45719fi
45720
45721if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45722  cat >>confdefs.h <<\_ACEOF
45723#define wxUSE_EXPERIMENTAL_PRINTF 1
45724_ACEOF
45725
45726fi
45727
45728
45729if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45730  cat >>confdefs.h <<\_ACEOF
45731#define wxUSE_POSTSCRIPT 1
45732_ACEOF
45733
45734fi
45735
45736cat >>confdefs.h <<\_ACEOF
45737#define wxUSE_AFM_FOR_POSTSCRIPT 1
45738_ACEOF
45739
45740
45741cat >>confdefs.h <<\_ACEOF
45742#define wxUSE_NORMALIZED_PS_FONTS 1
45743_ACEOF
45744
45745
45746
45747if test "$wxUSE_CONSTRAINTS" = "yes"; then
45748    cat >>confdefs.h <<\_ACEOF
45749#define wxUSE_CONSTRAINTS 1
45750_ACEOF
45751
45752    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45753fi
45754
45755if test "$wxUSE_MDI" = "yes"; then
45756    cat >>confdefs.h <<\_ACEOF
45757#define wxUSE_MDI 1
45758_ACEOF
45759
45760
45761    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45762        cat >>confdefs.h <<\_ACEOF
45763#define wxUSE_MDI_ARCHITECTURE 1
45764_ACEOF
45765
45766        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45767    fi
45768fi
45769
45770if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45771    cat >>confdefs.h <<\_ACEOF
45772#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45773_ACEOF
45774
45775    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45776    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45777        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45778    fi
45779fi
45780
45781if test "$wxUSE_HELP" = "yes"; then
45782    cat >>confdefs.h <<\_ACEOF
45783#define wxUSE_HELP 1
45784_ACEOF
45785
45786    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45787
45788    if test "$wxUSE_MSW" = 1; then
45789      if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45790        cat >>confdefs.h <<\_ACEOF
45791#define wxUSE_MS_HTML_HELP 1
45792_ACEOF
45793
45794      fi
45795    fi
45796
45797    if test "$wxUSE_WXHTML_HELP" = "yes"; then
45798      if test "$wxUSE_HTML" = "yes"; then
45799        cat >>confdefs.h <<\_ACEOF
45800#define wxUSE_WXHTML_HELP 1
45801_ACEOF
45802
45803      else
45804        { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45805echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45806        wxUSE_WXHTML_HELP=no
45807      fi
45808    fi
45809fi
45810
45811if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45812    if test "$wxUSE_CONSTRAINTS" != "yes"; then
45813        { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45814echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45815    else
45816        cat >>confdefs.h <<\_ACEOF
45817#define wxUSE_PRINTING_ARCHITECTURE 1
45818_ACEOF
45819
45820    fi
45821    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45822fi
45823
45824if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
45825    { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45826echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45827   { (exit 1); exit 1; }; }
45828fi
45829
45830
45831if test "$wxUSE_METAFILE" = "yes"; then
45832    if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45833        { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45834echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45835        wxUSE_METAFILE=no
45836    fi
45837fi
45838
45839
45840if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45841                          -o "$wxUSE_CLIPBOARD"     = "yes" \
45842                          -o "$wxUSE_OLE"     = "yes" \
45843                          -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45844
45845for ac_header in ole2.h
45846do
45847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45848echo "$as_me:$LINENO: checking for $ac_header" >&5
45849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45850if eval "test \"\${$as_ac_Header+set}\" = set"; then
45851  echo $ECHO_N "(cached) $ECHO_C" >&6
45852else
45853  cat >conftest.$ac_ext <<_ACEOF
45854/* confdefs.h.  */
45855_ACEOF
45856cat confdefs.h >>conftest.$ac_ext
45857cat >>conftest.$ac_ext <<_ACEOF
45858/* end confdefs.h.  */
45859
45860
45861#include <$ac_header>
45862_ACEOF
45863rm -f conftest.$ac_objext
45864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45865  (eval $ac_compile) 2>conftest.er1
45866  ac_status=$?
45867  grep -v '^ *+' conftest.er1 >conftest.err
45868  rm -f conftest.er1
45869  cat conftest.err >&5
45870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45871  (exit $ac_status); } &&
45872	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
45873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45874  (eval $ac_try) 2>&5
45875  ac_status=$?
45876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45877  (exit $ac_status); }; } &&
45878	 { ac_try='test -s conftest.$ac_objext'
45879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45880  (eval $ac_try) 2>&5
45881  ac_status=$?
45882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45883  (exit $ac_status); }; }; then
45884  eval "$as_ac_Header=yes"
45885else
45886  echo "$as_me: failed program was:" >&5
45887sed 's/^/| /' conftest.$ac_ext >&5
45888
45889eval "$as_ac_Header=no"
45890fi
45891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45892fi
45893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45895if test `eval echo '${'$as_ac_Header'}'` = yes; then
45896  cat >>confdefs.h <<_ACEOF
45897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45898_ACEOF
45899
45900fi
45901
45902done
45903
45904
45905    if test "$ac_cv_header_ole2_h" = "yes" ; then
45906        if test "$GCC" = yes ; then
45907            echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45908echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45909            cat >conftest.$ac_ext <<_ACEOF
45910/* confdefs.h.  */
45911_ACEOF
45912cat confdefs.h >>conftest.$ac_ext
45913cat >>conftest.$ac_ext <<_ACEOF
45914/* end confdefs.h.  */
45915#include <windows.h>
45916                            #include <ole2.h>
45917int
45918main ()
45919{
45920
45921  ;
45922  return 0;
45923}
45924_ACEOF
45925rm -f conftest.$ac_objext
45926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45927  (eval $ac_compile) 2>conftest.er1
45928  ac_status=$?
45929  grep -v '^ *+' conftest.er1 >conftest.err
45930  rm -f conftest.er1
45931  cat conftest.err >&5
45932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45933  (exit $ac_status); } &&
45934	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
45935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45936  (eval $ac_try) 2>&5
45937  ac_status=$?
45938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45939  (exit $ac_status); }; } &&
45940	 { ac_try='test -s conftest.$ac_objext'
45941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45942  (eval $ac_try) 2>&5
45943  ac_status=$?
45944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45945  (exit $ac_status); }; }; then
45946  echo "$as_me:$LINENO: result: no" >&5
45947echo "${ECHO_T}no" >&6
45948else
45949  echo "$as_me: failed program was:" >&5
45950sed 's/^/| /' conftest.$ac_ext >&5
45951
45952echo "$as_me:$LINENO: result: yes" >&5
45953echo "${ECHO_T}yes" >&6
45954                            WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45955fi
45956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45957            LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45958            if test "$wxUSE_OLE" = "yes" ; then
45959                cat >>confdefs.h <<\_ACEOF
45960#define wxUSE_OLE 1
45961_ACEOF
45962
45963                cat >>confdefs.h <<\_ACEOF
45964#define wxUSE_OLE_AUTOMATION 1
45965_ACEOF
45966
45967                cat >>confdefs.h <<\_ACEOF
45968#define wxUSE_ACTIVEX 1
45969_ACEOF
45970
45971                SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45972            fi
45973        fi
45974
45975                if test "$wxUSE_DATAOBJ" = "yes" ; then
45976            cat >>confdefs.h <<\_ACEOF
45977#define wxUSE_DATAOBJ 1
45978_ACEOF
45979
45980        fi
45981    else
45982        { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45983echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45984
45985        wxUSE_CLIPBOARD=no
45986        wxUSE_DRAG_AND_DROP=no
45987        wxUSE_DATAOBJ=no
45988        wxUSE_OLE=no
45989    fi
45990
45991    if test "$wxUSE_METAFILE" = "yes"; then
45992        cat >>confdefs.h <<\_ACEOF
45993#define wxUSE_METAFILE 1
45994_ACEOF
45995
45996
45997                cat >>confdefs.h <<\_ACEOF
45998#define wxUSE_ENH_METAFILE 1
45999_ACEOF
46000
46001    fi
46002fi
46003
46004if test "$wxUSE_IPC" = "yes"; then
46005    if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
46006        { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46007echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
46008        wxUSE_IPC=no
46009    fi
46010
46011    if test "$wxUSE_IPC" = "yes"; then
46012        cat >>confdefs.h <<\_ACEOF
46013#define wxUSE_IPC 1
46014_ACEOF
46015
46016        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46017    fi
46018fi
46019
46020if test "$wxUSE_DATAOBJ" = "yes"; then
46021    if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46022        { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
46023echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
46024        wxUSE_DATAOBJ=no
46025    else
46026        cat >>confdefs.h <<\_ACEOF
46027#define wxUSE_DATAOBJ 1
46028_ACEOF
46029
46030    fi
46031else
46032    { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46033echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
46034    wxUSE_CLIPBOARD=no
46035    wxUSE_DRAG_AND_DROP=no
46036fi
46037
46038if test "$wxUSE_CLIPBOARD" = "yes"; then
46039    if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46040        { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
46041echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
46042        wxUSE_CLIPBOARD=no
46043    fi
46044
46045    if test "$wxUSE_CLIPBOARD" = "yes"; then
46046        cat >>confdefs.h <<\_ACEOF
46047#define wxUSE_CLIPBOARD 1
46048_ACEOF
46049
46050    fi
46051fi
46052
46053if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
46054    if test "$wxUSE_GTK" = 1; then
46055        if test "$WXGTK12" != 1; then
46056            { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
46057echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
46058            wxUSE_DRAG_AND_DROP=no
46059        fi
46060    fi
46061
46062    if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
46063            "$wxUSE_DFB" = 1; then
46064        { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
46065echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
46066        wxUSE_DRAG_AND_DROP=no
46067    fi
46068
46069    if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
46070        cat >>confdefs.h <<\_ACEOF
46071#define wxUSE_DRAG_AND_DROP 1
46072_ACEOF
46073
46074    fi
46075
46076fi
46077
46078if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
46079    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
46080fi
46081
46082if test "$wxUSE_SPLINES" = "yes" ; then
46083  cat >>confdefs.h <<\_ACEOF
46084#define wxUSE_SPLINES 1
46085_ACEOF
46086
46087fi
46088
46089if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
46090  cat >>confdefs.h <<\_ACEOF
46091#define wxUSE_MOUSEWHEEL 1
46092_ACEOF
46093
46094fi
46095
46096
46097USES_CONTROLS=0
46098if test "$wxUSE_CONTROLS" = "yes"; then
46099  USES_CONTROLS=1
46100fi
46101
46102if test "$wxUSE_ACCEL" = "yes"; then
46103  cat >>confdefs.h <<\_ACEOF
46104#define wxUSE_ACCEL 1
46105_ACEOF
46106
46107  USES_CONTROLS=1
46108fi
46109
46110if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
46111  cat >>confdefs.h <<\_ACEOF
46112#define wxUSE_ANIMATIONCTRL 1
46113_ACEOF
46114
46115  USES_CONTROLS=1
46116  SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46117fi
46118
46119if test "$wxUSE_BUTTON" = "yes"; then
46120  cat >>confdefs.h <<\_ACEOF
46121#define wxUSE_BUTTON 1
46122_ACEOF
46123
46124  USES_CONTROLS=1
46125fi
46126
46127if test "$wxUSE_BMPBUTTON" = "yes"; then
46128  cat >>confdefs.h <<\_ACEOF
46129#define wxUSE_BMPBUTTON 1
46130_ACEOF
46131
46132  USES_CONTROLS=1
46133fi
46134
46135if test "$wxUSE_CALCTRL" = "yes"; then
46136  cat >>confdefs.h <<\_ACEOF
46137#define wxUSE_CALENDARCTRL 1
46138_ACEOF
46139
46140  USES_CONTROLS=1
46141  SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46142fi
46143
46144if test "$wxUSE_CARET" = "yes"; then
46145  cat >>confdefs.h <<\_ACEOF
46146#define wxUSE_CARET 1
46147_ACEOF
46148
46149  USES_CONTROLS=1
46150  SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46151fi
46152
46153if test "$wxUSE_COLLPANE" = "yes"; then
46154    cat >>confdefs.h <<\_ACEOF
46155#define wxUSE_COLLPANE 1
46156_ACEOF
46157
46158    USES_CONTROLS=1
46159    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46160fi
46161
46162if test "$wxUSE_COMBOBOX" = "yes"; then
46163  cat >>confdefs.h <<\_ACEOF
46164#define wxUSE_COMBOBOX 1
46165_ACEOF
46166
46167  USES_CONTROLS=1
46168fi
46169
46170if test "$wxUSE_COMBOCTRL" = "yes"; then
46171  cat >>confdefs.h <<\_ACEOF
46172#define wxUSE_COMBOCTRL 1
46173_ACEOF
46174
46175  USES_CONTROLS=1
46176fi
46177
46178if test "$wxUSE_CHOICE" = "yes"; then
46179  cat >>confdefs.h <<\_ACEOF
46180#define wxUSE_CHOICE 1
46181_ACEOF
46182
46183  USES_CONTROLS=1
46184fi
46185
46186if test "$wxUSE_CHOICEBOOK" = "yes"; then
46187    cat >>confdefs.h <<\_ACEOF
46188#define wxUSE_CHOICEBOOK 1
46189_ACEOF
46190
46191    USES_CONTROLS=1
46192fi
46193
46194if test "$wxUSE_CHECKBOX" = "yes"; then
46195  cat >>confdefs.h <<\_ACEOF
46196#define wxUSE_CHECKBOX 1
46197_ACEOF
46198
46199  USES_CONTROLS=1
46200fi
46201
46202if test "$wxUSE_CHECKLST" = "yes"; then
46203  cat >>confdefs.h <<\_ACEOF
46204#define wxUSE_CHECKLISTBOX 1
46205_ACEOF
46206
46207  USES_CONTROLS=1
46208  SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
46209fi
46210
46211if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46212  cat >>confdefs.h <<\_ACEOF
46213#define wxUSE_COLOURPICKERCTRL 1
46214_ACEOF
46215
46216  USES_CONTROLS=1
46217fi
46218
46219if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46220  cat >>confdefs.h <<\_ACEOF
46221#define wxUSE_DATEPICKCTRL 1
46222_ACEOF
46223
46224  USES_CONTROLS=1
46225fi
46226
46227if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46228  cat >>confdefs.h <<\_ACEOF
46229#define wxUSE_DIRPICKERCTRL 1
46230_ACEOF
46231
46232  USES_CONTROLS=1
46233fi
46234
46235if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46236  cat >>confdefs.h <<\_ACEOF
46237#define wxUSE_FILEPICKERCTRL 1
46238_ACEOF
46239
46240  USES_CONTROLS=1
46241fi
46242
46243if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46244  cat >>confdefs.h <<\_ACEOF
46245#define wxUSE_FONTPICKERCTRL 1
46246_ACEOF
46247
46248  USES_CONTROLS=1
46249fi
46250
46251if test "$wxUSE_DISPLAY" = "yes"; then
46252    if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
46253        { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
46254echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
46255        wxUSE_DISPLAY=no
46256    else
46257        cat >>confdefs.h <<\_ACEOF
46258#define wxUSE_DISPLAY 1
46259_ACEOF
46260
46261        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
46262    fi
46263fi
46264
46265if test "$wxUSE_DETECT_SM" = "yes"; then
46266    cat >>confdefs.h <<\_ACEOF
46267#define wxUSE_DETECT_SM 1
46268_ACEOF
46269
46270fi
46271
46272if test "$wxUSE_GAUGE" = "yes"; then
46273  cat >>confdefs.h <<\_ACEOF
46274#define wxUSE_GAUGE 1
46275_ACEOF
46276
46277  USES_CONTROLS=1
46278fi
46279
46280if test "$wxUSE_GRID" = "yes"; then
46281  cat >>confdefs.h <<\_ACEOF
46282#define wxUSE_GRID 1
46283_ACEOF
46284
46285  USES_CONTROLS=1
46286  SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46287fi
46288
46289if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46290  cat >>confdefs.h <<\_ACEOF
46291#define wxUSE_HYPERLINKCTRL 1
46292_ACEOF
46293
46294  USES_CONTROLS=1
46295fi
46296
46297if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46298  cat >>confdefs.h <<\_ACEOF
46299#define wxUSE_BITMAPCOMBOBOX 1
46300_ACEOF
46301
46302  USES_CONTROLS=1
46303fi
46304
46305if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46306  cat >>confdefs.h <<\_ACEOF
46307#define wxUSE_DATAVIEWCTRL 1
46308_ACEOF
46309
46310  USES_CONTROLS=1
46311  SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46312fi
46313
46314if test "$wxUSE_IMAGLIST" = "yes"; then
46315    cat >>confdefs.h <<\_ACEOF
46316#define wxUSE_IMAGLIST 1
46317_ACEOF
46318
46319fi
46320
46321if test "$wxUSE_LISTBOOK" = "yes"; then
46322    cat >>confdefs.h <<\_ACEOF
46323#define wxUSE_LISTBOOK 1
46324_ACEOF
46325
46326    USES_CONTROLS=1
46327fi
46328
46329if test "$wxUSE_LISTBOX" = "yes"; then
46330    cat >>confdefs.h <<\_ACEOF
46331#define wxUSE_LISTBOX 1
46332_ACEOF
46333
46334    USES_CONTROLS=1
46335    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
46336fi
46337
46338if test "$wxUSE_LISTCTRL" = "yes"; then
46339    if test "$wxUSE_IMAGLIST" = "yes"; then
46340        cat >>confdefs.h <<\_ACEOF
46341#define wxUSE_LISTCTRL 1
46342_ACEOF
46343
46344        USES_CONTROLS=1
46345        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46346    else
46347        { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46348echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46349    fi
46350fi
46351
46352if test "$wxUSE_NOTEBOOK" = "yes"; then
46353    cat >>confdefs.h <<\_ACEOF
46354#define wxUSE_NOTEBOOK 1
46355_ACEOF
46356
46357    USES_CONTROLS=1
46358    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46359fi
46360
46361if test "$wxUSE_ODCOMBOBOX" = "yes"; then
46362  cat >>confdefs.h <<\_ACEOF
46363#define wxUSE_ODCOMBOBOX 1
46364_ACEOF
46365
46366  USES_CONTROLS=1
46367  SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46368fi
46369
46370
46371if test "$wxUSE_RADIOBOX" = "yes"; then
46372    cat >>confdefs.h <<\_ACEOF
46373#define wxUSE_RADIOBOX 1
46374_ACEOF
46375
46376    USES_CONTROLS=1
46377fi
46378
46379if test "$wxUSE_RADIOBTN" = "yes"; then
46380    cat >>confdefs.h <<\_ACEOF
46381#define wxUSE_RADIOBTN 1
46382_ACEOF
46383
46384    USES_CONTROLS=1
46385fi
46386
46387if test "$wxUSE_SASH" = "yes"; then
46388    cat >>confdefs.h <<\_ACEOF
46389#define wxUSE_SASH 1
46390_ACEOF
46391
46392    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46393fi
46394
46395if test "$wxUSE_SCROLLBAR" = "yes"; then
46396    cat >>confdefs.h <<\_ACEOF
46397#define wxUSE_SCROLLBAR 1
46398_ACEOF
46399
46400    USES_CONTROLS=1
46401    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
46402fi
46403
46404if test "$wxUSE_SEARCHCTRL" = "yes"; then
46405    cat >>confdefs.h <<\_ACEOF
46406#define wxUSE_SEARCHCTRL 1
46407_ACEOF
46408
46409    USES_CONTROLS=1
46410fi
46411
46412if test "$wxUSE_SLIDER" = "yes"; then
46413    cat >>confdefs.h <<\_ACEOF
46414#define wxUSE_SLIDER 1
46415_ACEOF
46416
46417    USES_CONTROLS=1
46418fi
46419
46420if test "$wxUSE_SPINBTN" = "yes"; then
46421    cat >>confdefs.h <<\_ACEOF
46422#define wxUSE_SPINBTN 1
46423_ACEOF
46424
46425    USES_CONTROLS=1
46426fi
46427
46428if test "$wxUSE_SPINCTRL" = "yes"; then
46429    cat >>confdefs.h <<\_ACEOF
46430#define wxUSE_SPINCTRL 1
46431_ACEOF
46432
46433    USES_CONTROLS=1
46434fi
46435
46436if test "$wxUSE_SPLITTER" = "yes"; then
46437    cat >>confdefs.h <<\_ACEOF
46438#define wxUSE_SPLITTER 1
46439_ACEOF
46440
46441    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46442fi
46443
46444if test "$wxUSE_STATBMP" = "yes"; then
46445    cat >>confdefs.h <<\_ACEOF
46446#define wxUSE_STATBMP 1
46447_ACEOF
46448
46449    USES_CONTROLS=1
46450fi
46451
46452if test "$wxUSE_STATBOX" = "yes"; then
46453    cat >>confdefs.h <<\_ACEOF
46454#define wxUSE_STATBOX 1
46455_ACEOF
46456
46457    USES_CONTROLS=1
46458fi
46459
46460if test "$wxUSE_STATTEXT" = "yes"; then
46461    cat >>confdefs.h <<\_ACEOF
46462#define wxUSE_STATTEXT 1
46463_ACEOF
46464
46465    USES_CONTROLS=1
46466fi
46467
46468if test "$wxUSE_STATLINE" = "yes"; then
46469    cat >>confdefs.h <<\_ACEOF
46470#define wxUSE_STATLINE 1
46471_ACEOF
46472
46473    USES_CONTROLS=1
46474fi
46475
46476if test "$wxUSE_STATUSBAR" = "yes"; then
46477        cat >>confdefs.h <<\_ACEOF
46478#define wxUSE_NATIVE_STATUSBAR 1
46479_ACEOF
46480
46481    cat >>confdefs.h <<\_ACEOF
46482#define wxUSE_STATUSBAR 1
46483_ACEOF
46484
46485    USES_CONTROLS=1
46486
46487    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46488fi
46489
46490if test "$wxUSE_TAB_DIALOG" = "yes"; then
46491    cat >>confdefs.h <<\_ACEOF
46492#define wxUSE_TAB_DIALOG 1
46493_ACEOF
46494
46495fi
46496
46497if test "$wxUSE_TEXTCTRL" = "yes"; then
46498    cat >>confdefs.h <<\_ACEOF
46499#define wxUSE_TEXTCTRL 1
46500_ACEOF
46501
46502    USES_CONTROLS=1
46503    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46504
46505            cat >>confdefs.h <<\_ACEOF
46506#define wxUSE_RICHEDIT 1
46507_ACEOF
46508
46509    cat >>confdefs.h <<\_ACEOF
46510#define wxUSE_RICHEDIT2 1
46511_ACEOF
46512
46513fi
46514
46515if test "$wxUSE_TOGGLEBTN" = "yes"; then
46516    if test "$wxUSE_COCOA" = 1 ; then
46517        { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46518echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46519        wxUSE_TOGGLEBTN=no
46520    fi
46521
46522    if test "$wxUSE_TOGGLEBTN" = "yes"; then
46523        cat >>confdefs.h <<\_ACEOF
46524#define wxUSE_TOGGLEBTN 1
46525_ACEOF
46526
46527        USES_CONTROLS=1
46528    fi
46529fi
46530
46531if test "$wxUSE_TOOLBAR" = "yes"; then
46532    cat >>confdefs.h <<\_ACEOF
46533#define wxUSE_TOOLBAR 1
46534_ACEOF
46535
46536    USES_CONTROLS=1
46537
46538    if test "$wxUSE_UNIVERSAL" = "yes"; then
46539        wxUSE_TOOLBAR_NATIVE="no"
46540    else
46541        wxUSE_TOOLBAR_NATIVE="yes"
46542        cat >>confdefs.h <<\_ACEOF
46543#define wxUSE_TOOLBAR_NATIVE 1
46544_ACEOF
46545
46546    fi
46547
46548    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46549fi
46550
46551if test "$wxUSE_TOOLTIPS" = "yes"; then
46552    if test "$wxUSE_MOTIF" = 1; then
46553        { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46554echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46555    else
46556        if test "$wxUSE_UNIVERSAL" = "yes"; then
46557            { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46558echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46559        else
46560            cat >>confdefs.h <<\_ACEOF
46561#define wxUSE_TOOLTIPS 1
46562_ACEOF
46563
46564        fi
46565    fi
46566fi
46567
46568if test "$wxUSE_TREEBOOK" = "yes"; then
46569    cat >>confdefs.h <<\_ACEOF
46570#define wxUSE_TREEBOOK 1
46571_ACEOF
46572
46573    USES_CONTROLS=1
46574fi
46575
46576if test "$wxUSE_TOOLBOOK" = "yes"; then
46577    cat >>confdefs.h <<\_ACEOF
46578#define wxUSE_TOOLBOOK 1
46579_ACEOF
46580
46581    USES_CONTROLS=1
46582fi
46583
46584if test "$wxUSE_TREECTRL" = "yes"; then
46585    if test "$wxUSE_IMAGLIST" = "yes"; then
46586        cat >>confdefs.h <<\_ACEOF
46587#define wxUSE_TREECTRL 1
46588_ACEOF
46589
46590        USES_CONTROLS=1
46591        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46592    else
46593        { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46594echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46595    fi
46596fi
46597
46598if test "$wxUSE_POPUPWIN" = "yes"; then
46599    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_PM" = 1 \
46600            -o "$wxUSE_DFB" = 1; then
46601        { echo "$as_me:$LINENO: WARNING: Popup window not yet supported on this platform... disabled" >&5
46602echo "$as_me: WARNING: Popup window not yet supported on this platform... disabled" >&2;}
46603    else
46604        cat >>confdefs.h <<\_ACEOF
46605#define wxUSE_POPUPWIN 1
46606_ACEOF
46607
46608        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46609
46610        USES_CONTROLS=1
46611    fi
46612fi
46613
46614if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46615    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46616        { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46617echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46618    else
46619        cat >>confdefs.h <<\_ACEOF
46620#define wxUSE_DIALUP_MANAGER 1
46621_ACEOF
46622
46623        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46624    fi
46625fi
46626
46627if test "$wxUSE_TIPWINDOW" = "yes"; then
46628    if test "$wxUSE_PM" = 1; then
46629        { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46630echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46631    else
46632        cat >>confdefs.h <<\_ACEOF
46633#define wxUSE_TIPWINDOW 1
46634_ACEOF
46635
46636    fi
46637fi
46638
46639if test "$USES_CONTROLS" = 1; then
46640    cat >>confdefs.h <<\_ACEOF
46641#define wxUSE_CONTROLS 1
46642_ACEOF
46643
46644fi
46645
46646
46647if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46648    cat >>confdefs.h <<\_ACEOF
46649#define wxUSE_ACCESSIBILITY 1
46650_ACEOF
46651
46652    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46653fi
46654
46655if test "$wxUSE_DC_CACHEING" = "yes"; then
46656    cat >>confdefs.h <<\_ACEOF
46657#define wxUSE_DC_CACHEING 1
46658_ACEOF
46659
46660fi
46661
46662if test "$wxUSE_DRAGIMAGE" = "yes"; then
46663    cat >>confdefs.h <<\_ACEOF
46664#define wxUSE_DRAGIMAGE 1
46665_ACEOF
46666
46667    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46668fi
46669
46670if test "$wxUSE_EXCEPTIONS" = "yes"; then
46671    if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46672        { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46673echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46674    else
46675        cat >>confdefs.h <<\_ACEOF
46676#define wxUSE_EXCEPTIONS 1
46677_ACEOF
46678
46679        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46680    fi
46681fi
46682
46683USE_HTML=0
46684if test "$wxUSE_HTML" = "yes"; then
46685    cat >>confdefs.h <<\_ACEOF
46686#define wxUSE_HTML 1
46687_ACEOF
46688
46689    USE_HTML=1
46690    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46691    if test "$wxUSE_MAC" = 1; then
46692        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46693    fi
46694fi
46695if test "$wxUSE_WEBKIT" = "yes"; then
46696    if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46697        old_CPPFLAGS="$CPPFLAGS"
46698        CPPFLAGS="-x objective-c++ $CPPFLAGS"
46699        echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46700echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46701if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46702  echo $ECHO_N "(cached) $ECHO_C" >&6
46703else
46704  cat >conftest.$ac_ext <<_ACEOF
46705/* confdefs.h.  */
46706_ACEOF
46707cat confdefs.h >>conftest.$ac_ext
46708cat >>conftest.$ac_ext <<_ACEOF
46709/* end confdefs.h.  */
46710
46711                           #include <Carbon/Carbon.h>
46712                           #include <WebKit/WebKit.h>
46713
46714
46715#include <WebKit/HIWebView.h>
46716_ACEOF
46717rm -f conftest.$ac_objext
46718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46719  (eval $ac_compile) 2>conftest.er1
46720  ac_status=$?
46721  grep -v '^ *+' conftest.er1 >conftest.err
46722  rm -f conftest.er1
46723  cat conftest.err >&5
46724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46725  (exit $ac_status); } &&
46726	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
46727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46728  (eval $ac_try) 2>&5
46729  ac_status=$?
46730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46731  (exit $ac_status); }; } &&
46732	 { ac_try='test -s conftest.$ac_objext'
46733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46734  (eval $ac_try) 2>&5
46735  ac_status=$?
46736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46737  (exit $ac_status); }; }; then
46738  ac_cv_header_WebKit_HIWebView_h=yes
46739else
46740  echo "$as_me: failed program was:" >&5
46741sed 's/^/| /' conftest.$ac_ext >&5
46742
46743ac_cv_header_WebKit_HIWebView_h=no
46744fi
46745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46746fi
46747echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46748echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46749if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46750
46751                           cat >>confdefs.h <<\_ACEOF
46752#define wxUSE_WEBKIT 1
46753_ACEOF
46754
46755                           WEBKIT_LINK="-framework WebKit"
46756
46757else
46758
46759                           { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46760echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46761                           wxUSE_WEBKIT=no
46762
46763fi
46764
46765
46766        CPPFLAGS="$old_CPPFLAGS"
46767    elif test "$wxUSE_COCOA" = 1; then
46768        cat >>confdefs.h <<\_ACEOF
46769#define wxUSE_WEBKIT 1
46770_ACEOF
46771
46772    else
46773        wxUSE_WEBKIT=no
46774    fi
46775fi
46776
46777USE_XRC=0
46778if test "$wxUSE_XRC" = "yes"; then
46779    if test "$wxUSE_XML" != "yes"; then
46780        { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46781echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46782        wxUSE_XRC=no
46783    else
46784        cat >>confdefs.h <<\_ACEOF
46785#define wxUSE_XRC 1
46786_ACEOF
46787
46788        USE_XRC=1
46789        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46790    fi
46791fi
46792
46793USE_AUI=0
46794if test "$wxUSE_AUI" = "yes"; then
46795   cat >>confdefs.h <<\_ACEOF
46796#define wxUSE_AUI 1
46797_ACEOF
46798
46799   USE_AUI=1
46800   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46801fi
46802
46803if test "$wxUSE_MENUS" = "yes"; then
46804    cat >>confdefs.h <<\_ACEOF
46805#define wxUSE_MENUS 1
46806_ACEOF
46807
46808    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46809fi
46810
46811if test "$wxUSE_METAFILE" = "yes"; then
46812    cat >>confdefs.h <<\_ACEOF
46813#define wxUSE_METAFILE 1
46814_ACEOF
46815
46816fi
46817
46818if test "$wxUSE_MIMETYPE" = "yes"; then
46819    cat >>confdefs.h <<\_ACEOF
46820#define wxUSE_MIMETYPE 1
46821_ACEOF
46822
46823fi
46824
46825if test "$wxUSE_MINIFRAME" = "yes"; then
46826    cat >>confdefs.h <<\_ACEOF
46827#define wxUSE_MINIFRAME 1
46828_ACEOF
46829
46830    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46831fi
46832
46833if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46834    cat >>confdefs.h <<\_ACEOF
46835#define wxUSE_SYSTEM_OPTIONS 1
46836_ACEOF
46837
46838fi
46839
46840if test "$wxUSE_VALIDATORS" = "yes"; then
46841    cat >>confdefs.h <<\_ACEOF
46842#define wxUSE_VALIDATORS 1
46843_ACEOF
46844
46845    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46846fi
46847
46848if test "$wxUSE_PALETTE" = "yes" ; then
46849    if test "$wxUSE_DFB" = 1; then
46850        { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46851echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46852        wxUSE_PALETTE=no
46853    else
46854        cat >>confdefs.h <<\_ACEOF
46855#define wxUSE_PALETTE 1
46856_ACEOF
46857
46858    fi
46859fi
46860
46861if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46862    LIBS=" -lunicows $LIBS"
46863fi
46864
46865USE_RICHTEXT=0
46866if test "$wxUSE_RICHTEXT" = "yes"; then
46867    cat >>confdefs.h <<\_ACEOF
46868#define wxUSE_RICHTEXT 1
46869_ACEOF
46870
46871    USE_RICHTEXT=1
46872    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46873fi
46874
46875
46876if test "$wxUSE_IMAGE" = "yes" ; then
46877    cat >>confdefs.h <<\_ACEOF
46878#define wxUSE_IMAGE 1
46879_ACEOF
46880
46881
46882    if test "$wxUSE_GIF" = "yes" ; then
46883      cat >>confdefs.h <<\_ACEOF
46884#define wxUSE_GIF 1
46885_ACEOF
46886
46887    fi
46888
46889    if test "$wxUSE_PCX" = "yes" ; then
46890      cat >>confdefs.h <<\_ACEOF
46891#define wxUSE_PCX 1
46892_ACEOF
46893
46894    fi
46895
46896    if test "$wxUSE_TGA" = "yes" ; then
46897      cat >>confdefs.h <<\_ACEOF
46898#define wxUSE_TGA 1
46899_ACEOF
46900
46901    fi
46902
46903    if test "$wxUSE_IFF" = "yes" ; then
46904      cat >>confdefs.h <<\_ACEOF
46905#define wxUSE_IFF 1
46906_ACEOF
46907
46908    fi
46909
46910    if test "$wxUSE_PNM" = "yes" ; then
46911      cat >>confdefs.h <<\_ACEOF
46912#define wxUSE_PNM 1
46913_ACEOF
46914
46915    fi
46916
46917    if test "$wxUSE_XPM" = "yes" ; then
46918      cat >>confdefs.h <<\_ACEOF
46919#define wxUSE_XPM 1
46920_ACEOF
46921
46922    fi
46923
46924    if test "$wxUSE_ICO_CUR" = "yes" ; then
46925      cat >>confdefs.h <<\_ACEOF
46926#define wxUSE_ICO_CUR 1
46927_ACEOF
46928
46929    fi
46930fi
46931
46932
46933if test "$wxUSE_ABOUTDLG" = "yes"; then
46934    cat >>confdefs.h <<\_ACEOF
46935#define wxUSE_ABOUTDLG 1
46936_ACEOF
46937
46938fi
46939
46940if test "$wxUSE_CHOICEDLG" = "yes"; then
46941    cat >>confdefs.h <<\_ACEOF
46942#define wxUSE_CHOICEDLG 1
46943_ACEOF
46944
46945fi
46946
46947if test "$wxUSE_COLOURDLG" = "yes"; then
46948    cat >>confdefs.h <<\_ACEOF
46949#define wxUSE_COLOURDLG 1
46950_ACEOF
46951
46952fi
46953
46954if test "$wxUSE_FILEDLG" = "yes"; then
46955    cat >>confdefs.h <<\_ACEOF
46956#define wxUSE_FILEDLG 1
46957_ACEOF
46958
46959fi
46960
46961if test "$wxUSE_FINDREPLDLG" = "yes"; then
46962    cat >>confdefs.h <<\_ACEOF
46963#define wxUSE_FINDREPLDLG 1
46964_ACEOF
46965
46966fi
46967
46968if test "$wxUSE_FONTDLG" = "yes"; then
46969    cat >>confdefs.h <<\_ACEOF
46970#define wxUSE_FONTDLG 1
46971_ACEOF
46972
46973fi
46974
46975if test "$wxUSE_DIRDLG" = "yes"; then
46976    if test "$wxUSE_TREECTRL" != "yes"; then
46977        { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46978echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46979    else
46980        cat >>confdefs.h <<\_ACEOF
46981#define wxUSE_DIRDLG 1
46982_ACEOF
46983
46984    fi
46985fi
46986
46987if test "$wxUSE_MSGDLG" = "yes"; then
46988    cat >>confdefs.h <<\_ACEOF
46989#define wxUSE_MSGDLG 1
46990_ACEOF
46991
46992fi
46993
46994if test "$wxUSE_NUMBERDLG" = "yes"; then
46995    cat >>confdefs.h <<\_ACEOF
46996#define wxUSE_NUMBERDLG 1
46997_ACEOF
46998
46999fi
47000
47001if test "$wxUSE_PROGRESSDLG" = "yes"; then
47002    if test "$wxUSE_CONSTRAINTS" != "yes"; then
47003       { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
47004echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
47005    else
47006        cat >>confdefs.h <<\_ACEOF
47007#define wxUSE_PROGRESSDLG 1
47008_ACEOF
47009
47010    fi
47011fi
47012
47013if test "$wxUSE_SPLASH" = "yes"; then
47014    cat >>confdefs.h <<\_ACEOF
47015#define wxUSE_SPLASH 1
47016_ACEOF
47017
47018    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
47019fi
47020
47021if test "$wxUSE_STARTUP_TIPS" = "yes"; then
47022    if test "$wxUSE_CONSTRAINTS" != "yes"; then
47023       { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
47024echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
47025    else
47026        cat >>confdefs.h <<\_ACEOF
47027#define wxUSE_STARTUP_TIPS 1
47028_ACEOF
47029
47030    fi
47031fi
47032
47033if test "$wxUSE_TEXTDLG" = "yes"; then
47034    cat >>confdefs.h <<\_ACEOF
47035#define wxUSE_TEXTDLG 1
47036_ACEOF
47037
47038fi
47039
47040if test "$wxUSE_WIZARDDLG" = "yes"; then
47041    cat >>confdefs.h <<\_ACEOF
47042#define wxUSE_WIZARDDLG 1
47043_ACEOF
47044
47045    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
47046fi
47047
47048
47049if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
47050   if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
47051      cat >>confdefs.h <<\_ACEOF
47052#define wxUSE_GRAPHICS_CONTEXT 1
47053_ACEOF
47054
47055   elif test "$wxUSE_GTK" != 1; then
47056            cat >>confdefs.h <<\_ACEOF
47057#define wxUSE_GRAPHICS_CONTEXT 1
47058_ACEOF
47059
47060   else
47061
47062pkg_failed=no
47063echo "$as_me:$LINENO: checking for CAIRO" >&5
47064echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
47065
47066if test -n "$PKG_CONFIG"; then
47067    if test -n "$CAIRO_CFLAGS"; then
47068        pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
47069    else
47070        if test -n "$PKG_CONFIG" && \
47071    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47072  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47073  ac_status=$?
47074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47075  (exit $ac_status); }; then
47076  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
47077else
47078  pkg_failed=yes
47079fi
47080    fi
47081else
47082	pkg_failed=untried
47083fi
47084if test -n "$PKG_CONFIG"; then
47085    if test -n "$CAIRO_LIBS"; then
47086        pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
47087    else
47088        if test -n "$PKG_CONFIG" && \
47089    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47090  ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47091  ac_status=$?
47092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47093  (exit $ac_status); }; then
47094  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
47095else
47096  pkg_failed=yes
47097fi
47098    fi
47099else
47100	pkg_failed=untried
47101fi
47102
47103
47104
47105if test $pkg_failed = yes; then
47106
47107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47108        _pkg_short_errors_supported=yes
47109else
47110        _pkg_short_errors_supported=no
47111fi
47112        if test $_pkg_short_errors_supported = yes; then
47113	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
47114        else
47115	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
47116        fi
47117	# Put the nasty error message in config.log where it belongs
47118	echo "$CAIRO_PKG_ERRORS" >&5
47119
47120	{ echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
47121echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47122
47123elif test $pkg_failed = untried; then
47124	{ echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
47125echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47126
47127else
47128	CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47129	CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
47130        echo "$as_me:$LINENO: result: yes" >&5
47131echo "${ECHO_T}yes" >&6
47132	cat >>confdefs.h <<\_ACEOF
47133#define wxUSE_GRAPHICS_CONTEXT 1
47134_ACEOF
47135
47136fi
47137   fi
47138fi
47139
47140
47141USE_MEDIA=0
47142
47143if test "$wxUSE_MEDIACTRL" = "yes"; then
47144    USE_MEDIA=1
47145
47146                if test "$wxUSE_GTK" = 1; then
47147        wxUSE_GSTREAMER="no"
47148
47149                                                                GST_VERSION_MAJOR=0
47150        GST_VERSION_MINOR=10
47151        GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47152
47153        if test "$wxUSE_GSTREAMER8" = "no"; then
47154
47155pkg_failed=no
47156echo "$as_me:$LINENO: checking for GST" >&5
47157echo $ECHO_N "checking for GST... $ECHO_C" >&6
47158
47159if test -n "$PKG_CONFIG"; then
47160    if test -n "$GST_CFLAGS"; then
47161        pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47162    else
47163        if test -n "$PKG_CONFIG" && \
47164    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47165  ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47166  ac_status=$?
47167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47168  (exit $ac_status); }; then
47169  pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47170else
47171  pkg_failed=yes
47172fi
47173    fi
47174else
47175	pkg_failed=untried
47176fi
47177if test -n "$PKG_CONFIG"; then
47178    if test -n "$GST_LIBS"; then
47179        pkg_cv_GST_LIBS="$GST_LIBS"
47180    else
47181        if test -n "$PKG_CONFIG" && \
47182    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47183  ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47184  ac_status=$?
47185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47186  (exit $ac_status); }; then
47187  pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47188else
47189  pkg_failed=yes
47190fi
47191    fi
47192else
47193	pkg_failed=untried
47194fi
47195
47196
47197
47198if test $pkg_failed = yes; then
47199
47200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47201        _pkg_short_errors_supported=yes
47202else
47203        _pkg_short_errors_supported=no
47204fi
47205        if test $_pkg_short_errors_supported = yes; then
47206	        GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47207        else
47208	        GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47209        fi
47210	# Put the nasty error message in config.log where it belongs
47211	echo "$GST_PKG_ERRORS" >&5
47212
47213
47214                    { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47215echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47216                    GST_VERSION_MINOR=8
47217
47218
47219elif test $pkg_failed = untried; then
47220
47221                    { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47222echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47223                    GST_VERSION_MINOR=8
47224
47225
47226else
47227	GST_CFLAGS=$pkg_cv_GST_CFLAGS
47228	GST_LIBS=$pkg_cv_GST_LIBS
47229        echo "$as_me:$LINENO: result: yes" >&5
47230echo "${ECHO_T}yes" >&6
47231
47232                    wxUSE_GSTREAMER="yes"
47233                    GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
47234
47235fi
47236        else
47237                        GST_VERSION_MINOR=8
47238        fi
47239
47240        if test $GST_VERSION_MINOR = "8"; then
47241            GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47242
47243pkg_failed=no
47244echo "$as_me:$LINENO: checking for GST" >&5
47245echo $ECHO_N "checking for GST... $ECHO_C" >&6
47246
47247if test -n "$PKG_CONFIG"; then
47248    if test -n "$GST_CFLAGS"; then
47249        pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47250    else
47251        if test -n "$PKG_CONFIG" && \
47252    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47253  ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47254  ac_status=$?
47255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47256  (exit $ac_status); }; then
47257  pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47258else
47259  pkg_failed=yes
47260fi
47261    fi
47262else
47263	pkg_failed=untried
47264fi
47265if test -n "$PKG_CONFIG"; then
47266    if test -n "$GST_LIBS"; then
47267        pkg_cv_GST_LIBS="$GST_LIBS"
47268    else
47269        if test -n "$PKG_CONFIG" && \
47270    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47271  ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47272  ac_status=$?
47273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47274  (exit $ac_status); }; then
47275  pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47276else
47277  pkg_failed=yes
47278fi
47279    fi
47280else
47281	pkg_failed=untried
47282fi
47283
47284
47285
47286if test $pkg_failed = yes; then
47287
47288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47289        _pkg_short_errors_supported=yes
47290else
47291        _pkg_short_errors_supported=no
47292fi
47293        if test $_pkg_short_errors_supported = yes; then
47294	        GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47295        else
47296	        GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47297        fi
47298	# Put the nasty error message in config.log where it belongs
47299	echo "$GST_PKG_ERRORS" >&5
47300
47301
47302                    { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47303echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47304
47305elif test $pkg_failed = untried; then
47306
47307                    { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47308echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47309
47310else
47311	GST_CFLAGS=$pkg_cv_GST_CFLAGS
47312	GST_LIBS=$pkg_cv_GST_LIBS
47313        echo "$as_me:$LINENO: result: yes" >&5
47314echo "${ECHO_T}yes" >&6
47315	wxUSE_GSTREAMER="yes"
47316fi
47317        fi
47318
47319
47320        if test "$wxUSE_GSTREAMER" = "yes"; then
47321                                    case "${host}" in
47322                *-*-solaris2* )
47323                    if test "$GCC" = yes; then
47324                        GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
47325                        GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
47326                    fi
47327            esac
47328
47329            CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47330            EXTRALIBS_MEDIA="$GST_LIBS"
47331
47332            cat >>confdefs.h <<\_ACEOF
47333#define wxUSE_GSTREAMER 1
47334_ACEOF
47335
47336        else
47337            USE_MEDIA=0
47338        fi
47339    fi
47340
47341    if test $USE_MEDIA = 1; then
47342        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47343        cat >>confdefs.h <<\_ACEOF
47344#define wxUSE_MEDIACTRL 1
47345_ACEOF
47346
47347    fi
47348fi
47349
47350
47351if test "$cross_compiling" = "yes"; then
47352        OSINFO="\"$host\""
47353else
47354        OSINFO=`uname -s -r -m`
47355    OSINFO="\"$OSINFO\""
47356fi
47357
47358cat >>confdefs.h <<_ACEOF
47359#define WXWIN_OS_DESCRIPTION $OSINFO
47360_ACEOF
47361
47362
47363
47364if test "x$prefix" != "xNONE"; then
47365    wxPREFIX=$prefix
47366else
47367    wxPREFIX=$ac_default_prefix
47368fi
47369
47370cat >>confdefs.h <<_ACEOF
47371#define wxINSTALL_PREFIX "$wxPREFIX"
47372_ACEOF
47373
47374
47375
47376
47377CORE_BASE_LIBS="net base"
47378CORE_GUI_LIBS="adv core"
47379
47380if test "$wxUSE_XML" = "yes" ; then
47381    CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
47382fi
47383if test "$wxUSE_ODBC" != "no" ; then
47384    CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
47385    CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
47386fi
47387if test "$wxUSE_HTML" = "yes" ; then
47388    CORE_GUI_LIBS="html $CORE_GUI_LIBS"
47389fi
47390if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47391    CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
47392fi
47393if test "$wxUSE_XRC" = "yes" ; then
47394    CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
47395fi
47396if test "$wxUSE_AUI" = "yes" ; then
47397    CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
47398fi
47399if test "$wxUSE_RICHTEXT" = "yes" ; then
47400    CORE_GUI_LIBS="richtext $CORE_GUI_LIBS"
47401fi
47402
47403if test "$wxUSE_GUI" != "yes"; then
47404    CORE_GUI_LIBS=""
47405fi
47406
47407
47408
47409
47410
47411
47412if test "$wxUSE_MAC" = 1 ; then
47413    if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
47414        if test "$USE_DARWIN" != 1; then
47415            LDFLAGS="$LDFLAGS -lQuickTimeLib"
47416        fi
47417    fi
47418    if test "$USE_DARWIN" = 1; then
47419        LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime -framework OpenGL -framework AGL"
47420    else
47421        LDFLAGS="$LDFLAGS -lCarbonLib"
47422    fi
47423fi
47424if test "$wxUSE_COCOA" = 1 ; then
47425    LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
47426    if test "$wxUSE_MEDIACTRL" = "yes"; then
47427        LDFLAGS="$LDFLAGS -framework QuickTime"
47428    fi
47429fi
47430if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47431    LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47432fi
47433
47434LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47435
47436if test "$wxUSE_GUI" = "yes"; then
47437
47438
47439        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47440                     dynamic erase event exec font image minimal mobile \
47441                     mobile/wxedit mobile/styles propsize render \
47442                     rotate shaped taskbar vscroll widgets"
47443
47444    if test "$wxUSE_MONOLITHIC" != "yes"; then
47445        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47446    fi
47447    if test "$TOOLKIT" = "MSW"; then
47448        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47449        if test "$wxUSE_UNIVERSAL" != "yes"; then
47450            SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47451        fi
47452    fi
47453    if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47454        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47455    fi
47456else
47457    SAMPLES_SUBDIRS="console"
47458fi
47459
47460
47461if test "x$INTELCC" = "xyes" ; then
47462                                        CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47463elif test "$GCC" = yes ; then
47464    CWARNINGS="-Wall -Wundef"
47465fi
47466
47467if test "x$INTELCXX" = "xyes" ; then
47468                                                            CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
47469elif test "$GXX" = yes ; then
47470        CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
47471fi
47472
47473
47474WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47475WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47476
47477
47478CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47479 -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47480 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47481 $CPPFLAGS `
47482
47483C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47484CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47485CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
47486OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47487OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47488
47489WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47490
47491
47492if test "x$MWCC" = "xyes"; then
47493
47494            CC="$CC -cwd source -I-"
47495    CXX="$CXX -cwd source -I-"
47496fi
47497
47498
47499LIBS=`echo $LIBS`
47500EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47501EXTRALIBS_XML="$EXPAT_LINK"
47502EXTRALIBS_HTML="$MSPACK_LINK"
47503EXTRALIBS_MEDIA="$GST_LIBS"
47504EXTRALIBS_ODBC="$ODBC_LINK"
47505if test "$wxUSE_GUI" = "yes"; then
47506    EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47507fi
47508if test "$wxUSE_OPENGL" = "yes"; then
47509    EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47510fi
47511
47512LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47513
47514WXCONFIG_LIBS="$LIBS"
47515
47516if test "$wxUSE_REGEX" = "builtin" ; then
47517    wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47518fi
47519if test "$wxUSE_EXPAT" = "builtin" ; then
47520    wxconfig_3rdparty="expat $wxconfig_3rdparty"
47521fi
47522if test "$wxUSE_ODBC" = "builtin" ; then
47523    wxconfig_3rdparty="odbc $wxconfig_3rdparty"
47524fi
47525if test "$wxUSE_LIBTIFF" = "builtin" ; then
47526    wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47527fi
47528if test "$wxUSE_LIBJPEG" = "builtin" ; then
47529    wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47530fi
47531if test "$wxUSE_LIBPNG" = "builtin" ; then
47532    wxconfig_3rdparty="png $wxconfig_3rdparty"
47533fi
47534if test "$wxUSE_ZLIB" = "builtin" ; then
47535    wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47536fi
47537
47538for i in $wxconfig_3rdparty ; do
47539    WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47540done
47541
47542
47543if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47544    WXUNIV=1
47545
47546    case "$wxUNIV_THEMES" in
47547        ''|all)
47548            cat >>confdefs.h <<\_ACEOF
47549#define wxUSE_ALL_THEMES 1
47550_ACEOF
47551
47552            ;;
47553
47554        *)
47555            for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47556                cat >>confdefs.h <<_ACEOF
47557#define wxUSE_THEME_$t 1
47558_ACEOF
47559
47560            done
47561    esac
47562else
47563    WXUNIV=0
47564fi
47565
47566
47567
47568
47569
47570
47571
47572
47573
47574if test $wxUSE_MONOLITHIC = "yes" ; then
47575    MONOLITHIC=1
47576else
47577    MONOLITHIC=0
47578fi
47579
47580if test $wxUSE_PLUGINS = "yes" ; then
47581    USE_PLUGINS=1
47582else
47583    USE_PLUGINS=0
47584fi
47585
47586if test $wxUSE_ODBC != "no" ; then
47587    USE_ODBC=1
47588else
47589    USE_ODBC=0
47590fi
47591
47592if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47593    USE_QA=1
47594else
47595    USE_QA=0
47596fi
47597
47598if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47599    OFFICIAL_BUILD=1
47600else
47601    OFFICIAL_BUILD=0
47602fi
47603
47604
47605
47606
47607
47608
47609
47610
47611
47612
47613
47614
47615
47616
47617
47618
47619
47620
47621
47622
47623
47624
47625
47626
47627
47628
47629TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47630
47631
47632
47633
47634
47635
47636
47637
47638
47639
47640
47641case "$TOOLKIT" in
47642    GTK)
47643        TOOLKIT_DESC="GTK+"
47644        if test "$WXGTK20" = 1; then
47645            TOOLKIT_DESC="$TOOLKIT_DESC 2"
47646            if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47647                TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47648            fi
47649            if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47650                TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47651            fi
47652            if test "$wxUSE_LIBHILDON" = "yes"; then
47653                TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47654            fi
47655
47656            if test "$TOOLKIT_EXTRA" != ""; then
47657                TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47658            fi
47659        fi
47660        ;;
47661
47662    ?*)
47663        TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47664        ;;
47665
47666    *)
47667        TOOLKIT_DESC="base only"
47668        ;;
47669esac
47670
47671if test "$wxUSE_WINE" = "yes"; then
47672    BAKEFILE_FORCE_PLATFORM=win32
47673fi
47674
47675if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47676then
47677    echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47678echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
47679if test "${wx_cv_gcc_pch_bug+set}" = set; then
47680  echo $ECHO_N "(cached) $ECHO_C" >&6
47681else
47682
47683            echo '#include <stdio.h>
47684                  const wchar_t test_var[] = L"awidetest";' > conftest.h
47685
47686            echo '#include "conftest.h"
47687                  int main()
47688                  {
47689                     printf("%ls", test_var);
47690                     return 0;
47691                  }' > conftest.cpp
47692
47693            wx_cv_gcc_pch_bug="pch not supported"
47694
47695            if $CXX conftest.h >/dev/null 2>&1
47696            then
47697                wx_cv_gcc_pch_bug=
47698
47699                if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47700                then
47701                    if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47702                        grep awidetest >/dev/null
47703                    then
47704                        wx_cv_gcc_pch_bug=no
47705                    else
47706                        wx_cv_gcc_pch_bug=yes
47707                    fi
47708                fi
47709            fi
47710
47711            rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47712
47713fi
47714echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47715echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
47716
47717    if test "$wx_cv_gcc_pch_bug" = yes; then
47718                        bk_use_pch=no
47719    fi
47720fi
47721
47722
47723
47724
47725
47726
47727
47728    if test "x$BAKEFILE_HOST" = "x"; then
47729               if test "x${host}" = "x" ; then
47730                       { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47731echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47732   { (exit 1); exit 1; }; }
47733               fi
47734
47735        BAKEFILE_HOST="${host}"
47736    fi
47737
47738    if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47739
47740    if test -n "$ac_tool_prefix"; then
47741  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47742set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47743echo "$as_me:$LINENO: checking for $ac_word" >&5
47744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47745if test "${ac_cv_prog_RANLIB+set}" = set; then
47746  echo $ECHO_N "(cached) $ECHO_C" >&6
47747else
47748  if test -n "$RANLIB"; then
47749  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47750else
47751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47752for as_dir in $PATH
47753do
47754  IFS=$as_save_IFS
47755  test -z "$as_dir" && as_dir=.
47756  for ac_exec_ext in '' $ac_executable_extensions; do
47757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47758    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47760    break 2
47761  fi
47762done
47763done
47764
47765fi
47766fi
47767RANLIB=$ac_cv_prog_RANLIB
47768if test -n "$RANLIB"; then
47769  echo "$as_me:$LINENO: result: $RANLIB" >&5
47770echo "${ECHO_T}$RANLIB" >&6
47771else
47772  echo "$as_me:$LINENO: result: no" >&5
47773echo "${ECHO_T}no" >&6
47774fi
47775
47776fi
47777if test -z "$ac_cv_prog_RANLIB"; then
47778  ac_ct_RANLIB=$RANLIB
47779  # Extract the first word of "ranlib", so it can be a program name with args.
47780set dummy ranlib; ac_word=$2
47781echo "$as_me:$LINENO: checking for $ac_word" >&5
47782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47783if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47784  echo $ECHO_N "(cached) $ECHO_C" >&6
47785else
47786  if test -n "$ac_ct_RANLIB"; then
47787  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47788else
47789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47790for as_dir in $PATH
47791do
47792  IFS=$as_save_IFS
47793  test -z "$as_dir" && as_dir=.
47794  for ac_exec_ext in '' $ac_executable_extensions; do
47795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47796    ac_cv_prog_ac_ct_RANLIB="ranlib"
47797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47798    break 2
47799  fi
47800done
47801done
47802
47803  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47804fi
47805fi
47806ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47807if test -n "$ac_ct_RANLIB"; then
47808  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47809echo "${ECHO_T}$ac_ct_RANLIB" >&6
47810else
47811  echo "$as_me:$LINENO: result: no" >&5
47812echo "${ECHO_T}no" >&6
47813fi
47814
47815  RANLIB=$ac_ct_RANLIB
47816else
47817  RANLIB="$ac_cv_prog_RANLIB"
47818fi
47819
47820    # Find a good install program.  We prefer a C program (faster),
47821# so one script is as good as another.  But avoid the broken or
47822# incompatible versions:
47823# SysV /etc/install, /usr/sbin/install
47824# SunOS /usr/etc/install
47825# IRIX /sbin/install
47826# AIX /bin/install
47827# AmigaOS /C/install, which installs bootblocks on floppy discs
47828# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47829# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47830# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47831# OS/2's system install, which has a completely different semantic
47832# ./install, which can be erroneously created by make from ./install.sh.
47833echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47834echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47835if test -z "$INSTALL"; then
47836if test "${ac_cv_path_install+set}" = set; then
47837  echo $ECHO_N "(cached) $ECHO_C" >&6
47838else
47839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47840for as_dir in $PATH
47841do
47842  IFS=$as_save_IFS
47843  test -z "$as_dir" && as_dir=.
47844  # Account for people who put trailing slashes in PATH elements.
47845case $as_dir/ in
47846  ./ | .// | /cC/* | \
47847  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47848  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47849  /usr/ucb/* ) ;;
47850  *)
47851    # OSF1 and SCO ODT 3.0 have their own names for install.
47852    # Don't use installbsd from OSF since it installs stuff as root
47853    # by default.
47854    for ac_prog in ginstall scoinst install; do
47855      for ac_exec_ext in '' $ac_executable_extensions; do
47856	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47857	  if test $ac_prog = install &&
47858	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47859	    # AIX install.  It has an incompatible calling convention.
47860	    :
47861	  elif test $ac_prog = install &&
47862	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47863	    # program-specific install script used by HP pwplus--don't use.
47864	    :
47865	  else
47866	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47867	    break 3
47868	  fi
47869	fi
47870      done
47871    done
47872    ;;
47873esac
47874done
47875
47876
47877fi
47878  if test "${ac_cv_path_install+set}" = set; then
47879    INSTALL=$ac_cv_path_install
47880  else
47881    # As a last resort, use the slow shell script.  We don't cache a
47882    # path for INSTALL within a source directory, because that will
47883    # break other packages using the cache if that directory is
47884    # removed, or if the path is relative.
47885    INSTALL=$ac_install_sh
47886  fi
47887fi
47888echo "$as_me:$LINENO: result: $INSTALL" >&5
47889echo "${ECHO_T}$INSTALL" >&6
47890
47891# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47892# It thinks the first close brace ends the variable substitution.
47893test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47894
47895test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47896
47897test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47898
47899    echo "$as_me:$LINENO: checking whether ln -s works" >&5
47900echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47901LN_S=$as_ln_s
47902if test "$LN_S" = "ln -s"; then
47903  echo "$as_me:$LINENO: result: yes" >&5
47904echo "${ECHO_T}yes" >&6
47905else
47906  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47907echo "${ECHO_T}no, using $LN_S" >&6
47908fi
47909
47910
47911    echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47912echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
47913set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
47914if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47915  echo $ECHO_N "(cached) $ECHO_C" >&6
47916else
47917  cat >conftest.make <<\_ACEOF
47918all:
47919	@echo 'ac_maketemp="$(MAKE)"'
47920_ACEOF
47921# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47922eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47923if test -n "$ac_maketemp"; then
47924  eval ac_cv_prog_make_${ac_make}_set=yes
47925else
47926  eval ac_cv_prog_make_${ac_make}_set=no
47927fi
47928rm -f conftest.make
47929fi
47930if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47931  echo "$as_me:$LINENO: result: yes" >&5
47932echo "${ECHO_T}yes" >&6
47933  SET_MAKE=
47934else
47935  echo "$as_me:$LINENO: result: no" >&5
47936echo "${ECHO_T}no" >&6
47937  SET_MAKE="MAKE=${MAKE-make}"
47938fi
47939
47940
47941
47942    if test "x$SUNCXX" = "xyes"; then
47943                                AR=$CXX
47944        AROPTIONS="-xar -o"
47945
47946    elif test "x$SGICC" = "xyes"; then
47947                AR=$CXX
47948        AROPTIONS="-ar -o"
47949
47950    else
47951        if test -n "$ac_tool_prefix"; then
47952  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47953set dummy ${ac_tool_prefix}ar; ac_word=$2
47954echo "$as_me:$LINENO: checking for $ac_word" >&5
47955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47956if test "${ac_cv_prog_AR+set}" = set; then
47957  echo $ECHO_N "(cached) $ECHO_C" >&6
47958else
47959  if test -n "$AR"; then
47960  ac_cv_prog_AR="$AR" # Let the user override the test.
47961else
47962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47963for as_dir in $PATH
47964do
47965  IFS=$as_save_IFS
47966  test -z "$as_dir" && as_dir=.
47967  for ac_exec_ext in '' $ac_executable_extensions; do
47968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47969    ac_cv_prog_AR="${ac_tool_prefix}ar"
47970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47971    break 2
47972  fi
47973done
47974done
47975
47976fi
47977fi
47978AR=$ac_cv_prog_AR
47979if test -n "$AR"; then
47980  echo "$as_me:$LINENO: result: $AR" >&5
47981echo "${ECHO_T}$AR" >&6
47982else
47983  echo "$as_me:$LINENO: result: no" >&5
47984echo "${ECHO_T}no" >&6
47985fi
47986
47987fi
47988if test -z "$ac_cv_prog_AR"; then
47989  ac_ct_AR=$AR
47990  # Extract the first word of "ar", so it can be a program name with args.
47991set dummy ar; ac_word=$2
47992echo "$as_me:$LINENO: checking for $ac_word" >&5
47993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47994if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47995  echo $ECHO_N "(cached) $ECHO_C" >&6
47996else
47997  if test -n "$ac_ct_AR"; then
47998  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47999else
48000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48001for as_dir in $PATH
48002do
48003  IFS=$as_save_IFS
48004  test -z "$as_dir" && as_dir=.
48005  for ac_exec_ext in '' $ac_executable_extensions; do
48006  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48007    ac_cv_prog_ac_ct_AR="ar"
48008    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48009    break 2
48010  fi
48011done
48012done
48013
48014  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
48015fi
48016fi
48017ac_ct_AR=$ac_cv_prog_ac_ct_AR
48018if test -n "$ac_ct_AR"; then
48019  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
48020echo "${ECHO_T}$ac_ct_AR" >&6
48021else
48022  echo "$as_me:$LINENO: result: no" >&5
48023echo "${ECHO_T}no" >&6
48024fi
48025
48026  AR=$ac_ct_AR
48027else
48028  AR="$ac_cv_prog_AR"
48029fi
48030
48031        AROPTIONS=rcu
48032    fi
48033
48034
48035    if test -n "$ac_tool_prefix"; then
48036  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
48037set dummy ${ac_tool_prefix}strip; ac_word=$2
48038echo "$as_me:$LINENO: checking for $ac_word" >&5
48039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48040if test "${ac_cv_prog_STRIP+set}" = set; then
48041  echo $ECHO_N "(cached) $ECHO_C" >&6
48042else
48043  if test -n "$STRIP"; then
48044  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
48045else
48046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48047for as_dir in $PATH
48048do
48049  IFS=$as_save_IFS
48050  test -z "$as_dir" && as_dir=.
48051  for ac_exec_ext in '' $ac_executable_extensions; do
48052  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48053    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
48054    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48055    break 2
48056  fi
48057done
48058done
48059
48060fi
48061fi
48062STRIP=$ac_cv_prog_STRIP
48063if test -n "$STRIP"; then
48064  echo "$as_me:$LINENO: result: $STRIP" >&5
48065echo "${ECHO_T}$STRIP" >&6
48066else
48067  echo "$as_me:$LINENO: result: no" >&5
48068echo "${ECHO_T}no" >&6
48069fi
48070
48071fi
48072if test -z "$ac_cv_prog_STRIP"; then
48073  ac_ct_STRIP=$STRIP
48074  # Extract the first word of "strip", so it can be a program name with args.
48075set dummy strip; ac_word=$2
48076echo "$as_me:$LINENO: checking for $ac_word" >&5
48077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48078if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
48079  echo $ECHO_N "(cached) $ECHO_C" >&6
48080else
48081  if test -n "$ac_ct_STRIP"; then
48082  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48083else
48084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48085for as_dir in $PATH
48086do
48087  IFS=$as_save_IFS
48088  test -z "$as_dir" && as_dir=.
48089  for ac_exec_ext in '' $ac_executable_extensions; do
48090  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48091    ac_cv_prog_ac_ct_STRIP="strip"
48092    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48093    break 2
48094  fi
48095done
48096done
48097
48098  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
48099fi
48100fi
48101ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48102if test -n "$ac_ct_STRIP"; then
48103  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48104echo "${ECHO_T}$ac_ct_STRIP" >&6
48105else
48106  echo "$as_me:$LINENO: result: no" >&5
48107echo "${ECHO_T}no" >&6
48108fi
48109
48110  STRIP=$ac_ct_STRIP
48111else
48112  STRIP="$ac_cv_prog_STRIP"
48113fi
48114
48115    if test -n "$ac_tool_prefix"; then
48116  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48117set dummy ${ac_tool_prefix}nm; ac_word=$2
48118echo "$as_me:$LINENO: checking for $ac_word" >&5
48119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48120if test "${ac_cv_prog_NM+set}" = set; then
48121  echo $ECHO_N "(cached) $ECHO_C" >&6
48122else
48123  if test -n "$NM"; then
48124  ac_cv_prog_NM="$NM" # Let the user override the test.
48125else
48126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48127for as_dir in $PATH
48128do
48129  IFS=$as_save_IFS
48130  test -z "$as_dir" && as_dir=.
48131  for ac_exec_ext in '' $ac_executable_extensions; do
48132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48133    ac_cv_prog_NM="${ac_tool_prefix}nm"
48134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48135    break 2
48136  fi
48137done
48138done
48139
48140fi
48141fi
48142NM=$ac_cv_prog_NM
48143if test -n "$NM"; then
48144  echo "$as_me:$LINENO: result: $NM" >&5
48145echo "${ECHO_T}$NM" >&6
48146else
48147  echo "$as_me:$LINENO: result: no" >&5
48148echo "${ECHO_T}no" >&6
48149fi
48150
48151fi
48152if test -z "$ac_cv_prog_NM"; then
48153  ac_ct_NM=$NM
48154  # Extract the first word of "nm", so it can be a program name with args.
48155set dummy nm; ac_word=$2
48156echo "$as_me:$LINENO: checking for $ac_word" >&5
48157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48158if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48159  echo $ECHO_N "(cached) $ECHO_C" >&6
48160else
48161  if test -n "$ac_ct_NM"; then
48162  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48163else
48164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48165for as_dir in $PATH
48166do
48167  IFS=$as_save_IFS
48168  test -z "$as_dir" && as_dir=.
48169  for ac_exec_ext in '' $ac_executable_extensions; do
48170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48171    ac_cv_prog_ac_ct_NM="nm"
48172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48173    break 2
48174  fi
48175done
48176done
48177
48178  test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
48179fi
48180fi
48181ac_ct_NM=$ac_cv_prog_ac_ct_NM
48182if test -n "$ac_ct_NM"; then
48183  echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48184echo "${ECHO_T}$ac_ct_NM" >&6
48185else
48186  echo "$as_me:$LINENO: result: no" >&5
48187echo "${ECHO_T}no" >&6
48188fi
48189
48190  NM=$ac_ct_NM
48191else
48192  NM="$ac_cv_prog_NM"
48193fi
48194
48195
48196            echo "$as_me:$LINENO: checking for command to install directories" >&5
48197echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6
48198    INSTALL_TEST_DIR=acbftest$$
48199    $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
48200    if test $? = 0 -a -d $INSTALL_TEST_DIR; then
48201        rmdir $INSTALL_TEST_DIR
48202                        INSTALL_DIR='$(INSTALL) -d'
48203        echo "$as_me:$LINENO: result: $INSTALL -d" >&5
48204echo "${ECHO_T}$INSTALL -d" >&6
48205    else
48206        INSTALL_DIR="mkdir -p"
48207        echo "$as_me:$LINENO: result: mkdir -p" >&5
48208echo "${ECHO_T}mkdir -p" >&6
48209    fi
48210
48211
48212    LDFLAGS_GUI=
48213    case ${BAKEFILE_HOST} in
48214        *-*-cygwin* | *-*-mingw32* )
48215        LDFLAGS_GUI="-mwindows"
48216    esac
48217
48218
48219    fi
48220
48221        echo "$as_me:$LINENO: checking if make is GNU make" >&5
48222echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
48223if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48224  echo $ECHO_N "(cached) $ECHO_C" >&6
48225else
48226
48227        if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48228                egrep -s GNU > /dev/null); then
48229            bakefile_cv_prog_makeisgnu="yes"
48230        else
48231            bakefile_cv_prog_makeisgnu="no"
48232        fi
48233
48234fi
48235echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48236echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
48237
48238    if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48239        IF_GNU_MAKE=""
48240    else
48241        IF_GNU_MAKE="#"
48242    fi
48243
48244
48245
48246    PLATFORM_UNIX=0
48247    PLATFORM_WIN32=0
48248    PLATFORM_MSDOS=0
48249    PLATFORM_MAC=0
48250    PLATFORM_MACOS=0
48251    PLATFORM_MACOSX=0
48252    PLATFORM_OS2=0
48253    PLATFORM_BEOS=0
48254
48255    if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48256        case "${BAKEFILE_HOST}" in
48257            *-*-mingw32* )
48258                PLATFORM_WIN32=1
48259            ;;
48260            *-pc-msdosdjgpp )
48261                PLATFORM_MSDOS=1
48262            ;;
48263            *-pc-os2_emx | *-pc-os2-emx )
48264                PLATFORM_OS2=1
48265            ;;
48266            *-*-darwin* )
48267                PLATFORM_MAC=1
48268                PLATFORM_MACOSX=1
48269            ;;
48270            *-*-beos* )
48271                PLATFORM_BEOS=1
48272            ;;
48273            powerpc-apple-macos* )
48274                PLATFORM_MAC=1
48275                PLATFORM_MACOS=1
48276            ;;
48277            * )
48278                PLATFORM_UNIX=1
48279            ;;
48280        esac
48281    else
48282        case "$BAKEFILE_FORCE_PLATFORM" in
48283            win32 )
48284                PLATFORM_WIN32=1
48285            ;;
48286            msdos )
48287                PLATFORM_MSDOS=1
48288            ;;
48289            os2 )
48290                PLATFORM_OS2=1
48291            ;;
48292            darwin )
48293                PLATFORM_MAC=1
48294                PLATFORM_MACOSX=1
48295            ;;
48296            unix )
48297                PLATFORM_UNIX=1
48298            ;;
48299            beos )
48300                PLATFORM_BEOS=1
48301            ;;
48302            * )
48303                { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
48304echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
48305   { (exit 1); exit 1; }; }
48306            ;;
48307        esac
48308    fi
48309
48310
48311
48312
48313
48314
48315
48316
48317
48318
48319
48320    # Check whether --enable-omf or --disable-omf was given.
48321if test "${enable_omf+set}" = set; then
48322  enableval="$enable_omf"
48323  bk_os2_use_omf="$enableval"
48324fi;
48325
48326    case "${BAKEFILE_HOST}" in
48327      *-*-darwin* )
48328                        if test "x$GCC" = "xyes"; then
48329            CFLAGS="$CFLAGS -fno-common"
48330            CXXFLAGS="$CXXFLAGS -fno-common"
48331        fi
48332        if test "x$XLCC" = "xyes"; then
48333            CFLAGS="$CFLAGS -qnocommon"
48334            CXXFLAGS="$CXXFLAGS -qnocommon"
48335        fi
48336        ;;
48337
48338      *-pc-os2_emx | *-pc-os2-emx )
48339        if test "x$bk_os2_use_omf" = "xyes" ; then
48340            AR=emxomfar
48341            RANLIB=:
48342            LDFLAGS="-Zomf $LDFLAGS"
48343            CFLAGS="-Zomf $CFLAGS"
48344            CXXFLAGS="-Zomf $CXXFLAGS"
48345            OS2_LIBEXT="lib"
48346        else
48347            OS2_LIBEXT="a"
48348        fi
48349        ;;
48350
48351      i*86-*-beos* )
48352        LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48353        ;;
48354    esac
48355
48356
48357    SO_SUFFIX="so"
48358    SO_SUFFIX_MODULE="so"
48359    EXEEXT=""
48360    LIBPREFIX="lib"
48361    LIBEXT=".a"
48362    DLLPREFIX="lib"
48363    DLLPREFIX_MODULE=""
48364    DLLIMP_SUFFIX=""
48365    dlldir="$libdir"
48366
48367    case "${BAKEFILE_HOST}" in
48368                        ia64-hp-hpux* )
48369        ;;
48370        *-hp-hpux* )
48371            SO_SUFFIX="sl"
48372            SO_SUFFIX_MODULE="sl"
48373        ;;
48374        *-*-aix* )
48375                                                                        SO_SUFFIX="a"
48376            SO_SUFFIX_MODULE="a"
48377        ;;
48378        *-*-cygwin* )
48379            SO_SUFFIX="dll"
48380            SO_SUFFIX_MODULE="dll"
48381            DLLIMP_SUFFIX="dll.a"
48382            EXEEXT=".exe"
48383            DLLPREFIX="cyg"
48384            dlldir="$bindir"
48385        ;;
48386        *-*-mingw32* )
48387            SO_SUFFIX="dll"
48388            SO_SUFFIX_MODULE="dll"
48389            DLLIMP_SUFFIX="dll.a"
48390            EXEEXT=".exe"
48391            DLLPREFIX=""
48392            dlldir="$bindir"
48393        ;;
48394        *-pc-msdosdjgpp )
48395            EXEEXT=".exe"
48396            DLLPREFIX=""
48397            dlldir="$bindir"
48398        ;;
48399        *-pc-os2_emx | *-pc-os2-emx )
48400            SO_SUFFIX="dll"
48401            SO_SUFFIX_MODULE="dll"
48402            DLLIMP_SUFFIX=$OS2_LIBEXT
48403            EXEEXT=".exe"
48404            DLLPREFIX=""
48405            LIBPREFIX=""
48406            LIBEXT=".$OS2_LIBEXT"
48407            dlldir="$bindir"
48408        ;;
48409        *-*-darwin* )
48410            SO_SUFFIX="dylib"
48411            SO_SUFFIX_MODULE="bundle"
48412        ;;
48413    esac
48414
48415    if test "x$DLLIMP_SUFFIX" = "x" ; then
48416        DLLIMP_SUFFIX="$SO_SUFFIX"
48417    fi
48418
48419
48420
48421
48422
48423
48424
48425
48426
48427
48428
48429
48430        PIC_FLAG=""
48431    if test "x$GCC" = "xyes"; then
48432                PIC_FLAG="-fPIC"
48433    fi
48434
48435        SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48436    SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48437    WINDOWS_IMPLIB=0
48438
48439    case "${BAKEFILE_HOST}" in
48440      *-hp-hpux* )
48441                if test "x$GCC" != "xyes"; then
48442                        LDFLAGS="$LDFLAGS -L/usr/lib"
48443
48444            SHARED_LD_CC="${CC} -b -o"
48445            SHARED_LD_CXX="${CXX} -b -o"
48446            PIC_FLAG="+Z"
48447        fi
48448      ;;
48449
48450      *-*-linux* )
48451                        if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
48452            PIC_FLAG="-KPIC"
48453        elif test "x$SUNCXX" = "xyes"; then
48454            SHARED_LD_CC="${CC} -G -o"
48455            SHARED_LD_CXX="${CXX} -G -o"
48456            PIC_FLAG="-KPIC"
48457        fi
48458      ;;
48459
48460      *-*-solaris2* )
48461        if test "x$SUNCXX" = xyes ; then
48462            SHARED_LD_CC="${CC} -G -o"
48463            SHARED_LD_CXX="${CXX} -G -o"
48464            PIC_FLAG="-KPIC"
48465        fi
48466      ;;
48467
48468      *-*-darwin* )
48469
48470D='$'
48471cat <<EOF >shared-ld-sh
48472#!/bin/sh
48473#-----------------------------------------------------------------------------
48474#-- Name:        distrib/mac/shared-ld-sh
48475#-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48476#-- Author:      Gilles Depeyrot
48477#-- Copyright:   (c) 2002 Gilles Depeyrot
48478#-- Licence:     any use permitted
48479#-----------------------------------------------------------------------------
48480
48481verbose=0
48482args=""
48483objects=""
48484linking_flag="-dynamiclib"
48485ldargs="-r -keep_private_externs -nostdlib"
48486
48487if test "x${D}CXX" = "x"; then
48488    CXX="c++"
48489fi
48490
48491while test ${D}# -gt 0; do
48492    case ${D}1 in
48493
48494       -v)
48495        verbose=1
48496        ;;
48497
48498       -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48499        # collect these options and values
48500        args="${D}{args} ${D}1 ${D}2"
48501        shift
48502        ;;
48503
48504       -arch|-isysroot)
48505        # collect these options and values
48506        ldargs="${D}{ldargs} ${D}1 ${D}2"
48507        shift
48508        ;;
48509
48510       -s|-Wl,*)
48511        # collect these load args
48512        ldargs="${D}{ldargs} ${D}1"
48513        ;;
48514
48515       -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48516        # collect these options
48517        args="${D}{args} ${D}1"
48518        ;;
48519
48520       -dynamiclib|-bundle)
48521        linking_flag="${D}1"
48522        ;;
48523
48524       -*)
48525        echo "shared-ld: unhandled option '${D}1'"
48526        exit 1
48527        ;;
48528
48529        *.o | *.a | *.dylib)
48530        # collect object files
48531        objects="${D}{objects} ${D}1"
48532        ;;
48533
48534        *)
48535        echo "shared-ld: unhandled argument '${D}1'"
48536        exit 1
48537        ;;
48538
48539    esac
48540    shift
48541done
48542
48543status=0
48544
48545#
48546# Link one module containing all the others
48547#
48548if test ${D}{verbose} = 1; then
48549    echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48550fi
48551${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48552status=${D}?
48553
48554#
48555# Link the shared library from the single module created, but only if the
48556# previous command didn't fail:
48557#
48558if test ${D}{status} = 0; then
48559    if test ${D}{verbose} = 1; then
48560        echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48561    fi
48562    ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48563    status=${D}?
48564fi
48565
48566#
48567# Remove intermediate module
48568#
48569rm -f master.${D}${D}.o
48570
48571exit ${D}status
48572EOF
48573
48574        chmod +x shared-ld-sh
48575
48576        SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48577        SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
48578
48579
48580                                echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48581echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48582if test "${bakefile_cv_gcc31+set}" = set; then
48583  echo $ECHO_N "(cached) $ECHO_C" >&6
48584else
48585
48586           cat >conftest.$ac_ext <<_ACEOF
48587/* confdefs.h.  */
48588_ACEOF
48589cat confdefs.h >>conftest.$ac_ext
48590cat >>conftest.$ac_ext <<_ACEOF
48591/* end confdefs.h.  */
48592
48593int
48594main ()
48595{
48596
48597                   #if (__GNUC__ < 3) || \
48598                       ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48599                       This is old gcc
48600                   #endif
48601
48602  ;
48603  return 0;
48604}
48605_ACEOF
48606rm -f conftest.$ac_objext
48607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48608  (eval $ac_compile) 2>conftest.er1
48609  ac_status=$?
48610  grep -v '^ *+' conftest.er1 >conftest.err
48611  rm -f conftest.er1
48612  cat conftest.err >&5
48613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48614  (exit $ac_status); } &&
48615	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
48616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48617  (eval $ac_try) 2>&5
48618  ac_status=$?
48619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48620  (exit $ac_status); }; } &&
48621	 { ac_try='test -s conftest.$ac_objext'
48622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48623  (eval $ac_try) 2>&5
48624  ac_status=$?
48625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48626  (exit $ac_status); }; }; then
48627
48628                   bakefile_cv_gcc31=yes
48629
48630else
48631  echo "$as_me: failed program was:" >&5
48632sed 's/^/| /' conftest.$ac_ext >&5
48633
48634
48635                   bakefile_cv_gcc31=no
48636
48637
48638fi
48639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48640
48641fi
48642echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48643echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48644        if test "$bakefile_cv_gcc31" = "no"; then
48645                        SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48646            SHARED_LD_CXX="$SHARED_LD_CC"
48647        else
48648                        SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48649            SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48650        fi
48651
48652        if test "x$GCC" == "xyes"; then
48653            PIC_FLAG="-dynamic -fPIC"
48654        fi
48655        if test "x$XLCC" = "xyes"; then
48656            PIC_FLAG="-dynamic -DPIC"
48657        fi
48658      ;;
48659
48660      *-*-aix* )
48661        if test "x$GCC" = "xyes"; then
48662                                                            PIC_FLAG=""
48663
48664                                                                                    case "${BAKEFILE_HOST}" in
48665                *-*-aix5* )
48666                    LD_EXPFULL="-Wl,-bexpfull"
48667                    ;;
48668            esac
48669
48670            SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48671            SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48672        else
48673                                    # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48674set dummy makeC++SharedLib; ac_word=$2
48675echo "$as_me:$LINENO: checking for $ac_word" >&5
48676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48677if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48678  echo $ECHO_N "(cached) $ECHO_C" >&6
48679else
48680  if test -n "$AIX_CXX_LD"; then
48681  ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48682else
48683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48684for as_dir in $PATH
48685do
48686  IFS=$as_save_IFS
48687  test -z "$as_dir" && as_dir=.
48688  for ac_exec_ext in '' $ac_executable_extensions; do
48689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48690    ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48692    break 2
48693  fi
48694done
48695done
48696
48697  test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48698fi
48699fi
48700AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48701if test -n "$AIX_CXX_LD"; then
48702  echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48703echo "${ECHO_T}$AIX_CXX_LD" >&6
48704else
48705  echo "$as_me:$LINENO: result: no" >&5
48706echo "${ECHO_T}no" >&6
48707fi
48708
48709            SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48710            SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48711        fi
48712      ;;
48713
48714      *-*-beos* )
48715                        SHARED_LD_CC="${LD} -nostart -o"
48716        SHARED_LD_CXX="${LD} -nostart -o"
48717      ;;
48718
48719      *-*-irix* )
48720                if test "x$GCC" != "xyes"; then
48721            PIC_FLAG="-KPIC"
48722        fi
48723      ;;
48724
48725      *-*-cygwin* | *-*-mingw32* )
48726        PIC_FLAG=""
48727        SHARED_LD_CC="\$(CC) -shared -o"
48728        SHARED_LD_CXX="\$(CXX) -shared -o"
48729        WINDOWS_IMPLIB=1
48730      ;;
48731
48732      *-pc-os2_emx | *-pc-os2-emx )
48733        SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48734        SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48735        PIC_FLAG=""
48736
48737D='$'
48738cat <<EOF >dllar.sh
48739#!/bin/sh
48740#
48741# dllar - a tool to build both a .dll and an .a file
48742# from a set of object (.o) files for EMX/OS2.
48743#
48744#  Written by Andrew Zabolotny, bit@freya.etu.ru
48745#  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48746#
48747#  This script will accept a set of files on the command line.
48748#  All the public symbols from the .o files will be exported into
48749#  a .DEF file, then linker will be run (through gcc) against them to
48750#  build a shared library consisting of all given .o files. All libraries
48751#  (.a) will be first decompressed into component .o files then act as
48752#  described above. You can optionally give a description (-d "description")
48753#  which will be put into .DLL. To see the list of accepted options (as well
48754#  as command-line format) simply run this program without options. The .DLL
48755#  is built to be imported by name (there is no guarantee that new versions
48756#  of the library you build will have same ordinals for same symbols).
48757#
48758#  dllar is free software; you can redistribute it and/or modify
48759#  it under the terms of the GNU General Public License as published by
48760#  the Free Software Foundation; either version 2, or (at your option)
48761#  any later version.
48762#
48763#  dllar is distributed in the hope that it will be useful,
48764#  but WITHOUT ANY WARRANTY; without even the implied warranty of
48765#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48766#  GNU General Public License for more details.
48767#
48768#  You should have received a copy of the GNU General Public License
48769#  along with dllar; see the file COPYING.  If not, write to the Free
48770#  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48771#  02111-1307, USA.
48772
48773# To successfuly run this program you will need:
48774#  - Current drive should have LFN support (HPFS, ext2, network, etc)
48775#    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48776#  - gcc
48777#    (used to build the .dll)
48778#  - emxexp
48779#    (used to create .def file from .o files)
48780#  - emximp
48781#    (used to create .a file from .def file)
48782#  - GNU text utilites (cat, sort, uniq)
48783#    used to process emxexp output
48784#  - GNU file utilities (mv, rm)
48785#  - GNU sed
48786#  - lxlite (optional, see flag below)
48787#    (used for general .dll cleanup)
48788#
48789
48790flag_USE_LXLITE=1;
48791
48792#
48793# helper functions
48794# basnam, variant of basename, which does _not_ remove the path, _iff_
48795#                              second argument (suffix to remove) is given
48796basnam(){
48797    case ${D}# in
48798    1)
48799        echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48800        ;;
48801    2)
48802        echo ${D}1 | sed 's/'${D}2'${D}//'
48803        ;;
48804    *)
48805        echo "error in basnam ${D}*"
48806        exit 8
48807        ;;
48808    esac
48809}
48810
48811# Cleanup temporary files and output
48812CleanUp() {
48813    cd ${D}curDir
48814    for i in ${D}inputFiles ; do
48815        case ${D}i in
48816        *!)
48817            rm -rf \`basnam ${D}i !\`
48818            ;;
48819        *)
48820            ;;
48821        esac
48822    done
48823
48824    # Kill result in case of failure as there is just to many stupid make/nmake
48825    # things out there which doesn't do this.
48826    if [ ${D}# -eq 0 ]; then
48827        rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48828    fi
48829}
48830
48831# Print usage and exit script with rc=1.
48832PrintHelp() {
48833 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48834 echo '       [-name-mangler-script script.sh]'
48835 echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48836 echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48837 echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48838 echo '       [*.o] [*.a]'
48839 echo '*> "output_file" should have no extension.'
48840 echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48841 echo '   The import library name is derived from this and is set to "name".a,'
48842 echo '   unless overridden by -import'
48843 echo '*> "importlib_name" should have no extension.'
48844 echo '   If it has the .o, or .a extension, it is automatically removed.'
48845 echo '   This name is used as the import library name and may be longer and'
48846 echo '   more descriptive than the DLL name which has to follow the old '
48847 echo '   8.3 convention of FAT.'
48848 echo '*> "script.sh may be given to override the output_file name by a'
48849 echo '   different name. It is mainly useful if the regular make process'
48850 echo '   of some package does not take into account OS/2 restriction of'
48851 echo '   DLL name lengths. It takes the importlib name as input and is'
48852 echo '   supposed to procude a shorter name as output. The script should'
48853 echo '   expect to get importlib_name without extension and should produce'
48854 echo '   a (max.) 8 letter name without extension.'
48855 echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48856 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48857 echo '   These flags will be put at the start of GCC command line.'
48858 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48859 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48860 echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48861 echo '   If the last character of a symbol is "*", all symbols beginning'
48862 echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48863 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48864 echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48865 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48866 echo '   C runtime DLLs.'
48867 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48868 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48869 echo '   unchanged to GCC at the end of command line.'
48870 echo '*> If you create a DLL from a library and you do not specify -o,'
48871 echo '   the basename for DLL and import library will be set to library name,'
48872 echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48873 echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48874 echo '   library will be renamed into gcc_s.a.'
48875 echo '--------'
48876 echo 'Example:'
48877 echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48878 echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48879 CleanUp
48880 exit 1
48881}
48882
48883# Execute a command.
48884# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48885# @Uses    Whatever CleanUp() uses.
48886doCommand() {
48887    echo "${D}*"
48888    eval ${D}*
48889    rcCmd=${D}?
48890
48891    if [ ${D}rcCmd -ne 0 ]; then
48892        echo "command failed, exit code="${D}rcCmd
48893        CleanUp
48894        exit ${D}rcCmd
48895    fi
48896}
48897
48898# main routine
48899# setup globals
48900cmdLine=${D}*
48901outFile=""
48902outimpFile=""
48903inputFiles=""
48904renameScript=""
48905description=""
48906CC=gcc.exe
48907CFLAGS="-s -Zcrtdll"
48908EXTRA_CFLAGS=""
48909EXPORT_BY_ORDINALS=0
48910exclude_symbols=""
48911library_flags=""
48912curDir=\`pwd\`
48913curDirS=curDir
48914case ${D}curDirS in
48915*/)
48916  ;;
48917*)
48918  curDirS=${D}{curDirS}"/"
48919  ;;
48920esac
48921# Parse commandline
48922libsToLink=0
48923omfLinking=0
48924while [ ${D}1 ]; do
48925    case ${D}1 in
48926    -ord*)
48927        EXPORT_BY_ORDINALS=1;
48928        ;;
48929    -o*)
48930	shift
48931        outFile=${D}1
48932	;;
48933    -i*)
48934        shift
48935        outimpFile=${D}1
48936        ;;
48937    -name-mangler-script)
48938        shift
48939        renameScript=${D}1
48940        ;;
48941    -d*)
48942        shift
48943        description=${D}1
48944        ;;
48945    -f*)
48946        shift
48947        CFLAGS=${D}1
48948        ;;
48949    -c*)
48950        shift
48951        CC=${D}1
48952        ;;
48953    -h*)
48954        PrintHelp
48955        ;;
48956    -ex*)
48957        shift
48958        exclude_symbols=${D}{exclude_symbols}${D}1" "
48959        ;;
48960    -libf*)
48961        shift
48962        library_flags=${D}{library_flags}${D}1" "
48963        ;;
48964    -nocrt*)
48965        CFLAGS="-s"
48966        ;;
48967    -nolxl*)
48968        flag_USE_LXLITE=0
48969        ;;
48970    -* | /*)
48971        case ${D}1 in
48972        -L* | -l*)
48973            libsToLink=1
48974            ;;
48975        -Zomf)
48976            omfLinking=1
48977            ;;
48978        *)
48979            ;;
48980        esac
48981        EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48982        ;;
48983    *.dll)
48984        EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48985        if [ ${D}omfLinking -eq 1 ]; then
48986            EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48987	else
48988            EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48989        fi
48990        ;;
48991    *)
48992        found=0;
48993        if [ ${D}libsToLink -ne 0 ]; then
48994            EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48995        else
48996            for file in ${D}1 ; do
48997                if [ -f ${D}file ]; then
48998                    inputFiles="${D}{inputFiles} ${D}file"
48999                    found=1
49000                fi
49001            done
49002            if [ ${D}found -eq 0 ]; then
49003                echo "ERROR: No file(s) found: "${D}1
49004                exit 8
49005            fi
49006        fi
49007      ;;
49008    esac
49009    shift
49010done # iterate cmdline words
49011
49012#
49013if [ -z "${D}inputFiles" ]; then
49014    echo "dllar: no input files"
49015    PrintHelp
49016fi
49017
49018# Now extract all .o files from .a files
49019newInputFiles=""
49020for file in ${D}inputFiles ; do
49021    case ${D}file in
49022    *.a | *.lib)
49023        case ${D}file in
49024        *.a)
49025            suffix=".a"
49026            AR="ar"
49027            ;;
49028        *.lib)
49029            suffix=".lib"
49030            AR="emxomfar"
49031            EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49032            ;;
49033        *)
49034            ;;
49035        esac
49036        dirname=\`basnam ${D}file ${D}suffix\`"_%"
49037        mkdir ${D}dirname
49038        if [ ${D}? -ne 0 ]; then
49039            echo "Failed to create subdirectory ./${D}dirname"
49040            CleanUp
49041            exit 8;
49042        fi
49043        # Append '!' to indicate archive
49044        newInputFiles="${D}newInputFiles ${D}{dirname}!"
49045        doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49046        cd ${D}curDir
49047        found=0;
49048        for subfile in ${D}dirname/*.o* ; do
49049            if [ -f ${D}subfile ]; then
49050                found=1
49051                if [ -s ${D}subfile ]; then
49052	            # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49053                    newInputFiles="${D}newInputFiles ${D}subfile"
49054                fi
49055            fi
49056        done
49057        if [ ${D}found -eq 0 ]; then
49058            echo "WARNING: there are no files in archive \\'${D}file\\'"
49059        fi
49060        ;;
49061    *)
49062        newInputFiles="${D}{newInputFiles} ${D}file"
49063        ;;
49064    esac
49065done
49066inputFiles="${D}newInputFiles"
49067
49068# Output filename(s).
49069do_backup=0;
49070if [ -z ${D}outFile ]; then
49071    do_backup=1;
49072    set outFile ${D}inputFiles; outFile=${D}2
49073fi
49074
49075# If it is an archive, remove the '!' and the '_%' suffixes
49076case ${D}outFile in
49077*_%!)
49078    outFile=\`basnam ${D}outFile _%!\`
49079    ;;
49080*)
49081    ;;
49082esac
49083case ${D}outFile in
49084*.dll)
49085    outFile=\`basnam ${D}outFile .dll\`
49086    ;;
49087*.DLL)
49088    outFile=\`basnam ${D}outFile .DLL\`
49089    ;;
49090*.o)
49091    outFile=\`basnam ${D}outFile .o\`
49092    ;;
49093*.obj)
49094    outFile=\`basnam ${D}outFile .obj\`
49095    ;;
49096*.a)
49097    outFile=\`basnam ${D}outFile .a\`
49098    ;;
49099*.lib)
49100    outFile=\`basnam ${D}outFile .lib\`
49101    ;;
49102*)
49103    ;;
49104esac
49105case ${D}outimpFile in
49106*.a)
49107    outimpFile=\`basnam ${D}outimpFile .a\`
49108    ;;
49109*.lib)
49110    outimpFile=\`basnam ${D}outimpFile .lib\`
49111    ;;
49112*)
49113    ;;
49114esac
49115if [ -z ${D}outimpFile ]; then
49116    outimpFile=${D}outFile
49117fi
49118defFile="${D}{outFile}.def"
49119arcFile="${D}{outimpFile}.a"
49120arcFile2="${D}{outimpFile}.lib"
49121
49122#create ${D}dllFile as something matching 8.3 restrictions,
49123if [ -z ${D}renameScript ] ; then
49124    dllFile="${D}outFile"
49125else
49126    dllFile=\`${D}renameScript ${D}outimpFile\`
49127fi
49128
49129if [ ${D}do_backup -ne 0 ] ; then
49130    if [ -f ${D}arcFile ] ; then
49131        doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49132    fi
49133    if [ -f ${D}arcFile2 ] ; then
49134        doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49135    fi
49136fi
49137
49138# Extract public symbols from all the object files.
49139tmpdefFile=${D}{defFile}_%
49140rm -f ${D}tmpdefFile
49141for file in ${D}inputFiles ; do
49142    case ${D}file in
49143    *!)
49144        ;;
49145    *)
49146        doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49147        ;;
49148    esac
49149done
49150
49151# Create the def file.
49152rm -f ${D}defFile
49153echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
49154dllFile="${D}{dllFile}.dll"
49155if [ ! -z ${D}description ]; then
49156    echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
49157fi
49158echo "EXPORTS" >> ${D}defFile
49159
49160doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49161grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49162
49163# Checks if the export is ok or not.
49164for word in ${D}exclude_symbols; do
49165    grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49166    mv ${D}{tmpdefFile}% ${D}tmpdefFile
49167done
49168
49169
49170if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49171    sed "=" < ${D}tmpdefFile | \\
49172    sed '
49173      N
49174      : loop
49175      s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
49176      t loop
49177    ' > ${D}{tmpdefFile}%
49178    grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49179else
49180    rm -f ${D}{tmpdefFile}%
49181fi
49182cat ${D}tmpdefFile >> ${D}defFile
49183rm -f ${D}tmpdefFile
49184
49185# Do linking, create implib, and apply lxlite.
49186gccCmdl="";
49187for file in ${D}inputFiles ; do
49188    case ${D}file in
49189    *!)
49190        ;;
49191    *)
49192        gccCmdl="${D}gccCmdl ${D}file"
49193        ;;
49194    esac
49195done
49196doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49197touch "${D}{outFile}.dll"
49198
49199doCommand "emximp -o ${D}arcFile ${D}defFile"
49200if [ ${D}flag_USE_LXLITE -ne 0 ]; then
49201    add_flags="";
49202    if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49203        add_flags="-ynd"
49204    fi
49205    doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49206fi
49207doCommand "emxomf -s -l ${D}arcFile"
49208
49209# Successful exit.
49210CleanUp 1
49211exit 0
49212EOF
49213
49214        chmod +x dllar.sh
49215      ;;
49216
49217      powerpc-apple-macos* | \
49218      *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
49219      *-*-dragonfly* | \
49220      *-*-mirbsd* | \
49221      *-*-sunos4* | \
49222      *-*-osf* | \
49223      *-*-dgux5* | \
49224      *-*-sysv5* | \
49225      *-pc-msdosdjgpp )
49226              ;;
49227
49228      *)
49229        { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
49230echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
49231   { (exit 1); exit 1; }; }
49232    esac
49233
49234    if test "x$PIC_FLAG" != "x" ; then
49235        PIC_FLAG="$PIC_FLAG -DPIC"
49236    fi
49237
49238    if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49239        SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49240    fi
49241    if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49242        SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49243    fi
49244
49245
49246
49247
49248
49249
49250
49251
49252
49253    USE_SOVERSION=0
49254    USE_SOVERLINUX=0
49255    USE_SOVERSOLARIS=0
49256    USE_SOVERCYGWIN=0
49257    USE_SOTWOSYMLINKS=0
49258    USE_MACVERSION=0
49259    SONAME_FLAG=
49260
49261    case "${BAKEFILE_HOST}" in
49262      *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
49263      *-*-dragonfly* | \
49264      *-*-k*bsd*-gnu | *-*-mirbsd* )
49265        if test "x$SUNCXX" = "xyes"; then
49266            SONAME_FLAG="-h "
49267        else
49268            SONAME_FLAG="-Wl,-soname,"
49269        fi
49270        USE_SOVERSION=1
49271        USE_SOVERLINUX=1
49272        USE_SOTWOSYMLINKS=1
49273      ;;
49274
49275      *-*-solaris2* )
49276        SONAME_FLAG="-h "
49277        USE_SOVERSION=1
49278        USE_SOVERSOLARIS=1
49279      ;;
49280
49281      *-*-darwin* )
49282        USE_MACVERSION=1
49283        USE_SOVERSION=1
49284        USE_SOTWOSYMLINKS=1
49285      ;;
49286
49287      *-*-cygwin* )
49288        USE_SOVERSION=1
49289        USE_SOVERCYGWIN=1
49290      ;;
49291    esac
49292
49293
49294
49295
49296
49297
49298
49299
49300
49301
49302    # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
49303if test "${enable_dependency_tracking+set}" = set; then
49304  enableval="$enable_dependency_tracking"
49305  bk_use_trackdeps="$enableval"
49306fi;
49307
49308    echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49309echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
49310
49311    BK_DEPS=""
49312    if test "x$bk_use_trackdeps" = "xno" ; then
49313        DEPS_TRACKING=0
49314        echo "$as_me:$LINENO: result: disabled" >&5
49315echo "${ECHO_T}disabled" >&6
49316    else
49317        DEPS_TRACKING=1
49318
49319        if test "x$GCC" = "xyes"; then
49320            DEPSMODE=gcc
49321            case "${BAKEFILE_HOST}" in
49322                *-*-darwin* )
49323                                                            DEPSFLAG="-no-cpp-precomp -MMD"
49324                ;;
49325                * )
49326                    DEPSFLAG="-MMD"
49327                ;;
49328            esac
49329            echo "$as_me:$LINENO: result: gcc" >&5
49330echo "${ECHO_T}gcc" >&6
49331        elif test "x$MWCC" = "xyes"; then
49332            DEPSMODE=mwcc
49333            DEPSFLAG="-MM"
49334            echo "$as_me:$LINENO: result: mwcc" >&5
49335echo "${ECHO_T}mwcc" >&6
49336        elif test "x$SUNCC" = "xyes"; then
49337            DEPSMODE=unixcc
49338            DEPSFLAG="-xM1"
49339            echo "$as_me:$LINENO: result: Sun cc" >&5
49340echo "${ECHO_T}Sun cc" >&6
49341        elif test "x$SGICC" = "xyes"; then
49342            DEPSMODE=unixcc
49343            DEPSFLAG="-M"
49344            echo "$as_me:$LINENO: result: SGI cc" >&5
49345echo "${ECHO_T}SGI cc" >&6
49346        elif test "x$HPCC" = "xyes"; then
49347            DEPSMODE=unixcc
49348            DEPSFLAG="+make"
49349            echo "$as_me:$LINENO: result: HP cc" >&5
49350echo "${ECHO_T}HP cc" >&6
49351        elif test "x$COMPAQCC" = "xyes"; then
49352            DEPSMODE=gcc
49353            DEPSFLAG="-MD"
49354            echo "$as_me:$LINENO: result: Compaq cc" >&5
49355echo "${ECHO_T}Compaq cc" >&6
49356        else
49357            DEPS_TRACKING=0
49358            echo "$as_me:$LINENO: result: none" >&5
49359echo "${ECHO_T}none" >&6
49360        fi
49361
49362        if test $DEPS_TRACKING = 1 ; then
49363
49364D='$'
49365cat <<EOF >bk-deps
49366#!/bin/sh
49367
49368# This script is part of Bakefile (http://www.bakefile.org) autoconf
49369# script. It is used to track C/C++ files dependencies in portable way.
49370#
49371# Permission is given to use this file in any way.
49372
49373DEPSMODE=${DEPSMODE}
49374DEPSFLAG="${DEPSFLAG}"
49375DEPSDIRBASE=.deps
49376
49377if test ${D}DEPSMODE = gcc ; then
49378    ${D}* ${D}{DEPSFLAG}
49379    status=${D}?
49380
49381    # determine location of created files:
49382    while test ${D}# -gt 0; do
49383        case "${D}1" in
49384            -o )
49385                shift
49386                objfile=${D}1
49387            ;;
49388            -* )
49389            ;;
49390            * )
49391                srcfile=${D}1
49392            ;;
49393        esac
49394        shift
49395    done
49396    objfilebase=\`basename ${D}objfile\`
49397    builddir=\`dirname ${D}objfile\`
49398    depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49399    depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49400    depsdir=${D}builddir/${D}DEPSDIRBASE
49401    mkdir -p ${D}depsdir
49402
49403    # if the compiler failed, we're done:
49404    if test ${D}{status} != 0 ; then
49405        rm -f ${D}depfile
49406        exit ${D}{status}
49407    fi
49408
49409    # move created file to the location we want it in:
49410    if test -f ${D}depfile ; then
49411        sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49412        rm -f ${D}depfile
49413    else
49414        # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49415        depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49416        if test ! -f ${D}depfile ; then
49417            # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49418            depfile="${D}objfile.d"
49419        fi
49420        if test -f ${D}depfile ; then
49421            sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49422            rm -f ${D}depfile
49423        fi
49424    fi
49425    exit 0
49426
49427elif test ${D}DEPSMODE = mwcc ; then
49428    ${D}* || exit ${D}?
49429    # Run mwcc again with -MM and redirect into the dep file we want
49430    # NOTE: We can't use shift here because we need ${D}* to be valid
49431    prevarg=
49432    for arg in ${D}* ; do
49433        if test "${D}prevarg" = "-o"; then
49434            objfile=${D}arg
49435        else
49436            case "${D}arg" in
49437                -* )
49438                ;;
49439                * )
49440                    srcfile=${D}arg
49441                ;;
49442            esac
49443        fi
49444        prevarg="${D}arg"
49445    done
49446
49447    objfilebase=\`basename ${D}objfile\`
49448    builddir=\`dirname ${D}objfile\`
49449    depsdir=${D}builddir/${D}DEPSDIRBASE
49450    mkdir -p ${D}depsdir
49451
49452    ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49453    exit 0
49454
49455elif test ${D}DEPSMODE = unixcc; then
49456    ${D}* || exit ${D}?
49457    # Run compiler again with deps flag and redirect into the dep file.
49458    # It doesn't work if the '-o FILE' option is used, but without it the
49459    # dependency file will contain the wrong name for the object. So it is
49460    # removed from the command line, and the dep file is fixed with sed.
49461    cmd=""
49462    while test ${D}# -gt 0; do
49463        case "${D}1" in
49464            -o )
49465                shift
49466                objfile=${D}1
49467            ;;
49468            * )
49469                eval arg${D}#=\\${D}1
49470                cmd="${D}cmd \\${D}arg${D}#"
49471            ;;
49472        esac
49473        shift
49474    done
49475
49476    objfilebase=\`basename ${D}objfile\`
49477    builddir=\`dirname ${D}objfile\`
49478    depsdir=${D}builddir/${D}DEPSDIRBASE
49479    mkdir -p ${D}depsdir
49480
49481    eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
49482    exit 0
49483
49484else
49485    ${D}*
49486    exit ${D}?
49487fi
49488EOF
49489
49490            chmod +x bk-deps
49491                                    BK_DEPS="`pwd`/bk-deps"
49492        fi
49493    fi
49494
49495
49496
49497
49498
49499    case ${BAKEFILE_HOST} in
49500        *-*-cygwin* | *-*-mingw32* )
49501                        if test -n "$ac_tool_prefix"; then
49502  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49503set dummy ${ac_tool_prefix}windres; ac_word=$2
49504echo "$as_me:$LINENO: checking for $ac_word" >&5
49505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49506if test "${ac_cv_prog_WINDRES+set}" = set; then
49507  echo $ECHO_N "(cached) $ECHO_C" >&6
49508else
49509  if test -n "$WINDRES"; then
49510  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49511else
49512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49513for as_dir in $PATH
49514do
49515  IFS=$as_save_IFS
49516  test -z "$as_dir" && as_dir=.
49517  for ac_exec_ext in '' $ac_executable_extensions; do
49518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49519    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49521    break 2
49522  fi
49523done
49524done
49525
49526fi
49527fi
49528WINDRES=$ac_cv_prog_WINDRES
49529if test -n "$WINDRES"; then
49530  echo "$as_me:$LINENO: result: $WINDRES" >&5
49531echo "${ECHO_T}$WINDRES" >&6
49532else
49533  echo "$as_me:$LINENO: result: no" >&5
49534echo "${ECHO_T}no" >&6
49535fi
49536
49537fi
49538if test -z "$ac_cv_prog_WINDRES"; then
49539  ac_ct_WINDRES=$WINDRES
49540  # Extract the first word of "windres", so it can be a program name with args.
49541set dummy windres; ac_word=$2
49542echo "$as_me:$LINENO: checking for $ac_word" >&5
49543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49544if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49545  echo $ECHO_N "(cached) $ECHO_C" >&6
49546else
49547  if test -n "$ac_ct_WINDRES"; then
49548  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49549else
49550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49551for as_dir in $PATH
49552do
49553  IFS=$as_save_IFS
49554  test -z "$as_dir" && as_dir=.
49555  for ac_exec_ext in '' $ac_executable_extensions; do
49556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49557    ac_cv_prog_ac_ct_WINDRES="windres"
49558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49559    break 2
49560  fi
49561done
49562done
49563
49564fi
49565fi
49566ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49567if test -n "$ac_ct_WINDRES"; then
49568  echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49569echo "${ECHO_T}$ac_ct_WINDRES" >&6
49570else
49571  echo "$as_me:$LINENO: result: no" >&5
49572echo "${ECHO_T}no" >&6
49573fi
49574
49575  WINDRES=$ac_ct_WINDRES
49576else
49577  WINDRES="$ac_cv_prog_WINDRES"
49578fi
49579
49580         ;;
49581
49582      *-*-darwin* | powerpc-apple-macos* )
49583            # Extract the first word of "Rez", so it can be a program name with args.
49584set dummy Rez; ac_word=$2
49585echo "$as_me:$LINENO: checking for $ac_word" >&5
49586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49587if test "${ac_cv_prog_REZ+set}" = set; then
49588  echo $ECHO_N "(cached) $ECHO_C" >&6
49589else
49590  if test -n "$REZ"; then
49591  ac_cv_prog_REZ="$REZ" # Let the user override the test.
49592else
49593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49594for as_dir in $PATH
49595do
49596  IFS=$as_save_IFS
49597  test -z "$as_dir" && as_dir=.
49598  for ac_exec_ext in '' $ac_executable_extensions; do
49599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49600    ac_cv_prog_REZ="Rez"
49601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49602    break 2
49603  fi
49604done
49605done
49606
49607  test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49608fi
49609fi
49610REZ=$ac_cv_prog_REZ
49611if test -n "$REZ"; then
49612  echo "$as_me:$LINENO: result: $REZ" >&5
49613echo "${ECHO_T}$REZ" >&6
49614else
49615  echo "$as_me:$LINENO: result: no" >&5
49616echo "${ECHO_T}no" >&6
49617fi
49618
49619            # Extract the first word of "SetFile", so it can be a program name with args.
49620set dummy SetFile; ac_word=$2
49621echo "$as_me:$LINENO: checking for $ac_word" >&5
49622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49623if test "${ac_cv_prog_SETFILE+set}" = set; then
49624  echo $ECHO_N "(cached) $ECHO_C" >&6
49625else
49626  if test -n "$SETFILE"; then
49627  ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49628else
49629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49630for as_dir in $PATH
49631do
49632  IFS=$as_save_IFS
49633  test -z "$as_dir" && as_dir=.
49634  for ac_exec_ext in '' $ac_executable_extensions; do
49635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49636    ac_cv_prog_SETFILE="SetFile"
49637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49638    break 2
49639  fi
49640done
49641done
49642
49643  test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49644fi
49645fi
49646SETFILE=$ac_cv_prog_SETFILE
49647if test -n "$SETFILE"; then
49648  echo "$as_me:$LINENO: result: $SETFILE" >&5
49649echo "${ECHO_T}$SETFILE" >&6
49650else
49651  echo "$as_me:$LINENO: result: no" >&5
49652echo "${ECHO_T}no" >&6
49653fi
49654
49655        ;;
49656    esac
49657
49658
49659
49660
49661
49662
49663
49664
49665
49666    BAKEFILE_BAKEFILE_M4_VERSION="0.2.8"
49667
49668
49669BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.8"
49670
49671
49672
49673    # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49674if test "${enable_precomp_headers+set}" = set; then
49675  enableval="$enable_precomp_headers"
49676  bk_use_pch="$enableval"
49677fi;
49678
49679    GCC_PCH=0
49680    ICC_PCH=0
49681    USE_PCH=0
49682    BK_MAKE_PCH=""
49683
49684    case ${BAKEFILE_HOST} in
49685        *-*-cygwin* )
49686                                                bk_use_pch="no"
49687            ;;
49688    esac
49689
49690    if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49691        if test "x$GCC" = "xyes"; then
49692                        echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49693echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49694            cat >conftest.$ac_ext <<_ACEOF
49695/* confdefs.h.  */
49696_ACEOF
49697cat confdefs.h >>conftest.$ac_ext
49698cat >>conftest.$ac_ext <<_ACEOF
49699/* end confdefs.h.  */
49700
49701int
49702main ()
49703{
49704
49705                    #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49706                        There is no PCH support
49707                    #endif
49708                    #if (__GNUC__ < 3)
49709                        There is no PCH support
49710                    #endif
49711                    #if (__GNUC__ == 3) && \
49712                       ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49713                       ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49714                       ( defined(__INTEL_COMPILER) )
49715                        There is no PCH support
49716                    #endif
49717
49718  ;
49719  return 0;
49720}
49721_ACEOF
49722rm -f conftest.$ac_objext
49723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49724  (eval $ac_compile) 2>conftest.er1
49725  ac_status=$?
49726  grep -v '^ *+' conftest.er1 >conftest.err
49727  rm -f conftest.er1
49728  cat conftest.err >&5
49729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49730  (exit $ac_status); } &&
49731	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
49732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49733  (eval $ac_try) 2>&5
49734  ac_status=$?
49735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49736  (exit $ac_status); }; } &&
49737	 { ac_try='test -s conftest.$ac_objext'
49738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49739  (eval $ac_try) 2>&5
49740  ac_status=$?
49741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49742  (exit $ac_status); }; }; then
49743
49744                    echo "$as_me:$LINENO: result: yes" >&5
49745echo "${ECHO_T}yes" >&6
49746                    GCC_PCH=1
49747
49748else
49749  echo "$as_me: failed program was:" >&5
49750sed 's/^/| /' conftest.$ac_ext >&5
49751
49752
49753                    if test "$INTELCXX8" = "yes"; then
49754                        echo "$as_me:$LINENO: result: yes" >&5
49755echo "${ECHO_T}yes" >&6
49756                        ICC_PCH=1
49757                        if test "$INTELCXX10" = "yes"; then
49758                            ICC_PCH_CREATE_SWITCH="-pch-create"
49759                            ICC_PCH_USE_SWITCH="-pch-use"
49760                        else
49761                            ICC_PCH_CREATE_SWITCH="-create-pch"
49762                            ICC_PCH_USE_SWITCH="-use-pch"
49763                        fi
49764                    else
49765                        echo "$as_me:$LINENO: result: no" >&5
49766echo "${ECHO_T}no" >&6
49767                    fi
49768
49769fi
49770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49771            if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49772                USE_PCH=1
49773
49774D='$'
49775cat <<EOF >bk-make-pch
49776#!/bin/sh
49777
49778# This script is part of Bakefile (http://www.bakefile.org) autoconf
49779# script. It is used to generated precompiled headers.
49780#
49781# Permission is given to use this file in any way.
49782
49783outfile="${D}{1}"
49784header="${D}{2}"
49785shift
49786shift
49787
49788builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49789
49790compiler=""
49791headerfile=""
49792
49793while test ${D}{#} -gt 0; do
49794    add_to_cmdline=1
49795    case "${D}{1}" in
49796        -I* )
49797            incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49798            if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49799                headerfile="${D}{incdir}/${D}{header}"
49800            fi
49801        ;;
49802        -use-pch|-use_pch|-pch-use )
49803            shift
49804            add_to_cmdline=0
49805        ;;
49806    esac
49807    if test ${D}add_to_cmdline = 1 ; then
49808        compiler="${D}{compiler} ${D}{1}"
49809    fi
49810    shift
49811done
49812
49813if test "x${D}{headerfile}" = "x" ; then
49814    echo "error: can't find header ${D}{header} in include paths" >&2
49815else
49816    if test -f ${D}{outfile} ; then
49817        rm -f ${D}{outfile}
49818    else
49819        mkdir -p \`dirname ${D}{outfile}\`
49820    fi
49821    depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49822    mkdir -p ${D}{builddir}/.deps
49823    if test "x${GCC_PCH}" = "x1" ; then
49824        # can do this because gcc is >= 3.4:
49825        ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49826    elif test "x${ICC_PCH}" = "x1" ; then
49827        filename=pch_gen-${D}${D}
49828        file=${D}{filename}.c
49829        dfile=${D}{filename}.d
49830        cat > ${D}file <<EOT
49831#include "${D}header"
49832EOT
49833        # using -MF icc complains about differing command lines in creation/use
49834        ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
49835          sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49836          rm -f ${D}file ${D}dfile ${D}{filename}.o
49837    fi
49838    exit ${D}{?}
49839fi
49840EOF
49841
49842                chmod +x bk-make-pch
49843                                                                BK_MAKE_PCH="`pwd`/bk-make-pch"
49844            fi
49845        fi
49846    fi
49847
49848
49849
49850
49851
49852
49853
49854    COND_BUILD_debug="#"
49855    if test "x$BUILD" = "xdebug" ; then
49856        COND_BUILD_debug=""
49857    fi
49858
49859    COND_BUILD_debug_DEBUG_FLAG_default="#"
49860    if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49861        COND_BUILD_debug_DEBUG_FLAG_default=""
49862    fi
49863
49864    COND_BUILD_debug_DEBUG_INFO_default="#"
49865    if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49866        COND_BUILD_debug_DEBUG_INFO_default=""
49867    fi
49868
49869    COND_BUILD_debug_UNICODE_0="#"
49870    if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49871        COND_BUILD_debug_UNICODE_0=""
49872    fi
49873
49874    COND_BUILD_debug_UNICODE_1="#"
49875    if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49876        COND_BUILD_debug_UNICODE_1=""
49877    fi
49878
49879    COND_BUILD_release="#"
49880    if test "x$BUILD" = "xrelease" ; then
49881        COND_BUILD_release=""
49882    fi
49883
49884    COND_BUILD_release_DEBUG_INFO_default="#"
49885    if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49886        COND_BUILD_release_DEBUG_INFO_default=""
49887    fi
49888
49889    COND_BUILD_release_UNICODE_0="#"
49890    if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49891        COND_BUILD_release_UNICODE_0=""
49892    fi
49893
49894    COND_BUILD_release_UNICODE_1="#"
49895    if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49896        COND_BUILD_release_UNICODE_1=""
49897    fi
49898
49899    COND_DEBUG_FLAG_1="#"
49900    if test "x$DEBUG_FLAG" = "x1" ; then
49901        COND_DEBUG_FLAG_1=""
49902    fi
49903
49904    COND_DEBUG_INFO_0="#"
49905    if test "x$DEBUG_INFO" = "x0" ; then
49906        COND_DEBUG_INFO_0=""
49907    fi
49908
49909    COND_DEBUG_INFO_1="#"
49910    if test "x$DEBUG_INFO" = "x1" ; then
49911        COND_DEBUG_INFO_1=""
49912    fi
49913
49914    COND_DEPS_TRACKING_0="#"
49915    if test "x$DEPS_TRACKING" = "x0" ; then
49916        COND_DEPS_TRACKING_0=""
49917    fi
49918
49919    COND_DEPS_TRACKING_1="#"
49920    if test "x$DEPS_TRACKING" = "x1" ; then
49921        COND_DEPS_TRACKING_1=""
49922    fi
49923
49924    COND_GCC_PCH_1="#"
49925    if test "x$GCC_PCH" = "x1" ; then
49926        COND_GCC_PCH_1=""
49927    fi
49928
49929    COND_ICC_PCH_1="#"
49930    if test "x$ICC_PCH" = "x1" ; then
49931        COND_ICC_PCH_1=""
49932    fi
49933
49934    COND_MONOLITHIC_0="#"
49935    if test "x$MONOLITHIC" = "x0" ; then
49936        COND_MONOLITHIC_0=""
49937    fi
49938
49939    COND_MONOLITHIC_0_SHARED_0="#"
49940    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49941        COND_MONOLITHIC_0_SHARED_0=""
49942    fi
49943
49944    COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49945    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49946        COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49947    fi
49948
49949    COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49950    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49951        COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49952    fi
49953
49954    COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49955    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49956        COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49957    fi
49958
49959    COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49960    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49961        COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49962    fi
49963
49964    COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49965    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49966        COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49967    fi
49968
49969    COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49970    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49971        COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49972    fi
49973
49974    COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49975    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49976        COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49977    fi
49978
49979    COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49980    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49981        COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49982    fi
49983
49984    COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49985    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49986        COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49987    fi
49988
49989    COND_MONOLITHIC_0_SHARED_1="#"
49990    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49991        COND_MONOLITHIC_0_SHARED_1=""
49992    fi
49993
49994    COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49995    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49996        COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49997    fi
49998
49999    COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50000    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50001        COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50002    fi
50003
50004    COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50005    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50006        COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50007    fi
50008
50009    COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50010    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50011        COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50012    fi
50013
50014    COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
50015    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
50016        COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
50017    fi
50018
50019    COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50020    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50021        COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50022    fi
50023
50024    COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
50025    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
50026        COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
50027    fi
50028
50029    COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50030    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50031        COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50032    fi
50033
50034    COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50035    if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50036        COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50037    fi
50038
50039    COND_MONOLITHIC_0_USE_MEDIA_1="#"
50040    if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50041        COND_MONOLITHIC_0_USE_MEDIA_1=""
50042    fi
50043
50044    COND_MONOLITHIC_0_USE_ODBC_1="#"
50045    if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
50046        COND_MONOLITHIC_0_USE_ODBC_1=""
50047    fi
50048
50049    COND_MONOLITHIC_1="#"
50050    if test "x$MONOLITHIC" = "x1" ; then
50051        COND_MONOLITHIC_1=""
50052    fi
50053
50054    COND_MONOLITHIC_1_SHARED_0="#"
50055    if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50056        COND_MONOLITHIC_1_SHARED_0=""
50057    fi
50058
50059    COND_MONOLITHIC_1_SHARED_1="#"
50060    if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50061        COND_MONOLITHIC_1_SHARED_1=""
50062    fi
50063
50064    COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50065    if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50066        COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50067    fi
50068
50069    COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50070    if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50071        COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50072    fi
50073
50074    COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50075    if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50076        COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50077    fi
50078
50079    COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50080    if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50081        COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50082    fi
50083
50084    COND_PLATFORM_MACOSX_1="#"
50085    if test "x$PLATFORM_MACOSX" = "x1" ; then
50086        COND_PLATFORM_MACOSX_1=""
50087    fi
50088
50089    COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
50090    if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
50091        COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
50092    fi
50093
50094    COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
50095    if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
50096        COND_PLATFORM_MACOSX_1_TOOLKIT_=""
50097    fi
50098
50099    COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
50100    if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
50101        COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
50102    fi
50103
50104    COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
50105    if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
50106        COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
50107    fi
50108
50109    COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
50110    if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
50111        COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
50112    fi
50113
50114    COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
50115    if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50116        COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
50117    fi
50118
50119    COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
50120    if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
50121        COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
50122    fi
50123
50124    COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
50125    if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
50126        COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
50127    fi
50128
50129    COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50130    if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50131        COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50132    fi
50133
50134    COND_PLATFORM_MACOSX_1_USE_ODBC_1="#"
50135    if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_ODBC" = "x1" ; then
50136        COND_PLATFORM_MACOSX_1_USE_ODBC_1=""
50137    fi
50138
50139    COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
50140    if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50141        COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
50142    fi
50143
50144    COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50145    if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50146        COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50147    fi
50148
50149    COND_PLATFORM_MACOS_1="#"
50150    if test "x$PLATFORM_MACOS" = "x1" ; then
50151        COND_PLATFORM_MACOS_1=""
50152    fi
50153
50154    COND_PLATFORM_MAC_0="#"
50155    if test "x$PLATFORM_MAC" = "x0" ; then
50156        COND_PLATFORM_MAC_0=""
50157    fi
50158
50159    COND_PLATFORM_MAC_1="#"
50160    if test "x$PLATFORM_MAC" = "x1" ; then
50161        COND_PLATFORM_MAC_1=""
50162    fi
50163
50164    COND_PLATFORM_MSDOS_0="#"
50165    if test "x$PLATFORM_MSDOS" = "x0" ; then
50166        COND_PLATFORM_MSDOS_0=""
50167    fi
50168
50169    COND_PLATFORM_MSDOS_1="#"
50170    if test "x$PLATFORM_MSDOS" = "x1" ; then
50171        COND_PLATFORM_MSDOS_1=""
50172    fi
50173
50174    COND_PLATFORM_OS2_1="#"
50175    if test "x$PLATFORM_OS2" = "x1" ; then
50176        COND_PLATFORM_OS2_1=""
50177    fi
50178
50179    COND_PLATFORM_UNIX_0="#"
50180    if test "x$PLATFORM_UNIX" = "x0" ; then
50181        COND_PLATFORM_UNIX_0=""
50182    fi
50183
50184    COND_PLATFORM_UNIX_1="#"
50185    if test "x$PLATFORM_UNIX" = "x1" ; then
50186        COND_PLATFORM_UNIX_1=""
50187    fi
50188
50189    COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50190    if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50191        COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50192    fi
50193
50194    COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50195    if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50196        COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50197    fi
50198
50199    COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50200    if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50201        COND_PLATFORM_UNIX_1_USE_GUI_1=""
50202    fi
50203
50204    COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50205    if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50206        COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50207    fi
50208
50209    COND_PLATFORM_WIN32_0="#"
50210    if test "x$PLATFORM_WIN32" = "x0" ; then
50211        COND_PLATFORM_WIN32_0=""
50212    fi
50213
50214    COND_PLATFORM_WIN32_1="#"
50215    if test "x$PLATFORM_WIN32" = "x1" ; then
50216        COND_PLATFORM_WIN32_1=""
50217    fi
50218
50219    COND_SHARED_0="#"
50220    if test "x$SHARED" = "x0" ; then
50221        COND_SHARED_0=""
50222    fi
50223
50224    COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50225    if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50226        COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50227    fi
50228
50229    COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50230    if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50231        COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50232    fi
50233
50234    COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50235    if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50236        COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50237    fi
50238
50239    COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50240    if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50241        COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50242    fi
50243
50244    COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50245    if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50246        COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50247    fi
50248
50249    COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50250    if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50251        COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50252    fi
50253
50254    COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50255    if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50256        COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50257    fi
50258
50259    COND_SHARED_0_USE_XRC_1="#"
50260    if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50261        COND_SHARED_0_USE_XRC_1=""
50262    fi
50263
50264    COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50265    if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50266        COND_SHARED_0_wxUSE_EXPAT_builtin=""
50267    fi
50268
50269    COND_SHARED_0_wxUSE_ODBC_builtin="#"
50270    if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
50271        COND_SHARED_0_wxUSE_ODBC_builtin=""
50272    fi
50273
50274    COND_SHARED_0_wxUSE_REGEX_builtin="#"
50275    if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50276        COND_SHARED_0_wxUSE_REGEX_builtin=""
50277    fi
50278
50279    COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50280    if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50281        COND_SHARED_0_wxUSE_ZLIB_builtin=""
50282    fi
50283
50284    COND_SHARED_1="#"
50285    if test "x$SHARED" = "x1" ; then
50286        COND_SHARED_1=""
50287    fi
50288
50289    COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50290    if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50291        COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50292    fi
50293
50294    COND_SHARED_1_USE_XRC_1="#"
50295    if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50296        COND_SHARED_1_USE_XRC_1=""
50297    fi
50298
50299    COND_TOOLKIT_="#"
50300    if test "x$TOOLKIT" = "x" ; then
50301        COND_TOOLKIT_=""
50302    fi
50303
50304    COND_TOOLKIT_COCOA="#"
50305    if test "x$TOOLKIT" = "xCOCOA" ; then
50306        COND_TOOLKIT_COCOA=""
50307    fi
50308
50309    COND_TOOLKIT_COCOA_USE_GUI_1="#"
50310    if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50311        COND_TOOLKIT_COCOA_USE_GUI_1=""
50312    fi
50313
50314    COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50315    if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50316        COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50317    fi
50318
50319    COND_TOOLKIT_DFB="#"
50320    if test "x$TOOLKIT" = "xDFB" ; then
50321        COND_TOOLKIT_DFB=""
50322    fi
50323
50324    COND_TOOLKIT_DFB_USE_GUI_1="#"
50325    if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50326        COND_TOOLKIT_DFB_USE_GUI_1=""
50327    fi
50328
50329    COND_TOOLKIT_GTK="#"
50330    if test "x$TOOLKIT" = "xGTK" ; then
50331        COND_TOOLKIT_GTK=""
50332    fi
50333
50334    COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50335    if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50336        COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50337    fi
50338
50339    COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50340    if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50341        COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50342    fi
50343
50344    COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50345    if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50346        COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50347    fi
50348
50349    COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50350    if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50351        COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50352    fi
50353
50354    COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50355    if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50356        COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50357    fi
50358
50359    COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50360    if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50361        COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50362    fi
50363
50364    COND_TOOLKIT_GTK_USE_GUI_1="#"
50365    if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50366        COND_TOOLKIT_GTK_USE_GUI_1=""
50367    fi
50368
50369    COND_TOOLKIT_MAC="#"
50370    if test "x$TOOLKIT" = "xMAC" ; then
50371        COND_TOOLKIT_MAC=""
50372    fi
50373
50374    COND_TOOLKIT_MAC_USE_GUI_1="#"
50375    if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50376        COND_TOOLKIT_MAC_USE_GUI_1=""
50377    fi
50378
50379    COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
50380    if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50381        COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
50382    fi
50383
50384    COND_TOOLKIT_MGL="#"
50385    if test "x$TOOLKIT" = "xMGL" ; then
50386        COND_TOOLKIT_MGL=""
50387    fi
50388
50389    COND_TOOLKIT_MGL_USE_GUI_1="#"
50390    if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50391        COND_TOOLKIT_MGL_USE_GUI_1=""
50392    fi
50393
50394    COND_TOOLKIT_MOTIF="#"
50395    if test "x$TOOLKIT" = "xMOTIF" ; then
50396        COND_TOOLKIT_MOTIF=""
50397    fi
50398
50399    COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50400    if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50401        COND_TOOLKIT_MOTIF_USE_GUI_1=""
50402    fi
50403
50404    COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50405    if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50406        COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50407    fi
50408
50409    COND_TOOLKIT_MSW="#"
50410    if test "x$TOOLKIT" = "xMSW" ; then
50411        COND_TOOLKIT_MSW=""
50412    fi
50413
50414    COND_TOOLKIT_MSW_USE_GUI_1="#"
50415    if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50416        COND_TOOLKIT_MSW_USE_GUI_1=""
50417    fi
50418
50419    COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50420    if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50421        COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50422    fi
50423
50424    COND_TOOLKIT_MSW_WXUNIV_0="#"
50425    if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50426        COND_TOOLKIT_MSW_WXUNIV_0=""
50427    fi
50428
50429    COND_TOOLKIT_PM="#"
50430    if test "x$TOOLKIT" = "xPM" ; then
50431        COND_TOOLKIT_PM=""
50432    fi
50433
50434    COND_TOOLKIT_PM_USE_GUI_1="#"
50435    if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50436        COND_TOOLKIT_PM_USE_GUI_1=""
50437    fi
50438
50439    COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50440    if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50441        COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50442    fi
50443
50444    COND_TOOLKIT_WINCE="#"
50445    if test "x$TOOLKIT" = "xWINCE" ; then
50446        COND_TOOLKIT_WINCE=""
50447    fi
50448
50449    COND_TOOLKIT_WINCE_USE_GUI_1="#"
50450    if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50451        COND_TOOLKIT_WINCE_USE_GUI_1=""
50452    fi
50453
50454    COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50455    if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50456        COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50457    fi
50458
50459    COND_TOOLKIT_WINCE_WXUNIV_0="#"
50460    if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50461        COND_TOOLKIT_WINCE_WXUNIV_0=""
50462    fi
50463
50464    COND_TOOLKIT_X11="#"
50465    if test "x$TOOLKIT" = "xX11" ; then
50466        COND_TOOLKIT_X11=""
50467    fi
50468
50469    COND_TOOLKIT_X11_USE_GUI_1="#"
50470    if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50471        COND_TOOLKIT_X11_USE_GUI_1=""
50472    fi
50473
50474    COND_UNICODE_1="#"
50475    if test "x$UNICODE" = "x1" ; then
50476        COND_UNICODE_1=""
50477    fi
50478
50479    COND_USE_CAIRO_1="#"
50480    if test "x$USE_CAIRO" = "x1" ; then
50481        COND_USE_CAIRO_1=""
50482    fi
50483
50484    COND_USE_EXCEPTIONS_0="#"
50485    if test "x$USE_EXCEPTIONS" = "x0" ; then
50486        COND_USE_EXCEPTIONS_0=""
50487    fi
50488
50489    COND_USE_EXCEPTIONS_1="#"
50490    if test "x$USE_EXCEPTIONS" = "x1" ; then
50491        COND_USE_EXCEPTIONS_1=""
50492    fi
50493
50494    COND_USE_GUI_0="#"
50495    if test "x$USE_GUI" = "x0" ; then
50496        COND_USE_GUI_0=""
50497    fi
50498
50499    COND_USE_GUI_1="#"
50500    if test "x$USE_GUI" = "x1" ; then
50501        COND_USE_GUI_1=""
50502    fi
50503
50504    COND_USE_GUI_1_WXUNIV_0="#"
50505    if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50506        COND_USE_GUI_1_WXUNIV_0=""
50507    fi
50508
50509    COND_USE_GUI_1_WXUNIV_1="#"
50510    if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50511        COND_USE_GUI_1_WXUNIV_1=""
50512    fi
50513
50514    COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50515    if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50516        COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50517    fi
50518
50519    COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50520    if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50521        COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50522    fi
50523
50524    COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50525    if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50526        COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50527    fi
50528
50529    COND_USE_ODBC_1="#"
50530    if test "x$USE_ODBC" = "x1" ; then
50531        COND_USE_ODBC_1=""
50532    fi
50533
50534    COND_USE_OPENGL_1="#"
50535    if test "x$USE_OPENGL" = "x1" ; then
50536        COND_USE_OPENGL_1=""
50537    fi
50538
50539    COND_USE_PCH_1="#"
50540    if test "x$USE_PCH" = "x1" ; then
50541        COND_USE_PCH_1=""
50542    fi
50543
50544    COND_USE_PLUGINS_0="#"
50545    if test "x$USE_PLUGINS" = "x0" ; then
50546        COND_USE_PLUGINS_0=""
50547    fi
50548
50549    COND_USE_RTTI_0="#"
50550    if test "x$USE_RTTI" = "x0" ; then
50551        COND_USE_RTTI_0=""
50552    fi
50553
50554    COND_USE_RTTI_1="#"
50555    if test "x$USE_RTTI" = "x1" ; then
50556        COND_USE_RTTI_1=""
50557    fi
50558
50559    COND_USE_SOTWOSYMLINKS_1="#"
50560    if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
50561        COND_USE_SOTWOSYMLINKS_1=""
50562    fi
50563
50564    COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50565    if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50566        COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50567    fi
50568
50569    COND_USE_SOVERLINUX_1="#"
50570    if test "x$USE_SOVERLINUX" = "x1" ; then
50571        COND_USE_SOVERLINUX_1=""
50572    fi
50573
50574    COND_USE_SOVERSION_0="#"
50575    if test "x$USE_SOVERSION" = "x0" ; then
50576        COND_USE_SOVERSION_0=""
50577    fi
50578
50579    COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
50580    if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
50581        COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
50582    fi
50583
50584    COND_USE_SOVERSOLARIS_1="#"
50585    if test "x$USE_SOVERSOLARIS" = "x1" ; then
50586        COND_USE_SOVERSOLARIS_1=""
50587    fi
50588
50589    COND_USE_THREADS_0="#"
50590    if test "x$USE_THREADS" = "x0" ; then
50591        COND_USE_THREADS_0=""
50592    fi
50593
50594    COND_USE_THREADS_1="#"
50595    if test "x$USE_THREADS" = "x1" ; then
50596        COND_USE_THREADS_1=""
50597    fi
50598
50599    COND_USE_XRC_1="#"
50600    if test "x$USE_XRC" = "x1" ; then
50601        COND_USE_XRC_1=""
50602    fi
50603
50604    COND_WINDOWS_IMPLIB_1="#"
50605    if test "x$WINDOWS_IMPLIB" = "x1" ; then
50606        COND_WINDOWS_IMPLIB_1=""
50607    fi
50608
50609    COND_WITH_PLUGIN_SDL_1="#"
50610    if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50611        COND_WITH_PLUGIN_SDL_1=""
50612    fi
50613
50614    COND_WXUNIV_0="#"
50615    if test "x$WXUNIV" = "x0" ; then
50616        COND_WXUNIV_0=""
50617    fi
50618
50619    COND_WXUNIV_1="#"
50620    if test "x$WXUNIV" = "x1" ; then
50621        COND_WXUNIV_1=""
50622    fi
50623
50624    COND_wxUSE_EXPAT_builtin="#"
50625    if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50626        COND_wxUSE_EXPAT_builtin=""
50627    fi
50628
50629    COND_wxUSE_LIBJPEG_builtin="#"
50630    if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50631        COND_wxUSE_LIBJPEG_builtin=""
50632    fi
50633
50634    COND_wxUSE_LIBPNG_builtin="#"
50635    if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50636        COND_wxUSE_LIBPNG_builtin=""
50637    fi
50638
50639    COND_wxUSE_LIBTIFF_builtin="#"
50640    if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50641        COND_wxUSE_LIBTIFF_builtin=""
50642    fi
50643
50644    COND_wxUSE_ODBC_builtin="#"
50645    if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50646        COND_wxUSE_ODBC_builtin=""
50647    fi
50648
50649    COND_wxUSE_REGEX_builtin="#"
50650    if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50651        COND_wxUSE_REGEX_builtin=""
50652    fi
50653
50654    COND_wxUSE_ZLIB_builtin="#"
50655    if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50656        COND_wxUSE_ZLIB_builtin=""
50657    fi
50658
50659
50660
50661    if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50662        { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
50663echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
50664   { (exit 1); exit 1; }; }
50665    fi
50666
50667    if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50668        { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
50669echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
50670   { (exit 1); exit 1; }; }
50671    fi
50672
50673
50674if test $GCC_PCH = 1
50675then
50676    if test "$wx_cv_gcc_pch_bug" = yes; then
50677        { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50678echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50679        { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50680echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50681        { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50682echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50683    fi
50684
50685    # Our WX_PRECOMP flag does not make sense for any language except C++ because
50686    # the headers that benefit from precompilation are mostly C++ headers.
50687    CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50688    # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50689    #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50690fi
50691
50692
50693if test "$wxUSE_MAC" = 1 ; then
50694    if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50695        sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50696        mv temp bk-deps
50697        chmod +x bk-deps
50698    fi
50699fi
50700
50701if test "$wxUSE_SHARED" = "yes"; then
50702
50703                            sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50704    EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50705
50706                case "${host}" in
50707      *-pc-os2_emx | *-pc-os2-emx )
50708        SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50709        SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50710        cp -p ${srcdir}/src/os2/dllnames.sh .
50711        cp -p ${srcdir}/src/os2/dllar.sh .
50712      ;;
50713    esac
50714else
50715
50716        EXE_LINKER="$CXX -o"
50717
50718fi
50719if test "$wxUSE_OMF" = "yes"; then
50720    case "${host}" in
50721      *-pc-os2_emx | *-pc-os2-emx )
50722        LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50723        LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50724        WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50725      ;;
50726    esac
50727fi
50728
50729WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50730
50731SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50732
50733
50734
50735
50736
50737
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753
50754
50755
50756
50757
50758
50759
50760
50761
50762
50763
50764
50765
50766
50767
50768
50769
50770
50771
50772
50773
50774
50775
50776
50777
50778
50779
50780
50781
50782
50783
50784
50785
50786
50787
50788
50789
50790
50791
50792
50793echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50794echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
50795set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
50796if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50797  echo $ECHO_N "(cached) $ECHO_C" >&6
50798else
50799  cat >conftest.make <<\_ACEOF
50800all:
50801	@echo 'ac_maketemp="$(MAKE)"'
50802_ACEOF
50803# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50804eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50805if test -n "$ac_maketemp"; then
50806  eval ac_cv_prog_make_${ac_make}_set=yes
50807else
50808  eval ac_cv_prog_make_${ac_make}_set=no
50809fi
50810rm -f conftest.make
50811fi
50812if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50813  echo "$as_me:$LINENO: result: yes" >&5
50814echo "${ECHO_T}yes" >&6
50815  SET_MAKE=
50816else
50817  echo "$as_me:$LINENO: result: no" >&5
50818echo "${ECHO_T}no" >&6
50819  SET_MAKE="MAKE=${MAKE-make}"
50820fi
50821
50822
50823
50824          ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50825
50826
50827if test "$USE_WIN32" = 1; then
50828              ac_config_commands="$ac_config_commands
50829            rcdefs.h
50830        "
50831
50832fi
50833
50834          ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50835
50836
50837          ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50838
50839
50840if test "$wx_cv_version_script" = "yes"; then
50841              ac_config_files="$ac_config_files version-script"
50842
50843fi
50844          ac_config_files="$ac_config_files Makefile"
50845
50846
50847          ac_config_commands="$ac_config_commands wx-config"
50848
50849
50850
50851if test "$wxWITH_SUBDIRS" != "no"; then
50852if test "$wxUSE_GUI" = "yes"; then
50853    SUBDIRS="samples demos utils contrib"
50854else         SUBDIRS="samples utils"
50855fi
50856
50857
50858
50859# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50860if test "${with_cppunit_prefix+set}" = set; then
50861  withval="$with_cppunit_prefix"
50862  cppunit_config_prefix="$withval"
50863else
50864  cppunit_config_prefix=""
50865fi;
50866
50867# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50868if test "${with_cppunit_exec_prefix+set}" = set; then
50869  withval="$with_cppunit_exec_prefix"
50870  cppunit_config_exec_prefix="$withval"
50871else
50872  cppunit_config_exec_prefix=""
50873fi;
50874
50875  if test x$cppunit_config_exec_prefix != x ; then
50876     cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50877     if test x${CPPUNIT_CONFIG+set} != xset ; then
50878        CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50879     fi
50880  fi
50881  if test x$cppunit_config_prefix != x ; then
50882     cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50883     if test x${CPPUNIT_CONFIG+set} != xset ; then
50884        CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50885     fi
50886  fi
50887
50888  # Extract the first word of "cppunit-config", so it can be a program name with args.
50889set dummy cppunit-config; ac_word=$2
50890echo "$as_me:$LINENO: checking for $ac_word" >&5
50891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50892if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50893  echo $ECHO_N "(cached) $ECHO_C" >&6
50894else
50895  case $CPPUNIT_CONFIG in
50896  [\\/]* | ?:[\\/]*)
50897  ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50898  ;;
50899  *)
50900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50901for as_dir in $PATH
50902do
50903  IFS=$as_save_IFS
50904  test -z "$as_dir" && as_dir=.
50905  for ac_exec_ext in '' $ac_executable_extensions; do
50906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50907    ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50909    break 2
50910  fi
50911done
50912done
50913
50914  test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50915  ;;
50916esac
50917fi
50918CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50919
50920if test -n "$CPPUNIT_CONFIG"; then
50921  echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50922echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50923else
50924  echo "$as_me:$LINENO: result: no" >&5
50925echo "${ECHO_T}no" >&6
50926fi
50927
50928  cppunit_version_min=1.8.0
50929
50930  echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50931echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50932  no_cppunit=""
50933  if test "$CPPUNIT_CONFIG" = "no" ; then
50934    echo "$as_me:$LINENO: result: no" >&5
50935echo "${ECHO_T}no" >&6
50936    no_cppunit=yes
50937  else
50938    CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50939    CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50940    cppunit_version=`$CPPUNIT_CONFIG --version`
50941
50942    cppunit_major_version=`echo $cppunit_version | \
50943           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50944    cppunit_minor_version=`echo $cppunit_version | \
50945           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50946    cppunit_micro_version=`echo $cppunit_version | \
50947           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50948
50949    cppunit_major_min=`echo $cppunit_version_min | \
50950           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50951    cppunit_minor_min=`echo $cppunit_version_min | \
50952           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50953    cppunit_micro_min=`echo $cppunit_version_min | \
50954           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50955
50956    cppunit_version_proper=`expr \
50957        $cppunit_major_version \> $cppunit_major_min \| \
50958        $cppunit_major_version \= $cppunit_major_min \& \
50959        $cppunit_minor_version \> $cppunit_minor_min \| \
50960        $cppunit_major_version \= $cppunit_major_min \& \
50961        $cppunit_minor_version \= $cppunit_minor_min \& \
50962        $cppunit_micro_version \>= $cppunit_micro_min `
50963
50964    if test "$cppunit_version_proper" = "1" ; then
50965      echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50966echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50967    else
50968      echo "$as_me:$LINENO: result: no" >&5
50969echo "${ECHO_T}no" >&6
50970      no_cppunit=yes
50971    fi
50972  fi
50973
50974  if test "x$no_cppunit" = x ; then
50975     SUBDIRS="$SUBDIRS tests"
50976  else
50977     CPPUNIT_CFLAGS=""
50978     CPPUNIT_LIBS=""
50979     :
50980  fi
50981
50982
50983
50984
50985
50986if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
50987    DISABLED_CONTRIB="$DISABLED_CONTRIB net"
50988fi
50989
50990for subdir in `echo $SUBDIRS`; do
50991    if test -d ${srcdir}/${subdir} ; then
50992        if test "$wxUSE_GUI" = "yes"; then
50993            if test ${subdir} = "samples"; then
50994                                                makefiles="samples/Makefile.in $makefiles"
50995                for sample in `echo $SAMPLES_SUBDIRS`; do
50996                    if test -d $srcdir/samples/$sample; then
50997                        makefiles="samples/$sample/Makefile.in $makefiles"
50998                    fi
50999                done
51000            else
51001                                                                disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
51002                eval "disabled=\$$disabled_var"
51003                disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
51004                makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
51005            fi
51006        else                                     if test ${subdir} = "samples"; then
51007                makefiles="samples/Makefile.in samples/console/Makefile.in"
51008            elif test ${subdir} = "utils"; then
51009                makefiles=""
51010                for util in HelpGen tex2rtf ; do
51011                    if test -d $srcdir/utils/$util ; then
51012                        makefiles="utils/$util/Makefile.in \
51013                                   utils/$util/src/Makefile.in \
51014                                   $makefiles"
51015                    fi
51016                done
51017            else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51018            fi
51019        fi
51020
51021        for mkin in $makefiles ; do
51022            mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51023                      ac_config_files="$ac_config_files $mk"
51024
51025        done
51026    fi
51027done
51028fi
51029cat >confcache <<\_ACEOF
51030# This file is a shell script that caches the results of configure
51031# tests run on this system so they can be shared between configure
51032# scripts and configure runs, see configure's option --config-cache.
51033# It is not useful on other systems.  If it contains results you don't
51034# want to keep, you may remove or edit it.
51035#
51036# config.status only pays attention to the cache file if you give it
51037# the --recheck option to rerun configure.
51038#
51039# `ac_cv_env_foo' variables (set or unset) will be overridden when
51040# loading this file, other *unset* `ac_cv_foo' will be assigned the
51041# following values.
51042
51043_ACEOF
51044
51045# The following way of writing the cache mishandles newlines in values,
51046# but we know of no workaround that is simple, portable, and efficient.
51047# So, don't put newlines in cache variables' values.
51048# Ultrix sh set writes to stderr and can't be redirected directly,
51049# and sets the high bit in the cache file unless we assign to the vars.
51050{
51051  (set) 2>&1 |
51052    case `(ac_space=' '; set | grep ac_space) 2>&1` in
51053    *ac_space=\ *)
51054      # `set' does not quote correctly, so add quotes (double-quote
51055      # substitution turns \\\\ into \\, and sed turns \\ into \).
51056      sed -n \
51057	"s/'/'\\\\''/g;
51058	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51059      ;;
51060    *)
51061      # `set' quotes correctly as required by POSIX, so do not add quotes.
51062      sed -n \
51063	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
51064      ;;
51065    esac;
51066} |
51067  sed '
51068     t clear
51069     : clear
51070     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51071     t end
51072     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51073     : end' >>confcache
51074if diff $cache_file confcache >/dev/null 2>&1; then :; else
51075  if test -w $cache_file; then
51076    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
51077    cat confcache >$cache_file
51078  else
51079    echo "not updating unwritable cache $cache_file"
51080  fi
51081fi
51082rm -f confcache
51083
51084test "x$prefix" = xNONE && prefix=$ac_default_prefix
51085# Let make expand exec_prefix.
51086test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51087
51088# VPATH may cause trouble with some makes, so we remove $(srcdir),
51089# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51090# trailing colons and then remove the whole line if VPATH becomes empty
51091# (actually we leave an empty line to preserve line numbers).
51092if test "x$srcdir" = x.; then
51093  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
51094s/:*\$(srcdir):*/:/;
51095s/:*\${srcdir}:*/:/;
51096s/:*@srcdir@:*/:/;
51097s/^\([^=]*=[	 ]*\):*/\1/;
51098s/:*$//;
51099s/^[^=]*=[	 ]*$//;
51100}'
51101fi
51102
51103DEFS=-DHAVE_CONFIG_H
51104
51105ac_libobjs=
51106ac_ltlibobjs=
51107for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51108  # 1. Remove the extension, and $U if already installed.
51109  ac_i=`echo "$ac_i" |
51110	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51111  # 2. Add them.
51112  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51113  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51114done
51115LIBOBJS=$ac_libobjs
51116
51117LTLIBOBJS=$ac_ltlibobjs
51118
51119
51120
51121: ${CONFIG_STATUS=./config.status}
51122ac_clean_files_save=$ac_clean_files
51123ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51124{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51125echo "$as_me: creating $CONFIG_STATUS" >&6;}
51126cat >$CONFIG_STATUS <<_ACEOF
51127#! $SHELL
51128# Generated by $as_me.
51129# Run this file to recreate the current configuration.
51130# Compiler output produced by configure, useful for debugging
51131# configure, is in config.log if it exists.
51132
51133debug=false
51134ac_cs_recheck=false
51135ac_cs_silent=false
51136SHELL=\${CONFIG_SHELL-$SHELL}
51137_ACEOF
51138
51139cat >>$CONFIG_STATUS <<\_ACEOF
51140## --------------------- ##
51141## M4sh Initialization.  ##
51142## --------------------- ##
51143
51144# Be Bourne compatible
51145if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51146  emulate sh
51147  NULLCMD=:
51148  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51149  # is contrary to our usage.  Disable this feature.
51150  alias -g '${1+"$@"}'='"$@"'
51151elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51152  set -o posix
51153fi
51154DUALCASE=1; export DUALCASE # for MKS sh
51155
51156# Support unset when possible.
51157if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51158  as_unset=unset
51159else
51160  as_unset=false
51161fi
51162
51163
51164# Work around bugs in pre-3.0 UWIN ksh.
51165$as_unset ENV MAIL MAILPATH
51166PS1='$ '
51167PS2='> '
51168PS4='+ '
51169
51170# NLS nuisances.
51171for as_var in \
51172  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51173  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51174  LC_TELEPHONE LC_TIME
51175do
51176  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51177    eval $as_var=C; export $as_var
51178  else
51179    $as_unset $as_var
51180  fi
51181done
51182
51183# Required to use basename.
51184if expr a : '\(a\)' >/dev/null 2>&1; then
51185  as_expr=expr
51186else
51187  as_expr=false
51188fi
51189
51190if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51191  as_basename=basename
51192else
51193  as_basename=false
51194fi
51195
51196
51197# Name of the executable.
51198as_me=`$as_basename "$0" ||
51199$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51200	 X"$0" : 'X\(//\)$' \| \
51201	 X"$0" : 'X\(/\)$' \| \
51202	 .     : '\(.\)' 2>/dev/null ||
51203echo X/"$0" |
51204    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51205  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
51206  	  /^X\/\(\/\).*/{ s//\1/; q; }
51207  	  s/.*/./; q'`
51208
51209
51210# PATH needs CR, and LINENO needs CR and PATH.
51211# Avoid depending upon Character Ranges.
51212as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51213as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51214as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51215as_cr_digits='0123456789'
51216as_cr_alnum=$as_cr_Letters$as_cr_digits
51217
51218# The user is always right.
51219if test "${PATH_SEPARATOR+set}" != set; then
51220  echo "#! /bin/sh" >conf$$.sh
51221  echo  "exit 0"   >>conf$$.sh
51222  chmod +x conf$$.sh
51223  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51224    PATH_SEPARATOR=';'
51225  else
51226    PATH_SEPARATOR=:
51227  fi
51228  rm -f conf$$.sh
51229fi
51230
51231
51232  as_lineno_1=$LINENO
51233  as_lineno_2=$LINENO
51234  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51235  test "x$as_lineno_1" != "x$as_lineno_2" &&
51236  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
51237  # Find who we are.  Look in the path if we contain no path at all
51238  # relative or not.
51239  case $0 in
51240    *[\\/]* ) as_myself=$0 ;;
51241    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51242for as_dir in $PATH
51243do
51244  IFS=$as_save_IFS
51245  test -z "$as_dir" && as_dir=.
51246  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51247done
51248
51249       ;;
51250  esac
51251  # We did not find ourselves, most probably we were run as `sh COMMAND'
51252  # in which case we are not to be found in the path.
51253  if test "x$as_myself" = x; then
51254    as_myself=$0
51255  fi
51256  if test ! -f "$as_myself"; then
51257    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51258echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51259   { (exit 1); exit 1; }; }
51260  fi
51261  case $CONFIG_SHELL in
51262  '')
51263    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51264for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51265do
51266  IFS=$as_save_IFS
51267  test -z "$as_dir" && as_dir=.
51268  for as_base in sh bash ksh sh5; do
51269	 case $as_dir in
51270	 /*)
51271	   if ("$as_dir/$as_base" -c '
51272  as_lineno_1=$LINENO
51273  as_lineno_2=$LINENO
51274  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51275  test "x$as_lineno_1" != "x$as_lineno_2" &&
51276  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
51277	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51278	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51279	     CONFIG_SHELL=$as_dir/$as_base
51280	     export CONFIG_SHELL
51281	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51282	   fi;;
51283	 esac
51284       done
51285done
51286;;
51287  esac
51288
51289  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51290  # uniformly replaced by the line number.  The first 'sed' inserts a
51291  # line-number line before each line; the second 'sed' does the real
51292  # work.  The second script uses 'N' to pair each line-number line
51293  # with the numbered line, and appends trailing '-' during
51294  # substitution so that $LINENO is not a special case at line end.
51295  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51296  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
51297  sed '=' <$as_myself |
51298    sed '
51299      N
51300      s,$,-,
51301      : loop
51302      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51303      t loop
51304      s,-$,,
51305      s,^['$as_cr_digits']*\n,,
51306    ' >$as_me.lineno &&
51307  chmod +x $as_me.lineno ||
51308    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51309echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51310   { (exit 1); exit 1; }; }
51311
51312  # Don't try to exec as it changes $[0], causing all sort of problems
51313  # (the dirname of $[0] is not the place where we might find the
51314  # original and so on.  Autoconf is especially sensible to this).
51315  . ./$as_me.lineno
51316  # Exit status is that of the last command.
51317  exit
51318}
51319
51320
51321case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51322  *c*,-n*) ECHO_N= ECHO_C='
51323' ECHO_T='	' ;;
51324  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51325  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
51326esac
51327
51328if expr a : '\(a\)' >/dev/null 2>&1; then
51329  as_expr=expr
51330else
51331  as_expr=false
51332fi
51333
51334rm -f conf$$ conf$$.exe conf$$.file
51335echo >conf$$.file
51336if ln -s conf$$.file conf$$ 2>/dev/null; then
51337  # We could just check for DJGPP; but this test a) works b) is more generic
51338  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51339  if test -f conf$$.exe; then
51340    # Don't use ln at all; we don't have any links
51341    as_ln_s='cp -p'
51342  else
51343    as_ln_s='ln -s'
51344  fi
51345elif ln conf$$.file conf$$ 2>/dev/null; then
51346  as_ln_s=ln
51347else
51348  as_ln_s='cp -p'
51349fi
51350rm -f conf$$ conf$$.exe conf$$.file
51351
51352if mkdir -p . 2>/dev/null; then
51353  as_mkdir_p=:
51354else
51355  test -d ./-p && rmdir ./-p
51356  as_mkdir_p=false
51357fi
51358
51359as_executable_p="test -f"
51360
51361# Sed expression to map a string onto a valid CPP name.
51362as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51363
51364# Sed expression to map a string onto a valid variable name.
51365as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51366
51367
51368# IFS
51369# We need space, tab and new line, in precisely that order.
51370as_nl='
51371'
51372IFS=" 	$as_nl"
51373
51374# CDPATH.
51375$as_unset CDPATH
51376
51377exec 6>&1
51378
51379# Open the log real soon, to keep \$[0] and so on meaningful, and to
51380# report actual input values of CONFIG_FILES etc. instead of their
51381# values after options handling.  Logging --version etc. is OK.
51382exec 5>>config.log
51383{
51384  echo
51385  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51386## Running $as_me. ##
51387_ASBOX
51388} >&5
51389cat >&5 <<_CSEOF
51390
51391This file was extended by wxWidgets $as_me 2.8.12, which was
51392generated by GNU Autoconf 2.59.  Invocation command line was
51393
51394  CONFIG_FILES    = $CONFIG_FILES
51395  CONFIG_HEADERS  = $CONFIG_HEADERS
51396  CONFIG_LINKS    = $CONFIG_LINKS
51397  CONFIG_COMMANDS = $CONFIG_COMMANDS
51398  $ $0 $@
51399
51400_CSEOF
51401echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51402echo >&5
51403_ACEOF
51404
51405# Files that config.status was made for.
51406if test -n "$ac_config_files"; then
51407  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51408fi
51409
51410if test -n "$ac_config_headers"; then
51411  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51412fi
51413
51414if test -n "$ac_config_links"; then
51415  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51416fi
51417
51418if test -n "$ac_config_commands"; then
51419  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51420fi
51421
51422cat >>$CONFIG_STATUS <<\_ACEOF
51423
51424ac_cs_usage="\
51425\`$as_me' instantiates files from templates according to the
51426current configuration.
51427
51428Usage: $0 [OPTIONS] [FILE]...
51429
51430  -h, --help       print this help, then exit
51431  -V, --version    print version number, then exit
51432  -q, --quiet      do not print progress messages
51433  -d, --debug      don't remove temporary files
51434      --recheck    update $as_me by reconfiguring in the same conditions
51435  --file=FILE[:TEMPLATE]
51436		   instantiate the configuration file FILE
51437  --header=FILE[:TEMPLATE]
51438		   instantiate the configuration header FILE
51439
51440Configuration files:
51441$config_files
51442
51443Configuration headers:
51444$config_headers
51445
51446Configuration commands:
51447$config_commands
51448
51449Report bugs to <bug-autoconf@gnu.org>."
51450_ACEOF
51451
51452cat >>$CONFIG_STATUS <<_ACEOF
51453ac_cs_version="\\
51454wxWidgets config.status 2.8.12
51455configured by $0, generated by GNU Autoconf 2.59,
51456  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51457
51458Copyright (C) 2003 Free Software Foundation, Inc.
51459This config.status script is free software; the Free Software Foundation
51460gives unlimited permission to copy, distribute and modify it."
51461srcdir=$srcdir
51462INSTALL="$INSTALL"
51463_ACEOF
51464
51465cat >>$CONFIG_STATUS <<\_ACEOF
51466# If no file are specified by the user, then we need to provide default
51467# value.  By we need to know if files were specified by the user.
51468ac_need_defaults=:
51469while test $# != 0
51470do
51471  case $1 in
51472  --*=*)
51473    ac_option=`expr "x$1" : 'x\([^=]*\)='`
51474    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51475    ac_shift=:
51476    ;;
51477  -*)
51478    ac_option=$1
51479    ac_optarg=$2
51480    ac_shift=shift
51481    ;;
51482  *) # This is not an option, so the user has probably given explicit
51483     # arguments.
51484     ac_option=$1
51485     ac_need_defaults=false;;
51486  esac
51487
51488  case $ac_option in
51489  # Handling of the options.
51490_ACEOF
51491cat >>$CONFIG_STATUS <<\_ACEOF
51492  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51493    ac_cs_recheck=: ;;
51494  --version | --vers* | -V )
51495    echo "$ac_cs_version"; exit 0 ;;
51496  --he | --h)
51497    # Conflict between --help and --header
51498    { { echo "$as_me:$LINENO: error: ambiguous option: $1
51499Try \`$0 --help' for more information." >&5
51500echo "$as_me: error: ambiguous option: $1
51501Try \`$0 --help' for more information." >&2;}
51502   { (exit 1); exit 1; }; };;
51503  --help | --hel | -h )
51504    echo "$ac_cs_usage"; exit 0 ;;
51505  --debug | --d* | -d )
51506    debug=: ;;
51507  --file | --fil | --fi | --f )
51508    $ac_shift
51509    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51510    ac_need_defaults=false;;
51511  --header | --heade | --head | --hea )
51512    $ac_shift
51513    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51514    ac_need_defaults=false;;
51515  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51516  | -silent | --silent | --silen | --sile | --sil | --si | --s)
51517    ac_cs_silent=: ;;
51518
51519  # This is an error.
51520  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51521Try \`$0 --help' for more information." >&5
51522echo "$as_me: error: unrecognized option: $1
51523Try \`$0 --help' for more information." >&2;}
51524   { (exit 1); exit 1; }; } ;;
51525
51526  *) ac_config_targets="$ac_config_targets $1" ;;
51527
51528  esac
51529  shift
51530done
51531
51532ac_configure_extra_args=
51533
51534if $ac_cs_silent; then
51535  exec 6>/dev/null
51536  ac_configure_extra_args="$ac_configure_extra_args --silent"
51537fi
51538
51539_ACEOF
51540cat >>$CONFIG_STATUS <<_ACEOF
51541if \$ac_cs_recheck; then
51542  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51543  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51544fi
51545
51546_ACEOF
51547
51548cat >>$CONFIG_STATUS <<_ACEOF
51549#
51550# INIT-COMMANDS section.
51551#
51552
51553
51554            CPP="$CPP"
51555            infile="$srcdir/include/wx/msw/genrcdefs.h"
51556            outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51557
51558
51559 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51560 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51561 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51562                     LN_S="${LN_S}"
51563
51564
51565_ACEOF
51566
51567
51568
51569cat >>$CONFIG_STATUS <<\_ACEOF
51570for ac_config_target in $ac_config_targets
51571do
51572  case "$ac_config_target" in
51573  # Handling of arguments.
51574  "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51575  "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51576  "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
51577  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51578  "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
51579  "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51580  "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51581  "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51582  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51583echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51584   { (exit 1); exit 1; }; };;
51585  esac
51586done
51587
51588# If the user did not use the arguments to specify the items to instantiate,
51589# then the envvar interface is used.  Set only those that are not.
51590# We use the long form for the default assignment because of an extremely
51591# bizarre bug on SunOS 4.1.3.
51592if $ac_need_defaults; then
51593  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51594  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51595  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51596fi
51597
51598# Have a temporary directory for convenience.  Make it in the build tree
51599# simply because there is no reason to put it here, and in addition,
51600# creating and moving files from /tmp can sometimes cause problems.
51601# Create a temporary directory, and hook for its removal unless debugging.
51602$debug ||
51603{
51604  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51605  trap '{ (exit 1); exit 1; }' 1 2 13 15
51606}
51607
51608# Create a (secure) tmp directory for tmp files.
51609
51610{
51611  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51612  test -n "$tmp" && test -d "$tmp"
51613}  ||
51614{
51615  tmp=./confstat$$-$RANDOM
51616  (umask 077 && mkdir $tmp)
51617} ||
51618{
51619   echo "$me: cannot create a temporary directory in ." >&2
51620   { (exit 1); exit 1; }
51621}
51622
51623_ACEOF
51624
51625cat >>$CONFIG_STATUS <<_ACEOF
51626
51627#
51628# CONFIG_FILES section.
51629#
51630
51631# No need to generate the scripts if there are no CONFIG_FILES.
51632# This happens for instance when ./config.status config.h
51633if test -n "\$CONFIG_FILES"; then
51634  # Protect against being on the right side of a sed subst in config.status.
51635  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51636   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51637s,@SHELL@,$SHELL,;t t
51638s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51639s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51640s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51641s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51642s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51643s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51644s,@exec_prefix@,$exec_prefix,;t t
51645s,@prefix@,$prefix,;t t
51646s,@program_transform_name@,$program_transform_name,;t t
51647s,@bindir@,$bindir,;t t
51648s,@sbindir@,$sbindir,;t t
51649s,@libexecdir@,$libexecdir,;t t
51650s,@datadir@,$datadir,;t t
51651s,@sysconfdir@,$sysconfdir,;t t
51652s,@sharedstatedir@,$sharedstatedir,;t t
51653s,@localstatedir@,$localstatedir,;t t
51654s,@libdir@,$libdir,;t t
51655s,@includedir@,$includedir,;t t
51656s,@oldincludedir@,$oldincludedir,;t t
51657s,@infodir@,$infodir,;t t
51658s,@mandir@,$mandir,;t t
51659s,@build_alias@,$build_alias,;t t
51660s,@host_alias@,$host_alias,;t t
51661s,@target_alias@,$target_alias,;t t
51662s,@DEFS@,$DEFS,;t t
51663s,@ECHO_C@,$ECHO_C,;t t
51664s,@ECHO_N@,$ECHO_N,;t t
51665s,@ECHO_T@,$ECHO_T,;t t
51666s,@LIBS@,$LIBS,;t t
51667s,@build@,$build,;t t
51668s,@build_cpu@,$build_cpu,;t t
51669s,@build_vendor@,$build_vendor,;t t
51670s,@build_os@,$build_os,;t t
51671s,@host@,$host,;t t
51672s,@host_cpu@,$host_cpu,;t t
51673s,@host_vendor@,$host_vendor,;t t
51674s,@host_os@,$host_os,;t t
51675s,@target@,$target,;t t
51676s,@target_cpu@,$target_cpu,;t t
51677s,@target_vendor@,$target_vendor,;t t
51678s,@target_os@,$target_os,;t t
51679s,@wx_top_builddir@,$wx_top_builddir,;t t
51680s,@CC@,$CC,;t t
51681s,@CFLAGS@,$CFLAGS,;t t
51682s,@LDFLAGS@,$LDFLAGS,;t t
51683s,@CPPFLAGS@,$CPPFLAGS,;t t
51684s,@ac_ct_CC@,$ac_ct_CC,;t t
51685s,@EXEEXT@,$EXEEXT,;t t
51686s,@OBJEXT@,$OBJEXT,;t t
51687s,@CPP@,$CPP,;t t
51688s,@EGREP@,$EGREP,;t t
51689s,@CXX@,$CXX,;t t
51690s,@CXXFLAGS@,$CXXFLAGS,;t t
51691s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51692s,@RANLIB@,$RANLIB,;t t
51693s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51694s,@AR@,$AR,;t t
51695s,@ac_ct_AR@,$ac_ct_AR,;t t
51696s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51697s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51698s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51699s,@STRIP@,$STRIP,;t t
51700s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51701s,@WINDRES@,$WINDRES,;t t
51702s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
51703s,@DLLTOOL@,$DLLTOOL,;t t
51704s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51705s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51706s,@LN_S@,$LN_S,;t t
51707s,@subdirs@,$subdirs,;t t
51708s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51709s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51710s,@GTK_LIBS@,$GTK_LIBS,;t t
51711s,@GTK_CONFIG@,$GTK_CONFIG,;t t
51712s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51713s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51714s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
51715s,@X_CFLAGS@,$X_CFLAGS,;t t
51716s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51717s,@X_LIBS@,$X_LIBS,;t t
51718s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51719s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51720s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
51721s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51722s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
51723s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51724s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
51725s,@REZ@,$REZ,;t t
51726s,@DEREZ@,$DEREZ,;t t
51727s,@SETFILE@,$SETFILE,;t t
51728s,@LIBICONV@,$LIBICONV,;t t
51729s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51730s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51731s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51732s,@SDL_LIBS@,$SDL_LIBS,;t t
51733s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51734s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
51735s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51736s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
51737s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51738s,@HILDON_LIBS@,$HILDON_LIBS,;t t
51739s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51740s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
51741s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51742s,@GST_LIBS@,$GST_LIBS,;t t
51743s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51744s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51745s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51746s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51747s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51748s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51749s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51750s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51751s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51752s,@VENDOR@,$VENDOR,;t t
51753s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
51754s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51755s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
51756s,@WXUNIV@,$WXUNIV,;t t
51757s,@MONOLITHIC@,$MONOLITHIC,;t t
51758s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51759s,@EXTRALIBS@,$EXTRALIBS,;t t
51760s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51761s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51762s,@EXTRALIBS_MEDIA@,$EXTRALIBS_MEDIA,;t t
51763s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51764s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51765s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51766s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51767s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
51768s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
51769s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
51770s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
51771s,@UNICODE@,$UNICODE,;t t
51772s,@BUILD@,$BUILD,;t t
51773s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51774s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
51775s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51776s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51777s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51778s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51779s,@HEADER_PAD_OPTION@,$HEADER_PAD_OPTION,;t t
51780s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51781s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51782s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51783s,@OBJCXXFLAGS@,$OBJCXXFLAGS,;t t
51784s,@SET_MAKE@,$SET_MAKE,;t t
51785s,@MAKE_SET@,$MAKE_SET,;t t
51786s,@AROPTIONS@,$AROPTIONS,;t t
51787s,@NM@,$NM,;t t
51788s,@ac_ct_NM@,$ac_ct_NM,;t t
51789s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51790s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51791s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51792s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51793s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51794s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
51795s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
51796s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51797s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
51798s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
51799s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51800s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51801s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51802s,@LIBPREFIX@,$LIBPREFIX,;t t
51803s,@LIBEXT@,$LIBEXT,;t t
51804s,@DLLPREFIX@,$DLLPREFIX,;t t
51805s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
51806s,@dlldir@,$dlldir,;t t
51807s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51808s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51809s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51810s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51811s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51812s,@PIC_FLAG@,$PIC_FLAG,;t t
51813s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
51814s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51815s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51816s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
51817s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
51818s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51819s,@USE_SOTWOSYMLINKS@,$USE_SOTWOSYMLINKS,;t t
51820s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51821s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51822s,@BK_DEPS@,$BK_DEPS,;t t
51823s,@GCC_PCH@,$GCC_PCH,;t t
51824s,@ICC_PCH@,$ICC_PCH,;t t
51825s,@ICC_PCH_CREATE_SWITCH@,$ICC_PCH_CREATE_SWITCH,;t t
51826s,@ICC_PCH_USE_SWITCH@,$ICC_PCH_USE_SWITCH,;t t
51827s,@BK_MAKE_PCH@,$BK_MAKE_PCH,;t t
51828s,@COND_BUILD_debug@,$COND_BUILD_debug,;t t
51829s,@COND_BUILD_debug_DEBUG_FLAG_default@,$COND_BUILD_debug_DEBUG_FLAG_default,;t t
51830s,@COND_BUILD_debug_DEBUG_INFO_default@,$COND_BUILD_debug_DEBUG_INFO_default,;t t
51831s,@COND_BUILD_debug_UNICODE_0@,$COND_BUILD_debug_UNICODE_0,;t t
51832s,@COND_BUILD_debug_UNICODE_1@,$COND_BUILD_debug_UNICODE_1,;t t
51833s,@COND_BUILD_release@,$COND_BUILD_release,;t t
51834s,@COND_BUILD_release_DEBUG_INFO_default@,$COND_BUILD_release_DEBUG_INFO_default,;t t
51835s,@COND_BUILD_release_UNICODE_0@,$COND_BUILD_release_UNICODE_0,;t t
51836s,@COND_BUILD_release_UNICODE_1@,$COND_BUILD_release_UNICODE_1,;t t
51837s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51838s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51839s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51840s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51841s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51842s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
51843s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
51844s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51845s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
51846s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
51847s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
51848s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
51849s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
51850s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
51851s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
51852s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
51853s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
51854s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
51855s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
51856s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
51857s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
51858s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
51859s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
51860s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
51861s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
51862s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
51863s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
51864s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
51865s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
51866s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51867s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51868s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51869s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51870s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51871s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
51872s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
51873s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51874s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
51875s,@COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0@,$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0,;t t
51876s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
51877s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51878s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51879s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
51880s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
51881s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51882s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
51883s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51884s,@COND_PLATFORM_MACOSX_1_USE_ODBC_1@,$COND_PLATFORM_MACOSX_1_USE_ODBC_1,;t t
51885s,@COND_PLATFORM_MACOSX_1_USE_OPENGL_1@,$COND_PLATFORM_MACOSX_1_USE_OPENGL_1,;t t
51886s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
51887s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
51888s,@COND_PLATFORM_MAC_0@,$COND_PLATFORM_MAC_0,;t t
51889s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
51890s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
51891s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
51892s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51893s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51894s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51895s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL,;t t
51896s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1,;t t
51897s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51898s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51899s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51900s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51901s,@COND_SHARED_0@,$COND_SHARED_0,;t t
51902s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51903s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51904s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
51905s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51906s,@COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin@,$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin,;t t
51907s,@COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin@,$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin,;t t
51908s,@COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin@,$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin,;t t
51909s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
51910s,@COND_SHARED_0_wxUSE_EXPAT_builtin@,$COND_SHARED_0_wxUSE_EXPAT_builtin,;t t
51911s,@COND_SHARED_0_wxUSE_ODBC_builtin@,$COND_SHARED_0_wxUSE_ODBC_builtin,;t t
51912s,@COND_SHARED_0_wxUSE_REGEX_builtin@,$COND_SHARED_0_wxUSE_REGEX_builtin,;t t
51913s,@COND_SHARED_0_wxUSE_ZLIB_builtin@,$COND_SHARED_0_wxUSE_ZLIB_builtin,;t t
51914s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51915s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
51916s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
51917s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
51918s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
51919s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
51920s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
51921s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51922s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
51923s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
51924s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51925s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51926s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51927s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51928s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51929s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
51930s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
51931s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51932s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51933s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51934s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51935s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51936s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51937s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51938s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51939s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51940s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51941s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
51942s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
51943s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51944s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51945s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
51946s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51947s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51948s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
51949s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
51950s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51951s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51952s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51953s,@COND_USE_CAIRO_1@,$COND_USE_CAIRO_1,;t t
51954s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51955s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51956s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51957s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51958s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51959s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51960s,@COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@,$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin,;t t
51961s,@COND_USE_GUI_1_wxUSE_LIBPNG_builtin@,$COND_USE_GUI_1_wxUSE_LIBPNG_builtin,;t t
51962s,@COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@,$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin,;t t
51963s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51964s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
51965s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
51966s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
51967s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51968s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
51969s,@COND_USE_SOTWOSYMLINKS_1@,$COND_USE_SOTWOSYMLINKS_1,;t t
51970s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
51971s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51972s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51973s,@COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1,;t t
51974s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
51975s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51976s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
51977s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
51978s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
51979s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
51980s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
51981s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51982s,@COND_wxUSE_EXPAT_builtin@,$COND_wxUSE_EXPAT_builtin,;t t
51983s,@COND_wxUSE_LIBJPEG_builtin@,$COND_wxUSE_LIBJPEG_builtin,;t t
51984s,@COND_wxUSE_LIBPNG_builtin@,$COND_wxUSE_LIBPNG_builtin,;t t
51985s,@COND_wxUSE_LIBTIFF_builtin@,$COND_wxUSE_LIBTIFF_builtin,;t t
51986s,@COND_wxUSE_ODBC_builtin@,$COND_wxUSE_ODBC_builtin,;t t
51987s,@COND_wxUSE_REGEX_builtin@,$COND_wxUSE_REGEX_builtin,;t t
51988s,@COND_wxUSE_ZLIB_builtin@,$COND_wxUSE_ZLIB_builtin,;t t
51989s,@SHARED@,$SHARED,;t t
51990s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51991s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
51992s,@USE_GUI@,$USE_GUI,;t t
51993s,@AFMINSTALL@,$AFMINSTALL,;t t
51994s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51995s,@TOOLKIT@,$TOOLKIT,;t t
51996s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
51997s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
51998s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
51999s,@cross_compiling@,$cross_compiling,;t t
52000s,@WIDGET_SET@,$WIDGET_SET,;t t
52001s,@WX_RELEASE@,$WX_RELEASE,;t t
52002s,@WX_VERSION@,$WX_VERSION,;t t
52003s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
52004s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
52005s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
52006s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
52007s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
52008s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
52009s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
52010s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
52011s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
52012s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
52013s,@EXE_LINKER@,$EXE_LINKER,;t t
52014s,@GUIDIST@,$GUIDIST,;t t
52015s,@DISTDIR@,$DISTDIR,;t t
52016s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
52017s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
52018s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
52019s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
52020s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
52021s,@RESCOMP@,$RESCOMP,;t t
52022s,@RESFLAGS@,$RESFLAGS,;t t
52023s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
52024s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
52025s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
52026s,@LIBWXMACRES@,$LIBWXMACRES,;t t
52027s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
52028s,@MACSETFILE@,$MACSETFILE,;t t
52029s,@GCC@,$GCC,;t t
52030s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
52031s,@LIBOBJS@,$LIBOBJS,;t t
52032s,@LTLIBOBJS@,$LTLIBOBJS,;t t
52033CEOF
52034
52035_ACEOF
52036
52037  cat >>$CONFIG_STATUS <<\_ACEOF
52038  # Split the substitutions into bite-sized pieces for seds with
52039  # small command number limits, like on Digital OSF/1 and HP-UX.
52040  ac_max_sed_lines=48
52041  ac_sed_frag=1 # Number of current file.
52042  ac_beg=1 # First line for current file.
52043  ac_end=$ac_max_sed_lines # Line after last line for current file.
52044  ac_more_lines=:
52045  ac_sed_cmds=
52046  while $ac_more_lines; do
52047    if test $ac_beg -gt 1; then
52048      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52049    else
52050      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52051    fi
52052    if test ! -s $tmp/subs.frag; then
52053      ac_more_lines=false
52054    else
52055      # The purpose of the label and of the branching condition is to
52056      # speed up the sed processing (if there are no `@' at all, there
52057      # is no need to browse any of the substitutions).
52058      # These are the two extra sed commands mentioned above.
52059      (echo ':t
52060  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52061      if test -z "$ac_sed_cmds"; then
52062	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52063      else
52064	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52065      fi
52066      ac_sed_frag=`expr $ac_sed_frag + 1`
52067      ac_beg=$ac_end
52068      ac_end=`expr $ac_end + $ac_max_sed_lines`
52069    fi
52070  done
52071  if test -z "$ac_sed_cmds"; then
52072    ac_sed_cmds=cat
52073  fi
52074fi # test -n "$CONFIG_FILES"
52075
52076_ACEOF
52077cat >>$CONFIG_STATUS <<\_ACEOF
52078for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52079  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52080  case $ac_file in
52081  - | *:- | *:-:* ) # input from stdin
52082	cat >$tmp/stdin
52083	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52084	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52085  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52086	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52087  * )   ac_file_in=$ac_file.in ;;
52088  esac
52089
52090  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52091  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52092$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52093	 X"$ac_file" : 'X\(//\)[^/]' \| \
52094	 X"$ac_file" : 'X\(//\)$' \| \
52095	 X"$ac_file" : 'X\(/\)' \| \
52096	 .     : '\(.\)' 2>/dev/null ||
52097echo X"$ac_file" |
52098    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52099  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52100  	  /^X\(\/\/\)$/{ s//\1/; q; }
52101  	  /^X\(\/\).*/{ s//\1/; q; }
52102  	  s/.*/./; q'`
52103  { if $as_mkdir_p; then
52104    mkdir -p "$ac_dir"
52105  else
52106    as_dir="$ac_dir"
52107    as_dirs=
52108    while test ! -d "$as_dir"; do
52109      as_dirs="$as_dir $as_dirs"
52110      as_dir=`(dirname "$as_dir") 2>/dev/null ||
52111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52112	 X"$as_dir" : 'X\(//\)[^/]' \| \
52113	 X"$as_dir" : 'X\(//\)$' \| \
52114	 X"$as_dir" : 'X\(/\)' \| \
52115	 .     : '\(.\)' 2>/dev/null ||
52116echo X"$as_dir" |
52117    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52118  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52119  	  /^X\(\/\/\)$/{ s//\1/; q; }
52120  	  /^X\(\/\).*/{ s//\1/; q; }
52121  	  s/.*/./; q'`
52122    done
52123    test ! -n "$as_dirs" || mkdir $as_dirs
52124  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52125echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52126   { (exit 1); exit 1; }; }; }
52127
52128  ac_builddir=.
52129
52130if test "$ac_dir" != .; then
52131  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52132  # A "../" for each directory in $ac_dir_suffix.
52133  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52134else
52135  ac_dir_suffix= ac_top_builddir=
52136fi
52137
52138case $srcdir in
52139  .)  # No --srcdir option.  We are building in place.
52140    ac_srcdir=.
52141    if test -z "$ac_top_builddir"; then
52142       ac_top_srcdir=.
52143    else
52144       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52145    fi ;;
52146  [\\/]* | ?:[\\/]* )  # Absolute path.
52147    ac_srcdir=$srcdir$ac_dir_suffix;
52148    ac_top_srcdir=$srcdir ;;
52149  *) # Relative path.
52150    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52151    ac_top_srcdir=$ac_top_builddir$srcdir ;;
52152esac
52153
52154# Do not use `cd foo && pwd` to compute absolute paths, because
52155# the directories may not exist.
52156case `pwd` in
52157.) ac_abs_builddir="$ac_dir";;
52158*)
52159  case "$ac_dir" in
52160  .) ac_abs_builddir=`pwd`;;
52161  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52162  *) ac_abs_builddir=`pwd`/"$ac_dir";;
52163  esac;;
52164esac
52165case $ac_abs_builddir in
52166.) ac_abs_top_builddir=${ac_top_builddir}.;;
52167*)
52168  case ${ac_top_builddir}. in
52169  .) ac_abs_top_builddir=$ac_abs_builddir;;
52170  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52171  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52172  esac;;
52173esac
52174case $ac_abs_builddir in
52175.) ac_abs_srcdir=$ac_srcdir;;
52176*)
52177  case $ac_srcdir in
52178  .) ac_abs_srcdir=$ac_abs_builddir;;
52179  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52180  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52181  esac;;
52182esac
52183case $ac_abs_builddir in
52184.) ac_abs_top_srcdir=$ac_top_srcdir;;
52185*)
52186  case $ac_top_srcdir in
52187  .) ac_abs_top_srcdir=$ac_abs_builddir;;
52188  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52189  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52190  esac;;
52191esac
52192
52193
52194  case $INSTALL in
52195  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52196  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52197  esac
52198
52199  # Let's still pretend it is `configure' which instantiates (i.e., don't
52200  # use $as_me), people would be surprised to read:
52201  #    /* config.h.  Generated by config.status.  */
52202  if test x"$ac_file" = x-; then
52203    configure_input=
52204  else
52205    configure_input="$ac_file.  "
52206  fi
52207  configure_input=$configure_input"Generated from `echo $ac_file_in |
52208				     sed 's,.*/,,'` by configure."
52209
52210  # First look for the input files in the build tree, otherwise in the
52211  # src tree.
52212  ac_file_inputs=`IFS=:
52213    for f in $ac_file_in; do
52214      case $f in
52215      -) echo $tmp/stdin ;;
52216      [\\/$]*)
52217	 # Absolute (can't be DOS-style, as IFS=:)
52218	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52219echo "$as_me: error: cannot find input file: $f" >&2;}
52220   { (exit 1); exit 1; }; }
52221	 echo "$f";;
52222      *) # Relative
52223	 if test -f "$f"; then
52224	   # Build tree
52225	   echo "$f"
52226	 elif test -f "$srcdir/$f"; then
52227	   # Source tree
52228	   echo "$srcdir/$f"
52229	 else
52230	   # /dev/null tree
52231	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52232echo "$as_me: error: cannot find input file: $f" >&2;}
52233   { (exit 1); exit 1; }; }
52234	 fi;;
52235      esac
52236    done` || { (exit 1); exit 1; }
52237
52238  if test x"$ac_file" != x-; then
52239    { echo "$as_me:$LINENO: creating $ac_file" >&5
52240echo "$as_me: creating $ac_file" >&6;}
52241    rm -f "$ac_file"
52242  fi
52243_ACEOF
52244cat >>$CONFIG_STATUS <<_ACEOF
52245  sed "$ac_vpsub
52246$extrasub
52247_ACEOF
52248cat >>$CONFIG_STATUS <<\_ACEOF
52249:t
52250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52251s,@configure_input@,$configure_input,;t t
52252s,@srcdir@,$ac_srcdir,;t t
52253s,@abs_srcdir@,$ac_abs_srcdir,;t t
52254s,@top_srcdir@,$ac_top_srcdir,;t t
52255s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52256s,@builddir@,$ac_builddir,;t t
52257s,@abs_builddir@,$ac_abs_builddir,;t t
52258s,@top_builddir@,$ac_top_builddir,;t t
52259s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52260s,@INSTALL@,$ac_INSTALL,;t t
52261" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52262  rm -f $tmp/stdin
52263  if test x"$ac_file" != x-; then
52264    mv $tmp/out $ac_file
52265  else
52266    cat $tmp/out
52267    rm -f $tmp/out
52268  fi
52269
52270  # Run the commands associated with the file.
52271  case $ac_file in
52272    lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52273    lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52274  esac
52275done
52276_ACEOF
52277cat >>$CONFIG_STATUS <<\_ACEOF
52278
52279#
52280# CONFIG_HEADER section.
52281#
52282
52283# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52284# NAME is the cpp macro being defined and VALUE is the value it is being given.
52285#
52286# ac_d sets the value in "#define NAME VALUE" lines.
52287ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
52288ac_dB='[	 ].*$,\1#\2'
52289ac_dC=' '
52290ac_dD=',;t'
52291# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52292ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
52293ac_uB='$,\1#\2define\3'
52294ac_uC=' '
52295ac_uD=',;t'
52296
52297for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52298  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52299  case $ac_file in
52300  - | *:- | *:-:* ) # input from stdin
52301	cat >$tmp/stdin
52302	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52303	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52304  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52305	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52306  * )   ac_file_in=$ac_file.in ;;
52307  esac
52308
52309  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52310echo "$as_me: creating $ac_file" >&6;}
52311
52312  # First look for the input files in the build tree, otherwise in the
52313  # src tree.
52314  ac_file_inputs=`IFS=:
52315    for f in $ac_file_in; do
52316      case $f in
52317      -) echo $tmp/stdin ;;
52318      [\\/$]*)
52319	 # Absolute (can't be DOS-style, as IFS=:)
52320	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52321echo "$as_me: error: cannot find input file: $f" >&2;}
52322   { (exit 1); exit 1; }; }
52323	 # Do quote $f, to prevent DOS paths from being IFS'd.
52324	 echo "$f";;
52325      *) # Relative
52326	 if test -f "$f"; then
52327	   # Build tree
52328	   echo "$f"
52329	 elif test -f "$srcdir/$f"; then
52330	   # Source tree
52331	   echo "$srcdir/$f"
52332	 else
52333	   # /dev/null tree
52334	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52335echo "$as_me: error: cannot find input file: $f" >&2;}
52336   { (exit 1); exit 1; }; }
52337	 fi;;
52338      esac
52339    done` || { (exit 1); exit 1; }
52340  # Remove the trailing spaces.
52341  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
52342
52343_ACEOF
52344
52345# Transform confdefs.h into two sed scripts, `conftest.defines' and
52346# `conftest.undefs', that substitutes the proper values into
52347# config.h.in to produce config.h.  The first handles `#define'
52348# templates, and the second `#undef' templates.
52349# And first: Protect against being on the right side of a sed subst in
52350# config.status.  Protect against being in an unquoted here document
52351# in config.status.
52352rm -f conftest.defines conftest.undefs
52353# Using a here document instead of a string reduces the quoting nightmare.
52354# Putting comments in sed scripts is not portable.
52355#
52356# `end' is used to avoid that the second main sed command (meant for
52357# 0-ary CPP macros) applies to n-ary macro definitions.
52358# See the Autoconf documentation for `clear'.
52359cat >confdef2sed.sed <<\_ACEOF
52360s/[\\&,]/\\&/g
52361s,[\\$`],\\&,g
52362t clear
52363: clear
52364s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52365t end
52366s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52367: end
52368_ACEOF
52369# If some macros were called several times there might be several times
52370# the same #defines, which is useless.  Nevertheless, we may not want to
52371# sort them, since we want the *last* AC-DEFINE to be honored.
52372uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52373sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52374rm -f confdef2sed.sed
52375
52376# This sed command replaces #undef with comments.  This is necessary, for
52377# example, in the case of _POSIX_SOURCE, which is predefined and required
52378# on some systems where configure will not decide to define it.
52379cat >>conftest.undefs <<\_ACEOF
52380s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52381_ACEOF
52382
52383# Break up conftest.defines because some shells have a limit on the size
52384# of here documents, and old seds have small limits too (100 cmds).
52385echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52386echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52387echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52388echo '  :' >>$CONFIG_STATUS
52389rm -f conftest.tail
52390while grep . conftest.defines >/dev/null
52391do
52392  # Write a limited-size here document to $tmp/defines.sed.
52393  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52394  # Speed up: don't consider the non `#define' lines.
52395  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
52396  # Work around the forget-to-reset-the-flag bug.
52397  echo 't clr' >>$CONFIG_STATUS
52398  echo ': clr' >>$CONFIG_STATUS
52399  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52400  echo 'CEOF
52401  sed -f $tmp/defines.sed $tmp/in >$tmp/out
52402  rm -f $tmp/in
52403  mv $tmp/out $tmp/in
52404' >>$CONFIG_STATUS
52405  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52406  rm -f conftest.defines
52407  mv conftest.tail conftest.defines
52408done
52409rm -f conftest.defines
52410echo '  fi # grep' >>$CONFIG_STATUS
52411echo >>$CONFIG_STATUS
52412
52413# Break up conftest.undefs because some shells have a limit on the size
52414# of here documents, and old seds have small limits too (100 cmds).
52415echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
52416rm -f conftest.tail
52417while grep . conftest.undefs >/dev/null
52418do
52419  # Write a limited-size here document to $tmp/undefs.sed.
52420  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52421  # Speed up: don't consider the non `#undef'
52422  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
52423  # Work around the forget-to-reset-the-flag bug.
52424  echo 't clr' >>$CONFIG_STATUS
52425  echo ': clr' >>$CONFIG_STATUS
52426  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52427  echo 'CEOF
52428  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52429  rm -f $tmp/in
52430  mv $tmp/out $tmp/in
52431' >>$CONFIG_STATUS
52432  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52433  rm -f conftest.undefs
52434  mv conftest.tail conftest.undefs
52435done
52436rm -f conftest.undefs
52437
52438cat >>$CONFIG_STATUS <<\_ACEOF
52439  # Let's still pretend it is `configure' which instantiates (i.e., don't
52440  # use $as_me), people would be surprised to read:
52441  #    /* config.h.  Generated by config.status.  */
52442  if test x"$ac_file" = x-; then
52443    echo "/* Generated by configure.  */" >$tmp/config.h
52444  else
52445    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
52446  fi
52447  cat $tmp/in >>$tmp/config.h
52448  rm -f $tmp/in
52449  if test x"$ac_file" != x-; then
52450    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52451      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52452echo "$as_me: $ac_file is unchanged" >&6;}
52453    else
52454      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52455$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52456	 X"$ac_file" : 'X\(//\)[^/]' \| \
52457	 X"$ac_file" : 'X\(//\)$' \| \
52458	 X"$ac_file" : 'X\(/\)' \| \
52459	 .     : '\(.\)' 2>/dev/null ||
52460echo X"$ac_file" |
52461    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52462  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52463  	  /^X\(\/\/\)$/{ s//\1/; q; }
52464  	  /^X\(\/\).*/{ s//\1/; q; }
52465  	  s/.*/./; q'`
52466      { if $as_mkdir_p; then
52467    mkdir -p "$ac_dir"
52468  else
52469    as_dir="$ac_dir"
52470    as_dirs=
52471    while test ! -d "$as_dir"; do
52472      as_dirs="$as_dir $as_dirs"
52473      as_dir=`(dirname "$as_dir") 2>/dev/null ||
52474$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52475	 X"$as_dir" : 'X\(//\)[^/]' \| \
52476	 X"$as_dir" : 'X\(//\)$' \| \
52477	 X"$as_dir" : 'X\(/\)' \| \
52478	 .     : '\(.\)' 2>/dev/null ||
52479echo X"$as_dir" |
52480    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52481  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52482  	  /^X\(\/\/\)$/{ s//\1/; q; }
52483  	  /^X\(\/\).*/{ s//\1/; q; }
52484  	  s/.*/./; q'`
52485    done
52486    test ! -n "$as_dirs" || mkdir $as_dirs
52487  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52488echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52489   { (exit 1); exit 1; }; }; }
52490
52491      rm -f $ac_file
52492      mv $tmp/config.h $ac_file
52493    fi
52494  else
52495    cat $tmp/config.h
52496    rm -f $tmp/config.h
52497  fi
52498done
52499_ACEOF
52500cat >>$CONFIG_STATUS <<\_ACEOF
52501
52502#
52503# CONFIG_COMMANDS section.
52504#
52505for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52506  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52507  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52508  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52509$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52510	 X"$ac_dest" : 'X\(//\)[^/]' \| \
52511	 X"$ac_dest" : 'X\(//\)$' \| \
52512	 X"$ac_dest" : 'X\(/\)' \| \
52513	 .     : '\(.\)' 2>/dev/null ||
52514echo X"$ac_dest" |
52515    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52516  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52517  	  /^X\(\/\/\)$/{ s//\1/; q; }
52518  	  /^X\(\/\).*/{ s//\1/; q; }
52519  	  s/.*/./; q'`
52520  { if $as_mkdir_p; then
52521    mkdir -p "$ac_dir"
52522  else
52523    as_dir="$ac_dir"
52524    as_dirs=
52525    while test ! -d "$as_dir"; do
52526      as_dirs="$as_dir $as_dirs"
52527      as_dir=`(dirname "$as_dir") 2>/dev/null ||
52528$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52529	 X"$as_dir" : 'X\(//\)[^/]' \| \
52530	 X"$as_dir" : 'X\(//\)$' \| \
52531	 X"$as_dir" : 'X\(/\)' \| \
52532	 .     : '\(.\)' 2>/dev/null ||
52533echo X"$as_dir" |
52534    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52535  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52536  	  /^X\(\/\/\)$/{ s//\1/; q; }
52537  	  /^X\(\/\).*/{ s//\1/; q; }
52538  	  s/.*/./; q'`
52539    done
52540    test ! -n "$as_dirs" || mkdir $as_dirs
52541  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52542echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52543   { (exit 1); exit 1; }; }; }
52544
52545  ac_builddir=.
52546
52547if test "$ac_dir" != .; then
52548  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52549  # A "../" for each directory in $ac_dir_suffix.
52550  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52551else
52552  ac_dir_suffix= ac_top_builddir=
52553fi
52554
52555case $srcdir in
52556  .)  # No --srcdir option.  We are building in place.
52557    ac_srcdir=.
52558    if test -z "$ac_top_builddir"; then
52559       ac_top_srcdir=.
52560    else
52561       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52562    fi ;;
52563  [\\/]* | ?:[\\/]* )  # Absolute path.
52564    ac_srcdir=$srcdir$ac_dir_suffix;
52565    ac_top_srcdir=$srcdir ;;
52566  *) # Relative path.
52567    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52568    ac_top_srcdir=$ac_top_builddir$srcdir ;;
52569esac
52570
52571# Do not use `cd foo && pwd` to compute absolute paths, because
52572# the directories may not exist.
52573case `pwd` in
52574.) ac_abs_builddir="$ac_dir";;
52575*)
52576  case "$ac_dir" in
52577  .) ac_abs_builddir=`pwd`;;
52578  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52579  *) ac_abs_builddir=`pwd`/"$ac_dir";;
52580  esac;;
52581esac
52582case $ac_abs_builddir in
52583.) ac_abs_top_builddir=${ac_top_builddir}.;;
52584*)
52585  case ${ac_top_builddir}. in
52586  .) ac_abs_top_builddir=$ac_abs_builddir;;
52587  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52588  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52589  esac;;
52590esac
52591case $ac_abs_builddir in
52592.) ac_abs_srcdir=$ac_srcdir;;
52593*)
52594  case $ac_srcdir in
52595  .) ac_abs_srcdir=$ac_abs_builddir;;
52596  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52597  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52598  esac;;
52599esac
52600case $ac_abs_builddir in
52601.) ac_abs_top_srcdir=$ac_top_srcdir;;
52602*)
52603  case $ac_top_srcdir in
52604  .) ac_abs_top_srcdir=$ac_abs_builddir;;
52605  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52606  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52607  esac;;
52608esac
52609
52610
52611  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52612echo "$as_me: executing $ac_dest commands" >&6;}
52613  case $ac_dest in
52614    rcdefs.h )
52615            mkdir -p $outdir &&
52616            $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52617         ;;
52618    wx-config )  rm -f wx-config
52619                     ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52620                    ;;
52621  esac
52622done
52623_ACEOF
52624
52625cat >>$CONFIG_STATUS <<\_ACEOF
52626
52627{ (exit 0); exit 0; }
52628_ACEOF
52629chmod +x $CONFIG_STATUS
52630ac_clean_files=$ac_clean_files_save
52631
52632
52633# configure is writing to config.log, and then calls config.status.
52634# config.status does its own redirection, appending to config.log.
52635# Unfortunately, on DOS this fails, as config.log is still kept open
52636# by configure, so config.status won't be able to write to it; its
52637# output is simply discarded.  So we exec the FD to /dev/null,
52638# effectively closing config.log, so it can be properly (re)opened and
52639# appended to by config.status.  When coming back to configure, we
52640# need to make the FD available again.
52641if test "$no_create" != yes; then
52642  ac_cs_success=:
52643  ac_config_status_args=
52644  test "$silent" = yes &&
52645    ac_config_status_args="$ac_config_status_args --quiet"
52646  exec 5>/dev/null
52647  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52648  exec 5>>config.log
52649  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52650  # would make configure fail if this is the last instruction.
52651  $ac_cs_success || { (exit 1); exit 1; }
52652fi
52653
52654#
52655# CONFIG_SUBDIRS section.
52656#
52657if test "$no_recursion" != yes; then
52658
52659  # Remove --cache-file and --srcdir arguments so they do not pile up.
52660  ac_sub_configure_args=
52661  ac_prev=
52662  for ac_arg in $ac_configure_args; do
52663    if test -n "$ac_prev"; then
52664      ac_prev=
52665      continue
52666    fi
52667    case $ac_arg in
52668    -cache-file | --cache-file | --cache-fil | --cache-fi \
52669    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52670      ac_prev=cache_file ;;
52671    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52672    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52673    | --c=*)
52674      ;;
52675    --config-cache | -C)
52676      ;;
52677    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52678      ac_prev=srcdir ;;
52679    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52680      ;;
52681    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52682      ac_prev=prefix ;;
52683    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52684      ;;
52685    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52686    esac
52687  done
52688
52689  # Always prepend --prefix to ensure using the same prefix
52690  # in subdir configurations.
52691  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52692
52693  ac_popdir=`pwd`
52694  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52695
52696    # Do not complain, so a configure script can configure whichever
52697    # parts of a large source tree are present.
52698    test -d $srcdir/$ac_dir || continue
52699
52700    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52701echo "$as_me: configuring in $ac_dir" >&6;}
52702    { if $as_mkdir_p; then
52703    mkdir -p "$ac_dir"
52704  else
52705    as_dir="$ac_dir"
52706    as_dirs=
52707    while test ! -d "$as_dir"; do
52708      as_dirs="$as_dir $as_dirs"
52709      as_dir=`(dirname "$as_dir") 2>/dev/null ||
52710$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52711	 X"$as_dir" : 'X\(//\)[^/]' \| \
52712	 X"$as_dir" : 'X\(//\)$' \| \
52713	 X"$as_dir" : 'X\(/\)' \| \
52714	 .     : '\(.\)' 2>/dev/null ||
52715echo X"$as_dir" |
52716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52718  	  /^X\(\/\/\)$/{ s//\1/; q; }
52719  	  /^X\(\/\).*/{ s//\1/; q; }
52720  	  s/.*/./; q'`
52721    done
52722    test ! -n "$as_dirs" || mkdir $as_dirs
52723  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52724echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52725   { (exit 1); exit 1; }; }; }
52726
52727    ac_builddir=.
52728
52729if test "$ac_dir" != .; then
52730  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52731  # A "../" for each directory in $ac_dir_suffix.
52732  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52733else
52734  ac_dir_suffix= ac_top_builddir=
52735fi
52736
52737case $srcdir in
52738  .)  # No --srcdir option.  We are building in place.
52739    ac_srcdir=.
52740    if test -z "$ac_top_builddir"; then
52741       ac_top_srcdir=.
52742    else
52743       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52744    fi ;;
52745  [\\/]* | ?:[\\/]* )  # Absolute path.
52746    ac_srcdir=$srcdir$ac_dir_suffix;
52747    ac_top_srcdir=$srcdir ;;
52748  *) # Relative path.
52749    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52750    ac_top_srcdir=$ac_top_builddir$srcdir ;;
52751esac
52752
52753# Do not use `cd foo && pwd` to compute absolute paths, because
52754# the directories may not exist.
52755case `pwd` in
52756.) ac_abs_builddir="$ac_dir";;
52757*)
52758  case "$ac_dir" in
52759  .) ac_abs_builddir=`pwd`;;
52760  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52761  *) ac_abs_builddir=`pwd`/"$ac_dir";;
52762  esac;;
52763esac
52764case $ac_abs_builddir in
52765.) ac_abs_top_builddir=${ac_top_builddir}.;;
52766*)
52767  case ${ac_top_builddir}. in
52768  .) ac_abs_top_builddir=$ac_abs_builddir;;
52769  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52770  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52771  esac;;
52772esac
52773case $ac_abs_builddir in
52774.) ac_abs_srcdir=$ac_srcdir;;
52775*)
52776  case $ac_srcdir in
52777  .) ac_abs_srcdir=$ac_abs_builddir;;
52778  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52779  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52780  esac;;
52781esac
52782case $ac_abs_builddir in
52783.) ac_abs_top_srcdir=$ac_top_srcdir;;
52784*)
52785  case $ac_top_srcdir in
52786  .) ac_abs_top_srcdir=$ac_abs_builddir;;
52787  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52788  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52789  esac;;
52790esac
52791
52792
52793    cd $ac_dir
52794
52795    # Check for guested configure; otherwise get Cygnus style configure.
52796    if test -f $ac_srcdir/configure.gnu; then
52797      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52798    elif test -f $ac_srcdir/configure; then
52799      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52800    elif test -f $ac_srcdir/configure.in; then
52801      ac_sub_configure=$ac_configure
52802    else
52803      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52804echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52805      ac_sub_configure=
52806    fi
52807
52808    # The recursion is here.
52809    if test -n "$ac_sub_configure"; then
52810      # Make the cache file name correct relative to the subdirectory.
52811      case $cache_file in
52812      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52813      *) # Relative path.
52814	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
52815      esac
52816
52817      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52818echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52819      # The eval makes quoting arguments work.
52820      eval $ac_sub_configure $ac_sub_configure_args \
52821	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52822	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52823echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52824   { (exit 1); exit 1; }; }
52825    fi
52826
52827    cd "$ac_popdir"
52828  done
52829fi
52830
52831
52832echo
52833echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52834echo ""
52835echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52836echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52837
52838echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52839echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52840echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
52841
52842echo "  What level of wxWidgets compatibility should be enabled?"
52843echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
52844echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
52845
52846echo "  Which libraries should wxWidgets use?"
52847echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52848echo "                                       png                ${wxUSE_LIBPNG-none}"
52849echo "                                       regex              ${wxUSE_REGEX}"
52850echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52851if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52852echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52853fi
52854echo "                                       zlib               ${wxUSE_ZLIB}"
52855echo "                                       odbc               ${wxUSE_ODBC}"
52856echo "                                       expat              ${wxUSE_EXPAT}"
52857echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52858echo "                                       sdl                ${wxUSE_LIBSDL}"
52859
52860echo ""
52861
52862