Test for KDE and GNOME using session manager vendor.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.1.
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
16 if 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+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for 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
46 do
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
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo 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.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if 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
100 fi
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
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
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
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
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
155 done
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
190 case `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= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if 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
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_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.
234 as_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.
239 as_nl='
240 '
241 IFS="   $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.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${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.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.7.1'
274 PACKAGE_STRING='wxWidgets 2.7.1'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_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
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR 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 CXXCPP 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_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 HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET 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_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_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_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_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 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_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_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_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 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'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_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.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
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
631 Try \`$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
654 done
655
656 if 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; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
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
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675               localstatedir libdir includedir oldincludedir infodir mandir
676 do
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
683 done
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.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if 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
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if 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 ||
719 echo 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
729 else
730   ac_srcdir_defaulted=no
731 fi
732 if 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
740 fi
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; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790 ac_env_PKG_CONFIG_value=$PKG_CONFIG
791 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
793 ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794 ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795 ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796 ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797 ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798 ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799 ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800 ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
801 ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802 ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803 ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804 ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805 ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806 ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807 ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808 ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809 ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810 ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811 ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812 ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813 ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814 ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815 ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816 ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817 ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818 ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819 ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820 ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821 ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822 ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823 ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824 ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825 ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826 ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829 ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830 ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831 ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832 ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833 ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834 ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835 ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836 ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837 ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838 ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839 ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840 ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841 ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842 ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843 ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844 ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845 ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846 ac_env_HILDON_LIBS_value=$HILDON_LIBS
847 ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848 ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
849 ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850 ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851 ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852 ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853 ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854 ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855 ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856 ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
857 ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858 ac_env_GST_CFLAGS_value=$GST_CFLAGS
859 ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860 ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861 ac_env_GST_LIBS_set=${GST_LIBS+set}
862 ac_env_GST_LIBS_value=$GST_LIBS
863 ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864 ac_cv_env_GST_LIBS_value=$GST_LIBS
865
866 #
867 # Report the --help message.
868 #
869 if test "$ac_init_help" = "long"; then
870   # Omit some internal or obsolete options to make the list less imposing.
871   # This message is too long to be a string in the A/UX 3.1 sh.
872   cat <<_ACEOF
873 \`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
874
875 Usage: $0 [OPTION]... [VAR=VALUE]...
876
877 To assign environment variables (e.g., CC, CFLAGS...), specify them as
878 VAR=VALUE.  See below for descriptions of some of the useful variables.
879
880 Defaults for the options are specified in brackets.
881
882 Configuration:
883   -h, --help              display this help and exit
884       --help=short        display options specific to this package
885       --help=recursive    display the short help of all the included packages
886   -V, --version           display version information and exit
887   -q, --quiet, --silent   do not print \`checking...' messages
888       --cache-file=FILE   cache test results in FILE [disabled]
889   -C, --config-cache      alias for \`--cache-file=config.cache'
890   -n, --no-create         do not create output files
891       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
892
893 _ACEOF
894
895   cat <<_ACEOF
896 Installation directories:
897   --prefix=PREFIX         install architecture-independent files in PREFIX
898                           [$ac_default_prefix]
899   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
900                           [PREFIX]
901
902 By default, \`make install' will install all the files in
903 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
904 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905 for instance \`--prefix=\$HOME'.
906
907 For better control, use the options below.
908
909 Fine tuning of the installation directories:
910   --bindir=DIR           user executables [EPREFIX/bin]
911   --sbindir=DIR          system admin executables [EPREFIX/sbin]
912   --libexecdir=DIR       program executables [EPREFIX/libexec]
913   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
914   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
915   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
916   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
917   --libdir=DIR           object code libraries [EPREFIX/lib]
918   --includedir=DIR       C header files [PREFIX/include]
919   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
920   --infodir=DIR          info documentation [PREFIX/info]
921   --mandir=DIR           man documentation [PREFIX/man]
922 _ACEOF
923
924   cat <<\_ACEOF
925
926 X features:
927   --x-includes=DIR    X include files are in DIR
928   --x-libraries=DIR   X library files are in DIR
929
930 System types:
931   --build=BUILD     configure for building on BUILD [guessed]
932   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
933   --target=TARGET   configure for building compilers for TARGET [HOST]
934 _ACEOF
935 fi
936
937 if test -n "$ac_init_help"; then
938   case $ac_init_help in
939      short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
940    esac
941   cat <<\_ACEOF
942
943 Optional Features:
944   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
945   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
946   --enable-gui            use GUI classes
947   --enable-monolithic     build wxWidgets as single library
948   --enable-plugins        build parts of wxWidgets as loadable components
949   --enable-universal      use wxWidgets GUI controls instead of native ones
950   --enable-nanox          use NanoX
951   --disable-gtk2          use GTK+ 1.2 instead of 2.0
952   --enable-gpe            use GNOME PDA Environment features if possible
953   --enable-shared         create shared library code
954   --enable-optimise       create optimised code
955   --enable-debug          same as debug_flag and debug_info
956   --enable-stl            use STL for containers
957   --enable-omf            use OMF object format
958   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
959   --enable-debug_info     create code with debugging information
960   --enable-debug_gdb      create code with extra GDB debugging information
961   --enable-debug_cntxt    use wxDebugContext
962   --enable-mem_tracing    create code with memory tracing
963   --enable-profile        create code with profiling information
964   --enable-no_rtti        create code without RTTI information
965   --enable-no_exceptions  create code without C++ exceptions handling
966   --enable-permissive     compile code disregarding strict ANSI
967   --enable-no_deps        create code without dependency information
968   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
969   --enable-compat24       enable wxWidgets 2.4 compatibility
970   --disable-compat26      disable wxWidgets 2.6 compatibility
971   --disable-rpath         disable use of rpath for uninstalled builds
972   --enable-intl           use internationalization system
973   --enable-config         use wxConfig (and derived) classes
974   --enable-protocols      use wxProtocol and derived classes
975   --enable-ftp            use wxFTP (requires wxProtocol
976   --enable-http           use wxHTTP (requires wxProtocol
977   --enable-fileproto      use wxFileProto class (requires wxProtocol
978   --enable-sockets        use socket/network classes
979   --enable-ole            use OLE classes (Win32 only)
980   --enable-dataobj        use data object classes
981   --enable-ipc            use interprocess communication (wxSocket etc.)
982   --enable-apple_ieee     use the Apple IEEE codec
983   --enable-arcstream      use wxArchive streams
984   --enable-backtrace      use wxStackWalker class for getting backtraces
985   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
986   --enable-cmdline        use wxCmdLineParser class
987   --enable-datetime       use wxDateTime class
988   --enable-debugreport    use wxDebugReport class
989   --enable-dialupman      use dialup network classes
990   --enable-dynlib         use wxLibrary class for DLL loading
991   --enable-dynamicloader  use (new) wxDynamicLibrary class
992   --enable-exceptions     build exception-safe library
993   --enable-ffile          use wxFFile class
994   --enable-file           use wxFile class
995   --enable-filesystem     use virtual file systems classes
996   --enable-fontmap        use font encodings conversion classes
997   --enable-fs_inet        use virtual HTTP/FTP filesystems
998   --enable-fs_zip         use virtual ZIP filesystems
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-textbuf        use wxTextBuffer class
1012   --enable-textfile       use wxTextFile class
1013   --enable-timer          use wxTimer class
1014   --enable-unicode        compile wxString with Unicode support
1015   --enable-sound          use wxSound class
1016   --enable-mediactrl      use wxMediaCtrl class
1017   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1018   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1019   --enable-zipstream      use wxZip streams
1020   --enable-url            use wxURL class
1021   --enable-variant        use wxVariant class
1022   --enable-protocol       use wxProtocol class
1023   --enable-protocol-http  HTTP support in wxProtocol
1024   --enable-protocol-ftp   FTP support in wxProtocol
1025   --enable-protocol-file  FILE support in wxProtocol
1026   --enable-threads        use threads
1027   --enable-docview        use document view architecture
1028   --enable-help           use help subsystem
1029   --enable-mshtmlhelp     use MS HTML Help (win32)
1030   --enable-html           use wxHTML sub-library
1031   --enable-htmlhelp       use wxHTML-based help
1032   --enable-xrc            use XRC resources sub-library
1033   --enable-aui            use AUI docking library
1034   --enable-constraints    use layout-constraints system
1035   --enable-printarch      use printing architecture
1036   --enable-mdi            use multiple document interface architecture
1037   --enable-mdidoc         use docview architecture with MDI
1038   --enable-loggui         use standard GUI logger
1039   --enable-logwin         use wxLogWindow
1040   --enable-logdialog      use wxLogDialog
1041   --enable-webkit         use wxWebKitCtrl (Mac)
1042   --enable-richtext       use wxRichTextCtrl
1043   --enable-graphics_ctx   use graphics context 2D drawing API
1044   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1045   --enable-prologio       not available; see contrib
1046   --enable-resources      not available; see contrib
1047   --enable-clipboard      use wxClipboard class
1048   --enable-dnd            use Drag'n'Drop classes
1049   --enable-metafile       use win32 metafiles
1050   --enable-controls       use all usual controls
1051   --enable-accel          use accelerators
1052   --enable-animatectrl    use wxAnimationCtrl class
1053   --enable-button         use wxButton class
1054   --enable-bmpbutton      use wxBitmapButton class
1055   --enable-bmpcombobox    use wxBitmapComboBox class
1056   --enable-calendar       use wxCalendarCtrl class
1057   --enable-caret          use wxCaret class
1058   --enable-checkbox       use wxCheckBox class
1059   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1060   --enable-choice         use wxChoice class
1061   --enable-choicebook     use wxChoicebook class
1062   --enable-colourpicker   use wxColourPickerCtrl class
1063   --enable-combobox       use wxComboBox class
1064   --enable-comboctrl      use wxComboCtrl class
1065   --enable-datepick       use wxDatePickerCtrl class
1066   --enable-dirpicker      use wxDirPickerCtrl class
1067   --enable-display        use wxDisplay class
1068   --enable-detect_sm      use code to detect X11 session manager
1069   --enable-filepicker     use wxFilePickerCtrl class
1070   --enable-fontpicker     use wxFontPickerCtrl class
1071   --enable-gauge          use wxGauge class
1072   --enable-grid           use wxGrid class
1073   --enable-dataviewctrl,  use wxDataViewCtrl class
1074   --enable-hyperlink      use wxHyperlinkCtrl class
1075   --enable-imaglist       use wxImageList class
1076   --enable-listbook       use wxListbook class
1077   --enable-listbox        use wxListBox class
1078   --enable-listctrl       use wxListCtrl class
1079   --enable-notebook       use wxNotebook class
1080   --enable-odcombobox     use wxOwnerDrawnComboBox class
1081   --enable-radiobox       use wxRadioBox class
1082   --enable-radiobtn       use wxRadioButton class
1083   --enable-sash           use wxSashWindow class
1084   --enable-scrollbar      use wxScrollBar class and scrollable windows
1085   --enable-slider         use wxSlider class
1086   --enable-spinbtn        use wxSpinButton class
1087   --enable-spinctrl       use wxSpinCtrl class
1088   --enable-splitter       use wxSplitterWindow class
1089   --enable-statbmp        use wxStaticBitmap class
1090   --enable-statbox        use wxStaticBox class
1091   --enable-statline       use wxStaticLine class
1092   --enable-stattext       use wxStaticText class
1093   --enable-statusbar      use wxStatusBar class
1094   --enable-tabdialog      use wxTabControl class
1095   --enable-textctrl       use wxTextCtrl class
1096   --enable-togglebtn      use wxToggleButton class
1097   --enable-toolbar        use wxToolBar class
1098   --enable-tbarnative     use native wxToolBar class
1099   --enable-treebook       use wxTreebook class
1100   --enable-toolbook       use wxToolbook class
1101   --enable-treectrl       use wxTreeCtrl class
1102   --enable-tipwindow      use wxTipWindow class
1103   --enable-popupwin       use wxPopUpWindow class
1104   --enable-commondlg      use all common dialogs
1105   --enable-aboutdlg       use wxAboutBox
1106   --enable-choicedlg      use wxChoiceDialog
1107   --enable-coldlg         use wxColourDialog
1108   --enable-filedlg        use wxFileDialog
1109   --enable-finddlg        use wxFindReplaceDialog
1110   --enable-fontdlg        use wxFontDialog
1111   --enable-dirdlg         use wxDirDialog
1112   --enable-msgdlg         use wxMessageDialog
1113   --enable-numberdlg      use wxNumberEntryDialog
1114   --enable-splash         use wxSplashScreen
1115   --enable-textdlg        use wxTextDialog
1116   --enable-tipdlg         use startup tips
1117   --enable-progressdlg    use wxProgressDialog
1118   --enable-wizarddlg      use wxWizard
1119   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1120   --enable-miniframe      use wxMiniFrame class
1121   --enable-tooltips       use wxToolTip class
1122   --enable-splines        use spline drawing code
1123   --enable-mousewheel     use mousewheel
1124   --enable-validators     use wxValidator and derived classes
1125   --enable-busyinfo       use wxBusyInfo
1126   --enable-joystick       use wxJoystick
1127   --enable-metafiles      use wxMetaFile (Win32 only)
1128   --enable-dragimage      use wxDragImage
1129   --enable-accessibility  enable accessibility support
1130   --enable-dccache        cache temporary wxDC objects (Win32 only)
1131   --enable-palette        use wxPalette class
1132   --enable-image          use wxImage class
1133   --enable-gif            use gif images (GIF file format)
1134   --enable-pcx            use pcx images (PCX file format)
1135   --enable-iff            use iff images (IFF file format)
1136   --enable-pnm            use pnm images (PNM file format)
1137   --enable-xpm            use xpm images (XPM file format)
1138   --enable-icocur         use Windows ICO and CUR formats
1139   --enable-official_build official build of wxWidgets (win32 DLL only)
1140   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1141   --disable-largefile     omit support for large files
1142   --disable-gtktest       do not try to compile and run a test GTK+ program
1143   --disable-gtktest       Do not try to compile and run a test GTK program
1144   --disable-sdltest       Do not try to compile and run a test SDL program
1145   --enable-omf            use OMF object format (OS/2)
1146   --disable-dependency-tracking
1147                           don't use dependency tracking even if the compiler
1148                           can
1149   --disable-precomp-headers
1150                           don't use precompiled headers even if compiler can
1151
1152 Optional Packages:
1153   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1154   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1155   --without-subdirs       don't generate makefiles for samples/demos/...
1156   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1157   --with-motif            use Motif/Lesstif
1158   --with-mac              use Mac OS X
1159   --with-cocoa            use Cocoa
1160   --with-wine             use Wine
1161   --with-msw              use MS-Windows
1162   --with-pm               use OS/2 Presentation Manager
1163   --with-mgl              use SciTech MGL
1164   --with-directfb         use DirectFB
1165   --with-microwin         use MicroWindows
1166   --with-x11              use X11
1167   --with-libpng           use libpng (PNG image format)
1168   --with-libjpeg          use libjpeg (JPEG file format)
1169   --with-libtiff          use libtiff (TIFF file format)
1170   --with-libxpm           use libxpm (XPM file format)
1171   --with-libmspack        use libmspack (CHM help files loading)
1172   --with-sdl              use SDL for audio on Unix
1173   --with-gnomeprint       use GNOME print for printing under GNOME
1174   --with-gnomevfs         use GNOME VFS for associating MIME types
1175   --with-hildon           use Hildon framework for Nokia 770
1176   --with-opengl           use OpenGL (or Mesa)
1177   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1178   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1179   --with-regex            enable support for wxRegEx class
1180   --with-zlib             use zlib for LZW compression
1181   --with-odbc             use the IODBC and wxODBC classes
1182   --with-expat            enable XML support using expat parser
1183   --with-flavour=NAME     specify a name to identify this build
1184   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1185   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1186   --with-x                use the X Window System
1187   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1188   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1189   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1190   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1191   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1192
1193 Some influential environment variables:
1194   CC          C compiler command
1195   CFLAGS      C compiler flags
1196   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1197               nonstandard directory <lib dir>
1198   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1199               headers in a nonstandard directory <include dir>
1200   CPP         C preprocessor
1201   CXX         C++ compiler command
1202   CXXFLAGS    C++ compiler flags
1203   CXXCPP      C++ preprocessor
1204   PKG_CONFIG  path to pkg-config utility
1205   DIRECTFB_CFLAGS
1206               C compiler flags for DIRECTFB, overriding pkg-config
1207   DIRECTFB_LIBS
1208               linker flags for DIRECTFB, overriding pkg-config
1209   PANGOX_CFLAGS
1210               C compiler flags for PANGOX, overriding pkg-config
1211   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1212   PANGOFT2_CFLAGS
1213               C compiler flags for PANGOFT2, overriding pkg-config
1214   PANGOFT2_LIBS
1215               linker flags for PANGOFT2, overriding pkg-config
1216   PANGOXFT_CFLAGS
1217               C compiler flags for PANGOXFT, overriding pkg-config
1218   PANGOXFT_LIBS
1219               linker flags for PANGOXFT, overriding pkg-config
1220   LIBGNOMEPRINTUI_CFLAGS
1221               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1222   LIBGNOMEPRINTUI_LIBS
1223               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1224   GNOMEVFS_CFLAGS
1225               C compiler flags for GNOMEVFS, overriding pkg-config
1226   GNOMEVFS_LIBS
1227               linker flags for GNOMEVFS, overriding pkg-config
1228   HILDON_CFLAGS
1229               C compiler flags for HILDON, overriding pkg-config
1230   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1231   CAIRO_CFLAGS
1232               C compiler flags for CAIRO, overriding pkg-config
1233   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1234   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1235   GST_LIBS    linker flags for GST, overriding pkg-config
1236
1237 Use these variables to override the choices made by `configure' or to help
1238 it to find libraries and programs with nonstandard names/locations.
1239
1240 Report bugs to <wx-dev@lists.wxwidgets.org>.
1241 _ACEOF
1242 fi
1243
1244 if test "$ac_init_help" = "recursive"; then
1245   # If there are subdirs, report their specific --help.
1246   ac_popdir=`pwd`
1247   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1248     test -d $ac_dir || continue
1249     ac_builddir=.
1250
1251 if test "$ac_dir" != .; then
1252   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1253   # A "../" for each directory in $ac_dir_suffix.
1254   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1255 else
1256   ac_dir_suffix= ac_top_builddir=
1257 fi
1258
1259 case $srcdir in
1260   .)  # No --srcdir option.  We are building in place.
1261     ac_srcdir=.
1262     if test -z "$ac_top_builddir"; then
1263        ac_top_srcdir=.
1264     else
1265        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1266     fi ;;
1267   [\\/]* | ?:[\\/]* )  # Absolute path.
1268     ac_srcdir=$srcdir$ac_dir_suffix;
1269     ac_top_srcdir=$srcdir ;;
1270   *) # Relative path.
1271     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1272     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1273 esac
1274
1275 # Do not use `cd foo && pwd` to compute absolute paths, because
1276 # the directories may not exist.
1277 case `pwd` in
1278 .) ac_abs_builddir="$ac_dir";;
1279 *)
1280   case "$ac_dir" in
1281   .) ac_abs_builddir=`pwd`;;
1282   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1283   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1284   esac;;
1285 esac
1286 case $ac_abs_builddir in
1287 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1288 *)
1289   case ${ac_top_builddir}. in
1290   .) ac_abs_top_builddir=$ac_abs_builddir;;
1291   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1292   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1293   esac;;
1294 esac
1295 case $ac_abs_builddir in
1296 .) ac_abs_srcdir=$ac_srcdir;;
1297 *)
1298   case $ac_srcdir in
1299   .) ac_abs_srcdir=$ac_abs_builddir;;
1300   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1301   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1302   esac;;
1303 esac
1304 case $ac_abs_builddir in
1305 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1306 *)
1307   case $ac_top_srcdir in
1308   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1309   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1310   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1311   esac;;
1312 esac
1313
1314     cd $ac_dir
1315     # Check for guested configure; otherwise get Cygnus style configure.
1316     if test -f $ac_srcdir/configure.gnu; then
1317       echo
1318       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1319     elif test -f $ac_srcdir/configure; then
1320       echo
1321       $SHELL $ac_srcdir/configure  --help=recursive
1322     elif test -f $ac_srcdir/configure.ac ||
1323            test -f $ac_srcdir/configure.in; then
1324       echo
1325       $ac_configure --help
1326     else
1327       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1328     fi
1329     cd $ac_popdir
1330   done
1331 fi
1332
1333 test -n "$ac_init_help" && exit 0
1334 if $ac_init_version; then
1335   cat <<\_ACEOF
1336 wxWidgets configure 2.7.1
1337 generated by GNU Autoconf 2.59
1338
1339 Copyright (C) 2003 Free Software Foundation, Inc.
1340 This configure script is free software; the Free Software Foundation
1341 gives unlimited permission to copy, distribute and modify it.
1342 _ACEOF
1343   exit 0
1344 fi
1345 exec 5>config.log
1346 cat >&5 <<_ACEOF
1347 This file contains any messages produced by compilers while
1348 running configure, to aid debugging if configure makes a mistake.
1349
1350 It was created by wxWidgets $as_me 2.7.1, which was
1351 generated by GNU Autoconf 2.59.  Invocation command line was
1352
1353   $ $0 $@
1354
1355 _ACEOF
1356 {
1357 cat <<_ASUNAME
1358 ## --------- ##
1359 ## Platform. ##
1360 ## --------- ##
1361
1362 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1363 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1364 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1365 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1366 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1367
1368 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1369 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1370
1371 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1372 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1373 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1374 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1375 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1376 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1377 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1378
1379 _ASUNAME
1380
1381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382 for as_dir in $PATH
1383 do
1384   IFS=$as_save_IFS
1385   test -z "$as_dir" && as_dir=.
1386   echo "PATH: $as_dir"
1387 done
1388
1389 } >&5
1390
1391 cat >&5 <<_ACEOF
1392
1393
1394 ## ----------- ##
1395 ## Core tests. ##
1396 ## ----------- ##
1397
1398 _ACEOF
1399
1400
1401 # Keep a trace of the command line.
1402 # Strip out --no-create and --no-recursion so they do not pile up.
1403 # Strip out --silent because we don't want to record it for future runs.
1404 # Also quote any args containing shell meta-characters.
1405 # Make two passes to allow for proper duplicate-argument suppression.
1406 ac_configure_args=
1407 ac_configure_args0=
1408 ac_configure_args1=
1409 ac_sep=
1410 ac_must_keep_next=false
1411 for ac_pass in 1 2
1412 do
1413   for ac_arg
1414   do
1415     case $ac_arg in
1416     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1417     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1418     | -silent | --silent | --silen | --sile | --sil)
1419       continue ;;
1420     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1421       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1422     esac
1423     case $ac_pass in
1424     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1425     2)
1426       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1427       if test $ac_must_keep_next = true; then
1428         ac_must_keep_next=false # Got value, back to normal.
1429       else
1430         case $ac_arg in
1431           *=* | --config-cache | -C | -disable-* | --disable-* \
1432           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1433           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1434           | -with-* | --with-* | -without-* | --without-* | --x)
1435             case "$ac_configure_args0 " in
1436               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1437             esac
1438             ;;
1439           -* ) ac_must_keep_next=true ;;
1440         esac
1441       fi
1442       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1443       # Get rid of the leading space.
1444       ac_sep=" "
1445       ;;
1446     esac
1447   done
1448 done
1449 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1450 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1451
1452 # When interrupted or exit'd, cleanup temporary files, and complete
1453 # config.log.  We remove comments because anyway the quotes in there
1454 # would cause problems or look ugly.
1455 # WARNING: Be sure not to use single quotes in there, as some shells,
1456 # such as our DU 5.0 friend, will then `close' the trap.
1457 trap 'exit_status=$?
1458   # Save into config.log some information that might help in debugging.
1459   {
1460     echo
1461
1462     cat <<\_ASBOX
1463 ## ---------------- ##
1464 ## Cache variables. ##
1465 ## ---------------- ##
1466 _ASBOX
1467     echo
1468     # The following way of writing the cache mishandles newlines in values,
1469 {
1470   (set) 2>&1 |
1471     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1472     *ac_space=\ *)
1473       sed -n \
1474         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1475           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1476       ;;
1477     *)
1478       sed -n \
1479         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1480       ;;
1481     esac;
1482 }
1483     echo
1484
1485     cat <<\_ASBOX
1486 ## ----------------- ##
1487 ## Output variables. ##
1488 ## ----------------- ##
1489 _ASBOX
1490     echo
1491     for ac_var in $ac_subst_vars
1492     do
1493       eval ac_val=$`echo $ac_var`
1494       echo "$ac_var='"'"'$ac_val'"'"'"
1495     done | sort
1496     echo
1497
1498     if test -n "$ac_subst_files"; then
1499       cat <<\_ASBOX
1500 ## ------------- ##
1501 ## Output files. ##
1502 ## ------------- ##
1503 _ASBOX
1504       echo
1505       for ac_var in $ac_subst_files
1506       do
1507         eval ac_val=$`echo $ac_var`
1508         echo "$ac_var='"'"'$ac_val'"'"'"
1509       done | sort
1510       echo
1511     fi
1512
1513     if test -s confdefs.h; then
1514       cat <<\_ASBOX
1515 ## ----------- ##
1516 ## confdefs.h. ##
1517 ## ----------- ##
1518 _ASBOX
1519       echo
1520       sed "/^$/d" confdefs.h | sort
1521       echo
1522     fi
1523     test "$ac_signal" != 0 &&
1524       echo "$as_me: caught signal $ac_signal"
1525     echo "$as_me: exit $exit_status"
1526   } >&5
1527   rm -f core *.core &&
1528   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1529     exit $exit_status
1530      ' 0
1531 for ac_signal in 1 2 13 15; do
1532   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1533 done
1534 ac_signal=0
1535
1536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1537 rm -rf conftest* confdefs.h
1538 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1539 echo >confdefs.h
1540
1541 # Predefined preprocessor variables.
1542
1543 cat >>confdefs.h <<_ACEOF
1544 #define PACKAGE_NAME "$PACKAGE_NAME"
1545 _ACEOF
1546
1547
1548 cat >>confdefs.h <<_ACEOF
1549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1550 _ACEOF
1551
1552
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1555 _ACEOF
1556
1557
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_STRING "$PACKAGE_STRING"
1560 _ACEOF
1561
1562
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1565 _ACEOF
1566
1567
1568 # Let the site file select an alternate cache file if it wants to.
1569 # Prefer explicitly selected file to automatically selected ones.
1570 if test -z "$CONFIG_SITE"; then
1571   if test "x$prefix" != xNONE; then
1572     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1573   else
1574     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1575   fi
1576 fi
1577 for ac_site_file in $CONFIG_SITE; do
1578   if test -r "$ac_site_file"; then
1579     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1580 echo "$as_me: loading site script $ac_site_file" >&6;}
1581     sed 's/^/| /' "$ac_site_file" >&5
1582     . "$ac_site_file"
1583   fi
1584 done
1585
1586 if test -r "$cache_file"; then
1587   # Some versions of bash will fail to source /dev/null (special
1588   # files actually), so we avoid doing that.
1589   if test -f "$cache_file"; then
1590     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1591 echo "$as_me: loading cache $cache_file" >&6;}
1592     case $cache_file in
1593       [\\/]* | ?:[\\/]* ) . $cache_file;;
1594       *)                      . ./$cache_file;;
1595     esac
1596   fi
1597 else
1598   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1599 echo "$as_me: creating cache $cache_file" >&6;}
1600   >$cache_file
1601 fi
1602
1603 # Check that the precious variables saved in the cache have kept the same
1604 # value.
1605 ac_cache_corrupted=false
1606 for ac_var in `(set) 2>&1 |
1607                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1608   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1609   eval ac_new_set=\$ac_env_${ac_var}_set
1610   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1611   eval ac_new_val="\$ac_env_${ac_var}_value"
1612   case $ac_old_set,$ac_new_set in
1613     set,)
1614       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1615 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1616       ac_cache_corrupted=: ;;
1617     ,set)
1618       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1619 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1620       ac_cache_corrupted=: ;;
1621     ,);;
1622     *)
1623       if test "x$ac_old_val" != "x$ac_new_val"; then
1624         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1625 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1626         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1627 echo "$as_me:   former value:  $ac_old_val" >&2;}
1628         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1629 echo "$as_me:   current value: $ac_new_val" >&2;}
1630         ac_cache_corrupted=:
1631       fi;;
1632   esac
1633   # Pass precious variables to config.status.
1634   if test "$ac_new_set" = set; then
1635     case $ac_new_val in
1636     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1637       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1638     *) ac_arg=$ac_var=$ac_new_val ;;
1639     esac
1640     case " $ac_configure_args " in
1641       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1642       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1643     esac
1644   fi
1645 done
1646 if $ac_cache_corrupted; then
1647   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1648 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1649   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1650 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1651    { (exit 1); exit 1; }; }
1652 fi
1653
1654 ac_ext=c
1655 ac_cpp='$CPP $CPPFLAGS'
1656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1659
1660
1661
1662
1663
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 ac_aux_dir=
1690 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1691   if test -f $ac_dir/install-sh; then
1692     ac_aux_dir=$ac_dir
1693     ac_install_sh="$ac_aux_dir/install-sh -c"
1694     break
1695   elif test -f $ac_dir/install.sh; then
1696     ac_aux_dir=$ac_dir
1697     ac_install_sh="$ac_aux_dir/install.sh -c"
1698     break
1699   elif test -f $ac_dir/shtool; then
1700     ac_aux_dir=$ac_dir
1701     ac_install_sh="$ac_aux_dir/shtool install -c"
1702     break
1703   fi
1704 done
1705 if test -z "$ac_aux_dir"; then
1706   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1707 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1708    { (exit 1); exit 1; }; }
1709 fi
1710 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1711 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1712 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1713
1714 # Make sure we can run config.sub.
1715 $ac_config_sub sun4 >/dev/null 2>&1 ||
1716   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1717 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1718    { (exit 1); exit 1; }; }
1719
1720 echo "$as_me:$LINENO: checking build system type" >&5
1721 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1722 if test "${ac_cv_build+set}" = set; then
1723   echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725   ac_cv_build_alias=$build_alias
1726 test -z "$ac_cv_build_alias" &&
1727   ac_cv_build_alias=`$ac_config_guess`
1728 test -z "$ac_cv_build_alias" &&
1729   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1730 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1731    { (exit 1); exit 1; }; }
1732 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1733   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1734 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1735    { (exit 1); exit 1; }; }
1736
1737 fi
1738 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1739 echo "${ECHO_T}$ac_cv_build" >&6
1740 build=$ac_cv_build
1741 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1744
1745
1746 echo "$as_me:$LINENO: checking host system type" >&5
1747 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1748 if test "${ac_cv_host+set}" = set; then
1749   echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751   ac_cv_host_alias=$host_alias
1752 test -z "$ac_cv_host_alias" &&
1753   ac_cv_host_alias=$ac_cv_build_alias
1754 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1755   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1756 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1757    { (exit 1); exit 1; }; }
1758
1759 fi
1760 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1761 echo "${ECHO_T}$ac_cv_host" >&6
1762 host=$ac_cv_host
1763 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1764 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1765 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1766
1767
1768 echo "$as_me:$LINENO: checking target system type" >&5
1769 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1770 if test "${ac_cv_target+set}" = set; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   ac_cv_target_alias=$target_alias
1774 test "x$ac_cv_target_alias" = "x" &&
1775   ac_cv_target_alias=$ac_cv_host_alias
1776 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1777   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1778 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1779    { (exit 1); exit 1; }; }
1780
1781 fi
1782 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1783 echo "${ECHO_T}$ac_cv_target" >&6
1784 target=$ac_cv_target
1785 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1786 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1787 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1788
1789
1790 # The aliases save the names the user supplied, while $host etc.
1791 # will get canonicalized.
1792 test -n "$target_alias" &&
1793   test "$program_prefix$program_suffix$program_transform_name" = \
1794     NONENONEs,x,x, &&
1795   program_prefix=${target_alias}-
1796
1797
1798
1799 wx_major_version_number=2
1800 wx_minor_version_number=7
1801 wx_release_number=1
1802 wx_subrelease_number=1
1803
1804 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1805 WX_VERSION=$WX_RELEASE.$wx_release_number
1806 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1807
1808 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1809
1810
1811
1812
1813 USE_UNIX=1
1814 USE_OS2=0
1815 USE_WIN32=0
1816 USE_DOS=0
1817 USE_BEOS=0
1818 USE_MAC=0
1819
1820 USE_AIX=
1821 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1822 USE_GNU=                            USE_HPUX=
1823 USE_LINUX=
1824 USE_NETBSD=
1825 USE_OPENBSD=
1826 USE_OSF=                            USE_SGI=
1827 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1828 USE_ULTRIX=
1829 USE_UNIXWARE=
1830
1831 USE_ALPHA=
1832
1833 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1834
1835 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
1836
1837 DEFAULT_wxUSE_COCOA=0
1838 DEFAULT_wxUSE_GTK=0
1839 DEFAULT_wxUSE_MAC=0
1840 DEFAULT_wxUSE_MGL=0
1841 DEFAULT_wxUSE_MICROWIN=0
1842 DEFAULT_wxUSE_MOTIF=0
1843 DEFAULT_wxUSE_MSW=0
1844 DEFAULT_wxUSE_PM=0
1845 DEFAULT_wxUSE_X11=0
1846 DEFAULT_wxUSE_DFB=0
1847
1848 DEFAULT_DEFAULT_wxUSE_COCOA=0
1849 DEFAULT_DEFAULT_wxUSE_GTK=0
1850 DEFAULT_DEFAULT_wxUSE_MAC=0
1851 DEFAULT_DEFAULT_wxUSE_MGL=0
1852 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1853 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1854 DEFAULT_DEFAULT_wxUSE_MSW=0
1855 DEFAULT_DEFAULT_wxUSE_PM=0
1856 DEFAULT_DEFAULT_wxUSE_X11=0
1857 DEFAULT_DEFAULT_wxUSE_DFB=0
1858
1859 PROGRAM_EXT=
1860 SO_SUFFIX=so
1861 SAMPLES_RPATH_FLAG=
1862 SAMPLES_RPATH_POSTLINK=
1863
1864 DEFAULT_STD_FLAG=yes
1865
1866 case "${host}" in
1867   *-hp-hpux* )
1868     USE_HPUX=1
1869     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1870     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1871     SO_SUFFIX=sl
1872     cat >>confdefs.h <<\_ACEOF
1873 #define __HPUX__ 1
1874 _ACEOF
1875
1876
1877             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1878   ;;
1879   *-*-linux* )
1880     USE_LINUX=1
1881     cat >>confdefs.h <<\_ACEOF
1882 #define __LINUX__ 1
1883 _ACEOF
1884
1885     TMP=`uname -m`
1886     if test "x$TMP" = "xalpha"; then
1887       USE_ALPHA=1
1888       cat >>confdefs.h <<\_ACEOF
1889 #define __ALPHA__ 1
1890 _ACEOF
1891
1892     fi
1893     DEFAULT_DEFAULT_wxUSE_GTK=1
1894   ;;
1895   *-*-gnu* | *-*-k*bsd*-gnu )
1896     USE_GNU=1
1897     TMP=`uname -m`
1898     if test "x$TMP" = "xalpha"; then
1899       USE_ALPHA=1
1900       cat >>confdefs.h <<\_ACEOF
1901 #define __ALPHA__ 1
1902 _ACEOF
1903
1904     fi
1905     DEFAULT_DEFAULT_wxUSE_GTK=1
1906   ;;
1907   *-*-irix5* | *-*-irix6* )
1908     USE_SGI=1
1909     USE_SVR4=1
1910     cat >>confdefs.h <<\_ACEOF
1911 #define __SGI__ 1
1912 _ACEOF
1913
1914     cat >>confdefs.h <<\_ACEOF
1915 #define __SVR4__ 1
1916 _ACEOF
1917
1918     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1919   ;;
1920   *-*-solaris2* )
1921     USE_SUN=1
1922     USE_SOLARIS=1
1923     USE_SVR4=1
1924     cat >>confdefs.h <<\_ACEOF
1925 #define __SUN__ 1
1926 _ACEOF
1927
1928     cat >>confdefs.h <<\_ACEOF
1929 #define __SOLARIS__ 1
1930 _ACEOF
1931
1932     cat >>confdefs.h <<\_ACEOF
1933 #define __SVR4__ 1
1934 _ACEOF
1935
1936     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1937     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1938   ;;
1939   *-*-sunos4* )
1940     USE_SUN=1
1941     USE_SUNOS=1
1942     USE_BSD=1
1943     cat >>confdefs.h <<\_ACEOF
1944 #define __SUN__ 1
1945 _ACEOF
1946
1947     cat >>confdefs.h <<\_ACEOF
1948 #define __SUNOS__ 1
1949 _ACEOF
1950
1951     cat >>confdefs.h <<\_ACEOF
1952 #define __BSD__ 1
1953 _ACEOF
1954
1955     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1956   ;;
1957   *-*-freebsd*)
1958     USE_BSD=1
1959     USE_FREEBSD=1
1960     cat >>confdefs.h <<\_ACEOF
1961 #define __FREEBSD__ 1
1962 _ACEOF
1963
1964     cat >>confdefs.h <<\_ACEOF
1965 #define __BSD__ 1
1966 _ACEOF
1967
1968     DEFAULT_DEFAULT_wxUSE_GTK=1
1969   ;;
1970   *-*-openbsd*|*-*-mirbsd*)
1971     USE_BSD=1
1972     USE_OPENBSD=1
1973     cat >>confdefs.h <<\_ACEOF
1974 #define __OPENBSD__ 1
1975 _ACEOF
1976
1977     cat >>confdefs.h <<\_ACEOF
1978 #define __BSD__ 1
1979 _ACEOF
1980
1981     DEFAULT_DEFAULT_wxUSE_GTK=1
1982   ;;
1983   *-*-netbsd*)
1984     USE_BSD=1
1985     USE_NETBSD=1
1986     cat >>confdefs.h <<\_ACEOF
1987 #define __NETBSD__ 1
1988 _ACEOF
1989
1990     cat >>confdefs.h <<\_ACEOF
1991 #define __BSD__ 1
1992 _ACEOF
1993
1994     DEFAULT_DEFAULT_wxUSE_GTK=1
1995     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1996
1997             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
1998   ;;
1999   *-*-osf* )
2000     USE_ALPHA=1
2001     USE_OSF=1
2002     cat >>confdefs.h <<\_ACEOF
2003 #define __ALPHA__ 1
2004 _ACEOF
2005
2006     cat >>confdefs.h <<\_ACEOF
2007 #define __OSF__ 1
2008 _ACEOF
2009
2010     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2011     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2012   ;;
2013   *-*-dgux5* )
2014     USE_ALPHA=1
2015     USE_SVR4=1
2016     cat >>confdefs.h <<\_ACEOF
2017 #define __ALPHA__ 1
2018 _ACEOF
2019
2020     cat >>confdefs.h <<\_ACEOF
2021 #define __SVR4__ 1
2022 _ACEOF
2023
2024     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2025   ;;
2026   *-*-sysv5* )
2027     USE_SYSV=1
2028     USE_SVR4=1
2029     cat >>confdefs.h <<\_ACEOF
2030 #define __SYSV__ 1
2031 _ACEOF
2032
2033     cat >>confdefs.h <<\_ACEOF
2034 #define __SVR4__ 1
2035 _ACEOF
2036
2037     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2038   ;;
2039   *-*-aix* )
2040     USE_AIX=1
2041     USE_SYSV=1
2042     USE_SVR4=1
2043                         SO_SUFFIX=a
2044     cat >>confdefs.h <<\_ACEOF
2045 #define __AIX__ 1
2046 _ACEOF
2047
2048     cat >>confdefs.h <<\_ACEOF
2049 #define __SYSV__ 1
2050 _ACEOF
2051
2052     cat >>confdefs.h <<\_ACEOF
2053 #define __SVR4__ 1
2054 _ACEOF
2055
2056     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2057   ;;
2058
2059   *-*-*UnixWare*)
2060     USE_SYSV=1
2061     USE_SVR4=1
2062     USE_UNIXWARE=1
2063     cat >>confdefs.h <<\_ACEOF
2064 #define __UNIXWARE__ 1
2065 _ACEOF
2066
2067   ;;
2068
2069   *-*-cygwin* | *-*-mingw32* )
2070                 SO_SUFFIX=dll
2071     PROGRAM_EXT=".exe"
2072     DEFAULT_DEFAULT_wxUSE_MSW=1
2073     DEFAULT_STD_FLAG=no
2074   ;;
2075
2076   *-pc-msdosdjgpp )
2077     USE_UNIX=0
2078     USE_DOS=1
2079     cat >>confdefs.h <<\_ACEOF
2080 #define __DOS__ 1
2081 _ACEOF
2082
2083     PROGRAM_EXT=".exe"
2084     DEFAULT_DEFAULT_wxUSE_MGL=1
2085   ;;
2086
2087   *-pc-os2_emx | *-pc-os2-emx )
2088     cat >>confdefs.h <<\_ACEOF
2089 #define __EMX__ 1
2090 _ACEOF
2091
2092     USE_OS2=1
2093     cat >>confdefs.h <<\_ACEOF
2094 #define __OS2__ 1
2095 _ACEOF
2096
2097     PROGRAM_EXT=".exe"
2098     DEFAULT_DEFAULT_wxUSE_PM=1
2099         CXX=gcc
2100     LDFLAGS="$LDFLAGS -Zcrtdll"
2101                         ac_executable_extensions=".exe"
2102     export ac_executable_extensions
2103             ac_save_IFS="$IFS"
2104     IFS='\\'
2105     ac_TEMP_PATH=
2106     for ac_dir in $PATH; do
2107       IFS=$ac_save_IFS
2108       if test -z "$ac_TEMP_PATH"; then
2109         ac_TEMP_PATH="$ac_dir"
2110       else
2111         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2112       fi
2113     done
2114     export PATH="$ac_TEMP_PATH"
2115     unset ac_TEMP_PATH
2116     DEFAULT_STD_FLAG=no
2117   ;;
2118
2119   *-*-darwin* )
2120         USE_BSD=1
2121     USE_DARWIN=1
2122     SO_SUFFIX=dylib
2123     cat >>confdefs.h <<\_ACEOF
2124 #define __BSD__ 1
2125 _ACEOF
2126
2127     cat >>confdefs.h <<\_ACEOF
2128 #define __DARWIN__ 1
2129 _ACEOF
2130
2131     cat >>confdefs.h <<\_ACEOF
2132 #define TARGET_CARBON 1
2133 _ACEOF
2134
2135     DEFAULT_DEFAULT_wxUSE_MAC=1
2136     DEFAULT_STD_FLAG=no
2137   ;;
2138   powerpc-apple-macos* )
2139         USE_UNIX=0
2140             ac_cv_c_bigendian=yes
2141     SO_SUFFIX=shlib
2142             DEFAULT_DEFAULT_wxUSE_MAC=1
2143     DEFAULT_STD_FLAG=no
2144   ;;
2145
2146   *-*-beos* )
2147         USE_BEOS=1
2148     cat >>confdefs.h <<\_ACEOF
2149 #define __BEOS__ 1
2150 _ACEOF
2151
2152   ;;
2153
2154   *)
2155     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2156 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2157     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2158 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2159
2160     DEFAULT_DEFAULT_wxUSE_X11=1
2161     DEFAULT_wxUSE_SHARED=no
2162 esac
2163
2164
2165
2166
2167           wx_arg_cache_file="configarg.cache"
2168           echo "loading argument cache $wx_arg_cache_file"
2169           rm -f ${wx_arg_cache_file}.tmp
2170           touch ${wx_arg_cache_file}.tmp
2171           touch ${wx_arg_cache_file}
2172
2173
2174 DEBUG_CONFIGURE=0
2175 if test $DEBUG_CONFIGURE = 1; then
2176   DEFAULT_wxUSE_UNIVERSAL=no
2177   DEFAULT_wxUSE_STL=no
2178
2179   DEFAULT_wxUSE_NANOX=no
2180
2181   DEFAULT_wxUSE_THREADS=yes
2182
2183   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2184   DEFAULT_wxUSE_OPTIMISE=no
2185   DEFAULT_wxUSE_PROFILE=no
2186   DEFAULT_wxUSE_NO_DEPS=no
2187   DEFAULT_wxUSE_NO_RTTI=no
2188   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2189   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2190   DEFAULT_wxUSE_RPATH=yes
2191   DEFAULT_wxUSE_PERMISSIVE=no
2192   DEFAULT_wxUSE_DEBUG_FLAG=yes
2193   DEFAULT_wxUSE_DEBUG_INFO=yes
2194   DEFAULT_wxUSE_DEBUG_GDB=yes
2195   DEFAULT_wxUSE_MEM_TRACING=no
2196   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2197   DEFAULT_wxUSE_DMALLOC=no
2198   DEFAULT_wxUSE_APPLE_IEEE=no
2199
2200   DEFAULT_wxUSE_EXCEPTIONS=no
2201   DEFAULT_wxUSE_LOG=yes
2202   DEFAULT_wxUSE_LOGWINDOW=no
2203   DEFAULT_wxUSE_LOGGUI=no
2204   DEFAULT_wxUSE_LOGDIALOG=no
2205
2206   DEFAULT_wxUSE_GUI=yes
2207   DEFAULT_wxUSE_CONTROLS=no
2208
2209   DEFAULT_wxUSE_REGEX=no
2210   DEFAULT_wxUSE_XML=no
2211   DEFAULT_wxUSE_EXPAT=no
2212   DEFAULT_wxUSE_ZLIB=no
2213   DEFAULT_wxUSE_LIBPNG=no
2214   DEFAULT_wxUSE_LIBJPEG=no
2215   DEFAULT_wxUSE_LIBTIFF=no
2216   DEFAULT_wxUSE_LIBXPM=no
2217   DEFAULT_wxUSE_LIBMSPACK=no
2218   DEFAULT_wxUSE_LIBSDL=no
2219   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2220   DEFAULT_wxUSE_LIBGNOMEVFS=no
2221   DEFAULT_wxUSE_LIBHILDON=no
2222   DEFAULT_wxUSE_ODBC=no
2223   DEFAULT_wxUSE_OPENGL=no
2224
2225   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2226   DEFAULT_wxUSE_STACKWALKER=no
2227   DEFAULT_wxUSE_DEBUGREPORT=no
2228   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2229   DEFAULT_wxUSE_STD_IOSTREAM=no
2230   DEFAULT_wxUSE_STD_STRING=no
2231   DEFAULT_wxUSE_CMDLINE_PARSER=no
2232   DEFAULT_wxUSE_DATETIME=no
2233   DEFAULT_wxUSE_TIMER=no
2234   DEFAULT_wxUSE_STOPWATCH=no
2235   DEFAULT_wxUSE_FILE=no
2236   DEFAULT_wxUSE_FFILE=no
2237   DEFAULT_wxUSE_STDPATHS=no
2238   DEFAULT_wxUSE_TEXTBUFFER=no
2239   DEFAULT_wxUSE_TEXTFILE=no
2240   DEFAULT_wxUSE_SOUND=no
2241   DEFAULT_wxUSE_MEDIACTRL=no
2242   DEFAULT_wxUSE_GSTREAMER8=no
2243   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2244   DEFAULT_wxUSE_INTL=no
2245   DEFAULT_wxUSE_CONFIG=no
2246   DEFAULT_wxUSE_FONTMAP=no
2247   DEFAULT_wxUSE_STREAMS=no
2248   DEFAULT_wxUSE_SOCKETS=no
2249   DEFAULT_wxUSE_OLE=no
2250   DEFAULT_wxUSE_DATAOBJ=no
2251   DEFAULT_wxUSE_DIALUP_MANAGER=no
2252   DEFAULT_wxUSE_JOYSTICK=no
2253   DEFAULT_wxUSE_DYNLIB_CLASS=no
2254   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2255   DEFAULT_wxUSE_LONGLONG=no
2256   DEFAULT_wxUSE_GEOMETRY=no
2257
2258   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2259   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2260   DEFAULT_wxUSE_POSTSCRIPT=no
2261
2262   DEFAULT_wxUSE_CLIPBOARD=no
2263   DEFAULT_wxUSE_TOOLTIPS=no
2264   DEFAULT_wxUSE_DRAG_AND_DROP=no
2265   DEFAULT_wxUSE_DRAGIMAGE=no
2266   DEFAULT_wxUSE_SPLINES=no
2267   DEFAULT_wxUSE_MOUSEWHEEL=no
2268
2269   DEFAULT_wxUSE_MDI=no
2270   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2271   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2272   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2273
2274   DEFAULT_wxUSE_RESOURCES=no
2275   DEFAULT_wxUSE_CONSTRAINTS=no
2276   DEFAULT_wxUSE_IPC=no
2277   DEFAULT_wxUSE_HELP=no
2278   DEFAULT_wxUSE_MS_HTML_HELP=no
2279   DEFAULT_wxUSE_WXHTML_HELP=no
2280   DEFAULT_wxUSE_TREELAYOUT=no
2281   DEFAULT_wxUSE_METAFILE=no
2282   DEFAULT_wxUSE_MIMETYPE=no
2283   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2284   DEFAULT_wxUSE_PROTOCOL=no
2285   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2286   DEFAULT_wxUSE_PROTOCOL_FTP=no
2287   DEFAULT_wxUSE_PROTOCOL_FILE=no
2288   DEFAULT_wxUSE_URL=no
2289   DEFAULT_wxUSE_VARIANT=no
2290
2291   DEFAULT_wxUSE_ABOUTDLG=no
2292   DEFAULT_wxUSE_COMMONDLGS=no
2293   DEFAULT_wxUSE_CHOICEDLG=no
2294   DEFAULT_wxUSE_COLOURDLG=no
2295   DEFAULT_wxUSE_DIRDLG=no
2296   DEFAULT_wxUSE_FILEDLG=no
2297   DEFAULT_wxUSE_FINDREPLDLG=no
2298   DEFAULT_wxUSE_FONTDLG=no
2299   DEFAULT_wxUSE_MSGDLG=no
2300   DEFAULT_wxUSE_NUMBERDLG=no
2301   DEFAULT_wxUSE_TEXTDLG=no
2302   DEFAULT_wxUSE_SPLASH=no
2303   DEFAULT_wxUSE_STARTUP_TIPS=no
2304   DEFAULT_wxUSE_PROGRESSDLG=no
2305   DEFAULT_wxUSE_WIZARDDLG=no
2306
2307   DEFAULT_wxUSE_MENUS=no
2308   DEFAULT_wxUSE_MINIFRAME=no
2309   DEFAULT_wxUSE_HTML=no
2310   DEFAULT_wxUSE_RICHTEXT=no
2311   DEFAULT_wxUSE_XRC=no
2312   DEFAULT_wxUSE_AUI=no
2313   DEFAULT_wxUSE_WEBKIT=no
2314   DEFAULT_wxUSE_FILESYSTEM=no
2315   DEFAULT_wxUSE_FS_INET=no
2316   DEFAULT_wxUSE_FS_ZIP=no
2317   DEFAULT_wxUSE_BUSYINFO=no
2318   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2319   DEFAULT_wxUSE_ZIPSTREAM=no
2320   DEFAULT_wxUSE_VALIDATORS=no
2321
2322   DEFAULT_wxUSE_ACCEL=no
2323   DEFAULT_wxUSE_ANIMATIONCTRL=no
2324   DEFAULT_wxUSE_BUTTON=no
2325   DEFAULT_wxUSE_BMPBUTTON=no
2326   DEFAULT_wxUSE_BITMAPCOMBOBOX=no
2327   DEFAULT_wxUSE_CALCTRL=no
2328   DEFAULT_wxUSE_CARET=no
2329   DEFAULT_wxUSE_CHECKBOX=no
2330   DEFAULT_wxUSE_CHECKLST=no
2331   DEFAULT_wxUSE_CHOICE=no
2332   DEFAULT_wxUSE_CHOICEBOOK=no
2333   DEFAULT_wxUSE_COLOURPICKERCTRL=no
2334   DEFAULT_wxUSE_COMBOBOX=no
2335   DEFAULT_wxUSE_COMBOCTRL=no
2336   DEFAULT_wxUSE_DATEPICKCTRL=no
2337   DEFAULT_wxUSE_DISPLAY=no
2338   DEFAULT_wxUSE_DETECT_SM=no
2339   DEFAULT_wxUSE_DIRPICKERCTRL=no
2340   DEFAULT_wxUSE_FILEPICKERCTRL=no
2341   DEFAULT_wxUSE_FONTPICKERCTRL=no
2342   DEFAULT_wxUSE_GAUGE=no
2343   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2344   DEFAULT_wxUSE_GRID=no
2345   DEFAULT_wxUSE_HYPERLINKCTRL=no
2346   DEFAULT_wxUSE_DATAVIEWCTRL=no
2347   DEFAULT_wxUSE_IMAGLIST=no
2348   DEFAULT_wxUSE_LISTBOOK=no
2349   DEFAULT_wxUSE_LISTBOX=no
2350   DEFAULT_wxUSE_LISTCTRL=no
2351   DEFAULT_wxUSE_NOTEBOOK=no
2352   DEFAULT_wxUSE_ODCOMBOBOX=no
2353   DEFAULT_wxUSE_RADIOBOX=no
2354   DEFAULT_wxUSE_RADIOBTN=no
2355   DEFAULT_wxUSE_SASH=no
2356   DEFAULT_wxUSE_SCROLLBAR=no
2357   DEFAULT_wxUSE_SLIDER=no
2358   DEFAULT_wxUSE_SPINBTN=no
2359   DEFAULT_wxUSE_SPINCTRL=no
2360   DEFAULT_wxUSE_SPLITTER=no
2361   DEFAULT_wxUSE_STATBMP=no
2362   DEFAULT_wxUSE_STATBOX=no
2363   DEFAULT_wxUSE_STATLINE=no
2364   DEFAULT_wxUSE_STATTEXT=no
2365   DEFAULT_wxUSE_STATUSBAR=yes
2366   DEFAULT_wxUSE_TAB_DIALOG=no
2367   DEFAULT_wxUSE_TEXTCTRL=no
2368   DEFAULT_wxUSE_TOGGLEBTN=no
2369   DEFAULT_wxUSE_TOOLBAR=no
2370   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2371   DEFAULT_wxUSE_TREEBOOK=no
2372   DEFAULT_wxUSE_TOOLBOOK=no
2373   DEFAULT_wxUSE_TREECTRL=no
2374   DEFAULT_wxUSE_POPUPWIN=no
2375   DEFAULT_wxUSE_TIPWINDOW=no
2376
2377   DEFAULT_wxUSE_UNICODE=no
2378   DEFAULT_wxUSE_UNICODE_MSLU=no
2379   DEFAULT_wxUSE_WCSRTOMBS=no
2380
2381   DEFAULT_wxUSE_PALETTE=no
2382   DEFAULT_wxUSE_IMAGE=no
2383   DEFAULT_wxUSE_GIF=no
2384   DEFAULT_wxUSE_PCX=no
2385   DEFAULT_wxUSE_PNM=no
2386   DEFAULT_wxUSE_IFF=no
2387   DEFAULT_wxUSE_XPM=no
2388   DEFAULT_wxUSE_ICO_CUR=no
2389   DEFAULT_wxUSE_ACCESSIBILITY=no
2390
2391   DEFAULT_wxUSE_MONOLITHIC=no
2392   DEFAULT_wxUSE_PLUGINS=no
2393   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2394 else
2395   DEFAULT_wxUSE_UNIVERSAL=no
2396   DEFAULT_wxUSE_STL=no
2397
2398   DEFAULT_wxUSE_NANOX=no
2399
2400   DEFAULT_wxUSE_THREADS=yes
2401
2402   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2403   DEFAULT_wxUSE_OPTIMISE=yes
2404   DEFAULT_wxUSE_PROFILE=no
2405   DEFAULT_wxUSE_NO_DEPS=no
2406   DEFAULT_wxUSE_NO_RTTI=no
2407   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2408   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2409   DEFAULT_wxUSE_RPATH=yes
2410   DEFAULT_wxUSE_PERMISSIVE=no
2411   DEFAULT_wxUSE_DEBUG_FLAG=no
2412   DEFAULT_wxUSE_DEBUG_INFO=no
2413   DEFAULT_wxUSE_DEBUG_GDB=no
2414   DEFAULT_wxUSE_MEM_TRACING=no
2415   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2416   DEFAULT_wxUSE_DMALLOC=no
2417   DEFAULT_wxUSE_APPLE_IEEE=yes
2418
2419   DEFAULT_wxUSE_EXCEPTIONS=yes
2420   DEFAULT_wxUSE_LOG=yes
2421   DEFAULT_wxUSE_LOGWINDOW=yes
2422   DEFAULT_wxUSE_LOGGUI=yes
2423   DEFAULT_wxUSE_LOGDIALOG=yes
2424
2425   DEFAULT_wxUSE_GUI=yes
2426
2427   DEFAULT_wxUSE_REGEX=yes
2428   DEFAULT_wxUSE_XML=yes
2429   DEFAULT_wxUSE_EXPAT=yes
2430   DEFAULT_wxUSE_ZLIB=yes
2431   DEFAULT_wxUSE_LIBPNG=yes
2432   DEFAULT_wxUSE_LIBJPEG=yes
2433   DEFAULT_wxUSE_LIBTIFF=yes
2434   DEFAULT_wxUSE_LIBXPM=yes
2435   DEFAULT_wxUSE_LIBMSPACK=yes
2436   DEFAULT_wxUSE_LIBSDL=no
2437   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2438   DEFAULT_wxUSE_LIBGNOMEVFS=no
2439   DEFAULT_wxUSE_LIBHILDON=no
2440   DEFAULT_wxUSE_ODBC=no
2441   DEFAULT_wxUSE_OPENGL=no
2442
2443   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2444   DEFAULT_wxUSE_STACKWALKER=yes
2445   DEFAULT_wxUSE_DEBUGREPORT=yes
2446   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2447   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2448   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2449   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2450   DEFAULT_wxUSE_DATETIME=yes
2451   DEFAULT_wxUSE_TIMER=yes
2452   DEFAULT_wxUSE_STOPWATCH=yes
2453   DEFAULT_wxUSE_FILE=yes
2454   DEFAULT_wxUSE_FFILE=yes
2455   DEFAULT_wxUSE_STDPATHS=yes
2456   DEFAULT_wxUSE_TEXTBUFFER=yes
2457   DEFAULT_wxUSE_TEXTFILE=yes
2458   DEFAULT_wxUSE_SOUND=yes
2459   DEFAULT_wxUSE_MEDIACTRL=no
2460   DEFAULT_wxUSE_GSTREAMER8=no
2461   DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
2462   DEFAULT_wxUSE_INTL=yes
2463   DEFAULT_wxUSE_CONFIG=yes
2464   DEFAULT_wxUSE_FONTMAP=yes
2465   DEFAULT_wxUSE_STREAMS=yes
2466   DEFAULT_wxUSE_SOCKETS=yes
2467   DEFAULT_wxUSE_OLE=yes
2468   DEFAULT_wxUSE_DATAOBJ=yes
2469   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2470   DEFAULT_wxUSE_JOYSTICK=yes
2471   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2472   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2473   DEFAULT_wxUSE_LONGLONG=yes
2474   DEFAULT_wxUSE_GEOMETRY=yes
2475
2476   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2477   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2478   DEFAULT_wxUSE_POSTSCRIPT=yes
2479
2480   DEFAULT_wxUSE_CLIPBOARD=yes
2481   DEFAULT_wxUSE_TOOLTIPS=yes
2482   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2483   DEFAULT_wxUSE_DRAGIMAGE=yes
2484   DEFAULT_wxUSE_SPLINES=yes
2485   DEFAULT_wxUSE_MOUSEWHEEL=yes
2486
2487   DEFAULT_wxUSE_MDI=yes
2488   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2489   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2490   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2491
2492   DEFAULT_wxUSE_RESOURCES=no
2493   DEFAULT_wxUSE_CONSTRAINTS=yes
2494   DEFAULT_wxUSE_IPC=yes
2495   DEFAULT_wxUSE_HELP=yes
2496   DEFAULT_wxUSE_MS_HTML_HELP=yes
2497   DEFAULT_wxUSE_WXHTML_HELP=yes
2498   DEFAULT_wxUSE_TREELAYOUT=yes
2499   DEFAULT_wxUSE_METAFILE=yes
2500   DEFAULT_wxUSE_MIMETYPE=yes
2501   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2502   DEFAULT_wxUSE_PROTOCOL=yes
2503   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2504   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2505   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2506   DEFAULT_wxUSE_URL=yes
2507   DEFAULT_wxUSE_VARIANT=yes
2508
2509   DEFAULT_wxUSE_ABOUTDLG=yes
2510   DEFAULT_wxUSE_COMMONDLGS=yes
2511   DEFAULT_wxUSE_CHOICEDLG=yes
2512   DEFAULT_wxUSE_COLOURDLG=yes
2513   DEFAULT_wxUSE_DIRDLG=yes
2514   DEFAULT_wxUSE_FILEDLG=yes
2515   DEFAULT_wxUSE_FINDREPLDLG=yes
2516   DEFAULT_wxUSE_FONTDLG=yes
2517   DEFAULT_wxUSE_MSGDLG=yes
2518   DEFAULT_wxUSE_NUMBERDLG=yes
2519   DEFAULT_wxUSE_TEXTDLG=yes
2520   DEFAULT_wxUSE_SPLASH=yes
2521   DEFAULT_wxUSE_STARTUP_TIPS=yes
2522   DEFAULT_wxUSE_PROGRESSDLG=yes
2523   DEFAULT_wxUSE_WIZARDDLG=yes
2524
2525   DEFAULT_wxUSE_MENUS=yes
2526   DEFAULT_wxUSE_MINIFRAME=yes
2527   DEFAULT_wxUSE_HTML=yes
2528   DEFAULT_wxUSE_RICHTEXT=yes
2529   DEFAULT_wxUSE_XRC=yes
2530   DEFAULT_wxUSE_AUI=yes
2531   DEFAULT_wxUSE_WEBKIT=yes
2532   DEFAULT_wxUSE_FILESYSTEM=yes
2533   DEFAULT_wxUSE_FS_INET=yes
2534   DEFAULT_wxUSE_FS_ZIP=yes
2535   DEFAULT_wxUSE_BUSYINFO=yes
2536   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2537   DEFAULT_wxUSE_ZIPSTREAM=yes
2538   DEFAULT_wxUSE_VALIDATORS=yes
2539
2540   DEFAULT_wxUSE_ACCEL=yes
2541   DEFAULT_wxUSE_ANIMATIONCTRL=yes
2542   DEFAULT_wxUSE_BUTTON=yes
2543   DEFAULT_wxUSE_BMPBUTTON=yes
2544   DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
2545   DEFAULT_wxUSE_CALCTRL=yes
2546   DEFAULT_wxUSE_CARET=yes
2547   DEFAULT_wxUSE_CHECKBOX=yes
2548   DEFAULT_wxUSE_CHECKLST=yes
2549   DEFAULT_wxUSE_CHOICE=yes
2550   DEFAULT_wxUSE_CHOICEBOOK=yes
2551   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2552   DEFAULT_wxUSE_COMBOBOX=yes
2553   DEFAULT_wxUSE_COMBOCTRL=yes
2554   DEFAULT_wxUSE_DATEPICKCTRL=yes
2555   DEFAULT_wxUSE_DISPLAY=yes
2556   DEFAULT_wxUSE_DETECT_SM=yes
2557   DEFAULT_wxUSE_DIRPICKERCTRL=yes
2558   DEFAULT_wxUSE_FILEPICKERCTRL=yes
2559   DEFAULT_wxUSE_FONTPICKERCTRL=yes
2560   DEFAULT_wxUSE_GAUGE=yes
2561   DEFAULT_wxUSE_GRID=yes
2562   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2563   DEFAULT_wxUSE_HYPERLINKCTRL=yes
2564   DEFAULT_wxUSE_DATAVIEWCTRL=no
2565   DEFAULT_wxUSE_IMAGLIST=yes
2566   DEFAULT_wxUSE_LISTBOOK=yes
2567   DEFAULT_wxUSE_LISTBOX=yes
2568   DEFAULT_wxUSE_LISTCTRL=yes
2569   DEFAULT_wxUSE_NOTEBOOK=yes
2570   DEFAULT_wxUSE_ODCOMBOBOX=yes
2571   DEFAULT_wxUSE_RADIOBOX=yes
2572   DEFAULT_wxUSE_RADIOBTN=yes
2573   DEFAULT_wxUSE_SASH=yes
2574   DEFAULT_wxUSE_SCROLLBAR=yes
2575   DEFAULT_wxUSE_SLIDER=yes
2576   DEFAULT_wxUSE_SPINBTN=yes
2577   DEFAULT_wxUSE_SPINCTRL=yes
2578   DEFAULT_wxUSE_SPLITTER=yes
2579   DEFAULT_wxUSE_STATBMP=yes
2580   DEFAULT_wxUSE_STATBOX=yes
2581   DEFAULT_wxUSE_STATLINE=yes
2582   DEFAULT_wxUSE_STATTEXT=yes
2583   DEFAULT_wxUSE_STATUSBAR=yes
2584   DEFAULT_wxUSE_TAB_DIALOG=no
2585   DEFAULT_wxUSE_TEXTCTRL=yes
2586   DEFAULT_wxUSE_TOGGLEBTN=yes
2587   DEFAULT_wxUSE_TOOLBAR=yes
2588   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2589   DEFAULT_wxUSE_TREEBOOK=yes
2590   DEFAULT_wxUSE_TOOLBOOK=yes
2591   DEFAULT_wxUSE_TREECTRL=yes
2592   DEFAULT_wxUSE_POPUPWIN=yes
2593   DEFAULT_wxUSE_TIPWINDOW=yes
2594
2595   DEFAULT_wxUSE_UNICODE=no
2596   DEFAULT_wxUSE_UNICODE_MSLU=yes
2597   DEFAULT_wxUSE_WCSRTOMBS=no
2598
2599   DEFAULT_wxUSE_PALETTE=yes
2600   DEFAULT_wxUSE_IMAGE=yes
2601   DEFAULT_wxUSE_GIF=yes
2602   DEFAULT_wxUSE_PCX=yes
2603   DEFAULT_wxUSE_IFF=no
2604   DEFAULT_wxUSE_PNM=yes
2605   DEFAULT_wxUSE_XPM=yes
2606   DEFAULT_wxUSE_ICO_CUR=yes
2607   DEFAULT_wxUSE_ACCESSIBILITY=no
2608
2609   DEFAULT_wxUSE_MONOLITHIC=no
2610   DEFAULT_wxUSE_PLUGINS=no
2611   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2612
2613     DEFAULT_wxUSE_GTK2=yes
2614 fi
2615
2616
2617
2618
2619 for toolkit in `echo $ALL_TOOLKITS`; do
2620   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2621   if test "x$LINE" != "x" ; then
2622     has_toolkit_in_cache=1
2623     eval "DEFAULT_$LINE"
2624     eval "CACHE_$toolkit=1"
2625
2626     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2627     if test "x$LINE" != "x" ; then
2628         eval "DEFAULT_$LINE"
2629     fi
2630   fi
2631 done
2632
2633
2634
2635           enablestring=
2636           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2637 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2638           no_cache=0
2639           # Check whether --enable-gui or --disable-gui was given.
2640 if test "${enable_gui+set}" = set; then
2641   enableval="$enable_gui"
2642
2643                           if test "$enableval" = yes; then
2644                             ac_cv_use_gui='wxUSE_GUI=yes'
2645                           else
2646                             ac_cv_use_gui='wxUSE_GUI=no'
2647                           fi
2648
2649 else
2650
2651                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2652                           if test "x$LINE" != x ; then
2653                             eval "DEFAULT_$LINE"
2654                           else
2655                             no_cache=1
2656                           fi
2657
2658                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2659
2660 fi;
2661
2662           eval "$ac_cv_use_gui"
2663           if test "$no_cache" != 1; then
2664             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2665           fi
2666
2667           if test "$wxUSE_GUI" = yes; then
2668             echo "$as_me:$LINENO: result: yes" >&5
2669 echo "${ECHO_T}yes" >&6
2670           else
2671             echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6
2673           fi
2674
2675
2676           enablestring=
2677           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2678 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2679           no_cache=0
2680           # Check whether --enable-monolithic or --disable-monolithic was given.
2681 if test "${enable_monolithic+set}" = set; then
2682   enableval="$enable_monolithic"
2683
2684                           if test "$enableval" = yes; then
2685                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2686                           else
2687                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2688                           fi
2689
2690 else
2691
2692                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2693                           if test "x$LINE" != x ; then
2694                             eval "DEFAULT_$LINE"
2695                           else
2696                             no_cache=1
2697                           fi
2698
2699                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2700
2701 fi;
2702
2703           eval "$ac_cv_use_monolithic"
2704           if test "$no_cache" != 1; then
2705             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2706           fi
2707
2708           if test "$wxUSE_MONOLITHIC" = yes; then
2709             echo "$as_me:$LINENO: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6
2711           else
2712             echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6
2714           fi
2715
2716
2717           enablestring=
2718           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2719 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2720           no_cache=0
2721           # Check whether --enable-plugins or --disable-plugins was given.
2722 if test "${enable_plugins+set}" = set; then
2723   enableval="$enable_plugins"
2724
2725                           if test "$enableval" = yes; then
2726                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2727                           else
2728                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2729                           fi
2730
2731 else
2732
2733                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2734                           if test "x$LINE" != x ; then
2735                             eval "DEFAULT_$LINE"
2736                           else
2737                             no_cache=1
2738                           fi
2739
2740                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2741
2742 fi;
2743
2744           eval "$ac_cv_use_plugins"
2745           if test "$no_cache" != 1; then
2746             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2747           fi
2748
2749           if test "$wxUSE_PLUGINS" = yes; then
2750             echo "$as_me:$LINENO: result: yes" >&5
2751 echo "${ECHO_T}yes" >&6
2752           else
2753             echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6
2755           fi
2756
2757
2758           withstring=without
2759           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2760 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2761           no_cache=0
2762
2763 # Check whether --with-subdirs or --without-subdirs was given.
2764 if test "${with_subdirs+set}" = set; then
2765   withval="$with_subdirs"
2766
2767                         if test "$withval" = yes; then
2768                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2769                         else
2770                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2771                         fi
2772
2773 else
2774
2775                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2776                         if test "x$LINE" != x ; then
2777                           eval "DEFAULT_$LINE"
2778                         else
2779                           no_cache=1
2780                         fi
2781
2782                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2783
2784 fi;
2785
2786           eval "$ac_cv_use_subdirs"
2787           if test "$no_cache" != 1; then
2788             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2789           fi
2790
2791           if test "$wxWITH_SUBDIRS" = yes; then
2792             echo "$as_me:$LINENO: result: yes" >&5
2793 echo "${ECHO_T}yes" >&6
2794           else
2795             echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6
2797           fi
2798
2799
2800 if test "$wxUSE_GUI" = "yes"; then
2801
2802
2803           enablestring=
2804           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2805 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2806           no_cache=0
2807           # Check whether --enable-universal or --disable-universal was given.
2808 if test "${enable_universal+set}" = set; then
2809   enableval="$enable_universal"
2810
2811                           if test "$enableval" = yes; then
2812                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2813                           else
2814                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2815                           fi
2816
2817 else
2818
2819                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2820                           if test "x$LINE" != x ; then
2821                             eval "DEFAULT_$LINE"
2822                           else
2823                             no_cache=1
2824                           fi
2825
2826                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2827
2828 fi;
2829
2830           eval "$ac_cv_use_universal"
2831           if test "$no_cache" != 1; then
2832             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2833           fi
2834
2835           if test "$wxUSE_UNIVERSAL" = yes; then
2836             echo "$as_me:$LINENO: result: yes" >&5
2837 echo "${ECHO_T}yes" >&6
2838           else
2839             echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2841           fi
2842
2843
2844 # Check whether --with-gtk or --without-gtk was given.
2845 if test "${with_gtk+set}" = set; then
2846   withval="$with_gtk"
2847   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2848 fi;
2849
2850 # Check whether --with-motif or --without-motif was given.
2851 if test "${with_motif+set}" = set; then
2852   withval="$with_motif"
2853   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2854 fi;
2855
2856 # Check whether --with-mac or --without-mac was given.
2857 if test "${with_mac+set}" = set; then
2858   withval="$with_mac"
2859   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2860 fi;
2861
2862 # Check whether --with-cocoa or --without-cocoa was given.
2863 if test "${with_cocoa+set}" = set; then
2864   withval="$with_cocoa"
2865   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2866 fi;
2867
2868 # Check whether --with-wine or --without-wine was given.
2869 if test "${with_wine+set}" = set; then
2870   withval="$with_wine"
2871   wxUSE_WINE="$withval" CACHE_WINE=1
2872 fi;
2873
2874 # Check whether --with-msw or --without-msw was given.
2875 if test "${with_msw+set}" = set; then
2876   withval="$with_msw"
2877   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2878 fi;
2879
2880 # Check whether --with-pm or --without-pm was given.
2881 if test "${with_pm+set}" = set; then
2882   withval="$with_pm"
2883   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2884 fi;
2885
2886 # Check whether --with-mgl or --without-mgl was given.
2887 if test "${with_mgl+set}" = set; then
2888   withval="$with_mgl"
2889   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2890 fi;
2891
2892 # Check whether --with-directfb or --without-directfb was given.
2893 if test "${with_directfb+set}" = set; then
2894   withval="$with_directfb"
2895   wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2896 fi;
2897
2898 # Check whether --with-microwin or --without-microwin was given.
2899 if test "${with_microwin+set}" = set; then
2900   withval="$with_microwin"
2901   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2902 fi;
2903
2904 # Check whether --with-x11 or --without-x11 was given.
2905 if test "${with_x11+set}" = set; then
2906   withval="$with_x11"
2907   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2908 fi;
2909
2910           enablestring=
2911           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2912 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2913           no_cache=0
2914           # Check whether --enable-nanox or --disable-nanox was given.
2915 if test "${enable_nanox+set}" = set; then
2916   enableval="$enable_nanox"
2917
2918                           if test "$enableval" = yes; then
2919                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2920                           else
2921                             ac_cv_use_nanox='wxUSE_NANOX=no'
2922                           fi
2923
2924 else
2925
2926                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2927                           if test "x$LINE" != x ; then
2928                             eval "DEFAULT_$LINE"
2929                           else
2930                             no_cache=1
2931                           fi
2932
2933                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2934
2935 fi;
2936
2937           eval "$ac_cv_use_nanox"
2938           if test "$no_cache" != 1; then
2939             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2940           fi
2941
2942           if test "$wxUSE_NANOX" = yes; then
2943             echo "$as_me:$LINENO: result: yes" >&5
2944 echo "${ECHO_T}yes" >&6
2945           else
2946             echo "$as_me:$LINENO: result: no" >&5
2947 echo "${ECHO_T}no" >&6
2948           fi
2949
2950
2951 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2952 if test "${enable_gtk2+set}" = set; then
2953   enableval="$enable_gtk2"
2954   wxUSE_GTK2="$enableval"
2955 fi;
2956
2957           enablestring=
2958           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2959 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2960           no_cache=0
2961           # Check whether --enable-gpe or --disable-gpe was given.
2962 if test "${enable_gpe+set}" = set; then
2963   enableval="$enable_gpe"
2964
2965                           if test "$enableval" = yes; then
2966                             ac_cv_use_gpe='wxUSE_GPE=yes'
2967                           else
2968                             ac_cv_use_gpe='wxUSE_GPE=no'
2969                           fi
2970
2971 else
2972
2973                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2974                           if test "x$LINE" != x ; then
2975                             eval "DEFAULT_$LINE"
2976                           else
2977                             no_cache=1
2978                           fi
2979
2980                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2981
2982 fi;
2983
2984           eval "$ac_cv_use_gpe"
2985           if test "$no_cache" != 1; then
2986             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2987           fi
2988
2989           if test "$wxUSE_GPE" = yes; then
2990             echo "$as_me:$LINENO: result: yes" >&5
2991 echo "${ECHO_T}yes" >&6
2992           else
2993             echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2995           fi
2996
2997
2998
2999           echo "$as_me:$LINENO: checking for --with-libpng" >&5
3000 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3001           no_cache=0
3002
3003 # Check whether --with-libpng or --without-libpng was given.
3004 if test "${with_libpng+set}" = set; then
3005   withval="$with_libpng"
3006
3007                         if test "$withval" = yes; then
3008                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3009                         elif test "$withval" = no; then
3010                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
3011                         elif test "$withval" = sys; then
3012                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3013                         elif test "$withval" = builtin; then
3014                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3015                         else
3016                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3017 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3018    { (exit 1); exit 1; }; }
3019                         fi
3020
3021 else
3022
3023                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3024                         if test "x$LINE" != x ; then
3025                           eval "DEFAULT_$LINE"
3026                         else
3027                           no_cache=1
3028                         fi
3029
3030                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3031
3032 fi;
3033
3034           eval "$ac_cv_use_libpng"
3035           if test "$no_cache" != 1; then
3036             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3037           fi
3038
3039           if test "$wxUSE_LIBPNG" = yes; then
3040             echo "$as_me:$LINENO: result: yes" >&5
3041 echo "${ECHO_T}yes" >&6
3042           elif test "$wxUSE_LIBPNG" = no; then
3043             echo "$as_me:$LINENO: result: no" >&5
3044 echo "${ECHO_T}no" >&6
3045           elif test "$wxUSE_LIBPNG" = sys; then
3046             echo "$as_me:$LINENO: result: system version" >&5
3047 echo "${ECHO_T}system version" >&6
3048           elif test "$wxUSE_LIBPNG" = builtin; then
3049             echo "$as_me:$LINENO: result: builtin version" >&5
3050 echo "${ECHO_T}builtin version" >&6
3051           else
3052             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3053 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3054    { (exit 1); exit 1; }; }
3055           fi
3056
3057
3058           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3059 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3060           no_cache=0
3061
3062 # Check whether --with-libjpeg or --without-libjpeg was given.
3063 if test "${with_libjpeg+set}" = set; then
3064   withval="$with_libjpeg"
3065
3066                         if test "$withval" = yes; then
3067                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3068                         elif test "$withval" = no; then
3069                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3070                         elif test "$withval" = sys; then
3071                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3072                         elif test "$withval" = builtin; then
3073                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3074                         else
3075                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3076 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3077    { (exit 1); exit 1; }; }
3078                         fi
3079
3080 else
3081
3082                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3083                         if test "x$LINE" != x ; then
3084                           eval "DEFAULT_$LINE"
3085                         else
3086                           no_cache=1
3087                         fi
3088
3089                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3090
3091 fi;
3092
3093           eval "$ac_cv_use_libjpeg"
3094           if test "$no_cache" != 1; then
3095             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3096           fi
3097
3098           if test "$wxUSE_LIBJPEG" = yes; then
3099             echo "$as_me:$LINENO: result: yes" >&5
3100 echo "${ECHO_T}yes" >&6
3101           elif test "$wxUSE_LIBJPEG" = no; then
3102             echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3104           elif test "$wxUSE_LIBJPEG" = sys; then
3105             echo "$as_me:$LINENO: result: system version" >&5
3106 echo "${ECHO_T}system version" >&6
3107           elif test "$wxUSE_LIBJPEG" = builtin; then
3108             echo "$as_me:$LINENO: result: builtin version" >&5
3109 echo "${ECHO_T}builtin version" >&6
3110           else
3111             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3112 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3113    { (exit 1); exit 1; }; }
3114           fi
3115
3116
3117           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3118 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3119           no_cache=0
3120
3121 # Check whether --with-libtiff or --without-libtiff was given.
3122 if test "${with_libtiff+set}" = set; then
3123   withval="$with_libtiff"
3124
3125                         if test "$withval" = yes; then
3126                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3127                         elif test "$withval" = no; then
3128                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3129                         elif test "$withval" = sys; then
3130                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3131                         elif test "$withval" = builtin; then
3132                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3133                         else
3134                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3135 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3136    { (exit 1); exit 1; }; }
3137                         fi
3138
3139 else
3140
3141                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3142                         if test "x$LINE" != x ; then
3143                           eval "DEFAULT_$LINE"
3144                         else
3145                           no_cache=1
3146                         fi
3147
3148                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3149
3150 fi;
3151
3152           eval "$ac_cv_use_libtiff"
3153           if test "$no_cache" != 1; then
3154             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3155           fi
3156
3157           if test "$wxUSE_LIBTIFF" = yes; then
3158             echo "$as_me:$LINENO: result: yes" >&5
3159 echo "${ECHO_T}yes" >&6
3160           elif test "$wxUSE_LIBTIFF" = no; then
3161             echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3163           elif test "$wxUSE_LIBTIFF" = sys; then
3164             echo "$as_me:$LINENO: result: system version" >&5
3165 echo "${ECHO_T}system version" >&6
3166           elif test "$wxUSE_LIBTIFF" = builtin; then
3167             echo "$as_me:$LINENO: result: builtin version" >&5
3168 echo "${ECHO_T}builtin version" >&6
3169           else
3170             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3171 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3172    { (exit 1); exit 1; }; }
3173           fi
3174
3175
3176           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3177 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3178           no_cache=0
3179
3180 # Check whether --with-libxpm or --without-libxpm was given.
3181 if test "${with_libxpm+set}" = set; then
3182   withval="$with_libxpm"
3183
3184                         if test "$withval" = yes; then
3185                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3186                         elif test "$withval" = no; then
3187                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3188                         elif test "$withval" = sys; then
3189                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3190                         elif test "$withval" = builtin; then
3191                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3192                         else
3193                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3194 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3195    { (exit 1); exit 1; }; }
3196                         fi
3197
3198 else
3199
3200                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3201                         if test "x$LINE" != x ; then
3202                           eval "DEFAULT_$LINE"
3203                         else
3204                           no_cache=1
3205                         fi
3206
3207                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3208
3209 fi;
3210
3211           eval "$ac_cv_use_libxpm"
3212           if test "$no_cache" != 1; then
3213             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3214           fi
3215
3216           if test "$wxUSE_LIBXPM" = yes; then
3217             echo "$as_me:$LINENO: result: yes" >&5
3218 echo "${ECHO_T}yes" >&6
3219           elif test "$wxUSE_LIBXPM" = no; then
3220             echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3222           elif test "$wxUSE_LIBXPM" = sys; then
3223             echo "$as_me:$LINENO: result: system version" >&5
3224 echo "${ECHO_T}system version" >&6
3225           elif test "$wxUSE_LIBXPM" = builtin; then
3226             echo "$as_me:$LINENO: result: builtin version" >&5
3227 echo "${ECHO_T}builtin version" >&6
3228           else
3229             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3230 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3231    { (exit 1); exit 1; }; }
3232           fi
3233
3234
3235           withstring=
3236           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3237 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3238           no_cache=0
3239
3240 # Check whether --with-libmspack or --without-libmspack was given.
3241 if test "${with_libmspack+set}" = set; then
3242   withval="$with_libmspack"
3243
3244                         if test "$withval" = yes; then
3245                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3246                         else
3247                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3248                         fi
3249
3250 else
3251
3252                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3253                         if test "x$LINE" != x ; then
3254                           eval "DEFAULT_$LINE"
3255                         else
3256                           no_cache=1
3257                         fi
3258
3259                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3260
3261 fi;
3262
3263           eval "$ac_cv_use_libmspack"
3264           if test "$no_cache" != 1; then
3265             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3266           fi
3267
3268           if test "$wxUSE_LIBMSPACK" = yes; then
3269             echo "$as_me:$LINENO: result: yes" >&5
3270 echo "${ECHO_T}yes" >&6
3271           else
3272             echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3274           fi
3275
3276
3277           withstring=
3278           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3279 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3280           no_cache=0
3281
3282 # Check whether --with-sdl or --without-sdl was given.
3283 if test "${with_sdl+set}" = set; then
3284   withval="$with_sdl"
3285
3286                         if test "$withval" = yes; then
3287                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3288                         else
3289                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3290                         fi
3291
3292 else
3293
3294                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3295                         if test "x$LINE" != x ; then
3296                           eval "DEFAULT_$LINE"
3297                         else
3298                           no_cache=1
3299                         fi
3300
3301                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3302
3303 fi;
3304
3305           eval "$ac_cv_use_sdl"
3306           if test "$no_cache" != 1; then
3307             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3308           fi
3309
3310           if test "$wxUSE_LIBSDL" = yes; then
3311             echo "$as_me:$LINENO: result: yes" >&5
3312 echo "${ECHO_T}yes" >&6
3313           else
3314             echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6
3316           fi
3317
3318
3319           withstring=
3320           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3321 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3322           no_cache=0
3323
3324 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3325 if test "${with_gnomeprint+set}" = set; then
3326   withval="$with_gnomeprint"
3327
3328                         if test "$withval" = yes; then
3329                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3330                         else
3331                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3332                         fi
3333
3334 else
3335
3336                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3337                         if test "x$LINE" != x ; then
3338                           eval "DEFAULT_$LINE"
3339                         else
3340                           no_cache=1
3341                         fi
3342
3343                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3344
3345 fi;
3346
3347           eval "$ac_cv_use_gnomeprint"
3348           if test "$no_cache" != 1; then
3349             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3350           fi
3351
3352           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3353             echo "$as_me:$LINENO: result: yes" >&5
3354 echo "${ECHO_T}yes" >&6
3355           else
3356             echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3358           fi
3359
3360
3361           withstring=
3362           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3363 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3364           no_cache=0
3365
3366 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3367 if test "${with_gnomevfs+set}" = set; then
3368   withval="$with_gnomevfs"
3369
3370                         if test "$withval" = yes; then
3371                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3372                         else
3373                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3374                         fi
3375
3376 else
3377
3378                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3379                         if test "x$LINE" != x ; then
3380                           eval "DEFAULT_$LINE"
3381                         else
3382                           no_cache=1
3383                         fi
3384
3385                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3386
3387 fi;
3388
3389           eval "$ac_cv_use_gnomevfs"
3390           if test "$no_cache" != 1; then
3391             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3392           fi
3393
3394           if test "$wxUSE_LIBGNOMEVFS" = yes; then
3395             echo "$as_me:$LINENO: result: yes" >&5
3396 echo "${ECHO_T}yes" >&6
3397           else
3398             echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3400           fi
3401
3402
3403           withstring=
3404           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3405 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3406           no_cache=0
3407
3408 # Check whether --with-hildon or --without-hildon was given.
3409 if test "${with_hildon+set}" = set; then
3410   withval="$with_hildon"
3411
3412                         if test "$withval" = yes; then
3413                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3414                         else
3415                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3416                         fi
3417
3418 else
3419
3420                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3421                         if test "x$LINE" != x ; then
3422                           eval "DEFAULT_$LINE"
3423                         else
3424                           no_cache=1
3425                         fi
3426
3427                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3428
3429 fi;
3430
3431           eval "$ac_cv_use_hildon"
3432           if test "$no_cache" != 1; then
3433             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3434           fi
3435
3436           if test "$wxUSE_LIBHILDON" = yes; then
3437             echo "$as_me:$LINENO: result: yes" >&5
3438 echo "${ECHO_T}yes" >&6
3439           else
3440             echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3442           fi
3443
3444
3445           withstring=
3446           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3447 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3448           no_cache=0
3449
3450 # Check whether --with-opengl or --without-opengl was given.
3451 if test "${with_opengl+set}" = set; then
3452   withval="$with_opengl"
3453
3454                         if test "$withval" = yes; then
3455                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3456                         else
3457                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3458                         fi
3459
3460 else
3461
3462                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3463                         if test "x$LINE" != x ; then
3464                           eval "DEFAULT_$LINE"
3465                         else
3466                           no_cache=1
3467                         fi
3468
3469                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3470
3471 fi;
3472
3473           eval "$ac_cv_use_opengl"
3474           if test "$no_cache" != 1; then
3475             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3476           fi
3477
3478           if test "$wxUSE_OPENGL" = yes; then
3479             echo "$as_me:$LINENO: result: yes" >&5
3480 echo "${ECHO_T}yes" >&6
3481           else
3482             echo "$as_me:$LINENO: result: no" >&5
3483 echo "${ECHO_T}no" >&6
3484           fi
3485
3486
3487 if test "$wxUSE_UNIVERSAL" = "yes"; then
3488
3489 # Check whether --with-themes or --without-themes was given.
3490 if test "${with_themes+set}" = set; then
3491   withval="$with_themes"
3492   wxUNIV_THEMES="$withval"
3493 fi;
3494 fi
3495
3496 fi
3497
3498
3499           withstring=
3500           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3501 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3502           no_cache=0
3503
3504 # Check whether --with-dmalloc or --without-dmalloc was given.
3505 if test "${with_dmalloc+set}" = set; then
3506   withval="$with_dmalloc"
3507
3508                         if test "$withval" = yes; then
3509                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3510                         else
3511                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3512                         fi
3513
3514 else
3515
3516                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3517                         if test "x$LINE" != x ; then
3518                           eval "DEFAULT_$LINE"
3519                         else
3520                           no_cache=1
3521                         fi
3522
3523                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3524
3525 fi;
3526
3527           eval "$ac_cv_use_dmalloc"
3528           if test "$no_cache" != 1; then
3529             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3530           fi
3531
3532           if test "$wxUSE_DMALLOC" = yes; then
3533             echo "$as_me:$LINENO: result: yes" >&5
3534 echo "${ECHO_T}yes" >&6
3535           else
3536             echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3538           fi
3539
3540
3541           echo "$as_me:$LINENO: checking for --with-regex" >&5
3542 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3543           no_cache=0
3544
3545 # Check whether --with-regex or --without-regex was given.
3546 if test "${with_regex+set}" = set; then
3547   withval="$with_regex"
3548
3549                         if test "$withval" = yes; then
3550                           ac_cv_use_regex='wxUSE_REGEX=yes'
3551                         elif test "$withval" = no; then
3552                           ac_cv_use_regex='wxUSE_REGEX=no'
3553                         elif test "$withval" = sys; then
3554                           ac_cv_use_regex='wxUSE_REGEX=sys'
3555                         elif test "$withval" = builtin; then
3556                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3557                         else
3558                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3559 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3560    { (exit 1); exit 1; }; }
3561                         fi
3562
3563 else
3564
3565                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3566                         if test "x$LINE" != x ; then
3567                           eval "DEFAULT_$LINE"
3568                         else
3569                           no_cache=1
3570                         fi
3571
3572                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3573
3574 fi;
3575
3576           eval "$ac_cv_use_regex"
3577           if test "$no_cache" != 1; then
3578             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3579           fi
3580
3581           if test "$wxUSE_REGEX" = yes; then
3582             echo "$as_me:$LINENO: result: yes" >&5
3583 echo "${ECHO_T}yes" >&6
3584           elif test "$wxUSE_REGEX" = no; then
3585             echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587           elif test "$wxUSE_REGEX" = sys; then
3588             echo "$as_me:$LINENO: result: system version" >&5
3589 echo "${ECHO_T}system version" >&6
3590           elif test "$wxUSE_REGEX" = builtin; then
3591             echo "$as_me:$LINENO: result: builtin version" >&5
3592 echo "${ECHO_T}builtin version" >&6
3593           else
3594             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3595 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3596    { (exit 1); exit 1; }; }
3597           fi
3598
3599
3600           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3601 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3602           no_cache=0
3603
3604 # Check whether --with-zlib or --without-zlib was given.
3605 if test "${with_zlib+set}" = set; then
3606   withval="$with_zlib"
3607
3608                         if test "$withval" = yes; then
3609                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3610                         elif test "$withval" = no; then
3611                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3612                         elif test "$withval" = sys; then
3613                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3614                         elif test "$withval" = builtin; then
3615                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3616                         else
3617                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3618 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3619    { (exit 1); exit 1; }; }
3620                         fi
3621
3622 else
3623
3624                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3625                         if test "x$LINE" != x ; then
3626                           eval "DEFAULT_$LINE"
3627                         else
3628                           no_cache=1
3629                         fi
3630
3631                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3632
3633 fi;
3634
3635           eval "$ac_cv_use_zlib"
3636           if test "$no_cache" != 1; then
3637             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3638           fi
3639
3640           if test "$wxUSE_ZLIB" = yes; then
3641             echo "$as_me:$LINENO: result: yes" >&5
3642 echo "${ECHO_T}yes" >&6
3643           elif test "$wxUSE_ZLIB" = no; then
3644             echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3646           elif test "$wxUSE_ZLIB" = sys; then
3647             echo "$as_me:$LINENO: result: system version" >&5
3648 echo "${ECHO_T}system version" >&6
3649           elif test "$wxUSE_ZLIB" = builtin; then
3650             echo "$as_me:$LINENO: result: builtin version" >&5
3651 echo "${ECHO_T}builtin version" >&6
3652           else
3653             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3654 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3655    { (exit 1); exit 1; }; }
3656           fi
3657
3658
3659           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3660 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3661           no_cache=0
3662
3663 # Check whether --with-odbc or --without-odbc was given.
3664 if test "${with_odbc+set}" = set; then
3665   withval="$with_odbc"
3666
3667                         if test "$withval" = yes; then
3668                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3669                         elif test "$withval" = no; then
3670                           ac_cv_use_odbc='wxUSE_ODBC=no'
3671                         elif test "$withval" = sys; then
3672                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3673                         elif test "$withval" = builtin; then
3674                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3675                         else
3676                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3677 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3678    { (exit 1); exit 1; }; }
3679                         fi
3680
3681 else
3682
3683                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3684                         if test "x$LINE" != x ; then
3685                           eval "DEFAULT_$LINE"
3686                         else
3687                           no_cache=1
3688                         fi
3689
3690                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3691
3692 fi;
3693
3694           eval "$ac_cv_use_odbc"
3695           if test "$no_cache" != 1; then
3696             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3697           fi
3698
3699           if test "$wxUSE_ODBC" = yes; then
3700             echo "$as_me:$LINENO: result: yes" >&5
3701 echo "${ECHO_T}yes" >&6
3702           elif test "$wxUSE_ODBC" = no; then
3703             echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3705           elif test "$wxUSE_ODBC" = sys; then
3706             echo "$as_me:$LINENO: result: system version" >&5
3707 echo "${ECHO_T}system version" >&6
3708           elif test "$wxUSE_ODBC" = builtin; then
3709             echo "$as_me:$LINENO: result: builtin version" >&5
3710 echo "${ECHO_T}builtin version" >&6
3711           else
3712             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3713 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3714    { (exit 1); exit 1; }; }
3715           fi
3716
3717
3718           echo "$as_me:$LINENO: checking for --with-expat" >&5
3719 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3720           no_cache=0
3721
3722 # Check whether --with-expat or --without-expat was given.
3723 if test "${with_expat+set}" = set; then
3724   withval="$with_expat"
3725
3726                         if test "$withval" = yes; then
3727                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3728                         elif test "$withval" = no; then
3729                           ac_cv_use_expat='wxUSE_EXPAT=no'
3730                         elif test "$withval" = sys; then
3731                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3732                         elif test "$withval" = builtin; then
3733                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3734                         else
3735                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3736 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3737    { (exit 1); exit 1; }; }
3738                         fi
3739
3740 else
3741
3742                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3743                         if test "x$LINE" != x ; then
3744                           eval "DEFAULT_$LINE"
3745                         else
3746                           no_cache=1
3747                         fi
3748
3749                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3750
3751 fi;
3752
3753           eval "$ac_cv_use_expat"
3754           if test "$no_cache" != 1; then
3755             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3756           fi
3757
3758           if test "$wxUSE_EXPAT" = yes; then
3759             echo "$as_me:$LINENO: result: yes" >&5
3760 echo "${ECHO_T}yes" >&6
3761           elif test "$wxUSE_EXPAT" = no; then
3762             echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764           elif test "$wxUSE_EXPAT" = sys; then
3765             echo "$as_me:$LINENO: result: system version" >&5
3766 echo "${ECHO_T}system version" >&6
3767           elif test "$wxUSE_EXPAT" = builtin; then
3768             echo "$as_me:$LINENO: result: builtin version" >&5
3769 echo "${ECHO_T}builtin version" >&6
3770           else
3771             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3772 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3773    { (exit 1); exit 1; }; }
3774           fi
3775
3776
3777
3778
3779           enablestring=
3780           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3781 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3782           no_cache=0
3783           # Check whether --enable-shared or --disable-shared was given.
3784 if test "${enable_shared+set}" = set; then
3785   enableval="$enable_shared"
3786
3787                           if test "$enableval" = yes; then
3788                             ac_cv_use_shared='wxUSE_SHARED=yes'
3789                           else
3790                             ac_cv_use_shared='wxUSE_SHARED=no'
3791                           fi
3792
3793 else
3794
3795                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3796                           if test "x$LINE" != x ; then
3797                             eval "DEFAULT_$LINE"
3798                           else
3799                             no_cache=1
3800                           fi
3801
3802                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3803
3804 fi;
3805
3806           eval "$ac_cv_use_shared"
3807           if test "$no_cache" != 1; then
3808             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3809           fi
3810
3811           if test "$wxUSE_SHARED" = yes; then
3812             echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6
3814           else
3815             echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817           fi
3818
3819
3820           enablestring=
3821           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3822 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3823           no_cache=0
3824           # Check whether --enable-optimise or --disable-optimise was given.
3825 if test "${enable_optimise+set}" = set; then
3826   enableval="$enable_optimise"
3827
3828                           if test "$enableval" = yes; then
3829                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3830                           else
3831                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3832                           fi
3833
3834 else
3835
3836                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3837                           if test "x$LINE" != x ; then
3838                             eval "DEFAULT_$LINE"
3839                           else
3840                             no_cache=1
3841                           fi
3842
3843                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3844
3845 fi;
3846
3847           eval "$ac_cv_use_optimise"
3848           if test "$no_cache" != 1; then
3849             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3850           fi
3851
3852           if test "$wxUSE_OPTIMISE" = yes; then
3853             echo "$as_me:$LINENO: result: yes" >&5
3854 echo "${ECHO_T}yes" >&6
3855           else
3856             echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3858           fi
3859
3860
3861           enablestring=
3862           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3863 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3864           no_cache=0
3865           # Check whether --enable-debug or --disable-debug was given.
3866 if test "${enable_debug+set}" = set; then
3867   enableval="$enable_debug"
3868
3869                           if test "$enableval" = yes; then
3870                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3871                           else
3872                             ac_cv_use_debug='wxUSE_DEBUG=no'
3873                           fi
3874
3875 else
3876
3877                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3878                           if test "x$LINE" != x ; then
3879                             eval "DEFAULT_$LINE"
3880                           else
3881                             no_cache=1
3882                           fi
3883
3884                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3885
3886 fi;
3887
3888           eval "$ac_cv_use_debug"
3889           if test "$no_cache" != 1; then
3890             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3891           fi
3892
3893           if test "$wxUSE_DEBUG" = yes; then
3894             echo "$as_me:$LINENO: result: yes" >&5
3895 echo "${ECHO_T}yes" >&6
3896           else
3897             echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3899           fi
3900
3901
3902           enablestring=
3903           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3904 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3905           no_cache=0
3906           # Check whether --enable-stl or --disable-stl was given.
3907 if test "${enable_stl+set}" = set; then
3908   enableval="$enable_stl"
3909
3910                           if test "$enableval" = yes; then
3911                             ac_cv_use_stl='wxUSE_STL=yes'
3912                           else
3913                             ac_cv_use_stl='wxUSE_STL=no'
3914                           fi
3915
3916 else
3917
3918                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3919                           if test "x$LINE" != x ; then
3920                             eval "DEFAULT_$LINE"
3921                           else
3922                             no_cache=1
3923                           fi
3924
3925                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3926
3927 fi;
3928
3929           eval "$ac_cv_use_stl"
3930           if test "$no_cache" != 1; then
3931             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3932           fi
3933
3934           if test "$wxUSE_STL" = yes; then
3935             echo "$as_me:$LINENO: result: yes" >&5
3936 echo "${ECHO_T}yes" >&6
3937           else
3938             echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940           fi
3941
3942 if test "$USE_OS2" = "1"; then
3943     DEFAULT_wxUSE_OMF=no
3944
3945           enablestring=
3946           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3947 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3948           no_cache=0
3949           # Check whether --enable-omf or --disable-omf was given.
3950 if test "${enable_omf+set}" = set; then
3951   enableval="$enable_omf"
3952
3953                           if test "$enableval" = yes; then
3954                             ac_cv_use_omf='wxUSE_OMF=yes'
3955                           else
3956                             ac_cv_use_omf='wxUSE_OMF=no'
3957                           fi
3958
3959 else
3960
3961                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3962                           if test "x$LINE" != x ; then
3963                             eval "DEFAULT_$LINE"
3964                           else
3965                             no_cache=1
3966                           fi
3967
3968                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3969
3970 fi;
3971
3972           eval "$ac_cv_use_omf"
3973           if test "$no_cache" != 1; then
3974             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3975           fi
3976
3977           if test "$wxUSE_OMF" = yes; then
3978             echo "$as_me:$LINENO: result: yes" >&5
3979 echo "${ECHO_T}yes" >&6
3980           else
3981             echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6
3983           fi
3984
3985 fi
3986
3987 if test "$wxUSE_DEBUG" = "yes"; then
3988   DEFAULT_wxUSE_DEBUG_FLAG=yes
3989   DEFAULT_wxUSE_DEBUG_INFO=yes
3990   BUILD=debug
3991 elif test "$wxUSE_DEBUG" = "no"; then
3992   DEFAULT_wxUSE_DEBUG_FLAG=no
3993   DEFAULT_wxUSE_DEBUG_INFO=no
3994   BUILD=release
3995 fi
3996
3997
3998           enablestring=
3999           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4000 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4001           no_cache=0
4002           # Check whether --enable-debug_flag or --disable-debug_flag was given.
4003 if test "${enable_debug_flag+set}" = set; then
4004   enableval="$enable_debug_flag"
4005
4006                           if test "$enableval" = yes; then
4007                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4008                           else
4009                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4010                           fi
4011
4012 else
4013
4014                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4015                           if test "x$LINE" != x ; then
4016                             eval "DEFAULT_$LINE"
4017                           else
4018                             no_cache=1
4019                           fi
4020
4021                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4022
4023 fi;
4024
4025           eval "$ac_cv_use_debug_flag"
4026           if test "$no_cache" != 1; then
4027             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4028           fi
4029
4030           if test "$wxUSE_DEBUG_FLAG" = yes; then
4031             echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6
4033           else
4034             echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4036           fi
4037
4038
4039           enablestring=
4040           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4041 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4042           no_cache=0
4043           # Check whether --enable-debug_info or --disable-debug_info was given.
4044 if test "${enable_debug_info+set}" = set; then
4045   enableval="$enable_debug_info"
4046
4047                           if test "$enableval" = yes; then
4048                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4049                           else
4050                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4051                           fi
4052
4053 else
4054
4055                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4056                           if test "x$LINE" != x ; then
4057                             eval "DEFAULT_$LINE"
4058                           else
4059                             no_cache=1
4060                           fi
4061
4062                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4063
4064 fi;
4065
4066           eval "$ac_cv_use_debug_info"
4067           if test "$no_cache" != 1; then
4068             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4069           fi
4070
4071           if test "$wxUSE_DEBUG_INFO" = yes; then
4072             echo "$as_me:$LINENO: result: yes" >&5
4073 echo "${ECHO_T}yes" >&6
4074           else
4075             echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4077           fi
4078
4079
4080           enablestring=
4081           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4082 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4083           no_cache=0
4084           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4085 if test "${enable_debug_gdb+set}" = set; then
4086   enableval="$enable_debug_gdb"
4087
4088                           if test "$enableval" = yes; then
4089                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4090                           else
4091                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4092                           fi
4093
4094 else
4095
4096                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4097                           if test "x$LINE" != x ; then
4098                             eval "DEFAULT_$LINE"
4099                           else
4100                             no_cache=1
4101                           fi
4102
4103                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4104
4105 fi;
4106
4107           eval "$ac_cv_use_debug_gdb"
4108           if test "$no_cache" != 1; then
4109             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4110           fi
4111
4112           if test "$wxUSE_DEBUG_GDB" = yes; then
4113             echo "$as_me:$LINENO: result: yes" >&5
4114 echo "${ECHO_T}yes" >&6
4115           else
4116             echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4118           fi
4119
4120
4121           enablestring=
4122           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4123 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4124           no_cache=0
4125           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4126 if test "${enable_debug_cntxt+set}" = set; then
4127   enableval="$enable_debug_cntxt"
4128
4129                           if test "$enableval" = yes; then
4130                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4131                           else
4132                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4133                           fi
4134
4135 else
4136
4137                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4138                           if test "x$LINE" != x ; then
4139                             eval "DEFAULT_$LINE"
4140                           else
4141                             no_cache=1
4142                           fi
4143
4144                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4145
4146 fi;
4147
4148           eval "$ac_cv_use_debug_cntxt"
4149           if test "$no_cache" != 1; then
4150             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4151           fi
4152
4153           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4154             echo "$as_me:$LINENO: result: yes" >&5
4155 echo "${ECHO_T}yes" >&6
4156           else
4157             echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4159           fi
4160
4161
4162           enablestring=
4163           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4164 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4165           no_cache=0
4166           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4167 if test "${enable_mem_tracing+set}" = set; then
4168   enableval="$enable_mem_tracing"
4169
4170                           if test "$enableval" = yes; then
4171                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4172                           else
4173                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4174                           fi
4175
4176 else
4177
4178                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4179                           if test "x$LINE" != x ; then
4180                             eval "DEFAULT_$LINE"
4181                           else
4182                             no_cache=1
4183                           fi
4184
4185                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4186
4187 fi;
4188
4189           eval "$ac_cv_use_mem_tracing"
4190           if test "$no_cache" != 1; then
4191             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4192           fi
4193
4194           if test "$wxUSE_MEM_TRACING" = yes; then
4195             echo "$as_me:$LINENO: result: yes" >&5
4196 echo "${ECHO_T}yes" >&6
4197           else
4198             echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6
4200           fi
4201
4202
4203           enablestring=
4204           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4205 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4206           no_cache=0
4207           # Check whether --enable-profile or --disable-profile was given.
4208 if test "${enable_profile+set}" = set; then
4209   enableval="$enable_profile"
4210
4211                           if test "$enableval" = yes; then
4212                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4213                           else
4214                             ac_cv_use_profile='wxUSE_PROFILE=no'
4215                           fi
4216
4217 else
4218
4219                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4220                           if test "x$LINE" != x ; then
4221                             eval "DEFAULT_$LINE"
4222                           else
4223                             no_cache=1
4224                           fi
4225
4226                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4227
4228 fi;
4229
4230           eval "$ac_cv_use_profile"
4231           if test "$no_cache" != 1; then
4232             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4233           fi
4234
4235           if test "$wxUSE_PROFILE" = yes; then
4236             echo "$as_me:$LINENO: result: yes" >&5
4237 echo "${ECHO_T}yes" >&6
4238           else
4239             echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4241           fi
4242
4243
4244           enablestring=
4245           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4246 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4247           no_cache=0
4248           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4249 if test "${enable_no_rtti+set}" = set; then
4250   enableval="$enable_no_rtti"
4251
4252                           if test "$enableval" = yes; then
4253                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4254                           else
4255                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4256                           fi
4257
4258 else
4259
4260                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4261                           if test "x$LINE" != x ; then
4262                             eval "DEFAULT_$LINE"
4263                           else
4264                             no_cache=1
4265                           fi
4266
4267                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4268
4269 fi;
4270
4271           eval "$ac_cv_use_no_rtti"
4272           if test "$no_cache" != 1; then
4273             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4274           fi
4275
4276           if test "$wxUSE_NO_RTTI" = yes; then
4277             echo "$as_me:$LINENO: result: yes" >&5
4278 echo "${ECHO_T}yes" >&6
4279           else
4280             echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6
4282           fi
4283
4284
4285           enablestring=
4286           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4287 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4288           no_cache=0
4289           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4290 if test "${enable_no_exceptions+set}" = set; then
4291   enableval="$enable_no_exceptions"
4292
4293                           if test "$enableval" = yes; then
4294                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4295                           else
4296                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4297                           fi
4298
4299 else
4300
4301                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4302                           if test "x$LINE" != x ; then
4303                             eval "DEFAULT_$LINE"
4304                           else
4305                             no_cache=1
4306                           fi
4307
4308                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4309
4310 fi;
4311
4312           eval "$ac_cv_use_no_exceptions"
4313           if test "$no_cache" != 1; then
4314             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4315           fi
4316
4317           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4318             echo "$as_me:$LINENO: result: yes" >&5
4319 echo "${ECHO_T}yes" >&6
4320           else
4321             echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4323           fi
4324
4325
4326           enablestring=
4327           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4328 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4329           no_cache=0
4330           # Check whether --enable-permissive or --disable-permissive was given.
4331 if test "${enable_permissive+set}" = set; then
4332   enableval="$enable_permissive"
4333
4334                           if test "$enableval" = yes; then
4335                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4336                           else
4337                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4338                           fi
4339
4340 else
4341
4342                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4343                           if test "x$LINE" != x ; then
4344                             eval "DEFAULT_$LINE"
4345                           else
4346                             no_cache=1
4347                           fi
4348
4349                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4350
4351 fi;
4352
4353           eval "$ac_cv_use_permissive"
4354           if test "$no_cache" != 1; then
4355             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4356           fi
4357
4358           if test "$wxUSE_PERMISSIVE" = yes; then
4359             echo "$as_me:$LINENO: result: yes" >&5
4360 echo "${ECHO_T}yes" >&6
4361           else
4362             echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4364           fi
4365
4366
4367           enablestring=
4368           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4369 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4370           no_cache=0
4371           # Check whether --enable-no_deps or --disable-no_deps was given.
4372 if test "${enable_no_deps+set}" = set; then
4373   enableval="$enable_no_deps"
4374
4375                           if test "$enableval" = yes; then
4376                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4377                           else
4378                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4379                           fi
4380
4381 else
4382
4383                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4384                           if test "x$LINE" != x ; then
4385                             eval "DEFAULT_$LINE"
4386                           else
4387                             no_cache=1
4388                           fi
4389
4390                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4391
4392 fi;
4393
4394           eval "$ac_cv_use_no_deps"
4395           if test "$no_cache" != 1; then
4396             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4397           fi
4398
4399           if test "$wxUSE_NO_DEPS" = yes; then
4400             echo "$as_me:$LINENO: result: yes" >&5
4401 echo "${ECHO_T}yes" >&6
4402           else
4403             echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4405           fi
4406
4407
4408           enablestring=
4409           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4410 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4411           no_cache=0
4412           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4413 if test "${enable_universal_binary+set}" = set; then
4414   enableval="$enable_universal_binary"
4415
4416                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
4417
4418 else
4419
4420                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4421                           if test "x$LINE" != x ; then
4422                             eval "DEFAULT_$LINE"
4423                             wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4424                           else
4425                             no_cache=1
4426                             wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
4427                           fi
4428
4429 fi;
4430
4431           eval "$wx_cv_use_universal_binary"
4432           if test "$no_cache" != 1; then
4433             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4434           fi
4435
4436           echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4437 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
4438
4439
4440
4441           enablestring=enable
4442           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4443 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4444           no_cache=0
4445           # Check whether --enable-compat24 or --disable-compat24 was given.
4446 if test "${enable_compat24+set}" = set; then
4447   enableval="$enable_compat24"
4448
4449                           if test "$enableval" = yes; then
4450                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4451                           else
4452                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4453                           fi
4454
4455 else
4456
4457                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4458                           if test "x$LINE" != x ; then
4459                             eval "DEFAULT_$LINE"
4460                           else
4461                             no_cache=1
4462                           fi
4463
4464                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4465
4466 fi;
4467
4468           eval "$ac_cv_use_compat24"
4469           if test "$no_cache" != 1; then
4470             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4471           fi
4472
4473           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4474             echo "$as_me:$LINENO: result: yes" >&5
4475 echo "${ECHO_T}yes" >&6
4476           else
4477             echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4479           fi
4480
4481
4482           enablestring=disable
4483           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4484 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4485           no_cache=0
4486           # Check whether --enable-compat26 or --disable-compat26 was given.
4487 if test "${enable_compat26+set}" = set; then
4488   enableval="$enable_compat26"
4489
4490                           if test "$enableval" = yes; then
4491                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4492                           else
4493                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4494                           fi
4495
4496 else
4497
4498                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4499                           if test "x$LINE" != x ; then
4500                             eval "DEFAULT_$LINE"
4501                           else
4502                             no_cache=1
4503                           fi
4504
4505                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4506
4507 fi;
4508
4509           eval "$ac_cv_use_compat26"
4510           if test "$no_cache" != 1; then
4511             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4512           fi
4513
4514           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4515             echo "$as_me:$LINENO: result: yes" >&5
4516 echo "${ECHO_T}yes" >&6
4517           else
4518             echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6
4520           fi
4521
4522
4523
4524           enablestring=
4525           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4526 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4527           no_cache=0
4528           # Check whether --enable-rpath or --disable-rpath was given.
4529 if test "${enable_rpath+set}" = set; then
4530   enableval="$enable_rpath"
4531
4532                           if test "$enableval" = yes; then
4533                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4534                           else
4535                             ac_cv_use_rpath='wxUSE_RPATH=no'
4536                           fi
4537
4538 else
4539
4540                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4541                           if test "x$LINE" != x ; then
4542                             eval "DEFAULT_$LINE"
4543                           else
4544                             no_cache=1
4545                           fi
4546
4547                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4548
4549 fi;
4550
4551           eval "$ac_cv_use_rpath"
4552           if test "$no_cache" != 1; then
4553             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4554           fi
4555
4556           if test "$wxUSE_RPATH" = yes; then
4557             echo "$as_me:$LINENO: result: yes" >&5
4558 echo "${ECHO_T}yes" >&6
4559           else
4560             echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4562           fi
4563
4564
4565
4566
4567
4568           enablestring=
4569           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4570 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4571           no_cache=0
4572           # Check whether --enable-intl or --disable-intl was given.
4573 if test "${enable_intl+set}" = set; then
4574   enableval="$enable_intl"
4575
4576                           if test "$enableval" = yes; then
4577                             ac_cv_use_intl='wxUSE_INTL=yes'
4578                           else
4579                             ac_cv_use_intl='wxUSE_INTL=no'
4580                           fi
4581
4582 else
4583
4584                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4585                           if test "x$LINE" != x ; then
4586                             eval "DEFAULT_$LINE"
4587                           else
4588                             no_cache=1
4589                           fi
4590
4591                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4592
4593 fi;
4594
4595           eval "$ac_cv_use_intl"
4596           if test "$no_cache" != 1; then
4597             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4598           fi
4599
4600           if test "$wxUSE_INTL" = yes; then
4601             echo "$as_me:$LINENO: result: yes" >&5
4602 echo "${ECHO_T}yes" >&6
4603           else
4604             echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6
4606           fi
4607
4608
4609           enablestring=
4610           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4611 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4612           no_cache=0
4613           # Check whether --enable-config or --disable-config was given.
4614 if test "${enable_config+set}" = set; then
4615   enableval="$enable_config"
4616
4617                           if test "$enableval" = yes; then
4618                             ac_cv_use_config='wxUSE_CONFIG=yes'
4619                           else
4620                             ac_cv_use_config='wxUSE_CONFIG=no'
4621                           fi
4622
4623 else
4624
4625                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4626                           if test "x$LINE" != x ; then
4627                             eval "DEFAULT_$LINE"
4628                           else
4629                             no_cache=1
4630                           fi
4631
4632                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4633
4634 fi;
4635
4636           eval "$ac_cv_use_config"
4637           if test "$no_cache" != 1; then
4638             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4639           fi
4640
4641           if test "$wxUSE_CONFIG" = yes; then
4642             echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4644           else
4645             echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4647           fi
4648
4649
4650
4651           enablestring=
4652           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4653 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4654           no_cache=0
4655           # Check whether --enable-protocols or --disable-protocols was given.
4656 if test "${enable_protocols+set}" = set; then
4657   enableval="$enable_protocols"
4658
4659                           if test "$enableval" = yes; then
4660                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4661                           else
4662                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4663                           fi
4664
4665 else
4666
4667                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4668                           if test "x$LINE" != x ; then
4669                             eval "DEFAULT_$LINE"
4670                           else
4671                             no_cache=1
4672                           fi
4673
4674                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4675
4676 fi;
4677
4678           eval "$ac_cv_use_protocols"
4679           if test "$no_cache" != 1; then
4680             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4681           fi
4682
4683           if test "$wxUSE_PROTOCOL" = yes; then
4684             echo "$as_me:$LINENO: result: yes" >&5
4685 echo "${ECHO_T}yes" >&6
4686           else
4687             echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6
4689           fi
4690
4691
4692           enablestring=
4693           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4694 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4695           no_cache=0
4696           # Check whether --enable-ftp or --disable-ftp was given.
4697 if test "${enable_ftp+set}" = set; then
4698   enableval="$enable_ftp"
4699
4700                           if test "$enableval" = yes; then
4701                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4702                           else
4703                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4704                           fi
4705
4706 else
4707
4708                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4709                           if test "x$LINE" != x ; then
4710                             eval "DEFAULT_$LINE"
4711                           else
4712                             no_cache=1
4713                           fi
4714
4715                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4716
4717 fi;
4718
4719           eval "$ac_cv_use_ftp"
4720           if test "$no_cache" != 1; then
4721             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4722           fi
4723
4724           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4725             echo "$as_me:$LINENO: result: yes" >&5
4726 echo "${ECHO_T}yes" >&6
4727           else
4728             echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6
4730           fi
4731
4732
4733           enablestring=
4734           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4735 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4736           no_cache=0
4737           # Check whether --enable-http or --disable-http was given.
4738 if test "${enable_http+set}" = set; then
4739   enableval="$enable_http"
4740
4741                           if test "$enableval" = yes; then
4742                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4743                           else
4744                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4745                           fi
4746
4747 else
4748
4749                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4750                           if test "x$LINE" != x ; then
4751                             eval "DEFAULT_$LINE"
4752                           else
4753                             no_cache=1
4754                           fi
4755
4756                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4757
4758 fi;
4759
4760           eval "$ac_cv_use_http"
4761           if test "$no_cache" != 1; then
4762             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4763           fi
4764
4765           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4766             echo "$as_me:$LINENO: result: yes" >&5
4767 echo "${ECHO_T}yes" >&6
4768           else
4769             echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6
4771           fi
4772
4773
4774           enablestring=
4775           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4776 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4777           no_cache=0
4778           # Check whether --enable-fileproto or --disable-fileproto was given.
4779 if test "${enable_fileproto+set}" = set; then
4780   enableval="$enable_fileproto"
4781
4782                           if test "$enableval" = yes; then
4783                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4784                           else
4785                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4786                           fi
4787
4788 else
4789
4790                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4791                           if test "x$LINE" != x ; then
4792                             eval "DEFAULT_$LINE"
4793                           else
4794                             no_cache=1
4795                           fi
4796
4797                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4798
4799 fi;
4800
4801           eval "$ac_cv_use_fileproto"
4802           if test "$no_cache" != 1; then
4803             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4804           fi
4805
4806           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4807             echo "$as_me:$LINENO: result: yes" >&5
4808 echo "${ECHO_T}yes" >&6
4809           else
4810             echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4812           fi
4813
4814
4815           enablestring=
4816           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4817 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4818           no_cache=0
4819           # Check whether --enable-sockets or --disable-sockets was given.
4820 if test "${enable_sockets+set}" = set; then
4821   enableval="$enable_sockets"
4822
4823                           if test "$enableval" = yes; then
4824                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4825                           else
4826                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4827                           fi
4828
4829 else
4830
4831                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4832                           if test "x$LINE" != x ; then
4833                             eval "DEFAULT_$LINE"
4834                           else
4835                             no_cache=1
4836                           fi
4837
4838                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4839
4840 fi;
4841
4842           eval "$ac_cv_use_sockets"
4843           if test "$no_cache" != 1; then
4844             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4845           fi
4846
4847           if test "$wxUSE_SOCKETS" = yes; then
4848             echo "$as_me:$LINENO: result: yes" >&5
4849 echo "${ECHO_T}yes" >&6
4850           else
4851             echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6
4853           fi
4854
4855
4856           enablestring=
4857           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4858 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4859           no_cache=0
4860           # Check whether --enable-ole or --disable-ole was given.
4861 if test "${enable_ole+set}" = set; then
4862   enableval="$enable_ole"
4863
4864                           if test "$enableval" = yes; then
4865                             ac_cv_use_ole='wxUSE_OLE=yes'
4866                           else
4867                             ac_cv_use_ole='wxUSE_OLE=no'
4868                           fi
4869
4870 else
4871
4872                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4873                           if test "x$LINE" != x ; then
4874                             eval "DEFAULT_$LINE"
4875                           else
4876                             no_cache=1
4877                           fi
4878
4879                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4880
4881 fi;
4882
4883           eval "$ac_cv_use_ole"
4884           if test "$no_cache" != 1; then
4885             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4886           fi
4887
4888           if test "$wxUSE_OLE" = yes; then
4889             echo "$as_me:$LINENO: result: yes" >&5
4890 echo "${ECHO_T}yes" >&6
4891           else
4892             echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6
4894           fi
4895
4896
4897           enablestring=
4898           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4899 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4900           no_cache=0
4901           # Check whether --enable-dataobj or --disable-dataobj was given.
4902 if test "${enable_dataobj+set}" = set; then
4903   enableval="$enable_dataobj"
4904
4905                           if test "$enableval" = yes; then
4906                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4907                           else
4908                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4909                           fi
4910
4911 else
4912
4913                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4914                           if test "x$LINE" != x ; then
4915                             eval "DEFAULT_$LINE"
4916                           else
4917                             no_cache=1
4918                           fi
4919
4920                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4921
4922 fi;
4923
4924           eval "$ac_cv_use_dataobj"
4925           if test "$no_cache" != 1; then
4926             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4927           fi
4928
4929           if test "$wxUSE_DATAOBJ" = yes; then
4930             echo "$as_me:$LINENO: result: yes" >&5
4931 echo "${ECHO_T}yes" >&6
4932           else
4933             echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935           fi
4936
4937
4938
4939           enablestring=
4940           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4941 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4942           no_cache=0
4943           # Check whether --enable-ipc or --disable-ipc was given.
4944 if test "${enable_ipc+set}" = set; then
4945   enableval="$enable_ipc"
4946
4947                           if test "$enableval" = yes; then
4948                             ac_cv_use_ipc='wxUSE_IPC=yes'
4949                           else
4950                             ac_cv_use_ipc='wxUSE_IPC=no'
4951                           fi
4952
4953 else
4954
4955                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4956                           if test "x$LINE" != x ; then
4957                             eval "DEFAULT_$LINE"
4958                           else
4959                             no_cache=1
4960                           fi
4961
4962                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4963
4964 fi;
4965
4966           eval "$ac_cv_use_ipc"
4967           if test "$no_cache" != 1; then
4968             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4969           fi
4970
4971           if test "$wxUSE_IPC" = yes; then
4972             echo "$as_me:$LINENO: result: yes" >&5
4973 echo "${ECHO_T}yes" >&6
4974           else
4975             echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6
4977           fi
4978
4979
4980
4981           enablestring=
4982           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4983 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4984           no_cache=0
4985           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4986 if test "${enable_apple_ieee+set}" = set; then
4987   enableval="$enable_apple_ieee"
4988
4989                           if test "$enableval" = yes; then
4990                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4991                           else
4992                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4993                           fi
4994
4995 else
4996
4997                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4998                           if test "x$LINE" != x ; then
4999                             eval "DEFAULT_$LINE"
5000                           else
5001                             no_cache=1
5002                           fi
5003
5004                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5005
5006 fi;
5007
5008           eval "$ac_cv_use_apple_ieee"
5009           if test "$no_cache" != 1; then
5010             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5011           fi
5012
5013           if test "$wxUSE_APPLE_IEEE" = yes; then
5014             echo "$as_me:$LINENO: result: yes" >&5
5015 echo "${ECHO_T}yes" >&6
5016           else
5017             echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5019           fi
5020
5021
5022           enablestring=
5023           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5024 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5025           no_cache=0
5026           # Check whether --enable-arcstream or --disable-arcstream was given.
5027 if test "${enable_arcstream+set}" = set; then
5028   enableval="$enable_arcstream"
5029
5030                           if test "$enableval" = yes; then
5031                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
5032                           else
5033                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
5034                           fi
5035
5036 else
5037
5038                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
5039                           if test "x$LINE" != x ; then
5040                             eval "DEFAULT_$LINE"
5041                           else
5042                             no_cache=1
5043                           fi
5044
5045                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
5046
5047 fi;
5048
5049           eval "$ac_cv_use_arcstream"
5050           if test "$no_cache" != 1; then
5051             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5052           fi
5053
5054           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
5055             echo "$as_me:$LINENO: result: yes" >&5
5056 echo "${ECHO_T}yes" >&6
5057           else
5058             echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6
5060           fi
5061
5062
5063           enablestring=
5064           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5065 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
5066           no_cache=0
5067           # Check whether --enable-backtrace or --disable-backtrace was given.
5068 if test "${enable_backtrace+set}" = set; then
5069   enableval="$enable_backtrace"
5070
5071                           if test "$enableval" = yes; then
5072                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5073                           else
5074                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5075                           fi
5076
5077 else
5078
5079                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5080                           if test "x$LINE" != x ; then
5081                             eval "DEFAULT_$LINE"
5082                           else
5083                             no_cache=1
5084                           fi
5085
5086                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5087
5088 fi;
5089
5090           eval "$ac_cv_use_backtrace"
5091           if test "$no_cache" != 1; then
5092             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5093           fi
5094
5095           if test "$wxUSE_STACKWALKER" = yes; then
5096             echo "$as_me:$LINENO: result: yes" >&5
5097 echo "${ECHO_T}yes" >&6
5098           else
5099             echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6
5101           fi
5102
5103
5104           enablestring=
5105           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5106 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5107           no_cache=0
5108           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5109 if test "${enable_catch_segvs+set}" = set; then
5110   enableval="$enable_catch_segvs"
5111
5112                           if test "$enableval" = yes; then
5113                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5114                           else
5115                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5116                           fi
5117
5118 else
5119
5120                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5121                           if test "x$LINE" != x ; then
5122                             eval "DEFAULT_$LINE"
5123                           else
5124                             no_cache=1
5125                           fi
5126
5127                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5128
5129 fi;
5130
5131           eval "$ac_cv_use_catch_segvs"
5132           if test "$no_cache" != 1; then
5133             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5134           fi
5135
5136           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5137             echo "$as_me:$LINENO: result: yes" >&5
5138 echo "${ECHO_T}yes" >&6
5139           else
5140             echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6
5142           fi
5143
5144
5145           enablestring=
5146           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5147 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5148           no_cache=0
5149           # Check whether --enable-cmdline or --disable-cmdline was given.
5150 if test "${enable_cmdline+set}" = set; then
5151   enableval="$enable_cmdline"
5152
5153                           if test "$enableval" = yes; then
5154                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5155                           else
5156                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5157                           fi
5158
5159 else
5160
5161                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5162                           if test "x$LINE" != x ; then
5163                             eval "DEFAULT_$LINE"
5164                           else
5165                             no_cache=1
5166                           fi
5167
5168                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5169
5170 fi;
5171
5172           eval "$ac_cv_use_cmdline"
5173           if test "$no_cache" != 1; then
5174             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5175           fi
5176
5177           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5178             echo "$as_me:$LINENO: result: yes" >&5
5179 echo "${ECHO_T}yes" >&6
5180           else
5181             echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5183           fi
5184
5185
5186           enablestring=
5187           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5188 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5189           no_cache=0
5190           # Check whether --enable-datetime or --disable-datetime was given.
5191 if test "${enable_datetime+set}" = set; then
5192   enableval="$enable_datetime"
5193
5194                           if test "$enableval" = yes; then
5195                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5196                           else
5197                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5198                           fi
5199
5200 else
5201
5202                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5203                           if test "x$LINE" != x ; then
5204                             eval "DEFAULT_$LINE"
5205                           else
5206                             no_cache=1
5207                           fi
5208
5209                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5210
5211 fi;
5212
5213           eval "$ac_cv_use_datetime"
5214           if test "$no_cache" != 1; then
5215             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5216           fi
5217
5218           if test "$wxUSE_DATETIME" = yes; then
5219             echo "$as_me:$LINENO: result: yes" >&5
5220 echo "${ECHO_T}yes" >&6
5221           else
5222             echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5224           fi
5225
5226
5227           enablestring=
5228           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5229 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5230           no_cache=0
5231           # Check whether --enable-debugreport or --disable-debugreport was given.
5232 if test "${enable_debugreport+set}" = set; then
5233   enableval="$enable_debugreport"
5234
5235                           if test "$enableval" = yes; then
5236                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5237                           else
5238                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5239                           fi
5240
5241 else
5242
5243                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5244                           if test "x$LINE" != x ; then
5245                             eval "DEFAULT_$LINE"
5246                           else
5247                             no_cache=1
5248                           fi
5249
5250                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5251
5252 fi;
5253
5254           eval "$ac_cv_use_debugreport"
5255           if test "$no_cache" != 1; then
5256             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5257           fi
5258
5259           if test "$wxUSE_DEBUGREPORT" = yes; then
5260             echo "$as_me:$LINENO: result: yes" >&5
5261 echo "${ECHO_T}yes" >&6
5262           else
5263             echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6
5265           fi
5266
5267
5268           enablestring=
5269           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5270 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5271           no_cache=0
5272           # Check whether --enable-dialupman or --disable-dialupman was given.
5273 if test "${enable_dialupman+set}" = set; then
5274   enableval="$enable_dialupman"
5275
5276                           if test "$enableval" = yes; then
5277                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5278                           else
5279                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5280                           fi
5281
5282 else
5283
5284                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5285                           if test "x$LINE" != x ; then
5286                             eval "DEFAULT_$LINE"
5287                           else
5288                             no_cache=1
5289                           fi
5290
5291                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5292
5293 fi;
5294
5295           eval "$ac_cv_use_dialupman"
5296           if test "$no_cache" != 1; then
5297             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5298           fi
5299
5300           if test "$wxUSE_DIALUP_MANAGER" = yes; then
5301             echo "$as_me:$LINENO: result: yes" >&5
5302 echo "${ECHO_T}yes" >&6
5303           else
5304             echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6
5306           fi
5307
5308
5309           enablestring=
5310           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5311 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5312           no_cache=0
5313           # Check whether --enable-dynlib or --disable-dynlib was given.
5314 if test "${enable_dynlib+set}" = set; then
5315   enableval="$enable_dynlib"
5316
5317                           if test "$enableval" = yes; then
5318                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5319                           else
5320                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5321                           fi
5322
5323 else
5324
5325                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5326                           if test "x$LINE" != x ; then
5327                             eval "DEFAULT_$LINE"
5328                           else
5329                             no_cache=1
5330                           fi
5331
5332                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5333
5334 fi;
5335
5336           eval "$ac_cv_use_dynlib"
5337           if test "$no_cache" != 1; then
5338             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5339           fi
5340
5341           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5342             echo "$as_me:$LINENO: result: yes" >&5
5343 echo "${ECHO_T}yes" >&6
5344           else
5345             echo "$as_me:$LINENO: result: no" >&5
5346 echo "${ECHO_T}no" >&6
5347           fi
5348
5349
5350           enablestring=
5351           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5352 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5353           no_cache=0
5354           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5355 if test "${enable_dynamicloader+set}" = set; then
5356   enableval="$enable_dynamicloader"
5357
5358                           if test "$enableval" = yes; then
5359                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5360                           else
5361                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5362                           fi
5363
5364 else
5365
5366                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5367                           if test "x$LINE" != x ; then
5368                             eval "DEFAULT_$LINE"
5369                           else
5370                             no_cache=1
5371                           fi
5372
5373                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5374
5375 fi;
5376
5377           eval "$ac_cv_use_dynamicloader"
5378           if test "$no_cache" != 1; then
5379             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5380           fi
5381
5382           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5383             echo "$as_me:$LINENO: result: yes" >&5
5384 echo "${ECHO_T}yes" >&6
5385           else
5386             echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5388           fi
5389
5390
5391           enablestring=
5392           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5393 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5394           no_cache=0
5395           # Check whether --enable-exceptions or --disable-exceptions was given.
5396 if test "${enable_exceptions+set}" = set; then
5397   enableval="$enable_exceptions"
5398
5399                           if test "$enableval" = yes; then
5400                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5401                           else
5402                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5403                           fi
5404
5405 else
5406
5407                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5408                           if test "x$LINE" != x ; then
5409                             eval "DEFAULT_$LINE"
5410                           else
5411                             no_cache=1
5412                           fi
5413
5414                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5415
5416 fi;
5417
5418           eval "$ac_cv_use_exceptions"
5419           if test "$no_cache" != 1; then
5420             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5421           fi
5422
5423           if test "$wxUSE_EXCEPTIONS" = yes; then
5424             echo "$as_me:$LINENO: result: yes" >&5
5425 echo "${ECHO_T}yes" >&6
5426           else
5427             echo "$as_me:$LINENO: result: no" >&5
5428 echo "${ECHO_T}no" >&6
5429           fi
5430
5431
5432           enablestring=
5433           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5434 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5435           no_cache=0
5436           # Check whether --enable-ffile or --disable-ffile was given.
5437 if test "${enable_ffile+set}" = set; then
5438   enableval="$enable_ffile"
5439
5440                           if test "$enableval" = yes; then
5441                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5442                           else
5443                             ac_cv_use_ffile='wxUSE_FFILE=no'
5444                           fi
5445
5446 else
5447
5448                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5449                           if test "x$LINE" != x ; then
5450                             eval "DEFAULT_$LINE"
5451                           else
5452                             no_cache=1
5453                           fi
5454
5455                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5456
5457 fi;
5458
5459           eval "$ac_cv_use_ffile"
5460           if test "$no_cache" != 1; then
5461             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5462           fi
5463
5464           if test "$wxUSE_FFILE" = yes; then
5465             echo "$as_me:$LINENO: result: yes" >&5
5466 echo "${ECHO_T}yes" >&6
5467           else
5468             echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6
5470           fi
5471
5472
5473           enablestring=
5474           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5475 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5476           no_cache=0
5477           # Check whether --enable-file or --disable-file was given.
5478 if test "${enable_file+set}" = set; then
5479   enableval="$enable_file"
5480
5481                           if test "$enableval" = yes; then
5482                             ac_cv_use_file='wxUSE_FILE=yes'
5483                           else
5484                             ac_cv_use_file='wxUSE_FILE=no'
5485                           fi
5486
5487 else
5488
5489                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5490                           if test "x$LINE" != x ; then
5491                             eval "DEFAULT_$LINE"
5492                           else
5493                             no_cache=1
5494                           fi
5495
5496                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5497
5498 fi;
5499
5500           eval "$ac_cv_use_file"
5501           if test "$no_cache" != 1; then
5502             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5503           fi
5504
5505           if test "$wxUSE_FILE" = yes; then
5506             echo "$as_me:$LINENO: result: yes" >&5
5507 echo "${ECHO_T}yes" >&6
5508           else
5509             echo "$as_me:$LINENO: result: no" >&5
5510 echo "${ECHO_T}no" >&6
5511           fi
5512
5513
5514           enablestring=
5515           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5516 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5517           no_cache=0
5518           # Check whether --enable-filesystem or --disable-filesystem was given.
5519 if test "${enable_filesystem+set}" = set; then
5520   enableval="$enable_filesystem"
5521
5522                           if test "$enableval" = yes; then
5523                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5524                           else
5525                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5526                           fi
5527
5528 else
5529
5530                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5531                           if test "x$LINE" != x ; then
5532                             eval "DEFAULT_$LINE"
5533                           else
5534                             no_cache=1
5535                           fi
5536
5537                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5538
5539 fi;
5540
5541           eval "$ac_cv_use_filesystem"
5542           if test "$no_cache" != 1; then
5543             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5544           fi
5545
5546           if test "$wxUSE_FILESYSTEM" = yes; then
5547             echo "$as_me:$LINENO: result: yes" >&5
5548 echo "${ECHO_T}yes" >&6
5549           else
5550             echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6
5552           fi
5553
5554
5555           enablestring=
5556           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5557 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5558           no_cache=0
5559           # Check whether --enable-fontmap or --disable-fontmap was given.
5560 if test "${enable_fontmap+set}" = set; then
5561   enableval="$enable_fontmap"
5562
5563                           if test "$enableval" = yes; then
5564                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5565                           else
5566                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5567                           fi
5568
5569 else
5570
5571                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5572                           if test "x$LINE" != x ; then
5573                             eval "DEFAULT_$LINE"
5574                           else
5575                             no_cache=1
5576                           fi
5577
5578                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5579
5580 fi;
5581
5582           eval "$ac_cv_use_fontmap"
5583           if test "$no_cache" != 1; then
5584             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5585           fi
5586
5587           if test "$wxUSE_FONTMAP" = yes; then
5588             echo "$as_me:$LINENO: result: yes" >&5
5589 echo "${ECHO_T}yes" >&6
5590           else
5591             echo "$as_me:$LINENO: result: no" >&5
5592 echo "${ECHO_T}no" >&6
5593           fi
5594
5595
5596           enablestring=
5597           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5598 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5599           no_cache=0
5600           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5601 if test "${enable_fs_inet+set}" = set; then
5602   enableval="$enable_fs_inet"
5603
5604                           if test "$enableval" = yes; then
5605                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5606                           else
5607                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5608                           fi
5609
5610 else
5611
5612                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5613                           if test "x$LINE" != x ; then
5614                             eval "DEFAULT_$LINE"
5615                           else
5616                             no_cache=1
5617                           fi
5618
5619                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5620
5621 fi;
5622
5623           eval "$ac_cv_use_fs_inet"
5624           if test "$no_cache" != 1; then
5625             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5626           fi
5627
5628           if test "$wxUSE_FS_INET" = yes; then
5629             echo "$as_me:$LINENO: result: yes" >&5
5630 echo "${ECHO_T}yes" >&6
5631           else
5632             echo "$as_me:$LINENO: result: no" >&5
5633 echo "${ECHO_T}no" >&6
5634           fi
5635
5636
5637           enablestring=
5638           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5639 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5640           no_cache=0
5641           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5642 if test "${enable_fs_zip+set}" = set; then
5643   enableval="$enable_fs_zip"
5644
5645                           if test "$enableval" = yes; then
5646                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5647                           else
5648                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5649                           fi
5650
5651 else
5652
5653                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5654                           if test "x$LINE" != x ; then
5655                             eval "DEFAULT_$LINE"
5656                           else
5657                             no_cache=1
5658                           fi
5659
5660                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5661
5662 fi;
5663
5664           eval "$ac_cv_use_fs_zip"
5665           if test "$no_cache" != 1; then
5666             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5667           fi
5668
5669           if test "$wxUSE_FS_ZIP" = yes; then
5670             echo "$as_me:$LINENO: result: yes" >&5
5671 echo "${ECHO_T}yes" >&6
5672           else
5673             echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6
5675           fi
5676
5677
5678           enablestring=
5679           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5680 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5681           no_cache=0
5682           # Check whether --enable-geometry or --disable-geometry was given.
5683 if test "${enable_geometry+set}" = set; then
5684   enableval="$enable_geometry"
5685
5686                           if test "$enableval" = yes; then
5687                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5688                           else
5689                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5690                           fi
5691
5692 else
5693
5694                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5695                           if test "x$LINE" != x ; then
5696                             eval "DEFAULT_$LINE"
5697                           else
5698                             no_cache=1
5699                           fi
5700
5701                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5702
5703 fi;
5704
5705           eval "$ac_cv_use_geometry"
5706           if test "$no_cache" != 1; then
5707             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5708           fi
5709
5710           if test "$wxUSE_GEOMETRY" = yes; then
5711             echo "$as_me:$LINENO: result: yes" >&5
5712 echo "${ECHO_T}yes" >&6
5713           else
5714             echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6
5716           fi
5717
5718
5719           enablestring=
5720           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5721 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5722           no_cache=0
5723           # Check whether --enable-log or --disable-log was given.
5724 if test "${enable_log+set}" = set; then
5725   enableval="$enable_log"
5726
5727                           if test "$enableval" = yes; then
5728                             ac_cv_use_log='wxUSE_LOG=yes'
5729                           else
5730                             ac_cv_use_log='wxUSE_LOG=no'
5731                           fi
5732
5733 else
5734
5735                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5736                           if test "x$LINE" != x ; then
5737                             eval "DEFAULT_$LINE"
5738                           else
5739                             no_cache=1
5740                           fi
5741
5742                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5743
5744 fi;
5745
5746           eval "$ac_cv_use_log"
5747           if test "$no_cache" != 1; then
5748             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5749           fi
5750
5751           if test "$wxUSE_LOG" = yes; then
5752             echo "$as_me:$LINENO: result: yes" >&5
5753 echo "${ECHO_T}yes" >&6
5754           else
5755             echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757           fi
5758
5759
5760           enablestring=
5761           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5762 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5763           no_cache=0
5764           # Check whether --enable-longlong or --disable-longlong was given.
5765 if test "${enable_longlong+set}" = set; then
5766   enableval="$enable_longlong"
5767
5768                           if test "$enableval" = yes; then
5769                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5770                           else
5771                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5772                           fi
5773
5774 else
5775
5776                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5777                           if test "x$LINE" != x ; then
5778                             eval "DEFAULT_$LINE"
5779                           else
5780                             no_cache=1
5781                           fi
5782
5783                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5784
5785 fi;
5786
5787           eval "$ac_cv_use_longlong"
5788           if test "$no_cache" != 1; then
5789             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5790           fi
5791
5792           if test "$wxUSE_LONGLONG" = yes; then
5793             echo "$as_me:$LINENO: result: yes" >&5
5794 echo "${ECHO_T}yes" >&6
5795           else
5796             echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5798           fi
5799
5800
5801           enablestring=
5802           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5803 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5804           no_cache=0
5805           # Check whether --enable-mimetype or --disable-mimetype was given.
5806 if test "${enable_mimetype+set}" = set; then
5807   enableval="$enable_mimetype"
5808
5809                           if test "$enableval" = yes; then
5810                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5811                           else
5812                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5813                           fi
5814
5815 else
5816
5817                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5818                           if test "x$LINE" != x ; then
5819                             eval "DEFAULT_$LINE"
5820                           else
5821                             no_cache=1
5822                           fi
5823
5824                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5825
5826 fi;
5827
5828           eval "$ac_cv_use_mimetype"
5829           if test "$no_cache" != 1; then
5830             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5831           fi
5832
5833           if test "$wxUSE_MIMETYPE" = yes; then
5834             echo "$as_me:$LINENO: result: yes" >&5
5835 echo "${ECHO_T}yes" >&6
5836           else
5837             echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6
5839           fi
5840
5841
5842           enablestring=
5843           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5844 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5845           no_cache=0
5846           # Check whether --enable-mslu or --disable-mslu was given.
5847 if test "${enable_mslu+set}" = set; then
5848   enableval="$enable_mslu"
5849
5850                           if test "$enableval" = yes; then
5851                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5852                           else
5853                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5854                           fi
5855
5856 else
5857
5858                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5859                           if test "x$LINE" != x ; then
5860                             eval "DEFAULT_$LINE"
5861                           else
5862                             no_cache=1
5863                           fi
5864
5865                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5866
5867 fi;
5868
5869           eval "$ac_cv_use_mslu"
5870           if test "$no_cache" != 1; then
5871             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5872           fi
5873
5874           if test "$wxUSE_UNICODE_MSLU" = yes; then
5875             echo "$as_me:$LINENO: result: yes" >&5
5876 echo "${ECHO_T}yes" >&6
5877           else
5878             echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880           fi
5881
5882
5883           enablestring=
5884           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5885 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5886           no_cache=0
5887           # Check whether --enable-snglinst or --disable-snglinst was given.
5888 if test "${enable_snglinst+set}" = set; then
5889   enableval="$enable_snglinst"
5890
5891                           if test "$enableval" = yes; then
5892                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5893                           else
5894                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5895                           fi
5896
5897 else
5898
5899                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5900                           if test "x$LINE" != x ; then
5901                             eval "DEFAULT_$LINE"
5902                           else
5903                             no_cache=1
5904                           fi
5905
5906                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5907
5908 fi;
5909
5910           eval "$ac_cv_use_snglinst"
5911           if test "$no_cache" != 1; then
5912             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5913           fi
5914
5915           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5916             echo "$as_me:$LINENO: result: yes" >&5
5917 echo "${ECHO_T}yes" >&6
5918           else
5919             echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921           fi
5922
5923
5924           enablestring=
5925           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5926 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5927           no_cache=0
5928           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5929 if test "${enable_std_iostreams+set}" = set; then
5930   enableval="$enable_std_iostreams"
5931
5932                           if test "$enableval" = yes; then
5933                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5934                           else
5935                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5936                           fi
5937
5938 else
5939
5940                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5941                           if test "x$LINE" != x ; then
5942                             eval "DEFAULT_$LINE"
5943                           else
5944                             no_cache=1
5945                           fi
5946
5947                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5948
5949 fi;
5950
5951           eval "$ac_cv_use_std_iostreams"
5952           if test "$no_cache" != 1; then
5953             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5954           fi
5955
5956           if test "$wxUSE_STD_IOSTREAM" = yes; then
5957             echo "$as_me:$LINENO: result: yes" >&5
5958 echo "${ECHO_T}yes" >&6
5959           else
5960             echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5962           fi
5963
5964
5965           enablestring=
5966           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5967 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5968           no_cache=0
5969           # Check whether --enable-std_string or --disable-std_string was given.
5970 if test "${enable_std_string+set}" = set; then
5971   enableval="$enable_std_string"
5972
5973                           if test "$enableval" = yes; then
5974                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5975                           else
5976                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5977                           fi
5978
5979 else
5980
5981                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5982                           if test "x$LINE" != x ; then
5983                             eval "DEFAULT_$LINE"
5984                           else
5985                             no_cache=1
5986                           fi
5987
5988                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5989
5990 fi;
5991
5992           eval "$ac_cv_use_std_string"
5993           if test "$no_cache" != 1; then
5994             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5995           fi
5996
5997           if test "$wxUSE_STD_STRING" = yes; then
5998             echo "$as_me:$LINENO: result: yes" >&5
5999 echo "${ECHO_T}yes" >&6
6000           else
6001             echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6
6003           fi
6004
6005
6006           enablestring=
6007           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6008 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
6009           no_cache=0
6010           # Check whether --enable-stdpaths or --disable-stdpaths was given.
6011 if test "${enable_stdpaths+set}" = set; then
6012   enableval="$enable_stdpaths"
6013
6014                           if test "$enableval" = yes; then
6015                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
6016                           else
6017                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
6018                           fi
6019
6020 else
6021
6022                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
6023                           if test "x$LINE" != x ; then
6024                             eval "DEFAULT_$LINE"
6025                           else
6026                             no_cache=1
6027                           fi
6028
6029                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
6030
6031 fi;
6032
6033           eval "$ac_cv_use_stdpaths"
6034           if test "$no_cache" != 1; then
6035             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
6036           fi
6037
6038           if test "$wxUSE_STDPATHS" = yes; then
6039             echo "$as_me:$LINENO: result: yes" >&5
6040 echo "${ECHO_T}yes" >&6
6041           else
6042             echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6
6044           fi
6045
6046
6047           enablestring=
6048           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6049 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6050           no_cache=0
6051           # Check whether --enable-stopwatch or --disable-stopwatch was given.
6052 if test "${enable_stopwatch+set}" = set; then
6053   enableval="$enable_stopwatch"
6054
6055                           if test "$enableval" = yes; then
6056                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6057                           else
6058                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6059                           fi
6060
6061 else
6062
6063                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6064                           if test "x$LINE" != x ; then
6065                             eval "DEFAULT_$LINE"
6066                           else
6067                             no_cache=1
6068                           fi
6069
6070                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6071
6072 fi;
6073
6074           eval "$ac_cv_use_stopwatch"
6075           if test "$no_cache" != 1; then
6076             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6077           fi
6078
6079           if test "$wxUSE_STOPWATCH" = yes; then
6080             echo "$as_me:$LINENO: result: yes" >&5
6081 echo "${ECHO_T}yes" >&6
6082           else
6083             echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6
6085           fi
6086
6087
6088           enablestring=
6089           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6090 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6091           no_cache=0
6092           # Check whether --enable-streams or --disable-streams was given.
6093 if test "${enable_streams+set}" = set; then
6094   enableval="$enable_streams"
6095
6096                           if test "$enableval" = yes; then
6097                             ac_cv_use_streams='wxUSE_STREAMS=yes'
6098                           else
6099                             ac_cv_use_streams='wxUSE_STREAMS=no'
6100                           fi
6101
6102 else
6103
6104                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6105                           if test "x$LINE" != x ; then
6106                             eval "DEFAULT_$LINE"
6107                           else
6108                             no_cache=1
6109                           fi
6110
6111                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6112
6113 fi;
6114
6115           eval "$ac_cv_use_streams"
6116           if test "$no_cache" != 1; then
6117             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6118           fi
6119
6120           if test "$wxUSE_STREAMS" = yes; then
6121             echo "$as_me:$LINENO: result: yes" >&5
6122 echo "${ECHO_T}yes" >&6
6123           else
6124             echo "$as_me:$LINENO: result: no" >&5
6125 echo "${ECHO_T}no" >&6
6126           fi
6127
6128
6129           enablestring=
6130           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6131 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6132           no_cache=0
6133           # Check whether --enable-system_options or --disable-system_options was given.
6134 if test "${enable_system_options+set}" = set; then
6135   enableval="$enable_system_options"
6136
6137                           if test "$enableval" = yes; then
6138                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6139                           else
6140                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6141                           fi
6142
6143 else
6144
6145                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6146                           if test "x$LINE" != x ; then
6147                             eval "DEFAULT_$LINE"
6148                           else
6149                             no_cache=1
6150                           fi
6151
6152                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6153
6154 fi;
6155
6156           eval "$ac_cv_use_system_options"
6157           if test "$no_cache" != 1; then
6158             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6159           fi
6160
6161           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6162             echo "$as_me:$LINENO: result: yes" >&5
6163 echo "${ECHO_T}yes" >&6
6164           else
6165             echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6167           fi
6168
6169
6170           enablestring=
6171           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6172 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6173           no_cache=0
6174           # Check whether --enable-textbuf or --disable-textbuf was given.
6175 if test "${enable_textbuf+set}" = set; then
6176   enableval="$enable_textbuf"
6177
6178                           if test "$enableval" = yes; then
6179                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6180                           else
6181                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6182                           fi
6183
6184 else
6185
6186                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6187                           if test "x$LINE" != x ; then
6188                             eval "DEFAULT_$LINE"
6189                           else
6190                             no_cache=1
6191                           fi
6192
6193                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6194
6195 fi;
6196
6197           eval "$ac_cv_use_textbuf"
6198           if test "$no_cache" != 1; then
6199             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6200           fi
6201
6202           if test "$wxUSE_TEXTBUFFER" = yes; then
6203             echo "$as_me:$LINENO: result: yes" >&5
6204 echo "${ECHO_T}yes" >&6
6205           else
6206             echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6
6208           fi
6209
6210
6211           enablestring=
6212           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6213 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6214           no_cache=0
6215           # Check whether --enable-textfile or --disable-textfile was given.
6216 if test "${enable_textfile+set}" = set; then
6217   enableval="$enable_textfile"
6218
6219                           if test "$enableval" = yes; then
6220                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6221                           else
6222                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6223                           fi
6224
6225 else
6226
6227                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6228                           if test "x$LINE" != x ; then
6229                             eval "DEFAULT_$LINE"
6230                           else
6231                             no_cache=1
6232                           fi
6233
6234                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6235
6236 fi;
6237
6238           eval "$ac_cv_use_textfile"
6239           if test "$no_cache" != 1; then
6240             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6241           fi
6242
6243           if test "$wxUSE_TEXTFILE" = yes; then
6244             echo "$as_me:$LINENO: result: yes" >&5
6245 echo "${ECHO_T}yes" >&6
6246           else
6247             echo "$as_me:$LINENO: result: no" >&5
6248 echo "${ECHO_T}no" >&6
6249           fi
6250
6251
6252           enablestring=
6253           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6254 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6255           no_cache=0
6256           # Check whether --enable-timer or --disable-timer was given.
6257 if test "${enable_timer+set}" = set; then
6258   enableval="$enable_timer"
6259
6260                           if test "$enableval" = yes; then
6261                             ac_cv_use_timer='wxUSE_TIMER=yes'
6262                           else
6263                             ac_cv_use_timer='wxUSE_TIMER=no'
6264                           fi
6265
6266 else
6267
6268                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6269                           if test "x$LINE" != x ; then
6270                             eval "DEFAULT_$LINE"
6271                           else
6272                             no_cache=1
6273                           fi
6274
6275                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6276
6277 fi;
6278
6279           eval "$ac_cv_use_timer"
6280           if test "$no_cache" != 1; then
6281             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6282           fi
6283
6284           if test "$wxUSE_TIMER" = yes; then
6285             echo "$as_me:$LINENO: result: yes" >&5
6286 echo "${ECHO_T}yes" >&6
6287           else
6288             echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6
6290           fi
6291
6292
6293           enablestring=
6294           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6295 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6296           no_cache=0
6297           # Check whether --enable-unicode or --disable-unicode was given.
6298 if test "${enable_unicode+set}" = set; then
6299   enableval="$enable_unicode"
6300
6301                           if test "$enableval" = yes; then
6302                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
6303                           else
6304                             ac_cv_use_unicode='wxUSE_UNICODE=no'
6305                           fi
6306
6307 else
6308
6309                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6310                           if test "x$LINE" != x ; then
6311                             eval "DEFAULT_$LINE"
6312                           else
6313                             no_cache=1
6314                           fi
6315
6316                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6317
6318 fi;
6319
6320           eval "$ac_cv_use_unicode"
6321           if test "$no_cache" != 1; then
6322             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6323           fi
6324
6325           if test "$wxUSE_UNICODE" = yes; then
6326             echo "$as_me:$LINENO: result: yes" >&5
6327 echo "${ECHO_T}yes" >&6
6328           else
6329             echo "$as_me:$LINENO: result: no" >&5
6330 echo "${ECHO_T}no" >&6
6331           fi
6332
6333
6334           enablestring=
6335           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6336 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6337           no_cache=0
6338           # Check whether --enable-sound or --disable-sound was given.
6339 if test "${enable_sound+set}" = set; then
6340   enableval="$enable_sound"
6341
6342                           if test "$enableval" = yes; then
6343                             ac_cv_use_sound='wxUSE_SOUND=yes'
6344                           else
6345                             ac_cv_use_sound='wxUSE_SOUND=no'
6346                           fi
6347
6348 else
6349
6350                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6351                           if test "x$LINE" != x ; then
6352                             eval "DEFAULT_$LINE"
6353                           else
6354                             no_cache=1
6355                           fi
6356
6357                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6358
6359 fi;
6360
6361           eval "$ac_cv_use_sound"
6362           if test "$no_cache" != 1; then
6363             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6364           fi
6365
6366           if test "$wxUSE_SOUND" = yes; then
6367             echo "$as_me:$LINENO: result: yes" >&5
6368 echo "${ECHO_T}yes" >&6
6369           else
6370             echo "$as_me:$LINENO: result: no" >&5
6371 echo "${ECHO_T}no" >&6
6372           fi
6373
6374
6375           enablestring=
6376           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6377 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6378           no_cache=0
6379           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6380 if test "${enable_mediactrl+set}" = set; then
6381   enableval="$enable_mediactrl"
6382
6383                           if test "$enableval" = yes; then
6384                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6385                           else
6386                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6387                           fi
6388
6389 else
6390
6391                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6392                           if test "x$LINE" != x ; then
6393                             eval "DEFAULT_$LINE"
6394                           else
6395                             no_cache=1
6396                           fi
6397
6398                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6399
6400 fi;
6401
6402           eval "$ac_cv_use_mediactrl"
6403           if test "$no_cache" != 1; then
6404             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6405           fi
6406
6407           if test "$wxUSE_MEDIACTRL" = yes; then
6408             echo "$as_me:$LINENO: result: yes" >&5
6409 echo "${ECHO_T}yes" >&6
6410           else
6411             echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6
6413           fi
6414
6415
6416           enablestring=
6417           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6418 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6419           no_cache=0
6420           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6421 if test "${enable_gstreamer8+set}" = set; then
6422   enableval="$enable_gstreamer8"
6423
6424                           if test "$enableval" = yes; then
6425                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6426                           else
6427                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6428                           fi
6429
6430 else
6431
6432                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6433                           if test "x$LINE" != x ; then
6434                             eval "DEFAULT_$LINE"
6435                           else
6436                             no_cache=1
6437                           fi
6438
6439                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6440
6441 fi;
6442
6443           eval "$ac_cv_use_gstreamer8"
6444           if test "$no_cache" != 1; then
6445             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6446           fi
6447
6448           if test "$wxUSE_GSTREAMER8" = yes; then
6449             echo "$as_me:$LINENO: result: yes" >&5
6450 echo "${ECHO_T}yes" >&6
6451           else
6452             echo "$as_me:$LINENO: result: no" >&5
6453 echo "${ECHO_T}no" >&6
6454           fi
6455
6456
6457           enablestring=
6458           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6459 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
6460           no_cache=0
6461           # Check whether --enable-printfposparam or --disable-printfposparam was given.
6462 if test "${enable_printfposparam+set}" = set; then
6463   enableval="$enable_printfposparam"
6464
6465                           if test "$enableval" = yes; then
6466                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
6467                           else
6468                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
6469                           fi
6470
6471 else
6472
6473                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
6474                           if test "x$LINE" != x ; then
6475                             eval "DEFAULT_$LINE"
6476                           else
6477                             no_cache=1
6478                           fi
6479
6480                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
6481
6482 fi;
6483
6484           eval "$ac_cv_use_printfposparam"
6485           if test "$no_cache" != 1; then
6486             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
6487           fi
6488
6489           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
6490             echo "$as_me:$LINENO: result: yes" >&5
6491 echo "${ECHO_T}yes" >&6
6492           else
6493             echo "$as_me:$LINENO: result: no" >&5
6494 echo "${ECHO_T}no" >&6
6495           fi
6496
6497
6498           enablestring=
6499           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6500 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6501           no_cache=0
6502           # Check whether --enable-zipstream or --disable-zipstream was given.
6503 if test "${enable_zipstream+set}" = set; then
6504   enableval="$enable_zipstream"
6505
6506                           if test "$enableval" = yes; then
6507                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6508                           else
6509                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6510                           fi
6511
6512 else
6513
6514                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6515                           if test "x$LINE" != x ; then
6516                             eval "DEFAULT_$LINE"
6517                           else
6518                             no_cache=1
6519                           fi
6520
6521                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6522
6523 fi;
6524
6525           eval "$ac_cv_use_zipstream"
6526           if test "$no_cache" != 1; then
6527             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6528           fi
6529
6530           if test "$wxUSE_ZIPSTREAM" = yes; then
6531             echo "$as_me:$LINENO: result: yes" >&5
6532 echo "${ECHO_T}yes" >&6
6533           else
6534             echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6
6536           fi
6537
6538
6539
6540           enablestring=
6541           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6542 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6543           no_cache=0
6544           # Check whether --enable-url or --disable-url was given.
6545 if test "${enable_url+set}" = set; then
6546   enableval="$enable_url"
6547
6548                           if test "$enableval" = yes; then
6549                             ac_cv_use_url='wxUSE_URL=yes'
6550                           else
6551                             ac_cv_use_url='wxUSE_URL=no'
6552                           fi
6553
6554 else
6555
6556                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6557                           if test "x$LINE" != x ; then
6558                             eval "DEFAULT_$LINE"
6559                           else
6560                             no_cache=1
6561                           fi
6562
6563                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6564
6565 fi;
6566
6567           eval "$ac_cv_use_url"
6568           if test "$no_cache" != 1; then
6569             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6570           fi
6571
6572           if test "$wxUSE_URL" = yes; then
6573             echo "$as_me:$LINENO: result: yes" >&5
6574 echo "${ECHO_T}yes" >&6
6575           else
6576             echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6
6578           fi
6579
6580
6581           enablestring=
6582           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6583 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6584           no_cache=0
6585           # Check whether --enable-variant or --disable-variant was given.
6586 if test "${enable_variant+set}" = set; then
6587   enableval="$enable_variant"
6588
6589                           if test "$enableval" = yes; then
6590                             ac_cv_use_variant='wxUSE_VARIANT=yes'
6591                           else
6592                             ac_cv_use_variant='wxUSE_VARIANT=no'
6593                           fi
6594
6595 else
6596
6597                           LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6598                           if test "x$LINE" != x ; then
6599                             eval "DEFAULT_$LINE"
6600                           else
6601                             no_cache=1
6602                           fi
6603
6604                           ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6605
6606 fi;
6607
6608           eval "$ac_cv_use_variant"
6609           if test "$no_cache" != 1; then
6610             echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6611           fi
6612
6613           if test "$wxUSE_VARIANT" = yes; then
6614             echo "$as_me:$LINENO: result: yes" >&5
6615 echo "${ECHO_T}yes" >&6
6616           else
6617             echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6
6619           fi
6620
6621
6622           enablestring=
6623           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6624 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6625           no_cache=0
6626           # Check whether --enable-protocol or --disable-protocol was given.
6627 if test "${enable_protocol+set}" = set; then
6628   enableval="$enable_protocol"
6629
6630                           if test "$enableval" = yes; then
6631                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6632                           else
6633                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6634                           fi
6635
6636 else
6637
6638                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6639                           if test "x$LINE" != x ; then
6640                             eval "DEFAULT_$LINE"
6641                           else
6642                             no_cache=1
6643                           fi
6644
6645                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6646
6647 fi;
6648
6649           eval "$ac_cv_use_protocol"
6650           if test "$no_cache" != 1; then
6651             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6652           fi
6653
6654           if test "$wxUSE_PROTOCOL" = yes; then
6655             echo "$as_me:$LINENO: result: yes" >&5
6656 echo "${ECHO_T}yes" >&6
6657           else
6658             echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6
6660           fi
6661
6662
6663           enablestring=
6664           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6665 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6666           no_cache=0
6667           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6668 if test "${enable_protocol_http+set}" = set; then
6669   enableval="$enable_protocol_http"
6670
6671                           if test "$enableval" = yes; then
6672                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6673                           else
6674                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6675                           fi
6676
6677 else
6678
6679                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6680                           if test "x$LINE" != x ; then
6681                             eval "DEFAULT_$LINE"
6682                           else
6683                             no_cache=1
6684                           fi
6685
6686                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6687
6688 fi;
6689
6690           eval "$ac_cv_use_protocol_http"
6691           if test "$no_cache" != 1; then
6692             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6693           fi
6694
6695           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6696             echo "$as_me:$LINENO: result: yes" >&5
6697 echo "${ECHO_T}yes" >&6
6698           else
6699             echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6
6701           fi
6702
6703
6704           enablestring=
6705           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6706 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6707           no_cache=0
6708           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6709 if test "${enable_protocol_ftp+set}" = set; then
6710   enableval="$enable_protocol_ftp"
6711
6712                           if test "$enableval" = yes; then
6713                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6714                           else
6715                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6716                           fi
6717
6718 else
6719
6720                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6721                           if test "x$LINE" != x ; then
6722                             eval "DEFAULT_$LINE"
6723                           else
6724                             no_cache=1
6725                           fi
6726
6727                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6728
6729 fi;
6730
6731           eval "$ac_cv_use_protocol_ftp"
6732           if test "$no_cache" != 1; then
6733             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6734           fi
6735
6736           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6737             echo "$as_me:$LINENO: result: yes" >&5
6738 echo "${ECHO_T}yes" >&6
6739           else
6740             echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6
6742           fi
6743
6744
6745           enablestring=
6746           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6747 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6748           no_cache=0
6749           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6750 if test "${enable_protocol_file+set}" = set; then
6751   enableval="$enable_protocol_file"
6752
6753                           if test "$enableval" = yes; then
6754                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6755                           else
6756                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6757                           fi
6758
6759 else
6760
6761                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6762                           if test "x$LINE" != x ; then
6763                             eval "DEFAULT_$LINE"
6764                           else
6765                             no_cache=1
6766                           fi
6767
6768                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6769
6770 fi;
6771
6772           eval "$ac_cv_use_protocol_file"
6773           if test "$no_cache" != 1; then
6774             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6775           fi
6776
6777           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6778             echo "$as_me:$LINENO: result: yes" >&5
6779 echo "${ECHO_T}yes" >&6
6780           else
6781             echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6
6783           fi
6784
6785
6786
6787
6788
6789           enablestring=
6790           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6791 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6792           no_cache=0
6793           # Check whether --enable-threads or --disable-threads was given.
6794 if test "${enable_threads+set}" = set; then
6795   enableval="$enable_threads"
6796
6797                           if test "$enableval" = yes; then
6798                             ac_cv_use_threads='wxUSE_THREADS=yes'
6799                           else
6800                             ac_cv_use_threads='wxUSE_THREADS=no'
6801                           fi
6802
6803 else
6804
6805                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6806                           if test "x$LINE" != x ; then
6807                             eval "DEFAULT_$LINE"
6808                           else
6809                             no_cache=1
6810                           fi
6811
6812                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6813
6814 fi;
6815
6816           eval "$ac_cv_use_threads"
6817           if test "$no_cache" != 1; then
6818             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6819           fi
6820
6821           if test "$wxUSE_THREADS" = yes; then
6822             echo "$as_me:$LINENO: result: yes" >&5
6823 echo "${ECHO_T}yes" >&6
6824           else
6825             echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6
6827           fi
6828
6829
6830 if test "$wxUSE_GUI" = "yes"; then
6831
6832
6833
6834           enablestring=
6835           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6836 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6837           no_cache=0
6838           # Check whether --enable-docview or --disable-docview was given.
6839 if test "${enable_docview+set}" = set; then
6840   enableval="$enable_docview"
6841
6842                           if test "$enableval" = yes; then
6843                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6844                           else
6845                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6846                           fi
6847
6848 else
6849
6850                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6851                           if test "x$LINE" != x ; then
6852                             eval "DEFAULT_$LINE"
6853                           else
6854                             no_cache=1
6855                           fi
6856
6857                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6858
6859 fi;
6860
6861           eval "$ac_cv_use_docview"
6862           if test "$no_cache" != 1; then
6863             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6864           fi
6865
6866           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6867             echo "$as_me:$LINENO: result: yes" >&5
6868 echo "${ECHO_T}yes" >&6
6869           else
6870             echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6
6872           fi
6873
6874
6875           enablestring=
6876           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6877 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6878           no_cache=0
6879           # Check whether --enable-help or --disable-help was given.
6880 if test "${enable_help+set}" = set; then
6881   enableval="$enable_help"
6882
6883                           if test "$enableval" = yes; then
6884                             ac_cv_use_help='wxUSE_HELP=yes'
6885                           else
6886                             ac_cv_use_help='wxUSE_HELP=no'
6887                           fi
6888
6889 else
6890
6891                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6892                           if test "x$LINE" != x ; then
6893                             eval "DEFAULT_$LINE"
6894                           else
6895                             no_cache=1
6896                           fi
6897
6898                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6899
6900 fi;
6901
6902           eval "$ac_cv_use_help"
6903           if test "$no_cache" != 1; then
6904             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6905           fi
6906
6907           if test "$wxUSE_HELP" = yes; then
6908             echo "$as_me:$LINENO: result: yes" >&5
6909 echo "${ECHO_T}yes" >&6
6910           else
6911             echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6
6913           fi
6914
6915
6916           enablestring=
6917           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6918 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6919           no_cache=0
6920           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6921 if test "${enable_mshtmlhelp+set}" = set; then
6922   enableval="$enable_mshtmlhelp"
6923
6924                           if test "$enableval" = yes; then
6925                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6926                           else
6927                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6928                           fi
6929
6930 else
6931
6932                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6933                           if test "x$LINE" != x ; then
6934                             eval "DEFAULT_$LINE"
6935                           else
6936                             no_cache=1
6937                           fi
6938
6939                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6940
6941 fi;
6942
6943           eval "$ac_cv_use_mshtmlhelp"
6944           if test "$no_cache" != 1; then
6945             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6946           fi
6947
6948           if test "$wxUSE_MS_HTML_HELP" = yes; then
6949             echo "$as_me:$LINENO: result: yes" >&5
6950 echo "${ECHO_T}yes" >&6
6951           else
6952             echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6
6954           fi
6955
6956
6957           enablestring=
6958           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6959 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6960           no_cache=0
6961           # Check whether --enable-html or --disable-html was given.
6962 if test "${enable_html+set}" = set; then
6963   enableval="$enable_html"
6964
6965                           if test "$enableval" = yes; then
6966                             ac_cv_use_html='wxUSE_HTML=yes'
6967                           else
6968                             ac_cv_use_html='wxUSE_HTML=no'
6969                           fi
6970
6971 else
6972
6973                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6974                           if test "x$LINE" != x ; then
6975                             eval "DEFAULT_$LINE"
6976                           else
6977                             no_cache=1
6978                           fi
6979
6980                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6981
6982 fi;
6983
6984           eval "$ac_cv_use_html"
6985           if test "$no_cache" != 1; then
6986             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6987           fi
6988
6989           if test "$wxUSE_HTML" = yes; then
6990             echo "$as_me:$LINENO: result: yes" >&5
6991 echo "${ECHO_T}yes" >&6
6992           else
6993             echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6
6995           fi
6996
6997
6998           enablestring=
6999           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7000 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7001           no_cache=0
7002           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7003 if test "${enable_htmlhelp+set}" = set; then
7004   enableval="$enable_htmlhelp"
7005
7006                           if test "$enableval" = yes; then
7007                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7008                           else
7009                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7010                           fi
7011
7012 else
7013
7014                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7015                           if test "x$LINE" != x ; then
7016                             eval "DEFAULT_$LINE"
7017                           else
7018                             no_cache=1
7019                           fi
7020
7021                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7022
7023 fi;
7024
7025           eval "$ac_cv_use_htmlhelp"
7026           if test "$no_cache" != 1; then
7027             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7028           fi
7029
7030           if test "$wxUSE_WXHTML_HELP" = yes; then
7031             echo "$as_me:$LINENO: result: yes" >&5
7032 echo "${ECHO_T}yes" >&6
7033           else
7034             echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6
7036           fi
7037
7038
7039           enablestring=
7040           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7041 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7042           no_cache=0
7043           # Check whether --enable-xrc or --disable-xrc was given.
7044 if test "${enable_xrc+set}" = set; then
7045   enableval="$enable_xrc"
7046
7047                           if test "$enableval" = yes; then
7048                             ac_cv_use_xrc='wxUSE_XRC=yes'
7049                           else
7050                             ac_cv_use_xrc='wxUSE_XRC=no'
7051                           fi
7052
7053 else
7054
7055                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7056                           if test "x$LINE" != x ; then
7057                             eval "DEFAULT_$LINE"
7058                           else
7059                             no_cache=1
7060                           fi
7061
7062                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7063
7064 fi;
7065
7066           eval "$ac_cv_use_xrc"
7067           if test "$no_cache" != 1; then
7068             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7069           fi
7070
7071           if test "$wxUSE_XRC" = yes; then
7072             echo "$as_me:$LINENO: result: yes" >&5
7073 echo "${ECHO_T}yes" >&6
7074           else
7075             echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6
7077           fi
7078
7079
7080           enablestring=
7081           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7082 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7083           no_cache=0
7084           # Check whether --enable-aui or --disable-aui was given.
7085 if test "${enable_aui+set}" = set; then
7086   enableval="$enable_aui"
7087
7088                           if test "$enableval" = yes; then
7089                             ac_cv_use_aui='wxUSE_AUI=yes'
7090                           else
7091                             ac_cv_use_aui='wxUSE_AUI=no'
7092                           fi
7093
7094 else
7095
7096                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7097                           if test "x$LINE" != x ; then
7098                             eval "DEFAULT_$LINE"
7099                           else
7100                             no_cache=1
7101                           fi
7102
7103                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7104
7105 fi;
7106
7107           eval "$ac_cv_use_aui"
7108           if test "$no_cache" != 1; then
7109             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7110           fi
7111
7112           if test "$wxUSE_AUI" = yes; then
7113             echo "$as_me:$LINENO: result: yes" >&5
7114 echo "${ECHO_T}yes" >&6
7115           else
7116             echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6
7118           fi
7119
7120
7121           enablestring=
7122           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7123 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7124           no_cache=0
7125           # Check whether --enable-constraints or --disable-constraints was given.
7126 if test "${enable_constraints+set}" = set; then
7127   enableval="$enable_constraints"
7128
7129                           if test "$enableval" = yes; then
7130                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7131                           else
7132                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7133                           fi
7134
7135 else
7136
7137                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7138                           if test "x$LINE" != x ; then
7139                             eval "DEFAULT_$LINE"
7140                           else
7141                             no_cache=1
7142                           fi
7143
7144                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7145
7146 fi;
7147
7148           eval "$ac_cv_use_constraints"
7149           if test "$no_cache" != 1; then
7150             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7151           fi
7152
7153           if test "$wxUSE_CONSTRAINTS" = yes; then
7154             echo "$as_me:$LINENO: result: yes" >&5
7155 echo "${ECHO_T}yes" >&6
7156           else
7157             echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6
7159           fi
7160
7161
7162           enablestring=
7163           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7164 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7165           no_cache=0
7166           # Check whether --enable-printarch or --disable-printarch was given.
7167 if test "${enable_printarch+set}" = set; then
7168   enableval="$enable_printarch"
7169
7170                           if test "$enableval" = yes; then
7171                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7172                           else
7173                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7174                           fi
7175
7176 else
7177
7178                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7179                           if test "x$LINE" != x ; then
7180                             eval "DEFAULT_$LINE"
7181                           else
7182                             no_cache=1
7183                           fi
7184
7185                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7186
7187 fi;
7188
7189           eval "$ac_cv_use_printarch"
7190           if test "$no_cache" != 1; then
7191             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7192           fi
7193
7194           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7195             echo "$as_me:$LINENO: result: yes" >&5
7196 echo "${ECHO_T}yes" >&6
7197           else
7198             echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7200           fi
7201
7202
7203           enablestring=
7204           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7205 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7206           no_cache=0
7207           # Check whether --enable-mdi or --disable-mdi was given.
7208 if test "${enable_mdi+set}" = set; then
7209   enableval="$enable_mdi"
7210
7211                           if test "$enableval" = yes; then
7212                             ac_cv_use_mdi='wxUSE_MDI=yes'
7213                           else
7214                             ac_cv_use_mdi='wxUSE_MDI=no'
7215                           fi
7216
7217 else
7218
7219                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
7220                           if test "x$LINE" != x ; then
7221                             eval "DEFAULT_$LINE"
7222                           else
7223                             no_cache=1
7224                           fi
7225
7226                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7227
7228 fi;
7229
7230           eval "$ac_cv_use_mdi"
7231           if test "$no_cache" != 1; then
7232             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7233           fi
7234
7235           if test "$wxUSE_MDI" = yes; then
7236             echo "$as_me:$LINENO: result: yes" >&5
7237 echo "${ECHO_T}yes" >&6
7238           else
7239             echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6
7241           fi
7242
7243
7244           enablestring=
7245           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7246 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7247           no_cache=0
7248           # Check whether --enable-mdidoc or --disable-mdidoc was given.
7249 if test "${enable_mdidoc+set}" = set; then
7250   enableval="$enable_mdidoc"
7251
7252                           if test "$enableval" = yes; then
7253                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7254                           else
7255                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7256                           fi
7257
7258 else
7259
7260                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7261                           if test "x$LINE" != x ; then
7262                             eval "DEFAULT_$LINE"
7263                           else
7264                             no_cache=1
7265                           fi
7266
7267                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7268
7269 fi;
7270
7271           eval "$ac_cv_use_mdidoc"
7272           if test "$no_cache" != 1; then
7273             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7274           fi
7275
7276           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7277             echo "$as_me:$LINENO: result: yes" >&5
7278 echo "${ECHO_T}yes" >&6
7279           else
7280             echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6
7282           fi
7283
7284
7285           enablestring=
7286           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7287 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7288           no_cache=0
7289           # Check whether --enable-loggui or --disable-loggui was given.
7290 if test "${enable_loggui+set}" = set; then
7291   enableval="$enable_loggui"
7292
7293                           if test "$enableval" = yes; then
7294                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7295                           else
7296                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
7297                           fi
7298
7299 else
7300
7301                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7302                           if test "x$LINE" != x ; then
7303                             eval "DEFAULT_$LINE"
7304                           else
7305                             no_cache=1
7306                           fi
7307
7308                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7309
7310 fi;
7311
7312           eval "$ac_cv_use_loggui"
7313           if test "$no_cache" != 1; then
7314             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7315           fi
7316
7317           if test "$wxUSE_LOGGUI" = yes; then
7318             echo "$as_me:$LINENO: result: yes" >&5
7319 echo "${ECHO_T}yes" >&6
7320           else
7321             echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7323           fi
7324
7325
7326           enablestring=
7327           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7328 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7329           no_cache=0
7330           # Check whether --enable-logwin or --disable-logwin was given.
7331 if test "${enable_logwin+set}" = set; then
7332   enableval="$enable_logwin"
7333
7334                           if test "$enableval" = yes; then
7335                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7336                           else
7337                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7338                           fi
7339
7340 else
7341
7342                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7343                           if test "x$LINE" != x ; then
7344                             eval "DEFAULT_$LINE"
7345                           else
7346                             no_cache=1
7347                           fi
7348
7349                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7350
7351 fi;
7352
7353           eval "$ac_cv_use_logwin"
7354           if test "$no_cache" != 1; then
7355             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7356           fi
7357
7358           if test "$wxUSE_LOGWINDOW" = yes; then
7359             echo "$as_me:$LINENO: result: yes" >&5
7360 echo "${ECHO_T}yes" >&6
7361           else
7362             echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7364           fi
7365
7366
7367           enablestring=
7368           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7369 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7370           no_cache=0
7371           # Check whether --enable-logdialog or --disable-logdialog was given.
7372 if test "${enable_logdialog+set}" = set; then
7373   enableval="$enable_logdialog"
7374
7375                           if test "$enableval" = yes; then
7376                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7377                           else
7378                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7379                           fi
7380
7381 else
7382
7383                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7384                           if test "x$LINE" != x ; then
7385                             eval "DEFAULT_$LINE"
7386                           else
7387                             no_cache=1
7388                           fi
7389
7390                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7391
7392 fi;
7393
7394           eval "$ac_cv_use_logdialog"
7395           if test "$no_cache" != 1; then
7396             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7397           fi
7398
7399           if test "$wxUSE_LOGDIALOG" = yes; then
7400             echo "$as_me:$LINENO: result: yes" >&5
7401 echo "${ECHO_T}yes" >&6
7402           else
7403             echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6
7405           fi
7406
7407
7408           enablestring=
7409           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7410 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7411           no_cache=0
7412           # Check whether --enable-webkit or --disable-webkit was given.
7413 if test "${enable_webkit+set}" = set; then
7414   enableval="$enable_webkit"
7415
7416                           if test "$enableval" = yes; then
7417                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7418                           else
7419                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
7420                           fi
7421
7422 else
7423
7424                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7425                           if test "x$LINE" != x ; then
7426                             eval "DEFAULT_$LINE"
7427                           else
7428                             no_cache=1
7429                           fi
7430
7431                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7432
7433 fi;
7434
7435           eval "$ac_cv_use_webkit"
7436           if test "$no_cache" != 1; then
7437             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7438           fi
7439
7440           if test "$wxUSE_WEBKIT" = yes; then
7441             echo "$as_me:$LINENO: result: yes" >&5
7442 echo "${ECHO_T}yes" >&6
7443           else
7444             echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6
7446           fi
7447
7448
7449           enablestring=
7450           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7451 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7452           no_cache=0
7453           # Check whether --enable-html or --disable-html was given.
7454 if test "${enable_html+set}" = set; then
7455   enableval="$enable_html"
7456
7457                           if test "$enableval" = yes; then
7458                             ac_cv_use_html='wxUSE_RICHTEXT=yes'
7459                           else
7460                             ac_cv_use_html='wxUSE_RICHTEXT=no'
7461                           fi
7462
7463 else
7464
7465                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7466                           if test "x$LINE" != x ; then
7467                             eval "DEFAULT_$LINE"
7468                           else
7469                             no_cache=1
7470                           fi
7471
7472                           ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7473
7474 fi;
7475
7476           eval "$ac_cv_use_html"
7477           if test "$no_cache" != 1; then
7478             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7479           fi
7480
7481           if test "$wxUSE_RICHTEXT" = yes; then
7482             echo "$as_me:$LINENO: result: yes" >&5
7483 echo "${ECHO_T}yes" >&6
7484           else
7485             echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6
7487           fi
7488
7489
7490           enablestring=
7491           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7492 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7493           no_cache=0
7494           # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7495 if test "${enable_graphics_ctx+set}" = set; then
7496   enableval="$enable_graphics_ctx"
7497
7498                           if test "$enableval" = yes; then
7499                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7500                           else
7501                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7502                           fi
7503
7504 else
7505
7506                           LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7507                           if test "x$LINE" != x ; then
7508                             eval "DEFAULT_$LINE"
7509                           else
7510                             no_cache=1
7511                           fi
7512
7513                           ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7514
7515 fi;
7516
7517           eval "$ac_cv_use_graphics_ctx"
7518           if test "$no_cache" != 1; then
7519             echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7520           fi
7521
7522           if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7523             echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7525           else
7526             echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6
7528           fi
7529
7530
7531
7532           enablestring=
7533           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7534 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7535           no_cache=0
7536           # Check whether --enable-postscript or --disable-postscript was given.
7537 if test "${enable_postscript+set}" = set; then
7538   enableval="$enable_postscript"
7539
7540                           if test "$enableval" = yes; then
7541                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7542                           else
7543                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7544                           fi
7545
7546 else
7547
7548                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7549                           if test "x$LINE" != x ; then
7550                             eval "DEFAULT_$LINE"
7551                           else
7552                             no_cache=1
7553                           fi
7554
7555                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7556
7557 fi;
7558
7559           eval "$ac_cv_use_postscript"
7560           if test "$no_cache" != 1; then
7561             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7562           fi
7563
7564           if test "$wxUSE_POSTSCRIPT" = yes; then
7565             echo "$as_me:$LINENO: result: yes" >&5
7566 echo "${ECHO_T}yes" >&6
7567           else
7568             echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6
7570           fi
7571
7572
7573
7574
7575
7576           enablestring=
7577           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7578 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7579           no_cache=0
7580           # Check whether --enable-prologio or --disable-prologio was given.
7581 if test "${enable_prologio+set}" = set; then
7582   enableval="$enable_prologio"
7583
7584                           if test "$enableval" = yes; then
7585                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7586                           else
7587                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7588                           fi
7589
7590 else
7591
7592                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7593                           if test "x$LINE" != x ; then
7594                             eval "DEFAULT_$LINE"
7595                           else
7596                             no_cache=1
7597                           fi
7598
7599                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7600
7601 fi;
7602
7603           eval "$ac_cv_use_prologio"
7604           if test "$no_cache" != 1; then
7605             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7606           fi
7607
7608           if test "$wxUSE_PROLOGIO" = yes; then
7609             echo "$as_me:$LINENO: result: yes" >&5
7610 echo "${ECHO_T}yes" >&6
7611           else
7612             echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6
7614           fi
7615
7616
7617           enablestring=
7618           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7619 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7620           no_cache=0
7621           # Check whether --enable-resources or --disable-resources was given.
7622 if test "${enable_resources+set}" = set; then
7623   enableval="$enable_resources"
7624
7625                           if test "$enableval" = yes; then
7626                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7627                           else
7628                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7629                           fi
7630
7631 else
7632
7633                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7634                           if test "x$LINE" != x ; then
7635                             eval "DEFAULT_$LINE"
7636                           else
7637                             no_cache=1
7638                           fi
7639
7640                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7641
7642 fi;
7643
7644           eval "$ac_cv_use_resources"
7645           if test "$no_cache" != 1; then
7646             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7647           fi
7648
7649           if test "$wxUSE_RESOURCES" = yes; then
7650             echo "$as_me:$LINENO: result: yes" >&5
7651 echo "${ECHO_T}yes" >&6
7652           else
7653             echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6
7655           fi
7656
7657
7658
7659
7660           enablestring=
7661           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7662 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7663           no_cache=0
7664           # Check whether --enable-clipboard or --disable-clipboard was given.
7665 if test "${enable_clipboard+set}" = set; then
7666   enableval="$enable_clipboard"
7667
7668                           if test "$enableval" = yes; then
7669                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7670                           else
7671                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7672                           fi
7673
7674 else
7675
7676                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7677                           if test "x$LINE" != x ; then
7678                             eval "DEFAULT_$LINE"
7679                           else
7680                             no_cache=1
7681                           fi
7682
7683                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7684
7685 fi;
7686
7687           eval "$ac_cv_use_clipboard"
7688           if test "$no_cache" != 1; then
7689             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7690           fi
7691
7692           if test "$wxUSE_CLIPBOARD" = yes; then
7693             echo "$as_me:$LINENO: result: yes" >&5
7694 echo "${ECHO_T}yes" >&6
7695           else
7696             echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6
7698           fi
7699
7700
7701           enablestring=
7702           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7703 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7704           no_cache=0
7705           # Check whether --enable-dnd or --disable-dnd was given.
7706 if test "${enable_dnd+set}" = set; then
7707   enableval="$enable_dnd"
7708
7709                           if test "$enableval" = yes; then
7710                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7711                           else
7712                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7713                           fi
7714
7715 else
7716
7717                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7718                           if test "x$LINE" != x ; then
7719                             eval "DEFAULT_$LINE"
7720                           else
7721                             no_cache=1
7722                           fi
7723
7724                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7725
7726 fi;
7727
7728           eval "$ac_cv_use_dnd"
7729           if test "$no_cache" != 1; then
7730             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7731           fi
7732
7733           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7734             echo "$as_me:$LINENO: result: yes" >&5
7735 echo "${ECHO_T}yes" >&6
7736           else
7737             echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6
7739           fi
7740
7741
7742           enablestring=
7743           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7744 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7745           no_cache=0
7746           # Check whether --enable-metafile or --disable-metafile was given.
7747 if test "${enable_metafile+set}" = set; then
7748   enableval="$enable_metafile"
7749
7750                           if test "$enableval" = yes; then
7751                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7752                           else
7753                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7754                           fi
7755
7756 else
7757
7758                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7759                           if test "x$LINE" != x ; then
7760                             eval "DEFAULT_$LINE"
7761                           else
7762                             no_cache=1
7763                           fi
7764
7765                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7766
7767 fi;
7768
7769           eval "$ac_cv_use_metafile"
7770           if test "$no_cache" != 1; then
7771             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7772           fi
7773
7774           if test "$wxUSE_METAFILE" = yes; then
7775             echo "$as_me:$LINENO: result: yes" >&5
7776 echo "${ECHO_T}yes" >&6
7777           else
7778             echo "$as_me:$LINENO: result: no" >&5
7779 echo "${ECHO_T}no" >&6
7780           fi
7781
7782
7783
7784
7785
7786           enablestring=
7787           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7788 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7789           no_cache=0
7790           # Check whether --enable-controls or --disable-controls was given.
7791 if test "${enable_controls+set}" = set; then
7792   enableval="$enable_controls"
7793
7794                           if test "$enableval" = yes; then
7795                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7796                           else
7797                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7798                           fi
7799
7800 else
7801
7802                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7803                           if test "x$LINE" != x ; then
7804                             eval "DEFAULT_$LINE"
7805                           else
7806                             no_cache=1
7807                           fi
7808
7809                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7810
7811 fi;
7812
7813           eval "$ac_cv_use_controls"
7814           if test "$no_cache" != 1; then
7815             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7816           fi
7817
7818           if test "$wxUSE_CONTROLS" = yes; then
7819             echo "$as_me:$LINENO: result: yes" >&5
7820 echo "${ECHO_T}yes" >&6
7821           else
7822             echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6
7824           fi
7825
7826
7827 if test "$wxUSE_CONTROLS" = "yes"; then
7828   DEFAULT_wxUSE_ACCEL=yes
7829   DEFAULT_wxUSE_ANIMATIONCTRL=yes
7830   DEFAULT_wxUSE_BMPBUTTON=yes
7831   DEFAULT_wxUSE_BUTTON=yes
7832   DEFAULT_wxUSE_CALCTRL=yes
7833   DEFAULT_wxUSE_CARET=yes
7834   DEFAULT_wxUSE_COMBOBOX=yes
7835   DEFAULT_wxUSE_CHECKBOX=yes
7836   DEFAULT_wxUSE_CHECKLISTBOX=yes
7837   DEFAULT_wxUSE_CHOICE=yes
7838   DEFAULT_wxUSE_CHOICEBOOK=yes
7839   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7840   DEFAULT_wxUSE_COMBOBOX=yes
7841   DEFAULT_wxUSE_DATEPICKCTRL=yes
7842   DEFAULT_wxUSE_DISPLAY=yes
7843   DEFAULT_wxUSE_DETECT_SM=yes
7844   DEFAULT_wxUSE_DIRPICKERCTRL=yes
7845   DEFAULT_wxUSE_FILEPICKERCTRL=yes
7846   DEFAULT_wxUSE_FONTPICKERCTRL=yes
7847   DEFAULT_wxUSE_GAUGE=yes
7848   DEFAULT_wxUSE_GRID=yes
7849   DEFAULT_wxUSE_HYPERLINKCTRL=yes
7850   DEFAULT_wxUSE_DATAVIEWCTRL=no
7851   DEFAULT_wxUSE_IMAGLIST=yes
7852   DEFAULT_wxUSE_LISTBOOK=yes
7853   DEFAULT_wxUSE_LISTBOX=yes
7854   DEFAULT_wxUSE_LISTCTRL=yes
7855   DEFAULT_wxUSE_NOTEBOOK=yes
7856   DEFAULT_wxUSE_RADIOBOX=yes
7857   DEFAULT_wxUSE_RADIOBTN=yes
7858   DEFAULT_wxUSE_SASH=yes
7859   DEFAULT_wxUSE_SCROLLBAR=yes
7860   DEFAULT_wxUSE_SLIDER=yes
7861   DEFAULT_wxUSE_SPINBTN=yes
7862   DEFAULT_wxUSE_SPINCTRL=yes
7863   DEFAULT_wxUSE_SPLITTER=yes
7864   DEFAULT_wxUSE_STATBMP=yes
7865   DEFAULT_wxUSE_STATBOX=yes
7866   DEFAULT_wxUSE_STATLINE=yes
7867   DEFAULT_wxUSE_STATUSBAR=yes
7868   DEFAULT_wxUSE_TAB_DIALOG=yes
7869   DEFAULT_wxUSE_TOGGLEBTN=yes
7870   DEFAULT_wxUSE_TOOLBAR=yes
7871   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7872   DEFAULT_wxUSE_TOOLTIPS=yes
7873   DEFAULT_wxUSE_TREEBOOK=yes
7874   DEFAULT_wxUSE_TOOLBOOK=yes
7875   DEFAULT_wxUSE_TREECTRL=yes
7876   DEFAULT_wxUSE_POPUPWIN=yes
7877   DEFAULT_wxUSE_TIPWINDOW=yes
7878 elif test "$wxUSE_CONTROLS" = "no"; then
7879   DEFAULT_wxUSE_ACCEL=no
7880   DEFAULT_wxUSE_ANIMATIONCTRL=no
7881   DEFAULT_wxUSE_BMPBUTTON=no
7882   DEFAULT_wxUSE_BUTTON=no
7883   DEFAULT_wxUSE_CALCTRL=no
7884   DEFAULT_wxUSE_CARET=no
7885   DEFAULT_wxUSE_COMBOBOX=no
7886   DEFAULT_wxUSE_CHECKBOX=no
7887   DEFAULT_wxUSE_CHECKLISTBOX=no
7888   DEFAULT_wxUSE_CHOICE=no
7889   DEFAULT_wxUSE_CHOICEBOOK=no
7890   DEFAULT_wxUSE_COLOURPICKERCTRL=no
7891   DEFAULT_wxUSE_COMBOBOX=no
7892   DEFAULT_wxUSE_DATEPICKCTRL=no
7893   DEFAULT_wxUSE_DISPLAY=no
7894   DEFAULT_wxUSE_DETECT_SM=no
7895   DEFAULT_wxUSE_DIRPICKERCTRL=no
7896   DEFAULT_wxUSE_FILEPICKERCTRL=no
7897   DEFAULT_wxUSE_FONTPICKERCTRL=no
7898   DEFAULT_wxUSE_GAUGE=no
7899   DEFAULT_wxUSE_GRID=no
7900   DEFAULT_wxUSE_HYPERLINKCTRL=no
7901   DEFAULT_wxUSE_DATAVIEWCTRL=no
7902   DEFAULT_wxUSE_IMAGLIST=no
7903   DEFAULT_wxUSE_LISTBOOK=no
7904   DEFAULT_wxUSE_LISTBOX=no
7905   DEFAULT_wxUSE_LISTCTRL=no
7906   DEFAULT_wxUSE_NOTEBOOK=no
7907   DEFAULT_wxUSE_RADIOBOX=no
7908   DEFAULT_wxUSE_RADIOBTN=no
7909   DEFAULT_wxUSE_SASH=no
7910   DEFAULT_wxUSE_SCROLLBAR=no
7911   DEFAULT_wxUSE_SLIDER=no
7912   DEFAULT_wxUSE_SPINBTN=no
7913   DEFAULT_wxUSE_SPINCTRL=no
7914   DEFAULT_wxUSE_SPLITTER=no
7915   DEFAULT_wxUSE_STATBMP=no
7916   DEFAULT_wxUSE_STATBOX=no
7917   DEFAULT_wxUSE_STATLINE=no
7918   DEFAULT_wxUSE_STATUSBAR=no
7919   DEFAULT_wxUSE_TAB_DIALOG=no
7920   DEFAULT_wxUSE_TOGGLEBTN=no
7921   DEFAULT_wxUSE_TOOLBAR=no
7922   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7923   DEFAULT_wxUSE_TOOLTIPS=no
7924   DEFAULT_wxUSE_TREEBOOK=no
7925   DEFAULT_wxUSE_TOOLBOOK=no
7926   DEFAULT_wxUSE_TREECTRL=no
7927   DEFAULT_wxUSE_POPUPWIN=no
7928   DEFAULT_wxUSE_TIPWINDOW=no
7929 fi
7930
7931
7932           enablestring=
7933           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7934 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7935           no_cache=0
7936           # Check whether --enable-accel or --disable-accel was given.
7937 if test "${enable_accel+set}" = set; then
7938   enableval="$enable_accel"
7939
7940                           if test "$enableval" = yes; then
7941                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7942                           else
7943                             ac_cv_use_accel='wxUSE_ACCEL=no'
7944                           fi
7945
7946 else
7947
7948                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7949                           if test "x$LINE" != x ; then
7950                             eval "DEFAULT_$LINE"
7951                           else
7952                             no_cache=1
7953                           fi
7954
7955                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7956
7957 fi;
7958
7959           eval "$ac_cv_use_accel"
7960           if test "$no_cache" != 1; then
7961             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7962           fi
7963
7964           if test "$wxUSE_ACCEL" = yes; then
7965             echo "$as_me:$LINENO: result: yes" >&5
7966 echo "${ECHO_T}yes" >&6
7967           else
7968             echo "$as_me:$LINENO: result: no" >&5
7969 echo "${ECHO_T}no" >&6
7970           fi
7971
7972
7973           enablestring=
7974           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
7975 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
7976           no_cache=0
7977           # Check whether --enable-animatectrl or --disable-animatectrl was given.
7978 if test "${enable_animatectrl+set}" = set; then
7979   enableval="$enable_animatectrl"
7980
7981                           if test "$enableval" = yes; then
7982                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
7983                           else
7984                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
7985                           fi
7986
7987 else
7988
7989                           LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
7990                           if test "x$LINE" != x ; then
7991                             eval "DEFAULT_$LINE"
7992                           else
7993                             no_cache=1
7994                           fi
7995
7996                           ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
7997
7998 fi;
7999
8000           eval "$ac_cv_use_animatectrl"
8001           if test "$no_cache" != 1; then
8002             echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8003           fi
8004
8005           if test "$wxUSE_ANIMATIONCTRL" = yes; then
8006             echo "$as_me:$LINENO: result: yes" >&5
8007 echo "${ECHO_T}yes" >&6
8008           else
8009             echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6
8011           fi
8012
8013
8014           enablestring=
8015           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8016 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8017           no_cache=0
8018           # Check whether --enable-button or --disable-button was given.
8019 if test "${enable_button+set}" = set; then
8020   enableval="$enable_button"
8021
8022                           if test "$enableval" = yes; then
8023                             ac_cv_use_button='wxUSE_BUTTON=yes'
8024                           else
8025                             ac_cv_use_button='wxUSE_BUTTON=no'
8026                           fi
8027
8028 else
8029
8030                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8031                           if test "x$LINE" != x ; then
8032                             eval "DEFAULT_$LINE"
8033                           else
8034                             no_cache=1
8035                           fi
8036
8037                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8038
8039 fi;
8040
8041           eval "$ac_cv_use_button"
8042           if test "$no_cache" != 1; then
8043             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8044           fi
8045
8046           if test "$wxUSE_BUTTON" = yes; then
8047             echo "$as_me:$LINENO: result: yes" >&5
8048 echo "${ECHO_T}yes" >&6
8049           else
8050             echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6
8052           fi
8053
8054
8055           enablestring=
8056           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8057 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8058           no_cache=0
8059           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8060 if test "${enable_bmpbutton+set}" = set; then
8061   enableval="$enable_bmpbutton"
8062
8063                           if test "$enableval" = yes; then
8064                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8065                           else
8066                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8067                           fi
8068
8069 else
8070
8071                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8072                           if test "x$LINE" != x ; then
8073                             eval "DEFAULT_$LINE"
8074                           else
8075                             no_cache=1
8076                           fi
8077
8078                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8079
8080 fi;
8081
8082           eval "$ac_cv_use_bmpbutton"
8083           if test "$no_cache" != 1; then
8084             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8085           fi
8086
8087           if test "$wxUSE_BMPBUTTON" = yes; then
8088             echo "$as_me:$LINENO: result: yes" >&5
8089 echo "${ECHO_T}yes" >&6
8090           else
8091             echo "$as_me:$LINENO: result: no" >&5
8092 echo "${ECHO_T}no" >&6
8093           fi
8094
8095
8096           enablestring=
8097           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8098 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8099           no_cache=0
8100           # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8101 if test "${enable_bmpcombobox+set}" = set; then
8102   enableval="$enable_bmpcombobox"
8103
8104                           if test "$enableval" = yes; then
8105                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8106                           else
8107                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8108                           fi
8109
8110 else
8111
8112                           LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8113                           if test "x$LINE" != x ; then
8114                             eval "DEFAULT_$LINE"
8115                           else
8116                             no_cache=1
8117                           fi
8118
8119                           ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8120
8121 fi;
8122
8123           eval "$ac_cv_use_bmpcombobox"
8124           if test "$no_cache" != 1; then
8125             echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8126           fi
8127
8128           if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8129             echo "$as_me:$LINENO: result: yes" >&5
8130 echo "${ECHO_T}yes" >&6
8131           else
8132             echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6
8134           fi
8135
8136
8137           enablestring=
8138           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8139 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8140           no_cache=0
8141           # Check whether --enable-calendar or --disable-calendar was given.
8142 if test "${enable_calendar+set}" = set; then
8143   enableval="$enable_calendar"
8144
8145                           if test "$enableval" = yes; then
8146                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8147                           else
8148                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
8149                           fi
8150
8151 else
8152
8153                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8154                           if test "x$LINE" != x ; then
8155                             eval "DEFAULT_$LINE"
8156                           else
8157                             no_cache=1
8158                           fi
8159
8160                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8161
8162 fi;
8163
8164           eval "$ac_cv_use_calendar"
8165           if test "$no_cache" != 1; then
8166             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8167           fi
8168
8169           if test "$wxUSE_CALCTRL" = yes; then
8170             echo "$as_me:$LINENO: result: yes" >&5
8171 echo "${ECHO_T}yes" >&6
8172           else
8173             echo "$as_me:$LINENO: result: no" >&5
8174 echo "${ECHO_T}no" >&6
8175           fi
8176
8177
8178           enablestring=
8179           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8180 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8181           no_cache=0
8182           # Check whether --enable-caret or --disable-caret was given.
8183 if test "${enable_caret+set}" = set; then
8184   enableval="$enable_caret"
8185
8186                           if test "$enableval" = yes; then
8187                             ac_cv_use_caret='wxUSE_CARET=yes'
8188                           else
8189                             ac_cv_use_caret='wxUSE_CARET=no'
8190                           fi
8191
8192 else
8193
8194                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8195                           if test "x$LINE" != x ; then
8196                             eval "DEFAULT_$LINE"
8197                           else
8198                             no_cache=1
8199                           fi
8200
8201                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8202
8203 fi;
8204
8205           eval "$ac_cv_use_caret"
8206           if test "$no_cache" != 1; then
8207             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8208           fi
8209
8210           if test "$wxUSE_CARET" = yes; then
8211             echo "$as_me:$LINENO: result: yes" >&5
8212 echo "${ECHO_T}yes" >&6
8213           else
8214             echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6
8216           fi
8217
8218
8219           enablestring=
8220           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8221 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8222           no_cache=0
8223           # Check whether --enable-checkbox or --disable-checkbox was given.
8224 if test "${enable_checkbox+set}" = set; then
8225   enableval="$enable_checkbox"
8226
8227                           if test "$enableval" = yes; then
8228                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8229                           else
8230                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8231                           fi
8232
8233 else
8234
8235                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8236                           if test "x$LINE" != x ; then
8237                             eval "DEFAULT_$LINE"
8238                           else
8239                             no_cache=1
8240                           fi
8241
8242                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8243
8244 fi;
8245
8246           eval "$ac_cv_use_checkbox"
8247           if test "$no_cache" != 1; then
8248             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8249           fi
8250
8251           if test "$wxUSE_CHECKBOX" = yes; then
8252             echo "$as_me:$LINENO: result: yes" >&5
8253 echo "${ECHO_T}yes" >&6
8254           else
8255             echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8257           fi
8258
8259
8260           enablestring=
8261           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8262 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8263           no_cache=0
8264           # Check whether --enable-checklst or --disable-checklst was given.
8265 if test "${enable_checklst+set}" = set; then
8266   enableval="$enable_checklst"
8267
8268                           if test "$enableval" = yes; then
8269                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8270                           else
8271                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
8272                           fi
8273
8274 else
8275
8276                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8277                           if test "x$LINE" != x ; then
8278                             eval "DEFAULT_$LINE"
8279                           else
8280                             no_cache=1
8281                           fi
8282
8283                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8284
8285 fi;
8286
8287           eval "$ac_cv_use_checklst"
8288           if test "$no_cache" != 1; then
8289             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8290           fi
8291
8292           if test "$wxUSE_CHECKLST" = yes; then
8293             echo "$as_me:$LINENO: result: yes" >&5
8294 echo "${ECHO_T}yes" >&6
8295           else
8296             echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6
8298           fi
8299
8300
8301           enablestring=
8302           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8303 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8304           no_cache=0
8305           # Check whether --enable-choice or --disable-choice was given.
8306 if test "${enable_choice+set}" = set; then
8307   enableval="$enable_choice"
8308
8309                           if test "$enableval" = yes; then
8310                             ac_cv_use_choice='wxUSE_CHOICE=yes'
8311                           else
8312                             ac_cv_use_choice='wxUSE_CHOICE=no'
8313                           fi
8314
8315 else
8316
8317                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8318                           if test "x$LINE" != x ; then
8319                             eval "DEFAULT_$LINE"
8320                           else
8321                             no_cache=1
8322                           fi
8323
8324                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8325
8326 fi;
8327
8328           eval "$ac_cv_use_choice"
8329           if test "$no_cache" != 1; then
8330             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8331           fi
8332
8333           if test "$wxUSE_CHOICE" = yes; then
8334             echo "$as_me:$LINENO: result: yes" >&5
8335 echo "${ECHO_T}yes" >&6
8336           else
8337             echo "$as_me:$LINENO: result: no" >&5
8338 echo "${ECHO_T}no" >&6
8339           fi
8340
8341
8342           enablestring=
8343           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8344 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8345           no_cache=0
8346           # Check whether --enable-choicebook or --disable-choicebook was given.
8347 if test "${enable_choicebook+set}" = set; then
8348   enableval="$enable_choicebook"
8349
8350                           if test "$enableval" = yes; then
8351                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8352                           else
8353                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8354                           fi
8355
8356 else
8357
8358                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8359                           if test "x$LINE" != x ; then
8360                             eval "DEFAULT_$LINE"
8361                           else
8362                             no_cache=1
8363                           fi
8364
8365                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8366
8367 fi;
8368
8369           eval "$ac_cv_use_choicebook"
8370           if test "$no_cache" != 1; then
8371             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8372           fi
8373
8374           if test "$wxUSE_CHOICEBOOK" = yes; then
8375             echo "$as_me:$LINENO: result: yes" >&5
8376 echo "${ECHO_T}yes" >&6
8377           else
8378             echo "$as_me:$LINENO: result: no" >&5
8379 echo "${ECHO_T}no" >&6
8380           fi
8381
8382
8383           enablestring=
8384           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8385 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8386           no_cache=0
8387           # Check whether --enable-colourpicker or --disable-colourpicker was given.
8388 if test "${enable_colourpicker+set}" = set; then
8389   enableval="$enable_colourpicker"
8390
8391                           if test "$enableval" = yes; then
8392                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8393                           else
8394                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8395                           fi
8396
8397 else
8398
8399                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8400                           if test "x$LINE" != x ; then
8401                             eval "DEFAULT_$LINE"
8402                           else
8403                             no_cache=1
8404                           fi
8405
8406                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8407
8408 fi;
8409
8410           eval "$ac_cv_use_colourpicker"
8411           if test "$no_cache" != 1; then
8412             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8413           fi
8414
8415           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8416             echo "$as_me:$LINENO: result: yes" >&5
8417 echo "${ECHO_T}yes" >&6
8418           else
8419             echo "$as_me:$LINENO: result: no" >&5
8420 echo "${ECHO_T}no" >&6
8421           fi
8422
8423
8424           enablestring=
8425           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8426 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8427           no_cache=0
8428           # Check whether --enable-combobox or --disable-combobox was given.
8429 if test "${enable_combobox+set}" = set; then
8430   enableval="$enable_combobox"
8431
8432                           if test "$enableval" = yes; then
8433                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8434                           else
8435                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8436                           fi
8437
8438 else
8439
8440                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8441                           if test "x$LINE" != x ; then
8442                             eval "DEFAULT_$LINE"
8443                           else
8444                             no_cache=1
8445                           fi
8446
8447                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8448
8449 fi;
8450
8451           eval "$ac_cv_use_combobox"
8452           if test "$no_cache" != 1; then
8453             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8454           fi
8455
8456           if test "$wxUSE_COMBOBOX" = yes; then
8457             echo "$as_me:$LINENO: result: yes" >&5
8458 echo "${ECHO_T}yes" >&6
8459           else
8460             echo "$as_me:$LINENO: result: no" >&5
8461 echo "${ECHO_T}no" >&6
8462           fi
8463
8464
8465           enablestring=
8466           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8467 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8468           no_cache=0
8469           # Check whether --enable-comboctrl or --disable-comboctrl was given.
8470 if test "${enable_comboctrl+set}" = set; then
8471   enableval="$enable_comboctrl"
8472
8473                           if test "$enableval" = yes; then
8474                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8475                           else
8476                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8477                           fi
8478
8479 else
8480
8481                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8482                           if test "x$LINE" != x ; then
8483                             eval "DEFAULT_$LINE"
8484                           else
8485                             no_cache=1
8486                           fi
8487
8488                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8489
8490 fi;
8491
8492           eval "$ac_cv_use_comboctrl"
8493           if test "$no_cache" != 1; then
8494             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8495           fi
8496
8497           if test "$wxUSE_COMBOCTRL" = yes; then
8498             echo "$as_me:$LINENO: result: yes" >&5
8499 echo "${ECHO_T}yes" >&6
8500           else
8501             echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6
8503           fi
8504
8505
8506           enablestring=
8507           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8508 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8509           no_cache=0
8510           # Check whether --enable-datepick or --disable-datepick was given.
8511 if test "${enable_datepick+set}" = set; then
8512   enableval="$enable_datepick"
8513
8514                           if test "$enableval" = yes; then
8515                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8516                           else
8517                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8518                           fi
8519
8520 else
8521
8522                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8523                           if test "x$LINE" != x ; then
8524                             eval "DEFAULT_$LINE"
8525                           else
8526                             no_cache=1
8527                           fi
8528
8529                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8530
8531 fi;
8532
8533           eval "$ac_cv_use_datepick"
8534           if test "$no_cache" != 1; then
8535             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8536           fi
8537
8538           if test "$wxUSE_DATEPICKCTRL" = yes; then
8539             echo "$as_me:$LINENO: result: yes" >&5
8540 echo "${ECHO_T}yes" >&6
8541           else
8542             echo "$as_me:$LINENO: result: no" >&5
8543 echo "${ECHO_T}no" >&6
8544           fi
8545
8546
8547           enablestring=
8548           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8549 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8550           no_cache=0
8551           # Check whether --enable-dirpicker or --disable-dirpicker was given.
8552 if test "${enable_dirpicker+set}" = set; then
8553   enableval="$enable_dirpicker"
8554
8555                           if test "$enableval" = yes; then
8556                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8557                           else
8558                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8559                           fi
8560
8561 else
8562
8563                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8564                           if test "x$LINE" != x ; then
8565                             eval "DEFAULT_$LINE"
8566                           else
8567                             no_cache=1
8568                           fi
8569
8570                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8571
8572 fi;
8573
8574           eval "$ac_cv_use_dirpicker"
8575           if test "$no_cache" != 1; then
8576             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8577           fi
8578
8579           if test "$wxUSE_DIRPICKERCTRL" = yes; then
8580             echo "$as_me:$LINENO: result: yes" >&5
8581 echo "${ECHO_T}yes" >&6
8582           else
8583             echo "$as_me:$LINENO: result: no" >&5
8584 echo "${ECHO_T}no" >&6
8585           fi
8586
8587
8588           enablestring=
8589           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8590 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8591           no_cache=0
8592           # Check whether --enable-display or --disable-display was given.
8593 if test "${enable_display+set}" = set; then
8594   enableval="$enable_display"
8595
8596                           if test "$enableval" = yes; then
8597                             ac_cv_use_display='wxUSE_DISPLAY=yes'
8598                           else
8599                             ac_cv_use_display='wxUSE_DISPLAY=no'
8600                           fi
8601
8602 else
8603
8604                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8605                           if test "x$LINE" != x ; then
8606                             eval "DEFAULT_$LINE"
8607                           else
8608                             no_cache=1
8609                           fi
8610
8611                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8612
8613 fi;
8614
8615           eval "$ac_cv_use_display"
8616           if test "$no_cache" != 1; then
8617             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8618           fi
8619
8620           if test "$wxUSE_DISPLAY" = yes; then
8621             echo "$as_me:$LINENO: result: yes" >&5
8622 echo "${ECHO_T}yes" >&6
8623           else
8624             echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6
8626           fi
8627
8628
8629           enablestring=
8630           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8631 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8632           no_cache=0
8633           # Check whether --enable-detect_sm or --disable-detect_sm was given.
8634 if test "${enable_detect_sm+set}" = set; then
8635   enableval="$enable_detect_sm"
8636
8637                           if test "$enableval" = yes; then
8638                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8639                           else
8640                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8641                           fi
8642
8643 else
8644
8645                           LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8646                           if test "x$LINE" != x ; then
8647                             eval "DEFAULT_$LINE"
8648                           else
8649                             no_cache=1
8650                           fi
8651
8652                           ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8653
8654 fi;
8655
8656           eval "$ac_cv_use_detect_sm"
8657           if test "$no_cache" != 1; then
8658             echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8659           fi
8660
8661           if test "$wxUSE_DETECT_SM" = yes; then
8662             echo "$as_me:$LINENO: result: yes" >&5
8663 echo "${ECHO_T}yes" >&6
8664           else
8665             echo "$as_me:$LINENO: result: no" >&5
8666 echo "${ECHO_T}no" >&6
8667           fi
8668
8669
8670           enablestring=
8671           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8672 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8673           no_cache=0
8674           # Check whether --enable-filepicker or --disable-filepicker was given.
8675 if test "${enable_filepicker+set}" = set; then
8676   enableval="$enable_filepicker"
8677
8678                           if test "$enableval" = yes; then
8679                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8680                           else
8681                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8682                           fi
8683
8684 else
8685
8686                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8687                           if test "x$LINE" != x ; then
8688                             eval "DEFAULT_$LINE"
8689                           else
8690                             no_cache=1
8691                           fi
8692
8693                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8694
8695 fi;
8696
8697           eval "$ac_cv_use_filepicker"
8698           if test "$no_cache" != 1; then
8699             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8700           fi
8701
8702           if test "$wxUSE_FILEPICKERCTRL" = yes; then
8703             echo "$as_me:$LINENO: result: yes" >&5
8704 echo "${ECHO_T}yes" >&6
8705           else
8706             echo "$as_me:$LINENO: result: no" >&5
8707 echo "${ECHO_T}no" >&6
8708           fi
8709
8710
8711           enablestring=
8712           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8713 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8714           no_cache=0
8715           # Check whether --enable-fontpicker or --disable-fontpicker was given.
8716 if test "${enable_fontpicker+set}" = set; then
8717   enableval="$enable_fontpicker"
8718
8719                           if test "$enableval" = yes; then
8720                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8721                           else
8722                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8723                           fi
8724
8725 else
8726
8727                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8728                           if test "x$LINE" != x ; then
8729                             eval "DEFAULT_$LINE"
8730                           else
8731                             no_cache=1
8732                           fi
8733
8734                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8735
8736 fi;
8737
8738           eval "$ac_cv_use_fontpicker"
8739           if test "$no_cache" != 1; then
8740             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8741           fi
8742
8743           if test "$wxUSE_FONTPICKERCTRL" = yes; then
8744             echo "$as_me:$LINENO: result: yes" >&5
8745 echo "${ECHO_T}yes" >&6
8746           else
8747             echo "$as_me:$LINENO: result: no" >&5
8748 echo "${ECHO_T}no" >&6
8749           fi
8750
8751
8752           enablestring=
8753           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8754 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8755           no_cache=0
8756           # Check whether --enable-gauge or --disable-gauge was given.
8757 if test "${enable_gauge+set}" = set; then
8758   enableval="$enable_gauge"
8759
8760                           if test "$enableval" = yes; then
8761                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
8762                           else
8763                             ac_cv_use_gauge='wxUSE_GAUGE=no'
8764                           fi
8765
8766 else
8767
8768                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8769                           if test "x$LINE" != x ; then
8770                             eval "DEFAULT_$LINE"
8771                           else
8772                             no_cache=1
8773                           fi
8774
8775                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8776
8777 fi;
8778
8779           eval "$ac_cv_use_gauge"
8780           if test "$no_cache" != 1; then
8781             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8782           fi
8783
8784           if test "$wxUSE_GAUGE" = yes; then
8785             echo "$as_me:$LINENO: result: yes" >&5
8786 echo "${ECHO_T}yes" >&6
8787           else
8788             echo "$as_me:$LINENO: result: no" >&5
8789 echo "${ECHO_T}no" >&6
8790           fi
8791
8792
8793           enablestring=
8794           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8795 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8796           no_cache=0
8797           # Check whether --enable-grid or --disable-grid was given.
8798 if test "${enable_grid+set}" = set; then
8799   enableval="$enable_grid"
8800
8801                           if test "$enableval" = yes; then
8802                             ac_cv_use_grid='wxUSE_GRID=yes'
8803                           else
8804                             ac_cv_use_grid='wxUSE_GRID=no'
8805                           fi
8806
8807 else
8808
8809                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8810                           if test "x$LINE" != x ; then
8811                             eval "DEFAULT_$LINE"
8812                           else
8813                             no_cache=1
8814                           fi
8815
8816                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8817
8818 fi;
8819
8820           eval "$ac_cv_use_grid"
8821           if test "$no_cache" != 1; then
8822             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8823           fi
8824
8825           if test "$wxUSE_GRID" = yes; then
8826             echo "$as_me:$LINENO: result: yes" >&5
8827 echo "${ECHO_T}yes" >&6
8828           else
8829             echo "$as_me:$LINENO: result: no" >&5
8830 echo "${ECHO_T}no" >&6
8831           fi
8832
8833
8834           enablestring=
8835           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8836 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8837           no_cache=0
8838           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8839 if test "${enable_dataviewctrl+set}" = set; then
8840   enableval="$enable_dataviewctrl"
8841
8842                           if test "$enableval" = yes; then
8843                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8844                           else
8845                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8846                           fi
8847
8848 else
8849
8850                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8851                           if test "x$LINE" != x ; then
8852                             eval "DEFAULT_$LINE"
8853                           else
8854                             no_cache=1
8855                           fi
8856
8857                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8858
8859 fi;
8860
8861           eval "$ac_cv_use_dataviewctrl"
8862           if test "$no_cache" != 1; then
8863             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8864           fi
8865
8866           if test "$wxUSE_DATAVIEWCTRL" = yes; then
8867             echo "$as_me:$LINENO: result: yes" >&5
8868 echo "${ECHO_T}yes" >&6
8869           else
8870             echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8872           fi
8873
8874
8875           enablestring=
8876           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8877 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8878           no_cache=0
8879           # Check whether --enable-hyperlink or --disable-hyperlink was given.
8880 if test "${enable_hyperlink+set}" = set; then
8881   enableval="$enable_hyperlink"
8882
8883                           if test "$enableval" = yes; then
8884                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8885                           else
8886                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8887                           fi
8888
8889 else
8890
8891                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8892                           if test "x$LINE" != x ; then
8893                             eval "DEFAULT_$LINE"
8894                           else
8895                             no_cache=1
8896                           fi
8897
8898                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8899
8900 fi;
8901
8902           eval "$ac_cv_use_hyperlink"
8903           if test "$no_cache" != 1; then
8904             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8905           fi
8906
8907           if test "$wxUSE_HYPERLINKCTRL" = yes; then
8908             echo "$as_me:$LINENO: result: yes" >&5
8909 echo "${ECHO_T}yes" >&6
8910           else
8911             echo "$as_me:$LINENO: result: no" >&5
8912 echo "${ECHO_T}no" >&6
8913           fi
8914
8915
8916           enablestring=
8917           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8918 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8919           no_cache=0
8920           # Check whether --enable-imaglist or --disable-imaglist was given.
8921 if test "${enable_imaglist+set}" = set; then
8922   enableval="$enable_imaglist"
8923
8924                           if test "$enableval" = yes; then
8925                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8926                           else
8927                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8928                           fi
8929
8930 else
8931
8932                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8933                           if test "x$LINE" != x ; then
8934                             eval "DEFAULT_$LINE"
8935                           else
8936                             no_cache=1
8937                           fi
8938
8939                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8940
8941 fi;
8942
8943           eval "$ac_cv_use_imaglist"
8944           if test "$no_cache" != 1; then
8945             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8946           fi
8947
8948           if test "$wxUSE_IMAGLIST" = yes; then
8949             echo "$as_me:$LINENO: result: yes" >&5
8950 echo "${ECHO_T}yes" >&6
8951           else
8952             echo "$as_me:$LINENO: result: no" >&5
8953 echo "${ECHO_T}no" >&6
8954           fi
8955
8956
8957           enablestring=
8958           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8959 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8960           no_cache=0
8961           # Check whether --enable-listbook or --disable-listbook was given.
8962 if test "${enable_listbook+set}" = set; then
8963   enableval="$enable_listbook"
8964
8965                           if test "$enableval" = yes; then
8966                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8967                           else
8968                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8969                           fi
8970
8971 else
8972
8973                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8974                           if test "x$LINE" != x ; then
8975                             eval "DEFAULT_$LINE"
8976                           else
8977                             no_cache=1
8978                           fi
8979
8980                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8981
8982 fi;
8983
8984           eval "$ac_cv_use_listbook"
8985           if test "$no_cache" != 1; then
8986             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8987           fi
8988
8989           if test "$wxUSE_LISTBOOK" = yes; then
8990             echo "$as_me:$LINENO: result: yes" >&5
8991 echo "${ECHO_T}yes" >&6
8992           else
8993             echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6
8995           fi
8996
8997
8998           enablestring=
8999           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9000 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9001           no_cache=0
9002           # Check whether --enable-listbox or --disable-listbox was given.
9003 if test "${enable_listbox+set}" = set; then
9004   enableval="$enable_listbox"
9005
9006                           if test "$enableval" = yes; then
9007                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9008                           else
9009                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
9010                           fi
9011
9012 else
9013
9014                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9015                           if test "x$LINE" != x ; then
9016                             eval "DEFAULT_$LINE"
9017                           else
9018                             no_cache=1
9019                           fi
9020
9021                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9022
9023 fi;
9024
9025           eval "$ac_cv_use_listbox"
9026           if test "$no_cache" != 1; then
9027             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9028           fi
9029
9030           if test "$wxUSE_LISTBOX" = yes; then
9031             echo "$as_me:$LINENO: result: yes" >&5
9032 echo "${ECHO_T}yes" >&6
9033           else
9034             echo "$as_me:$LINENO: result: no" >&5
9035 echo "${ECHO_T}no" >&6
9036           fi
9037
9038
9039           enablestring=
9040           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9041 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9042           no_cache=0
9043           # Check whether --enable-listctrl or --disable-listctrl was given.
9044 if test "${enable_listctrl+set}" = set; then
9045   enableval="$enable_listctrl"
9046
9047                           if test "$enableval" = yes; then
9048                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9049                           else
9050                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9051                           fi
9052
9053 else
9054
9055                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9056                           if test "x$LINE" != x ; then
9057                             eval "DEFAULT_$LINE"
9058                           else
9059                             no_cache=1
9060                           fi
9061
9062                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9063
9064 fi;
9065
9066           eval "$ac_cv_use_listctrl"
9067           if test "$no_cache" != 1; then
9068             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9069           fi
9070
9071           if test "$wxUSE_LISTCTRL" = yes; then
9072             echo "$as_me:$LINENO: result: yes" >&5
9073 echo "${ECHO_T}yes" >&6
9074           else
9075             echo "$as_me:$LINENO: result: no" >&5
9076 echo "${ECHO_T}no" >&6
9077           fi
9078
9079
9080           enablestring=
9081           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9082 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9083           no_cache=0
9084           # Check whether --enable-notebook or --disable-notebook was given.
9085 if test "${enable_notebook+set}" = set; then
9086   enableval="$enable_notebook"
9087
9088                           if test "$enableval" = yes; then
9089                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9090                           else
9091                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9092                           fi
9093
9094 else
9095
9096                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9097                           if test "x$LINE" != x ; then
9098                             eval "DEFAULT_$LINE"
9099                           else
9100                             no_cache=1
9101                           fi
9102
9103                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9104
9105 fi;
9106
9107           eval "$ac_cv_use_notebook"
9108           if test "$no_cache" != 1; then
9109             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9110           fi
9111
9112           if test "$wxUSE_NOTEBOOK" = yes; then
9113             echo "$as_me:$LINENO: result: yes" >&5
9114 echo "${ECHO_T}yes" >&6
9115           else
9116             echo "$as_me:$LINENO: result: no" >&5
9117 echo "${ECHO_T}no" >&6
9118           fi
9119
9120
9121           enablestring=
9122           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9123 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
9124           no_cache=0
9125           # Check whether --enable-odcombobox or --disable-odcombobox was given.
9126 if test "${enable_odcombobox+set}" = set; then
9127   enableval="$enable_odcombobox"
9128
9129                           if test "$enableval" = yes; then
9130                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
9131                           else
9132                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
9133                           fi
9134
9135 else
9136
9137                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
9138                           if test "x$LINE" != x ; then
9139                             eval "DEFAULT_$LINE"
9140                           else
9141                             no_cache=1
9142                           fi
9143
9144                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
9145
9146 fi;
9147
9148           eval "$ac_cv_use_odcombobox"
9149           if test "$no_cache" != 1; then
9150             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
9151           fi
9152
9153           if test "$wxUSE_ODCOMBOBOX" = yes; then
9154             echo "$as_me:$LINENO: result: yes" >&5
9155 echo "${ECHO_T}yes" >&6
9156           else
9157             echo "$as_me:$LINENO: result: no" >&5
9158 echo "${ECHO_T}no" >&6
9159           fi
9160
9161
9162           enablestring=
9163           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9164 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9165           no_cache=0
9166           # Check whether --enable-radiobox or --disable-radiobox was given.
9167 if test "${enable_radiobox+set}" = set; then
9168   enableval="$enable_radiobox"
9169
9170                           if test "$enableval" = yes; then
9171                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9172                           else
9173                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9174                           fi
9175
9176 else
9177
9178                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9179                           if test "x$LINE" != x ; then
9180                             eval "DEFAULT_$LINE"
9181                           else
9182                             no_cache=1
9183                           fi
9184
9185                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9186
9187 fi;
9188
9189           eval "$ac_cv_use_radiobox"
9190           if test "$no_cache" != 1; then
9191             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9192           fi
9193
9194           if test "$wxUSE_RADIOBOX" = yes; then
9195             echo "$as_me:$LINENO: result: yes" >&5
9196 echo "${ECHO_T}yes" >&6
9197           else
9198             echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9200           fi
9201
9202
9203           enablestring=
9204           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9205 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9206           no_cache=0
9207           # Check whether --enable-radiobtn or --disable-radiobtn was given.
9208 if test "${enable_radiobtn+set}" = set; then
9209   enableval="$enable_radiobtn"
9210
9211                           if test "$enableval" = yes; then
9212                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9213                           else
9214                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9215                           fi
9216
9217 else
9218
9219                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9220                           if test "x$LINE" != x ; then
9221                             eval "DEFAULT_$LINE"
9222                           else
9223                             no_cache=1
9224                           fi
9225
9226                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9227
9228 fi;
9229
9230           eval "$ac_cv_use_radiobtn"
9231           if test "$no_cache" != 1; then
9232             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9233           fi
9234
9235           if test "$wxUSE_RADIOBTN" = yes; then
9236             echo "$as_me:$LINENO: result: yes" >&5
9237 echo "${ECHO_T}yes" >&6
9238           else
9239             echo "$as_me:$LINENO: result: no" >&5
9240 echo "${ECHO_T}no" >&6
9241           fi
9242
9243
9244           enablestring=
9245           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9246 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9247           no_cache=0
9248           # Check whether --enable-sash or --disable-sash was given.
9249 if test "${enable_sash+set}" = set; then
9250   enableval="$enable_sash"
9251
9252                           if test "$enableval" = yes; then
9253                             ac_cv_use_sash='wxUSE_SASH=yes'
9254                           else
9255                             ac_cv_use_sash='wxUSE_SASH=no'
9256                           fi
9257
9258 else
9259
9260                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9261                           if test "x$LINE" != x ; then
9262                             eval "DEFAULT_$LINE"
9263                           else
9264                             no_cache=1
9265                           fi
9266
9267                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9268
9269 fi;
9270
9271           eval "$ac_cv_use_sash"
9272           if test "$no_cache" != 1; then
9273             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9274           fi
9275
9276           if test "$wxUSE_SASH" = yes; then
9277             echo "$as_me:$LINENO: result: yes" >&5
9278 echo "${ECHO_T}yes" >&6
9279           else
9280             echo "$as_me:$LINENO: result: no" >&5
9281 echo "${ECHO_T}no" >&6
9282           fi
9283
9284
9285           enablestring=
9286           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9287 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9288           no_cache=0
9289           # Check whether --enable-scrollbar or --disable-scrollbar was given.
9290 if test "${enable_scrollbar+set}" = set; then
9291   enableval="$enable_scrollbar"
9292
9293                           if test "$enableval" = yes; then
9294                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9295                           else
9296                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9297                           fi
9298
9299 else
9300
9301                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9302                           if test "x$LINE" != x ; then
9303                             eval "DEFAULT_$LINE"
9304                           else
9305                             no_cache=1
9306                           fi
9307
9308                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9309
9310 fi;
9311
9312           eval "$ac_cv_use_scrollbar"
9313           if test "$no_cache" != 1; then
9314             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9315           fi
9316
9317           if test "$wxUSE_SCROLLBAR" = yes; then
9318             echo "$as_me:$LINENO: result: yes" >&5
9319 echo "${ECHO_T}yes" >&6
9320           else
9321             echo "$as_me:$LINENO: result: no" >&5
9322 echo "${ECHO_T}no" >&6
9323           fi
9324
9325
9326           enablestring=
9327           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9328 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9329           no_cache=0
9330           # Check whether --enable-slider or --disable-slider was given.
9331 if test "${enable_slider+set}" = set; then
9332   enableval="$enable_slider"
9333
9334                           if test "$enableval" = yes; then
9335                             ac_cv_use_slider='wxUSE_SLIDER=yes'
9336                           else
9337                             ac_cv_use_slider='wxUSE_SLIDER=no'
9338                           fi
9339
9340 else
9341
9342                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9343                           if test "x$LINE" != x ; then
9344                             eval "DEFAULT_$LINE"
9345                           else
9346                             no_cache=1
9347                           fi
9348
9349                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9350
9351 fi;
9352
9353           eval "$ac_cv_use_slider"
9354           if test "$no_cache" != 1; then
9355             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9356           fi
9357
9358           if test "$wxUSE_SLIDER" = yes; then
9359             echo "$as_me:$LINENO: result: yes" >&5
9360 echo "${ECHO_T}yes" >&6
9361           else
9362             echo "$as_me:$LINENO: result: no" >&5
9363 echo "${ECHO_T}no" >&6
9364           fi
9365
9366
9367           enablestring=
9368           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9369 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9370           no_cache=0
9371           # Check whether --enable-spinbtn or --disable-spinbtn was given.
9372 if test "${enable_spinbtn+set}" = set; then
9373   enableval="$enable_spinbtn"
9374
9375                           if test "$enableval" = yes; then
9376                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9377                           else
9378                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9379                           fi
9380
9381 else
9382
9383                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9384                           if test "x$LINE" != x ; then
9385                             eval "DEFAULT_$LINE"
9386                           else
9387                             no_cache=1
9388                           fi
9389
9390                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9391
9392 fi;
9393
9394           eval "$ac_cv_use_spinbtn"
9395           if test "$no_cache" != 1; then
9396             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9397           fi
9398
9399           if test "$wxUSE_SPINBTN" = yes; then
9400             echo "$as_me:$LINENO: result: yes" >&5
9401 echo "${ECHO_T}yes" >&6
9402           else
9403             echo "$as_me:$LINENO: result: no" >&5
9404 echo "${ECHO_T}no" >&6
9405           fi
9406
9407
9408           enablestring=
9409           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9410 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9411           no_cache=0
9412           # Check whether --enable-spinctrl or --disable-spinctrl was given.
9413 if test "${enable_spinctrl+set}" = set; then
9414   enableval="$enable_spinctrl"
9415
9416                           if test "$enableval" = yes; then
9417                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9418                           else
9419                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9420                           fi
9421
9422 else
9423
9424                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9425                           if test "x$LINE" != x ; then
9426                             eval "DEFAULT_$LINE"
9427                           else
9428                             no_cache=1
9429                           fi
9430
9431                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9432
9433 fi;
9434
9435           eval "$ac_cv_use_spinctrl"
9436           if test "$no_cache" != 1; then
9437             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9438           fi
9439
9440           if test "$wxUSE_SPINCTRL" = yes; then
9441             echo "$as_me:$LINENO: result: yes" >&5
9442 echo "${ECHO_T}yes" >&6
9443           else
9444             echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6
9446           fi
9447
9448
9449           enablestring=
9450           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9451 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9452           no_cache=0
9453           # Check whether --enable-splitter or --disable-splitter was given.
9454 if test "${enable_splitter+set}" = set; then
9455   enableval="$enable_splitter"
9456
9457                           if test "$enableval" = yes; then
9458                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9459                           else
9460                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
9461                           fi
9462
9463 else
9464
9465                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9466                           if test "x$LINE" != x ; then
9467                             eval "DEFAULT_$LINE"
9468                           else
9469                             no_cache=1
9470                           fi
9471
9472                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9473
9474 fi;
9475
9476           eval "$ac_cv_use_splitter"
9477           if test "$no_cache" != 1; then
9478             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9479           fi
9480
9481           if test "$wxUSE_SPLITTER" = yes; then
9482             echo "$as_me:$LINENO: result: yes" >&5
9483 echo "${ECHO_T}yes" >&6
9484           else
9485             echo "$as_me:$LINENO: result: no" >&5
9486 echo "${ECHO_T}no" >&6
9487           fi
9488
9489
9490           enablestring=
9491           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9492 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9493           no_cache=0
9494           # Check whether --enable-statbmp or --disable-statbmp was given.
9495 if test "${enable_statbmp+set}" = set; then
9496   enableval="$enable_statbmp"
9497
9498                           if test "$enableval" = yes; then
9499                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9500                           else
9501                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
9502                           fi
9503
9504 else
9505
9506                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9507                           if test "x$LINE" != x ; then
9508                             eval "DEFAULT_$LINE"
9509                           else
9510                             no_cache=1
9511                           fi
9512
9513                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9514
9515 fi;
9516
9517           eval "$ac_cv_use_statbmp"
9518           if test "$no_cache" != 1; then
9519             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9520           fi
9521
9522           if test "$wxUSE_STATBMP" = yes; then
9523             echo "$as_me:$LINENO: result: yes" >&5
9524 echo "${ECHO_T}yes" >&6
9525           else
9526             echo "$as_me:$LINENO: result: no" >&5
9527 echo "${ECHO_T}no" >&6
9528           fi
9529
9530
9531           enablestring=
9532           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9533 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9534           no_cache=0
9535           # Check whether --enable-statbox or --disable-statbox was given.
9536 if test "${enable_statbox+set}" = set; then
9537   enableval="$enable_statbox"
9538
9539                           if test "$enableval" = yes; then
9540                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
9541                           else
9542                             ac_cv_use_statbox='wxUSE_STATBOX=no'
9543                           fi
9544
9545 else
9546
9547                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9548                           if test "x$LINE" != x ; then
9549                             eval "DEFAULT_$LINE"
9550                           else
9551                             no_cache=1
9552                           fi
9553
9554                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9555
9556 fi;
9557
9558           eval "$ac_cv_use_statbox"
9559           if test "$no_cache" != 1; then
9560             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9561           fi
9562
9563           if test "$wxUSE_STATBOX" = yes; then
9564             echo "$as_me:$LINENO: result: yes" >&5
9565 echo "${ECHO_T}yes" >&6
9566           else
9567             echo "$as_me:$LINENO: result: no" >&5
9568 echo "${ECHO_T}no" >&6
9569           fi
9570
9571
9572           enablestring=
9573           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9574 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9575           no_cache=0
9576           # Check whether --enable-statline or --disable-statline was given.
9577 if test "${enable_statline+set}" = set; then
9578   enableval="$enable_statline"
9579
9580                           if test "$enableval" = yes; then
9581                             ac_cv_use_statline='wxUSE_STATLINE=yes'
9582                           else
9583                             ac_cv_use_statline='wxUSE_STATLINE=no'
9584                           fi
9585
9586 else
9587
9588                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9589                           if test "x$LINE" != x ; then
9590                             eval "DEFAULT_$LINE"
9591                           else
9592                             no_cache=1
9593                           fi
9594
9595                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9596
9597 fi;
9598
9599           eval "$ac_cv_use_statline"
9600           if test "$no_cache" != 1; then
9601             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9602           fi
9603
9604           if test "$wxUSE_STATLINE" = yes; then
9605             echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6
9607           else
9608             echo "$as_me:$LINENO: result: no" >&5
9609 echo "${ECHO_T}no" >&6
9610           fi
9611
9612
9613           enablestring=
9614           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9615 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9616           no_cache=0
9617           # Check whether --enable-stattext or --disable-stattext was given.
9618 if test "${enable_stattext+set}" = set; then
9619   enableval="$enable_stattext"
9620
9621                           if test "$enableval" = yes; then
9622                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9623                           else
9624                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
9625                           fi
9626
9627 else
9628
9629                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9630                           if test "x$LINE" != x ; then
9631                             eval "DEFAULT_$LINE"
9632                           else
9633                             no_cache=1
9634                           fi
9635
9636                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9637
9638 fi;
9639
9640           eval "$ac_cv_use_stattext"
9641           if test "$no_cache" != 1; then
9642             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9643           fi
9644
9645           if test "$wxUSE_STATTEXT" = yes; then
9646             echo "$as_me:$LINENO: result: yes" >&5
9647 echo "${ECHO_T}yes" >&6
9648           else
9649             echo "$as_me:$LINENO: result: no" >&5
9650 echo "${ECHO_T}no" >&6
9651           fi
9652
9653
9654           enablestring=
9655           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9656 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9657           no_cache=0
9658           # Check whether --enable-statusbar or --disable-statusbar was given.
9659 if test "${enable_statusbar+set}" = set; then
9660   enableval="$enable_statusbar"
9661
9662                           if test "$enableval" = yes; then
9663                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9664                           else
9665                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9666                           fi
9667
9668 else
9669
9670                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9671                           if test "x$LINE" != x ; then
9672                             eval "DEFAULT_$LINE"
9673                           else
9674                             no_cache=1
9675                           fi
9676
9677                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9678
9679 fi;
9680
9681           eval "$ac_cv_use_statusbar"
9682           if test "$no_cache" != 1; then
9683             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9684           fi
9685
9686           if test "$wxUSE_STATUSBAR" = yes; then
9687             echo "$as_me:$LINENO: result: yes" >&5
9688 echo "${ECHO_T}yes" >&6
9689           else
9690             echo "$as_me:$LINENO: result: no" >&5
9691 echo "${ECHO_T}no" >&6
9692           fi
9693
9694
9695           enablestring=
9696           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9697 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9698           no_cache=0
9699           # Check whether --enable-tabdialog or --disable-tabdialog was given.
9700 if test "${enable_tabdialog+set}" = set; then
9701   enableval="$enable_tabdialog"
9702
9703                           if test "$enableval" = yes; then
9704                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9705                           else
9706                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9707                           fi
9708
9709 else
9710
9711                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9712                           if test "x$LINE" != x ; then
9713                             eval "DEFAULT_$LINE"
9714                           else
9715                             no_cache=1
9716                           fi
9717
9718                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9719
9720 fi;
9721
9722           eval "$ac_cv_use_tabdialog"
9723           if test "$no_cache" != 1; then
9724             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9725           fi
9726
9727           if test "$wxUSE_TAB_DIALOG" = yes; then
9728             echo "$as_me:$LINENO: result: yes" >&5
9729 echo "${ECHO_T}yes" >&6
9730           else
9731             echo "$as_me:$LINENO: result: no" >&5
9732 echo "${ECHO_T}no" >&6
9733           fi
9734
9735
9736           enablestring=
9737           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9738 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9739           no_cache=0
9740           # Check whether --enable-textctrl or --disable-textctrl was given.
9741 if test "${enable_textctrl+set}" = set; then
9742   enableval="$enable_textctrl"
9743
9744                           if test "$enableval" = yes; then
9745                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9746                           else
9747                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9748                           fi
9749
9750 else
9751
9752                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9753                           if test "x$LINE" != x ; then
9754                             eval "DEFAULT_$LINE"
9755                           else
9756                             no_cache=1
9757                           fi
9758
9759                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9760
9761 fi;
9762
9763           eval "$ac_cv_use_textctrl"
9764           if test "$no_cache" != 1; then
9765             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9766           fi
9767
9768           if test "$wxUSE_TEXTCTRL" = yes; then
9769             echo "$as_me:$LINENO: result: yes" >&5
9770 echo "${ECHO_T}yes" >&6
9771           else
9772             echo "$as_me:$LINENO: result: no" >&5
9773 echo "${ECHO_T}no" >&6
9774           fi
9775
9776
9777           enablestring=
9778           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9779 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9780           no_cache=0
9781           # Check whether --enable-togglebtn or --disable-togglebtn was given.
9782 if test "${enable_togglebtn+set}" = set; then
9783   enableval="$enable_togglebtn"
9784
9785                           if test "$enableval" = yes; then
9786                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9787                           else
9788                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9789                           fi
9790
9791 else
9792
9793                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9794                           if test "x$LINE" != x ; then
9795                             eval "DEFAULT_$LINE"
9796                           else
9797                             no_cache=1
9798                           fi
9799
9800                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9801
9802 fi;
9803
9804           eval "$ac_cv_use_togglebtn"
9805           if test "$no_cache" != 1; then
9806             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9807           fi
9808
9809           if test "$wxUSE_TOGGLEBTN" = yes; then
9810             echo "$as_me:$LINENO: result: yes" >&5
9811 echo "${ECHO_T}yes" >&6
9812           else
9813             echo "$as_me:$LINENO: result: no" >&5
9814 echo "${ECHO_T}no" >&6
9815           fi
9816
9817
9818           enablestring=
9819           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9820 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9821           no_cache=0
9822           # Check whether --enable-toolbar or --disable-toolbar was given.
9823 if test "${enable_toolbar+set}" = set; then
9824   enableval="$enable_toolbar"
9825
9826                           if test "$enableval" = yes; then
9827                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9828                           else
9829                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9830                           fi
9831
9832 else
9833
9834                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9835                           if test "x$LINE" != x ; then
9836                             eval "DEFAULT_$LINE"
9837                           else
9838                             no_cache=1
9839                           fi
9840
9841                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9842
9843 fi;
9844
9845           eval "$ac_cv_use_toolbar"
9846           if test "$no_cache" != 1; then
9847             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9848           fi
9849
9850           if test "$wxUSE_TOOLBAR" = yes; then
9851             echo "$as_me:$LINENO: result: yes" >&5
9852 echo "${ECHO_T}yes" >&6
9853           else
9854             echo "$as_me:$LINENO: result: no" >&5
9855 echo "${ECHO_T}no" >&6
9856           fi
9857
9858
9859           enablestring=
9860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9861 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9862           no_cache=0
9863           # Check whether --enable-tbarnative or --disable-tbarnative was given.
9864 if test "${enable_tbarnative+set}" = set; then
9865   enableval="$enable_tbarnative"
9866
9867                           if test "$enableval" = yes; then
9868                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9869                           else
9870                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9871                           fi
9872
9873 else
9874
9875                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9876                           if test "x$LINE" != x ; then
9877                             eval "DEFAULT_$LINE"
9878                           else
9879                             no_cache=1
9880                           fi
9881
9882                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9883
9884 fi;
9885
9886           eval "$ac_cv_use_tbarnative"
9887           if test "$no_cache" != 1; then
9888             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9889           fi
9890
9891           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9892             echo "$as_me:$LINENO: result: yes" >&5
9893 echo "${ECHO_T}yes" >&6
9894           else
9895             echo "$as_me:$LINENO: result: no" >&5
9896 echo "${ECHO_T}no" >&6
9897           fi
9898
9899
9900           enablestring=
9901           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9902 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9903           no_cache=0
9904           # Check whether --enable-treebook or --disable-treebook was given.
9905 if test "${enable_treebook+set}" = set; then
9906   enableval="$enable_treebook"
9907
9908                           if test "$enableval" = yes; then
9909                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9910                           else
9911                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9912                           fi
9913
9914 else
9915
9916                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9917                           if test "x$LINE" != x ; then
9918                             eval "DEFAULT_$LINE"
9919                           else
9920                             no_cache=1
9921                           fi
9922
9923                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9924
9925 fi;
9926
9927           eval "$ac_cv_use_treebook"
9928           if test "$no_cache" != 1; then
9929             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9930           fi
9931
9932           if test "$wxUSE_TREEBOOK" = yes; then
9933             echo "$as_me:$LINENO: result: yes" >&5
9934 echo "${ECHO_T}yes" >&6
9935           else
9936             echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9938           fi
9939
9940
9941           enablestring=
9942           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9943 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9944           no_cache=0
9945           # Check whether --enable-toolbook or --disable-toolbook was given.
9946 if test "${enable_toolbook+set}" = set; then
9947   enableval="$enable_toolbook"
9948
9949                           if test "$enableval" = yes; then
9950                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9951                           else
9952                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9953                           fi
9954
9955 else
9956
9957                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9958                           if test "x$LINE" != x ; then
9959                             eval "DEFAULT_$LINE"
9960                           else
9961                             no_cache=1
9962                           fi
9963
9964                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9965
9966 fi;
9967
9968           eval "$ac_cv_use_toolbook"
9969           if test "$no_cache" != 1; then
9970             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9971           fi
9972
9973           if test "$wxUSE_TOOLBOOK" = yes; then
9974             echo "$as_me:$LINENO: result: yes" >&5
9975 echo "${ECHO_T}yes" >&6
9976           else
9977             echo "$as_me:$LINENO: result: no" >&5
9978 echo "${ECHO_T}no" >&6
9979           fi
9980
9981
9982           enablestring=
9983           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9984 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9985           no_cache=0
9986           # Check whether --enable-treectrl or --disable-treectrl was given.
9987 if test "${enable_treectrl+set}" = set; then
9988   enableval="$enable_treectrl"
9989
9990                           if test "$enableval" = yes; then
9991                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9992                           else
9993                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9994                           fi
9995
9996 else
9997
9998                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9999                           if test "x$LINE" != x ; then
10000                             eval "DEFAULT_$LINE"
10001                           else
10002                             no_cache=1
10003                           fi
10004
10005                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10006
10007 fi;
10008
10009           eval "$ac_cv_use_treectrl"
10010           if test "$no_cache" != 1; then
10011             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10012           fi
10013
10014           if test "$wxUSE_TREECTRL" = yes; then
10015             echo "$as_me:$LINENO: result: yes" >&5
10016 echo "${ECHO_T}yes" >&6
10017           else
10018             echo "$as_me:$LINENO: result: no" >&5
10019 echo "${ECHO_T}no" >&6
10020           fi
10021
10022
10023           enablestring=
10024           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10025 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10026           no_cache=0
10027           # Check whether --enable-tipwindow or --disable-tipwindow was given.
10028 if test "${enable_tipwindow+set}" = set; then
10029   enableval="$enable_tipwindow"
10030
10031                           if test "$enableval" = yes; then
10032                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10033                           else
10034                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10035                           fi
10036
10037 else
10038
10039                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10040                           if test "x$LINE" != x ; then
10041                             eval "DEFAULT_$LINE"
10042                           else
10043                             no_cache=1
10044                           fi
10045
10046                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10047
10048 fi;
10049
10050           eval "$ac_cv_use_tipwindow"
10051           if test "$no_cache" != 1; then
10052             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10053           fi
10054
10055           if test "$wxUSE_TIPWINDOW" = yes; then
10056             echo "$as_me:$LINENO: result: yes" >&5
10057 echo "${ECHO_T}yes" >&6
10058           else
10059             echo "$as_me:$LINENO: result: no" >&5
10060 echo "${ECHO_T}no" >&6
10061           fi
10062
10063
10064           enablestring=
10065           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10066 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10067           no_cache=0
10068           # Check whether --enable-popupwin or --disable-popupwin was given.
10069 if test "${enable_popupwin+set}" = set; then
10070   enableval="$enable_popupwin"
10071
10072                           if test "$enableval" = yes; then
10073                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10074                           else
10075                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10076                           fi
10077
10078 else
10079
10080                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10081                           if test "x$LINE" != x ; then
10082                             eval "DEFAULT_$LINE"
10083                           else
10084                             no_cache=1
10085                           fi
10086
10087                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10088
10089 fi;
10090
10091           eval "$ac_cv_use_popupwin"
10092           if test "$no_cache" != 1; then
10093             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10094           fi
10095
10096           if test "$wxUSE_POPUPWIN" = yes; then
10097             echo "$as_me:$LINENO: result: yes" >&5
10098 echo "${ECHO_T}yes" >&6
10099           else
10100             echo "$as_me:$LINENO: result: no" >&5
10101 echo "${ECHO_T}no" >&6
10102           fi
10103
10104
10105
10106
10107           enablestring=
10108           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10109 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10110           no_cache=0
10111           # Check whether --enable-commondlg or --disable-commondlg was given.
10112 if test "${enable_commondlg+set}" = set; then
10113   enableval="$enable_commondlg"
10114
10115                           if test "$enableval" = yes; then
10116                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10117                           else
10118                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10119                           fi
10120
10121 else
10122
10123                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10124                           if test "x$LINE" != x ; then
10125                             eval "DEFAULT_$LINE"
10126                           else
10127                             no_cache=1
10128                           fi
10129
10130                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10131
10132 fi;
10133
10134           eval "$ac_cv_use_commondlg"
10135           if test "$no_cache" != 1; then
10136             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10137           fi
10138
10139           if test "$wxUSE_COMMONDLGS" = yes; then
10140             echo "$as_me:$LINENO: result: yes" >&5
10141 echo "${ECHO_T}yes" >&6
10142           else
10143             echo "$as_me:$LINENO: result: no" >&5
10144 echo "${ECHO_T}no" >&6
10145           fi
10146
10147
10148           enablestring=
10149           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10150 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10151           no_cache=0
10152           # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10153 if test "${enable_aboutdlg+set}" = set; then
10154   enableval="$enable_aboutdlg"
10155
10156                           if test "$enableval" = yes; then
10157                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10158                           else
10159                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10160                           fi
10161
10162 else
10163
10164                           LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10165                           if test "x$LINE" != x ; then
10166                             eval "DEFAULT_$LINE"
10167                           else
10168                             no_cache=1
10169                           fi
10170
10171                           ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10172
10173 fi;
10174
10175           eval "$ac_cv_use_aboutdlg"
10176           if test "$no_cache" != 1; then
10177             echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10178           fi
10179
10180           if test "$wxUSE_ABOUTDLG" = yes; then
10181             echo "$as_me:$LINENO: result: yes" >&5
10182 echo "${ECHO_T}yes" >&6
10183           else
10184             echo "$as_me:$LINENO: result: no" >&5
10185 echo "${ECHO_T}no" >&6
10186           fi
10187
10188
10189           enablestring=
10190           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10191 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10192           no_cache=0
10193           # Check whether --enable-choicedlg or --disable-choicedlg was given.
10194 if test "${enable_choicedlg+set}" = set; then
10195   enableval="$enable_choicedlg"
10196
10197                           if test "$enableval" = yes; then
10198                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10199                           else
10200                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10201                           fi
10202
10203 else
10204
10205                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10206                           if test "x$LINE" != x ; then
10207                             eval "DEFAULT_$LINE"
10208                           else
10209                             no_cache=1
10210                           fi
10211
10212                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10213
10214 fi;
10215
10216           eval "$ac_cv_use_choicedlg"
10217           if test "$no_cache" != 1; then
10218             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10219           fi
10220
10221           if test "$wxUSE_CHOICEDLG" = yes; then
10222             echo "$as_me:$LINENO: result: yes" >&5
10223 echo "${ECHO_T}yes" >&6
10224           else
10225             echo "$as_me:$LINENO: result: no" >&5
10226 echo "${ECHO_T}no" >&6
10227           fi
10228
10229
10230           enablestring=
10231           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10232 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10233           no_cache=0
10234           # Check whether --enable-coldlg or --disable-coldlg was given.
10235 if test "${enable_coldlg+set}" = set; then
10236   enableval="$enable_coldlg"
10237
10238                           if test "$enableval" = yes; then
10239                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10240                           else
10241                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10242                           fi
10243
10244 else
10245
10246                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10247                           if test "x$LINE" != x ; then
10248                             eval "DEFAULT_$LINE"
10249                           else
10250                             no_cache=1
10251                           fi
10252
10253                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10254
10255 fi;
10256
10257           eval "$ac_cv_use_coldlg"
10258           if test "$no_cache" != 1; then
10259             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10260           fi
10261
10262           if test "$wxUSE_COLOURDLG" = yes; then
10263             echo "$as_me:$LINENO: result: yes" >&5
10264 echo "${ECHO_T}yes" >&6
10265           else
10266             echo "$as_me:$LINENO: result: no" >&5
10267 echo "${ECHO_T}no" >&6
10268           fi
10269
10270
10271           enablestring=
10272           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10273 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10274           no_cache=0
10275           # Check whether --enable-filedlg or --disable-filedlg was given.
10276 if test "${enable_filedlg+set}" = set; then
10277   enableval="$enable_filedlg"
10278
10279                           if test "$enableval" = yes; then
10280                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10281                           else
10282                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10283                           fi
10284
10285 else
10286
10287                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10288                           if test "x$LINE" != x ; then
10289                             eval "DEFAULT_$LINE"
10290                           else
10291                             no_cache=1
10292                           fi
10293
10294                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10295
10296 fi;
10297
10298           eval "$ac_cv_use_filedlg"
10299           if test "$no_cache" != 1; then
10300             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10301           fi
10302
10303           if test "$wxUSE_FILEDLG" = yes; then
10304             echo "$as_me:$LINENO: result: yes" >&5
10305 echo "${ECHO_T}yes" >&6
10306           else
10307             echo "$as_me:$LINENO: result: no" >&5
10308 echo "${ECHO_T}no" >&6
10309           fi
10310
10311
10312           enablestring=
10313           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10314 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10315           no_cache=0
10316           # Check whether --enable-finddlg or --disable-finddlg was given.
10317 if test "${enable_finddlg+set}" = set; then
10318   enableval="$enable_finddlg"
10319
10320                           if test "$enableval" = yes; then
10321                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10322                           else
10323                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10324                           fi
10325
10326 else
10327
10328                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10329                           if test "x$LINE" != x ; then
10330                             eval "DEFAULT_$LINE"
10331                           else
10332                             no_cache=1
10333                           fi
10334
10335                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10336
10337 fi;
10338
10339           eval "$ac_cv_use_finddlg"
10340           if test "$no_cache" != 1; then
10341             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10342           fi
10343
10344           if test "$wxUSE_FINDREPLDLG" = yes; then
10345             echo "$as_me:$LINENO: result: yes" >&5
10346 echo "${ECHO_T}yes" >&6
10347           else
10348             echo "$as_me:$LINENO: result: no" >&5
10349 echo "${ECHO_T}no" >&6
10350           fi
10351
10352
10353           enablestring=
10354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10355 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10356           no_cache=0
10357           # Check whether --enable-fontdlg or --disable-fontdlg was given.
10358 if test "${enable_fontdlg+set}" = set; then
10359   enableval="$enable_fontdlg"
10360
10361                           if test "$enableval" = yes; then
10362                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10363                           else
10364                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10365                           fi
10366
10367 else
10368
10369                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10370                           if test "x$LINE" != x ; then
10371                             eval "DEFAULT_$LINE"
10372                           else
10373                             no_cache=1
10374                           fi
10375
10376                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10377
10378 fi;
10379
10380           eval "$ac_cv_use_fontdlg"
10381           if test "$no_cache" != 1; then
10382             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10383           fi
10384
10385           if test "$wxUSE_FONTDLG" = yes; then
10386             echo "$as_me:$LINENO: result: yes" >&5
10387 echo "${ECHO_T}yes" >&6
10388           else
10389             echo "$as_me:$LINENO: result: no" >&5
10390 echo "${ECHO_T}no" >&6
10391           fi
10392
10393
10394           enablestring=
10395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10396 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10397           no_cache=0
10398           # Check whether --enable-dirdlg or --disable-dirdlg was given.
10399 if test "${enable_dirdlg+set}" = set; then
10400   enableval="$enable_dirdlg"
10401
10402                           if test "$enableval" = yes; then
10403                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10404                           else
10405                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10406                           fi
10407
10408 else
10409
10410                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10411                           if test "x$LINE" != x ; then
10412                             eval "DEFAULT_$LINE"
10413                           else
10414                             no_cache=1
10415                           fi
10416
10417                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10418
10419 fi;
10420
10421           eval "$ac_cv_use_dirdlg"
10422           if test "$no_cache" != 1; then
10423             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10424           fi
10425
10426           if test "$wxUSE_DIRDLG" = yes; then
10427             echo "$as_me:$LINENO: result: yes" >&5
10428 echo "${ECHO_T}yes" >&6
10429           else
10430             echo "$as_me:$LINENO: result: no" >&5
10431 echo "${ECHO_T}no" >&6
10432           fi
10433
10434
10435           enablestring=
10436           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10437 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10438           no_cache=0
10439           # Check whether --enable-msgdlg or --disable-msgdlg was given.
10440 if test "${enable_msgdlg+set}" = set; then
10441   enableval="$enable_msgdlg"
10442
10443                           if test "$enableval" = yes; then
10444                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10445                           else
10446                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10447                           fi
10448
10449 else
10450
10451                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10452                           if test "x$LINE" != x ; then
10453                             eval "DEFAULT_$LINE"
10454                           else
10455                             no_cache=1
10456                           fi
10457
10458                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10459
10460 fi;
10461
10462           eval "$ac_cv_use_msgdlg"
10463           if test "$no_cache" != 1; then
10464             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10465           fi
10466
10467           if test "$wxUSE_MSGDLG" = yes; then
10468             echo "$as_me:$LINENO: result: yes" >&5
10469 echo "${ECHO_T}yes" >&6
10470           else
10471             echo "$as_me:$LINENO: result: no" >&5
10472 echo "${ECHO_T}no" >&6
10473           fi
10474
10475
10476           enablestring=
10477           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10478 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10479           no_cache=0
10480           # Check whether --enable-numberdlg or --disable-numberdlg was given.
10481 if test "${enable_numberdlg+set}" = set; then
10482   enableval="$enable_numberdlg"
10483
10484                           if test "$enableval" = yes; then
10485                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10486                           else
10487                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10488                           fi
10489
10490 else
10491
10492                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10493                           if test "x$LINE" != x ; then
10494                             eval "DEFAULT_$LINE"
10495                           else
10496                             no_cache=1
10497                           fi
10498
10499                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10500
10501 fi;
10502
10503           eval "$ac_cv_use_numberdlg"
10504           if test "$no_cache" != 1; then
10505             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10506           fi
10507
10508           if test "$wxUSE_NUMBERDLG" = yes; then
10509             echo "$as_me:$LINENO: result: yes" >&5
10510 echo "${ECHO_T}yes" >&6
10511           else
10512             echo "$as_me:$LINENO: result: no" >&5
10513 echo "${ECHO_T}no" >&6
10514           fi
10515
10516
10517           enablestring=
10518           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10519 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10520           no_cache=0
10521           # Check whether --enable-splash or --disable-splash was given.
10522 if test "${enable_splash+set}" = set; then
10523   enableval="$enable_splash"
10524
10525                           if test "$enableval" = yes; then
10526                             ac_cv_use_splash='wxUSE_SPLASH=yes'
10527                           else
10528                             ac_cv_use_splash='wxUSE_SPLASH=no'
10529                           fi
10530
10531 else
10532
10533                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10534                           if test "x$LINE" != x ; then
10535                             eval "DEFAULT_$LINE"
10536                           else
10537                             no_cache=1
10538                           fi
10539
10540                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10541
10542 fi;
10543
10544           eval "$ac_cv_use_splash"
10545           if test "$no_cache" != 1; then
10546             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10547           fi
10548
10549           if test "$wxUSE_SPLASH" = yes; then
10550             echo "$as_me:$LINENO: result: yes" >&5
10551 echo "${ECHO_T}yes" >&6
10552           else
10553             echo "$as_me:$LINENO: result: no" >&5
10554 echo "${ECHO_T}no" >&6
10555           fi
10556
10557
10558           enablestring=
10559           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10560 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10561           no_cache=0
10562           # Check whether --enable-textdlg or --disable-textdlg was given.
10563 if test "${enable_textdlg+set}" = set; then
10564   enableval="$enable_textdlg"
10565
10566                           if test "$enableval" = yes; then
10567                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10568                           else
10569                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10570                           fi
10571
10572 else
10573
10574                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10575                           if test "x$LINE" != x ; then
10576                             eval "DEFAULT_$LINE"
10577                           else
10578                             no_cache=1
10579                           fi
10580
10581                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10582
10583 fi;
10584
10585           eval "$ac_cv_use_textdlg"
10586           if test "$no_cache" != 1; then
10587             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10588           fi
10589
10590           if test "$wxUSE_TEXTDLG" = yes; then
10591             echo "$as_me:$LINENO: result: yes" >&5
10592 echo "${ECHO_T}yes" >&6
10593           else
10594             echo "$as_me:$LINENO: result: no" >&5
10595 echo "${ECHO_T}no" >&6
10596           fi
10597
10598
10599           enablestring=
10600           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10601 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10602           no_cache=0
10603           # Check whether --enable-tipdlg or --disable-tipdlg was given.
10604 if test "${enable_tipdlg+set}" = set; then
10605   enableval="$enable_tipdlg"
10606
10607                           if test "$enableval" = yes; then
10608                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10609                           else
10610                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10611                           fi
10612
10613 else
10614
10615                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10616                           if test "x$LINE" != x ; then
10617                             eval "DEFAULT_$LINE"
10618                           else
10619                             no_cache=1
10620                           fi
10621
10622                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10623
10624 fi;
10625
10626           eval "$ac_cv_use_tipdlg"
10627           if test "$no_cache" != 1; then
10628             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10629           fi
10630
10631           if test "$wxUSE_STARTUP_TIPS" = yes; then
10632             echo "$as_me:$LINENO: result: yes" >&5
10633 echo "${ECHO_T}yes" >&6
10634           else
10635             echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6
10637           fi
10638
10639
10640           enablestring=
10641           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10642 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10643           no_cache=0
10644           # Check whether --enable-progressdlg or --disable-progressdlg was given.
10645 if test "${enable_progressdlg+set}" = set; then
10646   enableval="$enable_progressdlg"
10647
10648                           if test "$enableval" = yes; then
10649                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10650                           else
10651                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10652                           fi
10653
10654 else
10655
10656                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10657                           if test "x$LINE" != x ; then
10658                             eval "DEFAULT_$LINE"
10659                           else
10660                             no_cache=1
10661                           fi
10662
10663                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10664
10665 fi;
10666
10667           eval "$ac_cv_use_progressdlg"
10668           if test "$no_cache" != 1; then
10669             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10670           fi
10671
10672           if test "$wxUSE_PROGRESSDLG" = yes; then
10673             echo "$as_me:$LINENO: result: yes" >&5
10674 echo "${ECHO_T}yes" >&6
10675           else
10676             echo "$as_me:$LINENO: result: no" >&5
10677 echo "${ECHO_T}no" >&6
10678           fi
10679
10680
10681           enablestring=
10682           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10683 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10684           no_cache=0
10685           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10686 if test "${enable_wizarddlg+set}" = set; then
10687   enableval="$enable_wizarddlg"
10688
10689                           if test "$enableval" = yes; then
10690                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10691                           else
10692                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10693                           fi
10694
10695 else
10696
10697                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10698                           if test "x$LINE" != x ; then
10699                             eval "DEFAULT_$LINE"
10700                           else
10701                             no_cache=1
10702                           fi
10703
10704                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10705
10706 fi;
10707
10708           eval "$ac_cv_use_wizarddlg"
10709           if test "$no_cache" != 1; then
10710             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10711           fi
10712
10713           if test "$wxUSE_WIZARDDLG" = yes; then
10714             echo "$as_me:$LINENO: result: yes" >&5
10715 echo "${ECHO_T}yes" >&6
10716           else
10717             echo "$as_me:$LINENO: result: no" >&5
10718 echo "${ECHO_T}no" >&6
10719           fi
10720
10721
10722
10723
10724           enablestring=
10725           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10726 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10727           no_cache=0
10728           # Check whether --enable-menus or --disable-menus was given.
10729 if test "${enable_menus+set}" = set; then
10730   enableval="$enable_menus"
10731
10732                           if test "$enableval" = yes; then
10733                             ac_cv_use_menus='wxUSE_MENUS=yes'
10734                           else
10735                             ac_cv_use_menus='wxUSE_MENUS=no'
10736                           fi
10737
10738 else
10739
10740                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10741                           if test "x$LINE" != x ; then
10742                             eval "DEFAULT_$LINE"
10743                           else
10744                             no_cache=1
10745                           fi
10746
10747                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10748
10749 fi;
10750
10751           eval "$ac_cv_use_menus"
10752           if test "$no_cache" != 1; then
10753             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10754           fi
10755
10756           if test "$wxUSE_MENUS" = yes; then
10757             echo "$as_me:$LINENO: result: yes" >&5
10758 echo "${ECHO_T}yes" >&6
10759           else
10760             echo "$as_me:$LINENO: result: no" >&5
10761 echo "${ECHO_T}no" >&6
10762           fi
10763
10764
10765           enablestring=
10766           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10767 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10768           no_cache=0
10769           # Check whether --enable-miniframe or --disable-miniframe was given.
10770 if test "${enable_miniframe+set}" = set; then
10771   enableval="$enable_miniframe"
10772
10773                           if test "$enableval" = yes; then
10774                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10775                           else
10776                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10777                           fi
10778
10779 else
10780
10781                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10782                           if test "x$LINE" != x ; then
10783                             eval "DEFAULT_$LINE"
10784                           else
10785                             no_cache=1
10786                           fi
10787
10788                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10789
10790 fi;
10791
10792           eval "$ac_cv_use_miniframe"
10793           if test "$no_cache" != 1; then
10794             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10795           fi
10796
10797           if test "$wxUSE_MINIFRAME" = yes; then
10798             echo "$as_me:$LINENO: result: yes" >&5
10799 echo "${ECHO_T}yes" >&6
10800           else
10801             echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6
10803           fi
10804
10805
10806           enablestring=
10807           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10808 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10809           no_cache=0
10810           # Check whether --enable-tooltips or --disable-tooltips was given.
10811 if test "${enable_tooltips+set}" = set; then
10812   enableval="$enable_tooltips"
10813
10814                           if test "$enableval" = yes; then
10815                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10816                           else
10817                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10818                           fi
10819
10820 else
10821
10822                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10823                           if test "x$LINE" != x ; then
10824                             eval "DEFAULT_$LINE"
10825                           else
10826                             no_cache=1
10827                           fi
10828
10829                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10830
10831 fi;
10832
10833           eval "$ac_cv_use_tooltips"
10834           if test "$no_cache" != 1; then
10835             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10836           fi
10837
10838           if test "$wxUSE_TOOLTIPS" = yes; then
10839             echo "$as_me:$LINENO: result: yes" >&5
10840 echo "${ECHO_T}yes" >&6
10841           else
10842             echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6
10844           fi
10845
10846
10847           enablestring=
10848           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10849 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10850           no_cache=0
10851           # Check whether --enable-splines or --disable-splines was given.
10852 if test "${enable_splines+set}" = set; then
10853   enableval="$enable_splines"
10854
10855                           if test "$enableval" = yes; then
10856                             ac_cv_use_splines='wxUSE_SPLINES=yes'
10857                           else
10858                             ac_cv_use_splines='wxUSE_SPLINES=no'
10859                           fi
10860
10861 else
10862
10863                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10864                           if test "x$LINE" != x ; then
10865                             eval "DEFAULT_$LINE"
10866                           else
10867                             no_cache=1
10868                           fi
10869
10870                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10871
10872 fi;
10873
10874           eval "$ac_cv_use_splines"
10875           if test "$no_cache" != 1; then
10876             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10877           fi
10878
10879           if test "$wxUSE_SPLINES" = yes; then
10880             echo "$as_me:$LINENO: result: yes" >&5
10881 echo "${ECHO_T}yes" >&6
10882           else
10883             echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6
10885           fi
10886
10887
10888           enablestring=
10889           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10890 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10891           no_cache=0
10892           # Check whether --enable-mousewheel or --disable-mousewheel was given.
10893 if test "${enable_mousewheel+set}" = set; then
10894   enableval="$enable_mousewheel"
10895
10896                           if test "$enableval" = yes; then
10897                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10898                           else
10899                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10900                           fi
10901
10902 else
10903
10904                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10905                           if test "x$LINE" != x ; then
10906                             eval "DEFAULT_$LINE"
10907                           else
10908                             no_cache=1
10909                           fi
10910
10911                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10912
10913 fi;
10914
10915           eval "$ac_cv_use_mousewheel"
10916           if test "$no_cache" != 1; then
10917             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10918           fi
10919
10920           if test "$wxUSE_MOUSEWHEEL" = yes; then
10921             echo "$as_me:$LINENO: result: yes" >&5
10922 echo "${ECHO_T}yes" >&6
10923           else
10924             echo "$as_me:$LINENO: result: no" >&5
10925 echo "${ECHO_T}no" >&6
10926           fi
10927
10928
10929           enablestring=
10930           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10931 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10932           no_cache=0
10933           # Check whether --enable-validators or --disable-validators was given.
10934 if test "${enable_validators+set}" = set; then
10935   enableval="$enable_validators"
10936
10937                           if test "$enableval" = yes; then
10938                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10939                           else
10940                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
10941                           fi
10942
10943 else
10944
10945                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10946                           if test "x$LINE" != x ; then
10947                             eval "DEFAULT_$LINE"
10948                           else
10949                             no_cache=1
10950                           fi
10951
10952                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10953
10954 fi;
10955
10956           eval "$ac_cv_use_validators"
10957           if test "$no_cache" != 1; then
10958             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10959           fi
10960
10961           if test "$wxUSE_VALIDATORS" = yes; then
10962             echo "$as_me:$LINENO: result: yes" >&5
10963 echo "${ECHO_T}yes" >&6
10964           else
10965             echo "$as_me:$LINENO: result: no" >&5
10966 echo "${ECHO_T}no" >&6
10967           fi
10968
10969
10970           enablestring=
10971           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10972 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10973           no_cache=0
10974           # Check whether --enable-busyinfo or --disable-busyinfo was given.
10975 if test "${enable_busyinfo+set}" = set; then
10976   enableval="$enable_busyinfo"
10977
10978                           if test "$enableval" = yes; then
10979                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10980                           else
10981                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10982                           fi
10983
10984 else
10985
10986                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10987                           if test "x$LINE" != x ; then
10988                             eval "DEFAULT_$LINE"
10989                           else
10990                             no_cache=1
10991                           fi
10992
10993                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10994
10995 fi;
10996
10997           eval "$ac_cv_use_busyinfo"
10998           if test "$no_cache" != 1; then
10999             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11000           fi
11001
11002           if test "$wxUSE_BUSYINFO" = yes; then
11003             echo "$as_me:$LINENO: result: yes" >&5
11004 echo "${ECHO_T}yes" >&6
11005           else
11006             echo "$as_me:$LINENO: result: no" >&5
11007 echo "${ECHO_T}no" >&6
11008           fi
11009
11010
11011           enablestring=
11012           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11013 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11014           no_cache=0
11015           # Check whether --enable-joystick or --disable-joystick was given.
11016 if test "${enable_joystick+set}" = set; then
11017   enableval="$enable_joystick"
11018
11019                           if test "$enableval" = yes; then
11020                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11021                           else
11022                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11023                           fi
11024
11025 else
11026
11027                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11028                           if test "x$LINE" != x ; then
11029                             eval "DEFAULT_$LINE"
11030                           else
11031                             no_cache=1
11032                           fi
11033
11034                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11035
11036 fi;
11037
11038           eval "$ac_cv_use_joystick"
11039           if test "$no_cache" != 1; then
11040             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11041           fi
11042
11043           if test "$wxUSE_JOYSTICK" = yes; then
11044             echo "$as_me:$LINENO: result: yes" >&5
11045 echo "${ECHO_T}yes" >&6
11046           else
11047             echo "$as_me:$LINENO: result: no" >&5
11048 echo "${ECHO_T}no" >&6
11049           fi
11050
11051
11052           enablestring=
11053           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11054 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11055           no_cache=0
11056           # Check whether --enable-metafile or --disable-metafile was given.
11057 if test "${enable_metafile+set}" = set; then
11058   enableval="$enable_metafile"
11059
11060                           if test "$enableval" = yes; then
11061                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
11062                           else
11063                             ac_cv_use_metafile='wxUSE_METAFILE=no'
11064                           fi
11065
11066 else
11067
11068                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11069                           if test "x$LINE" != x ; then
11070                             eval "DEFAULT_$LINE"
11071                           else
11072                             no_cache=1
11073                           fi
11074
11075                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11076
11077 fi;
11078
11079           eval "$ac_cv_use_metafile"
11080           if test "$no_cache" != 1; then
11081             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11082           fi
11083
11084           if test "$wxUSE_METAFILE" = yes; then
11085             echo "$as_me:$LINENO: result: yes" >&5
11086 echo "${ECHO_T}yes" >&6
11087           else
11088             echo "$as_me:$LINENO: result: no" >&5
11089 echo "${ECHO_T}no" >&6
11090           fi
11091
11092
11093           enablestring=
11094           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11095 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11096           no_cache=0
11097           # Check whether --enable-dragimage or --disable-dragimage was given.
11098 if test "${enable_dragimage+set}" = set; then
11099   enableval="$enable_dragimage"
11100
11101                           if test "$enableval" = yes; then
11102                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11103                           else
11104                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11105                           fi
11106
11107 else
11108
11109                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11110                           if test "x$LINE" != x ; then
11111                             eval "DEFAULT_$LINE"
11112                           else
11113                             no_cache=1
11114                           fi
11115
11116                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11117
11118 fi;
11119
11120           eval "$ac_cv_use_dragimage"
11121           if test "$no_cache" != 1; then
11122             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11123           fi
11124
11125           if test "$wxUSE_DRAGIMAGE" = yes; then
11126             echo "$as_me:$LINENO: result: yes" >&5
11127 echo "${ECHO_T}yes" >&6
11128           else
11129             echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6
11131           fi
11132
11133
11134           enablestring=
11135           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11136 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11137           no_cache=0
11138           # Check whether --enable-accessibility or --disable-accessibility was given.
11139 if test "${enable_accessibility+set}" = set; then
11140   enableval="$enable_accessibility"
11141
11142                           if test "$enableval" = yes; then
11143                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11144                           else
11145                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11146                           fi
11147
11148 else
11149
11150                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11151                           if test "x$LINE" != x ; then
11152                             eval "DEFAULT_$LINE"
11153                           else
11154                             no_cache=1
11155                           fi
11156
11157                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11158
11159 fi;
11160
11161           eval "$ac_cv_use_accessibility"
11162           if test "$no_cache" != 1; then
11163             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11164           fi
11165
11166           if test "$wxUSE_ACCESSIBILITY" = yes; then
11167             echo "$as_me:$LINENO: result: yes" >&5
11168 echo "${ECHO_T}yes" >&6
11169           else
11170             echo "$as_me:$LINENO: result: no" >&5
11171 echo "${ECHO_T}no" >&6
11172           fi
11173
11174
11175 if test "$wxUSE_MSW" = "1"; then
11176
11177           enablestring=
11178           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11179 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11180           no_cache=0
11181           # Check whether --enable-dccache or --disable-dccache was given.
11182 if test "${enable_dccache+set}" = set; then
11183   enableval="$enable_dccache"
11184
11185                           if test "$enableval" = yes; then
11186                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11187                           else
11188                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11189                           fi
11190
11191 else
11192
11193                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11194                           if test "x$LINE" != x ; then
11195                             eval "DEFAULT_$LINE"
11196                           else
11197                             no_cache=1
11198                           fi
11199
11200                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11201
11202 fi;
11203
11204           eval "$ac_cv_use_dccache"
11205           if test "$no_cache" != 1; then
11206             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11207           fi
11208
11209           if test "$wxUSE_DC_CACHEING" = yes; then
11210             echo "$as_me:$LINENO: result: yes" >&5
11211 echo "${ECHO_T}yes" >&6
11212           else
11213             echo "$as_me:$LINENO: result: no" >&5
11214 echo "${ECHO_T}no" >&6
11215           fi
11216
11217 fi
11218
11219
11220
11221           enablestring=
11222           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11223 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11224           no_cache=0
11225           # Check whether --enable-palette or --disable-palette was given.
11226 if test "${enable_palette+set}" = set; then
11227   enableval="$enable_palette"
11228
11229                           if test "$enableval" = yes; then
11230                             ac_cv_use_palette='wxUSE_PALETTE=yes'
11231                           else
11232                             ac_cv_use_palette='wxUSE_PALETTE=no'
11233                           fi
11234
11235 else
11236
11237                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11238                           if test "x$LINE" != x ; then
11239                             eval "DEFAULT_$LINE"
11240                           else
11241                             no_cache=1
11242                           fi
11243
11244                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11245
11246 fi;
11247
11248           eval "$ac_cv_use_palette"
11249           if test "$no_cache" != 1; then
11250             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11251           fi
11252
11253           if test "$wxUSE_PALETTE" = yes; then
11254             echo "$as_me:$LINENO: result: yes" >&5
11255 echo "${ECHO_T}yes" >&6
11256           else
11257             echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6
11259           fi
11260
11261
11262           enablestring=
11263           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11264 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11265           no_cache=0
11266           # Check whether --enable-image or --disable-image was given.
11267 if test "${enable_image+set}" = set; then
11268   enableval="$enable_image"
11269
11270                           if test "$enableval" = yes; then
11271                             ac_cv_use_image='wxUSE_IMAGE=yes'
11272                           else
11273                             ac_cv_use_image='wxUSE_IMAGE=no'
11274                           fi
11275
11276 else
11277
11278                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11279                           if test "x$LINE" != x ; then
11280                             eval "DEFAULT_$LINE"
11281                           else
11282                             no_cache=1
11283                           fi
11284
11285                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11286
11287 fi;
11288
11289           eval "$ac_cv_use_image"
11290           if test "$no_cache" != 1; then
11291             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11292           fi
11293
11294           if test "$wxUSE_IMAGE" = yes; then
11295             echo "$as_me:$LINENO: result: yes" >&5
11296 echo "${ECHO_T}yes" >&6
11297           else
11298             echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6
11300           fi
11301
11302
11303           enablestring=
11304           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11305 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11306           no_cache=0
11307           # Check whether --enable-gif or --disable-gif was given.
11308 if test "${enable_gif+set}" = set; then
11309   enableval="$enable_gif"
11310
11311                           if test "$enableval" = yes; then
11312                             ac_cv_use_gif='wxUSE_GIF=yes'
11313                           else
11314                             ac_cv_use_gif='wxUSE_GIF=no'
11315                           fi
11316
11317 else
11318
11319                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11320                           if test "x$LINE" != x ; then
11321                             eval "DEFAULT_$LINE"
11322                           else
11323                             no_cache=1
11324                           fi
11325
11326                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11327
11328 fi;
11329
11330           eval "$ac_cv_use_gif"
11331           if test "$no_cache" != 1; then
11332             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11333           fi
11334
11335           if test "$wxUSE_GIF" = yes; then
11336             echo "$as_me:$LINENO: result: yes" >&5
11337 echo "${ECHO_T}yes" >&6
11338           else
11339             echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6
11341           fi
11342
11343
11344           enablestring=
11345           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11346 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11347           no_cache=0
11348           # Check whether --enable-pcx or --disable-pcx was given.
11349 if test "${enable_pcx+set}" = set; then
11350   enableval="$enable_pcx"
11351
11352                           if test "$enableval" = yes; then
11353                             ac_cv_use_pcx='wxUSE_PCX=yes'
11354                           else
11355                             ac_cv_use_pcx='wxUSE_PCX=no'
11356                           fi
11357
11358 else
11359
11360                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11361                           if test "x$LINE" != x ; then
11362                             eval "DEFAULT_$LINE"
11363                           else
11364                             no_cache=1
11365                           fi
11366
11367                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11368
11369 fi;
11370
11371           eval "$ac_cv_use_pcx"
11372           if test "$no_cache" != 1; then
11373             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11374           fi
11375
11376           if test "$wxUSE_PCX" = yes; then
11377             echo "$as_me:$LINENO: result: yes" >&5
11378 echo "${ECHO_T}yes" >&6
11379           else
11380             echo "$as_me:$LINENO: result: no" >&5
11381 echo "${ECHO_T}no" >&6
11382           fi
11383
11384
11385           enablestring=
11386           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11387 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11388           no_cache=0
11389           # Check whether --enable-iff or --disable-iff was given.
11390 if test "${enable_iff+set}" = set; then
11391   enableval="$enable_iff"
11392
11393                           if test "$enableval" = yes; then
11394                             ac_cv_use_iff='wxUSE_IFF=yes'
11395                           else
11396                             ac_cv_use_iff='wxUSE_IFF=no'
11397                           fi
11398
11399 else
11400
11401                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11402                           if test "x$LINE" != x ; then
11403                             eval "DEFAULT_$LINE"
11404                           else
11405                             no_cache=1
11406                           fi
11407
11408                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11409
11410 fi;
11411
11412           eval "$ac_cv_use_iff"
11413           if test "$no_cache" != 1; then
11414             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11415           fi
11416
11417           if test "$wxUSE_IFF" = yes; then
11418             echo "$as_me:$LINENO: result: yes" >&5
11419 echo "${ECHO_T}yes" >&6
11420           else
11421             echo "$as_me:$LINENO: result: no" >&5
11422 echo "${ECHO_T}no" >&6
11423           fi
11424
11425
11426           enablestring=
11427           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11428 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11429           no_cache=0
11430           # Check whether --enable-pnm or --disable-pnm was given.
11431 if test "${enable_pnm+set}" = set; then
11432   enableval="$enable_pnm"
11433
11434                           if test "$enableval" = yes; then
11435                             ac_cv_use_pnm='wxUSE_PNM=yes'
11436                           else
11437                             ac_cv_use_pnm='wxUSE_PNM=no'
11438                           fi
11439
11440 else
11441
11442                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11443                           if test "x$LINE" != x ; then
11444                             eval "DEFAULT_$LINE"
11445                           else
11446                             no_cache=1
11447                           fi
11448
11449                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11450
11451 fi;
11452
11453           eval "$ac_cv_use_pnm"
11454           if test "$no_cache" != 1; then
11455             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11456           fi
11457
11458           if test "$wxUSE_PNM" = yes; then
11459             echo "$as_me:$LINENO: result: yes" >&5
11460 echo "${ECHO_T}yes" >&6
11461           else
11462             echo "$as_me:$LINENO: result: no" >&5
11463 echo "${ECHO_T}no" >&6
11464           fi
11465
11466
11467           enablestring=
11468           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11469 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11470           no_cache=0
11471           # Check whether --enable-xpm or --disable-xpm was given.
11472 if test "${enable_xpm+set}" = set; then
11473   enableval="$enable_xpm"
11474
11475                           if test "$enableval" = yes; then
11476                             ac_cv_use_xpm='wxUSE_XPM=yes'
11477                           else
11478                             ac_cv_use_xpm='wxUSE_XPM=no'
11479                           fi
11480
11481 else
11482
11483                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11484                           if test "x$LINE" != x ; then
11485                             eval "DEFAULT_$LINE"
11486                           else
11487                             no_cache=1
11488                           fi
11489
11490                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11491
11492 fi;
11493
11494           eval "$ac_cv_use_xpm"
11495           if test "$no_cache" != 1; then
11496             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11497           fi
11498
11499           if test "$wxUSE_XPM" = yes; then
11500             echo "$as_me:$LINENO: result: yes" >&5
11501 echo "${ECHO_T}yes" >&6
11502           else
11503             echo "$as_me:$LINENO: result: no" >&5
11504 echo "${ECHO_T}no" >&6
11505           fi
11506
11507
11508           enablestring=
11509           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11510 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11511           no_cache=0
11512           # Check whether --enable-ico_cur or --disable-ico_cur was given.
11513 if test "${enable_ico_cur+set}" = set; then
11514   enableval="$enable_ico_cur"
11515
11516                           if test "$enableval" = yes; then
11517                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11518                           else
11519                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11520                           fi
11521
11522 else
11523
11524                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11525                           if test "x$LINE" != x ; then
11526                             eval "DEFAULT_$LINE"
11527                           else
11528                             no_cache=1
11529                           fi
11530
11531                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11532
11533 fi;
11534
11535           eval "$ac_cv_use_ico_cur"
11536           if test "$no_cache" != 1; then
11537             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11538           fi
11539
11540           if test "$wxUSE_ICO_CUR" = yes; then
11541             echo "$as_me:$LINENO: result: yes" >&5
11542 echo "${ECHO_T}yes" >&6
11543           else
11544             echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6
11546           fi
11547
11548
11549 fi
11550
11551
11552
11553 # Check whether --with-flavour or --without-flavour was given.
11554 if test "${with_flavour+set}" = set; then
11555   withval="$with_flavour"
11556   WX_FLAVOUR="$withval"
11557 fi;
11558
11559
11560
11561           enablestring=
11562           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11563 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11564           no_cache=0
11565           # Check whether --enable-official_build or --disable-official_build was given.
11566 if test "${enable_official_build+set}" = set; then
11567   enableval="$enable_official_build"
11568
11569                           if test "$enableval" = yes; then
11570                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11571                           else
11572                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11573                           fi
11574
11575 else
11576
11577                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11578                           if test "x$LINE" != x ; then
11579                             eval "DEFAULT_$LINE"
11580                           else
11581                             no_cache=1
11582                           fi
11583
11584                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11585
11586 fi;
11587
11588           eval "$ac_cv_use_official_build"
11589           if test "$no_cache" != 1; then
11590             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11591           fi
11592
11593           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11594             echo "$as_me:$LINENO: result: yes" >&5
11595 echo "${ECHO_T}yes" >&6
11596           else
11597             echo "$as_me:$LINENO: result: no" >&5
11598 echo "${ECHO_T}no" >&6
11599           fi
11600
11601 # Check whether --enable-vendor or --disable-vendor was given.
11602 if test "${enable_vendor+set}" = set; then
11603   enableval="$enable_vendor"
11604   VENDOR="$enableval"
11605 fi;
11606 if test "x$VENDOR" = "x"; then
11607     VENDOR="custom"
11608 fi
11609
11610
11611
11612
11613           echo "saving argument cache $wx_arg_cache_file"
11614           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11615
11616
11617
11618 echo "$as_me:$LINENO: checking for toolkit" >&5
11619 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11620
11621 # In Wine, we need to default to MSW, not GTK or MOTIF
11622 if test "$wxUSE_WINE" = "yes"; then
11623     DEFAULT_DEFAULT_wxUSE_GTK=0
11624     DEFAULT_DEFAULT_wxUSE_MOTIF=0
11625     DEFAULT_DEFAULT_wxUSE_MSW=1
11626     wxUSE_SHARED=no
11627 fi
11628
11629
11630 if test "$wxUSE_GUI" = "yes"; then
11631
11632     if test "$USE_BEOS" = 1; then
11633         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11634 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11635    { (exit 1); exit 1; }; }
11636     fi
11637
11638     if test "$TOOLKIT_GIVEN" = 1; then
11639             for toolkit in `echo $ALL_TOOLKITS`; do
11640         var=wxUSE_$toolkit
11641         eval "value=\$${var}"
11642         if test "x$value" = "xno"; then
11643           eval "$var=0"
11644         elif test "x$value" != "x"; then
11645           eval "$var=1"
11646         fi
11647
11648         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11649           eval "wx${toolkit}_VERSION=$value"
11650         fi
11651       done
11652     else
11653             for toolkit in `echo $ALL_TOOLKITS`; do
11654         if test "$has_toolkit_in_cache" != 1; then
11655           var=DEFAULT_DEFAULT_wxUSE_$toolkit
11656         else
11657           var=DEFAULT_wxUSE_$toolkit
11658
11659           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11660           if test "x$version" != "x"; then
11661             eval "wx${toolkit}_VERSION=$version"
11662           fi
11663         fi
11664         eval "wxUSE_$toolkit=\$${var}"
11665       done
11666     fi
11667
11668             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11669                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
11670                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11671
11672         case "${host}" in
11673       *-pc-os2_emx | *-pc-os2-emx )
11674         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11675     esac
11676
11677     case "$NUM_TOOLKITS" in
11678       1)
11679       ;;
11680       0)
11681         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11682 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11683    { (exit 1); exit 1; }; }
11684       ;;
11685       *)
11686         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11687 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11688    { (exit 1); exit 1; }; }
11689     esac
11690
11691     # to be removed when --disable-gtk2 isn't needed
11692     if test "x$wxUSE_GTK2" = "xyes"; then
11693         wxGTK_VERSION=2
11694     elif test "x$wxUSE_GTK2" = "xno"; then
11695         wxGTK_VERSION=1
11696     fi
11697
11698         for toolkit in `echo $ALL_TOOLKITS`; do
11699       var=wxUSE_$toolkit
11700       eval "value=\$${var}"
11701       if test "x$value" != x; then
11702         cache_var=CACHE_$toolkit
11703         eval "cache=\$${cache_var}"
11704         if test "$cache" = 1; then
11705           echo "$var=$value" >> ${wx_arg_cache_file}
11706           eval "version=\$wx${toolkit}_VERSION"
11707           if test "x$version" != "x"; then
11708             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11709           fi
11710         fi
11711         if test "$value" = 1; then
11712           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11713           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11714 echo "${ECHO_T}$toolkit_echo" >&6
11715         fi
11716       fi
11717     done
11718 else
11719     if test "x$host_alias" != "x"; then
11720         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11721 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11722     else
11723         echo "$as_me:$LINENO: result: base only" >&5
11724 echo "${ECHO_T}base only" >&6
11725     fi
11726 fi
11727
11728 wants_win32=0
11729 doesnt_want_win32=0
11730 case "${host}" in
11731   *-*-cygwin*)
11732       if test "$wxUSE_MSW" = 1 ; then
11733         wants_win32=1
11734         BAKEFILE_FORCE_PLATFORM=win32
11735       else
11736         doesnt_want_win32=1
11737       fi
11738   ;;
11739   *-*-mingw*)
11740       wants_win32=1
11741   ;;
11742 esac
11743
11744 if test "$wxUSE_WINE" = "yes"; then
11745     wants_win32=1
11746         CC=winegcc
11747     CXX=wineg++
11748     LDFLAGS_GUI="-mwindows"
11749 fi
11750
11751 if test "$wants_win32" = 1 ; then
11752     USE_UNIX=0
11753     USE_WIN32=1
11754     cat >>confdefs.h <<\_ACEOF
11755 #define __WIN32__ 1
11756 _ACEOF
11757
11758     cat >>confdefs.h <<\_ACEOF
11759 #define __WIN95__ 1
11760 _ACEOF
11761
11762     cat >>confdefs.h <<\_ACEOF
11763 #define __WINDOWS__ 1
11764 _ACEOF
11765
11766     cat >>confdefs.h <<\_ACEOF
11767 #define __GNUWIN32__ 1
11768 _ACEOF
11769
11770     cat >>confdefs.h <<\_ACEOF
11771 #define STRICT 1
11772 _ACEOF
11773
11774     cat >>confdefs.h <<\_ACEOF
11775 #define WINVER 0x0400
11776 _ACEOF
11777
11778 fi
11779 if test "$doesnt_want_win32" = 1 ; then
11780     USE_UNIX=1
11781     USE_WIN32=0
11782 fi
11783
11784 if test "$USE_UNIX" = 1 ; then
11785     wxUSE_UNIX=yes
11786     cat >>confdefs.h <<\_ACEOF
11787 #define __UNIX__ 1
11788 _ACEOF
11789
11790 fi
11791
11792
11793 cat >confcache <<\_ACEOF
11794 # This file is a shell script that caches the results of configure
11795 # tests run on this system so they can be shared between configure
11796 # scripts and configure runs, see configure's option --config-cache.
11797 # It is not useful on other systems.  If it contains results you don't
11798 # want to keep, you may remove or edit it.
11799 #
11800 # config.status only pays attention to the cache file if you give it
11801 # the --recheck option to rerun configure.
11802 #
11803 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11804 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11805 # following values.
11806
11807 _ACEOF
11808
11809 # The following way of writing the cache mishandles newlines in values,
11810 # but we know of no workaround that is simple, portable, and efficient.
11811 # So, don't put newlines in cache variables' values.
11812 # Ultrix sh set writes to stderr and can't be redirected directly,
11813 # and sets the high bit in the cache file unless we assign to the vars.
11814 {
11815   (set) 2>&1 |
11816     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11817     *ac_space=\ *)
11818       # `set' does not quote correctly, so add quotes (double-quote
11819       # substitution turns \\\\ into \\, and sed turns \\ into \).
11820       sed -n \
11821         "s/'/'\\\\''/g;
11822           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11823       ;;
11824     *)
11825       # `set' quotes correctly as required by POSIX, so do not add quotes.
11826       sed -n \
11827         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11828       ;;
11829     esac;
11830 } |
11831   sed '
11832      t clear
11833      : clear
11834      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11835      t end
11836      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11837      : end' >>confcache
11838 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11839   if test -w $cache_file; then
11840     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11841     cat confcache >$cache_file
11842   else
11843     echo "not updating unwritable cache $cache_file"
11844   fi
11845 fi
11846 rm -f confcache
11847
11848 CFLAGS=${CFLAGS:=}
11849
11850
11851
11852     ac_ext=c
11853 ac_cpp='$CPP $CPPFLAGS'
11854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11857 if test -n "$ac_tool_prefix"; then
11858   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11859 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11860 echo "$as_me:$LINENO: checking for $ac_word" >&5
11861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11862 if test "${ac_cv_prog_CC+set}" = set; then
11863   echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865   if test -n "$CC"; then
11866   ac_cv_prog_CC="$CC" # Let the user override the test.
11867 else
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11870 do
11871   IFS=$as_save_IFS
11872   test -z "$as_dir" && as_dir=.
11873   for ac_exec_ext in '' $ac_executable_extensions; do
11874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11877     break 2
11878   fi
11879 done
11880 done
11881
11882 fi
11883 fi
11884 CC=$ac_cv_prog_CC
11885 if test -n "$CC"; then
11886   echo "$as_me:$LINENO: result: $CC" >&5
11887 echo "${ECHO_T}$CC" >&6
11888 else
11889   echo "$as_me:$LINENO: result: no" >&5
11890 echo "${ECHO_T}no" >&6
11891 fi
11892
11893 fi
11894 if test -z "$ac_cv_prog_CC"; then
11895   ac_ct_CC=$CC
11896   # Extract the first word of "gcc", so it can be a program name with args.
11897 set dummy gcc; ac_word=$2
11898 echo "$as_me:$LINENO: checking for $ac_word" >&5
11899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903   if test -n "$ac_ct_CC"; then
11904   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11905 else
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11908 do
11909   IFS=$as_save_IFS
11910   test -z "$as_dir" && as_dir=.
11911   for ac_exec_ext in '' $ac_executable_extensions; do
11912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913     ac_cv_prog_ac_ct_CC="gcc"
11914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11915     break 2
11916   fi
11917 done
11918 done
11919
11920 fi
11921 fi
11922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11923 if test -n "$ac_ct_CC"; then
11924   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11925 echo "${ECHO_T}$ac_ct_CC" >&6
11926 else
11927   echo "$as_me:$LINENO: result: no" >&5
11928 echo "${ECHO_T}no" >&6
11929 fi
11930
11931   CC=$ac_ct_CC
11932 else
11933   CC="$ac_cv_prog_CC"
11934 fi
11935
11936 if test -z "$CC"; then
11937   if test -n "$ac_tool_prefix"; then
11938   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11939 set dummy ${ac_tool_prefix}cc; ac_word=$2
11940 echo "$as_me:$LINENO: checking for $ac_word" >&5
11941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11942 if test "${ac_cv_prog_CC+set}" = set; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   if test -n "$CC"; then
11946   ac_cv_prog_CC="$CC" # Let the user override the test.
11947 else
11948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in $PATH
11950 do
11951   IFS=$as_save_IFS
11952   test -z "$as_dir" && as_dir=.
11953   for ac_exec_ext in '' $ac_executable_extensions; do
11954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11955     ac_cv_prog_CC="${ac_tool_prefix}cc"
11956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11957     break 2
11958   fi
11959 done
11960 done
11961
11962 fi
11963 fi
11964 CC=$ac_cv_prog_CC
11965 if test -n "$CC"; then
11966   echo "$as_me:$LINENO: result: $CC" >&5
11967 echo "${ECHO_T}$CC" >&6
11968 else
11969   echo "$as_me:$LINENO: result: no" >&5
11970 echo "${ECHO_T}no" >&6
11971 fi
11972
11973 fi
11974 if test -z "$ac_cv_prog_CC"; then
11975   ac_ct_CC=$CC
11976   # Extract the first word of "cc", so it can be a program name with args.
11977 set dummy cc; ac_word=$2
11978 echo "$as_me:$LINENO: checking for $ac_word" >&5
11979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11981   echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983   if test -n "$ac_ct_CC"; then
11984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11985 else
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH
11988 do
11989   IFS=$as_save_IFS
11990   test -z "$as_dir" && as_dir=.
11991   for ac_exec_ext in '' $ac_executable_extensions; do
11992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11993     ac_cv_prog_ac_ct_CC="cc"
11994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11995     break 2
11996   fi
11997 done
11998 done
11999
12000 fi
12001 fi
12002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12003 if test -n "$ac_ct_CC"; then
12004   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12005 echo "${ECHO_T}$ac_ct_CC" >&6
12006 else
12007   echo "$as_me:$LINENO: result: no" >&5
12008 echo "${ECHO_T}no" >&6
12009 fi
12010
12011   CC=$ac_ct_CC
12012 else
12013   CC="$ac_cv_prog_CC"
12014 fi
12015
12016 fi
12017 if test -z "$CC"; then
12018   # Extract the first word of "cc", so it can be a program name with args.
12019 set dummy cc; ac_word=$2
12020 echo "$as_me:$LINENO: checking for $ac_word" >&5
12021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12022 if test "${ac_cv_prog_CC+set}" = set; then
12023   echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025   if test -n "$CC"; then
12026   ac_cv_prog_CC="$CC" # Let the user override the test.
12027 else
12028   ac_prog_rejected=no
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12031 do
12032   IFS=$as_save_IFS
12033   test -z "$as_dir" && as_dir=.
12034   for ac_exec_ext in '' $ac_executable_extensions; do
12035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12037        ac_prog_rejected=yes
12038        continue
12039      fi
12040     ac_cv_prog_CC="cc"
12041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12042     break 2
12043   fi
12044 done
12045 done
12046
12047 if test $ac_prog_rejected = yes; then
12048   # We found a bogon in the path, so make sure we never use it.
12049   set dummy $ac_cv_prog_CC
12050   shift
12051   if test $# != 0; then
12052     # We chose a different compiler from the bogus one.
12053     # However, it has the same basename, so the bogon will be chosen
12054     # first if we set CC to just the basename; use the full file name.
12055     shift
12056     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12057   fi
12058 fi
12059 fi
12060 fi
12061 CC=$ac_cv_prog_CC
12062 if test -n "$CC"; then
12063   echo "$as_me:$LINENO: result: $CC" >&5
12064 echo "${ECHO_T}$CC" >&6
12065 else
12066   echo "$as_me:$LINENO: result: no" >&5
12067 echo "${ECHO_T}no" >&6
12068 fi
12069
12070 fi
12071 if test -z "$CC"; then
12072   if test -n "$ac_tool_prefix"; then
12073   for ac_prog in cl
12074   do
12075     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12077 echo "$as_me:$LINENO: checking for $ac_word" >&5
12078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12079 if test "${ac_cv_prog_CC+set}" = set; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   if test -n "$CC"; then
12083   ac_cv_prog_CC="$CC" # Let the user override the test.
12084 else
12085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086 for as_dir in $PATH
12087 do
12088   IFS=$as_save_IFS
12089   test -z "$as_dir" && as_dir=.
12090   for ac_exec_ext in '' $ac_executable_extensions; do
12091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12092     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12094     break 2
12095   fi
12096 done
12097 done
12098
12099 fi
12100 fi
12101 CC=$ac_cv_prog_CC
12102 if test -n "$CC"; then
12103   echo "$as_me:$LINENO: result: $CC" >&5
12104 echo "${ECHO_T}$CC" >&6
12105 else
12106   echo "$as_me:$LINENO: result: no" >&5
12107 echo "${ECHO_T}no" >&6
12108 fi
12109
12110     test -n "$CC" && break
12111   done
12112 fi
12113 if test -z "$CC"; then
12114   ac_ct_CC=$CC
12115   for ac_prog in cl
12116 do
12117   # Extract the first word of "$ac_prog", so it can be a program name with args.
12118 set dummy $ac_prog; ac_word=$2
12119 echo "$as_me:$LINENO: checking for $ac_word" >&5
12120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12121 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12122   echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124   if test -n "$ac_ct_CC"; then
12125   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12126 else
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12129 do
12130   IFS=$as_save_IFS
12131   test -z "$as_dir" && as_dir=.
12132   for ac_exec_ext in '' $ac_executable_extensions; do
12133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134     ac_cv_prog_ac_ct_CC="$ac_prog"
12135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12136     break 2
12137   fi
12138 done
12139 done
12140
12141 fi
12142 fi
12143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12144 if test -n "$ac_ct_CC"; then
12145   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12146 echo "${ECHO_T}$ac_ct_CC" >&6
12147 else
12148   echo "$as_me:$LINENO: result: no" >&5
12149 echo "${ECHO_T}no" >&6
12150 fi
12151
12152   test -n "$ac_ct_CC" && break
12153 done
12154
12155   CC=$ac_ct_CC
12156 fi
12157
12158 fi
12159
12160
12161 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12162 See \`config.log' for more details." >&5
12163 echo "$as_me: error: no acceptable C compiler found in \$PATH
12164 See \`config.log' for more details." >&2;}
12165    { (exit 1); exit 1; }; }
12166
12167 # Provide some information about the compiler.
12168 echo "$as_me:$LINENO:" \
12169      "checking for C compiler version" >&5
12170 ac_compiler=`set X $ac_compile; echo $2`
12171 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12172   (eval $ac_compiler --version </dev/null >&5) 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); }
12176 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12177   (eval $ac_compiler -v </dev/null >&5) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); }
12181 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12182   (eval $ac_compiler -V </dev/null >&5) 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }
12186
12187 cat >conftest.$ac_ext <<_ACEOF
12188 /* confdefs.h.  */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h.  */
12193
12194 int
12195 main ()
12196 {
12197
12198   ;
12199   return 0;
12200 }
12201 _ACEOF
12202 ac_clean_files_save=$ac_clean_files
12203 ac_clean_files="$ac_clean_files a.out a.exe b.out"
12204 # Try to create an executable without -o first, disregard a.out.
12205 # It will help us diagnose broken compilers, and finding out an intuition
12206 # of exeext.
12207 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12208 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12209 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12210 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12211   (eval $ac_link_default) 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); }; then
12215   # Find the output, starting from the most likely.  This scheme is
12216 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
12217 # resort.
12218
12219 # Be careful to initialize this variable, since it used to be cached.
12220 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12221 ac_cv_exeext=
12222 # b.out is created by i960 compilers.
12223 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12224 do
12225   test -f "$ac_file" || continue
12226   case $ac_file in
12227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12228         ;;
12229     conftest.$ac_ext )
12230         # This is the source file.
12231         ;;
12232     [ab].out )
12233         # We found the default executable, but exeext='' is most
12234         # certainly right.
12235         break;;
12236     *.* )
12237         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12238         # FIXME: I believe we export ac_cv_exeext for Libtool,
12239         # but it would be cool to find out if it's true.  Does anybody
12240         # maintain Libtool? --akim.
12241         export ac_cv_exeext
12242         break;;
12243     * )
12244         break;;
12245   esac
12246 done
12247 else
12248   echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
12252 See \`config.log' for more details." >&5
12253 echo "$as_me: error: C compiler cannot create executables
12254 See \`config.log' for more details." >&2;}
12255    { (exit 77); exit 77; }; }
12256 fi
12257
12258 ac_exeext=$ac_cv_exeext
12259 echo "$as_me:$LINENO: result: $ac_file" >&5
12260 echo "${ECHO_T}$ac_file" >&6
12261
12262 # Check the compiler produces executables we can run.  If not, either
12263 # the compiler is broken, or we cross compile.
12264 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12265 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12266 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12267 # If not cross compiling, check that we can run a simple program.
12268 if test "$cross_compiling" != yes; then
12269   if { ac_try='./$ac_file'
12270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271   (eval $ac_try) 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; }; then
12275     cross_compiling=no
12276   else
12277     if test "$cross_compiling" = maybe; then
12278         cross_compiling=yes
12279     else
12280         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12281 If you meant to cross compile, use \`--host'.
12282 See \`config.log' for more details." >&5
12283 echo "$as_me: error: cannot run C compiled programs.
12284 If you meant to cross compile, use \`--host'.
12285 See \`config.log' for more details." >&2;}
12286    { (exit 1); exit 1; }; }
12287     fi
12288   fi
12289 fi
12290 echo "$as_me:$LINENO: result: yes" >&5
12291 echo "${ECHO_T}yes" >&6
12292
12293 rm -f a.out a.exe conftest$ac_cv_exeext b.out
12294 ac_clean_files=$ac_clean_files_save
12295 # Check the compiler produces executables we can run.  If not, either
12296 # the compiler is broken, or we cross compile.
12297 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12298 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12299 echo "$as_me:$LINENO: result: $cross_compiling" >&5
12300 echo "${ECHO_T}$cross_compiling" >&6
12301
12302 echo "$as_me:$LINENO: checking for suffix of executables" >&5
12303 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305   (eval $ac_link) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; then
12309   # If both `conftest.exe' and `conftest' are `present' (well, observable)
12310 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12311 # work properly (i.e., refer to `conftest.exe'), while it won't with
12312 # `rm'.
12313 for ac_file in conftest.exe conftest conftest.*; do
12314   test -f "$ac_file" || continue
12315   case $ac_file in
12316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12317     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12318           export ac_cv_exeext
12319           break;;
12320     * ) break;;
12321   esac
12322 done
12323 else
12324   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12325 See \`config.log' for more details." >&5
12326 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12327 See \`config.log' for more details." >&2;}
12328    { (exit 1); exit 1; }; }
12329 fi
12330
12331 rm -f conftest$ac_cv_exeext
12332 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12333 echo "${ECHO_T}$ac_cv_exeext" >&6
12334
12335 rm -f conftest.$ac_ext
12336 EXEEXT=$ac_cv_exeext
12337 ac_exeext=$EXEEXT
12338 echo "$as_me:$LINENO: checking for suffix of object files" >&5
12339 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12340 if test "${ac_cv_objext+set}" = set; then
12341   echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343   cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349
12350 int
12351 main ()
12352 {
12353
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.o conftest.obj
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360   (eval $ac_compile) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; then
12364   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12365   case $ac_file in
12366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12367     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12368        break;;
12369   esac
12370 done
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12376 See \`config.log' for more details." >&5
12377 echo "$as_me: error: cannot compute suffix of object files: cannot compile
12378 See \`config.log' for more details." >&2;}
12379    { (exit 1); exit 1; }; }
12380 fi
12381
12382 rm -f conftest.$ac_cv_objext conftest.$ac_ext
12383 fi
12384 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12385 echo "${ECHO_T}$ac_cv_objext" >&6
12386 OBJEXT=$ac_cv_objext
12387 ac_objext=$OBJEXT
12388 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12389 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12390 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12391   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393   cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h.  */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h.  */
12399
12400 int
12401 main ()
12402 {
12403 #ifndef __GNUC__
12404        choke me
12405 #endif
12406
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413   (eval $ac_compile) 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } &&
12420          { ac_try='test -z "$ac_c_werror_flag"
12421                          || test ! -s conftest.err'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest.$ac_objext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   ac_compiler_gnu=yes
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438 ac_compiler_gnu=no
12439 fi
12440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12442
12443 fi
12444 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12446 GCC=`test $ac_compiler_gnu = yes && echo yes`
12447 ac_test_CFLAGS=${CFLAGS+set}
12448 ac_save_CFLAGS=$CFLAGS
12449 CFLAGS="-g"
12450 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12451 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12452 if test "${ac_cv_prog_cc_g+set}" = set; then
12453   echo $ECHO_N "(cached) $ECHO_C" >&6
12454 else
12455   cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h.  */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h.  */
12461
12462 int
12463 main ()
12464 {
12465
12466   ;
12467   return 0;
12468 }
12469 _ACEOF
12470 rm -f conftest.$ac_objext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472   (eval $ac_compile) 2>conftest.er1
12473   ac_status=$?
12474   grep -v '^ *+' conftest.er1 >conftest.err
12475   rm -f conftest.er1
12476   cat conftest.err >&5
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } &&
12479          { ac_try='test -z "$ac_c_werror_flag"
12480                          || test ! -s conftest.err'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; } &&
12486          { ac_try='test -s conftest.$ac_objext'
12487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488   (eval $ac_try) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); }; }; then
12492   ac_cv_prog_cc_g=yes
12493 else
12494   echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12496
12497 ac_cv_prog_cc_g=no
12498 fi
12499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12500 fi
12501 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12502 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12503 if test "$ac_test_CFLAGS" = set; then
12504   CFLAGS=$ac_save_CFLAGS
12505 elif test $ac_cv_prog_cc_g = yes; then
12506   if test "$GCC" = yes; then
12507     CFLAGS="-g -O2"
12508   else
12509     CFLAGS="-g"
12510   fi
12511 else
12512   if test "$GCC" = yes; then
12513     CFLAGS="-O2"
12514   else
12515     CFLAGS=
12516   fi
12517 fi
12518 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12519 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12520 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12521   echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523   ac_cv_prog_cc_stdc=no
12524 ac_save_CC=$CC
12525 cat >conftest.$ac_ext <<_ACEOF
12526 /* confdefs.h.  */
12527 _ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h.  */
12531 #include <stdarg.h>
12532 #include <stdio.h>
12533 #include <sys/types.h>
12534 #include <sys/stat.h>
12535 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12536 struct buf { int x; };
12537 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12538 static char *e (p, i)
12539      char **p;
12540      int i;
12541 {
12542   return p[i];
12543 }
12544 static char *f (char * (*g) (char **, int), char **p, ...)
12545 {
12546   char *s;
12547   va_list v;
12548   va_start (v,p);
12549   s = g (p, va_arg (v,int));
12550   va_end (v);
12551   return s;
12552 }
12553
12554 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12555    function prototypes and stuff, but not '\xHH' hex character constants.
12556    These don't provoke an error unfortunately, instead are silently treated
12557    as 'x'.  The following induces an error, until -std1 is added to get
12558    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12559    array size at least.  It's necessary to write '\x00'==0 to get something
12560    that's true only with -std1.  */
12561 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12562
12563 int test (int i, double x);
12564 struct s1 {int (*f) (int a);};
12565 struct s2 {int (*f) (double a);};
12566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12567 int argc;
12568 char **argv;
12569 int
12570 main ()
12571 {
12572 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 # Don't try gcc -ansi; that turns off useful extensions and
12578 # breaks some systems' header files.
12579 # AIX                   -qlanglvl=ansi
12580 # Ultrix and OSF/1      -std1
12581 # HP-UX 10.20 and later -Ae
12582 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12583 # SVR4                  -Xc -D__EXTENSIONS__
12584 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12585 do
12586   CC="$ac_save_CC $ac_arg"
12587   rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589   (eval $ac_compile) 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag"
12597                          || test ! -s conftest.err'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; } &&
12603          { ac_try='test -s conftest.$ac_objext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   ac_cv_prog_cc_stdc=$ac_arg
12610 break
12611 else
12612   echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12614
12615 fi
12616 rm -f conftest.err conftest.$ac_objext
12617 done
12618 rm -f conftest.$ac_ext conftest.$ac_objext
12619 CC=$ac_save_CC
12620
12621 fi
12622
12623 case "x$ac_cv_prog_cc_stdc" in
12624   x|xno)
12625     echo "$as_me:$LINENO: result: none needed" >&5
12626 echo "${ECHO_T}none needed" >&6 ;;
12627   *)
12628     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12629 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12630     CC="$CC $ac_cv_prog_cc_stdc" ;;
12631 esac
12632
12633 # Some people use a C++ compiler to compile C.  Since we use `exit',
12634 # in C++ we need to declare it.  In case someone uses the same compiler
12635 # for both compiling C and C++ we need to have the C++ compiler decide
12636 # the declaration of exit, since it's the most demanding environment.
12637 cat >conftest.$ac_ext <<_ACEOF
12638 #ifndef __cplusplus
12639   choke me
12640 #endif
12641 _ACEOF
12642 rm -f conftest.$ac_objext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12644   (eval $ac_compile) 2>conftest.er1
12645   ac_status=$?
12646   grep -v '^ *+' conftest.er1 >conftest.err
12647   rm -f conftest.er1
12648   cat conftest.err >&5
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); } &&
12651          { ac_try='test -z "$ac_c_werror_flag"
12652                          || test ! -s conftest.err'
12653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654   (eval $ac_try) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; } &&
12658          { ac_try='test -s conftest.$ac_objext'
12659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660   (eval $ac_try) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); }; }; then
12664   for ac_declaration in \
12665    '' \
12666    'extern "C" void std::exit (int) throw (); using std::exit;' \
12667    'extern "C" void std::exit (int); using std::exit;' \
12668    'extern "C" void exit (int) throw ();' \
12669    'extern "C" void exit (int);' \
12670    'void exit (int);'
12671 do
12672   cat >conftest.$ac_ext <<_ACEOF
12673 /* confdefs.h.  */
12674 _ACEOF
12675 cat confdefs.h >>conftest.$ac_ext
12676 cat >>conftest.$ac_ext <<_ACEOF
12677 /* end confdefs.h.  */
12678 $ac_declaration
12679 #include <stdlib.h>
12680 int
12681 main ()
12682 {
12683 exit (42);
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690   (eval $ac_compile) 2>conftest.er1
12691   ac_status=$?
12692   grep -v '^ *+' conftest.er1 >conftest.err
12693   rm -f conftest.er1
12694   cat conftest.err >&5
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } &&
12697          { ac_try='test -z "$ac_c_werror_flag"
12698                          || test ! -s conftest.err'
12699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700   (eval $ac_try) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; } &&
12704          { ac_try='test -s conftest.$ac_objext'
12705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706   (eval $ac_try) 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; }; then
12710   :
12711 else
12712   echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715 continue
12716 fi
12717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12718   cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h.  */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h.  */
12724 $ac_declaration
12725 int
12726 main ()
12727 {
12728 exit (42);
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735   (eval $ac_compile) 2>conftest.er1
12736   ac_status=$?
12737   grep -v '^ *+' conftest.er1 >conftest.err
12738   rm -f conftest.er1
12739   cat conftest.err >&5
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); } &&
12742          { ac_try='test -z "$ac_c_werror_flag"
12743                          || test ! -s conftest.err'
12744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745   (eval $ac_try) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; } &&
12749          { ac_try='test -s conftest.$ac_objext'
12750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751   (eval $ac_try) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   break
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 fi
12761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12762 done
12763 rm -f conftest*
12764 if test -n "$ac_declaration"; then
12765   echo '#ifdef __cplusplus' >>confdefs.h
12766   echo $ac_declaration      >>confdefs.h
12767   echo '#endif'             >>confdefs.h
12768 fi
12769
12770 else
12771   echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 fi
12775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12776 ac_ext=c
12777 ac_cpp='$CPP $CPPFLAGS'
12778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12781
12782
12783
12784     ac_ext=c
12785 ac_cpp='$CPP $CPPFLAGS'
12786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12789
12790     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12791 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12792 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795   cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801
12802 int
12803 main ()
12804 {
12805
12806              #ifndef __INTEL_COMPILER
12807                 choke me
12808              #endif
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 rm -f conftest.$ac_objext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816   (eval $ac_compile) 2>conftest.er1
12817   ac_status=$?
12818   grep -v '^ *+' conftest.er1 >conftest.err
12819   rm -f conftest.er1
12820   cat conftest.err >&5
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } &&
12823          { ac_try='test -z "$ac_c_werror_flag"
12824                          || test ! -s conftest.err'
12825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826   (eval $ac_try) 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; } &&
12830          { ac_try='test -s conftest.$ac_objext'
12831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; }; then
12836   bakefile_cv_c_compiler___INTEL_COMPILER=yes
12837 else
12838   echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 bakefile_cv_c_compiler___INTEL_COMPILER=no
12842
12843 fi
12844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12845
12846
12847 fi
12848 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12849 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12850     ac_ext=c
12851 ac_cpp='$CPP $CPPFLAGS'
12852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12855
12856     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12857         :; INTELCC=yes
12858     else
12859         :;
12860     fi
12861
12862
12863         if test "x$GCC" != "xyes"; then
12864         if test "xCC" = "xC"; then
12865             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
12866 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
12867 if test "${bakefile_cv_c_exto+set}" = set; then
12868   echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870   cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h.  */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h.  */
12876
12877 int
12878 main ()
12879 {
12880
12881   ;
12882   return 0;
12883 }
12884 _ACEOF
12885 rm -f conftest.$ac_objext conftest.$ac_ext.o
12886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887   (eval $ac_compile) 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; then
12891   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12892     case $ac_file in
12893         conftest.$ac_ext.o)
12894             bakefile_cv_c_exto="-ext o"
12895             ;;
12896         *)
12897             ;;
12898     esac
12899 done
12900 else
12901   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12902 See \`config.log' for more details." >&5
12903 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12904 See \`config.log' for more details." >&2;}
12905    { (exit 1); exit 1; }; }
12906
12907 fi
12908
12909 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12910
12911 fi
12912 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12913 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12914 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12915     if test "c" = "c"; then
12916         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
12917     fi
12918     if test "c" = "cxx"; then
12919         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
12920     fi
12921 fi
12922
12923             if test "x$bakefile_cv_c_exto" '!=' "x"; then
12924                 unset ac_cv_prog_cc_g
12925                 ac_test_CFLAGS=${CFLAGS+set}
12926 ac_save_CFLAGS=$CFLAGS
12927 CFLAGS="-g"
12928 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12929 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12930 if test "${ac_cv_prog_cc_g+set}" = set; then
12931   echo $ECHO_N "(cached) $ECHO_C" >&6
12932 else
12933   cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h.  */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h.  */
12939
12940 int
12941 main ()
12942 {
12943
12944   ;
12945   return 0;
12946 }
12947 _ACEOF
12948 rm -f conftest.$ac_objext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12950   (eval $ac_compile) 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } &&
12957          { ac_try='test -z "$ac_c_werror_flag"
12958                          || test ! -s conftest.err'
12959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960   (eval $ac_try) 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); }; } &&
12964          { ac_try='test -s conftest.$ac_objext'
12965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966   (eval $ac_try) 2>&5
12967   ac_status=$?
12968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969   (exit $ac_status); }; }; then
12970   ac_cv_prog_cc_g=yes
12971 else
12972   echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12974
12975 ac_cv_prog_cc_g=no
12976 fi
12977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 fi
12979 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12980 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12981 if test "$ac_test_CFLAGS" = set; then
12982   CFLAGS=$ac_save_CFLAGS
12983 elif test $ac_cv_prog_cc_g = yes; then
12984   if test "$GCC" = yes; then
12985     CFLAGS="-g -O2"
12986   else
12987     CFLAGS="-g"
12988   fi
12989 else
12990   if test "$GCC" = yes; then
12991     CFLAGS="-O2"
12992   else
12993     CFLAGS=
12994   fi
12995 fi
12996             fi
12997         fi
12998
12999                         case `uname -s` in
13000             AIX*)
13001                 ac_ext=c
13002 ac_cpp='$CPP $CPPFLAGS'
13003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13006
13007 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13008 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13009 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
13010   echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012   cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h.  */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h.  */
13018
13019 int
13020 main ()
13021 {
13022 #ifndef __xlC__
13023        choke me
13024 #endif
13025
13026   ;
13027   return 0;
13028 }
13029 _ACEOF
13030 rm -f conftest.$ac_objext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032   (eval $ac_compile) 2>conftest.er1
13033   ac_status=$?
13034   grep -v '^ *+' conftest.er1 >conftest.err
13035   rm -f conftest.er1
13036   cat conftest.err >&5
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } &&
13039          { ac_try='test -z "$ac_c_werror_flag"
13040                          || test ! -s conftest.err'
13041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042   (eval $ac_try) 2>&5
13043   ac_status=$?
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); }; } &&
13046          { ac_try='test -s conftest.$ac_objext'
13047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048   (eval $ac_try) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; }; then
13052   bakefile_compiler_xlc=yes
13053 else
13054   echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13056
13057 bakefile_compiler_xlc=no
13058 fi
13059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13060     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
13061
13062 fi
13063 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13064 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
13065
13066 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
13067 ac_ext=c
13068 ac_cpp='$CPP $CPPFLAGS'
13069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13072
13073
13074                 ;;
13075
13076             Darwin)
13077                 ac_ext=c
13078 ac_cpp='$CPP $CPPFLAGS'
13079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13082
13083 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13084 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13085 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13086   echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088   cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h.  */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h.  */
13094
13095 int
13096 main ()
13097 {
13098 #ifndef __MWERKS__
13099        choke me
13100 #endif
13101
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108   (eval $ac_compile) 2>conftest.er1
13109   ac_status=$?
13110   grep -v '^ *+' conftest.er1 >conftest.err
13111   rm -f conftest.er1
13112   cat conftest.err >&5
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); } &&
13115          { ac_try='test -z "$ac_c_werror_flag"
13116                          || test ! -s conftest.err'
13117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118   (eval $ac_try) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); }; } &&
13122          { ac_try='test -s conftest.$ac_objext'
13123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124   (eval $ac_try) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; }; then
13128   bakefile_compiler_mwerks=yes
13129 else
13130   echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133 bakefile_compiler_mwerks=no
13134 fi
13135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13136     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13137
13138 fi
13139 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13140 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13141
13142 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
13143 ac_ext=c
13144 ac_cpp='$CPP $CPPFLAGS'
13145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13148
13149
13150                 ac_ext=c
13151 ac_cpp='$CPP $CPPFLAGS'
13152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13155
13156 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13157 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13158 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
13159   echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161   cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h.  */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h.  */
13167
13168 int
13169 main ()
13170 {
13171 #ifndef __xlC__
13172        choke me
13173 #endif
13174
13175   ;
13176   return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181   (eval $ac_compile) 2>conftest.er1
13182   ac_status=$?
13183   grep -v '^ *+' conftest.er1 >conftest.err
13184   rm -f conftest.er1
13185   cat conftest.err >&5
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } &&
13188          { ac_try='test -z "$ac_c_werror_flag"
13189                          || test ! -s conftest.err'
13190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191   (eval $ac_try) 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; } &&
13195          { ac_try='test -s conftest.$ac_objext'
13196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197   (eval $ac_try) 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; }; then
13201   bakefile_compiler_xlc=yes
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206 bakefile_compiler_xlc=no
13207 fi
13208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
13210
13211 fi
13212 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13213 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
13214
13215 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
13216 ac_ext=c
13217 ac_cpp='$CPP $CPPFLAGS'
13218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13221
13222
13223                 ;;
13224
13225             IRIX*)
13226
13227
13228     ac_ext=c
13229 ac_cpp='$CPP $CPPFLAGS'
13230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13233
13234     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13235 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13236 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13237   echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239   cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h.  */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h.  */
13245
13246 int
13247 main ()
13248 {
13249
13250              #ifndef _SGI_COMPILER_VERSION
13251                 choke me
13252              #endif
13253
13254   ;
13255   return 0;
13256 }
13257 _ACEOF
13258 rm -f conftest.$ac_objext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260   (eval $ac_compile) 2>conftest.er1
13261   ac_status=$?
13262   grep -v '^ *+' conftest.er1 >conftest.err
13263   rm -f conftest.er1
13264   cat conftest.err >&5
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); } &&
13267          { ac_try='test -z "$ac_c_werror_flag"
13268                          || test ! -s conftest.err'
13269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270   (eval $ac_try) 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); }; } &&
13274          { ac_try='test -s conftest.$ac_objext'
13275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276   (eval $ac_try) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; }; then
13280   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13281 else
13282   echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13286
13287 fi
13288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13289
13290
13291 fi
13292 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13293 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13294     ac_ext=c
13295 ac_cpp='$CPP $CPPFLAGS'
13296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13299
13300     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13301         :; SGICC=yes
13302     else
13303         :;
13304     fi
13305
13306
13307                 ;;
13308
13309             HP-UX*)
13310
13311
13312     ac_ext=c
13313 ac_cpp='$CPP $CPPFLAGS'
13314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317
13318     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13319 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13320 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
13321   echo $ECHO_N "(cached) $ECHO_C" >&6
13322 else
13323   cat >conftest.$ac_ext <<_ACEOF
13324 /* confdefs.h.  */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h.  */
13329
13330 int
13331 main ()
13332 {
13333
13334              #ifndef __HP_cc
13335                 choke me
13336              #endif
13337
13338   ;
13339   return 0;
13340 }
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344   (eval $ac_compile) 2>conftest.er1
13345   ac_status=$?
13346   grep -v '^ *+' conftest.er1 >conftest.err
13347   rm -f conftest.er1
13348   cat conftest.err >&5
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); } &&
13351          { ac_try='test -z "$ac_c_werror_flag"
13352                          || test ! -s conftest.err'
13353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354   (eval $ac_try) 2>&5
13355   ac_status=$?
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); }; } &&
13358          { ac_try='test -s conftest.$ac_objext'
13359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360   (eval $ac_try) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; }; then
13364   bakefile_cv_c_compiler___HP_cc=yes
13365 else
13366   echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 bakefile_cv_c_compiler___HP_cc=no
13370
13371 fi
13372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13373
13374
13375 fi
13376 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13377 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
13378     ac_ext=c
13379 ac_cpp='$CPP $CPPFLAGS'
13380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13383
13384     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13385         :; HPCC=yes
13386     else
13387         :;
13388     fi
13389
13390
13391                 ;;
13392
13393             OSF1)
13394
13395
13396     ac_ext=c
13397 ac_cpp='$CPP $CPPFLAGS'
13398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13401
13402     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13403 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13404 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
13405   echo $ECHO_N "(cached) $ECHO_C" >&6
13406 else
13407   cat >conftest.$ac_ext <<_ACEOF
13408 /* confdefs.h.  */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h.  */
13413
13414 int
13415 main ()
13416 {
13417
13418              #ifndef __DECC
13419                 choke me
13420              #endif
13421
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428   (eval $ac_compile) 2>conftest.er1
13429   ac_status=$?
13430   grep -v '^ *+' conftest.er1 >conftest.err
13431   rm -f conftest.er1
13432   cat conftest.err >&5
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); } &&
13435          { ac_try='test -z "$ac_c_werror_flag"
13436                          || test ! -s conftest.err'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; } &&
13442          { ac_try='test -s conftest.$ac_objext'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; }; then
13448   bakefile_cv_c_compiler___DECC=yes
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 bakefile_cv_c_compiler___DECC=no
13454
13455 fi
13456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13457
13458
13459 fi
13460 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13461 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
13462     ac_ext=c
13463 ac_cpp='$CPP $CPPFLAGS'
13464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13467
13468     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13469         :; COMPAQCC=yes
13470     else
13471         :;
13472     fi
13473
13474
13475                 ;;
13476
13477             SunOS)
13478
13479
13480     ac_ext=c
13481 ac_cpp='$CPP $CPPFLAGS'
13482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13485
13486     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13487 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13488 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13489   echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491   cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497
13498 int
13499 main ()
13500 {
13501
13502              #ifndef __SUNPRO_C
13503                 choke me
13504              #endif
13505
13506   ;
13507   return 0;
13508 }
13509 _ACEOF
13510 rm -f conftest.$ac_objext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13512   (eval $ac_compile) 2>conftest.er1
13513   ac_status=$?
13514   grep -v '^ *+' conftest.er1 >conftest.err
13515   rm -f conftest.er1
13516   cat conftest.err >&5
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); } &&
13519          { ac_try='test -z "$ac_c_werror_flag"
13520                          || test ! -s conftest.err'
13521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522   (eval $ac_try) 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; } &&
13526          { ac_try='test -s conftest.$ac_objext'
13527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528   (eval $ac_try) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); }; }; then
13532   bakefile_cv_c_compiler___SUNPRO_C=yes
13533 else
13534   echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 bakefile_cv_c_compiler___SUNPRO_C=no
13538
13539 fi
13540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13541
13542
13543 fi
13544 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13545 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13546     ac_ext=c
13547 ac_cpp='$CPP $CPPFLAGS'
13548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13551
13552     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13553         :; SUNCC=yes
13554     else
13555         :;
13556     fi
13557
13558
13559                 ;;
13560         esac
13561     fi
13562
13563
13564
13565 ac_ext=c
13566 ac_cpp='$CPP $CPPFLAGS'
13567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13570 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13571 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13572 # On Suns, sometimes $CPP names a directory.
13573 if test -n "$CPP" && test -d "$CPP"; then
13574   CPP=
13575 fi
13576 if test -z "$CPP"; then
13577   if test "${ac_cv_prog_CPP+set}" = set; then
13578   echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580       # Double quotes because CPP needs to be expanded
13581     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13582     do
13583       ac_preproc_ok=false
13584 for ac_c_preproc_warn_flag in '' yes
13585 do
13586   # Use a header file that comes with gcc, so configuring glibc
13587   # with a fresh cross-compiler works.
13588   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13589   # <limits.h> exists even on freestanding compilers.
13590   # On the NeXT, cc -E runs the code through the compiler's parser,
13591   # not just through cpp. "Syntax error" is here to catch this case.
13592   cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13598 #ifdef __STDC__
13599 # include <limits.h>
13600 #else
13601 # include <assert.h>
13602 #endif
13603                      Syntax error
13604 _ACEOF
13605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13607   ac_status=$?
13608   grep -v '^ *+' conftest.er1 >conftest.err
13609   rm -f conftest.er1
13610   cat conftest.err >&5
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } >/dev/null; then
13613   if test -s conftest.err; then
13614     ac_cpp_err=$ac_c_preproc_warn_flag
13615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13616   else
13617     ac_cpp_err=
13618   fi
13619 else
13620   ac_cpp_err=yes
13621 fi
13622 if test -z "$ac_cpp_err"; then
13623   :
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628   # Broken: fails on valid input.
13629 continue
13630 fi
13631 rm -f conftest.err conftest.$ac_ext
13632
13633   # OK, works on sane cases.  Now check whether non-existent headers
13634   # can be detected and how.
13635   cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h.  */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h.  */
13641 #include <ac_nonexistent.h>
13642 _ACEOF
13643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } >/dev/null; then
13651   if test -s conftest.err; then
13652     ac_cpp_err=$ac_c_preproc_warn_flag
13653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13654   else
13655     ac_cpp_err=
13656   fi
13657 else
13658   ac_cpp_err=yes
13659 fi
13660 if test -z "$ac_cpp_err"; then
13661   # Broken: success on invalid input.
13662 continue
13663 else
13664   echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13666
13667   # Passes both tests.
13668 ac_preproc_ok=:
13669 break
13670 fi
13671 rm -f conftest.err conftest.$ac_ext
13672
13673 done
13674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13675 rm -f conftest.err conftest.$ac_ext
13676 if $ac_preproc_ok; then
13677   break
13678 fi
13679
13680     done
13681     ac_cv_prog_CPP=$CPP
13682
13683 fi
13684   CPP=$ac_cv_prog_CPP
13685 else
13686   ac_cv_prog_CPP=$CPP
13687 fi
13688 echo "$as_me:$LINENO: result: $CPP" >&5
13689 echo "${ECHO_T}$CPP" >&6
13690 ac_preproc_ok=false
13691 for ac_c_preproc_warn_flag in '' yes
13692 do
13693   # Use a header file that comes with gcc, so configuring glibc
13694   # with a fresh cross-compiler works.
13695   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13696   # <limits.h> exists even on freestanding compilers.
13697   # On the NeXT, cc -E runs the code through the compiler's parser,
13698   # not just through cpp. "Syntax error" is here to catch this case.
13699   cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705 #ifdef __STDC__
13706 # include <limits.h>
13707 #else
13708 # include <assert.h>
13709 #endif
13710                      Syntax error
13711 _ACEOF
13712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13714   ac_status=$?
13715   grep -v '^ *+' conftest.er1 >conftest.err
13716   rm -f conftest.er1
13717   cat conftest.err >&5
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } >/dev/null; then
13720   if test -s conftest.err; then
13721     ac_cpp_err=$ac_c_preproc_warn_flag
13722     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13723   else
13724     ac_cpp_err=
13725   fi
13726 else
13727   ac_cpp_err=yes
13728 fi
13729 if test -z "$ac_cpp_err"; then
13730   :
13731 else
13732   echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735   # Broken: fails on valid input.
13736 continue
13737 fi
13738 rm -f conftest.err conftest.$ac_ext
13739
13740   # OK, works on sane cases.  Now check whether non-existent headers
13741   # can be detected and how.
13742   cat >conftest.$ac_ext <<_ACEOF
13743 /* confdefs.h.  */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h.  */
13748 #include <ac_nonexistent.h>
13749 _ACEOF
13750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13751   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13752   ac_status=$?
13753   grep -v '^ *+' conftest.er1 >conftest.err
13754   rm -f conftest.er1
13755   cat conftest.err >&5
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } >/dev/null; then
13758   if test -s conftest.err; then
13759     ac_cpp_err=$ac_c_preproc_warn_flag
13760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13761   else
13762     ac_cpp_err=
13763   fi
13764 else
13765   ac_cpp_err=yes
13766 fi
13767 if test -z "$ac_cpp_err"; then
13768   # Broken: success on invalid input.
13769 continue
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774   # Passes both tests.
13775 ac_preproc_ok=:
13776 break
13777 fi
13778 rm -f conftest.err conftest.$ac_ext
13779
13780 done
13781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13782 rm -f conftest.err conftest.$ac_ext
13783 if $ac_preproc_ok; then
13784   :
13785 else
13786   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13787 See \`config.log' for more details." >&5
13788 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13789 See \`config.log' for more details." >&2;}
13790    { (exit 1); exit 1; }; }
13791 fi
13792
13793 ac_ext=c
13794 ac_cpp='$CPP $CPPFLAGS'
13795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13798
13799
13800 echo "$as_me:$LINENO: checking for egrep" >&5
13801 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13802 if test "${ac_cv_prog_egrep+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13806     then ac_cv_prog_egrep='grep -E'
13807     else ac_cv_prog_egrep='egrep'
13808     fi
13809 fi
13810 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13811 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13812  EGREP=$ac_cv_prog_egrep
13813
13814
13815 if test $ac_cv_c_compiler_gnu = yes; then
13816     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13817 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13818 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821     ac_pattern="Autoconf.*'x'"
13822   cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828 #include <sgtty.h>
13829 Autoconf TIOCGETP
13830 _ACEOF
13831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13832   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13833   ac_cv_prog_gcc_traditional=yes
13834 else
13835   ac_cv_prog_gcc_traditional=no
13836 fi
13837 rm -f conftest*
13838
13839
13840   if test $ac_cv_prog_gcc_traditional = no; then
13841     cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h.  */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h.  */
13847 #include <termio.h>
13848 Autoconf TCGETA
13849 _ACEOF
13850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13851   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13852   ac_cv_prog_gcc_traditional=yes
13853 fi
13854 rm -f conftest*
13855
13856   fi
13857 fi
13858 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13859 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13860   if test $ac_cv_prog_gcc_traditional = yes; then
13861     CC="$CC -traditional"
13862   fi
13863 fi
13864
13865
13866 ac_ext=cc
13867 ac_cpp='$CXXCPP $CPPFLAGS'
13868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13871
13872
13873 CXXFLAGS=${CXXFLAGS:=}
13874
13875
13876
13877     ac_ext=cc
13878 ac_cpp='$CXXCPP $CPPFLAGS'
13879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13882 if test -n "$ac_tool_prefix"; then
13883   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13884   do
13885     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13887 echo "$as_me:$LINENO: checking for $ac_word" >&5
13888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13889 if test "${ac_cv_prog_CXX+set}" = set; then
13890   echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892   if test -n "$CXX"; then
13893   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13894 else
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $PATH
13897 do
13898   IFS=$as_save_IFS
13899   test -z "$as_dir" && as_dir=.
13900   for ac_exec_ext in '' $ac_executable_extensions; do
13901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13904     break 2
13905   fi
13906 done
13907 done
13908
13909 fi
13910 fi
13911 CXX=$ac_cv_prog_CXX
13912 if test -n "$CXX"; then
13913   echo "$as_me:$LINENO: result: $CXX" >&5
13914 echo "${ECHO_T}$CXX" >&6
13915 else
13916   echo "$as_me:$LINENO: result: no" >&5
13917 echo "${ECHO_T}no" >&6
13918 fi
13919
13920     test -n "$CXX" && break
13921   done
13922 fi
13923 if test -z "$CXX"; then
13924   ac_ct_CXX=$CXX
13925   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13926 do
13927   # Extract the first word of "$ac_prog", so it can be a program name with args.
13928 set dummy $ac_prog; ac_word=$2
13929 echo "$as_me:$LINENO: checking for $ac_word" >&5
13930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13931 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13932   echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934   if test -n "$ac_ct_CXX"; then
13935   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13936 else
13937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938 for as_dir in $PATH
13939 do
13940   IFS=$as_save_IFS
13941   test -z "$as_dir" && as_dir=.
13942   for ac_exec_ext in '' $ac_executable_extensions; do
13943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13944     ac_cv_prog_ac_ct_CXX="$ac_prog"
13945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13946     break 2
13947   fi
13948 done
13949 done
13950
13951 fi
13952 fi
13953 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13954 if test -n "$ac_ct_CXX"; then
13955   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13956 echo "${ECHO_T}$ac_ct_CXX" >&6
13957 else
13958   echo "$as_me:$LINENO: result: no" >&5
13959 echo "${ECHO_T}no" >&6
13960 fi
13961
13962   test -n "$ac_ct_CXX" && break
13963 done
13964 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13965
13966   CXX=$ac_ct_CXX
13967 fi
13968
13969
13970 # Provide some information about the compiler.
13971 echo "$as_me:$LINENO:" \
13972      "checking for C++ compiler version" >&5
13973 ac_compiler=`set X $ac_compile; echo $2`
13974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13975   (eval $ac_compiler --version </dev/null >&5) 2>&5
13976   ac_status=$?
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); }
13979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13980   (eval $ac_compiler -v </dev/null >&5) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }
13984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13985   (eval $ac_compiler -V </dev/null >&5) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); }
13989
13990 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13991 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13992 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001
14002 int
14003 main ()
14004 {
14005 #ifndef __GNUC__
14006        choke me
14007 #endif
14008
14009   ;
14010   return 0;
14011 }
14012 _ACEOF
14013 rm -f conftest.$ac_objext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14015   (eval $ac_compile) 2>conftest.er1
14016   ac_status=$?
14017   grep -v '^ *+' conftest.er1 >conftest.err
14018   rm -f conftest.er1
14019   cat conftest.err >&5
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); } &&
14022          { ac_try='test -z "$ac_cxx_werror_flag"
14023                          || test ! -s conftest.err'
14024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025   (eval $ac_try) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); }; } &&
14029          { ac_try='test -s conftest.$ac_objext'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; }; then
14035   ac_compiler_gnu=yes
14036 else
14037   echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14039
14040 ac_compiler_gnu=no
14041 fi
14042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14043 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14044
14045 fi
14046 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14047 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14048 GXX=`test $ac_compiler_gnu = yes && echo yes`
14049 ac_test_CXXFLAGS=${CXXFLAGS+set}
14050 ac_save_CXXFLAGS=$CXXFLAGS
14051 CXXFLAGS="-g"
14052 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14053 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14054 if test "${ac_cv_prog_cxx_g+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063
14064 int
14065 main ()
14066 {
14067
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 rm -f conftest.$ac_objext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14074   (eval $ac_compile) 2>conftest.er1
14075   ac_status=$?
14076   grep -v '^ *+' conftest.er1 >conftest.err
14077   rm -f conftest.er1
14078   cat conftest.err >&5
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } &&
14081          { ac_try='test -z "$ac_cxx_werror_flag"
14082                          || test ! -s conftest.err'
14083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084   (eval $ac_try) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; } &&
14088          { ac_try='test -s conftest.$ac_objext'
14089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090   (eval $ac_try) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; }; then
14094   ac_cv_prog_cxx_g=yes
14095 else
14096   echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 ac_cv_prog_cxx_g=no
14100 fi
14101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14102 fi
14103 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14104 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14105 if test "$ac_test_CXXFLAGS" = set; then
14106   CXXFLAGS=$ac_save_CXXFLAGS
14107 elif test $ac_cv_prog_cxx_g = yes; then
14108   if test "$GXX" = yes; then
14109     CXXFLAGS="-g -O2"
14110   else
14111     CXXFLAGS="-g"
14112   fi
14113 else
14114   if test "$GXX" = yes; then
14115     CXXFLAGS="-O2"
14116   else
14117     CXXFLAGS=
14118   fi
14119 fi
14120 for ac_declaration in \
14121    '' \
14122    'extern "C" void std::exit (int) throw (); using std::exit;' \
14123    'extern "C" void std::exit (int); using std::exit;' \
14124    'extern "C" void exit (int) throw ();' \
14125    'extern "C" void exit (int);' \
14126    'void exit (int);'
14127 do
14128   cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h.  */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h.  */
14134 $ac_declaration
14135 #include <stdlib.h>
14136 int
14137 main ()
14138 {
14139 exit (42);
14140   ;
14141   return 0;
14142 }
14143 _ACEOF
14144 rm -f conftest.$ac_objext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146   (eval $ac_compile) 2>conftest.er1
14147   ac_status=$?
14148   grep -v '^ *+' conftest.er1 >conftest.err
14149   rm -f conftest.er1
14150   cat conftest.err >&5
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); } &&
14153          { ac_try='test -z "$ac_cxx_werror_flag"
14154                          || test ! -s conftest.err'
14155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156   (eval $ac_try) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; } &&
14160          { ac_try='test -s conftest.$ac_objext'
14161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162   (eval $ac_try) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; }; then
14166   :
14167 else
14168   echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171 continue
14172 fi
14173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14174   cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 $ac_declaration
14181 int
14182 main ()
14183 {
14184 exit (42);
14185   ;
14186   return 0;
14187 }
14188 _ACEOF
14189 rm -f conftest.$ac_objext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14191   (eval $ac_compile) 2>conftest.er1
14192   ac_status=$?
14193   grep -v '^ *+' conftest.er1 >conftest.err
14194   rm -f conftest.er1
14195   cat conftest.err >&5
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); } &&
14198          { ac_try='test -z "$ac_cxx_werror_flag"
14199                          || test ! -s conftest.err'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; } &&
14205          { ac_try='test -s conftest.$ac_objext'
14206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207   (eval $ac_try) 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; }; then
14211   break
14212 else
14213   echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14215
14216 fi
14217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14218 done
14219 rm -f conftest*
14220 if test -n "$ac_declaration"; then
14221   echo '#ifdef __cplusplus' >>confdefs.h
14222   echo $ac_declaration      >>confdefs.h
14223   echo '#endif'             >>confdefs.h
14224 fi
14225
14226 ac_ext=cc
14227 ac_cpp='$CXXCPP $CPPFLAGS'
14228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14231
14232
14233
14234     ac_ext=cc
14235 ac_cpp='$CXXCPP $CPPFLAGS'
14236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14239
14240     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14241 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14242 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14243   echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245   cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251
14252 int
14253 main ()
14254 {
14255
14256              #ifndef __INTEL_COMPILER
14257                 choke me
14258              #endif
14259
14260   ;
14261   return 0;
14262 }
14263 _ACEOF
14264 rm -f conftest.$ac_objext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266   (eval $ac_compile) 2>conftest.er1
14267   ac_status=$?
14268   grep -v '^ *+' conftest.er1 >conftest.err
14269   rm -f conftest.er1
14270   cat conftest.err >&5
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } &&
14273          { ac_try='test -z "$ac_cxx_werror_flag"
14274                          || test ! -s conftest.err'
14275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276   (eval $ac_try) 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; } &&
14280          { ac_try='test -s conftest.$ac_objext'
14281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282   (eval $ac_try) 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; }; then
14286   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14287 else
14288   echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14290
14291 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14292
14293 fi
14294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14295
14296
14297 fi
14298 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14299 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14300     ac_ext=cc
14301 ac_cpp='$CXXCPP $CPPFLAGS'
14302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14305
14306     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14307         :; INTELCXX=yes
14308     else
14309         :;
14310     fi
14311
14312
14313         if test "x$GCXX" != "xyes"; then
14314         if test "xCXX" = "xC"; then
14315             echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
14316 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
14317 if test "${bakefile_cv_cxx_exto+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h.  */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h.  */
14326
14327 int
14328 main ()
14329 {
14330
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext conftest.$ac_ext.o
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337   (eval $ac_compile) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; then
14341   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14342     case $ac_file in
14343         conftest.$ac_ext.o)
14344             bakefile_cv_cxx_exto="-ext o"
14345             ;;
14346         *)
14347             ;;
14348     esac
14349 done
14350 else
14351   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14352 See \`config.log' for more details." >&5
14353 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14354 See \`config.log' for more details." >&2;}
14355    { (exit 1); exit 1; }; }
14356
14357 fi
14358
14359 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14360
14361 fi
14362 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14363 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14364 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
14365     if test "cxx" = "c"; then
14366         CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
14367     fi
14368     if test "cxx" = "cxx"; then
14369         CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
14370     fi
14371 fi
14372
14373             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14374                 unset ac_cv_prog_cc_g
14375                 ac_test_CFLAGS=${CFLAGS+set}
14376 ac_save_CFLAGS=$CFLAGS
14377 CFLAGS="-g"
14378 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14379 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14380 if test "${ac_cv_prog_cc_g+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h.  */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h.  */
14389
14390 int
14391 main ()
14392 {
14393
14394   ;
14395   return 0;
14396 }
14397 _ACEOF
14398 rm -f conftest.$ac_objext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400   (eval $ac_compile) 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } &&
14407          { ac_try='test -z "$ac_cxx_werror_flag"
14408                          || test ! -s conftest.err'
14409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410   (eval $ac_try) 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; } &&
14414          { ac_try='test -s conftest.$ac_objext'
14415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416   (eval $ac_try) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }; }; then
14420   ac_cv_prog_cc_g=yes
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425 ac_cv_prog_cc_g=no
14426 fi
14427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14428 fi
14429 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14430 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14431 if test "$ac_test_CFLAGS" = set; then
14432   CFLAGS=$ac_save_CFLAGS
14433 elif test $ac_cv_prog_cc_g = yes; then
14434   if test "$GCC" = yes; then
14435     CFLAGS="-g -O2"
14436   else
14437     CFLAGS="-g"
14438   fi
14439 else
14440   if test "$GCC" = yes; then
14441     CFLAGS="-O2"
14442   else
14443     CFLAGS=
14444   fi
14445 fi
14446             fi
14447         fi
14448
14449                         case `uname -s` in
14450             AIX*)
14451                 ac_ext=cc
14452 ac_cpp='$CXXCPP $CPPFLAGS'
14453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14456
14457 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14458 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14459 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14460   echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462   cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468
14469 int
14470 main ()
14471 {
14472 #ifndef __xlC__
14473        choke me
14474 #endif
14475
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 rm -f conftest.$ac_objext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482   (eval $ac_compile) 2>conftest.er1
14483   ac_status=$?
14484   grep -v '^ *+' conftest.er1 >conftest.err
14485   rm -f conftest.er1
14486   cat conftest.err >&5
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); } &&
14489          { ac_try='test -z "$ac_cxx_werror_flag"
14490                          || test ! -s conftest.err'
14491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492   (eval $ac_try) 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); }; } &&
14496          { ac_try='test -s conftest.$ac_objext'
14497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498   (eval $ac_try) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); }; }; then
14502   bakefile_compiler_xlc=yes
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 bakefile_compiler_xlc=no
14508 fi
14509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14510     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14511
14512 fi
14513 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14514 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14515
14516 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14517 ac_ext=cc
14518 ac_cpp='$CXXCPP $CPPFLAGS'
14519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14522
14523
14524                 ;;
14525
14526             Darwin)
14527                 ac_ext=cc
14528 ac_cpp='$CXXCPP $CPPFLAGS'
14529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14532
14533 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14534 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14535 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14536   echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538   cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544
14545 int
14546 main ()
14547 {
14548 #ifndef __MWERKS__
14549        choke me
14550 #endif
14551
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14558   (eval $ac_compile) 2>conftest.er1
14559   ac_status=$?
14560   grep -v '^ *+' conftest.er1 >conftest.err
14561   rm -f conftest.er1
14562   cat conftest.err >&5
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } &&
14565          { ac_try='test -z "$ac_cxx_werror_flag"
14566                          || test ! -s conftest.err'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; } &&
14572          { ac_try='test -s conftest.$ac_objext'
14573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574   (eval $ac_try) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; }; then
14578   bakefile_compiler_mwerks=yes
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583 bakefile_compiler_mwerks=no
14584 fi
14585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14586     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14587
14588 fi
14589 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14590 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14591
14592 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
14593 ac_ext=cc
14594 ac_cpp='$CXXCPP $CPPFLAGS'
14595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14598
14599
14600                 ac_ext=cc
14601 ac_cpp='$CXXCPP $CPPFLAGS'
14602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14605
14606 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14607 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14608 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617
14618 int
14619 main ()
14620 {
14621 #ifndef __xlC__
14622        choke me
14623 #endif
14624
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631   (eval $ac_compile) 2>conftest.er1
14632   ac_status=$?
14633   grep -v '^ *+' conftest.er1 >conftest.err
14634   rm -f conftest.er1
14635   cat conftest.err >&5
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } &&
14638          { ac_try='test -z "$ac_cxx_werror_flag"
14639                          || test ! -s conftest.err'
14640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641   (eval $ac_try) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; } &&
14645          { ac_try='test -s conftest.$ac_objext'
14646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647   (eval $ac_try) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; }; then
14651   bakefile_compiler_xlc=yes
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 bakefile_compiler_xlc=no
14657 fi
14658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14660
14661 fi
14662 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14663 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14664
14665 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14666 ac_ext=cc
14667 ac_cpp='$CXXCPP $CPPFLAGS'
14668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14671
14672
14673                 ;;
14674
14675             IRIX*)
14676
14677
14678     ac_ext=cc
14679 ac_cpp='$CXXCPP $CPPFLAGS'
14680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14683
14684     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14685 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14686 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14687   echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689   cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695
14696 int
14697 main ()
14698 {
14699
14700              #ifndef _SGI_COMPILER_VERSION
14701                 choke me
14702              #endif
14703
14704   ;
14705   return 0;
14706 }
14707 _ACEOF
14708 rm -f conftest.$ac_objext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14710   (eval $ac_compile) 2>conftest.er1
14711   ac_status=$?
14712   grep -v '^ *+' conftest.er1 >conftest.err
14713   rm -f conftest.er1
14714   cat conftest.err >&5
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); } &&
14717          { ac_try='test -z "$ac_cxx_werror_flag"
14718                          || test ! -s conftest.err'
14719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720   (eval $ac_try) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; } &&
14724          { ac_try='test -s conftest.$ac_objext'
14725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726   (eval $ac_try) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); }; }; then
14730   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14731 else
14732   echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14734
14735 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14736
14737 fi
14738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14739
14740
14741 fi
14742 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14743 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14744     ac_ext=cc
14745 ac_cpp='$CXXCPP $CPPFLAGS'
14746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14749
14750     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14751         :; SGICXX=yes
14752     else
14753         :;
14754     fi
14755
14756
14757                 ;;
14758
14759             HP-UX*)
14760
14761
14762     ac_ext=cc
14763 ac_cpp='$CXXCPP $CPPFLAGS'
14764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14767
14768     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14769 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14770 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14771   echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773   cat >conftest.$ac_ext <<_ACEOF
14774 /* confdefs.h.  */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h.  */
14779
14780 int
14781 main ()
14782 {
14783
14784              #ifndef __HP_aCC
14785                 choke me
14786              #endif
14787
14788   ;
14789   return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794   (eval $ac_compile) 2>conftest.er1
14795   ac_status=$?
14796   grep -v '^ *+' conftest.er1 >conftest.err
14797   rm -f conftest.er1
14798   cat conftest.err >&5
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } &&
14801          { ac_try='test -z "$ac_cxx_werror_flag"
14802                          || test ! -s conftest.err'
14803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804   (eval $ac_try) 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); }; } &&
14808          { ac_try='test -s conftest.$ac_objext'
14809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810   (eval $ac_try) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; }; then
14814   bakefile_cv_cxx_compiler___HP_aCC=yes
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 bakefile_cv_cxx_compiler___HP_aCC=no
14820
14821 fi
14822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823
14824
14825 fi
14826 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14827 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14828     ac_ext=cc
14829 ac_cpp='$CXXCPP $CPPFLAGS'
14830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14833
14834     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14835         :; HPCXX=yes
14836     else
14837         :;
14838     fi
14839
14840
14841                 ;;
14842
14843             OSF1)
14844
14845
14846     ac_ext=cc
14847 ac_cpp='$CXXCPP $CPPFLAGS'
14848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14851
14852     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14853 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14854 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14855   echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857   cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863
14864 int
14865 main ()
14866 {
14867
14868              #ifndef __DECCXX
14869                 choke me
14870              #endif
14871
14872   ;
14873   return 0;
14874 }
14875 _ACEOF
14876 rm -f conftest.$ac_objext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14878   (eval $ac_compile) 2>conftest.er1
14879   ac_status=$?
14880   grep -v '^ *+' conftest.er1 >conftest.err
14881   rm -f conftest.er1
14882   cat conftest.err >&5
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } &&
14885          { ac_try='test -z "$ac_cxx_werror_flag"
14886                          || test ! -s conftest.err'
14887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888   (eval $ac_try) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); }; } &&
14892          { ac_try='test -s conftest.$ac_objext'
14893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894   (eval $ac_try) 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); }; }; then
14898   bakefile_cv_cxx_compiler___DECCXX=yes
14899 else
14900   echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 bakefile_cv_cxx_compiler___DECCXX=no
14904
14905 fi
14906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14907
14908
14909 fi
14910 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14911 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
14912     ac_ext=cc
14913 ac_cpp='$CXXCPP $CPPFLAGS'
14914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14917
14918     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14919         :; COMPAQCXX=yes
14920     else
14921         :;
14922     fi
14923
14924
14925                 ;;
14926
14927             SunOS)
14928
14929
14930     ac_ext=cc
14931 ac_cpp='$CXXCPP $CPPFLAGS'
14932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14935
14936     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14937 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14938 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941   cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h.  */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h.  */
14947
14948 int
14949 main ()
14950 {
14951
14952              #ifndef __SUNPRO_CC
14953                 choke me
14954              #endif
14955
14956   ;
14957   return 0;
14958 }
14959 _ACEOF
14960 rm -f conftest.$ac_objext
14961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14962   (eval $ac_compile) 2>conftest.er1
14963   ac_status=$?
14964   grep -v '^ *+' conftest.er1 >conftest.err
14965   rm -f conftest.er1
14966   cat conftest.err >&5
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); } &&
14969          { ac_try='test -z "$ac_cxx_werror_flag"
14970                          || test ! -s conftest.err'
14971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972   (eval $ac_try) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; } &&
14976          { ac_try='test -s conftest.$ac_objext'
14977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978   (eval $ac_try) 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); }; }; then
14982   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14983 else
14984   echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14986
14987 bakefile_cv_cxx_compiler___SUNPRO_CC=no
14988
14989 fi
14990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14991
14992
14993 fi
14994 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14995 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14996     ac_ext=cc
14997 ac_cpp='$CXXCPP $CPPFLAGS'
14998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15001
15002     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
15003         :; SUNCXX=yes
15004     else
15005         :;
15006     fi
15007
15008
15009                 ;;
15010         esac
15011     fi
15012
15013
15014
15015 if test -n "$ac_tool_prefix"; then
15016   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15018 echo "$as_me:$LINENO: checking for $ac_word" >&5
15019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15020 if test "${ac_cv_prog_RANLIB+set}" = set; then
15021   echo $ECHO_N "(cached) $ECHO_C" >&6
15022 else
15023   if test -n "$RANLIB"; then
15024   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15025 else
15026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15027 for as_dir in $PATH
15028 do
15029   IFS=$as_save_IFS
15030   test -z "$as_dir" && as_dir=.
15031   for ac_exec_ext in '' $ac_executable_extensions; do
15032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15033     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15035     break 2
15036   fi
15037 done
15038 done
15039
15040 fi
15041 fi
15042 RANLIB=$ac_cv_prog_RANLIB
15043 if test -n "$RANLIB"; then
15044   echo "$as_me:$LINENO: result: $RANLIB" >&5
15045 echo "${ECHO_T}$RANLIB" >&6
15046 else
15047   echo "$as_me:$LINENO: result: no" >&5
15048 echo "${ECHO_T}no" >&6
15049 fi
15050
15051 fi
15052 if test -z "$ac_cv_prog_RANLIB"; then
15053   ac_ct_RANLIB=$RANLIB
15054   # Extract the first word of "ranlib", so it can be a program name with args.
15055 set dummy ranlib; ac_word=$2
15056 echo "$as_me:$LINENO: checking for $ac_word" >&5
15057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15058 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15059   echo $ECHO_N "(cached) $ECHO_C" >&6
15060 else
15061   if test -n "$ac_ct_RANLIB"; then
15062   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15063 else
15064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15065 for as_dir in $PATH
15066 do
15067   IFS=$as_save_IFS
15068   test -z "$as_dir" && as_dir=.
15069   for ac_exec_ext in '' $ac_executable_extensions; do
15070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15071     ac_cv_prog_ac_ct_RANLIB="ranlib"
15072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15073     break 2
15074   fi
15075 done
15076 done
15077
15078   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15079 fi
15080 fi
15081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15082 if test -n "$ac_ct_RANLIB"; then
15083   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15084 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15085 else
15086   echo "$as_me:$LINENO: result: no" >&5
15087 echo "${ECHO_T}no" >&6
15088 fi
15089
15090   RANLIB=$ac_ct_RANLIB
15091 else
15092   RANLIB="$ac_cv_prog_RANLIB"
15093 fi
15094
15095
15096 if test -n "$ac_tool_prefix"; then
15097   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15098 set dummy ${ac_tool_prefix}ar; ac_word=$2
15099 echo "$as_me:$LINENO: checking for $ac_word" >&5
15100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15101 if test "${ac_cv_prog_AR+set}" = set; then
15102   echo $ECHO_N "(cached) $ECHO_C" >&6
15103 else
15104   if test -n "$AR"; then
15105   ac_cv_prog_AR="$AR" # Let the user override the test.
15106 else
15107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15108 for as_dir in $PATH
15109 do
15110   IFS=$as_save_IFS
15111   test -z "$as_dir" && as_dir=.
15112   for ac_exec_ext in '' $ac_executable_extensions; do
15113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15114     ac_cv_prog_AR="${ac_tool_prefix}ar"
15115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15116     break 2
15117   fi
15118 done
15119 done
15120
15121 fi
15122 fi
15123 AR=$ac_cv_prog_AR
15124 if test -n "$AR"; then
15125   echo "$as_me:$LINENO: result: $AR" >&5
15126 echo "${ECHO_T}$AR" >&6
15127 else
15128   echo "$as_me:$LINENO: result: no" >&5
15129 echo "${ECHO_T}no" >&6
15130 fi
15131
15132 fi
15133 if test -z "$ac_cv_prog_AR"; then
15134   ac_ct_AR=$AR
15135   # Extract the first word of "ar", so it can be a program name with args.
15136 set dummy ar; ac_word=$2
15137 echo "$as_me:$LINENO: checking for $ac_word" >&5
15138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15139 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15140   echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142   if test -n "$ac_ct_AR"; then
15143   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15144 else
15145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15146 for as_dir in $PATH
15147 do
15148   IFS=$as_save_IFS
15149   test -z "$as_dir" && as_dir=.
15150   for ac_exec_ext in '' $ac_executable_extensions; do
15151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15152     ac_cv_prog_ac_ct_AR="ar"
15153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15154     break 2
15155   fi
15156 done
15157 done
15158
15159 fi
15160 fi
15161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15162 if test -n "$ac_ct_AR"; then
15163   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15164 echo "${ECHO_T}$ac_ct_AR" >&6
15165 else
15166   echo "$as_me:$LINENO: result: no" >&5
15167 echo "${ECHO_T}no" >&6
15168 fi
15169
15170   AR=$ac_ct_AR
15171 else
15172   AR="$ac_cv_prog_AR"
15173 fi
15174
15175 if test "x$AR" = "x" ; then
15176     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15177 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
15178    { (exit 1); exit 1; }; }
15179 fi
15180
15181 # Find a good install program.  We prefer a C program (faster),
15182 # so one script is as good as another.  But avoid the broken or
15183 # incompatible versions:
15184 # SysV /etc/install, /usr/sbin/install
15185 # SunOS /usr/etc/install
15186 # IRIX /sbin/install
15187 # AIX /bin/install
15188 # AmigaOS /C/install, which installs bootblocks on floppy discs
15189 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15190 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15191 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15192 # OS/2's system install, which has a completely different semantic
15193 # ./install, which can be erroneously created by make from ./install.sh.
15194 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15195 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15196 if test -z "$INSTALL"; then
15197 if test "${ac_cv_path_install+set}" = set; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 for as_dir in $PATH
15202 do
15203   IFS=$as_save_IFS
15204   test -z "$as_dir" && as_dir=.
15205   # Account for people who put trailing slashes in PATH elements.
15206 case $as_dir/ in
15207   ./ | .// | /cC/* | \
15208   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15209   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
15210   /usr/ucb/* ) ;;
15211   *)
15212     # OSF1 and SCO ODT 3.0 have their own names for install.
15213     # Don't use installbsd from OSF since it installs stuff as root
15214     # by default.
15215     for ac_prog in ginstall scoinst install; do
15216       for ac_exec_ext in '' $ac_executable_extensions; do
15217         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15218           if test $ac_prog = install &&
15219             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15220             # AIX install.  It has an incompatible calling convention.
15221             :
15222           elif test $ac_prog = install &&
15223             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15224             # program-specific install script used by HP pwplus--don't use.
15225             :
15226           else
15227             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15228             break 3
15229           fi
15230         fi
15231       done
15232     done
15233     ;;
15234 esac
15235 done
15236
15237
15238 fi
15239   if test "${ac_cv_path_install+set}" = set; then
15240     INSTALL=$ac_cv_path_install
15241   else
15242     # As a last resort, use the slow shell script.  We don't cache a
15243     # path for INSTALL within a source directory, because that will
15244     # break other packages using the cache if that directory is
15245     # removed, or if the path is relative.
15246     INSTALL=$ac_install_sh
15247   fi
15248 fi
15249 echo "$as_me:$LINENO: result: $INSTALL" >&5
15250 echo "${ECHO_T}$INSTALL" >&6
15251
15252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15253 # It thinks the first close brace ends the variable substitution.
15254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15255
15256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15257
15258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15259
15260
15261 case ${INSTALL} in
15262   /* ) # Absolute
15263      ;;
15264   ?:* ) # Drive letter, considered as absolute.
15265      ;;
15266   *)
15267      INSTALL=`pwd`/${INSTALL} ;;
15268 esac
15269
15270
15271 case "${host}" in
15272
15273                 *-*-darwin* )
15274         INSTALL_PROGRAM="cp -fp"
15275         INSTALL_DATA="cp -fp"
15276         ;;
15277     *)
15278         ;;
15279 esac
15280
15281 if test -n "$ac_tool_prefix"; then
15282   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15283 set dummy ${ac_tool_prefix}strip; ac_word=$2
15284 echo "$as_me:$LINENO: checking for $ac_word" >&5
15285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15286 if test "${ac_cv_prog_STRIP+set}" = set; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289   if test -n "$STRIP"; then
15290   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15291 else
15292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15293 for as_dir in $PATH
15294 do
15295   IFS=$as_save_IFS
15296   test -z "$as_dir" && as_dir=.
15297   for ac_exec_ext in '' $ac_executable_extensions; do
15298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15299     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15301     break 2
15302   fi
15303 done
15304 done
15305
15306 fi
15307 fi
15308 STRIP=$ac_cv_prog_STRIP
15309 if test -n "$STRIP"; then
15310   echo "$as_me:$LINENO: result: $STRIP" >&5
15311 echo "${ECHO_T}$STRIP" >&6
15312 else
15313   echo "$as_me:$LINENO: result: no" >&5
15314 echo "${ECHO_T}no" >&6
15315 fi
15316
15317 fi
15318 if test -z "$ac_cv_prog_STRIP"; then
15319   ac_ct_STRIP=$STRIP
15320   # Extract the first word of "strip", so it can be a program name with args.
15321 set dummy strip; ac_word=$2
15322 echo "$as_me:$LINENO: checking for $ac_word" >&5
15323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15324 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15325   echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327   if test -n "$ac_ct_STRIP"; then
15328   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15329 else
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $PATH
15332 do
15333   IFS=$as_save_IFS
15334   test -z "$as_dir" && as_dir=.
15335   for ac_exec_ext in '' $ac_executable_extensions; do
15336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337     ac_cv_prog_ac_ct_STRIP="strip"
15338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15339     break 2
15340   fi
15341 done
15342 done
15343
15344   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15345 fi
15346 fi
15347 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15348 if test -n "$ac_ct_STRIP"; then
15349   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15350 echo "${ECHO_T}$ac_ct_STRIP" >&6
15351 else
15352   echo "$as_me:$LINENO: result: no" >&5
15353 echo "${ECHO_T}no" >&6
15354 fi
15355
15356   STRIP=$ac_ct_STRIP
15357 else
15358   STRIP="$ac_cv_prog_STRIP"
15359 fi
15360
15361
15362 if test "$wxUSE_WINE" = "yes"; then
15363     if test -n "$ac_tool_prefix"; then
15364   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15365 set dummy ${ac_tool_prefix}wrc; ac_word=$2
15366 echo "$as_me:$LINENO: checking for $ac_word" >&5
15367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15368 if test "${ac_cv_prog_WINDRES+set}" = set; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   if test -n "$WINDRES"; then
15372   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15373 else
15374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15375 for as_dir in $PATH
15376 do
15377   IFS=$as_save_IFS
15378   test -z "$as_dir" && as_dir=.
15379   for ac_exec_ext in '' $ac_executable_extensions; do
15380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15381     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
15382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15383     break 2
15384   fi
15385 done
15386 done
15387
15388 fi
15389 fi
15390 WINDRES=$ac_cv_prog_WINDRES
15391 if test -n "$WINDRES"; then
15392   echo "$as_me:$LINENO: result: $WINDRES" >&5
15393 echo "${ECHO_T}$WINDRES" >&6
15394 else
15395   echo "$as_me:$LINENO: result: no" >&5
15396 echo "${ECHO_T}no" >&6
15397 fi
15398
15399 fi
15400 if test -z "$ac_cv_prog_WINDRES"; then
15401   ac_ct_WINDRES=$WINDRES
15402   # Extract the first word of "wrc", so it can be a program name with args.
15403 set dummy wrc; ac_word=$2
15404 echo "$as_me:$LINENO: checking for $ac_word" >&5
15405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15406 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15407   echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409   if test -n "$ac_ct_WINDRES"; then
15410   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15411 else
15412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413 for as_dir in $PATH
15414 do
15415   IFS=$as_save_IFS
15416   test -z "$as_dir" && as_dir=.
15417   for ac_exec_ext in '' $ac_executable_extensions; do
15418   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15419     ac_cv_prog_ac_ct_WINDRES="wrc"
15420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15421     break 2
15422   fi
15423 done
15424 done
15425
15426 fi
15427 fi
15428 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15429 if test -n "$ac_ct_WINDRES"; then
15430   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15431 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15432 else
15433   echo "$as_me:$LINENO: result: no" >&5
15434 echo "${ECHO_T}no" >&6
15435 fi
15436
15437   WINDRES=$ac_ct_WINDRES
15438 else
15439   WINDRES="$ac_cv_prog_WINDRES"
15440 fi
15441
15442     RESCOMP="$WINDRES"
15443 else
15444     case "${host}" in
15445     *-*-cygwin* | *-*-mingw32* )
15446                                 if test -n "$ac_tool_prefix"; then
15447   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15448 set dummy ${ac_tool_prefix}windres; ac_word=$2
15449 echo "$as_me:$LINENO: checking for $ac_word" >&5
15450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15451 if test "${ac_cv_prog_WINDRES+set}" = set; then
15452   echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454   if test -n "$WINDRES"; then
15455   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15456 else
15457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15458 for as_dir in $PATH
15459 do
15460   IFS=$as_save_IFS
15461   test -z "$as_dir" && as_dir=.
15462   for ac_exec_ext in '' $ac_executable_extensions; do
15463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15464     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15466     break 2
15467   fi
15468 done
15469 done
15470
15471 fi
15472 fi
15473 WINDRES=$ac_cv_prog_WINDRES
15474 if test -n "$WINDRES"; then
15475   echo "$as_me:$LINENO: result: $WINDRES" >&5
15476 echo "${ECHO_T}$WINDRES" >&6
15477 else
15478   echo "$as_me:$LINENO: result: no" >&5
15479 echo "${ECHO_T}no" >&6
15480 fi
15481
15482 fi
15483 if test -z "$ac_cv_prog_WINDRES"; then
15484   ac_ct_WINDRES=$WINDRES
15485   # Extract the first word of "windres", so it can be a program name with args.
15486 set dummy windres; ac_word=$2
15487 echo "$as_me:$LINENO: checking for $ac_word" >&5
15488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15489 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   if test -n "$ac_ct_WINDRES"; then
15493   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15494 else
15495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496 for as_dir in $PATH
15497 do
15498   IFS=$as_save_IFS
15499   test -z "$as_dir" && as_dir=.
15500   for ac_exec_ext in '' $ac_executable_extensions; do
15501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15502     ac_cv_prog_ac_ct_WINDRES="windres"
15503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15504     break 2
15505   fi
15506 done
15507 done
15508
15509 fi
15510 fi
15511 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15512 if test -n "$ac_ct_WINDRES"; then
15513   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15514 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15515 else
15516   echo "$as_me:$LINENO: result: no" >&5
15517 echo "${ECHO_T}no" >&6
15518 fi
15519
15520   WINDRES=$ac_ct_WINDRES
15521 else
15522   WINDRES="$ac_cv_prog_WINDRES"
15523 fi
15524
15525         RESCOMP="$WINDRES"
15526         if test -n "$ac_tool_prefix"; then
15527   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15528 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15529 echo "$as_me:$LINENO: checking for $ac_word" >&5
15530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15531 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15532   echo $ECHO_N "(cached) $ECHO_C" >&6
15533 else
15534   if test -n "$DLLTOOL"; then
15535   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15536 else
15537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15538 for as_dir in $PATH
15539 do
15540   IFS=$as_save_IFS
15541   test -z "$as_dir" && as_dir=.
15542   for ac_exec_ext in '' $ac_executable_extensions; do
15543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15544     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15546     break 2
15547   fi
15548 done
15549 done
15550
15551 fi
15552 fi
15553 DLLTOOL=$ac_cv_prog_DLLTOOL
15554 if test -n "$DLLTOOL"; then
15555   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15556 echo "${ECHO_T}$DLLTOOL" >&6
15557 else
15558   echo "$as_me:$LINENO: result: no" >&5
15559 echo "${ECHO_T}no" >&6
15560 fi
15561
15562 fi
15563 if test -z "$ac_cv_prog_DLLTOOL"; then
15564   ac_ct_DLLTOOL=$DLLTOOL
15565   # Extract the first word of "dlltool", so it can be a program name with args.
15566 set dummy dlltool; ac_word=$2
15567 echo "$as_me:$LINENO: checking for $ac_word" >&5
15568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15569 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15570   echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15572   if test -n "$ac_ct_DLLTOOL"; then
15573   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15574 else
15575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15576 for as_dir in $PATH
15577 do
15578   IFS=$as_save_IFS
15579   test -z "$as_dir" && as_dir=.
15580   for ac_exec_ext in '' $ac_executable_extensions; do
15581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15582     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15584     break 2
15585   fi
15586 done
15587 done
15588
15589 fi
15590 fi
15591 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15592 if test -n "$ac_ct_DLLTOOL"; then
15593   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15594 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15595 else
15596   echo "$as_me:$LINENO: result: no" >&5
15597 echo "${ECHO_T}no" >&6
15598 fi
15599
15600   DLLTOOL=$ac_ct_DLLTOOL
15601 else
15602   DLLTOOL="$ac_cv_prog_DLLTOOL"
15603 fi
15604
15605         ;;
15606     esac
15607 fi
15608
15609 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15610 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15611 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15612   echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614
15615     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15616             egrep -s GNU > /dev/null); then
15617         wx_cv_prog_makeisgnu="yes"
15618     else
15619         wx_cv_prog_makeisgnu="no"
15620     fi
15621
15622 fi
15623 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15624 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15625
15626 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15627     IF_GNU_MAKE=""
15628 else
15629     IF_GNU_MAKE="#"
15630 fi
15631
15632
15633
15634 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15635 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15636 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15637 if test "${wx_cv_prog_makevpath+set}" = set; then
15638   echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640
15641 cat - << EOF > confMake
15642 check : file
15643         cp \$? \$@
15644         cp \$? final_file
15645 EOF
15646
15647 if test ! -d sub ; then
15648   mkdir sub
15649 fi
15650 echo dummy > sub/file
15651 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15652 RESULT=$?
15653 rm -f sub/file check final_file confMake
15654 rmdir sub
15655 if test "$RESULT" = 0; then
15656   wx_cv_prog_makevpath="yes"
15657 else
15658   wx_cv_prog_makevpath="no"
15659 fi
15660
15661 fi
15662 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15663 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15664
15665 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15666 { { echo "$as_me:$LINENO: error:
15667 You need a make-utility that is able to use the variable
15668 VPATH correctly.
15669 If your version of make does not support VPATH correctly,
15670 please install GNU-make (possibly as gmake), and start
15671 configure with the following command:
15672 export MAKE=gmake; ./configure  for sh-type shells
15673 setenv MAKE gmake; ./configure  for csh-type shells
15674 Also please do remember to use gmake in this case every time
15675 you are trying to compile.
15676 " >&5
15677 echo "$as_me: error:
15678 You need a make-utility that is able to use the variable
15679 VPATH correctly.
15680 If your version of make does not support VPATH correctly,
15681 please install GNU-make (possibly as gmake), and start
15682 configure with the following command:
15683 export MAKE=gmake; ./configure  for sh-type shells
15684 setenv MAKE gmake; ./configure  for csh-type shells
15685 Also please do remember to use gmake in this case every time
15686 you are trying to compile.
15687 " >&2;}
15688    { (exit 1); exit 1; }; }
15689 fi fi
15690 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15691 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15692 LN_S=$as_ln_s
15693 if test "$LN_S" = "ln -s"; then
15694   echo "$as_me:$LINENO: result: yes" >&5
15695 echo "${ECHO_T}yes" >&6
15696 else
15697   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15698 echo "${ECHO_T}no, using $LN_S" >&6
15699 fi
15700
15701
15702
15703
15704 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15705     CXXFLAGS="-qunique $CXXFLAGS"
15706 fi
15707
15708 case "${host}" in
15709   powerpc-*-darwin* )
15710     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15711 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15712     cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718
15719 int
15720 main ()
15721 {
15722 #ifndef __POWERPC__
15723         choke me for lack of PowerPC
15724 #endif
15725
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732   (eval $ac_compile) 2>conftest.er1
15733   ac_status=$?
15734   grep -v '^ *+' conftest.er1 >conftest.err
15735   rm -f conftest.er1
15736   cat conftest.err >&5
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } &&
15739          { ac_try='test -z "$ac_cxx_werror_flag"
15740                          || test ! -s conftest.err'
15741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742   (eval $ac_try) 2>&5
15743   ac_status=$?
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); }; } &&
15746          { ac_try='test -s conftest.$ac_objext'
15747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748   (eval $ac_try) 2>&5
15749   ac_status=$?
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); }; }; then
15752   echo "$as_me:$LINENO: result: yes" >&5
15753 echo "${ECHO_T}yes" >&6
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758 echo "$as_me:$LINENO: result: no" >&5
15759 echo "${ECHO_T}no" >&6
15760         cat >>confdefs.h <<\_ACEOF
15761 #define __POWERPC__ 1
15762 _ACEOF
15763
15764
15765 fi
15766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15767   ;;
15768 esac
15769
15770 case "${host}" in
15771   *-*-darwin* )
15772     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15773 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15774     cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h.  */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h.  */
15780 #include <CoreFoundation/CFBase.h>
15781
15782 int
15783 main ()
15784 {
15785
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15792   (eval $ac_compile) 2>conftest.er1
15793   ac_status=$?
15794   grep -v '^ *+' conftest.er1 >conftest.err
15795   rm -f conftest.er1
15796   cat conftest.err >&5
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } &&
15799          { ac_try='test -z "$ac_cxx_werror_flag"
15800                          || test ! -s conftest.err'
15801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802   (eval $ac_try) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); }; } &&
15806          { ac_try='test -s conftest.$ac_objext'
15807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808   (eval $ac_try) 2>&5
15809   ac_status=$?
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); }; }; then
15812   echo "$as_me:$LINENO: result: yes" >&5
15813 echo "${ECHO_T}yes" >&6
15814 else
15815   echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818 echo "$as_me:$LINENO: result: no" >&5
15819 echo "${ECHO_T}no" >&6
15820         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15821 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15822         cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828 #define __CF_USE_FRAMEWORK_INCLUDES__
15829 #include <CoreFoundation/CFBase.h>
15830
15831 int
15832 main ()
15833 {
15834
15835   ;
15836   return 0;
15837 }
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841   (eval $ac_compile) 2>conftest.er1
15842   ac_status=$?
15843   grep -v '^ *+' conftest.er1 >conftest.err
15844   rm -f conftest.er1
15845   cat conftest.err >&5
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); } &&
15848          { ac_try='test -z "$ac_cxx_werror_flag"
15849                          || test ! -s conftest.err'
15850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851   (eval $ac_try) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; } &&
15855          { ac_try='test -s conftest.$ac_objext'
15856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857   (eval $ac_try) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; }; then
15861   echo "$as_me:$LINENO: result: yes" >&5
15862 echo "${ECHO_T}yes" >&6
15863                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15864 else
15865   echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15867
15868 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
15869 See \`config.log' for more details." >&5
15870 echo "$as_me: error: no.  CoreFoundation not available.
15871 See \`config.log' for more details." >&2;}
15872    { (exit 1); exit 1; }; }
15873
15874 fi
15875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876
15877
15878 fi
15879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15880   ;;
15881 esac
15882
15883 case "${host}" in
15884   *-pc-os2_emx | *-pc-os2-emx )
15885                                                       ac_ext=c
15886 ac_cpp='$CPP $CPPFLAGS'
15887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15890
15891       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15892                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15893 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15894 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15895   echo $ECHO_N "(cached) $ECHO_C" >&6
15896 else
15897   ac_check_lib_save_LIBS=$LIBS
15898 LIBS="-lcExt  $LIBS"
15899 cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905
15906 /* Override any gcc2 internal prototype to avoid an error.  */
15907 #ifdef __cplusplus
15908 extern "C"
15909 #endif
15910 /* We use char because int might match the return type of a gcc2
15911    builtin and then its argument prototype would still apply.  */
15912 char drand48 ();
15913 int
15914 main ()
15915 {
15916 drand48 ();
15917   ;
15918   return 0;
15919 }
15920 _ACEOF
15921 rm -f conftest.$ac_objext conftest$ac_exeext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15923   (eval $ac_link) 2>conftest.er1
15924   ac_status=$?
15925   grep -v '^ *+' conftest.er1 >conftest.err
15926   rm -f conftest.er1
15927   cat conftest.err >&5
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); } &&
15930          { ac_try='test -z "$ac_c_werror_flag"
15931                          || test ! -s conftest.err'
15932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933   (eval $ac_try) 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; } &&
15937          { ac_try='test -s conftest$ac_exeext'
15938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939   (eval $ac_try) 2>&5
15940   ac_status=$?
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); }; }; then
15943   ac_cv_lib_cExt_drand48=yes
15944 else
15945   echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15947
15948 ac_cv_lib_cExt_drand48=no
15949 fi
15950 rm -f conftest.err conftest.$ac_objext \
15951       conftest$ac_exeext conftest.$ac_ext
15952 LIBS=$ac_check_lib_save_LIBS
15953 fi
15954 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15955 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15956 if test $ac_cv_lib_cExt_drand48 = yes; then
15957   LIBS="$LIBS -lcExt"
15958 fi
15959
15960       else
15961                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15962       fi
15963                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15964 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
15965 if test "${wx_cv_gccversion+set}" = set; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 else
15968
15969           if test "$cross_compiling" = yes; then
15970                 wx_cv_gccversion="EMX2"
15971
15972 else
15973   cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979
15980                   #include <stdio.h>
15981
15982                   int main()
15983                   {
15984                       FILE *f=fopen("conftestval", "w");
15985                       if (!f) exit(1);
15986                       fprintf(f,
15987                   #if (__GNUC__ < 3)
15988                               "EMX2"
15989                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15990                               "EMX3"
15991                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15992                               "Innotek5"
15993                   #else
15994                               "Innotek6"
15995                   #endif
15996                       );
15997                       exit(0);
15998                   }
15999
16000 _ACEOF
16001 rm -f conftest$ac_exeext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16003   (eval $ac_link) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008   (eval $ac_try) 2>&5
16009   ac_status=$?
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); }; }; then
16012   wx_cv_gccversion=`cat conftestval`
16013 else
16014   echo "$as_me: program exited with status $ac_status" >&5
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 ( exit $ac_status )
16019 wx_cv_gccversion="EMX2"
16020 fi
16021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16022 fi
16023
16024 fi
16025 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16026 echo "${ECHO_T}$wx_cv_gccversion" >&6
16027       ac_ext=cc
16028 ac_cpp='$CXXCPP $CPPFLAGS'
16029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16032
16033       if test "$wx_cv_gccversion" = "EMX2"; then
16034           LIBS="$LIBS -lstdcpp"
16035           LDFLAGS="$LDFLAGS -Zsysv-signals"
16036       else
16037           if test "$wx_cv_gccversion" = "EMX3"; then
16038               LIBS="$LIBS -lstdcxx -lgcc"
16039               LDFLAGS="$LDFLAGS -Zsysv-signals"
16040           else
16041               LIBS="$LIBS -lstdc++"
16042           fi
16043       fi
16044       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16045         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16046 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16047         wxUSE_OMF=yes
16048         enable_omf=yes
16049       fi
16050         ;;
16051   *)
16052
16053       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
16054 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16055 if test "${ac_cv_string_strcasecmp+set}" = set; then
16056   echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058
16059           cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065
16066               #include <string.h>
16067
16068 int
16069 main ()
16070 {
16071
16072                   strcasecmp("foo", "bar");
16073
16074   ;
16075   return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest.$ac_objext conftest$ac_exeext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16080   (eval $ac_link) 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } &&
16087          { ac_try='test -z "$ac_cxx_werror_flag"
16088                          || test ! -s conftest.err'
16089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090   (eval $ac_try) 2>&5
16091   ac_status=$?
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); }; } &&
16094          { ac_try='test -s conftest$ac_exeext'
16095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096   (eval $ac_try) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; }; then
16100   ac_cv_string_strcasecmp=yes
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 ac_cv_string_strcasecmp=no
16106
16107 fi
16108 rm -f conftest.err conftest.$ac_objext \
16109       conftest$ac_exeext conftest.$ac_ext
16110
16111 fi
16112 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16113 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16114
16115       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16116           cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_STRCASECMP_IN_STRING_H 1
16118 _ACEOF
16119
16120       else
16121           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16122 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16123 if test "${ac_cv_strings_strcasecmp+set}" = set; then
16124   echo $ECHO_N "(cached) $ECHO_C" >&6
16125 else
16126
16127               cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h.  */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h.  */
16133
16134                   #include <strings.h>
16135
16136 int
16137 main ()
16138 {
16139
16140                       strcasecmp("foo", "bar");
16141
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148   (eval $ac_link) 2>conftest.er1
16149   ac_status=$?
16150   grep -v '^ *+' conftest.er1 >conftest.err
16151   rm -f conftest.er1
16152   cat conftest.err >&5
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } &&
16155          { ac_try='test -z "$ac_cxx_werror_flag"
16156                          || test ! -s conftest.err'
16157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158   (eval $ac_try) 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; } &&
16162          { ac_try='test -s conftest$ac_exeext'
16163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164   (eval $ac_try) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; }; then
16168   ac_cv_strings_strcasecmp=yes
16169 else
16170   echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173 ac_cv_strings_strcasecmp=no
16174
16175 fi
16176 rm -f conftest.err conftest.$ac_objext \
16177       conftest$ac_exeext conftest.$ac_ext
16178
16179 fi
16180 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16181 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16182
16183           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
16184               cat >>confdefs.h <<\_ACEOF
16185 #define HAVE_STRCASECMP_IN_STRINGS_H 1
16186 _ACEOF
16187
16188           else
16189               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16190 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16191    { (exit 1); exit 1; }; }
16192           fi
16193       fi
16194
16195         ;;
16196 esac
16197
16198
16199 ac_ext=cc
16200 ac_cpp='$CXXCPP $CPPFLAGS'
16201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16204 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16205 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16206 if test -z "$CXXCPP"; then
16207   if test "${ac_cv_prog_CXXCPP+set}" = set; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210       # Double quotes because CXXCPP needs to be expanded
16211     for CXXCPP in "$CXX -E" "/lib/cpp"
16212     do
16213       ac_preproc_ok=false
16214 for ac_cxx_preproc_warn_flag in '' yes
16215 do
16216   # Use a header file that comes with gcc, so configuring glibc
16217   # with a fresh cross-compiler works.
16218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16219   # <limits.h> exists even on freestanding compilers.
16220   # On the NeXT, cc -E runs the code through the compiler's parser,
16221   # not just through cpp. "Syntax error" is here to catch this case.
16222   cat >conftest.$ac_ext <<_ACEOF
16223 /* confdefs.h.  */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h.  */
16228 #ifdef __STDC__
16229 # include <limits.h>
16230 #else
16231 # include <assert.h>
16232 #endif
16233                      Syntax error
16234 _ACEOF
16235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16237   ac_status=$?
16238   grep -v '^ *+' conftest.er1 >conftest.err
16239   rm -f conftest.er1
16240   cat conftest.err >&5
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); } >/dev/null; then
16243   if test -s conftest.err; then
16244     ac_cpp_err=$ac_cxx_preproc_warn_flag
16245     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16246   else
16247     ac_cpp_err=
16248   fi
16249 else
16250   ac_cpp_err=yes
16251 fi
16252 if test -z "$ac_cpp_err"; then
16253   :
16254 else
16255   echo "$as_me: failed program was:" >&5
16256 sed 's/^/| /' conftest.$ac_ext >&5
16257
16258   # Broken: fails on valid input.
16259 continue
16260 fi
16261 rm -f conftest.err conftest.$ac_ext
16262
16263   # OK, works on sane cases.  Now check whether non-existent headers
16264   # can be detected and how.
16265   cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271 #include <ac_nonexistent.h>
16272 _ACEOF
16273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16275   ac_status=$?
16276   grep -v '^ *+' conftest.er1 >conftest.err
16277   rm -f conftest.er1
16278   cat conftest.err >&5
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } >/dev/null; then
16281   if test -s conftest.err; then
16282     ac_cpp_err=$ac_cxx_preproc_warn_flag
16283     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16284   else
16285     ac_cpp_err=
16286   fi
16287 else
16288   ac_cpp_err=yes
16289 fi
16290 if test -z "$ac_cpp_err"; then
16291   # Broken: success on invalid input.
16292 continue
16293 else
16294   echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16296
16297   # Passes both tests.
16298 ac_preproc_ok=:
16299 break
16300 fi
16301 rm -f conftest.err conftest.$ac_ext
16302
16303 done
16304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16305 rm -f conftest.err conftest.$ac_ext
16306 if $ac_preproc_ok; then
16307   break
16308 fi
16309
16310     done
16311     ac_cv_prog_CXXCPP=$CXXCPP
16312
16313 fi
16314   CXXCPP=$ac_cv_prog_CXXCPP
16315 else
16316   ac_cv_prog_CXXCPP=$CXXCPP
16317 fi
16318 echo "$as_me:$LINENO: result: $CXXCPP" >&5
16319 echo "${ECHO_T}$CXXCPP" >&6
16320 ac_preproc_ok=false
16321 for ac_cxx_preproc_warn_flag in '' yes
16322 do
16323   # Use a header file that comes with gcc, so configuring glibc
16324   # with a fresh cross-compiler works.
16325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16326   # <limits.h> exists even on freestanding compilers.
16327   # On the NeXT, cc -E runs the code through the compiler's parser,
16328   # not just through cpp. "Syntax error" is here to catch this case.
16329   cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h.  */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h.  */
16335 #ifdef __STDC__
16336 # include <limits.h>
16337 #else
16338 # include <assert.h>
16339 #endif
16340                      Syntax error
16341 _ACEOF
16342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16343   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
16350   if test -s conftest.err; then
16351     ac_cpp_err=$ac_cxx_preproc_warn_flag
16352     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16353   else
16354     ac_cpp_err=
16355   fi
16356 else
16357   ac_cpp_err=yes
16358 fi
16359 if test -z "$ac_cpp_err"; then
16360   :
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365   # Broken: fails on valid input.
16366 continue
16367 fi
16368 rm -f conftest.err conftest.$ac_ext
16369
16370   # OK, works on sane cases.  Now check whether non-existent headers
16371   # can be detected and how.
16372   cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 #include <ac_nonexistent.h>
16379 _ACEOF
16380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16382   ac_status=$?
16383   grep -v '^ *+' conftest.er1 >conftest.err
16384   rm -f conftest.er1
16385   cat conftest.err >&5
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); } >/dev/null; then
16388   if test -s conftest.err; then
16389     ac_cpp_err=$ac_cxx_preproc_warn_flag
16390     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16391   else
16392     ac_cpp_err=
16393   fi
16394 else
16395   ac_cpp_err=yes
16396 fi
16397 if test -z "$ac_cpp_err"; then
16398   # Broken: success on invalid input.
16399 continue
16400 else
16401   echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16403
16404   # Passes both tests.
16405 ac_preproc_ok=:
16406 break
16407 fi
16408 rm -f conftest.err conftest.$ac_ext
16409
16410 done
16411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16412 rm -f conftest.err conftest.$ac_ext
16413 if $ac_preproc_ok; then
16414   :
16415 else
16416   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16417 See \`config.log' for more details." >&5
16418 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16419 See \`config.log' for more details." >&2;}
16420    { (exit 1); exit 1; }; }
16421 fi
16422
16423 ac_ext=cc
16424 ac_cpp='$CXXCPP $CPPFLAGS'
16425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16428
16429
16430 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16432 if test "${ac_cv_header_stdc+set}" = set; then
16433   echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16435   cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h.  */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h.  */
16441 #include <stdlib.h>
16442 #include <stdarg.h>
16443 #include <string.h>
16444 #include <float.h>
16445
16446 int
16447 main ()
16448 {
16449
16450   ;
16451   return 0;
16452 }
16453 _ACEOF
16454 rm -f conftest.$ac_objext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16456   (eval $ac_compile) 2>conftest.er1
16457   ac_status=$?
16458   grep -v '^ *+' conftest.er1 >conftest.err
16459   rm -f conftest.er1
16460   cat conftest.err >&5
16461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462   (exit $ac_status); } &&
16463          { ac_try='test -z "$ac_cxx_werror_flag"
16464                          || test ! -s conftest.err'
16465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466   (eval $ac_try) 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); }; } &&
16470          { ac_try='test -s conftest.$ac_objext'
16471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472   (eval $ac_try) 2>&5
16473   ac_status=$?
16474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); }; }; then
16476   ac_cv_header_stdc=yes
16477 else
16478   echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481 ac_cv_header_stdc=no
16482 fi
16483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16484
16485 if test $ac_cv_header_stdc = yes; then
16486   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16487   cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h.  */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h.  */
16493 #include <string.h>
16494
16495 _ACEOF
16496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16497   $EGREP "memchr" >/dev/null 2>&1; then
16498   :
16499 else
16500   ac_cv_header_stdc=no
16501 fi
16502 rm -f conftest*
16503
16504 fi
16505
16506 if test $ac_cv_header_stdc = yes; then
16507   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16508   cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h.  */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h.  */
16514 #include <stdlib.h>
16515
16516 _ACEOF
16517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16518   $EGREP "free" >/dev/null 2>&1; then
16519   :
16520 else
16521   ac_cv_header_stdc=no
16522 fi
16523 rm -f conftest*
16524
16525 fi
16526
16527 if test $ac_cv_header_stdc = yes; then
16528   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16529   if test "$cross_compiling" = yes; then
16530   :
16531 else
16532   cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538 #include <ctype.h>
16539 #if ((' ' & 0x0FF) == 0x020)
16540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16542 #else
16543 # define ISLOWER(c) \
16544                    (('a' <= (c) && (c) <= 'i') \
16545                      || ('j' <= (c) && (c) <= 'r') \
16546                      || ('s' <= (c) && (c) <= 'z'))
16547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16548 #endif
16549
16550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16551 int
16552 main ()
16553 {
16554   int i;
16555   for (i = 0; i < 256; i++)
16556     if (XOR (islower (i), ISLOWER (i))
16557         || toupper (i) != TOUPPER (i))
16558       exit(2);
16559   exit (0);
16560 }
16561 _ACEOF
16562 rm -f conftest$ac_exeext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16564   (eval $ac_link) 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569   (eval $ac_try) 2>&5
16570   ac_status=$?
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; }; then
16573   :
16574 else
16575   echo "$as_me: program exited with status $ac_status" >&5
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 ( exit $ac_status )
16580 ac_cv_header_stdc=no
16581 fi
16582 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16583 fi
16584 fi
16585 fi
16586 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16587 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16588 if test $ac_cv_header_stdc = yes; then
16589
16590 cat >>confdefs.h <<\_ACEOF
16591 #define STDC_HEADERS 1
16592 _ACEOF
16593
16594 fi
16595
16596 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16607                   inttypes.h stdint.h unistd.h
16608 do
16609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16610 echo "$as_me:$LINENO: checking for $ac_header" >&5
16611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615   cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621 $ac_includes_default
16622
16623 #include <$ac_header>
16624 _ACEOF
16625 rm -f conftest.$ac_objext
16626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16627   (eval $ac_compile) 2>conftest.er1
16628   ac_status=$?
16629   grep -v '^ *+' conftest.er1 >conftest.err
16630   rm -f conftest.er1
16631   cat conftest.err >&5
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); } &&
16634          { ac_try='test -z "$ac_cxx_werror_flag"
16635                          || test ! -s conftest.err'
16636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637   (eval $ac_try) 2>&5
16638   ac_status=$?
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); }; } &&
16641          { ac_try='test -s conftest.$ac_objext'
16642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643   (eval $ac_try) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; }; then
16647   eval "$as_ac_Header=yes"
16648 else
16649   echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16651
16652 eval "$as_ac_Header=no"
16653 fi
16654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16655 fi
16656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16659   cat >>confdefs.h <<_ACEOF
16660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16661 _ACEOF
16662
16663 fi
16664
16665 done
16666
16667
16668
16669 for ac_header in stdlib.h
16670 do
16671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16673   echo "$as_me:$LINENO: checking for $ac_header" >&5
16674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16676   echo $ECHO_N "(cached) $ECHO_C" >&6
16677 fi
16678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16680 else
16681   # Is the header compilable?
16682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h.  */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h.  */
16690 $ac_includes_default
16691 #include <$ac_header>
16692 _ACEOF
16693 rm -f conftest.$ac_objext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16695   (eval $ac_compile) 2>conftest.er1
16696   ac_status=$?
16697   grep -v '^ *+' conftest.er1 >conftest.err
16698   rm -f conftest.er1
16699   cat conftest.err >&5
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } &&
16702          { ac_try='test -z "$ac_cxx_werror_flag"
16703                          || test ! -s conftest.err'
16704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705   (eval $ac_try) 2>&5
16706   ac_status=$?
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); }; } &&
16709          { ac_try='test -s conftest.$ac_objext'
16710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711   (eval $ac_try) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; }; then
16715   ac_header_compiler=yes
16716 else
16717   echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16719
16720 ac_header_compiler=no
16721 fi
16722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16724 echo "${ECHO_T}$ac_header_compiler" >&6
16725
16726 # Is the header present?
16727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16729 cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 #include <$ac_header>
16736 _ACEOF
16737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16739   ac_status=$?
16740   grep -v '^ *+' conftest.er1 >conftest.err
16741   rm -f conftest.er1
16742   cat conftest.err >&5
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); } >/dev/null; then
16745   if test -s conftest.err; then
16746     ac_cpp_err=$ac_cxx_preproc_warn_flag
16747     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16748   else
16749     ac_cpp_err=
16750   fi
16751 else
16752   ac_cpp_err=yes
16753 fi
16754 if test -z "$ac_cpp_err"; then
16755   ac_header_preproc=yes
16756 else
16757   echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760   ac_header_preproc=no
16761 fi
16762 rm -f conftest.err conftest.$ac_ext
16763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16764 echo "${ECHO_T}$ac_header_preproc" >&6
16765
16766 # So?  What about this header?
16767 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16768   yes:no: )
16769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16773     ac_header_preproc=yes
16774     ;;
16775   no:yes:* )
16776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16788     (
16789       cat <<\_ASBOX
16790 ## ----------------------------------------- ##
16791 ## Report this to wx-dev@lists.wxwidgets.org ##
16792 ## ----------------------------------------- ##
16793 _ASBOX
16794     ) |
16795       sed "s/^/$as_me: WARNING:     /" >&2
16796     ;;
16797 esac
16798 echo "$as_me:$LINENO: checking for $ac_header" >&5
16799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16801   echo $ECHO_N "(cached) $ECHO_C" >&6
16802 else
16803   eval "$as_ac_Header=\$ac_header_preproc"
16804 fi
16805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16807
16808 fi
16809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16810   cat >>confdefs.h <<_ACEOF
16811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16812 _ACEOF
16813
16814 fi
16815
16816 done
16817
16818
16819 for ac_header in malloc.h
16820 do
16821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16823   echo "$as_me:$LINENO: checking for $ac_header" >&5
16824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 fi
16828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16830 else
16831   # Is the header compilable?
16832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16834 cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h.  */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h.  */
16840 $ac_includes_default
16841 #include <$ac_header>
16842 _ACEOF
16843 rm -f conftest.$ac_objext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16845   (eval $ac_compile) 2>conftest.er1
16846   ac_status=$?
16847   grep -v '^ *+' conftest.er1 >conftest.err
16848   rm -f conftest.er1
16849   cat conftest.err >&5
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); } &&
16852          { ac_try='test -z "$ac_cxx_werror_flag"
16853                          || 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   ac_header_compiler=yes
16866 else
16867   echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 ac_header_compiler=no
16871 fi
16872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16874 echo "${ECHO_T}$ac_header_compiler" >&6
16875
16876 # Is the header present?
16877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16879 cat >conftest.$ac_ext <<_ACEOF
16880 /* confdefs.h.  */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h.  */
16885 #include <$ac_header>
16886 _ACEOF
16887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16889   ac_status=$?
16890   grep -v '^ *+' conftest.er1 >conftest.err
16891   rm -f conftest.er1
16892   cat conftest.err >&5
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); } >/dev/null; then
16895   if test -s conftest.err; then
16896     ac_cpp_err=$ac_cxx_preproc_warn_flag
16897     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16898   else
16899     ac_cpp_err=
16900   fi
16901 else
16902   ac_cpp_err=yes
16903 fi
16904 if test -z "$ac_cpp_err"; then
16905   ac_header_preproc=yes
16906 else
16907   echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16909
16910   ac_header_preproc=no
16911 fi
16912 rm -f conftest.err conftest.$ac_ext
16913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16914 echo "${ECHO_T}$ac_header_preproc" >&6
16915
16916 # So?  What about this header?
16917 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16918   yes:no: )
16919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16923     ac_header_preproc=yes
16924     ;;
16925   no:yes:* )
16926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16938     (
16939       cat <<\_ASBOX
16940 ## ----------------------------------------- ##
16941 ## Report this to wx-dev@lists.wxwidgets.org ##
16942 ## ----------------------------------------- ##
16943 _ASBOX
16944     ) |
16945       sed "s/^/$as_me: WARNING:     /" >&2
16946     ;;
16947 esac
16948 echo "$as_me:$LINENO: checking for $ac_header" >&5
16949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953   eval "$as_ac_Header=\$ac_header_preproc"
16954 fi
16955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16957
16958 fi
16959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16960   cat >>confdefs.h <<_ACEOF
16961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16962 _ACEOF
16963
16964 fi
16965
16966 done
16967
16968
16969 for ac_header in unistd.h
16970 do
16971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16973   echo "$as_me:$LINENO: checking for $ac_header" >&5
16974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16976   echo $ECHO_N "(cached) $ECHO_C" >&6
16977 fi
16978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16980 else
16981   # Is the header compilable?
16982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990 $ac_includes_default
16991 #include <$ac_header>
16992 _ACEOF
16993 rm -f conftest.$ac_objext
16994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16995   (eval $ac_compile) 2>conftest.er1
16996   ac_status=$?
16997   grep -v '^ *+' conftest.er1 >conftest.err
16998   rm -f conftest.er1
16999   cat conftest.err >&5
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); } &&
17002          { ac_try='test -z "$ac_cxx_werror_flag"
17003                          || test ! -s conftest.err'
17004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005   (eval $ac_try) 2>&5
17006   ac_status=$?
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); }; } &&
17009          { ac_try='test -s conftest.$ac_objext'
17010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011   (eval $ac_try) 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; }; then
17015   ac_header_compiler=yes
17016 else
17017   echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17019
17020 ac_header_compiler=no
17021 fi
17022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17024 echo "${ECHO_T}$ac_header_compiler" >&6
17025
17026 # Is the header present?
17027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17029 cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h.  */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h.  */
17035 #include <$ac_header>
17036 _ACEOF
17037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17039   ac_status=$?
17040   grep -v '^ *+' conftest.er1 >conftest.err
17041   rm -f conftest.er1
17042   cat conftest.err >&5
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); } >/dev/null; then
17045   if test -s conftest.err; then
17046     ac_cpp_err=$ac_cxx_preproc_warn_flag
17047     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17048   else
17049     ac_cpp_err=
17050   fi
17051 else
17052   ac_cpp_err=yes
17053 fi
17054 if test -z "$ac_cpp_err"; then
17055   ac_header_preproc=yes
17056 else
17057   echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060   ac_header_preproc=no
17061 fi
17062 rm -f conftest.err conftest.$ac_ext
17063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17064 echo "${ECHO_T}$ac_header_preproc" >&6
17065
17066 # So?  What about this header?
17067 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17068   yes:no: )
17069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17073     ac_header_preproc=yes
17074     ;;
17075   no:yes:* )
17076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17088     (
17089       cat <<\_ASBOX
17090 ## ----------------------------------------- ##
17091 ## Report this to wx-dev@lists.wxwidgets.org ##
17092 ## ----------------------------------------- ##
17093 _ASBOX
17094     ) |
17095       sed "s/^/$as_me: WARNING:     /" >&2
17096     ;;
17097 esac
17098 echo "$as_me:$LINENO: checking for $ac_header" >&5
17099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17101   echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103   eval "$as_ac_Header=\$ac_header_preproc"
17104 fi
17105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17107
17108 fi
17109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17110   cat >>confdefs.h <<_ACEOF
17111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17112 _ACEOF
17113
17114 fi
17115
17116 done
17117
17118
17119 for ac_header in wchar.h
17120 do
17121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17123   echo "$as_me:$LINENO: checking for $ac_header" >&5
17124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17126   echo $ECHO_N "(cached) $ECHO_C" >&6
17127 fi
17128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17130 else
17131   # Is the header compilable?
17132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17134 cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h.  */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h.  */
17140 $ac_includes_default
17141 #include <$ac_header>
17142 _ACEOF
17143 rm -f conftest.$ac_objext
17144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17145   (eval $ac_compile) 2>conftest.er1
17146   ac_status=$?
17147   grep -v '^ *+' conftest.er1 >conftest.err
17148   rm -f conftest.er1
17149   cat conftest.err >&5
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); } &&
17152          { ac_try='test -z "$ac_cxx_werror_flag"
17153                          || test ! -s conftest.err'
17154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155   (eval $ac_try) 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; } &&
17159          { ac_try='test -s conftest.$ac_objext'
17160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161   (eval $ac_try) 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; }; then
17165   ac_header_compiler=yes
17166 else
17167   echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_header_compiler=no
17171 fi
17172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17174 echo "${ECHO_T}$ac_header_compiler" >&6
17175
17176 # Is the header present?
17177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17179 cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185 #include <$ac_header>
17186 _ACEOF
17187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17189   ac_status=$?
17190   grep -v '^ *+' conftest.er1 >conftest.err
17191   rm -f conftest.er1
17192   cat conftest.err >&5
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); } >/dev/null; then
17195   if test -s conftest.err; then
17196     ac_cpp_err=$ac_cxx_preproc_warn_flag
17197     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17198   else
17199     ac_cpp_err=
17200   fi
17201 else
17202   ac_cpp_err=yes
17203 fi
17204 if test -z "$ac_cpp_err"; then
17205   ac_header_preproc=yes
17206 else
17207   echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17209
17210   ac_header_preproc=no
17211 fi
17212 rm -f conftest.err conftest.$ac_ext
17213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17214 echo "${ECHO_T}$ac_header_preproc" >&6
17215
17216 # So?  What about this header?
17217 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17218   yes:no: )
17219     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17223     ac_header_preproc=yes
17224     ;;
17225   no:yes:* )
17226     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17228     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17229 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17230     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17232     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17233 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17236     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17238     (
17239       cat <<\_ASBOX
17240 ## ----------------------------------------- ##
17241 ## Report this to wx-dev@lists.wxwidgets.org ##
17242 ## ----------------------------------------- ##
17243 _ASBOX
17244     ) |
17245       sed "s/^/$as_me: WARNING:     /" >&2
17246     ;;
17247 esac
17248 echo "$as_me:$LINENO: checking for $ac_header" >&5
17249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17251   echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253   eval "$as_ac_Header=\$ac_header_preproc"
17254 fi
17255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17257
17258 fi
17259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17260   cat >>confdefs.h <<_ACEOF
17261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17262 _ACEOF
17263
17264 fi
17265
17266 done
17267
17268
17269 if test "$ac_cv_header_wchar_h" != "yes"; then
17270
17271 for ac_header in wcstr.h
17272 do
17273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17275   echo "$as_me:$LINENO: checking for $ac_header" >&5
17276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 fi
17280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17282 else
17283   # Is the header compilable?
17284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17286 cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h.  */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h.  */
17292 $ac_includes_default
17293 #include <$ac_header>
17294 _ACEOF
17295 rm -f conftest.$ac_objext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17297   (eval $ac_compile) 2>conftest.er1
17298   ac_status=$?
17299   grep -v '^ *+' conftest.er1 >conftest.err
17300   rm -f conftest.er1
17301   cat conftest.err >&5
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); } &&
17304          { ac_try='test -z "$ac_cxx_werror_flag"
17305                          || test ! -s conftest.err'
17306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307   (eval $ac_try) 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; } &&
17311          { ac_try='test -s conftest.$ac_objext'
17312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313   (eval $ac_try) 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; }; then
17317   ac_header_compiler=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322 ac_header_compiler=no
17323 fi
17324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17326 echo "${ECHO_T}$ac_header_compiler" >&6
17327
17328 # Is the header present?
17329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17331 cat >conftest.$ac_ext <<_ACEOF
17332 /* confdefs.h.  */
17333 _ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h.  */
17337 #include <$ac_header>
17338 _ACEOF
17339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17341   ac_status=$?
17342   grep -v '^ *+' conftest.er1 >conftest.err
17343   rm -f conftest.er1
17344   cat conftest.err >&5
17345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346   (exit $ac_status); } >/dev/null; then
17347   if test -s conftest.err; then
17348     ac_cpp_err=$ac_cxx_preproc_warn_flag
17349     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17350   else
17351     ac_cpp_err=
17352   fi
17353 else
17354   ac_cpp_err=yes
17355 fi
17356 if test -z "$ac_cpp_err"; then
17357   ac_header_preproc=yes
17358 else
17359   echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17361
17362   ac_header_preproc=no
17363 fi
17364 rm -f conftest.err conftest.$ac_ext
17365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17366 echo "${ECHO_T}$ac_header_preproc" >&6
17367
17368 # So?  What about this header?
17369 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17370   yes:no: )
17371     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17375     ac_header_preproc=yes
17376     ;;
17377   no:yes:* )
17378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17380     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17384     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17385 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17388     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17390     (
17391       cat <<\_ASBOX
17392 ## ----------------------------------------- ##
17393 ## Report this to wx-dev@lists.wxwidgets.org ##
17394 ## ----------------------------------------- ##
17395 _ASBOX
17396     ) |
17397       sed "s/^/$as_me: WARNING:     /" >&2
17398     ;;
17399 esac
17400 echo "$as_me:$LINENO: checking for $ac_header" >&5
17401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17403   echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405   eval "$as_ac_Header=\$ac_header_preproc"
17406 fi
17407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17409
17410 fi
17411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17412   cat >>confdefs.h <<_ACEOF
17413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17414 _ACEOF
17415
17416 fi
17417
17418 done
17419
17420 fi
17421
17422
17423 for ac_header in fnmatch.h
17424 do
17425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17427   echo "$as_me:$LINENO: checking for $ac_header" >&5
17428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 fi
17432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17434 else
17435   # Is the header compilable?
17436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444 $ac_includes_default
17445 #include <$ac_header>
17446 _ACEOF
17447 rm -f conftest.$ac_objext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17449   (eval $ac_compile) 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } &&
17456          { ac_try='test -z "$ac_cxx_werror_flag"
17457                          || test ! -s conftest.err'
17458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459   (eval $ac_try) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; } &&
17463          { ac_try='test -s conftest.$ac_objext'
17464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465   (eval $ac_try) 2>&5
17466   ac_status=$?
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); }; }; then
17469   ac_header_compiler=yes
17470 else
17471   echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 ac_header_compiler=no
17475 fi
17476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17478 echo "${ECHO_T}$ac_header_compiler" >&6
17479
17480 # Is the header present?
17481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17483 cat >conftest.$ac_ext <<_ACEOF
17484 /* confdefs.h.  */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h.  */
17489 #include <$ac_header>
17490 _ACEOF
17491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17493   ac_status=$?
17494   grep -v '^ *+' conftest.er1 >conftest.err
17495   rm -f conftest.er1
17496   cat conftest.err >&5
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); } >/dev/null; then
17499   if test -s conftest.err; then
17500     ac_cpp_err=$ac_cxx_preproc_warn_flag
17501     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17502   else
17503     ac_cpp_err=
17504   fi
17505 else
17506   ac_cpp_err=yes
17507 fi
17508 if test -z "$ac_cpp_err"; then
17509   ac_header_preproc=yes
17510 else
17511   echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514   ac_header_preproc=no
17515 fi
17516 rm -f conftest.err conftest.$ac_ext
17517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17518 echo "${ECHO_T}$ac_header_preproc" >&6
17519
17520 # So?  What about this header?
17521 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17522   yes:no: )
17523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17527     ac_header_preproc=yes
17528     ;;
17529   no:yes:* )
17530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17542     (
17543       cat <<\_ASBOX
17544 ## ----------------------------------------- ##
17545 ## Report this to wx-dev@lists.wxwidgets.org ##
17546 ## ----------------------------------------- ##
17547 _ASBOX
17548     ) |
17549       sed "s/^/$as_me: WARNING:     /" >&2
17550     ;;
17551 esac
17552 echo "$as_me:$LINENO: checking for $ac_header" >&5
17553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17555   echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557   eval "$as_ac_Header=\$ac_header_preproc"
17558 fi
17559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17561
17562 fi
17563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17564   cat >>confdefs.h <<_ACEOF
17565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17566 _ACEOF
17567
17568 fi
17569
17570 done
17571
17572
17573
17574 for ac_header in langinfo.h
17575 do
17576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17578   echo "$as_me:$LINENO: checking for $ac_header" >&5
17579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17581   echo $ECHO_N "(cached) $ECHO_C" >&6
17582 fi
17583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17585 else
17586   # Is the header compilable?
17587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17589 cat >conftest.$ac_ext <<_ACEOF
17590 /* confdefs.h.  */
17591 _ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h.  */
17595 $ac_includes_default
17596 #include <$ac_header>
17597 _ACEOF
17598 rm -f conftest.$ac_objext
17599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17600   (eval $ac_compile) 2>conftest.er1
17601   ac_status=$?
17602   grep -v '^ *+' conftest.er1 >conftest.err
17603   rm -f conftest.er1
17604   cat conftest.err >&5
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } &&
17607          { ac_try='test -z "$ac_cxx_werror_flag"
17608                          || test ! -s conftest.err'
17609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610   (eval $ac_try) 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; } &&
17614          { ac_try='test -s conftest.$ac_objext'
17615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616   (eval $ac_try) 2>&5
17617   ac_status=$?
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); }; }; then
17620   ac_header_compiler=yes
17621 else
17622   echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 ac_header_compiler=no
17626 fi
17627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17629 echo "${ECHO_T}$ac_header_compiler" >&6
17630
17631 # Is the header present?
17632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640 #include <$ac_header>
17641 _ACEOF
17642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17643   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } >/dev/null; then
17650   if test -s conftest.err; then
17651     ac_cpp_err=$ac_cxx_preproc_warn_flag
17652     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17653   else
17654     ac_cpp_err=
17655   fi
17656 else
17657   ac_cpp_err=yes
17658 fi
17659 if test -z "$ac_cpp_err"; then
17660   ac_header_preproc=yes
17661 else
17662   echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665   ac_header_preproc=no
17666 fi
17667 rm -f conftest.err conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17669 echo "${ECHO_T}$ac_header_preproc" >&6
17670
17671 # So?  What about this header?
17672 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17673   yes:no: )
17674     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17678     ac_header_preproc=yes
17679     ;;
17680   no:yes:* )
17681     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17683     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17684 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17685     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17687     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17688 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17691     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17693     (
17694       cat <<\_ASBOX
17695 ## ----------------------------------------- ##
17696 ## Report this to wx-dev@lists.wxwidgets.org ##
17697 ## ----------------------------------------- ##
17698 _ASBOX
17699     ) |
17700       sed "s/^/$as_me: WARNING:     /" >&2
17701     ;;
17702 esac
17703 echo "$as_me:$LINENO: checking for $ac_header" >&5
17704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17706   echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708   eval "$as_ac_Header=\$ac_header_preproc"
17709 fi
17710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17712
17713 fi
17714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17715   cat >>confdefs.h <<_ACEOF
17716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17717 _ACEOF
17718
17719 fi
17720
17721 done
17722
17723
17724 case "${host}" in
17725   *-pc-os2_emx | *-pc-os2-emx )
17726                   if test $ac_cv_header_langinfo_h = "yes" \
17727                 -a \(   "$wx_cv_gccversion" = "EMX2" \
17728                      -o "$wx_cv_gccversion" = "EMX3" \
17729                      -o "$wx_cv_gccversion" = "Innotek5" \); then
17730           LIBS="$LIBS -lintl"
17731       fi
17732   ;;
17733 esac
17734
17735 if test "$USE_UNIX" = 1 ; then
17736
17737 for ac_header in sys/select.h
17738 do
17739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17741   echo "$as_me:$LINENO: checking for $ac_header" >&5
17742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17744   echo $ECHO_N "(cached) $ECHO_C" >&6
17745 fi
17746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17748 else
17749   # Is the header compilable?
17750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758 $ac_includes_default
17759 #include <$ac_header>
17760 _ACEOF
17761 rm -f conftest.$ac_objext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763   (eval $ac_compile) 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } &&
17770          { ac_try='test -z "$ac_cxx_werror_flag"
17771                          || test ! -s conftest.err'
17772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773   (eval $ac_try) 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; } &&
17777          { ac_try='test -s conftest.$ac_objext'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }; then
17783   ac_header_compiler=yes
17784 else
17785   echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 ac_header_compiler=no
17789 fi
17790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17792 echo "${ECHO_T}$ac_header_compiler" >&6
17793
17794 # Is the header present?
17795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h.  */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h.  */
17803 #include <$ac_header>
17804 _ACEOF
17805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17807   ac_status=$?
17808   grep -v '^ *+' conftest.er1 >conftest.err
17809   rm -f conftest.er1
17810   cat conftest.err >&5
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); } >/dev/null; then
17813   if test -s conftest.err; then
17814     ac_cpp_err=$ac_cxx_preproc_warn_flag
17815     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17816   else
17817     ac_cpp_err=
17818   fi
17819 else
17820   ac_cpp_err=yes
17821 fi
17822 if test -z "$ac_cpp_err"; then
17823   ac_header_preproc=yes
17824 else
17825   echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828   ac_header_preproc=no
17829 fi
17830 rm -f conftest.err conftest.$ac_ext
17831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17832 echo "${ECHO_T}$ac_header_preproc" >&6
17833
17834 # So?  What about this header?
17835 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17836   yes:no: )
17837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17841     ac_header_preproc=yes
17842     ;;
17843   no:yes:* )
17844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17856     (
17857       cat <<\_ASBOX
17858 ## ----------------------------------------- ##
17859 ## Report this to wx-dev@lists.wxwidgets.org ##
17860 ## ----------------------------------------- ##
17861 _ASBOX
17862     ) |
17863       sed "s/^/$as_me: WARNING:     /" >&2
17864     ;;
17865 esac
17866 echo "$as_me:$LINENO: checking for $ac_header" >&5
17867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17869   echo $ECHO_N "(cached) $ECHO_C" >&6
17870 else
17871   eval "$as_ac_Header=\$ac_header_preproc"
17872 fi
17873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17875
17876 fi
17877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17878   cat >>confdefs.h <<_ACEOF
17879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17880 _ACEOF
17881
17882 fi
17883
17884 done
17885
17886 fi
17887
17888
17889 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17890 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17891 if test "${ac_cv_c_const+set}" = set; then
17892   echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894   cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h.  */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h.  */
17900
17901 int
17902 main ()
17903 {
17904 /* FIXME: Include the comments suggested by Paul. */
17905 #ifndef __cplusplus
17906   /* Ultrix mips cc rejects this.  */
17907   typedef int charset[2];
17908   const charset x;
17909   /* SunOS 4.1.1 cc rejects this.  */
17910   char const *const *ccp;
17911   char **p;
17912   /* NEC SVR4.0.2 mips cc rejects this.  */
17913   struct point {int x, y;};
17914   static struct point const zero = {0,0};
17915   /* AIX XL C 1.02.0.0 rejects this.
17916      It does not let you subtract one const X* pointer from another in
17917      an arm of an if-expression whose if-part is not a constant
17918      expression */
17919   const char *g = "string";
17920   ccp = &g + (g ? g-g : 0);
17921   /* HPUX 7.0 cc rejects these. */
17922   ++ccp;
17923   p = (char**) ccp;
17924   ccp = (char const *const *) p;
17925   { /* SCO 3.2v4 cc rejects this.  */
17926     char *t;
17927     char const *s = 0 ? (char *) 0 : (char const *) 0;
17928
17929     *t++ = 0;
17930   }
17931   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17932     int x[] = {25, 17};
17933     const int *foo = &x[0];
17934     ++foo;
17935   }
17936   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17937     typedef const int *iptr;
17938     iptr p = 0;
17939     ++p;
17940   }
17941   { /* AIX XL C 1.02.0.0 rejects this saying
17942        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17943     struct s { int j; const int *ap[3]; };
17944     struct s *b; b->j = 5;
17945   }
17946   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17947     const int foo = 10;
17948   }
17949 #endif
17950
17951   ;
17952   return 0;
17953 }
17954 _ACEOF
17955 rm -f conftest.$ac_objext
17956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17957   (eval $ac_compile) 2>conftest.er1
17958   ac_status=$?
17959   grep -v '^ *+' conftest.er1 >conftest.err
17960   rm -f conftest.er1
17961   cat conftest.err >&5
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } &&
17964          { ac_try='test -z "$ac_cxx_werror_flag"
17965                          || test ! -s conftest.err'
17966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967   (eval $ac_try) 2>&5
17968   ac_status=$?
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); }; } &&
17971          { ac_try='test -s conftest.$ac_objext'
17972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973   (eval $ac_try) 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); }; }; then
17977   ac_cv_c_const=yes
17978 else
17979   echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17981
17982 ac_cv_c_const=no
17983 fi
17984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17985 fi
17986 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17987 echo "${ECHO_T}$ac_cv_c_const" >&6
17988 if test $ac_cv_c_const = no; then
17989
17990 cat >>confdefs.h <<\_ACEOF
17991 #define const
17992 _ACEOF
17993
17994 fi
17995
17996 echo "$as_me:$LINENO: checking for inline" >&5
17997 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17998 if test "${ac_cv_c_inline+set}" = set; then
17999   echo $ECHO_N "(cached) $ECHO_C" >&6
18000 else
18001   ac_cv_c_inline=no
18002 for ac_kw in inline __inline__ __inline; do
18003   cat >conftest.$ac_ext <<_ACEOF
18004 /* confdefs.h.  */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h.  */
18009 #ifndef __cplusplus
18010 typedef int foo_t;
18011 static $ac_kw foo_t static_foo () {return 0; }
18012 $ac_kw foo_t foo () {return 0; }
18013 #endif
18014
18015 _ACEOF
18016 rm -f conftest.$ac_objext
18017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18018   (eval $ac_compile) 2>conftest.er1
18019   ac_status=$?
18020   grep -v '^ *+' conftest.er1 >conftest.err
18021   rm -f conftest.er1
18022   cat conftest.err >&5
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); } &&
18025          { ac_try='test -z "$ac_cxx_werror_flag"
18026                          || test ! -s conftest.err'
18027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028   (eval $ac_try) 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); }; } &&
18032          { ac_try='test -s conftest.$ac_objext'
18033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034   (eval $ac_try) 2>&5
18035   ac_status=$?
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); }; }; then
18038   ac_cv_c_inline=$ac_kw; break
18039 else
18040   echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18042
18043 fi
18044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18045 done
18046
18047 fi
18048 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18049 echo "${ECHO_T}$ac_cv_c_inline" >&6
18050
18051
18052 case $ac_cv_c_inline in
18053   inline | yes) ;;
18054   *)
18055     case $ac_cv_c_inline in
18056       no) ac_val=;;
18057       *) ac_val=$ac_cv_c_inline;;
18058     esac
18059     cat >>confdefs.h <<_ACEOF
18060 #ifndef __cplusplus
18061 #define inline $ac_val
18062 #endif
18063 _ACEOF
18064     ;;
18065 esac
18066
18067
18068 echo "$as_me:$LINENO: checking for char" >&5
18069 echo $ECHO_N "checking for char... $ECHO_C" >&6
18070 if test "${ac_cv_type_char+set}" = set; then
18071   echo $ECHO_N "(cached) $ECHO_C" >&6
18072 else
18073   cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h.  */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h.  */
18079 $ac_includes_default
18080 int
18081 main ()
18082 {
18083 if ((char *) 0)
18084   return 0;
18085 if (sizeof (char))
18086   return 0;
18087   ;
18088   return 0;
18089 }
18090 _ACEOF
18091 rm -f conftest.$ac_objext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18093   (eval $ac_compile) 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } &&
18100          { ac_try='test -z "$ac_cxx_werror_flag"
18101                          || test ! -s conftest.err'
18102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103   (eval $ac_try) 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; } &&
18107          { ac_try='test -s conftest.$ac_objext'
18108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109   (eval $ac_try) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }; }; then
18113   ac_cv_type_char=yes
18114 else
18115   echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 ac_cv_type_char=no
18119 fi
18120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18121 fi
18122 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18123 echo "${ECHO_T}$ac_cv_type_char" >&6
18124
18125 echo "$as_me:$LINENO: checking size of char" >&5
18126 echo $ECHO_N "checking size of char... $ECHO_C" >&6
18127 if test "${ac_cv_sizeof_char+set}" = set; then
18128   echo $ECHO_N "(cached) $ECHO_C" >&6
18129 else
18130   if test "$ac_cv_type_char" = yes; then
18131   # The cast to unsigned long works around a bug in the HP C Compiler
18132   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18133   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18134   # This bug is HP SR number 8606223364.
18135   if test "$cross_compiling" = yes; then
18136   # Depending upon the size, compute the lo and hi bounds.
18137 cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h.  */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h.  */
18143 $ac_includes_default
18144 int
18145 main ()
18146 {
18147 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18148 test_array [0] = 0
18149
18150   ;
18151   return 0;
18152 }
18153 _ACEOF
18154 rm -f conftest.$ac_objext
18155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18156   (eval $ac_compile) 2>conftest.er1
18157   ac_status=$?
18158   grep -v '^ *+' conftest.er1 >conftest.err
18159   rm -f conftest.er1
18160   cat conftest.err >&5
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); } &&
18163          { ac_try='test -z "$ac_cxx_werror_flag"
18164                          || test ! -s conftest.err'
18165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166   (eval $ac_try) 2>&5
18167   ac_status=$?
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); }; } &&
18170          { ac_try='test -s conftest.$ac_objext'
18171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172   (eval $ac_try) 2>&5
18173   ac_status=$?
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); }; }; then
18176   ac_lo=0 ac_mid=0
18177   while :; do
18178     cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h.  */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h.  */
18184 $ac_includes_default
18185 int
18186 main ()
18187 {
18188 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18189 test_array [0] = 0
18190
18191   ;
18192   return 0;
18193 }
18194 _ACEOF
18195 rm -f conftest.$ac_objext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197   (eval $ac_compile) 2>conftest.er1
18198   ac_status=$?
18199   grep -v '^ *+' conftest.er1 >conftest.err
18200   rm -f conftest.er1
18201   cat conftest.err >&5
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); } &&
18204          { ac_try='test -z "$ac_cxx_werror_flag"
18205                          || test ! -s conftest.err'
18206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207   (eval $ac_try) 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); }; } &&
18211          { ac_try='test -s conftest.$ac_objext'
18212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213   (eval $ac_try) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; }; then
18217   ac_hi=$ac_mid; break
18218 else
18219   echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18221
18222 ac_lo=`expr $ac_mid + 1`
18223                     if test $ac_lo -le $ac_mid; then
18224                       ac_lo= ac_hi=
18225                       break
18226                     fi
18227                     ac_mid=`expr 2 '*' $ac_mid + 1`
18228 fi
18229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18230   done
18231 else
18232   echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18234
18235 cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h.  */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h.  */
18241 $ac_includes_default
18242 int
18243 main ()
18244 {
18245 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18246 test_array [0] = 0
18247
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18254   (eval $ac_compile) 2>conftest.er1
18255   ac_status=$?
18256   grep -v '^ *+' conftest.er1 >conftest.err
18257   rm -f conftest.er1
18258   cat conftest.err >&5
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); } &&
18261          { ac_try='test -z "$ac_cxx_werror_flag"
18262                          || test ! -s conftest.err'
18263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264   (eval $ac_try) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); }; } &&
18268          { ac_try='test -s conftest.$ac_objext'
18269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270   (eval $ac_try) 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; }; then
18274   ac_hi=-1 ac_mid=-1
18275   while :; do
18276     cat >conftest.$ac_ext <<_ACEOF
18277 /* confdefs.h.  */
18278 _ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h.  */
18282 $ac_includes_default
18283 int
18284 main ()
18285 {
18286 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18287 test_array [0] = 0
18288
18289   ;
18290   return 0;
18291 }
18292 _ACEOF
18293 rm -f conftest.$ac_objext
18294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18295   (eval $ac_compile) 2>conftest.er1
18296   ac_status=$?
18297   grep -v '^ *+' conftest.er1 >conftest.err
18298   rm -f conftest.er1
18299   cat conftest.err >&5
18300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); } &&
18302          { ac_try='test -z "$ac_cxx_werror_flag"
18303                          || test ! -s conftest.err'
18304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305   (eval $ac_try) 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; } &&
18309          { ac_try='test -s conftest.$ac_objext'
18310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311   (eval $ac_try) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; }; then
18315   ac_lo=$ac_mid; break
18316 else
18317   echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 ac_hi=`expr '(' $ac_mid ')' - 1`
18321                        if test $ac_mid -le $ac_hi; then
18322                          ac_lo= ac_hi=
18323                          break
18324                        fi
18325                        ac_mid=`expr 2 '*' $ac_mid`
18326 fi
18327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18328   done
18329 else
18330   echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18332
18333 ac_lo= ac_hi=
18334 fi
18335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18336 fi
18337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18338 # Binary search between lo and hi bounds.
18339 while test "x$ac_lo" != "x$ac_hi"; do
18340   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18341   cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h.  */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h.  */
18347 $ac_includes_default
18348 int
18349 main ()
18350 {
18351 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18352 test_array [0] = 0
18353
18354   ;
18355   return 0;
18356 }
18357 _ACEOF
18358 rm -f conftest.$ac_objext
18359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18360   (eval $ac_compile) 2>conftest.er1
18361   ac_status=$?
18362   grep -v '^ *+' conftest.er1 >conftest.err
18363   rm -f conftest.er1
18364   cat conftest.err >&5
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); } &&
18367          { ac_try='test -z "$ac_cxx_werror_flag"
18368                          || test ! -s conftest.err'
18369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370   (eval $ac_try) 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; } &&
18374          { ac_try='test -s conftest.$ac_objext'
18375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376   (eval $ac_try) 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; }; then
18380   ac_hi=$ac_mid
18381 else
18382   echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18384
18385 ac_lo=`expr '(' $ac_mid ')' + 1`
18386 fi
18387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18388 done
18389 case $ac_lo in
18390 ?*) ac_cv_sizeof_char=$ac_lo;;
18391 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18392 See \`config.log' for more details." >&5
18393 echo "$as_me: error: cannot compute sizeof (char), 77
18394 See \`config.log' for more details." >&2;}
18395    { (exit 1); exit 1; }; } ;;
18396 esac
18397 else
18398   if test "$cross_compiling" = yes; then
18399   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18400 See \`config.log' for more details." >&5
18401 echo "$as_me: error: cannot run test program while cross compiling
18402 See \`config.log' for more details." >&2;}
18403    { (exit 1); exit 1; }; }
18404 else
18405   cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411 $ac_includes_default
18412 long longval () { return (long) (sizeof (char)); }
18413 unsigned long ulongval () { return (long) (sizeof (char)); }
18414 #include <stdio.h>
18415 #include <stdlib.h>
18416 int
18417 main ()
18418 {
18419
18420   FILE *f = fopen ("conftest.val", "w");
18421   if (! f)
18422     exit (1);
18423   if (((long) (sizeof (char))) < 0)
18424     {
18425       long i = longval ();
18426       if (i != ((long) (sizeof (char))))
18427         exit (1);
18428       fprintf (f, "%ld\n", i);
18429     }
18430   else
18431     {
18432       unsigned long i = ulongval ();
18433       if (i != ((long) (sizeof (char))))
18434         exit (1);
18435       fprintf (f, "%lu\n", i);
18436     }
18437   exit (ferror (f) || fclose (f) != 0);
18438
18439   ;
18440   return 0;
18441 }
18442 _ACEOF
18443 rm -f conftest$ac_exeext
18444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18445   (eval $ac_link) 2>&5
18446   ac_status=$?
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450   (eval $ac_try) 2>&5
18451   ac_status=$?
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); }; }; then
18454   ac_cv_sizeof_char=`cat conftest.val`
18455 else
18456   echo "$as_me: program exited with status $ac_status" >&5
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18459
18460 ( exit $ac_status )
18461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18462 See \`config.log' for more details." >&5
18463 echo "$as_me: error: cannot compute sizeof (char), 77
18464 See \`config.log' for more details." >&2;}
18465    { (exit 1); exit 1; }; }
18466 fi
18467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18468 fi
18469 fi
18470 rm -f conftest.val
18471 else
18472   ac_cv_sizeof_char=0
18473 fi
18474 fi
18475 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18476 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18477 cat >>confdefs.h <<_ACEOF
18478 #define SIZEOF_CHAR $ac_cv_sizeof_char
18479 _ACEOF
18480
18481
18482 echo "$as_me:$LINENO: checking for short" >&5
18483 echo $ECHO_N "checking for short... $ECHO_C" >&6
18484 if test "${ac_cv_type_short+set}" = set; then
18485   echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487   cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h.  */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h.  */
18493 $ac_includes_default
18494 int
18495 main ()
18496 {
18497 if ((short *) 0)
18498   return 0;
18499 if (sizeof (short))
18500   return 0;
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 rm -f conftest.$ac_objext
18506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18507   (eval $ac_compile) 2>conftest.er1
18508   ac_status=$?
18509   grep -v '^ *+' conftest.er1 >conftest.err
18510   rm -f conftest.er1
18511   cat conftest.err >&5
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); } &&
18514          { ac_try='test -z "$ac_cxx_werror_flag"
18515                          || test ! -s conftest.err'
18516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517   (eval $ac_try) 2>&5
18518   ac_status=$?
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); }; } &&
18521          { ac_try='test -s conftest.$ac_objext'
18522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523   (eval $ac_try) 2>&5
18524   ac_status=$?
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); }; }; then
18527   ac_cv_type_short=yes
18528 else
18529   echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18531
18532 ac_cv_type_short=no
18533 fi
18534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18535 fi
18536 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18537 echo "${ECHO_T}$ac_cv_type_short" >&6
18538
18539 echo "$as_me:$LINENO: checking size of short" >&5
18540 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18541 if test "${ac_cv_sizeof_short+set}" = set; then
18542   echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544   if test "$ac_cv_type_short" = yes; then
18545   # The cast to unsigned long works around a bug in the HP C Compiler
18546   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18547   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18548   # This bug is HP SR number 8606223364.
18549   if test "$cross_compiling" = yes; then
18550   # Depending upon the size, compute the lo and hi bounds.
18551 cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557 $ac_includes_default
18558 int
18559 main ()
18560 {
18561 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18562 test_array [0] = 0
18563
18564   ;
18565   return 0;
18566 }
18567 _ACEOF
18568 rm -f conftest.$ac_objext
18569 if { (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_cxx_werror_flag"
18578                          || test ! -s conftest.err'
18579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580   (eval $ac_try) 2>&5
18581   ac_status=$?
18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583   (exit $ac_status); }; } &&
18584          { ac_try='test -s conftest.$ac_objext'
18585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18586   (eval $ac_try) 2>&5
18587   ac_status=$?
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); }; }; then
18590   ac_lo=0 ac_mid=0
18591   while :; do
18592     cat >conftest.$ac_ext <<_ACEOF
18593 /* confdefs.h.  */
18594 _ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h.  */
18598 $ac_includes_default
18599 int
18600 main ()
18601 {
18602 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18603 test_array [0] = 0
18604
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611   (eval $ac_compile) 2>conftest.er1
18612   ac_status=$?
18613   grep -v '^ *+' conftest.er1 >conftest.err
18614   rm -f conftest.er1
18615   cat conftest.err >&5
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } &&
18618          { ac_try='test -z "$ac_cxx_werror_flag"
18619                          || test ! -s conftest.err'
18620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621   (eval $ac_try) 2>&5
18622   ac_status=$?
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); }; } &&
18625          { ac_try='test -s conftest.$ac_objext'
18626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627   (eval $ac_try) 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; }; then
18631   ac_hi=$ac_mid; break
18632 else
18633   echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636 ac_lo=`expr $ac_mid + 1`
18637                     if test $ac_lo -le $ac_mid; then
18638                       ac_lo= ac_hi=
18639                       break
18640                     fi
18641                     ac_mid=`expr 2 '*' $ac_mid + 1`
18642 fi
18643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18644   done
18645 else
18646   echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18648
18649 cat >conftest.$ac_ext <<_ACEOF
18650 /* confdefs.h.  */
18651 _ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h.  */
18655 $ac_includes_default
18656 int
18657 main ()
18658 {
18659 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18660 test_array [0] = 0
18661
18662   ;
18663   return 0;
18664 }
18665 _ACEOF
18666 rm -f conftest.$ac_objext
18667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18668   (eval $ac_compile) 2>conftest.er1
18669   ac_status=$?
18670   grep -v '^ *+' conftest.er1 >conftest.err
18671   rm -f conftest.er1
18672   cat conftest.err >&5
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); } &&
18675          { ac_try='test -z "$ac_cxx_werror_flag"
18676                          || test ! -s conftest.err'
18677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678   (eval $ac_try) 2>&5
18679   ac_status=$?
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); }; } &&
18682          { ac_try='test -s conftest.$ac_objext'
18683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684   (eval $ac_try) 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); }; }; then
18688   ac_hi=-1 ac_mid=-1
18689   while :; do
18690     cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h.  */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h.  */
18696 $ac_includes_default
18697 int
18698 main ()
18699 {
18700 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18701 test_array [0] = 0
18702
18703   ;
18704   return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext
18708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18709   (eval $ac_compile) 2>conftest.er1
18710   ac_status=$?
18711   grep -v '^ *+' conftest.er1 >conftest.err
18712   rm -f conftest.er1
18713   cat conftest.err >&5
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); } &&
18716          { ac_try='test -z "$ac_cxx_werror_flag"
18717                          || test ! -s conftest.err'
18718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719   (eval $ac_try) 2>&5
18720   ac_status=$?
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); }; } &&
18723          { ac_try='test -s conftest.$ac_objext'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; }; then
18729   ac_lo=$ac_mid; break
18730 else
18731   echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734 ac_hi=`expr '(' $ac_mid ')' - 1`
18735                        if test $ac_mid -le $ac_hi; then
18736                          ac_lo= ac_hi=
18737                          break
18738                        fi
18739                        ac_mid=`expr 2 '*' $ac_mid`
18740 fi
18741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18742   done
18743 else
18744   echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18746
18747 ac_lo= ac_hi=
18748 fi
18749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18750 fi
18751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18752 # Binary search between lo and hi bounds.
18753 while test "x$ac_lo" != "x$ac_hi"; do
18754   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18755   cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h.  */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h.  */
18761 $ac_includes_default
18762 int
18763 main ()
18764 {
18765 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18766 test_array [0] = 0
18767
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18774   (eval $ac_compile) 2>conftest.er1
18775   ac_status=$?
18776   grep -v '^ *+' conftest.er1 >conftest.err
18777   rm -f conftest.er1
18778   cat conftest.err >&5
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } &&
18781          { ac_try='test -z "$ac_cxx_werror_flag"
18782                          || test ! -s conftest.err'
18783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784   (eval $ac_try) 2>&5
18785   ac_status=$?
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); }; } &&
18788          { ac_try='test -s conftest.$ac_objext'
18789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790   (eval $ac_try) 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; }; then
18794   ac_hi=$ac_mid
18795 else
18796   echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_lo=`expr '(' $ac_mid ')' + 1`
18800 fi
18801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18802 done
18803 case $ac_lo in
18804 ?*) ac_cv_sizeof_short=$ac_lo;;
18805 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18806 See \`config.log' for more details." >&5
18807 echo "$as_me: error: cannot compute sizeof (short), 77
18808 See \`config.log' for more details." >&2;}
18809    { (exit 1); exit 1; }; } ;;
18810 esac
18811 else
18812   if test "$cross_compiling" = yes; then
18813   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18814 See \`config.log' for more details." >&5
18815 echo "$as_me: error: cannot run test program while cross compiling
18816 See \`config.log' for more details." >&2;}
18817    { (exit 1); exit 1; }; }
18818 else
18819   cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h.  */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h.  */
18825 $ac_includes_default
18826 long longval () { return (long) (sizeof (short)); }
18827 unsigned long ulongval () { return (long) (sizeof (short)); }
18828 #include <stdio.h>
18829 #include <stdlib.h>
18830 int
18831 main ()
18832 {
18833
18834   FILE *f = fopen ("conftest.val", "w");
18835   if (! f)
18836     exit (1);
18837   if (((long) (sizeof (short))) < 0)
18838     {
18839       long i = longval ();
18840       if (i != ((long) (sizeof (short))))
18841         exit (1);
18842       fprintf (f, "%ld\n", i);
18843     }
18844   else
18845     {
18846       unsigned long i = ulongval ();
18847       if (i != ((long) (sizeof (short))))
18848         exit (1);
18849       fprintf (f, "%lu\n", i);
18850     }
18851   exit (ferror (f) || fclose (f) != 0);
18852
18853   ;
18854   return 0;
18855 }
18856 _ACEOF
18857 rm -f conftest$ac_exeext
18858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859   (eval $ac_link) 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864   (eval $ac_try) 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; }; then
18868   ac_cv_sizeof_short=`cat conftest.val`
18869 else
18870   echo "$as_me: program exited with status $ac_status" >&5
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18873
18874 ( exit $ac_status )
18875 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18876 See \`config.log' for more details." >&5
18877 echo "$as_me: error: cannot compute sizeof (short), 77
18878 See \`config.log' for more details." >&2;}
18879    { (exit 1); exit 1; }; }
18880 fi
18881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18882 fi
18883 fi
18884 rm -f conftest.val
18885 else
18886   ac_cv_sizeof_short=0
18887 fi
18888 fi
18889 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18890 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18891 cat >>confdefs.h <<_ACEOF
18892 #define SIZEOF_SHORT $ac_cv_sizeof_short
18893 _ACEOF
18894
18895
18896 echo "$as_me:$LINENO: checking for void *" >&5
18897 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18898 if test "${ac_cv_type_void_p+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h.  */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h.  */
18907 $ac_includes_default
18908 int
18909 main ()
18910 {
18911 if ((void * *) 0)
18912   return 0;
18913 if (sizeof (void *))
18914   return 0;
18915   ;
18916   return 0;
18917 }
18918 _ACEOF
18919 rm -f conftest.$ac_objext
18920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18921   (eval $ac_compile) 2>conftest.er1
18922   ac_status=$?
18923   grep -v '^ *+' conftest.er1 >conftest.err
18924   rm -f conftest.er1
18925   cat conftest.err >&5
18926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927   (exit $ac_status); } &&
18928          { ac_try='test -z "$ac_cxx_werror_flag"
18929                          || test ! -s conftest.err'
18930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931   (eval $ac_try) 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; } &&
18935          { ac_try='test -s conftest.$ac_objext'
18936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937   (eval $ac_try) 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; }; then
18941   ac_cv_type_void_p=yes
18942 else
18943   echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_cv_type_void_p=no
18947 fi
18948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18949 fi
18950 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18951 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18952
18953 echo "$as_me:$LINENO: checking size of void *" >&5
18954 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18955 if test "${ac_cv_sizeof_void_p+set}" = set; then
18956   echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958   if test "$ac_cv_type_void_p" = yes; then
18959   # The cast to unsigned long works around a bug in the HP C Compiler
18960   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18961   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18962   # This bug is HP SR number 8606223364.
18963   if test "$cross_compiling" = yes; then
18964   # Depending upon the size, compute the lo and hi bounds.
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h.  */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h.  */
18971 $ac_includes_default
18972 int
18973 main ()
18974 {
18975 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18976 test_array [0] = 0
18977
18978   ;
18979   return 0;
18980 }
18981 _ACEOF
18982 rm -f conftest.$ac_objext
18983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18984   (eval $ac_compile) 2>conftest.er1
18985   ac_status=$?
18986   grep -v '^ *+' conftest.er1 >conftest.err
18987   rm -f conftest.er1
18988   cat conftest.err >&5
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); } &&
18991          { ac_try='test -z "$ac_cxx_werror_flag"
18992                          || test ! -s conftest.err'
18993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994   (eval $ac_try) 2>&5
18995   ac_status=$?
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); }; } &&
18998          { ac_try='test -s conftest.$ac_objext'
18999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000   (eval $ac_try) 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; }; then
19004   ac_lo=0 ac_mid=0
19005   while :; do
19006     cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012 $ac_includes_default
19013 int
19014 main ()
19015 {
19016 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19017 test_array [0] = 0
19018
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest.$ac_objext
19024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19025   (eval $ac_compile) 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } &&
19032          { ac_try='test -z "$ac_cxx_werror_flag"
19033                          || test ! -s conftest.err'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; } &&
19039          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19045   ac_hi=$ac_mid; break
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050 ac_lo=`expr $ac_mid + 1`
19051                     if test $ac_lo -le $ac_mid; then
19052                       ac_lo= ac_hi=
19053                       break
19054                     fi
19055                     ac_mid=`expr 2 '*' $ac_mid + 1`
19056 fi
19057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19058   done
19059 else
19060   echo "$as_me: failed program was:" >&5
19061 sed 's/^/| /' conftest.$ac_ext >&5
19062
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h.  */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h.  */
19069 $ac_includes_default
19070 int
19071 main ()
19072 {
19073 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19074 test_array [0] = 0
19075
19076   ;
19077   return 0;
19078 }
19079 _ACEOF
19080 rm -f conftest.$ac_objext
19081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19082   (eval $ac_compile) 2>conftest.er1
19083   ac_status=$?
19084   grep -v '^ *+' conftest.er1 >conftest.err
19085   rm -f conftest.er1
19086   cat conftest.err >&5
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } &&
19089          { ac_try='test -z "$ac_cxx_werror_flag"
19090                          || test ! -s conftest.err'
19091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092   (eval $ac_try) 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); }; } &&
19096          { ac_try='test -s conftest.$ac_objext'
19097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098   (eval $ac_try) 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); }; }; then
19102   ac_hi=-1 ac_mid=-1
19103   while :; do
19104     cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h.  */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h.  */
19110 $ac_includes_default
19111 int
19112 main ()
19113 {
19114 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19115 test_array [0] = 0
19116
19117   ;
19118   return 0;
19119 }
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123   (eval $ac_compile) 2>conftest.er1
19124   ac_status=$?
19125   grep -v '^ *+' conftest.er1 >conftest.err
19126   rm -f conftest.er1
19127   cat conftest.err >&5
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } &&
19130          { ac_try='test -z "$ac_cxx_werror_flag"
19131                          || test ! -s conftest.err'
19132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133   (eval $ac_try) 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; } &&
19137          { ac_try='test -s conftest.$ac_objext'
19138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139   (eval $ac_try) 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); }; }; then
19143   ac_lo=$ac_mid; break
19144 else
19145   echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148 ac_hi=`expr '(' $ac_mid ')' - 1`
19149                        if test $ac_mid -le $ac_hi; then
19150                          ac_lo= ac_hi=
19151                          break
19152                        fi
19153                        ac_mid=`expr 2 '*' $ac_mid`
19154 fi
19155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19156   done
19157 else
19158   echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19160
19161 ac_lo= ac_hi=
19162 fi
19163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19164 fi
19165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19166 # Binary search between lo and hi bounds.
19167 while test "x$ac_lo" != "x$ac_hi"; do
19168   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19169   cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h.  */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h.  */
19175 $ac_includes_default
19176 int
19177 main ()
19178 {
19179 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19180 test_array [0] = 0
19181
19182   ;
19183   return 0;
19184 }
19185 _ACEOF
19186 rm -f conftest.$ac_objext
19187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19188   (eval $ac_compile) 2>conftest.er1
19189   ac_status=$?
19190   grep -v '^ *+' conftest.er1 >conftest.err
19191   rm -f conftest.er1
19192   cat conftest.err >&5
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); } &&
19195          { ac_try='test -z "$ac_cxx_werror_flag"
19196                          || test ! -s conftest.err'
19197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198   (eval $ac_try) 2>&5
19199   ac_status=$?
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); }; } &&
19202          { ac_try='test -s conftest.$ac_objext'
19203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204   (eval $ac_try) 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; }; then
19208   ac_hi=$ac_mid
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 ac_lo=`expr '(' $ac_mid ')' + 1`
19214 fi
19215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19216 done
19217 case $ac_lo in
19218 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19219 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19220 See \`config.log' for more details." >&5
19221 echo "$as_me: error: cannot compute sizeof (void *), 77
19222 See \`config.log' for more details." >&2;}
19223    { (exit 1); exit 1; }; } ;;
19224 esac
19225 else
19226   if test "$cross_compiling" = yes; then
19227   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19228 See \`config.log' for more details." >&5
19229 echo "$as_me: error: cannot run test program while cross compiling
19230 See \`config.log' for more details." >&2;}
19231    { (exit 1); exit 1; }; }
19232 else
19233   cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h.  */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h.  */
19239 $ac_includes_default
19240 long longval () { return (long) (sizeof (void *)); }
19241 unsigned long ulongval () { return (long) (sizeof (void *)); }
19242 #include <stdio.h>
19243 #include <stdlib.h>
19244 int
19245 main ()
19246 {
19247
19248   FILE *f = fopen ("conftest.val", "w");
19249   if (! f)
19250     exit (1);
19251   if (((long) (sizeof (void *))) < 0)
19252     {
19253       long i = longval ();
19254       if (i != ((long) (sizeof (void *))))
19255         exit (1);
19256       fprintf (f, "%ld\n", i);
19257     }
19258   else
19259     {
19260       unsigned long i = ulongval ();
19261       if (i != ((long) (sizeof (void *))))
19262         exit (1);
19263       fprintf (f, "%lu\n", i);
19264     }
19265   exit (ferror (f) || fclose (f) != 0);
19266
19267   ;
19268   return 0;
19269 }
19270 _ACEOF
19271 rm -f conftest$ac_exeext
19272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19273   (eval $ac_link) 2>&5
19274   ac_status=$?
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278   (eval $ac_try) 2>&5
19279   ac_status=$?
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); }; }; then
19282   ac_cv_sizeof_void_p=`cat conftest.val`
19283 else
19284   echo "$as_me: program exited with status $ac_status" >&5
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19287
19288 ( exit $ac_status )
19289 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19290 See \`config.log' for more details." >&5
19291 echo "$as_me: error: cannot compute sizeof (void *), 77
19292 See \`config.log' for more details." >&2;}
19293    { (exit 1); exit 1; }; }
19294 fi
19295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19296 fi
19297 fi
19298 rm -f conftest.val
19299 else
19300   ac_cv_sizeof_void_p=0
19301 fi
19302 fi
19303 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19304 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19305 cat >>confdefs.h <<_ACEOF
19306 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19307 _ACEOF
19308
19309
19310 echo "$as_me:$LINENO: checking for int" >&5
19311 echo $ECHO_N "checking for int... $ECHO_C" >&6
19312 if test "${ac_cv_type_int+set}" = set; then
19313   echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315   cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h.  */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h.  */
19321 $ac_includes_default
19322 int
19323 main ()
19324 {
19325 if ((int *) 0)
19326   return 0;
19327 if (sizeof (int))
19328   return 0;
19329   ;
19330   return 0;
19331 }
19332 _ACEOF
19333 rm -f conftest.$ac_objext
19334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19335   (eval $ac_compile) 2>conftest.er1
19336   ac_status=$?
19337   grep -v '^ *+' conftest.er1 >conftest.err
19338   rm -f conftest.er1
19339   cat conftest.err >&5
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); } &&
19342          { ac_try='test -z "$ac_cxx_werror_flag"
19343                          || test ! -s conftest.err'
19344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345   (eval $ac_try) 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); }; } &&
19349          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19355   ac_cv_type_int=yes
19356 else
19357   echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ac_cv_type_int=no
19361 fi
19362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19363 fi
19364 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19365 echo "${ECHO_T}$ac_cv_type_int" >&6
19366
19367 echo "$as_me:$LINENO: checking size of int" >&5
19368 echo $ECHO_N "checking size of int... $ECHO_C" >&6
19369 if test "${ac_cv_sizeof_int+set}" = set; then
19370   echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372   if test "$ac_cv_type_int" = yes; then
19373   # The cast to unsigned long works around a bug in the HP C Compiler
19374   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19375   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19376   # This bug is HP SR number 8606223364.
19377   if test "$cross_compiling" = yes; then
19378   # Depending upon the size, compute the lo and hi bounds.
19379 cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385 $ac_includes_default
19386 int
19387 main ()
19388 {
19389 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19390 test_array [0] = 0
19391
19392   ;
19393   return 0;
19394 }
19395 _ACEOF
19396 rm -f conftest.$ac_objext
19397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19398   (eval $ac_compile) 2>conftest.er1
19399   ac_status=$?
19400   grep -v '^ *+' conftest.er1 >conftest.err
19401   rm -f conftest.er1
19402   cat conftest.err >&5
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); } &&
19405          { ac_try='test -z "$ac_cxx_werror_flag"
19406                          || test ! -s conftest.err'
19407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408   (eval $ac_try) 2>&5
19409   ac_status=$?
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); }; } &&
19412          { ac_try='test -s conftest.$ac_objext'
19413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414   (eval $ac_try) 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; }; then
19418   ac_lo=0 ac_mid=0
19419   while :; do
19420     cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h.  */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h.  */
19426 $ac_includes_default
19427 int
19428 main ()
19429 {
19430 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19431 test_array [0] = 0
19432
19433   ;
19434   return 0;
19435 }
19436 _ACEOF
19437 rm -f conftest.$ac_objext
19438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19439   (eval $ac_compile) 2>conftest.er1
19440   ac_status=$?
19441   grep -v '^ *+' conftest.er1 >conftest.err
19442   rm -f conftest.er1
19443   cat conftest.err >&5
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); } &&
19446          { ac_try='test -z "$ac_cxx_werror_flag"
19447                          || test ! -s conftest.err'
19448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449   (eval $ac_try) 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }; } &&
19453          { ac_try='test -s conftest.$ac_objext'
19454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455   (eval $ac_try) 2>&5
19456   ac_status=$?
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); }; }; then
19459   ac_hi=$ac_mid; break
19460 else
19461   echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464 ac_lo=`expr $ac_mid + 1`
19465                     if test $ac_lo -le $ac_mid; then
19466                       ac_lo= ac_hi=
19467                       break
19468                     fi
19469                     ac_mid=`expr 2 '*' $ac_mid + 1`
19470 fi
19471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19472   done
19473 else
19474   echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483 $ac_includes_default
19484 int
19485 main ()
19486 {
19487 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19488 test_array [0] = 0
19489
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 rm -f conftest.$ac_objext
19495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19496   (eval $ac_compile) 2>conftest.er1
19497   ac_status=$?
19498   grep -v '^ *+' conftest.er1 >conftest.err
19499   rm -f conftest.er1
19500   cat conftest.err >&5
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } &&
19503          { ac_try='test -z "$ac_cxx_werror_flag"
19504                          || test ! -s conftest.err'
19505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506   (eval $ac_try) 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; } &&
19510          { ac_try='test -s conftest.$ac_objext'
19511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512   (eval $ac_try) 2>&5
19513   ac_status=$?
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); }; }; then
19516   ac_hi=-1 ac_mid=-1
19517   while :; do
19518     cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 $ac_includes_default
19525 int
19526 main ()
19527 {
19528 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19529 test_array [0] = 0
19530
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537   (eval $ac_compile) 2>conftest.er1
19538   ac_status=$?
19539   grep -v '^ *+' conftest.er1 >conftest.err
19540   rm -f conftest.er1
19541   cat conftest.err >&5
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } &&
19544          { ac_try='test -z "$ac_cxx_werror_flag"
19545                          || test ! -s conftest.err'
19546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547   (eval $ac_try) 2>&5
19548   ac_status=$?
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); }; } &&
19551          { ac_try='test -s conftest.$ac_objext'
19552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553   (eval $ac_try) 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; }; then
19557   ac_lo=$ac_mid; break
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 ac_hi=`expr '(' $ac_mid ')' - 1`
19563                        if test $ac_mid -le $ac_hi; then
19564                          ac_lo= ac_hi=
19565                          break
19566                        fi
19567                        ac_mid=`expr 2 '*' $ac_mid`
19568 fi
19569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19570   done
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 ac_lo= ac_hi=
19576 fi
19577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19578 fi
19579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19580 # Binary search between lo and hi bounds.
19581 while test "x$ac_lo" != "x$ac_hi"; do
19582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19583   cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589 $ac_includes_default
19590 int
19591 main ()
19592 {
19593 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19594 test_array [0] = 0
19595
19596   ;
19597   return 0;
19598 }
19599 _ACEOF
19600 rm -f conftest.$ac_objext
19601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19602   (eval $ac_compile) 2>conftest.er1
19603   ac_status=$?
19604   grep -v '^ *+' conftest.er1 >conftest.err
19605   rm -f conftest.er1
19606   cat conftest.err >&5
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); } &&
19609          { ac_try='test -z "$ac_cxx_werror_flag"
19610                          || test ! -s conftest.err'
19611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612   (eval $ac_try) 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; } &&
19616          { ac_try='test -s conftest.$ac_objext'
19617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618   (eval $ac_try) 2>&5
19619   ac_status=$?
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); }; }; then
19622   ac_hi=$ac_mid
19623 else
19624   echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627 ac_lo=`expr '(' $ac_mid ')' + 1`
19628 fi
19629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19630 done
19631 case $ac_lo in
19632 ?*) ac_cv_sizeof_int=$ac_lo;;
19633 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19634 See \`config.log' for more details." >&5
19635 echo "$as_me: error: cannot compute sizeof (int), 77
19636 See \`config.log' for more details." >&2;}
19637    { (exit 1); exit 1; }; } ;;
19638 esac
19639 else
19640   if test "$cross_compiling" = yes; then
19641   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19642 See \`config.log' for more details." >&5
19643 echo "$as_me: error: cannot run test program while cross compiling
19644 See \`config.log' for more details." >&2;}
19645    { (exit 1); exit 1; }; }
19646 else
19647   cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h.  */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h.  */
19653 $ac_includes_default
19654 long longval () { return (long) (sizeof (int)); }
19655 unsigned long ulongval () { return (long) (sizeof (int)); }
19656 #include <stdio.h>
19657 #include <stdlib.h>
19658 int
19659 main ()
19660 {
19661
19662   FILE *f = fopen ("conftest.val", "w");
19663   if (! f)
19664     exit (1);
19665   if (((long) (sizeof (int))) < 0)
19666     {
19667       long i = longval ();
19668       if (i != ((long) (sizeof (int))))
19669         exit (1);
19670       fprintf (f, "%ld\n", i);
19671     }
19672   else
19673     {
19674       unsigned long i = ulongval ();
19675       if (i != ((long) (sizeof (int))))
19676         exit (1);
19677       fprintf (f, "%lu\n", i);
19678     }
19679   exit (ferror (f) || fclose (f) != 0);
19680
19681   ;
19682   return 0;
19683 }
19684 _ACEOF
19685 rm -f conftest$ac_exeext
19686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19687   (eval $ac_link) 2>&5
19688   ac_status=$?
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692   (eval $ac_try) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); }; }; then
19696   ac_cv_sizeof_int=`cat conftest.val`
19697 else
19698   echo "$as_me: program exited with status $ac_status" >&5
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19701
19702 ( exit $ac_status )
19703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19704 See \`config.log' for more details." >&5
19705 echo "$as_me: error: cannot compute sizeof (int), 77
19706 See \`config.log' for more details." >&2;}
19707    { (exit 1); exit 1; }; }
19708 fi
19709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19710 fi
19711 fi
19712 rm -f conftest.val
19713 else
19714   ac_cv_sizeof_int=0
19715 fi
19716 fi
19717 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19718 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19719 cat >>confdefs.h <<_ACEOF
19720 #define SIZEOF_INT $ac_cv_sizeof_int
19721 _ACEOF
19722
19723
19724 echo "$as_me:$LINENO: checking for long" >&5
19725 echo $ECHO_N "checking for long... $ECHO_C" >&6
19726 if test "${ac_cv_type_long+set}" = set; then
19727   echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19729   cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735 $ac_includes_default
19736 int
19737 main ()
19738 {
19739 if ((long *) 0)
19740   return 0;
19741 if (sizeof (long))
19742   return 0;
19743   ;
19744   return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext
19748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19749   (eval $ac_compile) 2>conftest.er1
19750   ac_status=$?
19751   grep -v '^ *+' conftest.er1 >conftest.err
19752   rm -f conftest.er1
19753   cat conftest.err >&5
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); } &&
19756          { ac_try='test -z "$ac_cxx_werror_flag"
19757                          || test ! -s conftest.err'
19758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759   (eval $ac_try) 2>&5
19760   ac_status=$?
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); }; } &&
19763          { ac_try='test -s conftest.$ac_objext'
19764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765   (eval $ac_try) 2>&5
19766   ac_status=$?
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); }; }; then
19769   ac_cv_type_long=yes
19770 else
19771   echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19773
19774 ac_cv_type_long=no
19775 fi
19776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19777 fi
19778 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19779 echo "${ECHO_T}$ac_cv_type_long" >&6
19780
19781 echo "$as_me:$LINENO: checking size of long" >&5
19782 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19783 if test "${ac_cv_sizeof_long+set}" = set; then
19784   echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786   if test "$ac_cv_type_long" = yes; then
19787   # The cast to unsigned long works around a bug in the HP C Compiler
19788   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19789   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19790   # This bug is HP SR number 8606223364.
19791   if test "$cross_compiling" = yes; then
19792   # Depending upon the size, compute the lo and hi bounds.
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799 $ac_includes_default
19800 int
19801 main ()
19802 {
19803 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19804 test_array [0] = 0
19805
19806   ;
19807   return 0;
19808 }
19809 _ACEOF
19810 rm -f conftest.$ac_objext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19812   (eval $ac_compile) 2>conftest.er1
19813   ac_status=$?
19814   grep -v '^ *+' conftest.er1 >conftest.err
19815   rm -f conftest.er1
19816   cat conftest.err >&5
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); } &&
19819          { ac_try='test -z "$ac_cxx_werror_flag"
19820                          || test ! -s conftest.err'
19821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822   (eval $ac_try) 2>&5
19823   ac_status=$?
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); }; } &&
19826          { ac_try='test -s conftest.$ac_objext'
19827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828   (eval $ac_try) 2>&5
19829   ac_status=$?
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); }; }; then
19832   ac_lo=0 ac_mid=0
19833   while :; do
19834     cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840 $ac_includes_default
19841 int
19842 main ()
19843 {
19844 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19845 test_array [0] = 0
19846
19847   ;
19848   return 0;
19849 }
19850 _ACEOF
19851 rm -f conftest.$ac_objext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19853   (eval $ac_compile) 2>conftest.er1
19854   ac_status=$?
19855   grep -v '^ *+' conftest.er1 >conftest.err
19856   rm -f conftest.er1
19857   cat conftest.err >&5
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); } &&
19860          { ac_try='test -z "$ac_cxx_werror_flag"
19861                          || test ! -s conftest.err'
19862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863   (eval $ac_try) 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); }; } &&
19867          { ac_try='test -s conftest.$ac_objext'
19868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869   (eval $ac_try) 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; }; then
19873   ac_hi=$ac_mid; break
19874 else
19875   echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878 ac_lo=`expr $ac_mid + 1`
19879                     if test $ac_lo -le $ac_mid; then
19880                       ac_lo= ac_hi=
19881                       break
19882                     fi
19883                     ac_mid=`expr 2 '*' $ac_mid + 1`
19884 fi
19885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19886   done
19887 else
19888   echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h.  */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h.  */
19897 $ac_includes_default
19898 int
19899 main ()
19900 {
19901 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19902 test_array [0] = 0
19903
19904   ;
19905   return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest.$ac_objext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910   (eval $ac_compile) 2>conftest.er1
19911   ac_status=$?
19912   grep -v '^ *+' conftest.er1 >conftest.err
19913   rm -f conftest.er1
19914   cat conftest.err >&5
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -z "$ac_cxx_werror_flag"
19918                          || test ! -s conftest.err'
19919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920   (eval $ac_try) 2>&5
19921   ac_status=$?
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); }; } &&
19924          { ac_try='test -s conftest.$ac_objext'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   ac_hi=-1 ac_mid=-1
19931   while :; do
19932     cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938 $ac_includes_default
19939 int
19940 main ()
19941 {
19942 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19943 test_array [0] = 0
19944
19945   ;
19946   return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext
19950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19951   (eval $ac_compile) 2>conftest.er1
19952   ac_status=$?
19953   grep -v '^ *+' conftest.er1 >conftest.err
19954   rm -f conftest.er1
19955   cat conftest.err >&5
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } &&
19958          { ac_try='test -z "$ac_cxx_werror_flag"
19959                          || test ! -s conftest.err'
19960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961   (eval $ac_try) 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; } &&
19965          { ac_try='test -s conftest.$ac_objext'
19966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967   (eval $ac_try) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; }; then
19971   ac_lo=$ac_mid; break
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 ac_hi=`expr '(' $ac_mid ')' - 1`
19977                        if test $ac_mid -le $ac_hi; then
19978                          ac_lo= ac_hi=
19979                          break
19980                        fi
19981                        ac_mid=`expr 2 '*' $ac_mid`
19982 fi
19983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19984   done
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 ac_lo= ac_hi=
19990 fi
19991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19992 fi
19993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19994 # Binary search between lo and hi bounds.
19995 while test "x$ac_lo" != "x$ac_hi"; do
19996   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19997   cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h.  */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h.  */
20003 $ac_includes_default
20004 int
20005 main ()
20006 {
20007 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20008 test_array [0] = 0
20009
20010   ;
20011   return 0;
20012 }
20013 _ACEOF
20014 rm -f conftest.$ac_objext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20016   (eval $ac_compile) 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } &&
20023          { ac_try='test -z "$ac_cxx_werror_flag"
20024                          || test ! -s conftest.err'
20025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026   (eval $ac_try) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); }; } &&
20030          { ac_try='test -s conftest.$ac_objext'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; }; then
20036   ac_hi=$ac_mid
20037 else
20038   echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041 ac_lo=`expr '(' $ac_mid ')' + 1`
20042 fi
20043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20044 done
20045 case $ac_lo in
20046 ?*) ac_cv_sizeof_long=$ac_lo;;
20047 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20048 See \`config.log' for more details." >&5
20049 echo "$as_me: error: cannot compute sizeof (long), 77
20050 See \`config.log' for more details." >&2;}
20051    { (exit 1); exit 1; }; } ;;
20052 esac
20053 else
20054   if test "$cross_compiling" = yes; then
20055   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20056 See \`config.log' for more details." >&5
20057 echo "$as_me: error: cannot run test program while cross compiling
20058 See \`config.log' for more details." >&2;}
20059    { (exit 1); exit 1; }; }
20060 else
20061   cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h.  */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h.  */
20067 $ac_includes_default
20068 long longval () { return (long) (sizeof (long)); }
20069 unsigned long ulongval () { return (long) (sizeof (long)); }
20070 #include <stdio.h>
20071 #include <stdlib.h>
20072 int
20073 main ()
20074 {
20075
20076   FILE *f = fopen ("conftest.val", "w");
20077   if (! f)
20078     exit (1);
20079   if (((long) (sizeof (long))) < 0)
20080     {
20081       long i = longval ();
20082       if (i != ((long) (sizeof (long))))
20083         exit (1);
20084       fprintf (f, "%ld\n", i);
20085     }
20086   else
20087     {
20088       unsigned long i = ulongval ();
20089       if (i != ((long) (sizeof (long))))
20090         exit (1);
20091       fprintf (f, "%lu\n", i);
20092     }
20093   exit (ferror (f) || fclose (f) != 0);
20094
20095   ;
20096   return 0;
20097 }
20098 _ACEOF
20099 rm -f conftest$ac_exeext
20100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20101   (eval $ac_link) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106   (eval $ac_try) 2>&5
20107   ac_status=$?
20108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); }; }; then
20110   ac_cv_sizeof_long=`cat conftest.val`
20111 else
20112   echo "$as_me: program exited with status $ac_status" >&5
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ( exit $ac_status )
20117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20118 See \`config.log' for more details." >&5
20119 echo "$as_me: error: cannot compute sizeof (long), 77
20120 See \`config.log' for more details." >&2;}
20121    { (exit 1); exit 1; }; }
20122 fi
20123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20124 fi
20125 fi
20126 rm -f conftest.val
20127 else
20128   ac_cv_sizeof_long=0
20129 fi
20130 fi
20131 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20132 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20133 cat >>confdefs.h <<_ACEOF
20134 #define SIZEOF_LONG $ac_cv_sizeof_long
20135 _ACEOF
20136
20137
20138 echo "$as_me:$LINENO: checking for size_t" >&5
20139 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20140 if test "${ac_cv_type_size_t+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   cat >conftest.$ac_ext <<_ACEOF
20144 /* confdefs.h.  */
20145 _ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h.  */
20149 $ac_includes_default
20150 int
20151 main ()
20152 {
20153 if ((size_t *) 0)
20154   return 0;
20155 if (sizeof (size_t))
20156   return 0;
20157   ;
20158   return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163   (eval $ac_compile) 2>conftest.er1
20164   ac_status=$?
20165   grep -v '^ *+' conftest.er1 >conftest.err
20166   rm -f conftest.er1
20167   cat conftest.err >&5
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); } &&
20170          { ac_try='test -z "$ac_cxx_werror_flag"
20171                          || test ! -s conftest.err'
20172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173   (eval $ac_try) 2>&5
20174   ac_status=$?
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); }; } &&
20177          { ac_try='test -s conftest.$ac_objext'
20178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179   (eval $ac_try) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; }; then
20183   ac_cv_type_size_t=yes
20184 else
20185   echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188 ac_cv_type_size_t=no
20189 fi
20190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20191 fi
20192 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20193 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20194
20195 echo "$as_me:$LINENO: checking size of size_t" >&5
20196 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20197 if test "${ac_cv_sizeof_size_t+set}" = set; then
20198   echo $ECHO_N "(cached) $ECHO_C" >&6
20199 else
20200   if test "$ac_cv_type_size_t" = yes; then
20201   # The cast to unsigned long works around a bug in the HP C Compiler
20202   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20203   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20204   # This bug is HP SR number 8606223364.
20205   if test "$cross_compiling" = yes; then
20206   # Depending upon the size, compute the lo and hi bounds.
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213 $ac_includes_default
20214 int
20215 main ()
20216 {
20217 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20218 test_array [0] = 0
20219
20220   ;
20221   return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226   (eval $ac_compile) 2>conftest.er1
20227   ac_status=$?
20228   grep -v '^ *+' conftest.er1 >conftest.err
20229   rm -f conftest.er1
20230   cat conftest.err >&5
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); } &&
20233          { ac_try='test -z "$ac_cxx_werror_flag"
20234                          || test ! -s conftest.err'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; } &&
20240          { ac_try='test -s conftest.$ac_objext'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_lo=0 ac_mid=0
20247   while :; do
20248     cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h.  */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h.  */
20254 $ac_includes_default
20255 int
20256 main ()
20257 {
20258 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20259 test_array [0] = 0
20260
20261   ;
20262   return 0;
20263 }
20264 _ACEOF
20265 rm -f conftest.$ac_objext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267   (eval $ac_compile) 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } &&
20274          { ac_try='test -z "$ac_cxx_werror_flag"
20275                          || test ! -s conftest.err'
20276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277   (eval $ac_try) 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; } &&
20281          { ac_try='test -s conftest.$ac_objext'
20282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283   (eval $ac_try) 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; }; then
20287   ac_hi=$ac_mid; break
20288 else
20289   echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 ac_lo=`expr $ac_mid + 1`
20293                     if test $ac_lo -le $ac_mid; then
20294                       ac_lo= ac_hi=
20295                       break
20296                     fi
20297                     ac_mid=`expr 2 '*' $ac_mid + 1`
20298 fi
20299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20300   done
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311 $ac_includes_default
20312 int
20313 main ()
20314 {
20315 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20316 test_array [0] = 0
20317
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324   (eval $ac_compile) 2>conftest.er1
20325   ac_status=$?
20326   grep -v '^ *+' conftest.er1 >conftest.err
20327   rm -f conftest.er1
20328   cat conftest.err >&5
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); } &&
20331          { ac_try='test -z "$ac_cxx_werror_flag"
20332                          || test ! -s conftest.err'
20333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334   (eval $ac_try) 2>&5
20335   ac_status=$?
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); }; } &&
20338          { ac_try='test -s conftest.$ac_objext'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; }; then
20344   ac_hi=-1 ac_mid=-1
20345   while :; do
20346     cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h.  */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h.  */
20352 $ac_includes_default
20353 int
20354 main ()
20355 {
20356 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20357 test_array [0] = 0
20358
20359   ;
20360   return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365   (eval $ac_compile) 2>conftest.er1
20366   ac_status=$?
20367   grep -v '^ *+' conftest.er1 >conftest.err
20368   rm -f conftest.er1
20369   cat conftest.err >&5
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } &&
20372          { ac_try='test -z "$ac_cxx_werror_flag"
20373                          || test ! -s conftest.err'
20374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375   (eval $ac_try) 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; } &&
20379          { ac_try='test -s conftest.$ac_objext'
20380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381   (eval $ac_try) 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; }; then
20385   ac_lo=$ac_mid; break
20386 else
20387   echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390 ac_hi=`expr '(' $ac_mid ')' - 1`
20391                        if test $ac_mid -le $ac_hi; then
20392                          ac_lo= ac_hi=
20393                          break
20394                        fi
20395                        ac_mid=`expr 2 '*' $ac_mid`
20396 fi
20397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20398   done
20399 else
20400   echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 ac_lo= ac_hi=
20404 fi
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406 fi
20407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20408 # Binary search between lo and hi bounds.
20409 while test "x$ac_lo" != "x$ac_hi"; do
20410   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20411   cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 $ac_includes_default
20418 int
20419 main ()
20420 {
20421 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20422 test_array [0] = 0
20423
20424   ;
20425   return 0;
20426 }
20427 _ACEOF
20428 rm -f conftest.$ac_objext
20429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20430   (eval $ac_compile) 2>conftest.er1
20431   ac_status=$?
20432   grep -v '^ *+' conftest.er1 >conftest.err
20433   rm -f conftest.er1
20434   cat conftest.err >&5
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } &&
20437          { ac_try='test -z "$ac_cxx_werror_flag"
20438                          || test ! -s conftest.err'
20439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440   (eval $ac_try) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; } &&
20444          { ac_try='test -s conftest.$ac_objext'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   ac_hi=$ac_mid
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 ac_lo=`expr '(' $ac_mid ')' + 1`
20456 fi
20457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20458 done
20459 case $ac_lo in
20460 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20461 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20462 See \`config.log' for more details." >&5
20463 echo "$as_me: error: cannot compute sizeof (size_t), 77
20464 See \`config.log' for more details." >&2;}
20465    { (exit 1); exit 1; }; } ;;
20466 esac
20467 else
20468   if test "$cross_compiling" = yes; then
20469   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20470 See \`config.log' for more details." >&5
20471 echo "$as_me: error: cannot run test program while cross compiling
20472 See \`config.log' for more details." >&2;}
20473    { (exit 1); exit 1; }; }
20474 else
20475   cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481 $ac_includes_default
20482 long longval () { return (long) (sizeof (size_t)); }
20483 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20484 #include <stdio.h>
20485 #include <stdlib.h>
20486 int
20487 main ()
20488 {
20489
20490   FILE *f = fopen ("conftest.val", "w");
20491   if (! f)
20492     exit (1);
20493   if (((long) (sizeof (size_t))) < 0)
20494     {
20495       long i = longval ();
20496       if (i != ((long) (sizeof (size_t))))
20497         exit (1);
20498       fprintf (f, "%ld\n", i);
20499     }
20500   else
20501     {
20502       unsigned long i = ulongval ();
20503       if (i != ((long) (sizeof (size_t))))
20504         exit (1);
20505       fprintf (f, "%lu\n", i);
20506     }
20507   exit (ferror (f) || fclose (f) != 0);
20508
20509   ;
20510   return 0;
20511 }
20512 _ACEOF
20513 rm -f conftest$ac_exeext
20514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20515   (eval $ac_link) 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520   (eval $ac_try) 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); }; }; then
20524   ac_cv_sizeof_size_t=`cat conftest.val`
20525 else
20526   echo "$as_me: program exited with status $ac_status" >&5
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 ( exit $ac_status )
20531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20532 See \`config.log' for more details." >&5
20533 echo "$as_me: error: cannot compute sizeof (size_t), 77
20534 See \`config.log' for more details." >&2;}
20535    { (exit 1); exit 1; }; }
20536 fi
20537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20538 fi
20539 fi
20540 rm -f conftest.val
20541 else
20542   ac_cv_sizeof_size_t=0
20543 fi
20544 fi
20545 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20546 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20547 cat >>confdefs.h <<_ACEOF
20548 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20549 _ACEOF
20550
20551
20552
20553 case "${host}" in
20554     arm-*-linux* )
20555         echo "$as_me:$LINENO: checking for long long" >&5
20556 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20557 if test "${ac_cv_type_long_long+set}" = set; then
20558   echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560   cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h.  */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h.  */
20566 $ac_includes_default
20567 int
20568 main ()
20569 {
20570 if ((long long *) 0)
20571   return 0;
20572 if (sizeof (long long))
20573   return 0;
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext
20579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20580   (eval $ac_compile) 2>conftest.er1
20581   ac_status=$?
20582   grep -v '^ *+' conftest.er1 >conftest.err
20583   rm -f conftest.er1
20584   cat conftest.err >&5
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); } &&
20587          { ac_try='test -z "$ac_cxx_werror_flag"
20588                          || test ! -s conftest.err'
20589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590   (eval $ac_try) 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; } &&
20594          { ac_try='test -s conftest.$ac_objext'
20595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596   (eval $ac_try) 2>&5
20597   ac_status=$?
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); }; }; then
20600   ac_cv_type_long_long=yes
20601 else
20602   echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605 ac_cv_type_long_long=no
20606 fi
20607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20608 fi
20609 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20610 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20611
20612 echo "$as_me:$LINENO: checking size of long long" >&5
20613 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20614 if test "${ac_cv_sizeof_long_long+set}" = set; then
20615   echo $ECHO_N "(cached) $ECHO_C" >&6
20616 else
20617   if test "$ac_cv_type_long_long" = yes; then
20618   # The cast to unsigned long works around a bug in the HP C Compiler
20619   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20620   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20621   # This bug is HP SR number 8606223364.
20622   if test "$cross_compiling" = yes; then
20623   # Depending upon the size, compute the lo and hi bounds.
20624 cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h.  */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h.  */
20630 $ac_includes_default
20631 int
20632 main ()
20633 {
20634 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20635 test_array [0] = 0
20636
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20643   (eval $ac_compile) 2>conftest.er1
20644   ac_status=$?
20645   grep -v '^ *+' conftest.er1 >conftest.err
20646   rm -f conftest.er1
20647   cat conftest.err >&5
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); } &&
20650          { ac_try='test -z "$ac_cxx_werror_flag"
20651                          || test ! -s conftest.err'
20652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653   (eval $ac_try) 2>&5
20654   ac_status=$?
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); }; } &&
20657          { ac_try='test -s conftest.$ac_objext'
20658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659   (eval $ac_try) 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); }; }; then
20663   ac_lo=0 ac_mid=0
20664   while :; do
20665     cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h.  */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h.  */
20671 $ac_includes_default
20672 int
20673 main ()
20674 {
20675 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20676 test_array [0] = 0
20677
20678   ;
20679   return 0;
20680 }
20681 _ACEOF
20682 rm -f conftest.$ac_objext
20683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20684   (eval $ac_compile) 2>conftest.er1
20685   ac_status=$?
20686   grep -v '^ *+' conftest.er1 >conftest.err
20687   rm -f conftest.er1
20688   cat conftest.err >&5
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); } &&
20691          { ac_try='test -z "$ac_cxx_werror_flag"
20692                          || test ! -s conftest.err'
20693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694   (eval $ac_try) 2>&5
20695   ac_status=$?
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); }; } &&
20698          { ac_try='test -s conftest.$ac_objext'
20699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700   (eval $ac_try) 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); }; }; then
20704   ac_hi=$ac_mid; break
20705 else
20706   echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709 ac_lo=`expr $ac_mid + 1`
20710                     if test $ac_lo -le $ac_mid; then
20711                       ac_lo= ac_hi=
20712                       break
20713                     fi
20714                     ac_mid=`expr 2 '*' $ac_mid + 1`
20715 fi
20716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20717   done
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728 $ac_includes_default
20729 int
20730 main ()
20731 {
20732 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20733 test_array [0] = 0
20734
20735   ;
20736   return 0;
20737 }
20738 _ACEOF
20739 rm -f conftest.$ac_objext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20741   (eval $ac_compile) 2>conftest.er1
20742   ac_status=$?
20743   grep -v '^ *+' conftest.er1 >conftest.err
20744   rm -f conftest.er1
20745   cat conftest.err >&5
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } &&
20748          { ac_try='test -z "$ac_cxx_werror_flag"
20749                          || test ! -s conftest.err'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; } &&
20755          { ac_try='test -s conftest.$ac_objext'
20756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757   (eval $ac_try) 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   ac_hi=-1 ac_mid=-1
20762   while :; do
20763     cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 $ac_includes_default
20770 int
20771 main ()
20772 {
20773 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20774 test_array [0] = 0
20775
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20782   (eval $ac_compile) 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } &&
20789          { ac_try='test -z "$ac_cxx_werror_flag"
20790                          || test ! -s conftest.err'
20791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792   (eval $ac_try) 2>&5
20793   ac_status=$?
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); }; } &&
20796          { ac_try='test -s conftest.$ac_objext'
20797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798   (eval $ac_try) 2>&5
20799   ac_status=$?
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); }; }; then
20802   ac_lo=$ac_mid; break
20803 else
20804   echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807 ac_hi=`expr '(' $ac_mid ')' - 1`
20808                        if test $ac_mid -le $ac_hi; then
20809                          ac_lo= ac_hi=
20810                          break
20811                        fi
20812                        ac_mid=`expr 2 '*' $ac_mid`
20813 fi
20814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20815   done
20816 else
20817   echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20819
20820 ac_lo= ac_hi=
20821 fi
20822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20823 fi
20824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20825 # Binary search between lo and hi bounds.
20826 while test "x$ac_lo" != "x$ac_hi"; do
20827   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20828   cat >conftest.$ac_ext <<_ACEOF
20829 /* confdefs.h.  */
20830 _ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h.  */
20834 $ac_includes_default
20835 int
20836 main ()
20837 {
20838 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20839 test_array [0] = 0
20840
20841   ;
20842   return 0;
20843 }
20844 _ACEOF
20845 rm -f conftest.$ac_objext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20847   (eval $ac_compile) 2>conftest.er1
20848   ac_status=$?
20849   grep -v '^ *+' conftest.er1 >conftest.err
20850   rm -f conftest.er1
20851   cat conftest.err >&5
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); } &&
20854          { ac_try='test -z "$ac_cxx_werror_flag"
20855                          || test ! -s conftest.err'
20856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857   (eval $ac_try) 2>&5
20858   ac_status=$?
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); }; } &&
20861          { ac_try='test -s conftest.$ac_objext'
20862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863   (eval $ac_try) 2>&5
20864   ac_status=$?
20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); }; }; then
20867   ac_hi=$ac_mid
20868 else
20869   echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 ac_lo=`expr '(' $ac_mid ')' + 1`
20873 fi
20874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20875 done
20876 case $ac_lo in
20877 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20878 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20879 See \`config.log' for more details." >&5
20880 echo "$as_me: error: cannot compute sizeof (long long), 77
20881 See \`config.log' for more details." >&2;}
20882    { (exit 1); exit 1; }; } ;;
20883 esac
20884 else
20885   if test "$cross_compiling" = yes; then
20886   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20887 See \`config.log' for more details." >&5
20888 echo "$as_me: error: cannot run test program while cross compiling
20889 See \`config.log' for more details." >&2;}
20890    { (exit 1); exit 1; }; }
20891 else
20892   cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h.  */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h.  */
20898 $ac_includes_default
20899 long longval () { return (long) (sizeof (long long)); }
20900 unsigned long ulongval () { return (long) (sizeof (long long)); }
20901 #include <stdio.h>
20902 #include <stdlib.h>
20903 int
20904 main ()
20905 {
20906
20907   FILE *f = fopen ("conftest.val", "w");
20908   if (! f)
20909     exit (1);
20910   if (((long) (sizeof (long long))) < 0)
20911     {
20912       long i = longval ();
20913       if (i != ((long) (sizeof (long long))))
20914         exit (1);
20915       fprintf (f, "%ld\n", i);
20916     }
20917   else
20918     {
20919       unsigned long i = ulongval ();
20920       if (i != ((long) (sizeof (long long))))
20921         exit (1);
20922       fprintf (f, "%lu\n", i);
20923     }
20924   exit (ferror (f) || fclose (f) != 0);
20925
20926   ;
20927   return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest$ac_exeext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932   (eval $ac_link) 2>&5
20933   ac_status=$?
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937   (eval $ac_try) 2>&5
20938   ac_status=$?
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); }; }; then
20941   ac_cv_sizeof_long_long=`cat conftest.val`
20942 else
20943   echo "$as_me: program exited with status $ac_status" >&5
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ( exit $ac_status )
20948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20949 See \`config.log' for more details." >&5
20950 echo "$as_me: error: cannot compute sizeof (long long), 77
20951 See \`config.log' for more details." >&2;}
20952    { (exit 1); exit 1; }; }
20953 fi
20954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20955 fi
20956 fi
20957 rm -f conftest.val
20958 else
20959   ac_cv_sizeof_long_long=0
20960 fi
20961 fi
20962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20963 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20964 cat >>confdefs.h <<_ACEOF
20965 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20966 _ACEOF
20967
20968
20969     ;;
20970     *-hp-hpux* )
20971         echo "$as_me:$LINENO: checking for long long" >&5
20972 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20973 if test "${ac_cv_type_long_long+set}" = set; then
20974   echo $ECHO_N "(cached) $ECHO_C" >&6
20975 else
20976   cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982 $ac_includes_default
20983 int
20984 main ()
20985 {
20986 if ((long long *) 0)
20987   return 0;
20988 if (sizeof (long long))
20989   return 0;
20990   ;
20991   return 0;
20992 }
20993 _ACEOF
20994 rm -f conftest.$ac_objext
20995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20996   (eval $ac_compile) 2>conftest.er1
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
21000   cat conftest.err >&5
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } &&
21003          { ac_try='test -z "$ac_cxx_werror_flag"
21004                          || test ! -s conftest.err'
21005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006   (eval $ac_try) 2>&5
21007   ac_status=$?
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); }; } &&
21010          { ac_try='test -s conftest.$ac_objext'
21011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012   (eval $ac_try) 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); }; }; then
21016   ac_cv_type_long_long=yes
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021 ac_cv_type_long_long=no
21022 fi
21023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21024 fi
21025 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21026 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21027
21028 echo "$as_me:$LINENO: checking size of long long" >&5
21029 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21030 if test "${ac_cv_sizeof_long_long+set}" = set; then
21031   echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033   if test "$ac_cv_type_long_long" = yes; then
21034   # The cast to unsigned long works around a bug in the HP C Compiler
21035   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21036   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21037   # This bug is HP SR number 8606223364.
21038   if test "$cross_compiling" = yes; then
21039   # Depending upon the size, compute the lo and hi bounds.
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h.  */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h.  */
21046 $ac_includes_default
21047 int
21048 main ()
21049 {
21050 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21051 test_array [0] = 0
21052
21053   ;
21054   return 0;
21055 }
21056 _ACEOF
21057 rm -f conftest.$ac_objext
21058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21059   (eval $ac_compile) 2>conftest.er1
21060   ac_status=$?
21061   grep -v '^ *+' conftest.er1 >conftest.err
21062   rm -f conftest.er1
21063   cat conftest.err >&5
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); } &&
21066          { ac_try='test -z "$ac_cxx_werror_flag"
21067                          || test ! -s conftest.err'
21068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069   (eval $ac_try) 2>&5
21070   ac_status=$?
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); }; } &&
21073          { ac_try='test -s conftest.$ac_objext'
21074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075   (eval $ac_try) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; }; then
21079   ac_lo=0 ac_mid=0
21080   while :; do
21081     cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h.  */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h.  */
21087 $ac_includes_default
21088 int
21089 main ()
21090 {
21091 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21092 test_array [0] = 0
21093
21094   ;
21095   return 0;
21096 }
21097 _ACEOF
21098 rm -f conftest.$ac_objext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21100   (eval $ac_compile) 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } &&
21107          { ac_try='test -z "$ac_cxx_werror_flag"
21108                          || test ! -s conftest.err'
21109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110   (eval $ac_try) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); }; } &&
21114          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21120   ac_hi=$ac_mid; break
21121 else
21122   echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21124
21125 ac_lo=`expr $ac_mid + 1`
21126                     if test $ac_lo -le $ac_mid; then
21127                       ac_lo= ac_hi=
21128                       break
21129                     fi
21130                     ac_mid=`expr 2 '*' $ac_mid + 1`
21131 fi
21132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133   done
21134 else
21135   echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21137
21138 cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h.  */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h.  */
21144 $ac_includes_default
21145 int
21146 main ()
21147 {
21148 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21149 test_array [0] = 0
21150
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 rm -f conftest.$ac_objext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21157   (eval $ac_compile) 2>conftest.er1
21158   ac_status=$?
21159   grep -v '^ *+' conftest.er1 >conftest.err
21160   rm -f conftest.er1
21161   cat conftest.err >&5
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } &&
21164          { ac_try='test -z "$ac_cxx_werror_flag"
21165                          || test ! -s conftest.err'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; } &&
21171          { ac_try='test -s conftest.$ac_objext'
21172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; }; then
21177   ac_hi=-1 ac_mid=-1
21178   while :; do
21179     cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h.  */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h.  */
21185 $ac_includes_default
21186 int
21187 main ()
21188 {
21189 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21190 test_array [0] = 0
21191
21192   ;
21193   return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21198   (eval $ac_compile) 2>conftest.er1
21199   ac_status=$?
21200   grep -v '^ *+' conftest.er1 >conftest.err
21201   rm -f conftest.er1
21202   cat conftest.err >&5
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); } &&
21205          { ac_try='test -z "$ac_cxx_werror_flag"
21206                          || test ! -s conftest.err'
21207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208   (eval $ac_try) 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; } &&
21212          { ac_try='test -s conftest.$ac_objext'
21213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214   (eval $ac_try) 2>&5
21215   ac_status=$?
21216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217   (exit $ac_status); }; }; then
21218   ac_lo=$ac_mid; break
21219 else
21220   echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223 ac_hi=`expr '(' $ac_mid ')' - 1`
21224                        if test $ac_mid -le $ac_hi; then
21225                          ac_lo= ac_hi=
21226                          break
21227                        fi
21228                        ac_mid=`expr 2 '*' $ac_mid`
21229 fi
21230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21231   done
21232 else
21233   echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 ac_lo= ac_hi=
21237 fi
21238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21239 fi
21240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21241 # Binary search between lo and hi bounds.
21242 while test "x$ac_lo" != "x$ac_hi"; do
21243   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21244   cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h.  */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h.  */
21250 $ac_includes_default
21251 int
21252 main ()
21253 {
21254 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21255 test_array [0] = 0
21256
21257   ;
21258   return 0;
21259 }
21260 _ACEOF
21261 rm -f conftest.$ac_objext
21262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21263   (eval $ac_compile) 2>conftest.er1
21264   ac_status=$?
21265   grep -v '^ *+' conftest.er1 >conftest.err
21266   rm -f conftest.er1
21267   cat conftest.err >&5
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); } &&
21270          { ac_try='test -z "$ac_cxx_werror_flag"
21271                          || test ! -s conftest.err'
21272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273   (eval $ac_try) 2>&5
21274   ac_status=$?
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); }; } &&
21277          { ac_try='test -s conftest.$ac_objext'
21278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279   (eval $ac_try) 2>&5
21280   ac_status=$?
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); }; }; then
21283   ac_hi=$ac_mid
21284 else
21285   echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21287
21288 ac_lo=`expr '(' $ac_mid ')' + 1`
21289 fi
21290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21291 done
21292 case $ac_lo in
21293 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21294 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21295 See \`config.log' for more details." >&5
21296 echo "$as_me: error: cannot compute sizeof (long long), 77
21297 See \`config.log' for more details." >&2;}
21298    { (exit 1); exit 1; }; } ;;
21299 esac
21300 else
21301   if test "$cross_compiling" = yes; then
21302   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21303 See \`config.log' for more details." >&5
21304 echo "$as_me: error: cannot run test program while cross compiling
21305 See \`config.log' for more details." >&2;}
21306    { (exit 1); exit 1; }; }
21307 else
21308   cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314 $ac_includes_default
21315 long longval () { return (long) (sizeof (long long)); }
21316 unsigned long ulongval () { return (long) (sizeof (long long)); }
21317 #include <stdio.h>
21318 #include <stdlib.h>
21319 int
21320 main ()
21321 {
21322
21323   FILE *f = fopen ("conftest.val", "w");
21324   if (! f)
21325     exit (1);
21326   if (((long) (sizeof (long long))) < 0)
21327     {
21328       long i = longval ();
21329       if (i != ((long) (sizeof (long long))))
21330         exit (1);
21331       fprintf (f, "%ld\n", i);
21332     }
21333   else
21334     {
21335       unsigned long i = ulongval ();
21336       if (i != ((long) (sizeof (long long))))
21337         exit (1);
21338       fprintf (f, "%lu\n", i);
21339     }
21340   exit (ferror (f) || fclose (f) != 0);
21341
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 rm -f conftest$ac_exeext
21347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21348   (eval $ac_link) 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353   (eval $ac_try) 2>&5
21354   ac_status=$?
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); }; }; then
21357   ac_cv_sizeof_long_long=`cat conftest.val`
21358 else
21359   echo "$as_me: program exited with status $ac_status" >&5
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21362
21363 ( exit $ac_status )
21364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21365 See \`config.log' for more details." >&5
21366 echo "$as_me: error: cannot compute sizeof (long long), 77
21367 See \`config.log' for more details." >&2;}
21368    { (exit 1); exit 1; }; }
21369 fi
21370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21371 fi
21372 fi
21373 rm -f conftest.val
21374 else
21375   ac_cv_sizeof_long_long=0
21376 fi
21377 fi
21378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21379 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21380 cat >>confdefs.h <<_ACEOF
21381 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21382 _ACEOF
21383
21384
21385         if test "$ac_cv_sizeof_long_long" != "0"; then
21386                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
21387         fi
21388     ;;
21389     * )
21390         echo "$as_me:$LINENO: checking for long long" >&5
21391 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21392 if test "${ac_cv_type_long_long+set}" = set; then
21393   echo $ECHO_N "(cached) $ECHO_C" >&6
21394 else
21395   cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h.  */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h.  */
21401 $ac_includes_default
21402 int
21403 main ()
21404 {
21405 if ((long long *) 0)
21406   return 0;
21407 if (sizeof (long long))
21408   return 0;
21409   ;
21410   return 0;
21411 }
21412 _ACEOF
21413 rm -f conftest.$ac_objext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21415   (eval $ac_compile) 2>conftest.er1
21416   ac_status=$?
21417   grep -v '^ *+' conftest.er1 >conftest.err
21418   rm -f conftest.er1
21419   cat conftest.err >&5
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } &&
21422          { ac_try='test -z "$ac_cxx_werror_flag"
21423                          || test ! -s conftest.err'
21424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425   (eval $ac_try) 2>&5
21426   ac_status=$?
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); }; } &&
21429          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21435   ac_cv_type_long_long=yes
21436 else
21437   echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440 ac_cv_type_long_long=no
21441 fi
21442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21443 fi
21444 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21445 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21446
21447 echo "$as_me:$LINENO: checking size of long long" >&5
21448 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21449 if test "${ac_cv_sizeof_long_long+set}" = set; then
21450   echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452   if test "$ac_cv_type_long_long" = yes; then
21453   # The cast to unsigned long works around a bug in the HP C Compiler
21454   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21455   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21456   # This bug is HP SR number 8606223364.
21457   if test "$cross_compiling" = yes; then
21458   # Depending upon the size, compute the lo and hi bounds.
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h.  */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h.  */
21465 $ac_includes_default
21466 int
21467 main ()
21468 {
21469 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21470 test_array [0] = 0
21471
21472   ;
21473   return 0;
21474 }
21475 _ACEOF
21476 rm -f conftest.$ac_objext
21477 if { (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_cxx_werror_flag"
21486                          || test ! -s conftest.err'
21487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488   (eval $ac_try) 2>&5
21489   ac_status=$?
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); }; } &&
21492          { ac_try='test -s conftest.$ac_objext'
21493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494   (eval $ac_try) 2>&5
21495   ac_status=$?
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); }; }; then
21498   ac_lo=0 ac_mid=0
21499   while :; do
21500     cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h.  */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h.  */
21506 $ac_includes_default
21507 int
21508 main ()
21509 {
21510 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21511 test_array [0] = 0
21512
21513   ;
21514   return 0;
21515 }
21516 _ACEOF
21517 rm -f conftest.$ac_objext
21518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21519   (eval $ac_compile) 2>conftest.er1
21520   ac_status=$?
21521   grep -v '^ *+' conftest.er1 >conftest.err
21522   rm -f conftest.er1
21523   cat conftest.err >&5
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); } &&
21526          { ac_try='test -z "$ac_cxx_werror_flag"
21527                          || test ! -s conftest.err'
21528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529   (eval $ac_try) 2>&5
21530   ac_status=$?
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); }; } &&
21533          { ac_try='test -s conftest.$ac_objext'
21534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535   (eval $ac_try) 2>&5
21536   ac_status=$?
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); }; }; then
21539   ac_hi=$ac_mid; break
21540 else
21541   echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 ac_lo=`expr $ac_mid + 1`
21545                     if test $ac_lo -le $ac_mid; then
21546                       ac_lo= ac_hi=
21547                       break
21548                     fi
21549                     ac_mid=`expr 2 '*' $ac_mid + 1`
21550 fi
21551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21552   done
21553 else
21554   echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21556
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h.  */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h.  */
21563 $ac_includes_default
21564 int
21565 main ()
21566 {
21567 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21568 test_array [0] = 0
21569
21570   ;
21571   return 0;
21572 }
21573 _ACEOF
21574 rm -f conftest.$ac_objext
21575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21576   (eval $ac_compile) 2>conftest.er1
21577   ac_status=$?
21578   grep -v '^ *+' conftest.er1 >conftest.err
21579   rm -f conftest.er1
21580   cat conftest.err >&5
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); } &&
21583          { ac_try='test -z "$ac_cxx_werror_flag"
21584                          || test ! -s conftest.err'
21585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586   (eval $ac_try) 2>&5
21587   ac_status=$?
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); }; } &&
21590          { ac_try='test -s conftest.$ac_objext'
21591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592   (eval $ac_try) 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); }; }; then
21596   ac_hi=-1 ac_mid=-1
21597   while :; do
21598     cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h.  */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h.  */
21604 $ac_includes_default
21605 int
21606 main ()
21607 {
21608 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21609 test_array [0] = 0
21610
21611   ;
21612   return 0;
21613 }
21614 _ACEOF
21615 rm -f conftest.$ac_objext
21616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21617   (eval $ac_compile) 2>conftest.er1
21618   ac_status=$?
21619   grep -v '^ *+' conftest.er1 >conftest.err
21620   rm -f conftest.er1
21621   cat conftest.err >&5
21622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); } &&
21624          { ac_try='test -z "$ac_cxx_werror_flag"
21625                          || test ! -s conftest.err'
21626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627   (eval $ac_try) 2>&5
21628   ac_status=$?
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); }; } &&
21631          { ac_try='test -s conftest.$ac_objext'
21632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633   (eval $ac_try) 2>&5
21634   ac_status=$?
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); }; }; then
21637   ac_lo=$ac_mid; break
21638 else
21639   echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21641
21642 ac_hi=`expr '(' $ac_mid ')' - 1`
21643                        if test $ac_mid -le $ac_hi; then
21644                          ac_lo= ac_hi=
21645                          break
21646                        fi
21647                        ac_mid=`expr 2 '*' $ac_mid`
21648 fi
21649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21650   done
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ac_lo= ac_hi=
21656 fi
21657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21658 fi
21659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21660 # Binary search between lo and hi bounds.
21661 while test "x$ac_lo" != "x$ac_hi"; do
21662   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21663   cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669 $ac_includes_default
21670 int
21671 main ()
21672 {
21673 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21674 test_array [0] = 0
21675
21676   ;
21677   return 0;
21678 }
21679 _ACEOF
21680 rm -f conftest.$ac_objext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21682   (eval $ac_compile) 2>conftest.er1
21683   ac_status=$?
21684   grep -v '^ *+' conftest.er1 >conftest.err
21685   rm -f conftest.er1
21686   cat conftest.err >&5
21687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688   (exit $ac_status); } &&
21689          { ac_try='test -z "$ac_cxx_werror_flag"
21690                          || test ! -s conftest.err'
21691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692   (eval $ac_try) 2>&5
21693   ac_status=$?
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); }; } &&
21696          { ac_try='test -s conftest.$ac_objext'
21697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698   (eval $ac_try) 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); }; }; then
21702   ac_hi=$ac_mid
21703 else
21704   echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707 ac_lo=`expr '(' $ac_mid ')' + 1`
21708 fi
21709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21710 done
21711 case $ac_lo in
21712 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21713 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21714 See \`config.log' for more details." >&5
21715 echo "$as_me: error: cannot compute sizeof (long long), 77
21716 See \`config.log' for more details." >&2;}
21717    { (exit 1); exit 1; }; } ;;
21718 esac
21719 else
21720   if test "$cross_compiling" = yes; then
21721   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21722 See \`config.log' for more details." >&5
21723 echo "$as_me: error: cannot run test program while cross compiling
21724 See \`config.log' for more details." >&2;}
21725    { (exit 1); exit 1; }; }
21726 else
21727   cat >conftest.$ac_ext <<_ACEOF
21728 /* confdefs.h.  */
21729 _ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h.  */
21733 $ac_includes_default
21734 long longval () { return (long) (sizeof (long long)); }
21735 unsigned long ulongval () { return (long) (sizeof (long long)); }
21736 #include <stdio.h>
21737 #include <stdlib.h>
21738 int
21739 main ()
21740 {
21741
21742   FILE *f = fopen ("conftest.val", "w");
21743   if (! f)
21744     exit (1);
21745   if (((long) (sizeof (long long))) < 0)
21746     {
21747       long i = longval ();
21748       if (i != ((long) (sizeof (long long))))
21749         exit (1);
21750       fprintf (f, "%ld\n", i);
21751     }
21752   else
21753     {
21754       unsigned long i = ulongval ();
21755       if (i != ((long) (sizeof (long long))))
21756         exit (1);
21757       fprintf (f, "%lu\n", i);
21758     }
21759   exit (ferror (f) || fclose (f) != 0);
21760
21761   ;
21762   return 0;
21763 }
21764 _ACEOF
21765 rm -f conftest$ac_exeext
21766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21767   (eval $ac_link) 2>&5
21768   ac_status=$?
21769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772   (eval $ac_try) 2>&5
21773   ac_status=$?
21774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775   (exit $ac_status); }; }; then
21776   ac_cv_sizeof_long_long=`cat conftest.val`
21777 else
21778   echo "$as_me: program exited with status $ac_status" >&5
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782 ( exit $ac_status )
21783 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21784 See \`config.log' for more details." >&5
21785 echo "$as_me: error: cannot compute sizeof (long long), 77
21786 See \`config.log' for more details." >&2;}
21787    { (exit 1); exit 1; }; }
21788 fi
21789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21790 fi
21791 fi
21792 rm -f conftest.val
21793 else
21794   ac_cv_sizeof_long_long=0
21795 fi
21796 fi
21797 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21798 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21799 cat >>confdefs.h <<_ACEOF
21800 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21801 _ACEOF
21802
21803
21804 esac
21805
21806 echo "$as_me:$LINENO: checking for wchar_t" >&5
21807 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21808 if test "${ac_cv_type_wchar_t+set}" = set; then
21809   echo $ECHO_N "(cached) $ECHO_C" >&6
21810 else
21811   cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817
21818         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21819         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21820         #  error "fake wchar_t"
21821         #endif
21822         #ifdef HAVE_WCHAR_H
21823         #  ifdef __CYGWIN__
21824         #    include <stddef.h>
21825         #  endif
21826         #  include <wchar.h>
21827         #endif
21828         #ifdef HAVE_STDLIB_H
21829         #  include <stdlib.h>
21830         #endif
21831         #include <stdio.h>
21832
21833
21834
21835 int
21836 main ()
21837 {
21838 if ((wchar_t *) 0)
21839   return 0;
21840 if (sizeof (wchar_t))
21841   return 0;
21842   ;
21843   return 0;
21844 }
21845 _ACEOF
21846 rm -f conftest.$ac_objext
21847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21848   (eval $ac_compile) 2>conftest.er1
21849   ac_status=$?
21850   grep -v '^ *+' conftest.er1 >conftest.err
21851   rm -f conftest.er1
21852   cat conftest.err >&5
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } &&
21855          { ac_try='test -z "$ac_cxx_werror_flag"
21856                          || test ! -s conftest.err'
21857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858   (eval $ac_try) 2>&5
21859   ac_status=$?
21860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861   (exit $ac_status); }; } &&
21862          { ac_try='test -s conftest.$ac_objext'
21863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864   (eval $ac_try) 2>&5
21865   ac_status=$?
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); }; }; then
21868   ac_cv_type_wchar_t=yes
21869 else
21870   echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21872
21873 ac_cv_type_wchar_t=no
21874 fi
21875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21876 fi
21877 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21878 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21879
21880 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21881 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21882 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21883   echo $ECHO_N "(cached) $ECHO_C" >&6
21884 else
21885   if test "$ac_cv_type_wchar_t" = yes; then
21886   # The cast to unsigned long works around a bug in the HP C Compiler
21887   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21888   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21889   # This bug is HP SR number 8606223364.
21890   if test "$cross_compiling" = yes; then
21891   # Depending upon the size, compute the lo and hi bounds.
21892 cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898
21899         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21900         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21901         #  error "fake wchar_t"
21902         #endif
21903         #ifdef HAVE_WCHAR_H
21904         #  ifdef __CYGWIN__
21905         #    include <stddef.h>
21906         #  endif
21907         #  include <wchar.h>
21908         #endif
21909         #ifdef HAVE_STDLIB_H
21910         #  include <stdlib.h>
21911         #endif
21912         #include <stdio.h>
21913
21914
21915
21916 int
21917 main ()
21918 {
21919 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21920 test_array [0] = 0
21921
21922   ;
21923   return 0;
21924 }
21925 _ACEOF
21926 rm -f conftest.$ac_objext
21927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21928   (eval $ac_compile) 2>conftest.er1
21929   ac_status=$?
21930   grep -v '^ *+' conftest.er1 >conftest.err
21931   rm -f conftest.er1
21932   cat conftest.err >&5
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); } &&
21935          { ac_try='test -z "$ac_cxx_werror_flag"
21936                          || test ! -s conftest.err'
21937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938   (eval $ac_try) 2>&5
21939   ac_status=$?
21940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); }; } &&
21942          { ac_try='test -s conftest.$ac_objext'
21943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944   (eval $ac_try) 2>&5
21945   ac_status=$?
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); }; }; then
21948   ac_lo=0 ac_mid=0
21949   while :; do
21950     cat >conftest.$ac_ext <<_ACEOF
21951 /* confdefs.h.  */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h.  */
21956
21957         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21958         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21959         #  error "fake wchar_t"
21960         #endif
21961         #ifdef HAVE_WCHAR_H
21962         #  ifdef __CYGWIN__
21963         #    include <stddef.h>
21964         #  endif
21965         #  include <wchar.h>
21966         #endif
21967         #ifdef HAVE_STDLIB_H
21968         #  include <stdlib.h>
21969         #endif
21970         #include <stdio.h>
21971
21972
21973
21974 int
21975 main ()
21976 {
21977 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21978 test_array [0] = 0
21979
21980   ;
21981   return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21986   (eval $ac_compile) 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } &&
21993          { ac_try='test -z "$ac_cxx_werror_flag"
21994                          || test ! -s conftest.err'
21995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996   (eval $ac_try) 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); }; } &&
22000          { ac_try='test -s conftest.$ac_objext'
22001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002   (eval $ac_try) 2>&5
22003   ac_status=$?
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); }; }; then
22006   ac_hi=$ac_mid; break
22007 else
22008   echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22010
22011 ac_lo=`expr $ac_mid + 1`
22012                     if test $ac_lo -le $ac_mid; then
22013                       ac_lo= ac_hi=
22014                       break
22015                     fi
22016                     ac_mid=`expr 2 '*' $ac_mid + 1`
22017 fi
22018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22019   done
22020 else
22021   echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024 cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h.  */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h.  */
22030
22031         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22032         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22033         #  error "fake wchar_t"
22034         #endif
22035         #ifdef HAVE_WCHAR_H
22036         #  ifdef __CYGWIN__
22037         #    include <stddef.h>
22038         #  endif
22039         #  include <wchar.h>
22040         #endif
22041         #ifdef HAVE_STDLIB_H
22042         #  include <stdlib.h>
22043         #endif
22044         #include <stdio.h>
22045
22046
22047
22048 int
22049 main ()
22050 {
22051 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
22052 test_array [0] = 0
22053
22054   ;
22055   return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060   (eval $ac_compile) 2>conftest.er1
22061   ac_status=$?
22062   grep -v '^ *+' conftest.er1 >conftest.err
22063   rm -f conftest.er1
22064   cat conftest.err >&5
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); } &&
22067          { ac_try='test -z "$ac_cxx_werror_flag"
22068                          || test ! -s conftest.err'
22069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070   (eval $ac_try) 2>&5
22071   ac_status=$?
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); }; } &&
22074          { ac_try='test -s conftest.$ac_objext'
22075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076   (eval $ac_try) 2>&5
22077   ac_status=$?
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); }; }; then
22080   ac_hi=-1 ac_mid=-1
22081   while :; do
22082     cat >conftest.$ac_ext <<_ACEOF
22083 /* confdefs.h.  */
22084 _ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h.  */
22088
22089         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22090         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22091         #  error "fake wchar_t"
22092         #endif
22093         #ifdef HAVE_WCHAR_H
22094         #  ifdef __CYGWIN__
22095         #    include <stddef.h>
22096         #  endif
22097         #  include <wchar.h>
22098         #endif
22099         #ifdef HAVE_STDLIB_H
22100         #  include <stdlib.h>
22101         #endif
22102         #include <stdio.h>
22103
22104
22105
22106 int
22107 main ()
22108 {
22109 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
22110 test_array [0] = 0
22111
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext
22117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22118   (eval $ac_compile) 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } &&
22125          { ac_try='test -z "$ac_cxx_werror_flag"
22126                          || test ! -s conftest.err'
22127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128   (eval $ac_try) 2>&5
22129   ac_status=$?
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); }; } &&
22132          { ac_try='test -s conftest.$ac_objext'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; }; then
22138   ac_lo=$ac_mid; break
22139 else
22140   echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22142
22143 ac_hi=`expr '(' $ac_mid ')' - 1`
22144                        if test $ac_mid -le $ac_hi; then
22145                          ac_lo= ac_hi=
22146                          break
22147                        fi
22148                        ac_mid=`expr 2 '*' $ac_mid`
22149 fi
22150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22151   done
22152 else
22153   echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22155
22156 ac_lo= ac_hi=
22157 fi
22158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22159 fi
22160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22161 # Binary search between lo and hi bounds.
22162 while test "x$ac_lo" != "x$ac_hi"; do
22163   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22164   cat >conftest.$ac_ext <<_ACEOF
22165 /* confdefs.h.  */
22166 _ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h.  */
22170
22171         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22172         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22173         #  error "fake wchar_t"
22174         #endif
22175         #ifdef HAVE_WCHAR_H
22176         #  ifdef __CYGWIN__
22177         #    include <stddef.h>
22178         #  endif
22179         #  include <wchar.h>
22180         #endif
22181         #ifdef HAVE_STDLIB_H
22182         #  include <stdlib.h>
22183         #endif
22184         #include <stdio.h>
22185
22186
22187
22188 int
22189 main ()
22190 {
22191 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22192 test_array [0] = 0
22193
22194   ;
22195   return 0;
22196 }
22197 _ACEOF
22198 rm -f conftest.$ac_objext
22199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22200   (eval $ac_compile) 2>conftest.er1
22201   ac_status=$?
22202   grep -v '^ *+' conftest.er1 >conftest.err
22203   rm -f conftest.er1
22204   cat conftest.err >&5
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); } &&
22207          { ac_try='test -z "$ac_cxx_werror_flag"
22208                          || test ! -s conftest.err'
22209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210   (eval $ac_try) 2>&5
22211   ac_status=$?
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); }; } &&
22214          { ac_try='test -s conftest.$ac_objext'
22215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216   (eval $ac_try) 2>&5
22217   ac_status=$?
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); }; }; then
22220   ac_hi=$ac_mid
22221 else
22222   echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22224
22225 ac_lo=`expr '(' $ac_mid ')' + 1`
22226 fi
22227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22228 done
22229 case $ac_lo in
22230 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22231 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22232 See \`config.log' for more details." >&5
22233 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22234 See \`config.log' for more details." >&2;}
22235    { (exit 1); exit 1; }; } ;;
22236 esac
22237 else
22238   if test "$cross_compiling" = yes; then
22239   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22240 See \`config.log' for more details." >&5
22241 echo "$as_me: error: cannot run test program while cross compiling
22242 See \`config.log' for more details." >&2;}
22243    { (exit 1); exit 1; }; }
22244 else
22245   cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h.  */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h.  */
22251
22252         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22253         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22254         #  error "fake wchar_t"
22255         #endif
22256         #ifdef HAVE_WCHAR_H
22257         #  ifdef __CYGWIN__
22258         #    include <stddef.h>
22259         #  endif
22260         #  include <wchar.h>
22261         #endif
22262         #ifdef HAVE_STDLIB_H
22263         #  include <stdlib.h>
22264         #endif
22265         #include <stdio.h>
22266
22267
22268
22269 long longval () { return (long) (sizeof (wchar_t)); }
22270 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22271 #include <stdio.h>
22272 #include <stdlib.h>
22273 int
22274 main ()
22275 {
22276
22277   FILE *f = fopen ("conftest.val", "w");
22278   if (! f)
22279     exit (1);
22280   if (((long) (sizeof (wchar_t))) < 0)
22281     {
22282       long i = longval ();
22283       if (i != ((long) (sizeof (wchar_t))))
22284         exit (1);
22285       fprintf (f, "%ld\n", i);
22286     }
22287   else
22288     {
22289       unsigned long i = ulongval ();
22290       if (i != ((long) (sizeof (wchar_t))))
22291         exit (1);
22292       fprintf (f, "%lu\n", i);
22293     }
22294   exit (ferror (f) || fclose (f) != 0);
22295
22296   ;
22297   return 0;
22298 }
22299 _ACEOF
22300 rm -f conftest$ac_exeext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22302   (eval $ac_link) 2>&5
22303   ac_status=$?
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307   (eval $ac_try) 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); }; }; then
22311   ac_cv_sizeof_wchar_t=`cat conftest.val`
22312 else
22313   echo "$as_me: program exited with status $ac_status" >&5
22314 echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22316
22317 ( exit $ac_status )
22318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22319 See \`config.log' for more details." >&5
22320 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22321 See \`config.log' for more details." >&2;}
22322    { (exit 1); exit 1; }; }
22323 fi
22324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22325 fi
22326 fi
22327 rm -f conftest.val
22328 else
22329   ac_cv_sizeof_wchar_t=0
22330 fi
22331 fi
22332 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22333 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
22334 cat >>confdefs.h <<_ACEOF
22335 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22336 _ACEOF
22337
22338
22339 if test "$ac_cv_sizeof_wchar_t" != "0"; then
22340     wxUSE_WCHAR_T=yes
22341 else
22342     wxUSE_WCHAR_T=no
22343 fi
22344
22345 echo "$as_me:$LINENO: checking for va_copy" >&5
22346 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22347 if test "${wx_cv_func_va_copy+set}" = set; then
22348   echo $ECHO_N "(cached) $ECHO_C" >&6
22349 else
22350
22351         cat >conftest.$ac_ext <<_ACEOF
22352
22353             #include <stdarg.h>
22354             void foo(char *f, ...)
22355             {
22356                 va_list ap1, ap2;
22357                 va_start(ap1, f);
22358                 va_copy(ap2, ap1);
22359                 va_end(ap2);
22360                 va_end(ap1);
22361             }
22362             int main()
22363             {
22364                 foo("hi", 17);
22365                 return 0;
22366             }
22367 _ACEOF
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22370   (eval $ac_link) 2>conftest.er1
22371   ac_status=$?
22372   grep -v '^ *+' conftest.er1 >conftest.err
22373   rm -f conftest.er1
22374   cat conftest.err >&5
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } &&
22377          { ac_try='test -z "$ac_cxx_werror_flag"
22378                          || test ! -s conftest.err'
22379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380   (eval $ac_try) 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); }; } &&
22384          { ac_try='test -s conftest$ac_exeext'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; }; then
22390   wx_cv_func_va_copy=yes
22391 else
22392   echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395 wx_cv_func_va_copy=no
22396
22397 fi
22398 rm -f conftest.err conftest.$ac_objext \
22399       conftest$ac_exeext conftest.$ac_ext
22400
22401
22402 fi
22403 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22404 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22405
22406 if test $wx_cv_func_va_copy = "yes"; then
22407     cat >>confdefs.h <<\_ACEOF
22408 #define HAVE_VA_COPY 1
22409 _ACEOF
22410
22411 else
22412         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22413 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22414 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417
22418             if test "$cross_compiling" = yes; then
22419                   wx_cv_type_va_list_lvalue=yes
22420
22421 else
22422   cat >conftest.$ac_ext <<_ACEOF
22423
22424                 #include <stdarg.h>
22425                 int foo(char *f, ...)
22426                 {
22427                     va_list ap1, ap2;
22428                     va_start(ap1, f);
22429                     ap2 = ap1;
22430                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22431                         return 1;
22432                     va_end(ap2);
22433                     va_end(ap1);
22434                     return 0;
22435                 }
22436                 int main()
22437                 {
22438                     return foo("hi", 17);
22439                 }
22440 _ACEOF
22441 rm -f conftest$ac_exeext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443   (eval $ac_link) 2>&5
22444   ac_status=$?
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448   (eval $ac_try) 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); }; }; then
22452   wx_cv_type_va_list_lvalue=yes
22453 else
22454   echo "$as_me: program exited with status $ac_status" >&5
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22457
22458 ( exit $ac_status )
22459 wx_cv_type_va_list_lvalue=no
22460 fi
22461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22462 fi
22463
22464
22465 fi
22466 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22467 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22468
22469     if test $wx_cv_type_va_list_lvalue != "yes"; then
22470                         cat >>confdefs.h <<\_ACEOF
22471 #define VA_LIST_IS_ARRAY 1
22472 _ACEOF
22473
22474     fi
22475 fi
22476
22477 echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22478 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22479 if test "${wx_cv_have_variadic_macros+set}" = set; then
22480   echo $ECHO_N "(cached) $ECHO_C" >&6
22481 else
22482
22483         cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h.  */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h.  */
22489
22490                     #include <stdio.h>
22491                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22492
22493 int
22494 main ()
22495 {
22496
22497                     test("%s %d %p", "test", 1, 0);
22498
22499
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506   (eval $ac_compile) 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } &&
22513          { ac_try='test -z "$ac_cxx_werror_flag"
22514                          || test ! -s conftest.err'
22515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516   (eval $ac_try) 2>&5
22517   ac_status=$?
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); }; } &&
22520          { ac_try='test -s conftest.$ac_objext'
22521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522   (eval $ac_try) 2>&5
22523   ac_status=$?
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); }; }; then
22526   wx_cv_have_variadic_macros=yes
22527 else
22528   echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22530
22531 wx_cv_have_variadic_macros=no
22532
22533 fi
22534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22535
22536
22537 fi
22538 echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22539 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22540
22541 if test $wx_cv_have_variadic_macros = "yes"; then
22542     cat >>confdefs.h <<\_ACEOF
22543 #define HAVE_VARIADIC_MACROS 1
22544 _ACEOF
22545
22546 fi
22547
22548 # Check whether --enable-largefile or --disable-largefile was given.
22549 if test "${enable_largefile+set}" = set; then
22550   enableval="$enable_largefile"
22551
22552 fi;
22553 if test "$enable_largefile" != no; then
22554             wx_largefile=no
22555
22556     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22557 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22558 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22559   echo $ECHO_N "(cached) $ECHO_C" >&6
22560 else
22561
22562           cat >conftest.$ac_ext <<_ACEOF
22563 /* confdefs.h.  */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h.  */
22568 #define _FILE_OFFSET_BITS 64
22569                           #include <sys/types.h>
22570 int
22571 main ()
22572 {
22573 typedef struct {
22574     unsigned int field: sizeof(off_t) == 8;
22575 } wxlf;
22576
22577   ;
22578   return 0;
22579 }
22580 _ACEOF
22581 rm -f conftest.$ac_objext
22582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22583   (eval $ac_compile) 2>conftest.er1
22584   ac_status=$?
22585   grep -v '^ *+' conftest.er1 >conftest.err
22586   rm -f conftest.er1
22587   cat conftest.err >&5
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); } &&
22590          { ac_try='test -z "$ac_cxx_werror_flag"
22591                          || test ! -s conftest.err'
22592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593   (eval $ac_try) 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); }; } &&
22597          { ac_try='test -s conftest.$ac_objext'
22598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599   (eval $ac_try) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); }; }; then
22603   ac_cv_sys_file_offset_bits=64
22604 else
22605   echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22607
22608 ac_cv_sys_file_offset_bits=no
22609 fi
22610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22611
22612
22613 fi
22614 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22615 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22616
22617     if test "$ac_cv_sys_file_offset_bits" != no; then
22618         wx_largefile=yes
22619         cat >>confdefs.h <<_ACEOF
22620 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22621 _ACEOF
22622
22623     fi
22624
22625     if test "x$wx_largefile" != "xyes"; then
22626
22627     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22628 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22629 if test "${ac_cv_sys_large_files+set}" = set; then
22630   echo $ECHO_N "(cached) $ECHO_C" >&6
22631 else
22632
22633           cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h.  */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h.  */
22639 #define _LARGE_FILES 1
22640                           #include <sys/types.h>
22641 int
22642 main ()
22643 {
22644 typedef struct {
22645     unsigned int field: sizeof(off_t) == 8;
22646 } wxlf;
22647
22648   ;
22649   return 0;
22650 }
22651 _ACEOF
22652 rm -f conftest.$ac_objext
22653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22654   (eval $ac_compile) 2>conftest.er1
22655   ac_status=$?
22656   grep -v '^ *+' conftest.er1 >conftest.err
22657   rm -f conftest.er1
22658   cat conftest.err >&5
22659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); } &&
22661          { ac_try='test -z "$ac_cxx_werror_flag"
22662                          || test ! -s conftest.err'
22663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664   (eval $ac_try) 2>&5
22665   ac_status=$?
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); }; } &&
22668          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22674   ac_cv_sys_large_files=1
22675 else
22676   echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22678
22679 ac_cv_sys_large_files=no
22680 fi
22681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22682
22683
22684 fi
22685 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22686 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22687
22688     if test "$ac_cv_sys_large_files" != no; then
22689         wx_largefile=yes
22690         cat >>confdefs.h <<_ACEOF
22691 #define _LARGE_FILES $ac_cv_sys_large_files
22692 _ACEOF
22693
22694     fi
22695
22696     fi
22697
22698     echo "$as_me:$LINENO: checking if large file support is available" >&5
22699 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22700     if test "x$wx_largefile" = "xyes"; then
22701         cat >>confdefs.h <<\_ACEOF
22702 #define HAVE_LARGEFILE_SUPPORT 1
22703 _ACEOF
22704
22705     fi
22706     echo "$as_me:$LINENO: result: $wx_largefile" >&5
22707 echo "${ECHO_T}$wx_largefile" >&6
22708 fi
22709
22710
22711 if test "x$wx_largefile" = "xyes"; then
22712     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
22713         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
22714
22715                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22716             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22717 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22718 if test "${wx_cv_STDC_EXT_required+set}" = set; then
22719   echo $ECHO_N "(cached) $ECHO_C" >&6
22720 else
22721
22722                     cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728
22729 int
22730 main ()
22731 {
22732
22733                             #ifndef __STDC_EXT__
22734                                 choke me
22735                             #endif
22736
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext
22742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22743   (eval $ac_compile) 2>conftest.er1
22744   ac_status=$?
22745   grep -v '^ *+' conftest.er1 >conftest.err
22746   rm -f conftest.er1
22747   cat conftest.err >&5
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } &&
22750          { ac_try='test -z "$ac_cxx_werror_flag"
22751                          || test ! -s conftest.err'
22752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753   (eval $ac_try) 2>&5
22754   ac_status=$?
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); }; } &&
22757          { ac_try='test -s conftest.$ac_objext'
22758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759   (eval $ac_try) 2>&5
22760   ac_status=$?
22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762   (exit $ac_status); }; }; then
22763   wx_cv_STDC_EXT_required=no
22764 else
22765   echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768 wx_cv_STDC_EXT_required=yes
22769
22770 fi
22771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22772
22773
22774 fi
22775 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22776 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22777             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22778                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22779             fi
22780         fi
22781     else
22782         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22783     fi
22784         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22785 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22786 if test "${ac_cv_sys_largefile_source+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   while :; do
22790   ac_cv_sys_largefile_source=no
22791   cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h.  */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h.  */
22797 #include <stdio.h>
22798 int
22799 main ()
22800 {
22801 return !fseeko;
22802   ;
22803   return 0;
22804 }
22805 _ACEOF
22806 rm -f conftest.$ac_objext
22807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808   (eval $ac_compile) 2>conftest.er1
22809   ac_status=$?
22810   grep -v '^ *+' conftest.er1 >conftest.err
22811   rm -f conftest.er1
22812   cat conftest.err >&5
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); } &&
22815          { ac_try='test -z "$ac_cxx_werror_flag"
22816                          || test ! -s conftest.err'
22817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818   (eval $ac_try) 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); }; } &&
22822          { ac_try='test -s conftest.$ac_objext'
22823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824   (eval $ac_try) 2>&5
22825   ac_status=$?
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); }; }; then
22828   break
22829 else
22830   echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833 fi
22834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22835   cat >conftest.$ac_ext <<_ACEOF
22836 /* confdefs.h.  */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h.  */
22841 #define _LARGEFILE_SOURCE 1
22842 #include <stdio.h>
22843 int
22844 main ()
22845 {
22846 return !fseeko;
22847   ;
22848   return 0;
22849 }
22850 _ACEOF
22851 rm -f conftest.$ac_objext
22852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22853   (eval $ac_compile) 2>conftest.er1
22854   ac_status=$?
22855   grep -v '^ *+' conftest.er1 >conftest.err
22856   rm -f conftest.er1
22857   cat conftest.err >&5
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } &&
22860          { ac_try='test -z "$ac_cxx_werror_flag"
22861                          || test ! -s conftest.err'
22862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863   (eval $ac_try) 2>&5
22864   ac_status=$?
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); }; } &&
22867          { ac_try='test -s conftest.$ac_objext'
22868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22869   (eval $ac_try) 2>&5
22870   ac_status=$?
22871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); }; }; then
22873   ac_cv_sys_largefile_source=1; break
22874 else
22875   echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878 fi
22879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22880   break
22881 done
22882 fi
22883 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22884 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22885 if test "$ac_cv_sys_largefile_source" != no; then
22886
22887 cat >>confdefs.h <<_ACEOF
22888 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22889 _ACEOF
22890
22891 fi
22892 rm -f conftest*
22893
22894 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22895 # in glibc 2.1.3, but that breaks too many other things.
22896 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22897 echo "$as_me:$LINENO: checking for fseeko" >&5
22898 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22899 if test "${ac_cv_func_fseeko+set}" = set; then
22900   echo $ECHO_N "(cached) $ECHO_C" >&6
22901 else
22902   cat >conftest.$ac_ext <<_ACEOF
22903 /* confdefs.h.  */
22904 _ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h.  */
22908 #include <stdio.h>
22909 int
22910 main ()
22911 {
22912 return fseeko && fseeko (stdin, 0, 0);
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 rm -f conftest.$ac_objext conftest$ac_exeext
22918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22919   (eval $ac_link) 2>conftest.er1
22920   ac_status=$?
22921   grep -v '^ *+' conftest.er1 >conftest.err
22922   rm -f conftest.er1
22923   cat conftest.err >&5
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); } &&
22926          { ac_try='test -z "$ac_cxx_werror_flag"
22927                          || test ! -s conftest.err'
22928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929   (eval $ac_try) 2>&5
22930   ac_status=$?
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); }; } &&
22933          { ac_try='test -s conftest$ac_exeext'
22934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935   (eval $ac_try) 2>&5
22936   ac_status=$?
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); }; }; then
22939   ac_cv_func_fseeko=yes
22940 else
22941   echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22943
22944 ac_cv_func_fseeko=no
22945 fi
22946 rm -f conftest.err conftest.$ac_objext \
22947       conftest$ac_exeext conftest.$ac_ext
22948 fi
22949 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22950 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22951 if test $ac_cv_func_fseeko = yes; then
22952
22953 cat >>confdefs.h <<\_ACEOF
22954 #define HAVE_FSEEKO 1
22955 _ACEOF
22956
22957 fi
22958
22959     if test "$ac_cv_sys_largefile_source" != no; then
22960         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22961     fi
22962 fi
22963
22964 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22965 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22966 if test "${ac_cv_c_bigendian+set}" = set; then
22967   echo $ECHO_N "(cached) $ECHO_C" >&6
22968 else
22969   ac_cv_c_bigendian=unknown
22970 # See if sys/param.h defines the BYTE_ORDER macro.
22971 cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h.  */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h.  */
22977 #include <sys/types.h>
22978 #include <sys/param.h>
22979 int
22980 main ()
22981 {
22982
22983 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22984  bogus endian macros
22985 #endif
22986   ;
22987   return 0;
22988 }
22989 _ACEOF
22990 rm -f conftest.$ac_objext
22991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22992   (eval $ac_compile) 2>conftest.er1
22993   ac_status=$?
22994   grep -v '^ *+' conftest.er1 >conftest.err
22995   rm -f conftest.er1
22996   cat conftest.err >&5
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } &&
22999          { ac_try='test -z "$ac_cxx_werror_flag"
23000                          || test ! -s conftest.err'
23001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002   (eval $ac_try) 2>&5
23003   ac_status=$?
23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); }; } &&
23006          { ac_try='test -s conftest.$ac_objext'
23007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008   (eval $ac_try) 2>&5
23009   ac_status=$?
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); }; }; then
23012   # It does; now see whether it defined to BIG_ENDIAN or not.
23013 cat >conftest.$ac_ext <<_ACEOF
23014 /* confdefs.h.  */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h.  */
23019 #include <sys/types.h>
23020 #include <sys/param.h>
23021 int
23022 main ()
23023 {
23024
23025 #if BYTE_ORDER != BIG_ENDIAN
23026  not big endian
23027 #endif
23028   ;
23029   return 0;
23030 }
23031 _ACEOF
23032 rm -f conftest.$ac_objext
23033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23034   (eval $ac_compile) 2>conftest.er1
23035   ac_status=$?
23036   grep -v '^ *+' conftest.er1 >conftest.err
23037   rm -f conftest.er1
23038   cat conftest.err >&5
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); } &&
23041          { ac_try='test -z "$ac_cxx_werror_flag"
23042                          || test ! -s conftest.err'
23043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23044   (eval $ac_try) 2>&5
23045   ac_status=$?
23046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047   (exit $ac_status); }; } &&
23048          { ac_try='test -s conftest.$ac_objext'
23049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050   (eval $ac_try) 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); }; }; then
23054   ac_cv_c_bigendian=yes
23055 else
23056   echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23058
23059 ac_cv_c_bigendian=no
23060 fi
23061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23062 else
23063   echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23065
23066 fi
23067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23068 if test $ac_cv_c_bigendian = unknown; then
23069 if test "$cross_compiling" = yes; then
23070   ac_cv_c_bigendian=unknown
23071 else
23072   cat >conftest.$ac_ext <<_ACEOF
23073 /* confdefs.h.  */
23074 _ACEOF
23075 cat confdefs.h >>conftest.$ac_ext
23076 cat >>conftest.$ac_ext <<_ACEOF
23077 /* end confdefs.h.  */
23078 main () {
23079   /* Are we little or big endian?  From Harbison&Steele.  */
23080   union
23081   {
23082     long l;
23083     char c[sizeof (long)];
23084   } u;
23085   u.l = 1;
23086   exit (u.c[sizeof (long) - 1] == 1);
23087 }
23088 _ACEOF
23089 rm -f conftest$ac_exeext
23090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23091   (eval $ac_link) 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23096   (eval $ac_try) 2>&5
23097   ac_status=$?
23098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099   (exit $ac_status); }; }; then
23100   ac_cv_c_bigendian=no
23101 else
23102   echo "$as_me: program exited with status $ac_status" >&5
23103 echo "$as_me: failed program was:" >&5
23104 sed 's/^/| /' conftest.$ac_ext >&5
23105
23106 ( exit $ac_status )
23107 ac_cv_c_bigendian=yes
23108 fi
23109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23110 fi
23111 fi
23112 fi
23113 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23114 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
23115 if test $ac_cv_c_bigendian = unknown; then
23116   { 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
23117 echo "$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;}
23118 fi
23119 if test $ac_cv_c_bigendian = yes; then
23120   cat >>confdefs.h <<\_ACEOF
23121 #define WORDS_BIGENDIAN 1
23122 _ACEOF
23123
23124 fi
23125
23126
23127
23128
23129
23130     ac_ext=cc
23131 ac_cpp='$CXXCPP $CPPFLAGS'
23132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23135
23136
23137
23138 for ac_header in iostream
23139 do
23140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23142   echo "$as_me:$LINENO: checking for $ac_header" >&5
23143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23145   echo $ECHO_N "(cached) $ECHO_C" >&6
23146 fi
23147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23149 else
23150   # Is the header compilable?
23151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23153 cat >conftest.$ac_ext <<_ACEOF
23154 /* confdefs.h.  */
23155 _ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h.  */
23159 $ac_includes_default
23160 #include <$ac_header>
23161 _ACEOF
23162 rm -f conftest.$ac_objext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23164   (eval $ac_compile) 2>conftest.er1
23165   ac_status=$?
23166   grep -v '^ *+' conftest.er1 >conftest.err
23167   rm -f conftest.er1
23168   cat conftest.err >&5
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); } &&
23171          { ac_try='test -z "$ac_cxx_werror_flag"
23172                          || test ! -s conftest.err'
23173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174   (eval $ac_try) 2>&5
23175   ac_status=$?
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); }; } &&
23178          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23184   ac_header_compiler=yes
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ac_header_compiler=no
23190 fi
23191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23193 echo "${ECHO_T}$ac_header_compiler" >&6
23194
23195 # Is the header present?
23196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23198 cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h.  */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h.  */
23204 #include <$ac_header>
23205 _ACEOF
23206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23208   ac_status=$?
23209   grep -v '^ *+' conftest.er1 >conftest.err
23210   rm -f conftest.er1
23211   cat conftest.err >&5
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); } >/dev/null; then
23214   if test -s conftest.err; then
23215     ac_cpp_err=$ac_cxx_preproc_warn_flag
23216     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23217   else
23218     ac_cpp_err=
23219   fi
23220 else
23221   ac_cpp_err=yes
23222 fi
23223 if test -z "$ac_cpp_err"; then
23224   ac_header_preproc=yes
23225 else
23226   echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229   ac_header_preproc=no
23230 fi
23231 rm -f conftest.err conftest.$ac_ext
23232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23233 echo "${ECHO_T}$ac_header_preproc" >&6
23234
23235 # So?  What about this header?
23236 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23237   yes:no: )
23238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23242     ac_header_preproc=yes
23243     ;;
23244   no:yes:* )
23245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23257     (
23258       cat <<\_ASBOX
23259 ## ----------------------------------------- ##
23260 ## Report this to wx-dev@lists.wxwidgets.org ##
23261 ## ----------------------------------------- ##
23262 _ASBOX
23263     ) |
23264       sed "s/^/$as_me: WARNING:     /" >&2
23265     ;;
23266 esac
23267 echo "$as_me:$LINENO: checking for $ac_header" >&5
23268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23270   echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272   eval "$as_ac_Header=\$ac_header_preproc"
23273 fi
23274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23276
23277 fi
23278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23279   cat >>confdefs.h <<_ACEOF
23280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23281 _ACEOF
23282
23283 fi
23284
23285 done
23286
23287
23288     if test "$ac_cv_header_iostream" = "yes" ; then
23289       :
23290     else
23291       cat >>confdefs.h <<\_ACEOF
23292 #define wxUSE_IOSTREAMH 1
23293 _ACEOF
23294
23295     fi
23296
23297     ac_ext=cc
23298 ac_cpp='$CXXCPP $CPPFLAGS'
23299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23302
23303
23304
23305
23306   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23307 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23308 if test "${wx_cv_cpp_bool+set}" = set; then
23309   echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311
23312
23313
23314     ac_ext=cc
23315 ac_cpp='$CXXCPP $CPPFLAGS'
23316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23319
23320
23321     cat >conftest.$ac_ext <<_ACEOF
23322 /* confdefs.h.  */
23323 _ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h.  */
23327
23328
23329 int
23330 main ()
23331 {
23332
23333         bool b = true;
23334
23335         return 0;
23336
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 rm -f conftest.$ac_objext
23342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23343   (eval $ac_compile) 2>conftest.er1
23344   ac_status=$?
23345   grep -v '^ *+' conftest.er1 >conftest.err
23346   rm -f conftest.er1
23347   cat conftest.err >&5
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); } &&
23350          { ac_try='test -z "$ac_cxx_werror_flag"
23351                          || test ! -s conftest.err'
23352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353   (eval $ac_try) 2>&5
23354   ac_status=$?
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); }; } &&
23357          { ac_try='test -s conftest.$ac_objext'
23358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359   (eval $ac_try) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); }; }; then
23363
23364         wx_cv_cpp_bool=yes
23365
23366 else
23367   echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23369
23370
23371         wx_cv_cpp_bool=no
23372
23373
23374 fi
23375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23376
23377     ac_ext=cc
23378 ac_cpp='$CXXCPP $CPPFLAGS'
23379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23382
23383
23384 fi
23385 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23386 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23387
23388   if test "$wx_cv_cpp_bool" = "yes"; then
23389     cat >>confdefs.h <<\_ACEOF
23390 #define HAVE_BOOL 1
23391 _ACEOF
23392
23393   fi
23394
23395
23396
23397   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23398 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23399 if test "${wx_cv_explicit+set}" = set; then
23400   echo $ECHO_N "(cached) $ECHO_C" >&6
23401 else
23402
23403
23404
23405     ac_ext=cc
23406 ac_cpp='$CXXCPP $CPPFLAGS'
23407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23410
23411
23412             cat >conftest.$ac_ext <<_ACEOF
23413 /* confdefs.h.  */
23414 _ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h.  */
23418
23419         class Foo { public: explicit Foo(int) {} };
23420
23421 int
23422 main ()
23423 {
23424
23425         return 0;
23426
23427   ;
23428   return 0;
23429 }
23430 _ACEOF
23431 rm -f conftest.$ac_objext
23432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23433   (eval $ac_compile) 2>conftest.er1
23434   ac_status=$?
23435   grep -v '^ *+' conftest.er1 >conftest.err
23436   rm -f conftest.er1
23437   cat conftest.err >&5
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); } &&
23440          { ac_try='test -z "$ac_cxx_werror_flag"
23441                          || test ! -s conftest.err'
23442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443   (eval $ac_try) 2>&5
23444   ac_status=$?
23445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446   (exit $ac_status); }; } &&
23447          { ac_try='test -s conftest.$ac_objext'
23448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449   (eval $ac_try) 2>&5
23450   ac_status=$?
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); }; }; then
23453
23454         cat >conftest.$ac_ext <<_ACEOF
23455 /* confdefs.h.  */
23456 _ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h.  */
23460
23461                 class Foo { public: explicit Foo(int) {} };
23462                 static void TakeFoo(const Foo& foo) { }
23463
23464 int
23465 main ()
23466 {
23467
23468                 TakeFoo(17);
23469                 return 0;
23470
23471   ;
23472   return 0;
23473 }
23474 _ACEOF
23475 rm -f conftest.$ac_objext
23476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23477   (eval $ac_compile) 2>conftest.er1
23478   ac_status=$?
23479   grep -v '^ *+' conftest.er1 >conftest.err
23480   rm -f conftest.er1
23481   cat conftest.err >&5
23482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483   (exit $ac_status); } &&
23484          { ac_try='test -z "$ac_cxx_werror_flag"
23485                          || test ! -s conftest.err'
23486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23487   (eval $ac_try) 2>&5
23488   ac_status=$?
23489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490   (exit $ac_status); }; } &&
23491          { ac_try='test -s conftest.$ac_objext'
23492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493   (eval $ac_try) 2>&5
23494   ac_status=$?
23495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496   (exit $ac_status); }; }; then
23497   wx_cv_explicit=no
23498 else
23499   echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23501
23502 wx_cv_explicit=yes
23503
23504 fi
23505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23506
23507 else
23508   echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23510
23511 wx_cv_explicit=no
23512
23513 fi
23514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23515
23516     ac_ext=cc
23517 ac_cpp='$CXXCPP $CPPFLAGS'
23518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23521
23522
23523 fi
23524 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23525 echo "${ECHO_T}$wx_cv_explicit" >&6
23526
23527   if test "$wx_cv_explicit" = "yes"; then
23528     cat >>confdefs.h <<\_ACEOF
23529 #define HAVE_EXPLICIT 1
23530 _ACEOF
23531
23532   fi
23533
23534
23535 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23536 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23537 if test "${ac_cv_cxx_const_cast+set}" = set; then
23538   echo $ECHO_N "(cached) $ECHO_C" >&6
23539 else
23540
23541
23542  ac_ext=cc
23543 ac_cpp='$CXXCPP $CPPFLAGS'
23544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23547
23548  cat >conftest.$ac_ext <<_ACEOF
23549 /* confdefs.h.  */
23550 _ACEOF
23551 cat confdefs.h >>conftest.$ac_ext
23552 cat >>conftest.$ac_ext <<_ACEOF
23553 /* end confdefs.h.  */
23554
23555 int
23556 main ()
23557 {
23558 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23559   ;
23560   return 0;
23561 }
23562 _ACEOF
23563 rm -f conftest.$ac_objext
23564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23565   (eval $ac_compile) 2>conftest.er1
23566   ac_status=$?
23567   grep -v '^ *+' conftest.er1 >conftest.err
23568   rm -f conftest.er1
23569   cat conftest.err >&5
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); } &&
23572          { ac_try='test -z "$ac_cxx_werror_flag"
23573                          || test ! -s conftest.err'
23574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575   (eval $ac_try) 2>&5
23576   ac_status=$?
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); }; } &&
23579          { ac_try='test -s conftest.$ac_objext'
23580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581   (eval $ac_try) 2>&5
23582   ac_status=$?
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); }; }; then
23585   ac_cv_cxx_const_cast=yes
23586 else
23587   echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23589
23590 ac_cv_cxx_const_cast=no
23591 fi
23592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23593  ac_ext=cc
23594 ac_cpp='$CXXCPP $CPPFLAGS'
23595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23598
23599
23600 fi
23601 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23602 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23603 if test "$ac_cv_cxx_const_cast" = yes; then
23604
23605 cat >>confdefs.h <<\_ACEOF
23606 #define HAVE_CONST_CAST
23607 _ACEOF
23608
23609 fi
23610
23611 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23612 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23613 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23614   echo $ECHO_N "(cached) $ECHO_C" >&6
23615 else
23616
23617
23618  ac_ext=cc
23619 ac_cpp='$CXXCPP $CPPFLAGS'
23620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23623
23624  cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h.  */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h.  */
23630 #include <typeinfo>
23631 class Base { public : Base () {} virtual void f () = 0;};
23632 class Derived : public Base { public : Derived () {} virtual void f () {} };
23633 class Unrelated { public : Unrelated () {} };
23634 int g (Unrelated&) { return 0; }
23635 int
23636 main ()
23637 {
23638
23639 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23640   ;
23641   return 0;
23642 }
23643 _ACEOF
23644 rm -f conftest.$ac_objext
23645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23646   (eval $ac_compile) 2>conftest.er1
23647   ac_status=$?
23648   grep -v '^ *+' conftest.er1 >conftest.err
23649   rm -f conftest.er1
23650   cat conftest.err >&5
23651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652   (exit $ac_status); } &&
23653          { ac_try='test -z "$ac_cxx_werror_flag"
23654                          || test ! -s conftest.err'
23655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656   (eval $ac_try) 2>&5
23657   ac_status=$?
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); }; } &&
23660          { ac_try='test -s conftest.$ac_objext'
23661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662   (eval $ac_try) 2>&5
23663   ac_status=$?
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); }; }; then
23666   ac_cv_cxx_reinterpret_cast=yes
23667 else
23668   echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23670
23671 ac_cv_cxx_reinterpret_cast=no
23672 fi
23673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23674  ac_ext=cc
23675 ac_cpp='$CXXCPP $CPPFLAGS'
23676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23679
23680
23681 fi
23682 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23683 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23684 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23685
23686 cat >>confdefs.h <<\_ACEOF
23687 #define HAVE_REINTERPRET_CAST
23688 _ACEOF
23689
23690 fi
23691
23692 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23693 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23694 if test "${ac_cv_cxx_static_cast+set}" = set; then
23695   echo $ECHO_N "(cached) $ECHO_C" >&6
23696 else
23697
23698
23699  ac_ext=cc
23700 ac_cpp='$CXXCPP $CPPFLAGS'
23701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23704
23705  cat >conftest.$ac_ext <<_ACEOF
23706 /* confdefs.h.  */
23707 _ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h.  */
23711 #include <typeinfo>
23712 class Base { public : Base () {} virtual void f () = 0; };
23713 class Derived : public Base { public : Derived () {} virtual void f () {} };
23714 int g (Derived&) { return 0; }
23715 int
23716 main ()
23717 {
23718
23719 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23720   ;
23721   return 0;
23722 }
23723 _ACEOF
23724 rm -f conftest.$ac_objext
23725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23726   (eval $ac_compile) 2>conftest.er1
23727   ac_status=$?
23728   grep -v '^ *+' conftest.er1 >conftest.err
23729   rm -f conftest.er1
23730   cat conftest.err >&5
23731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732   (exit $ac_status); } &&
23733          { ac_try='test -z "$ac_cxx_werror_flag"
23734                          || test ! -s conftest.err'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; } &&
23740          { ac_try='test -s conftest.$ac_objext'
23741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742   (eval $ac_try) 2>&5
23743   ac_status=$?
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); }; }; then
23746   ac_cv_cxx_static_cast=yes
23747 else
23748   echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23750
23751 ac_cv_cxx_static_cast=no
23752 fi
23753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23754  ac_ext=cc
23755 ac_cpp='$CXXCPP $CPPFLAGS'
23756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23759
23760
23761 fi
23762 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23763 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23764 if test "$ac_cv_cxx_static_cast" = yes; then
23765
23766 cat >>confdefs.h <<\_ACEOF
23767 #define HAVE_STATIC_CAST
23768 _ACEOF
23769
23770 fi
23771
23772
23773 if test "x$SUNCXX" = xyes; then
23774     CXXFLAGS="-features=tmplife $CXXFLAGS"
23775 fi
23776
23777 if test "x$SUNCC" = xyes; then
23778     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23779 fi
23780
23781 if test "x$SGICC" = "xyes"; then
23782     CFLAGS="-woff 3970 $CFLAGS"
23783 fi
23784 if test "x$SGICXX" = "xyes"; then
23785     CXXFLAGS="-woff 3970 $CXXFLAGS"
23786 fi
23787
23788 if test "x$HPCC" = "xyes"; then
23789                     CFLAGS="+W 2011,2450 $CFLAGS"
23790 fi
23791 if test "x$HPCXX" = "xyes"; then
23792             CXXFLAGS="+W 2340 $CXXFLAGS"
23793 fi
23794
23795 if test "x$COMPAQCXX" = "xyes"; then
23796                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23797 fi
23798
23799 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23800     if test "$wxUSE_UNICODE" = "yes"; then
23801         std_string="std::wstring"
23802         char_type="wchar_t"
23803     else
23804         std_string="std::string"
23805         char_type="char"
23806     fi
23807
23808         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23809 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23810     cat >conftest.$ac_ext <<_ACEOF
23811 /* confdefs.h.  */
23812 _ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h.  */
23816 #include <string>
23817 int
23818 main ()
23819 {
23820 $std_string foo;
23821   ;
23822   return 0;
23823 }
23824 _ACEOF
23825 rm -f conftest.$ac_objext
23826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23827   (eval $ac_compile) 2>conftest.er1
23828   ac_status=$?
23829   grep -v '^ *+' conftest.er1 >conftest.err
23830   rm -f conftest.er1
23831   cat conftest.err >&5
23832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833   (exit $ac_status); } &&
23834          { ac_try='test -z "$ac_cxx_werror_flag"
23835                          || test ! -s conftest.err'
23836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837   (eval $ac_try) 2>&5
23838   ac_status=$?
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); }; } &&
23841          { ac_try='test -s conftest.$ac_objext'
23842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843   (eval $ac_try) 2>&5
23844   ac_status=$?
23845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846   (exit $ac_status); }; }; then
23847   echo "$as_me:$LINENO: result: yes" >&5
23848 echo "${ECHO_T}yes" >&6
23849                     cat >>confdefs.h <<\_ACEOF
23850 #define HAVE_STD_WSTRING 1
23851 _ACEOF
23852
23853 else
23854   echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23856
23857 echo "$as_me:$LINENO: result: no" >&5
23858 echo "${ECHO_T}no" >&6
23859                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23860 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23861                     cat >conftest.$ac_ext <<_ACEOF
23862 /* confdefs.h.  */
23863 _ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h.  */
23867
23868                         #ifdef HAVE_WCHAR_H
23869                         #  ifdef __CYGWIN__
23870                         #    include <stddef.h>
23871                         #  endif
23872                         #  include <wchar.h>
23873                         #endif
23874                         #ifdef HAVE_STDLIB_H
23875                         #  include <stdlib.h>
23876                         #endif
23877                         #include <stdio.h>
23878                         #include <string>
23879
23880 int
23881 main ()
23882 {
23883 std::basic_string<$char_type> foo;
23884                          const $char_type* dummy = foo.c_str();
23885   ;
23886   return 0;
23887 }
23888 _ACEOF
23889 rm -f conftest.$ac_objext
23890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23891   (eval $ac_compile) 2>conftest.er1
23892   ac_status=$?
23893   grep -v '^ *+' conftest.er1 >conftest.err
23894   rm -f conftest.er1
23895   cat conftest.err >&5
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); } &&
23898          { ac_try='test -z "$ac_cxx_werror_flag"
23899                          || test ! -s conftest.err'
23900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23901   (eval $ac_try) 2>&5
23902   ac_status=$?
23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904   (exit $ac_status); }; } &&
23905          { ac_try='test -s conftest.$ac_objext'
23906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23907   (eval $ac_try) 2>&5
23908   ac_status=$?
23909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910   (exit $ac_status); }; }; then
23911   echo "$as_me:$LINENO: result: yes" >&5
23912 echo "${ECHO_T}yes" >&6
23913 else
23914   echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23916
23917 echo "$as_me:$LINENO: result: no" >&5
23918 echo "${ECHO_T}no" >&6
23919                          if test "$wxUSE_STL" = "yes"; then
23920                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23921 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23922    { (exit 1); exit 1; }; }
23923                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23924                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23925 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23926    { (exit 1); exit 1; }; }
23927                          else
23928                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23929 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23930                              wxUSE_STD_STRING=no
23931                          fi
23932
23933
23934 fi
23935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23936
23937 fi
23938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23939 fi
23940
23941 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23942     echo "$as_me:$LINENO: checking for std::istream" >&5
23943 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23944 if test "${ac_cv_type_std__istream+set}" = set; then
23945   echo $ECHO_N "(cached) $ECHO_C" >&6
23946 else
23947   cat >conftest.$ac_ext <<_ACEOF
23948 /* confdefs.h.  */
23949 _ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h.  */
23953 #include <iostream>
23954
23955 int
23956 main ()
23957 {
23958 if ((std::istream *) 0)
23959   return 0;
23960 if (sizeof (std::istream))
23961   return 0;
23962   ;
23963   return 0;
23964 }
23965 _ACEOF
23966 rm -f conftest.$ac_objext
23967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23968   (eval $ac_compile) 2>conftest.er1
23969   ac_status=$?
23970   grep -v '^ *+' conftest.er1 >conftest.err
23971   rm -f conftest.er1
23972   cat conftest.err >&5
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); } &&
23975          { ac_try='test -z "$ac_cxx_werror_flag"
23976                          || test ! -s conftest.err'
23977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23978   (eval $ac_try) 2>&5
23979   ac_status=$?
23980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981   (exit $ac_status); }; } &&
23982          { ac_try='test -s conftest.$ac_objext'
23983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23984   (eval $ac_try) 2>&5
23985   ac_status=$?
23986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987   (exit $ac_status); }; }; then
23988   ac_cv_type_std__istream=yes
23989 else
23990   echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23992
23993 ac_cv_type_std__istream=no
23994 fi
23995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23996 fi
23997 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23998 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23999 if test $ac_cv_type_std__istream = yes; then
24000
24001 cat >>confdefs.h <<_ACEOF
24002 #define HAVE_STD__ISTREAM 1
24003 _ACEOF
24004
24005
24006 else
24007   wxUSE_STD_IOSTREAM=no
24008 fi
24009 echo "$as_me:$LINENO: checking for std::ostream" >&5
24010 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
24011 if test "${ac_cv_type_std__ostream+set}" = set; then
24012   echo $ECHO_N "(cached) $ECHO_C" >&6
24013 else
24014   cat >conftest.$ac_ext <<_ACEOF
24015 /* confdefs.h.  */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h.  */
24020 #include <iostream>
24021
24022 int
24023 main ()
24024 {
24025 if ((std::ostream *) 0)
24026   return 0;
24027 if (sizeof (std::ostream))
24028   return 0;
24029   ;
24030   return 0;
24031 }
24032 _ACEOF
24033 rm -f conftest.$ac_objext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24035   (eval $ac_compile) 2>conftest.er1
24036   ac_status=$?
24037   grep -v '^ *+' conftest.er1 >conftest.err
24038   rm -f conftest.er1
24039   cat conftest.err >&5
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); } &&
24042          { ac_try='test -z "$ac_cxx_werror_flag"
24043                          || test ! -s conftest.err'
24044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24045   (eval $ac_try) 2>&5
24046   ac_status=$?
24047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048   (exit $ac_status); }; } &&
24049          { ac_try='test -s conftest.$ac_objext'
24050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051   (eval $ac_try) 2>&5
24052   ac_status=$?
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); }; }; then
24055   ac_cv_type_std__ostream=yes
24056 else
24057   echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24059
24060 ac_cv_type_std__ostream=no
24061 fi
24062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24063 fi
24064 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24065 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
24066 if test $ac_cv_type_std__ostream = yes; then
24067
24068 cat >>confdefs.h <<_ACEOF
24069 #define HAVE_STD__OSTREAM 1
24070 _ACEOF
24071
24072
24073 else
24074   wxUSE_STD_IOSTREAM=no
24075 fi
24076
24077
24078     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24079         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
24080             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24081 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24082    { (exit 1); exit 1; }; }
24083         else
24084             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24085 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24086         fi
24087     fi
24088 fi
24089
24090 if test "$wxUSE_STL" = "yes"; then
24091         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24092 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
24093     cat >conftest.$ac_ext <<_ACEOF
24094 /* confdefs.h.  */
24095 _ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h.  */
24099 #include <string>
24100                     #include <functional>
24101                     #include <algorithm>
24102                     #include <vector>
24103                     #include <list>
24104 int
24105 main ()
24106 {
24107 std::vector<int> moo;
24108                      std::list<int> foo;
24109                      std::vector<int>::iterator it =
24110                          std::find_if(moo.begin(), moo.end(),
24111                                       std::bind2nd(std::less<int>(), 3));
24112   ;
24113   return 0;
24114 }
24115 _ACEOF
24116 rm -f conftest.$ac_objext
24117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24118   (eval $ac_compile) 2>conftest.er1
24119   ac_status=$?
24120   grep -v '^ *+' conftest.er1 >conftest.err
24121   rm -f conftest.er1
24122   cat conftest.err >&5
24123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124   (exit $ac_status); } &&
24125          { ac_try='test -z "$ac_cxx_werror_flag"
24126                          || test ! -s conftest.err'
24127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24128   (eval $ac_try) 2>&5
24129   ac_status=$?
24130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131   (exit $ac_status); }; } &&
24132          { ac_try='test -s conftest.$ac_objext'
24133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134   (eval $ac_try) 2>&5
24135   ac_status=$?
24136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); }; }; then
24138   echo "$as_me:$LINENO: result: yes" >&5
24139 echo "${ECHO_T}yes" >&6
24140 else
24141   echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144 echo "$as_me:$LINENO: result: no" >&5
24145 echo "${ECHO_T}no" >&6
24146                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
24147 echo "$as_me: error: Basic STL functionality missing" >&2;}
24148    { (exit 1); exit 1; }; }
24149 fi
24150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24151
24152         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24153 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24154     cat >conftest.$ac_ext <<_ACEOF
24155 /* confdefs.h.  */
24156 _ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h.  */
24160 #include <string>
24161 int
24162 main ()
24163 {
24164 std::string foo, bar;
24165                     foo.compare(bar);
24166                     foo.compare(1, 1, bar);
24167                     foo.compare(1, 1, bar, 1, 1);
24168                     foo.compare("");
24169                     foo.compare(1, 1, "");
24170                     foo.compare(1, 1, "", 2);
24171   ;
24172   return 0;
24173 }
24174 _ACEOF
24175 rm -f conftest.$ac_objext
24176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24177   (eval $ac_compile) 2>conftest.er1
24178   ac_status=$?
24179   grep -v '^ *+' conftest.er1 >conftest.err
24180   rm -f conftest.er1
24181   cat conftest.err >&5
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); } &&
24184          { ac_try='test -z "$ac_cxx_werror_flag"
24185                          || test ! -s conftest.err'
24186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187   (eval $ac_try) 2>&5
24188   ac_status=$?
24189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); }; } &&
24191          { ac_try='test -s conftest.$ac_objext'
24192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24193   (eval $ac_try) 2>&5
24194   ac_status=$?
24195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196   (exit $ac_status); }; }; then
24197   echo "$as_me:$LINENO: result: yes" >&5
24198 echo "${ECHO_T}yes" >&6
24199                     cat >>confdefs.h <<\_ACEOF
24200 #define HAVE_STD_STRING_COMPARE 1
24201 _ACEOF
24202
24203 else
24204   echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24206
24207 echo "$as_me:$LINENO: result: no" >&5
24208 echo "${ECHO_T}no" >&6
24209 fi
24210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24211
24212         if test "${ac_cv_header_hash_map+set}" = set; then
24213   echo "$as_me:$LINENO: checking for hash_map" >&5
24214 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24215 if test "${ac_cv_header_hash_map+set}" = set; then
24216   echo $ECHO_N "(cached) $ECHO_C" >&6
24217 fi
24218 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24219 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24220 else
24221   # Is the header compilable?
24222 echo "$as_me:$LINENO: checking hash_map usability" >&5
24223 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24224 cat >conftest.$ac_ext <<_ACEOF
24225 /* confdefs.h.  */
24226 _ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h.  */
24230 $ac_includes_default
24231 #include <hash_map>
24232 _ACEOF
24233 rm -f conftest.$ac_objext
24234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24235   (eval $ac_compile) 2>conftest.er1
24236   ac_status=$?
24237   grep -v '^ *+' conftest.er1 >conftest.err
24238   rm -f conftest.er1
24239   cat conftest.err >&5
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); } &&
24242          { ac_try='test -z "$ac_cxx_werror_flag"
24243                          || test ! -s conftest.err'
24244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245   (eval $ac_try) 2>&5
24246   ac_status=$?
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); }; } &&
24249          { ac_try='test -s conftest.$ac_objext'
24250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251   (eval $ac_try) 2>&5
24252   ac_status=$?
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); }; }; then
24255   ac_header_compiler=yes
24256 else
24257   echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24259
24260 ac_header_compiler=no
24261 fi
24262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24264 echo "${ECHO_T}$ac_header_compiler" >&6
24265
24266 # Is the header present?
24267 echo "$as_me:$LINENO: checking hash_map presence" >&5
24268 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24269 cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h.  */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h.  */
24275 #include <hash_map>
24276 _ACEOF
24277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24279   ac_status=$?
24280   grep -v '^ *+' conftest.er1 >conftest.err
24281   rm -f conftest.er1
24282   cat conftest.err >&5
24283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); } >/dev/null; then
24285   if test -s conftest.err; then
24286     ac_cpp_err=$ac_cxx_preproc_warn_flag
24287     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24288   else
24289     ac_cpp_err=
24290   fi
24291 else
24292   ac_cpp_err=yes
24293 fi
24294 if test -z "$ac_cpp_err"; then
24295   ac_header_preproc=yes
24296 else
24297   echo "$as_me: failed program was:" >&5
24298 sed 's/^/| /' conftest.$ac_ext >&5
24299
24300   ac_header_preproc=no
24301 fi
24302 rm -f conftest.err conftest.$ac_ext
24303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24304 echo "${ECHO_T}$ac_header_preproc" >&6
24305
24306 # So?  What about this header?
24307 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24308   yes:no: )
24309     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24310 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
24311     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24312 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24313     ac_header_preproc=yes
24314     ;;
24315   no:yes:* )
24316     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24317 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
24318     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
24319 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
24320     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24321 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24322     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
24323 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
24324     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24325 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
24326     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24327 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
24328     (
24329       cat <<\_ASBOX
24330 ## ----------------------------------------- ##
24331 ## Report this to wx-dev@lists.wxwidgets.org ##
24332 ## ----------------------------------------- ##
24333 _ASBOX
24334     ) |
24335       sed "s/^/$as_me: WARNING:     /" >&2
24336     ;;
24337 esac
24338 echo "$as_me:$LINENO: checking for hash_map" >&5
24339 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24340 if test "${ac_cv_header_hash_map+set}" = set; then
24341   echo $ECHO_N "(cached) $ECHO_C" >&6
24342 else
24343   ac_cv_header_hash_map=$ac_header_preproc
24344 fi
24345 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24346 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24347
24348 fi
24349 if test $ac_cv_header_hash_map = yes; then
24350   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24351 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24352                      cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h.  */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h.  */
24358 #include <hash_map>
24359                                      #include <hash_set>
24360 int
24361 main ()
24362 {
24363 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24364                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24365   ;
24366   return 0;
24367 }
24368 _ACEOF
24369 rm -f conftest.$ac_objext
24370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24371   (eval $ac_compile) 2>conftest.er1
24372   ac_status=$?
24373   grep -v '^ *+' conftest.er1 >conftest.err
24374   rm -f conftest.er1
24375   cat conftest.err >&5
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } &&
24378          { ac_try='test -z "$ac_cxx_werror_flag"
24379                          || test ! -s conftest.err'
24380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381   (eval $ac_try) 2>&5
24382   ac_status=$?
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); }; } &&
24385          { ac_try='test -s conftest.$ac_objext'
24386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387   (eval $ac_try) 2>&5
24388   ac_status=$?
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); }; }; then
24391   echo "$as_me:$LINENO: result: yes" >&5
24392 echo "${ECHO_T}yes" >&6
24393                                      cat >>confdefs.h <<\_ACEOF
24394 #define HAVE_HASH_MAP 1
24395 _ACEOF
24396
24397                                      cat >>confdefs.h <<\_ACEOF
24398 #define HAVE_STD_HASH_MAP 1
24399 _ACEOF
24400
24401 else
24402   echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24404
24405 echo "$as_me:$LINENO: result: no" >&5
24406 echo "${ECHO_T}no" >&6
24407 fi
24408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24409
24410 fi
24411
24412
24413
24414     if test "${ac_cv_header_ext_hash_map+set}" = set; then
24415   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24416 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24417 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24418   echo $ECHO_N "(cached) $ECHO_C" >&6
24419 fi
24420 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24421 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24422 else
24423   # Is the header compilable?
24424 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24425 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24426 cat >conftest.$ac_ext <<_ACEOF
24427 /* confdefs.h.  */
24428 _ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h.  */
24432 $ac_includes_default
24433 #include <ext/hash_map>
24434 _ACEOF
24435 rm -f conftest.$ac_objext
24436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24437   (eval $ac_compile) 2>conftest.er1
24438   ac_status=$?
24439   grep -v '^ *+' conftest.er1 >conftest.err
24440   rm -f conftest.er1
24441   cat conftest.err >&5
24442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443   (exit $ac_status); } &&
24444          { ac_try='test -z "$ac_cxx_werror_flag"
24445                          || test ! -s conftest.err'
24446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24447   (eval $ac_try) 2>&5
24448   ac_status=$?
24449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450   (exit $ac_status); }; } &&
24451          { ac_try='test -s conftest.$ac_objext'
24452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453   (eval $ac_try) 2>&5
24454   ac_status=$?
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); }; }; then
24457   ac_header_compiler=yes
24458 else
24459   echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24461
24462 ac_header_compiler=no
24463 fi
24464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24466 echo "${ECHO_T}$ac_header_compiler" >&6
24467
24468 # Is the header present?
24469 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24470 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24471 cat >conftest.$ac_ext <<_ACEOF
24472 /* confdefs.h.  */
24473 _ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h.  */
24477 #include <ext/hash_map>
24478 _ACEOF
24479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24481   ac_status=$?
24482   grep -v '^ *+' conftest.er1 >conftest.err
24483   rm -f conftest.er1
24484   cat conftest.err >&5
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); } >/dev/null; then
24487   if test -s conftest.err; then
24488     ac_cpp_err=$ac_cxx_preproc_warn_flag
24489     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24490   else
24491     ac_cpp_err=
24492   fi
24493 else
24494   ac_cpp_err=yes
24495 fi
24496 if test -z "$ac_cpp_err"; then
24497   ac_header_preproc=yes
24498 else
24499   echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24501
24502   ac_header_preproc=no
24503 fi
24504 rm -f conftest.err conftest.$ac_ext
24505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24506 echo "${ECHO_T}$ac_header_preproc" >&6
24507
24508 # So?  What about this header?
24509 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24510   yes:no: )
24511     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24512 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
24513     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24514 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24515     ac_header_preproc=yes
24516     ;;
24517   no:yes:* )
24518     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24519 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
24520     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
24521 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
24522     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24523 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24524     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
24525 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
24526     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24527 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
24528     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24529 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
24530     (
24531       cat <<\_ASBOX
24532 ## ----------------------------------------- ##
24533 ## Report this to wx-dev@lists.wxwidgets.org ##
24534 ## ----------------------------------------- ##
24535 _ASBOX
24536     ) |
24537       sed "s/^/$as_me: WARNING:     /" >&2
24538     ;;
24539 esac
24540 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24541 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24542 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24543   echo $ECHO_N "(cached) $ECHO_C" >&6
24544 else
24545   ac_cv_header_ext_hash_map=$ac_header_preproc
24546 fi
24547 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24548 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24549
24550 fi
24551 if test $ac_cv_header_ext_hash_map = yes; then
24552   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24553 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24554                      cat >conftest.$ac_ext <<_ACEOF
24555 /* confdefs.h.  */
24556 _ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h.  */
24560 #include <ext/hash_map>
24561                                      #include <ext/hash_set>
24562 int
24563 main ()
24564 {
24565 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24566                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24567   ;
24568   return 0;
24569 }
24570 _ACEOF
24571 rm -f conftest.$ac_objext
24572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24573   (eval $ac_compile) 2>conftest.er1
24574   ac_status=$?
24575   grep -v '^ *+' conftest.er1 >conftest.err
24576   rm -f conftest.er1
24577   cat conftest.err >&5
24578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579   (exit $ac_status); } &&
24580          { ac_try='test -z "$ac_cxx_werror_flag"
24581                          || test ! -s conftest.err'
24582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583   (eval $ac_try) 2>&5
24584   ac_status=$?
24585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); }; } &&
24587          { ac_try='test -s conftest.$ac_objext'
24588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589   (eval $ac_try) 2>&5
24590   ac_status=$?
24591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); }; }; then
24593   echo "$as_me:$LINENO: result: yes" >&5
24594 echo "${ECHO_T}yes" >&6
24595                                      cat >>confdefs.h <<\_ACEOF
24596 #define HAVE_EXT_HASH_MAP 1
24597 _ACEOF
24598
24599                                      cat >>confdefs.h <<\_ACEOF
24600 #define HAVE_GNU_CXX_HASH_MAP 1
24601 _ACEOF
24602
24603 else
24604   echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24606
24607 echo "$as_me:$LINENO: result: no" >&5
24608 echo "${ECHO_T}no" >&6
24609 fi
24610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24611
24612 fi
24613
24614
24615 fi
24616
24617
24618 SEARCH_INCLUDE="\
24619     /usr/local/include        \
24620                               \
24621     /usr/Motif-2.1/include    \
24622     /usr/Motif-1.2/include    \
24623     /usr/include/Motif1.2     \
24624                               \
24625     /usr/dt/include           \
24626     /usr/openwin/include      \
24627                               \
24628     /usr/include/Xm           \
24629                               \
24630     /usr/X11R6/include        \
24631     /usr/X11R6.4/include      \
24632     /usr/X11R5/include        \
24633     /usr/X11R4/include        \
24634                               \
24635     /usr/include/X11R6        \
24636     /usr/include/X11R5        \
24637     /usr/include/X11R4        \
24638                               \
24639     /usr/local/X11R6/include  \
24640     /usr/local/X11R5/include  \
24641     /usr/local/X11R4/include  \
24642                               \
24643     /usr/local/include/X11R6  \
24644     /usr/local/include/X11R5  \
24645     /usr/local/include/X11R4  \
24646                               \
24647     /usr/X11/include          \
24648     /usr/include/X11          \
24649     /usr/local/X11/include    \
24650     /usr/local/include/X11    \
24651                               \
24652     /usr/XFree86/include/X11  \
24653     /usr/pkg/include          \
24654                               \
24655     /usr/openwin/share/include"
24656
24657 echo "$as_me:$LINENO: checking for libraries directory" >&5
24658 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
24659
24660 case "${host}" in
24661     *-*-irix6* )
24662         if test "${wx_cv_std_libpath+set}" = set; then
24663   echo $ECHO_N "(cached) $ECHO_C" >&6
24664 else
24665
24666                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24667                     for e in a so sl dylib dll.a; do
24668                         libc="$d/libc.$e"
24669                         if test -f $libc; then
24670                             save_LIBS="$LIBS"
24671                             LIBS="$libc"
24672                             cat >conftest.$ac_ext <<_ACEOF
24673 int main() { return 0; }
24674 _ACEOF
24675 rm -f conftest.$ac_objext conftest$ac_exeext
24676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24677   (eval $ac_link) 2>conftest.er1
24678   ac_status=$?
24679   grep -v '^ *+' conftest.er1 >conftest.err
24680   rm -f conftest.er1
24681   cat conftest.err >&5
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); } &&
24684          { ac_try='test -z "$ac_cxx_werror_flag"
24685                          || test ! -s conftest.err'
24686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24687   (eval $ac_try) 2>&5
24688   ac_status=$?
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); }; } &&
24691          { ac_try='test -s conftest$ac_exeext'
24692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693   (eval $ac_try) 2>&5
24694   ac_status=$?
24695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696   (exit $ac_status); }; }; then
24697   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24698 else
24699   echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24701
24702 fi
24703 rm -f conftest.err conftest.$ac_objext \
24704       conftest$ac_exeext conftest.$ac_ext
24705                             LIBS="$save_LIBS"
24706                             if test "x$wx_cv_std_libpath" != "x"; then
24707                                 break 2
24708                             fi
24709                         fi
24710                     done
24711                 done
24712                 if test "x$wx_cv_std_libpath" = "x"; then
24713                     wx_cv_std_libpath="lib"
24714                 fi
24715
24716
24717 fi
24718
24719         ;;
24720
24721     *-*-solaris2* )
24722                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24723             wx_cv_std_libpath="lib/64"
24724         else
24725             wx_cv_std_libpath="lib"
24726         fi
24727         ;;
24728
24729     *-*-linux* )
24730                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24731                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24732             wx_cv_std_libpath="lib64"
24733         else
24734             wx_cv_std_libpath="lib"
24735         fi
24736         ;;
24737
24738     *)
24739         wx_cv_std_libpath="lib";
24740         ;;
24741 esac
24742
24743 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24744 echo "${ECHO_T}$wx_cv_std_libpath" >&6
24745
24746 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24747
24748 if test "$build" != "$host" -a "$GCC" = yes; then
24749                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24750         cross_root=`dirname $cross_root`
24751         cross_root=`dirname $cross_root`
24752
24753                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24754         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24755         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24756
24757                 if test -z "$PKG_CONFIG_PATH"; then
24758             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24759             export PKG_CONFIG_PATH
24760         fi
24761
24762                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24763
24764 ac_find_includes=
24765 for ac_dir in $SEARCH_INCLUDE /usr/include;
24766   do
24767     if test -f "$ac_dir/X11/Intrinsic.h"; then
24768       ac_find_includes=$ac_dir
24769       break
24770     fi
24771   done
24772
24773             x_includes=$ac_find_includes
24774         fi
24775         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24776
24777   ac_find_libraries=
24778   for ac_dir in $SEARCH_LIB;
24779   do
24780     for ac_extension in a so sl dylib dll.a; do
24781       if test -f "$ac_dir/libXt.$ac_extension"; then
24782         ac_find_libraries=$ac_dir
24783         break 2
24784       fi
24785     done
24786   done
24787
24788             x_libraries=$ac_find_libraries
24789         fi
24790     fi
24791 fi
24792
24793
24794 cat >confcache <<\_ACEOF
24795 # This file is a shell script that caches the results of configure
24796 # tests run on this system so they can be shared between configure
24797 # scripts and configure runs, see configure's option --config-cache.
24798 # It is not useful on other systems.  If it contains results you don't
24799 # want to keep, you may remove or edit it.
24800 #
24801 # config.status only pays attention to the cache file if you give it
24802 # the --recheck option to rerun configure.
24803 #
24804 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24805 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24806 # following values.
24807
24808 _ACEOF
24809
24810 # The following way of writing the cache mishandles newlines in values,
24811 # but we know of no workaround that is simple, portable, and efficient.
24812 # So, don't put newlines in cache variables' values.
24813 # Ultrix sh set writes to stderr and can't be redirected directly,
24814 # and sets the high bit in the cache file unless we assign to the vars.
24815 {
24816   (set) 2>&1 |
24817     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24818     *ac_space=\ *)
24819       # `set' does not quote correctly, so add quotes (double-quote
24820       # substitution turns \\\\ into \\, and sed turns \\ into \).
24821       sed -n \
24822         "s/'/'\\\\''/g;
24823           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24824       ;;
24825     *)
24826       # `set' quotes correctly as required by POSIX, so do not add quotes.
24827       sed -n \
24828         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24829       ;;
24830     esac;
24831 } |
24832   sed '
24833      t clear
24834      : clear
24835      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24836      t end
24837      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24838      : end' >>confcache
24839 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24840   if test -w $cache_file; then
24841     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24842     cat confcache >$cache_file
24843   else
24844     echo "not updating unwritable cache $cache_file"
24845   fi
24846 fi
24847 rm -f confcache
24848
24849 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24850     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24851 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24852 if test "${wx_cv_lib_glibc21+set}" = set; then
24853   echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855
24856         cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862 #include <features.h>
24863 int
24864 main ()
24865 {
24866
24867                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24868                 not glibc 2.1
24869                 #endif
24870
24871   ;
24872   return 0;
24873 }
24874 _ACEOF
24875 rm -f conftest.$ac_objext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24877   (eval $ac_compile) 2>conftest.er1
24878   ac_status=$?
24879   grep -v '^ *+' conftest.er1 >conftest.err
24880   rm -f conftest.er1
24881   cat conftest.err >&5
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); } &&
24884          { ac_try='test -z "$ac_cxx_werror_flag"
24885                          || test ! -s conftest.err'
24886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887   (eval $ac_try) 2>&5
24888   ac_status=$?
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); }; } &&
24891          { ac_try='test -s conftest.$ac_objext'
24892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893   (eval $ac_try) 2>&5
24894   ac_status=$?
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); }; }; then
24897
24898                 wx_cv_lib_glibc21=yes
24899
24900 else
24901   echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24903
24904
24905                 wx_cv_lib_glibc21=no
24906
24907
24908 fi
24909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24910
24911 fi
24912 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24913 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24914     if test "$wx_cv_lib_glibc21" = "yes"; then
24915         cat >>confdefs.h <<\_ACEOF
24916 #define wxHAVE_GLIBC2 1
24917 _ACEOF
24918
24919     fi
24920 fi
24921
24922 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24923     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24924         cat >>confdefs.h <<\_ACEOF
24925 #define _GNU_SOURCE 1
24926 _ACEOF
24927
24928     fi
24929 fi
24930
24931 have_cos=0
24932 have_floor=0
24933
24934 for ac_func in cos
24935 do
24936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24937 echo "$as_me:$LINENO: checking for $ac_func" >&5
24938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24939 if eval "test \"\${$as_ac_var+set}\" = set"; then
24940   echo $ECHO_N "(cached) $ECHO_C" >&6
24941 else
24942   cat >conftest.$ac_ext <<_ACEOF
24943 /* confdefs.h.  */
24944 _ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h.  */
24948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24950 #define $ac_func innocuous_$ac_func
24951
24952 /* System header to define __stub macros and hopefully few prototypes,
24953     which can conflict with char $ac_func (); below.
24954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24955     <limits.h> exists even on freestanding compilers.  */
24956
24957 #ifdef __STDC__
24958 # include <limits.h>
24959 #else
24960 # include <assert.h>
24961 #endif
24962
24963 #undef $ac_func
24964
24965 /* Override any gcc2 internal prototype to avoid an error.  */
24966 #ifdef __cplusplus
24967 extern "C"
24968 {
24969 #endif
24970 /* We use char because int might match the return type of a gcc2
24971    builtin and then its argument prototype would still apply.  */
24972 char $ac_func ();
24973 /* The GNU C library defines this for functions which it implements
24974     to always fail with ENOSYS.  Some functions are actually named
24975     something starting with __ and the normal name is an alias.  */
24976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24977 choke me
24978 #else
24979 char (*f) () = $ac_func;
24980 #endif
24981 #ifdef __cplusplus
24982 }
24983 #endif
24984
24985 int
24986 main ()
24987 {
24988 return f != $ac_func;
24989   ;
24990   return 0;
24991 }
24992 _ACEOF
24993 rm -f conftest.$ac_objext conftest$ac_exeext
24994 if { (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_cxx_werror_flag"
25003                          || test ! -s conftest.err'
25004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005   (eval $ac_try) 2>&5
25006   ac_status=$?
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); }; } &&
25009          { ac_try='test -s conftest$ac_exeext'
25010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011   (eval $ac_try) 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); }; }; then
25015   eval "$as_ac_var=yes"
25016 else
25017   echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25019
25020 eval "$as_ac_var=no"
25021 fi
25022 rm -f conftest.err conftest.$ac_objext \
25023       conftest$ac_exeext conftest.$ac_ext
25024 fi
25025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25027 if test `eval echo '${'$as_ac_var'}'` = yes; then
25028   cat >>confdefs.h <<_ACEOF
25029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25030 _ACEOF
25031  have_cos=1
25032 fi
25033 done
25034
25035
25036 for ac_func in floor
25037 do
25038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25039 echo "$as_me:$LINENO: checking for $ac_func" >&5
25040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25041 if eval "test \"\${$as_ac_var+set}\" = set"; then
25042   echo $ECHO_N "(cached) $ECHO_C" >&6
25043 else
25044   cat >conftest.$ac_ext <<_ACEOF
25045 /* confdefs.h.  */
25046 _ACEOF
25047 cat confdefs.h >>conftest.$ac_ext
25048 cat >>conftest.$ac_ext <<_ACEOF
25049 /* end confdefs.h.  */
25050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25052 #define $ac_func innocuous_$ac_func
25053
25054 /* System header to define __stub macros and hopefully few prototypes,
25055     which can conflict with char $ac_func (); below.
25056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25057     <limits.h> exists even on freestanding compilers.  */
25058
25059 #ifdef __STDC__
25060 # include <limits.h>
25061 #else
25062 # include <assert.h>
25063 #endif
25064
25065 #undef $ac_func
25066
25067 /* Override any gcc2 internal prototype to avoid an error.  */
25068 #ifdef __cplusplus
25069 extern "C"
25070 {
25071 #endif
25072 /* We use char because int might match the return type of a gcc2
25073    builtin and then its argument prototype would still apply.  */
25074 char $ac_func ();
25075 /* The GNU C library defines this for functions which it implements
25076     to always fail with ENOSYS.  Some functions are actually named
25077     something starting with __ and the normal name is an alias.  */
25078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25079 choke me
25080 #else
25081 char (*f) () = $ac_func;
25082 #endif
25083 #ifdef __cplusplus
25084 }
25085 #endif
25086
25087 int
25088 main ()
25089 {
25090 return f != $ac_func;
25091   ;
25092   return 0;
25093 }
25094 _ACEOF
25095 rm -f conftest.$ac_objext conftest$ac_exeext
25096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25097   (eval $ac_link) 2>conftest.er1
25098   ac_status=$?
25099   grep -v '^ *+' conftest.er1 >conftest.err
25100   rm -f conftest.er1
25101   cat conftest.err >&5
25102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103   (exit $ac_status); } &&
25104          { ac_try='test -z "$ac_cxx_werror_flag"
25105                          || test ! -s conftest.err'
25106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107   (eval $ac_try) 2>&5
25108   ac_status=$?
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); }; } &&
25111          { ac_try='test -s conftest$ac_exeext'
25112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113   (eval $ac_try) 2>&5
25114   ac_status=$?
25115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116   (exit $ac_status); }; }; then
25117   eval "$as_ac_var=yes"
25118 else
25119   echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25121
25122 eval "$as_ac_var=no"
25123 fi
25124 rm -f conftest.err conftest.$ac_objext \
25125       conftest$ac_exeext conftest.$ac_ext
25126 fi
25127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25129 if test `eval echo '${'$as_ac_var'}'` = yes; then
25130   cat >>confdefs.h <<_ACEOF
25131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25132 _ACEOF
25133  have_floor=1
25134 fi
25135 done
25136
25137 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25138 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
25139 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25140     echo "$as_me:$LINENO: result: yes" >&5
25141 echo "${ECHO_T}yes" >&6
25142 else
25143     echo "$as_me:$LINENO: result: no" >&5
25144 echo "${ECHO_T}no" >&6
25145     LIBS="$LIBS -lm"
25146     # use different functions to avoid configure caching
25147     have_sin=0
25148     have_ceil=0
25149
25150 for ac_func in sin
25151 do
25152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25153 echo "$as_me:$LINENO: checking for $ac_func" >&5
25154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25155 if eval "test \"\${$as_ac_var+set}\" = set"; then
25156   echo $ECHO_N "(cached) $ECHO_C" >&6
25157 else
25158   cat >conftest.$ac_ext <<_ACEOF
25159 /* confdefs.h.  */
25160 _ACEOF
25161 cat confdefs.h >>conftest.$ac_ext
25162 cat >>conftest.$ac_ext <<_ACEOF
25163 /* end confdefs.h.  */
25164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25166 #define $ac_func innocuous_$ac_func
25167
25168 /* System header to define __stub macros and hopefully few prototypes,
25169     which can conflict with char $ac_func (); below.
25170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25171     <limits.h> exists even on freestanding compilers.  */
25172
25173 #ifdef __STDC__
25174 # include <limits.h>
25175 #else
25176 # include <assert.h>
25177 #endif
25178
25179 #undef $ac_func
25180
25181 /* Override any gcc2 internal prototype to avoid an error.  */
25182 #ifdef __cplusplus
25183 extern "C"
25184 {
25185 #endif
25186 /* We use char because int might match the return type of a gcc2
25187    builtin and then its argument prototype would still apply.  */
25188 char $ac_func ();
25189 /* The GNU C library defines this for functions which it implements
25190     to always fail with ENOSYS.  Some functions are actually named
25191     something starting with __ and the normal name is an alias.  */
25192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25193 choke me
25194 #else
25195 char (*f) () = $ac_func;
25196 #endif
25197 #ifdef __cplusplus
25198 }
25199 #endif
25200
25201 int
25202 main ()
25203 {
25204 return f != $ac_func;
25205   ;
25206   return 0;
25207 }
25208 _ACEOF
25209 rm -f conftest.$ac_objext conftest$ac_exeext
25210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25211   (eval $ac_link) 2>conftest.er1
25212   ac_status=$?
25213   grep -v '^ *+' conftest.er1 >conftest.err
25214   rm -f conftest.er1
25215   cat conftest.err >&5
25216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217   (exit $ac_status); } &&
25218          { ac_try='test -z "$ac_cxx_werror_flag"
25219                          || test ! -s conftest.err'
25220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25221   (eval $ac_try) 2>&5
25222   ac_status=$?
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); }; } &&
25225          { ac_try='test -s conftest$ac_exeext'
25226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25227   (eval $ac_try) 2>&5
25228   ac_status=$?
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); }; }; then
25231   eval "$as_ac_var=yes"
25232 else
25233   echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25235
25236 eval "$as_ac_var=no"
25237 fi
25238 rm -f conftest.err conftest.$ac_objext \
25239       conftest$ac_exeext conftest.$ac_ext
25240 fi
25241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25243 if test `eval echo '${'$as_ac_var'}'` = yes; then
25244   cat >>confdefs.h <<_ACEOF
25245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25246 _ACEOF
25247  have_sin=1
25248 fi
25249 done
25250
25251
25252 for ac_func in ceil
25253 do
25254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25255 echo "$as_me:$LINENO: checking for $ac_func" >&5
25256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25257 if eval "test \"\${$as_ac_var+set}\" = set"; then
25258   echo $ECHO_N "(cached) $ECHO_C" >&6
25259 else
25260   cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h.  */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h.  */
25266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25268 #define $ac_func innocuous_$ac_func
25269
25270 /* System header to define __stub macros and hopefully few prototypes,
25271     which can conflict with char $ac_func (); below.
25272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25273     <limits.h> exists even on freestanding compilers.  */
25274
25275 #ifdef __STDC__
25276 # include <limits.h>
25277 #else
25278 # include <assert.h>
25279 #endif
25280
25281 #undef $ac_func
25282
25283 /* Override any gcc2 internal prototype to avoid an error.  */
25284 #ifdef __cplusplus
25285 extern "C"
25286 {
25287 #endif
25288 /* We use char because int might match the return type of a gcc2
25289    builtin and then its argument prototype would still apply.  */
25290 char $ac_func ();
25291 /* The GNU C library defines this for functions which it implements
25292     to always fail with ENOSYS.  Some functions are actually named
25293     something starting with __ and the normal name is an alias.  */
25294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25295 choke me
25296 #else
25297 char (*f) () = $ac_func;
25298 #endif
25299 #ifdef __cplusplus
25300 }
25301 #endif
25302
25303 int
25304 main ()
25305 {
25306 return f != $ac_func;
25307   ;
25308   return 0;
25309 }
25310 _ACEOF
25311 rm -f conftest.$ac_objext conftest$ac_exeext
25312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25313   (eval $ac_link) 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } &&
25320          { ac_try='test -z "$ac_cxx_werror_flag"
25321                          || test ! -s conftest.err'
25322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323   (eval $ac_try) 2>&5
25324   ac_status=$?
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); }; } &&
25327          { ac_try='test -s conftest$ac_exeext'
25328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329   (eval $ac_try) 2>&5
25330   ac_status=$?
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); }; }; then
25333   eval "$as_ac_var=yes"
25334 else
25335   echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25337
25338 eval "$as_ac_var=no"
25339 fi
25340 rm -f conftest.err conftest.$ac_objext \
25341       conftest$ac_exeext conftest.$ac_ext
25342 fi
25343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25345 if test `eval echo '${'$as_ac_var'}'` = yes; then
25346   cat >>confdefs.h <<_ACEOF
25347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25348 _ACEOF
25349  have_ceil=1
25350 fi
25351 done
25352
25353     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25354 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25355     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25356         echo "$as_me:$LINENO: result: yes" >&5
25357 echo "${ECHO_T}yes" >&6
25358     else
25359         echo "$as_me:$LINENO: result: no" >&5
25360 echo "${ECHO_T}no" >&6
25361         # not sure we should warn the user, crash, etc.
25362     fi
25363 fi
25364
25365
25366
25367 if test "$wxUSE_REGEX" != "no"; then
25368     cat >>confdefs.h <<\_ACEOF
25369 #define wxUSE_REGEX 1
25370 _ACEOF
25371
25372
25373     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25374         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25375 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25376         wxUSE_REGEX=builtin
25377     fi
25378
25379     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25380                         if test "${ac_cv_header_regex_h+set}" = set; then
25381   echo "$as_me:$LINENO: checking for regex.h" >&5
25382 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25383 if test "${ac_cv_header_regex_h+set}" = set; then
25384   echo $ECHO_N "(cached) $ECHO_C" >&6
25385 fi
25386 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25387 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25388 else
25389   # Is the header compilable?
25390 echo "$as_me:$LINENO: checking regex.h usability" >&5
25391 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25392 cat >conftest.$ac_ext <<_ACEOF
25393 /* confdefs.h.  */
25394 _ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h.  */
25398 $ac_includes_default
25399 #include <regex.h>
25400 _ACEOF
25401 rm -f conftest.$ac_objext
25402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403   (eval $ac_compile) 2>conftest.er1
25404   ac_status=$?
25405   grep -v '^ *+' conftest.er1 >conftest.err
25406   rm -f conftest.er1
25407   cat conftest.err >&5
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); } &&
25410          { ac_try='test -z "$ac_cxx_werror_flag"
25411                          || test ! -s conftest.err'
25412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413   (eval $ac_try) 2>&5
25414   ac_status=$?
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); }; } &&
25417          { ac_try='test -s conftest.$ac_objext'
25418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419   (eval $ac_try) 2>&5
25420   ac_status=$?
25421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); }; }; then
25423   ac_header_compiler=yes
25424 else
25425   echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25427
25428 ac_header_compiler=no
25429 fi
25430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25432 echo "${ECHO_T}$ac_header_compiler" >&6
25433
25434 # Is the header present?
25435 echo "$as_me:$LINENO: checking regex.h presence" >&5
25436 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25437 cat >conftest.$ac_ext <<_ACEOF
25438 /* confdefs.h.  */
25439 _ACEOF
25440 cat confdefs.h >>conftest.$ac_ext
25441 cat >>conftest.$ac_ext <<_ACEOF
25442 /* end confdefs.h.  */
25443 #include <regex.h>
25444 _ACEOF
25445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25447   ac_status=$?
25448   grep -v '^ *+' conftest.er1 >conftest.err
25449   rm -f conftest.er1
25450   cat conftest.err >&5
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); } >/dev/null; then
25453   if test -s conftest.err; then
25454     ac_cpp_err=$ac_cxx_preproc_warn_flag
25455     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25456   else
25457     ac_cpp_err=
25458   fi
25459 else
25460   ac_cpp_err=yes
25461 fi
25462 if test -z "$ac_cpp_err"; then
25463   ac_header_preproc=yes
25464 else
25465   echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468   ac_header_preproc=no
25469 fi
25470 rm -f conftest.err conftest.$ac_ext
25471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25472 echo "${ECHO_T}$ac_header_preproc" >&6
25473
25474 # So?  What about this header?
25475 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25476   yes:no: )
25477     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25478 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25479     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25480 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25481     ac_header_preproc=yes
25482     ;;
25483   no:yes:* )
25484     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25485 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25486     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
25487 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
25488     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25489 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25490     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
25491 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25492     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25493 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25494     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25495 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25496     (
25497       cat <<\_ASBOX
25498 ## ----------------------------------------- ##
25499 ## Report this to wx-dev@lists.wxwidgets.org ##
25500 ## ----------------------------------------- ##
25501 _ASBOX
25502     ) |
25503       sed "s/^/$as_me: WARNING:     /" >&2
25504     ;;
25505 esac
25506 echo "$as_me:$LINENO: checking for regex.h" >&5
25507 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25508 if test "${ac_cv_header_regex_h+set}" = set; then
25509   echo $ECHO_N "(cached) $ECHO_C" >&6
25510 else
25511   ac_cv_header_regex_h=$ac_header_preproc
25512 fi
25513 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25514 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25515
25516 fi
25517 if test $ac_cv_header_regex_h = yes; then
25518
25519
25520 for ac_func in regcomp re_search
25521 do
25522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25523 echo "$as_me:$LINENO: checking for $ac_func" >&5
25524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25525 if eval "test \"\${$as_ac_var+set}\" = set"; then
25526   echo $ECHO_N "(cached) $ECHO_C" >&6
25527 else
25528   cat >conftest.$ac_ext <<_ACEOF
25529 /* confdefs.h.  */
25530 _ACEOF
25531 cat confdefs.h >>conftest.$ac_ext
25532 cat >>conftest.$ac_ext <<_ACEOF
25533 /* end confdefs.h.  */
25534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25536 #define $ac_func innocuous_$ac_func
25537
25538 /* System header to define __stub macros and hopefully few prototypes,
25539     which can conflict with char $ac_func (); below.
25540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25541     <limits.h> exists even on freestanding compilers.  */
25542
25543 #ifdef __STDC__
25544 # include <limits.h>
25545 #else
25546 # include <assert.h>
25547 #endif
25548
25549 #undef $ac_func
25550
25551 /* Override any gcc2 internal prototype to avoid an error.  */
25552 #ifdef __cplusplus
25553 extern "C"
25554 {
25555 #endif
25556 /* We use char because int might match the return type of a gcc2
25557    builtin and then its argument prototype would still apply.  */
25558 char $ac_func ();
25559 /* The GNU C library defines this for functions which it implements
25560     to always fail with ENOSYS.  Some functions are actually named
25561     something starting with __ and the normal name is an alias.  */
25562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25563 choke me
25564 #else
25565 char (*f) () = $ac_func;
25566 #endif
25567 #ifdef __cplusplus
25568 }
25569 #endif
25570
25571 int
25572 main ()
25573 {
25574 return f != $ac_func;
25575   ;
25576   return 0;
25577 }
25578 _ACEOF
25579 rm -f conftest.$ac_objext conftest$ac_exeext
25580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25581   (eval $ac_link) 2>conftest.er1
25582   ac_status=$?
25583   grep -v '^ *+' conftest.er1 >conftest.err
25584   rm -f conftest.er1
25585   cat conftest.err >&5
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); } &&
25588          { ac_try='test -z "$ac_cxx_werror_flag"
25589                          || test ! -s conftest.err'
25590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591   (eval $ac_try) 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); }; } &&
25595          { ac_try='test -s conftest$ac_exeext'
25596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597   (eval $ac_try) 2>&5
25598   ac_status=$?
25599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); }; }; then
25601   eval "$as_ac_var=yes"
25602 else
25603   echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25605
25606 eval "$as_ac_var=no"
25607 fi
25608 rm -f conftest.err conftest.$ac_objext \
25609       conftest$ac_exeext conftest.$ac_ext
25610 fi
25611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25613 if test `eval echo '${'$as_ac_var'}'` = yes; then
25614   cat >>confdefs.h <<_ACEOF
25615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25616 _ACEOF
25617
25618 fi
25619 done
25620
25621 fi
25622
25623
25624
25625         if test "x$ac_cv_func_regcomp" != "xyes"; then
25626             if test "$wxUSE_REGEX" = "sys" ; then
25627                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25628 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25629    { (exit 1); exit 1; }; }
25630             else
25631                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25632 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25633                 wxUSE_REGEX=builtin
25634             fi
25635         else
25636                         wxUSE_REGEX=sys
25637                         cat >>confdefs.h <<\_ACEOF
25638 #define WX_NO_REGEX_ADVANCED 1
25639 _ACEOF
25640
25641         fi
25642     fi
25643 fi
25644
25645
25646 ZLIB_LINK=
25647 if test "$wxUSE_ZLIB" != "no" ; then
25648     cat >>confdefs.h <<\_ACEOF
25649 #define wxUSE_ZLIB 1
25650 _ACEOF
25651
25652
25653     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25654                                                 if test "$USE_DARWIN" = 1; then
25655             system_zlib_h_ok="yes"
25656         else
25657                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25658 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25659 if test "${ac_cv_header_zlib_h+set}" = set; then
25660   echo $ECHO_N "(cached) $ECHO_C" >&6
25661 else
25662   if test "$cross_compiling" = yes; then
25663                       unset ac_cv_header_zlib_h
25664
25665 else
25666   cat >conftest.$ac_ext <<_ACEOF
25667 /* confdefs.h.  */
25668 _ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h.  */
25672
25673                         #include <zlib.h>
25674                         #include <stdio.h>
25675
25676                         int main()
25677                         {
25678                             FILE *f=fopen("conftestval", "w");
25679                             if (!f) exit(1);
25680                             fprintf(f, "%s",
25681                                     ZLIB_VERSION[0] == '1' &&
25682                                     (ZLIB_VERSION[2] > '1' ||
25683                                     (ZLIB_VERSION[2] == '1' &&
25684                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25685                             exit(0);
25686                         }
25687
25688 _ACEOF
25689 rm -f conftest$ac_exeext
25690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25691   (eval $ac_link) 2>&5
25692   ac_status=$?
25693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696   (eval $ac_try) 2>&5
25697   ac_status=$?
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); }; }; then
25700   ac_cv_header_zlib_h=`cat conftestval`
25701 else
25702   echo "$as_me: program exited with status $ac_status" >&5
25703 echo "$as_me: failed program was:" >&5
25704 sed 's/^/| /' conftest.$ac_ext >&5
25705
25706 ( exit $ac_status )
25707 ac_cv_header_zlib_h=no
25708 fi
25709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25710 fi
25711
25712 fi
25713 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25714 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25715                                     if test "${ac_cv_header_zlib_h+set}" = set; then
25716   echo "$as_me:$LINENO: checking for zlib.h" >&5
25717 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25718 if test "${ac_cv_header_zlib_h+set}" = set; then
25719   echo $ECHO_N "(cached) $ECHO_C" >&6
25720 fi
25721 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25722 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25723 else
25724   # Is the header compilable?
25725 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25726 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25727 cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h.  */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h.  */
25733 $ac_includes_default
25734 #include <zlib.h>
25735 _ACEOF
25736 rm -f conftest.$ac_objext
25737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25738   (eval $ac_compile) 2>conftest.er1
25739   ac_status=$?
25740   grep -v '^ *+' conftest.er1 >conftest.err
25741   rm -f conftest.er1
25742   cat conftest.err >&5
25743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744   (exit $ac_status); } &&
25745          { ac_try='test -z "$ac_cxx_werror_flag"
25746                          || test ! -s conftest.err'
25747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748   (eval $ac_try) 2>&5
25749   ac_status=$?
25750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751   (exit $ac_status); }; } &&
25752          { ac_try='test -s conftest.$ac_objext'
25753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25754   (eval $ac_try) 2>&5
25755   ac_status=$?
25756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757   (exit $ac_status); }; }; then
25758   ac_header_compiler=yes
25759 else
25760   echo "$as_me: failed program was:" >&5
25761 sed 's/^/| /' conftest.$ac_ext >&5
25762
25763 ac_header_compiler=no
25764 fi
25765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25767 echo "${ECHO_T}$ac_header_compiler" >&6
25768
25769 # Is the header present?
25770 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25771 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25772 cat >conftest.$ac_ext <<_ACEOF
25773 /* confdefs.h.  */
25774 _ACEOF
25775 cat confdefs.h >>conftest.$ac_ext
25776 cat >>conftest.$ac_ext <<_ACEOF
25777 /* end confdefs.h.  */
25778 #include <zlib.h>
25779 _ACEOF
25780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25781   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25782   ac_status=$?
25783   grep -v '^ *+' conftest.er1 >conftest.err
25784   rm -f conftest.er1
25785   cat conftest.err >&5
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); } >/dev/null; then
25788   if test -s conftest.err; then
25789     ac_cpp_err=$ac_cxx_preproc_warn_flag
25790     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25791   else
25792     ac_cpp_err=
25793   fi
25794 else
25795   ac_cpp_err=yes
25796 fi
25797 if test -z "$ac_cpp_err"; then
25798   ac_header_preproc=yes
25799 else
25800   echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25802
25803   ac_header_preproc=no
25804 fi
25805 rm -f conftest.err conftest.$ac_ext
25806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25807 echo "${ECHO_T}$ac_header_preproc" >&6
25808
25809 # So?  What about this header?
25810 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25811   yes:no: )
25812     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25813 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25814     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25815 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25816     ac_header_preproc=yes
25817     ;;
25818   no:yes:* )
25819     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25820 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25821     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25822 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25823     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25824 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25825     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25826 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25827     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25828 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25829     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25830 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25831     (
25832       cat <<\_ASBOX
25833 ## ----------------------------------------- ##
25834 ## Report this to wx-dev@lists.wxwidgets.org ##
25835 ## ----------------------------------------- ##
25836 _ASBOX
25837     ) |
25838       sed "s/^/$as_me: WARNING:     /" >&2
25839     ;;
25840 esac
25841 echo "$as_me:$LINENO: checking for zlib.h" >&5
25842 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25843 if test "${ac_cv_header_zlib_h+set}" = set; then
25844   echo $ECHO_N "(cached) $ECHO_C" >&6
25845 else
25846   ac_cv_header_zlib_h=$ac_header_preproc
25847 fi
25848 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25849 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25850
25851 fi
25852
25853
25854
25855             system_zlib_h_ok=$ac_cv_header_zlib_h
25856         fi
25857
25858         if test "$system_zlib_h_ok" = "yes"; then
25859             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25860 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25861 if test "${ac_cv_lib_z_deflate+set}" = set; then
25862   echo $ECHO_N "(cached) $ECHO_C" >&6
25863 else
25864   ac_check_lib_save_LIBS=$LIBS
25865 LIBS="-lz  $LIBS"
25866 cat >conftest.$ac_ext <<_ACEOF
25867 /* confdefs.h.  */
25868 _ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h.  */
25872
25873 /* Override any gcc2 internal prototype to avoid an error.  */
25874 #ifdef __cplusplus
25875 extern "C"
25876 #endif
25877 /* We use char because int might match the return type of a gcc2
25878    builtin and then its argument prototype would still apply.  */
25879 char deflate ();
25880 int
25881 main ()
25882 {
25883 deflate ();
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25890   (eval $ac_link) 2>conftest.er1
25891   ac_status=$?
25892   grep -v '^ *+' conftest.er1 >conftest.err
25893   rm -f conftest.er1
25894   cat conftest.err >&5
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } &&
25897          { ac_try='test -z "$ac_cxx_werror_flag"
25898                          || test ! -s conftest.err'
25899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900   (eval $ac_try) 2>&5
25901   ac_status=$?
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); }; } &&
25904          { ac_try='test -s conftest$ac_exeext'
25905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906   (eval $ac_try) 2>&5
25907   ac_status=$?
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); }; }; then
25910   ac_cv_lib_z_deflate=yes
25911 else
25912   echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25914
25915 ac_cv_lib_z_deflate=no
25916 fi
25917 rm -f conftest.err conftest.$ac_objext \
25918       conftest$ac_exeext conftest.$ac_ext
25919 LIBS=$ac_check_lib_save_LIBS
25920 fi
25921 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25922 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25923 if test $ac_cv_lib_z_deflate = yes; then
25924   ZLIB_LINK=" -lz"
25925 fi
25926
25927         fi
25928
25929         if test "x$ZLIB_LINK" = "x" ; then
25930             if test "$wxUSE_ZLIB" = "sys" ; then
25931                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25932 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25933    { (exit 1); exit 1; }; }
25934             else
25935                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25936 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25937                 wxUSE_ZLIB=builtin
25938             fi
25939         else
25940                         wxUSE_ZLIB=sys
25941         fi
25942     fi
25943 fi
25944
25945
25946 PNG_LINK=
25947 if test "$wxUSE_LIBPNG" != "no" ; then
25948     cat >>confdefs.h <<\_ACEOF
25949 #define wxUSE_LIBPNG 1
25950 _ACEOF
25951
25952
25953     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25954         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25955 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25956         wxUSE_LIBPNG=sys
25957     fi
25958
25959                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25960         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25961 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25962         wxUSE_LIBPNG=builtin
25963     fi
25964
25965     if test "$wxUSE_MGL" != 1 ; then
25966                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25967                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25968 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25969 if test "${ac_cv_header_png_h+set}" = set; then
25970   echo $ECHO_N "(cached) $ECHO_C" >&6
25971 else
25972   if test "$cross_compiling" = yes; then
25973                       unset ac_cv_header_png_h
25974
25975 else
25976   cat >conftest.$ac_ext <<_ACEOF
25977 /* confdefs.h.  */
25978 _ACEOF
25979 cat confdefs.h >>conftest.$ac_ext
25980 cat >>conftest.$ac_ext <<_ACEOF
25981 /* end confdefs.h.  */
25982
25983                         #include <png.h>
25984                         #include <stdio.h>
25985
25986                         int main()
25987                         {
25988                             FILE *f=fopen("conftestval", "w");
25989                             if (!f) exit(1);
25990                             fprintf(f, "%s",
25991                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25992                             exit(0);
25993                         }
25994
25995 _ACEOF
25996 rm -f conftest$ac_exeext
25997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25998   (eval $ac_link) 2>&5
25999   ac_status=$?
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003   (eval $ac_try) 2>&5
26004   ac_status=$?
26005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006   (exit $ac_status); }; }; then
26007   ac_cv_header_png_h=`cat conftestval`
26008 else
26009   echo "$as_me: program exited with status $ac_status" >&5
26010 echo "$as_me: failed program was:" >&5
26011 sed 's/^/| /' conftest.$ac_ext >&5
26012
26013 ( exit $ac_status )
26014 ac_cv_header_png_h=no
26015 fi
26016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26017 fi
26018
26019 fi
26020 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26021 echo "${ECHO_T}$ac_cv_header_png_h" >&6
26022             if test "${ac_cv_header_png_h+set}" = set; then
26023   echo "$as_me:$LINENO: checking for png.h" >&5
26024 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26025 if test "${ac_cv_header_png_h+set}" = set; then
26026   echo $ECHO_N "(cached) $ECHO_C" >&6
26027 fi
26028 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26029 echo "${ECHO_T}$ac_cv_header_png_h" >&6
26030 else
26031   # Is the header compilable?
26032 echo "$as_me:$LINENO: checking png.h usability" >&5
26033 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
26034 cat >conftest.$ac_ext <<_ACEOF
26035 /* confdefs.h.  */
26036 _ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h.  */
26040 $ac_includes_default
26041 #include <png.h>
26042 _ACEOF
26043 rm -f conftest.$ac_objext
26044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26045   (eval $ac_compile) 2>conftest.er1
26046   ac_status=$?
26047   grep -v '^ *+' conftest.er1 >conftest.err
26048   rm -f conftest.er1
26049   cat conftest.err >&5
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); } &&
26052          { ac_try='test -z "$ac_cxx_werror_flag"
26053                          || test ! -s conftest.err'
26054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26055   (eval $ac_try) 2>&5
26056   ac_status=$?
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); }; } &&
26059          { ac_try='test -s conftest.$ac_objext'
26060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061   (eval $ac_try) 2>&5
26062   ac_status=$?
26063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064   (exit $ac_status); }; }; then
26065   ac_header_compiler=yes
26066 else
26067   echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26069
26070 ac_header_compiler=no
26071 fi
26072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26074 echo "${ECHO_T}$ac_header_compiler" >&6
26075
26076 # Is the header present?
26077 echo "$as_me:$LINENO: checking png.h presence" >&5
26078 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
26079 cat >conftest.$ac_ext <<_ACEOF
26080 /* confdefs.h.  */
26081 _ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h.  */
26085 #include <png.h>
26086 _ACEOF
26087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26089   ac_status=$?
26090   grep -v '^ *+' conftest.er1 >conftest.err
26091   rm -f conftest.er1
26092   cat conftest.err >&5
26093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094   (exit $ac_status); } >/dev/null; then
26095   if test -s conftest.err; then
26096     ac_cpp_err=$ac_cxx_preproc_warn_flag
26097     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26098   else
26099     ac_cpp_err=
26100   fi
26101 else
26102   ac_cpp_err=yes
26103 fi
26104 if test -z "$ac_cpp_err"; then
26105   ac_header_preproc=yes
26106 else
26107   echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26109
26110   ac_header_preproc=no
26111 fi
26112 rm -f conftest.err conftest.$ac_ext
26113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26114 echo "${ECHO_T}$ac_header_preproc" >&6
26115
26116 # So?  What about this header?
26117 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26118   yes:no: )
26119     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
26120 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26121     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
26122 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
26123     ac_header_preproc=yes
26124     ;;
26125   no:yes:* )
26126     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
26127 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
26128     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
26129 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
26130     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
26131 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
26132     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
26133 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26134     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
26135 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
26136     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
26137 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
26138     (
26139       cat <<\_ASBOX
26140 ## ----------------------------------------- ##
26141 ## Report this to wx-dev@lists.wxwidgets.org ##
26142 ## ----------------------------------------- ##
26143 _ASBOX
26144     ) |
26145       sed "s/^/$as_me: WARNING:     /" >&2
26146     ;;
26147 esac
26148 echo "$as_me:$LINENO: checking for png.h" >&5
26149 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26150 if test "${ac_cv_header_png_h+set}" = set; then
26151   echo $ECHO_N "(cached) $ECHO_C" >&6
26152 else
26153   ac_cv_header_png_h=$ac_header_preproc
26154 fi
26155 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26156 echo "${ECHO_T}$ac_cv_header_png_h" >&6
26157
26158 fi
26159
26160
26161
26162             if test "$ac_cv_header_png_h" = "yes"; then
26163                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26164 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
26165 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26166   echo $ECHO_N "(cached) $ECHO_C" >&6
26167 else
26168   ac_check_lib_save_LIBS=$LIBS
26169 LIBS="-lpng -lz -lm $LIBS"
26170 cat >conftest.$ac_ext <<_ACEOF
26171 /* confdefs.h.  */
26172 _ACEOF
26173 cat confdefs.h >>conftest.$ac_ext
26174 cat >>conftest.$ac_ext <<_ACEOF
26175 /* end confdefs.h.  */
26176
26177 /* Override any gcc2 internal prototype to avoid an error.  */
26178 #ifdef __cplusplus
26179 extern "C"
26180 #endif
26181 /* We use char because int might match the return type of a gcc2
26182    builtin and then its argument prototype would still apply.  */
26183 char png_check_sig ();
26184 int
26185 main ()
26186 {
26187 png_check_sig ();
26188   ;
26189   return 0;
26190 }
26191 _ACEOF
26192 rm -f conftest.$ac_objext conftest$ac_exeext
26193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26194   (eval $ac_link) 2>conftest.er1
26195   ac_status=$?
26196   grep -v '^ *+' conftest.er1 >conftest.err
26197   rm -f conftest.er1
26198   cat conftest.err >&5
26199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200   (exit $ac_status); } &&
26201          { ac_try='test -z "$ac_cxx_werror_flag"
26202                          || test ! -s conftest.err'
26203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204   (eval $ac_try) 2>&5
26205   ac_status=$?
26206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207   (exit $ac_status); }; } &&
26208          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26214   ac_cv_lib_png_png_check_sig=yes
26215 else
26216   echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26218
26219 ac_cv_lib_png_png_check_sig=no
26220 fi
26221 rm -f conftest.err conftest.$ac_objext \
26222       conftest$ac_exeext conftest.$ac_ext
26223 LIBS=$ac_check_lib_save_LIBS
26224 fi
26225 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26226 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26227 if test $ac_cv_lib_png_png_check_sig = yes; then
26228   PNG_LINK=" -lpng -lz"
26229 fi
26230
26231             fi
26232
26233             if test "x$PNG_LINK" = "x" ; then
26234                 if test "$wxUSE_LIBPNG" = "sys" ; then
26235                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26236 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26237    { (exit 1); exit 1; }; }
26238                 else
26239                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26240 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26241                     wxUSE_LIBPNG=builtin
26242                 fi
26243             else
26244                                 wxUSE_LIBPNG=sys
26245             fi
26246         fi
26247     fi
26248
26249     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26250 fi
26251
26252
26253 JPEG_LINK=
26254 if test "$wxUSE_LIBJPEG" != "no" ; then
26255     cat >>confdefs.h <<\_ACEOF
26256 #define wxUSE_LIBJPEG 1
26257 _ACEOF
26258
26259
26260     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26261         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26262 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26263         wxUSE_LIBJPEG=sys
26264     fi
26265
26266     if test "$wxUSE_MGL" != 1 ; then
26267                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26268                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26269 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26270             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26271   echo $ECHO_N "(cached) $ECHO_C" >&6
26272 else
26273   cat >conftest.$ac_ext <<_ACEOF
26274 /* confdefs.h.  */
26275 _ACEOF
26276 cat confdefs.h >>conftest.$ac_ext
26277 cat >>conftest.$ac_ext <<_ACEOF
26278 /* end confdefs.h.  */
26279
26280                         #undef HAVE_STDLIB_H
26281                         #include <stdio.h>
26282                         #include <jpeglib.h>
26283
26284 int
26285 main ()
26286 {
26287
26288
26289   ;
26290   return 0;
26291 }
26292 _ACEOF
26293 rm -f conftest.$ac_objext
26294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26295   (eval $ac_compile) 2>conftest.er1
26296   ac_status=$?
26297   grep -v '^ *+' conftest.er1 >conftest.err
26298   rm -f conftest.er1
26299   cat conftest.err >&5
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); } &&
26302          { ac_try='test -z "$ac_cxx_werror_flag"
26303                          || test ! -s conftest.err'
26304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305   (eval $ac_try) 2>&5
26306   ac_status=$?
26307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308   (exit $ac_status); }; } &&
26309          { ac_try='test -s conftest.$ac_objext'
26310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311   (eval $ac_try) 2>&5
26312   ac_status=$?
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); }; }; then
26315   ac_cv_header_jpeglib_h=yes
26316 else
26317   echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26319
26320 ac_cv_header_jpeglib_h=no
26321
26322 fi
26323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26324
26325 fi
26326
26327             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26328 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26329
26330             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26331                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26332 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26333 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26334   echo $ECHO_N "(cached) $ECHO_C" >&6
26335 else
26336   ac_check_lib_save_LIBS=$LIBS
26337 LIBS="-ljpeg  $LIBS"
26338 cat >conftest.$ac_ext <<_ACEOF
26339 /* confdefs.h.  */
26340 _ACEOF
26341 cat confdefs.h >>conftest.$ac_ext
26342 cat >>conftest.$ac_ext <<_ACEOF
26343 /* end confdefs.h.  */
26344
26345 /* Override any gcc2 internal prototype to avoid an error.  */
26346 #ifdef __cplusplus
26347 extern "C"
26348 #endif
26349 /* We use char because int might match the return type of a gcc2
26350    builtin and then its argument prototype would still apply.  */
26351 char jpeg_read_header ();
26352 int
26353 main ()
26354 {
26355 jpeg_read_header ();
26356   ;
26357   return 0;
26358 }
26359 _ACEOF
26360 rm -f conftest.$ac_objext conftest$ac_exeext
26361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26362   (eval $ac_link) 2>conftest.er1
26363   ac_status=$?
26364   grep -v '^ *+' conftest.er1 >conftest.err
26365   rm -f conftest.er1
26366   cat conftest.err >&5
26367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368   (exit $ac_status); } &&
26369          { ac_try='test -z "$ac_cxx_werror_flag"
26370                          || test ! -s conftest.err'
26371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26372   (eval $ac_try) 2>&5
26373   ac_status=$?
26374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375   (exit $ac_status); }; } &&
26376          { ac_try='test -s conftest$ac_exeext'
26377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378   (eval $ac_try) 2>&5
26379   ac_status=$?
26380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381   (exit $ac_status); }; }; then
26382   ac_cv_lib_jpeg_jpeg_read_header=yes
26383 else
26384   echo "$as_me: failed program was:" >&5
26385 sed 's/^/| /' conftest.$ac_ext >&5
26386
26387 ac_cv_lib_jpeg_jpeg_read_header=no
26388 fi
26389 rm -f conftest.err conftest.$ac_objext \
26390       conftest$ac_exeext conftest.$ac_ext
26391 LIBS=$ac_check_lib_save_LIBS
26392 fi
26393 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26394 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26395 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26396   JPEG_LINK=" -ljpeg"
26397 fi
26398
26399             fi
26400
26401             if test "x$JPEG_LINK" = "x" ; then
26402                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26403                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26404 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26405    { (exit 1); exit 1; }; }
26406                 else
26407                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26408 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26409                     wxUSE_LIBJPEG=builtin
26410                 fi
26411             else
26412                                 wxUSE_LIBJPEG=sys
26413             fi
26414         fi
26415     fi
26416 fi
26417
26418
26419 TIFF_LINK=
26420 TIFF_PREREQ_LINKS=-lm
26421 if test "$wxUSE_LIBTIFF" != "no" ; then
26422     cat >>confdefs.h <<\_ACEOF
26423 #define wxUSE_LIBTIFF 1
26424 _ACEOF
26425
26426
26427     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26428                         if test "$wxUSE_LIBJPEG" = "sys"; then
26429             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26430         fi
26431         if test "$wxUSE_ZLIB" = "sys"; then
26432             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26433         fi
26434         if test "${ac_cv_header_tiffio_h+set}" = set; then
26435   echo "$as_me:$LINENO: checking for tiffio.h" >&5
26436 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26437 if test "${ac_cv_header_tiffio_h+set}" = set; then
26438   echo $ECHO_N "(cached) $ECHO_C" >&6
26439 fi
26440 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26441 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26442 else
26443   # Is the header compilable?
26444 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26445 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26446 cat >conftest.$ac_ext <<_ACEOF
26447 /* confdefs.h.  */
26448 _ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h.  */
26452 $ac_includes_default
26453 #include <tiffio.h>
26454 _ACEOF
26455 rm -f conftest.$ac_objext
26456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26457   (eval $ac_compile) 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } &&
26464          { ac_try='test -z "$ac_cxx_werror_flag"
26465                          || test ! -s conftest.err'
26466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26467   (eval $ac_try) 2>&5
26468   ac_status=$?
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); }; } &&
26471          { ac_try='test -s conftest.$ac_objext'
26472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26473   (eval $ac_try) 2>&5
26474   ac_status=$?
26475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); }; }; then
26477   ac_header_compiler=yes
26478 else
26479   echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26481
26482 ac_header_compiler=no
26483 fi
26484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26486 echo "${ECHO_T}$ac_header_compiler" >&6
26487
26488 # Is the header present?
26489 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26490 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26491 cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h.  */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h.  */
26497 #include <tiffio.h>
26498 _ACEOF
26499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26501   ac_status=$?
26502   grep -v '^ *+' conftest.er1 >conftest.err
26503   rm -f conftest.er1
26504   cat conftest.err >&5
26505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506   (exit $ac_status); } >/dev/null; then
26507   if test -s conftest.err; then
26508     ac_cpp_err=$ac_cxx_preproc_warn_flag
26509     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26510   else
26511     ac_cpp_err=
26512   fi
26513 else
26514   ac_cpp_err=yes
26515 fi
26516 if test -z "$ac_cpp_err"; then
26517   ac_header_preproc=yes
26518 else
26519   echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26521
26522   ac_header_preproc=no
26523 fi
26524 rm -f conftest.err conftest.$ac_ext
26525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26526 echo "${ECHO_T}$ac_header_preproc" >&6
26527
26528 # So?  What about this header?
26529 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26530   yes:no: )
26531     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26532 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26533     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26534 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26535     ac_header_preproc=yes
26536     ;;
26537   no:yes:* )
26538     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26539 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
26540     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
26541 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
26542     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26543 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26544     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
26545 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26546     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26547 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
26548     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26549 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
26550     (
26551       cat <<\_ASBOX
26552 ## ----------------------------------------- ##
26553 ## Report this to wx-dev@lists.wxwidgets.org ##
26554 ## ----------------------------------------- ##
26555 _ASBOX
26556     ) |
26557       sed "s/^/$as_me: WARNING:     /" >&2
26558     ;;
26559 esac
26560 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26561 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26562 if test "${ac_cv_header_tiffio_h+set}" = set; then
26563   echo $ECHO_N "(cached) $ECHO_C" >&6
26564 else
26565   ac_cv_header_tiffio_h=$ac_header_preproc
26566 fi
26567 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26568 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26569
26570 fi
26571 if test $ac_cv_header_tiffio_h = yes; then
26572
26573                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26574 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26575 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26576   echo $ECHO_N "(cached) $ECHO_C" >&6
26577 else
26578   ac_check_lib_save_LIBS=$LIBS
26579 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26580 cat >conftest.$ac_ext <<_ACEOF
26581 /* confdefs.h.  */
26582 _ACEOF
26583 cat confdefs.h >>conftest.$ac_ext
26584 cat >>conftest.$ac_ext <<_ACEOF
26585 /* end confdefs.h.  */
26586
26587 /* Override any gcc2 internal prototype to avoid an error.  */
26588 #ifdef __cplusplus
26589 extern "C"
26590 #endif
26591 /* We use char because int might match the return type of a gcc2
26592    builtin and then its argument prototype would still apply.  */
26593 char TIFFError ();
26594 int
26595 main ()
26596 {
26597 TIFFError ();
26598   ;
26599   return 0;
26600 }
26601 _ACEOF
26602 rm -f conftest.$ac_objext conftest$ac_exeext
26603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26604   (eval $ac_link) 2>conftest.er1
26605   ac_status=$?
26606   grep -v '^ *+' conftest.er1 >conftest.err
26607   rm -f conftest.er1
26608   cat conftest.err >&5
26609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610   (exit $ac_status); } &&
26611          { ac_try='test -z "$ac_cxx_werror_flag"
26612                          || test ! -s conftest.err'
26613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26614   (eval $ac_try) 2>&5
26615   ac_status=$?
26616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617   (exit $ac_status); }; } &&
26618          { ac_try='test -s conftest$ac_exeext'
26619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620   (eval $ac_try) 2>&5
26621   ac_status=$?
26622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623   (exit $ac_status); }; }; then
26624   ac_cv_lib_tiff_TIFFError=yes
26625 else
26626   echo "$as_me: failed program was:" >&5
26627 sed 's/^/| /' conftest.$ac_ext >&5
26628
26629 ac_cv_lib_tiff_TIFFError=no
26630 fi
26631 rm -f conftest.err conftest.$ac_objext \
26632       conftest$ac_exeext conftest.$ac_ext
26633 LIBS=$ac_check_lib_save_LIBS
26634 fi
26635 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26636 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26637 if test $ac_cv_lib_tiff_TIFFError = yes; then
26638   TIFF_LINK=" -ltiff"
26639 fi
26640
26641
26642
26643 fi
26644
26645
26646
26647         if test "x$TIFF_LINK" = "x" ; then
26648             if test "$wxUSE_LIBTIFF" = "sys" ; then
26649                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26650 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26651    { (exit 1); exit 1; }; }
26652             else
26653                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26654 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26655                 wxUSE_LIBTIFF=builtin
26656             fi
26657         else
26658                         wxUSE_LIBTIFF=sys
26659         fi
26660     fi
26661 fi
26662
26663
26664 if test "$wxUSE_WCHAR_T" != "yes"; then
26665     if test "$wxUSE_EXPAT" != "no"; then
26666         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26667 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26668         wxUSE_EXPAT=no
26669     fi
26670     if test "$wxUSE_XML" != "no"; then
26671         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26672 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26673         wxUSE_XML=no
26674     fi
26675 fi
26676
26677 if test "$wxUSE_EXPAT" != "no"; then
26678     wxUSE_XML=yes
26679     cat >>confdefs.h <<\_ACEOF
26680 #define wxUSE_EXPAT 1
26681 _ACEOF
26682
26683     cat >>confdefs.h <<\_ACEOF
26684 #define wxUSE_XML 1
26685 _ACEOF
26686
26687
26688     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26689         if test "${ac_cv_header_expat_h+set}" = set; then
26690   echo "$as_me:$LINENO: checking for expat.h" >&5
26691 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26692 if test "${ac_cv_header_expat_h+set}" = set; then
26693   echo $ECHO_N "(cached) $ECHO_C" >&6
26694 fi
26695 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26696 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26697 else
26698   # Is the header compilable?
26699 echo "$as_me:$LINENO: checking expat.h usability" >&5
26700 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26701 cat >conftest.$ac_ext <<_ACEOF
26702 /* confdefs.h.  */
26703 _ACEOF
26704 cat confdefs.h >>conftest.$ac_ext
26705 cat >>conftest.$ac_ext <<_ACEOF
26706 /* end confdefs.h.  */
26707 $ac_includes_default
26708 #include <expat.h>
26709 _ACEOF
26710 rm -f conftest.$ac_objext
26711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26712   (eval $ac_compile) 2>conftest.er1
26713   ac_status=$?
26714   grep -v '^ *+' conftest.er1 >conftest.err
26715   rm -f conftest.er1
26716   cat conftest.err >&5
26717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718   (exit $ac_status); } &&
26719          { ac_try='test -z "$ac_cxx_werror_flag"
26720                          || test ! -s conftest.err'
26721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26722   (eval $ac_try) 2>&5
26723   ac_status=$?
26724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); }; } &&
26726          { ac_try='test -s conftest.$ac_objext'
26727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26728   (eval $ac_try) 2>&5
26729   ac_status=$?
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); }; }; then
26732   ac_header_compiler=yes
26733 else
26734   echo "$as_me: failed program was:" >&5
26735 sed 's/^/| /' conftest.$ac_ext >&5
26736
26737 ac_header_compiler=no
26738 fi
26739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26741 echo "${ECHO_T}$ac_header_compiler" >&6
26742
26743 # Is the header present?
26744 echo "$as_me:$LINENO: checking expat.h presence" >&5
26745 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26746 cat >conftest.$ac_ext <<_ACEOF
26747 /* confdefs.h.  */
26748 _ACEOF
26749 cat confdefs.h >>conftest.$ac_ext
26750 cat >>conftest.$ac_ext <<_ACEOF
26751 /* end confdefs.h.  */
26752 #include <expat.h>
26753 _ACEOF
26754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26756   ac_status=$?
26757   grep -v '^ *+' conftest.er1 >conftest.err
26758   rm -f conftest.er1
26759   cat conftest.err >&5
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); } >/dev/null; then
26762   if test -s conftest.err; then
26763     ac_cpp_err=$ac_cxx_preproc_warn_flag
26764     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26765   else
26766     ac_cpp_err=
26767   fi
26768 else
26769   ac_cpp_err=yes
26770 fi
26771 if test -z "$ac_cpp_err"; then
26772   ac_header_preproc=yes
26773 else
26774   echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26776
26777   ac_header_preproc=no
26778 fi
26779 rm -f conftest.err conftest.$ac_ext
26780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26781 echo "${ECHO_T}$ac_header_preproc" >&6
26782
26783 # So?  What about this header?
26784 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26785   yes:no: )
26786     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26787 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26788     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26789 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26790     ac_header_preproc=yes
26791     ;;
26792   no:yes:* )
26793     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26794 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
26795     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
26796 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
26797     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26798 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26799     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
26800 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26801     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26802 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
26803     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26804 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
26805     (
26806       cat <<\_ASBOX
26807 ## ----------------------------------------- ##
26808 ## Report this to wx-dev@lists.wxwidgets.org ##
26809 ## ----------------------------------------- ##
26810 _ASBOX
26811     ) |
26812       sed "s/^/$as_me: WARNING:     /" >&2
26813     ;;
26814 esac
26815 echo "$as_me:$LINENO: checking for expat.h" >&5
26816 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26817 if test "${ac_cv_header_expat_h+set}" = set; then
26818   echo $ECHO_N "(cached) $ECHO_C" >&6
26819 else
26820   ac_cv_header_expat_h=$ac_header_preproc
26821 fi
26822 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26823 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26824
26825 fi
26826 if test $ac_cv_header_expat_h = yes; then
26827   found_expat_h=1
26828 fi
26829
26830
26831         if test "x$found_expat_h" = "x1"; then
26832                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26833 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26834 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26835   echo $ECHO_N "(cached) $ECHO_C" >&6
26836 else
26837
26838                 cat >conftest.$ac_ext <<_ACEOF
26839 /* confdefs.h.  */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h.  */
26844 #include <expat.h>
26845 int
26846 main ()
26847 {
26848
26849   ;
26850   return 0;
26851 }
26852 _ACEOF
26853 rm -f conftest.$ac_objext
26854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26855   (eval $ac_compile) 2>conftest.er1
26856   ac_status=$?
26857   grep -v '^ *+' conftest.er1 >conftest.err
26858   rm -f conftest.er1
26859   cat conftest.err >&5
26860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861   (exit $ac_status); } &&
26862          { ac_try='test -z "$ac_cxx_werror_flag"
26863                          || test ! -s conftest.err'
26864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26865   (eval $ac_try) 2>&5
26866   ac_status=$?
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); }; } &&
26869          { ac_try='test -s conftest.$ac_objext'
26870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26871   (eval $ac_try) 2>&5
26872   ac_status=$?
26873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874   (exit $ac_status); }; }; then
26875   wx_cv_expat_is_not_broken=yes
26876 else
26877   echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26879
26880 wx_cv_expat_is_not_broken=no
26881
26882 fi
26883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26884
26885
26886 fi
26887 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26888 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26889             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26890                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26891 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26892 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26893   echo $ECHO_N "(cached) $ECHO_C" >&6
26894 else
26895   ac_check_lib_save_LIBS=$LIBS
26896 LIBS="-lexpat  $LIBS"
26897 cat >conftest.$ac_ext <<_ACEOF
26898 /* confdefs.h.  */
26899 _ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h.  */
26903
26904 /* Override any gcc2 internal prototype to avoid an error.  */
26905 #ifdef __cplusplus
26906 extern "C"
26907 #endif
26908 /* We use char because int might match the return type of a gcc2
26909    builtin and then its argument prototype would still apply.  */
26910 char XML_ParserCreate ();
26911 int
26912 main ()
26913 {
26914 XML_ParserCreate ();
26915   ;
26916   return 0;
26917 }
26918 _ACEOF
26919 rm -f conftest.$ac_objext conftest$ac_exeext
26920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26921   (eval $ac_link) 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } &&
26928          { ac_try='test -z "$ac_cxx_werror_flag"
26929                          || test ! -s conftest.err'
26930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931   (eval $ac_try) 2>&5
26932   ac_status=$?
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); }; } &&
26935          { ac_try='test -s conftest$ac_exeext'
26936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26937   (eval $ac_try) 2>&5
26938   ac_status=$?
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); }; }; then
26941   ac_cv_lib_expat_XML_ParserCreate=yes
26942 else
26943   echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946 ac_cv_lib_expat_XML_ParserCreate=no
26947 fi
26948 rm -f conftest.err conftest.$ac_objext \
26949       conftest$ac_exeext conftest.$ac_ext
26950 LIBS=$ac_check_lib_save_LIBS
26951 fi
26952 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26953 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26954 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26955   EXPAT_LINK=" -lexpat"
26956 fi
26957
26958             fi
26959         fi
26960         if test "x$EXPAT_LINK" = "x" ; then
26961             if test "$wxUSE_EXPAT" = "sys" ; then
26962                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26963 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26964    { (exit 1); exit 1; }; }
26965             else
26966                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26967 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26968                 wxUSE_EXPAT=builtin
26969             fi
26970         else
26971                         wxUSE_EXPAT=sys
26972         fi
26973     fi
26974     if test "$wxUSE_EXPAT" = "builtin" ; then
26975
26976
26977 subdirs="$subdirs src/expat"
26978
26979     fi
26980 fi
26981
26982
26983
26984 if test "$wxUSE_LIBMSPACK" != "no"; then
26985     if test "${ac_cv_header_mspack_h+set}" = set; then
26986   echo "$as_me:$LINENO: checking for mspack.h" >&5
26987 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26988 if test "${ac_cv_header_mspack_h+set}" = set; then
26989   echo $ECHO_N "(cached) $ECHO_C" >&6
26990 fi
26991 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26992 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26993 else
26994   # Is the header compilable?
26995 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26996 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26997 cat >conftest.$ac_ext <<_ACEOF
26998 /* confdefs.h.  */
26999 _ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h.  */
27003 $ac_includes_default
27004 #include <mspack.h>
27005 _ACEOF
27006 rm -f conftest.$ac_objext
27007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27008   (eval $ac_compile) 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } &&
27015          { ac_try='test -z "$ac_cxx_werror_flag"
27016                          || test ! -s conftest.err'
27017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27018   (eval $ac_try) 2>&5
27019   ac_status=$?
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); }; } &&
27022          { ac_try='test -s conftest.$ac_objext'
27023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024   (eval $ac_try) 2>&5
27025   ac_status=$?
27026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); }; }; then
27028   ac_header_compiler=yes
27029 else
27030   echo "$as_me: failed program was:" >&5
27031 sed 's/^/| /' conftest.$ac_ext >&5
27032
27033 ac_header_compiler=no
27034 fi
27035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27037 echo "${ECHO_T}$ac_header_compiler" >&6
27038
27039 # Is the header present?
27040 echo "$as_me:$LINENO: checking mspack.h presence" >&5
27041 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
27042 cat >conftest.$ac_ext <<_ACEOF
27043 /* confdefs.h.  */
27044 _ACEOF
27045 cat confdefs.h >>conftest.$ac_ext
27046 cat >>conftest.$ac_ext <<_ACEOF
27047 /* end confdefs.h.  */
27048 #include <mspack.h>
27049 _ACEOF
27050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27052   ac_status=$?
27053   grep -v '^ *+' conftest.er1 >conftest.err
27054   rm -f conftest.er1
27055   cat conftest.err >&5
27056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057   (exit $ac_status); } >/dev/null; then
27058   if test -s conftest.err; then
27059     ac_cpp_err=$ac_cxx_preproc_warn_flag
27060     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27061   else
27062     ac_cpp_err=
27063   fi
27064 else
27065   ac_cpp_err=yes
27066 fi
27067 if test -z "$ac_cpp_err"; then
27068   ac_header_preproc=yes
27069 else
27070   echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27072
27073   ac_header_preproc=no
27074 fi
27075 rm -f conftest.err conftest.$ac_ext
27076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27077 echo "${ECHO_T}$ac_header_preproc" >&6
27078
27079 # So?  What about this header?
27080 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27081   yes:no: )
27082     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
27083 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27084     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
27085 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
27086     ac_header_preproc=yes
27087     ;;
27088   no:yes:* )
27089     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
27090 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
27091     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
27092 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
27093     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
27094 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
27095     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
27096 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27097     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
27098 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
27099     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
27100 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
27101     (
27102       cat <<\_ASBOX
27103 ## ----------------------------------------- ##
27104 ## Report this to wx-dev@lists.wxwidgets.org ##
27105 ## ----------------------------------------- ##
27106 _ASBOX
27107     ) |
27108       sed "s/^/$as_me: WARNING:     /" >&2
27109     ;;
27110 esac
27111 echo "$as_me:$LINENO: checking for mspack.h" >&5
27112 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27113 if test "${ac_cv_header_mspack_h+set}" = set; then
27114   echo $ECHO_N "(cached) $ECHO_C" >&6
27115 else
27116   ac_cv_header_mspack_h=$ac_header_preproc
27117 fi
27118 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27119 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27120
27121 fi
27122 if test $ac_cv_header_mspack_h = yes; then
27123   found_mspack_h=1
27124 fi
27125
27126
27127     if test "x$found_mspack_h" = "x1"; then
27128         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27129 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
27130 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27131   echo $ECHO_N "(cached) $ECHO_C" >&6
27132 else
27133   ac_check_lib_save_LIBS=$LIBS
27134 LIBS="-lmspack  $LIBS"
27135 cat >conftest.$ac_ext <<_ACEOF
27136 /* confdefs.h.  */
27137 _ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h.  */
27141
27142 /* Override any gcc2 internal prototype to avoid an error.  */
27143 #ifdef __cplusplus
27144 extern "C"
27145 #endif
27146 /* We use char because int might match the return type of a gcc2
27147    builtin and then its argument prototype would still apply.  */
27148 char mspack_create_chm_decompressor ();
27149 int
27150 main ()
27151 {
27152 mspack_create_chm_decompressor ();
27153   ;
27154   return 0;
27155 }
27156 _ACEOF
27157 rm -f conftest.$ac_objext conftest$ac_exeext
27158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27159   (eval $ac_link) 2>conftest.er1
27160   ac_status=$?
27161   grep -v '^ *+' conftest.er1 >conftest.err
27162   rm -f conftest.er1
27163   cat conftest.err >&5
27164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165   (exit $ac_status); } &&
27166          { ac_try='test -z "$ac_cxx_werror_flag"
27167                          || test ! -s conftest.err'
27168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27169   (eval $ac_try) 2>&5
27170   ac_status=$?
27171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172   (exit $ac_status); }; } &&
27173          { ac_try='test -s conftest$ac_exeext'
27174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175   (eval $ac_try) 2>&5
27176   ac_status=$?
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); }; }; then
27179   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27180 else
27181   echo "$as_me: failed program was:" >&5
27182 sed 's/^/| /' conftest.$ac_ext >&5
27183
27184 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27185 fi
27186 rm -f conftest.err conftest.$ac_objext \
27187       conftest$ac_exeext conftest.$ac_ext
27188 LIBS=$ac_check_lib_save_LIBS
27189 fi
27190 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27191 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27192 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27193   MSPACK_LINK=" -lmspack"
27194 fi
27195
27196     fi
27197     if test "x$MSPACK_LINK" = "x" ; then
27198         wxUSE_LIBMSPACK=no
27199     fi
27200 fi
27201
27202 if test "$wxUSE_LIBMSPACK" != "no"; then
27203     cat >>confdefs.h <<\_ACEOF
27204 #define wxUSE_LIBMSPACK 1
27205 _ACEOF
27206
27207 fi
27208
27209
27210
27211 AFMINSTALL=
27212 WIN32INSTALL=
27213
27214 TOOLKIT=
27215 TOOLKIT_INCLUDE=
27216 WIDGET_SET=
27217
27218 if test "$USE_WIN32" = 1 ; then
27219
27220 for ac_header in w32api.h
27221 do
27222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27224   echo "$as_me:$LINENO: checking for $ac_header" >&5
27225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27227   echo $ECHO_N "(cached) $ECHO_C" >&6
27228 fi
27229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27231 else
27232   # Is the header compilable?
27233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27235 cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h.  */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h.  */
27241 $ac_includes_default
27242 #include <$ac_header>
27243 _ACEOF
27244 rm -f conftest.$ac_objext
27245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27246   (eval $ac_compile) 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_cxx_werror_flag"
27254                          || test ! -s conftest.err'
27255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256   (eval $ac_try) 2>&5
27257   ac_status=$?
27258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259   (exit $ac_status); }; } &&
27260          { ac_try='test -s conftest.$ac_objext'
27261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262   (eval $ac_try) 2>&5
27263   ac_status=$?
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); }; }; then
27266   ac_header_compiler=yes
27267 else
27268   echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27270
27271 ac_header_compiler=no
27272 fi
27273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27275 echo "${ECHO_T}$ac_header_compiler" >&6
27276
27277 # Is the header present?
27278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27280 cat >conftest.$ac_ext <<_ACEOF
27281 /* confdefs.h.  */
27282 _ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h.  */
27286 #include <$ac_header>
27287 _ACEOF
27288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27290   ac_status=$?
27291   grep -v '^ *+' conftest.er1 >conftest.err
27292   rm -f conftest.er1
27293   cat conftest.err >&5
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); } >/dev/null; then
27296   if test -s conftest.err; then
27297     ac_cpp_err=$ac_cxx_preproc_warn_flag
27298     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27299   else
27300     ac_cpp_err=
27301   fi
27302 else
27303   ac_cpp_err=yes
27304 fi
27305 if test -z "$ac_cpp_err"; then
27306   ac_header_preproc=yes
27307 else
27308   echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27310
27311   ac_header_preproc=no
27312 fi
27313 rm -f conftest.err conftest.$ac_ext
27314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27315 echo "${ECHO_T}$ac_header_preproc" >&6
27316
27317 # So?  What about this header?
27318 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27319   yes:no: )
27320     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27324     ac_header_preproc=yes
27325     ;;
27326   no:yes:* )
27327     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27329     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27330 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27331     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27333     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27334 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27337     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27339     (
27340       cat <<\_ASBOX
27341 ## ----------------------------------------- ##
27342 ## Report this to wx-dev@lists.wxwidgets.org ##
27343 ## ----------------------------------------- ##
27344 _ASBOX
27345     ) |
27346       sed "s/^/$as_me: WARNING:     /" >&2
27347     ;;
27348 esac
27349 echo "$as_me:$LINENO: checking for $ac_header" >&5
27350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27352   echo $ECHO_N "(cached) $ECHO_C" >&6
27353 else
27354   eval "$as_ac_Header=\$ac_header_preproc"
27355 fi
27356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27358
27359 fi
27360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27361   cat >>confdefs.h <<_ACEOF
27362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27363 _ACEOF
27364
27365 fi
27366
27367 done
27368
27369     if test "${ac_cv_header_windows_h+set}" = set; then
27370   echo "$as_me:$LINENO: checking for windows.h" >&5
27371 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27372 if test "${ac_cv_header_windows_h+set}" = set; then
27373   echo $ECHO_N "(cached) $ECHO_C" >&6
27374 fi
27375 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27376 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27377 else
27378   # Is the header compilable?
27379 echo "$as_me:$LINENO: checking windows.h usability" >&5
27380 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27381 cat >conftest.$ac_ext <<_ACEOF
27382 /* confdefs.h.  */
27383 _ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h.  */
27387 $ac_includes_default
27388 #include <windows.h>
27389 _ACEOF
27390 rm -f conftest.$ac_objext
27391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27392   (eval $ac_compile) 2>conftest.er1
27393   ac_status=$?
27394   grep -v '^ *+' conftest.er1 >conftest.err
27395   rm -f conftest.er1
27396   cat conftest.err >&5
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); } &&
27399          { ac_try='test -z "$ac_cxx_werror_flag"
27400                          || test ! -s conftest.err'
27401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402   (eval $ac_try) 2>&5
27403   ac_status=$?
27404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405   (exit $ac_status); }; } &&
27406          { ac_try='test -s conftest.$ac_objext'
27407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408   (eval $ac_try) 2>&5
27409   ac_status=$?
27410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411   (exit $ac_status); }; }; then
27412   ac_header_compiler=yes
27413 else
27414   echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27416
27417 ac_header_compiler=no
27418 fi
27419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27421 echo "${ECHO_T}$ac_header_compiler" >&6
27422
27423 # Is the header present?
27424 echo "$as_me:$LINENO: checking windows.h presence" >&5
27425 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27426 cat >conftest.$ac_ext <<_ACEOF
27427 /* confdefs.h.  */
27428 _ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h.  */
27432 #include <windows.h>
27433 _ACEOF
27434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27436   ac_status=$?
27437   grep -v '^ *+' conftest.er1 >conftest.err
27438   rm -f conftest.er1
27439   cat conftest.err >&5
27440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441   (exit $ac_status); } >/dev/null; then
27442   if test -s conftest.err; then
27443     ac_cpp_err=$ac_cxx_preproc_warn_flag
27444     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27445   else
27446     ac_cpp_err=
27447   fi
27448 else
27449   ac_cpp_err=yes
27450 fi
27451 if test -z "$ac_cpp_err"; then
27452   ac_header_preproc=yes
27453 else
27454   echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27456
27457   ac_header_preproc=no
27458 fi
27459 rm -f conftest.err conftest.$ac_ext
27460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27461 echo "${ECHO_T}$ac_header_preproc" >&6
27462
27463 # So?  What about this header?
27464 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27465   yes:no: )
27466     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27467 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27468     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27469 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27470     ac_header_preproc=yes
27471     ;;
27472   no:yes:* )
27473     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27474 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
27475     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
27476 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
27477     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27478 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27479     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
27480 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27481     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27482 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
27483     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27484 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
27485     (
27486       cat <<\_ASBOX
27487 ## ----------------------------------------- ##
27488 ## Report this to wx-dev@lists.wxwidgets.org ##
27489 ## ----------------------------------------- ##
27490 _ASBOX
27491     ) |
27492       sed "s/^/$as_me: WARNING:     /" >&2
27493     ;;
27494 esac
27495 echo "$as_me:$LINENO: checking for windows.h" >&5
27496 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27497 if test "${ac_cv_header_windows_h+set}" = set; then
27498   echo $ECHO_N "(cached) $ECHO_C" >&6
27499 else
27500   ac_cv_header_windows_h=$ac_header_preproc
27501 fi
27502 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27503 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27504
27505 fi
27506 if test $ac_cv_header_windows_h = yes; then
27507   :
27508 else
27509
27510         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27511 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27512    { (exit 1); exit 1; }; }
27513
27514 fi
27515
27516
27517
27518             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27519
27520     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27521         LIBS="$LIBS -loleacc"
27522     fi
27523
27524     case "${host}" in
27525         *-*-cygwin* )
27526                         LIBS="$LIBS -lkernel32 -luser32"
27527     esac
27528
27529         if test "$wxUSE_ODBC" = "sys" ; then
27530         wxUSE_ODBC = "yes"
27531     fi
27532     if test "$wxUSE_ODBC" = "yes" ; then
27533         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27534         cat >>confdefs.h <<\_ACEOF
27535 #define wxUSE_ODBC 1
27536 _ACEOF
27537
27538     fi
27539
27540         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27541     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27542
27543                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27544
27545         WIN32INSTALL=win32install
27546
27547                     echo "$as_me:$LINENO: checking for boolean" >&5
27548 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27549 if test "${ac_cv_type_boolean+set}" = set; then
27550   echo $ECHO_N "(cached) $ECHO_C" >&6
27551 else
27552   cat >conftest.$ac_ext <<_ACEOF
27553 /* confdefs.h.  */
27554 _ACEOF
27555 cat confdefs.h >>conftest.$ac_ext
27556 cat >>conftest.$ac_ext <<_ACEOF
27557 /* end confdefs.h.  */
27558 #include <windows.h>
27559
27560 int
27561 main ()
27562 {
27563 if ((boolean *) 0)
27564   return 0;
27565 if (sizeof (boolean))
27566   return 0;
27567   ;
27568   return 0;
27569 }
27570 _ACEOF
27571 rm -f conftest.$ac_objext
27572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27573   (eval $ac_compile) 2>conftest.er1
27574   ac_status=$?
27575   grep -v '^ *+' conftest.er1 >conftest.err
27576   rm -f conftest.er1
27577   cat conftest.err >&5
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); } &&
27580          { ac_try='test -z "$ac_cxx_werror_flag"
27581                          || test ! -s conftest.err'
27582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27583   (eval $ac_try) 2>&5
27584   ac_status=$?
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); }; } &&
27587          { ac_try='test -s conftest.$ac_objext'
27588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27589   (eval $ac_try) 2>&5
27590   ac_status=$?
27591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592   (exit $ac_status); }; }; then
27593   ac_cv_type_boolean=yes
27594 else
27595   echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27597
27598 ac_cv_type_boolean=no
27599 fi
27600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27601 fi
27602 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27603 echo "${ECHO_T}$ac_cv_type_boolean" >&6
27604 if test $ac_cv_type_boolean = yes; then
27605
27606 cat >>confdefs.h <<_ACEOF
27607 #define HAVE_BOOLEAN 1
27608 _ACEOF
27609
27610
27611 fi
27612
27613
27614
27615 for ac_header in pbt.h
27616 do
27617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27619   echo "$as_me:$LINENO: checking for $ac_header" >&5
27620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27622   echo $ECHO_N "(cached) $ECHO_C" >&6
27623 fi
27624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27626 else
27627   # Is the header compilable?
27628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27630 cat >conftest.$ac_ext <<_ACEOF
27631 /* confdefs.h.  */
27632 _ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h.  */
27636 $ac_includes_default
27637 #include <$ac_header>
27638 _ACEOF
27639 rm -f conftest.$ac_objext
27640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27641   (eval $ac_compile) 2>conftest.er1
27642   ac_status=$?
27643   grep -v '^ *+' conftest.er1 >conftest.err
27644   rm -f conftest.er1
27645   cat conftest.err >&5
27646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647   (exit $ac_status); } &&
27648          { ac_try='test -z "$ac_cxx_werror_flag"
27649                          || test ! -s conftest.err'
27650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651   (eval $ac_try) 2>&5
27652   ac_status=$?
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); }; } &&
27655          { ac_try='test -s conftest.$ac_objext'
27656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27657   (eval $ac_try) 2>&5
27658   ac_status=$?
27659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); }; }; then
27661   ac_header_compiler=yes
27662 else
27663   echo "$as_me: failed program was:" >&5
27664 sed 's/^/| /' conftest.$ac_ext >&5
27665
27666 ac_header_compiler=no
27667 fi
27668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27670 echo "${ECHO_T}$ac_header_compiler" >&6
27671
27672 # Is the header present?
27673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27675 cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h.  */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h.  */
27681 #include <$ac_header>
27682 _ACEOF
27683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27685   ac_status=$?
27686   grep -v '^ *+' conftest.er1 >conftest.err
27687   rm -f conftest.er1
27688   cat conftest.err >&5
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); } >/dev/null; then
27691   if test -s conftest.err; then
27692     ac_cpp_err=$ac_cxx_preproc_warn_flag
27693     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27694   else
27695     ac_cpp_err=
27696   fi
27697 else
27698   ac_cpp_err=yes
27699 fi
27700 if test -z "$ac_cpp_err"; then
27701   ac_header_preproc=yes
27702 else
27703   echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27705
27706   ac_header_preproc=no
27707 fi
27708 rm -f conftest.err conftest.$ac_ext
27709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27710 echo "${ECHO_T}$ac_header_preproc" >&6
27711
27712 # So?  What about this header?
27713 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27714   yes:no: )
27715     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27719     ac_header_preproc=yes
27720     ;;
27721   no:yes:* )
27722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27724     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27725 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27726     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27728     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27729 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27732     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27734     (
27735       cat <<\_ASBOX
27736 ## ----------------------------------------- ##
27737 ## Report this to wx-dev@lists.wxwidgets.org ##
27738 ## ----------------------------------------- ##
27739 _ASBOX
27740     ) |
27741       sed "s/^/$as_me: WARNING:     /" >&2
27742     ;;
27743 esac
27744 echo "$as_me:$LINENO: checking for $ac_header" >&5
27745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27747   echo $ECHO_N "(cached) $ECHO_C" >&6
27748 else
27749   eval "$as_ac_Header=\$ac_header_preproc"
27750 fi
27751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27753
27754 fi
27755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27756   cat >>confdefs.h <<_ACEOF
27757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27758 _ACEOF
27759
27760 else
27761   cat >>confdefs.h <<\_ACEOF
27762 #define NEED_PBT_H 1
27763 _ACEOF
27764
27765 fi
27766
27767 done
27768
27769 fi
27770
27771 if test "$wxUSE_GUI" = "yes"; then
27772     USE_GUI=1
27773
27774     GUI_TK_LIBRARY=
27775
27776     WXGTK12=
27777     WXGTK127=
27778     WXGTK20=
27779     WXGPE=
27780
27781     if test "$wxUSE_COCOA" = 1 ; then
27782         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27783             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27784 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27785             wxUSE_PRINTING_ARCHITECTURE=no
27786         fi
27787         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27788             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27789 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27790             wxUSE_DRAG_AND_DROP=no
27791         fi
27792         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27793             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27794 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27795             wxUSE_DRAGIMAGE=no
27796         fi
27797     fi
27798
27799     if test "$wxUSE_MSW" = 1 ; then
27800         TOOLKIT=MSW
27801         GUIDIST=MSW_DIST
27802
27803                 case "${host}" in
27804             *-*-mingw32* )
27805                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27806         esac
27807     fi
27808
27809     if test "$wxUSE_GTK" = 1; then
27810                 ac_ext=c
27811 ac_cpp='$CPP $CPPFLAGS'
27812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27815
27816
27817         echo "$as_me:$LINENO: checking for GTK+ version" >&5
27818 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27819
27820         gtk_version_cached=1
27821         if test "${wx_cv_lib_gtk+set}" = set; then
27822   echo $ECHO_N "(cached) $ECHO_C" >&6
27823 else
27824
27825                                                 gtk_version_cached=0
27826                 echo "$as_me:$LINENO: result: " >&5
27827 echo "${ECHO_T}" >&6
27828
27829                                                 GTK_MODULES=
27830                 if test "$wxUSE_THREADS" = "yes"; then
27831                     GTK_MODULES=gthread
27832                 fi
27833
27834                                 wx_cv_lib_gtk=
27835                 if test "x$wxGTK_VERSION" != "x1"
27836                 then
27837                                                                                 case "${host}" in
27838                         *-*-solaris2* )
27839                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27840                             enable_gtktest=no
27841                             fi
27842                     esac
27843
27844                     # Check whether --enable-gtktest or --disable-gtktest was given.
27845 if test "${enable_gtktest+set}" = set; then
27846   enableval="$enable_gtktest"
27847
27848 else
27849   enable_gtktest=yes
27850 fi;
27851
27852   pkg_config_args=gtk+-2.0
27853   for module in . $GTK_MODULES
27854   do
27855       case "$module" in
27856          gthread)
27857              pkg_config_args="$pkg_config_args gthread-2.0"
27858          ;;
27859       esac
27860   done
27861
27862   no_gtk=""
27863
27864   # Extract the first word of "pkg-config", so it can be a program name with args.
27865 set dummy pkg-config; ac_word=$2
27866 echo "$as_me:$LINENO: checking for $ac_word" >&5
27867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27868 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27869   echo $ECHO_N "(cached) $ECHO_C" >&6
27870 else
27871   case $PKG_CONFIG in
27872   [\\/]* | ?:[\\/]*)
27873   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27874   ;;
27875   *)
27876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27877 for as_dir in $PATH
27878 do
27879   IFS=$as_save_IFS
27880   test -z "$as_dir" && as_dir=.
27881   for ac_exec_ext in '' $ac_executable_extensions; do
27882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27883     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27885     break 2
27886   fi
27887 done
27888 done
27889
27890   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27891   ;;
27892 esac
27893 fi
27894 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27895
27896 if test -n "$PKG_CONFIG"; then
27897   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27898 echo "${ECHO_T}$PKG_CONFIG" >&6
27899 else
27900   echo "$as_me:$LINENO: result: no" >&5
27901 echo "${ECHO_T}no" >&6
27902 fi
27903
27904
27905   if test x$PKG_CONFIG != xno ; then
27906     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27907       :
27908     else
27909       echo "*** pkg-config too old; version 0.7 or better required."
27910       no_gtk=yes
27911       PKG_CONFIG=no
27912     fi
27913   else
27914     no_gtk=yes
27915   fi
27916
27917   min_gtk_version=2.0.0
27918   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27919 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27920
27921   if test x$PKG_CONFIG != xno ; then
27922     ## don't try to run the test against uninstalled libtool libs
27923     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27924           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27925           enable_gtktest=no
27926     fi
27927
27928     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27929           :
27930     else
27931           no_gtk=yes
27932     fi
27933   fi
27934
27935   if test x"$no_gtk" = x ; then
27936     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27937     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27938     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27939            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27940     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27941            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27942     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27943            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27944     if test "x$enable_gtktest" = "xyes" ; then
27945       ac_save_CFLAGS="$CFLAGS"
27946       ac_save_LIBS="$LIBS"
27947       CFLAGS="$CFLAGS $GTK_CFLAGS"
27948       LIBS="$GTK_LIBS $LIBS"
27949       rm -f conf.gtktest
27950       if test "$cross_compiling" = yes; then
27951   echo $ac_n "cross compiling; assumed OK... $ac_c"
27952 else
27953   cat >conftest.$ac_ext <<_ACEOF
27954 /* confdefs.h.  */
27955 _ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h.  */
27959
27960 #include <gtk/gtk.h>
27961 #include <stdio.h>
27962 #include <stdlib.h>
27963
27964 int
27965 main ()
27966 {
27967   int major, minor, micro;
27968   char *tmp_version;
27969
27970   system ("touch conf.gtktest");
27971
27972   /* HP/UX 9 (%@#!) writes to sscanf strings */
27973   tmp_version = g_strdup("$min_gtk_version");
27974   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27975      printf("%s, bad version string\n", "$min_gtk_version");
27976      exit(1);
27977    }
27978
27979   if ((gtk_major_version != $gtk_config_major_version) ||
27980       (gtk_minor_version != $gtk_config_minor_version) ||
27981       (gtk_micro_version != $gtk_config_micro_version))
27982     {
27983       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27984              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27985              gtk_major_version, gtk_minor_version, gtk_micro_version);
27986       printf ("*** was found! If pkg-config was correct, then it is best\n");
27987       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27988       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27989       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27990       printf("*** required on your system.\n");
27991       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27992       printf("*** to point to the correct configuration files\n");
27993     }
27994   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27995            (gtk_minor_version != GTK_MINOR_VERSION) ||
27996            (gtk_micro_version != GTK_MICRO_VERSION))
27997     {
27998       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27999              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28000       printf("*** library (version %d.%d.%d)\n",
28001              gtk_major_version, gtk_minor_version, gtk_micro_version);
28002     }
28003   else
28004     {
28005       if ((gtk_major_version > major) ||
28006         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28007         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28008       {
28009         return 0;
28010        }
28011      else
28012       {
28013         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28014                gtk_major_version, gtk_minor_version, gtk_micro_version);
28015         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28016                major, minor, micro);
28017         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28018         printf("***\n");
28019         printf("*** If you have already installed a sufficiently new version, this error\n");
28020         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28021         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28022         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28023         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28024         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28025         printf("*** so that the correct libraries are found at run-time))\n");
28026       }
28027     }
28028   return 1;
28029 }
28030
28031 _ACEOF
28032 rm -f conftest$ac_exeext
28033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28034   (eval $ac_link) 2>&5
28035   ac_status=$?
28036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039   (eval $ac_try) 2>&5
28040   ac_status=$?
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); }; }; then
28043   :
28044 else
28045   echo "$as_me: program exited with status $ac_status" >&5
28046 echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28048
28049 ( exit $ac_status )
28050 no_gtk=yes
28051 fi
28052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28053 fi
28054        CFLAGS="$ac_save_CFLAGS"
28055        LIBS="$ac_save_LIBS"
28056      fi
28057   fi
28058   if test "x$no_gtk" = x ; then
28059      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28060 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
28061      wx_cv_lib_gtk=2.0
28062   else
28063      echo "$as_me:$LINENO: result: no" >&5
28064 echo "${ECHO_T}no" >&6
28065      if test "$PKG_CONFIG" = "no" ; then
28066        echo "*** A new enough version of pkg-config was not found."
28067        echo "*** See http://pkgconfig.sourceforge.net"
28068      else
28069        if test -f conf.gtktest ; then
28070         :
28071        else
28072           echo "*** Could not run GTK+ test program, checking why..."
28073           ac_save_CFLAGS="$CFLAGS"
28074           ac_save_LIBS="$LIBS"
28075           CFLAGS="$CFLAGS $GTK_CFLAGS"
28076           LIBS="$LIBS $GTK_LIBS"
28077           cat >conftest.$ac_ext <<_ACEOF
28078 /* confdefs.h.  */
28079 _ACEOF
28080 cat confdefs.h >>conftest.$ac_ext
28081 cat >>conftest.$ac_ext <<_ACEOF
28082 /* end confdefs.h.  */
28083
28084 #include <gtk/gtk.h>
28085 #include <stdio.h>
28086
28087 int
28088 main ()
28089 {
28090  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28091   ;
28092   return 0;
28093 }
28094 _ACEOF
28095 rm -f conftest.$ac_objext conftest$ac_exeext
28096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28097   (eval $ac_link) 2>conftest.er1
28098   ac_status=$?
28099   grep -v '^ *+' conftest.er1 >conftest.err
28100   rm -f conftest.er1
28101   cat conftest.err >&5
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); } &&
28104          { ac_try='test -z "$ac_c_werror_flag"
28105                          || test ! -s conftest.err'
28106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28107   (eval $ac_try) 2>&5
28108   ac_status=$?
28109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110   (exit $ac_status); }; } &&
28111          { ac_try='test -s conftest$ac_exeext'
28112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28113   (eval $ac_try) 2>&5
28114   ac_status=$?
28115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116   (exit $ac_status); }; }; then
28117    echo "*** The test program compiled, but did not run. This usually means"
28118           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28119           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28120           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28121           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28122           echo "*** is required on your system"
28123           echo "***"
28124           echo "*** If you have an old version installed, it is best to remove it, although"
28125           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28126 else
28127   echo "$as_me: failed program was:" >&5
28128 sed 's/^/| /' conftest.$ac_ext >&5
28129
28130  echo "*** The test program failed to compile or link. See the file config.log for the"
28131           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28132 fi
28133 rm -f conftest.err conftest.$ac_objext \
28134       conftest$ac_exeext conftest.$ac_ext
28135           CFLAGS="$ac_save_CFLAGS"
28136           LIBS="$ac_save_LIBS"
28137        fi
28138      fi
28139      GTK_CFLAGS=""
28140      GTK_LIBS=""
28141      :
28142   fi
28143
28144
28145   rm -f conf.gtktest
28146
28147
28148                                         case "${host}" in
28149                         *-*-solaris2* )
28150                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28151                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28152                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28153                             fi
28154                                                         if test "$wxUSE_SHARED" != "yes"; then
28155                                 GTK_LIBS="$GTK_LIBS -lX11"
28156                             fi
28157                     esac
28158                 fi
28159
28160                                 if test -z "$wx_cv_lib_gtk"; then
28161                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28162
28163 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28164 if test "${with_gtk_prefix+set}" = set; then
28165   withval="$with_gtk_prefix"
28166   gtk_config_prefix="$withval"
28167 else
28168   gtk_config_prefix=""
28169 fi;
28170
28171 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28172 if test "${with_gtk_exec_prefix+set}" = set; then
28173   withval="$with_gtk_exec_prefix"
28174   gtk_config_exec_prefix="$withval"
28175 else
28176   gtk_config_exec_prefix=""
28177 fi;
28178 # Check whether --enable-gtktest or --disable-gtktest was given.
28179 if test "${enable_gtktest+set}" = set; then
28180   enableval="$enable_gtktest"
28181
28182 else
28183   enable_gtktest=yes
28184 fi;
28185
28186   for module in . $GTK_MODULES
28187   do
28188       case "$module" in
28189          gthread)
28190              gtk_config_args="$gtk_config_args gthread"
28191          ;;
28192       esac
28193   done
28194
28195   if test x$gtk_config_exec_prefix != x ; then
28196      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28197      if test x${GTK_CONFIG+set} != xset ; then
28198         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28199      fi
28200   fi
28201   if test x$gtk_config_prefix != x ; then
28202      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28203      if test x${GTK_CONFIG+set} != xset ; then
28204         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28205      fi
28206   fi
28207
28208   # Extract the first word of "gtk-config", so it can be a program name with args.
28209 set dummy gtk-config; ac_word=$2
28210 echo "$as_me:$LINENO: checking for $ac_word" >&5
28211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28212 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28213   echo $ECHO_N "(cached) $ECHO_C" >&6
28214 else
28215   case $GTK_CONFIG in
28216   [\\/]* | ?:[\\/]*)
28217   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28218   ;;
28219   *)
28220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28221 for as_dir in $PATH
28222 do
28223   IFS=$as_save_IFS
28224   test -z "$as_dir" && as_dir=.
28225   for ac_exec_ext in '' $ac_executable_extensions; do
28226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28227     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28229     break 2
28230   fi
28231 done
28232 done
28233
28234   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28235   ;;
28236 esac
28237 fi
28238 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28239
28240 if test -n "$GTK_CONFIG"; then
28241   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28242 echo "${ECHO_T}$GTK_CONFIG" >&6
28243 else
28244   echo "$as_me:$LINENO: result: no" >&5
28245 echo "${ECHO_T}no" >&6
28246 fi
28247
28248   min_gtk_version=1.2.7
28249   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28250 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28251   no_gtk=""
28252   if test "$GTK_CONFIG" = "no" ; then
28253     no_gtk=yes
28254   else
28255     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28256     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28257     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28258            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28259     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28260            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28261     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28262            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28263     if test "x$enable_gtktest" = "xyes" ; then
28264       ac_save_CFLAGS="$CFLAGS"
28265       ac_save_LIBS="$LIBS"
28266       CFLAGS="$CFLAGS $GTK_CFLAGS"
28267       LIBS="$GTK_LIBS $LIBS"
28268       rm -f conf.gtktest
28269       if test "$cross_compiling" = yes; then
28270   echo $ac_n "cross compiling; assumed OK... $ac_c"
28271 else
28272   cat >conftest.$ac_ext <<_ACEOF
28273 /* confdefs.h.  */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h.  */
28278
28279 #include <gtk/gtk.h>
28280 #include <stdio.h>
28281 #include <stdlib.h>
28282
28283 int
28284 main ()
28285 {
28286   int major, minor, micro;
28287   char *tmp_version;
28288
28289   system ("touch conf.gtktest");
28290
28291   /* HP/UX 9 (%@#!) writes to sscanf strings */
28292   tmp_version = g_strdup("$min_gtk_version");
28293   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28294      printf("%s, bad version string\n", "$min_gtk_version");
28295      exit(1);
28296    }
28297
28298   if ((gtk_major_version != $gtk_config_major_version) ||
28299       (gtk_minor_version != $gtk_config_minor_version) ||
28300       (gtk_micro_version != $gtk_config_micro_version))
28301     {
28302       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28303              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28304              gtk_major_version, gtk_minor_version, gtk_micro_version);
28305       printf ("*** was found! If gtk-config was correct, then it is best\n");
28306       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28307       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28308       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28309       printf("*** required on your system.\n");
28310       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28311       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28312       printf("*** before re-running configure\n");
28313     }
28314 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28315   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28316            (gtk_minor_version != GTK_MINOR_VERSION) ||
28317            (gtk_micro_version != GTK_MICRO_VERSION))
28318     {
28319       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28320              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28321       printf("*** library (version %d.%d.%d)\n",
28322              gtk_major_version, gtk_minor_version, gtk_micro_version);
28323     }
28324 #endif /* defined (GTK_MAJOR_VERSION) ... */
28325   else
28326     {
28327       if ((gtk_major_version > major) ||
28328         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28329         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28330       {
28331         return 0;
28332        }
28333      else
28334       {
28335         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28336                gtk_major_version, gtk_minor_version, gtk_micro_version);
28337         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28338                major, minor, micro);
28339         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28340         printf("***\n");
28341         printf("*** If you have already installed a sufficiently new version, this error\n");
28342         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28343         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28344         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28345         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28346         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28347         printf("*** so that the correct libraries are found at run-time))\n");
28348       }
28349     }
28350   return 1;
28351 }
28352
28353 _ACEOF
28354 rm -f conftest$ac_exeext
28355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28356   (eval $ac_link) 2>&5
28357   ac_status=$?
28358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361   (eval $ac_try) 2>&5
28362   ac_status=$?
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); }; }; then
28365   :
28366 else
28367   echo "$as_me: program exited with status $ac_status" >&5
28368 echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28370
28371 ( exit $ac_status )
28372 no_gtk=yes
28373 fi
28374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28375 fi
28376        CFLAGS="$ac_save_CFLAGS"
28377        LIBS="$ac_save_LIBS"
28378      fi
28379   fi
28380   if test "x$no_gtk" = x ; then
28381      echo "$as_me:$LINENO: result: yes" >&5
28382 echo "${ECHO_T}yes" >&6
28383      wx_cv_lib_gtk=1.2.7
28384   else
28385      echo "$as_me:$LINENO: result: no" >&5
28386 echo "${ECHO_T}no" >&6
28387      if test "$GTK_CONFIG" = "no" ; then
28388        echo "*** The gtk-config script installed by GTK could not be found"
28389        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28390        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28391        echo "*** full path to gtk-config."
28392      else
28393        if test -f conf.gtktest ; then
28394         :
28395        else
28396           echo "*** Could not run GTK test program, checking why..."
28397           CFLAGS="$CFLAGS $GTK_CFLAGS"
28398           LIBS="$LIBS $GTK_LIBS"
28399           cat >conftest.$ac_ext <<_ACEOF
28400 /* confdefs.h.  */
28401 _ACEOF
28402 cat confdefs.h >>conftest.$ac_ext
28403 cat >>conftest.$ac_ext <<_ACEOF
28404 /* end confdefs.h.  */
28405
28406 #include <gtk/gtk.h>
28407 #include <stdio.h>
28408
28409 int
28410 main ()
28411 {
28412  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28413   ;
28414   return 0;
28415 }
28416 _ACEOF
28417 rm -f conftest.$ac_objext conftest$ac_exeext
28418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28419   (eval $ac_link) 2>conftest.er1
28420   ac_status=$?
28421   grep -v '^ *+' conftest.er1 >conftest.err
28422   rm -f conftest.er1
28423   cat conftest.err >&5
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); } &&
28426          { ac_try='test -z "$ac_c_werror_flag"
28427                          || test ! -s conftest.err'
28428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28429   (eval $ac_try) 2>&5
28430   ac_status=$?
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); }; } &&
28433          { ac_try='test -s conftest$ac_exeext'
28434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28435   (eval $ac_try) 2>&5
28436   ac_status=$?
28437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438   (exit $ac_status); }; }; then
28439    echo "*** The test program compiled, but did not run. This usually means"
28440           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28441           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28442           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28443           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28444           echo "*** is required on your system"
28445           echo "***"
28446           echo "*** If you have an old version installed, it is best to remove it, although"
28447           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28448           echo "***"
28449           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28450           echo "*** came with the system with the command"
28451           echo "***"
28452           echo "***    rpm --erase --nodeps gtk gtk-devel"
28453 else
28454   echo "$as_me: failed program was:" >&5
28455 sed 's/^/| /' conftest.$ac_ext >&5
28456
28457  echo "*** The test program failed to compile or link. See the file config.log for the"
28458           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28459           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28460           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28461 fi
28462 rm -f conftest.err conftest.$ac_objext \
28463       conftest$ac_exeext conftest.$ac_ext
28464           CFLAGS="$ac_save_CFLAGS"
28465           LIBS="$ac_save_LIBS"
28466        fi
28467      fi
28468      GTK_CFLAGS=""
28469      GTK_LIBS=""
28470      :
28471   fi
28472
28473
28474   rm -f conf.gtktest
28475
28476
28477                         if test -z "$wx_cv_lib_gtk"; then
28478
28479 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28480 if test "${with_gtk_prefix+set}" = set; then
28481   withval="$with_gtk_prefix"
28482   gtk_config_prefix="$withval"
28483 else
28484   gtk_config_prefix=""
28485 fi;
28486
28487 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28488 if test "${with_gtk_exec_prefix+set}" = set; then
28489   withval="$with_gtk_exec_prefix"
28490   gtk_config_exec_prefix="$withval"
28491 else
28492   gtk_config_exec_prefix=""
28493 fi;
28494 # Check whether --enable-gtktest or --disable-gtktest was given.
28495 if test "${enable_gtktest+set}" = set; then
28496   enableval="$enable_gtktest"
28497
28498 else
28499   enable_gtktest=yes
28500 fi;
28501
28502   for module in . $GTK_MODULES
28503   do
28504       case "$module" in
28505          gthread)
28506              gtk_config_args="$gtk_config_args gthread"
28507          ;;
28508       esac
28509   done
28510
28511   if test x$gtk_config_exec_prefix != x ; then
28512      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28513      if test x${GTK_CONFIG+set} != xset ; then
28514         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28515      fi
28516   fi
28517   if test x$gtk_config_prefix != x ; then
28518      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28519      if test x${GTK_CONFIG+set} != xset ; then
28520         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28521      fi
28522   fi
28523
28524   # Extract the first word of "gtk-config", so it can be a program name with args.
28525 set dummy gtk-config; ac_word=$2
28526 echo "$as_me:$LINENO: checking for $ac_word" >&5
28527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28528 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28529   echo $ECHO_N "(cached) $ECHO_C" >&6
28530 else
28531   case $GTK_CONFIG in
28532   [\\/]* | ?:[\\/]*)
28533   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28534   ;;
28535   *)
28536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28537 for as_dir in $PATH
28538 do
28539   IFS=$as_save_IFS
28540   test -z "$as_dir" && as_dir=.
28541   for ac_exec_ext in '' $ac_executable_extensions; do
28542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28543     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28545     break 2
28546   fi
28547 done
28548 done
28549
28550   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28551   ;;
28552 esac
28553 fi
28554 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28555
28556 if test -n "$GTK_CONFIG"; then
28557   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28558 echo "${ECHO_T}$GTK_CONFIG" >&6
28559 else
28560   echo "$as_me:$LINENO: result: no" >&5
28561 echo "${ECHO_T}no" >&6
28562 fi
28563
28564   min_gtk_version=1.2.3
28565   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28566 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28567   no_gtk=""
28568   if test "$GTK_CONFIG" = "no" ; then
28569     no_gtk=yes
28570   else
28571     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28572     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28573     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28574            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28575     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28576            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28577     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28578            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28579     if test "x$enable_gtktest" = "xyes" ; then
28580       ac_save_CFLAGS="$CFLAGS"
28581       ac_save_LIBS="$LIBS"
28582       CFLAGS="$CFLAGS $GTK_CFLAGS"
28583       LIBS="$GTK_LIBS $LIBS"
28584       rm -f conf.gtktest
28585       if test "$cross_compiling" = yes; then
28586   echo $ac_n "cross compiling; assumed OK... $ac_c"
28587 else
28588   cat >conftest.$ac_ext <<_ACEOF
28589 /* confdefs.h.  */
28590 _ACEOF
28591 cat confdefs.h >>conftest.$ac_ext
28592 cat >>conftest.$ac_ext <<_ACEOF
28593 /* end confdefs.h.  */
28594
28595 #include <gtk/gtk.h>
28596 #include <stdio.h>
28597 #include <stdlib.h>
28598
28599 int
28600 main ()
28601 {
28602   int major, minor, micro;
28603   char *tmp_version;
28604
28605   system ("touch conf.gtktest");
28606
28607   /* HP/UX 9 (%@#!) writes to sscanf strings */
28608   tmp_version = g_strdup("$min_gtk_version");
28609   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28610      printf("%s, bad version string\n", "$min_gtk_version");
28611      exit(1);
28612    }
28613
28614   if ((gtk_major_version != $gtk_config_major_version) ||
28615       (gtk_minor_version != $gtk_config_minor_version) ||
28616       (gtk_micro_version != $gtk_config_micro_version))
28617     {
28618       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28619              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28620              gtk_major_version, gtk_minor_version, gtk_micro_version);
28621       printf ("*** was found! If gtk-config was correct, then it is best\n");
28622       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28623       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28624       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28625       printf("*** required on your system.\n");
28626       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28627       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28628       printf("*** before re-running configure\n");
28629     }
28630 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28631   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28632            (gtk_minor_version != GTK_MINOR_VERSION) ||
28633            (gtk_micro_version != GTK_MICRO_VERSION))
28634     {
28635       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28636              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28637       printf("*** library (version %d.%d.%d)\n",
28638              gtk_major_version, gtk_minor_version, gtk_micro_version);
28639     }
28640 #endif /* defined (GTK_MAJOR_VERSION) ... */
28641   else
28642     {
28643       if ((gtk_major_version > major) ||
28644         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28645         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28646       {
28647         return 0;
28648        }
28649      else
28650       {
28651         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28652                gtk_major_version, gtk_minor_version, gtk_micro_version);
28653         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28654                major, minor, micro);
28655         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28656         printf("***\n");
28657         printf("*** If you have already installed a sufficiently new version, this error\n");
28658         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28659         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28660         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28661         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28662         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28663         printf("*** so that the correct libraries are found at run-time))\n");
28664       }
28665     }
28666   return 1;
28667 }
28668
28669 _ACEOF
28670 rm -f conftest$ac_exeext
28671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28672   (eval $ac_link) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677   (eval $ac_try) 2>&5
28678   ac_status=$?
28679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680   (exit $ac_status); }; }; then
28681   :
28682 else
28683   echo "$as_me: program exited with status $ac_status" >&5
28684 echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28686
28687 ( exit $ac_status )
28688 no_gtk=yes
28689 fi
28690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28691 fi
28692        CFLAGS="$ac_save_CFLAGS"
28693        LIBS="$ac_save_LIBS"
28694      fi
28695   fi
28696   if test "x$no_gtk" = x ; then
28697      echo "$as_me:$LINENO: result: yes" >&5
28698 echo "${ECHO_T}yes" >&6
28699      wx_cv_lib_gtk=1.2.3
28700   else
28701      echo "$as_me:$LINENO: result: no" >&5
28702 echo "${ECHO_T}no" >&6
28703      if test "$GTK_CONFIG" = "no" ; then
28704        echo "*** The gtk-config script installed by GTK could not be found"
28705        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28706        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28707        echo "*** full path to gtk-config."
28708      else
28709        if test -f conf.gtktest ; then
28710         :
28711        else
28712           echo "*** Could not run GTK test program, checking why..."
28713           CFLAGS="$CFLAGS $GTK_CFLAGS"
28714           LIBS="$LIBS $GTK_LIBS"
28715           cat >conftest.$ac_ext <<_ACEOF
28716 /* confdefs.h.  */
28717 _ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h.  */
28721
28722 #include <gtk/gtk.h>
28723 #include <stdio.h>
28724
28725 int
28726 main ()
28727 {
28728  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28729   ;
28730   return 0;
28731 }
28732 _ACEOF
28733 rm -f conftest.$ac_objext conftest$ac_exeext
28734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28735   (eval $ac_link) 2>conftest.er1
28736   ac_status=$?
28737   grep -v '^ *+' conftest.er1 >conftest.err
28738   rm -f conftest.er1
28739   cat conftest.err >&5
28740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741   (exit $ac_status); } &&
28742          { ac_try='test -z "$ac_c_werror_flag"
28743                          || test ! -s conftest.err'
28744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745   (eval $ac_try) 2>&5
28746   ac_status=$?
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); }; } &&
28749          { ac_try='test -s conftest$ac_exeext'
28750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751   (eval $ac_try) 2>&5
28752   ac_status=$?
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); }; }; then
28755    echo "*** The test program compiled, but did not run. This usually means"
28756           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28757           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28758           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28759           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28760           echo "*** is required on your system"
28761           echo "***"
28762           echo "*** If you have an old version installed, it is best to remove it, although"
28763           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28764           echo "***"
28765           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28766           echo "*** came with the system with the command"
28767           echo "***"
28768           echo "***    rpm --erase --nodeps gtk gtk-devel"
28769 else
28770   echo "$as_me: failed program was:" >&5
28771 sed 's/^/| /' conftest.$ac_ext >&5
28772
28773  echo "*** The test program failed to compile or link. See the file config.log for the"
28774           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28775           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28776           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28777 fi
28778 rm -f conftest.err conftest.$ac_objext \
28779       conftest$ac_exeext conftest.$ac_ext
28780           CFLAGS="$ac_save_CFLAGS"
28781           LIBS="$ac_save_LIBS"
28782        fi
28783      fi
28784      GTK_CFLAGS=""
28785      GTK_LIBS=""
28786      :
28787   fi
28788
28789
28790   rm -f conf.gtktest
28791
28792                         fi
28793                     fi
28794                 fi
28795
28796                 if test -z "$wx_cv_lib_gtk"; then
28797                                         wx_cv_lib_gtk=none
28798                 else
28799                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28800                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28801                 fi
28802
28803
28804 fi
28805
28806
28807                         if test "$gtk_version_cached" = 1; then
28808             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28809 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28810         fi
28811
28812         case "$wx_cv_lib_gtk" in
28813             2.0)    WXGTK20=1
28814                     TOOLKIT_VERSION=2
28815                     ;;
28816             1.2.7)  WXGTK127=1
28817                     WXGTK12=1
28818                     ;;
28819             1.2.3)  WXGTK12=1
28820                     ;;
28821             *)      { { echo "$as_me:$LINENO: error:
28822 The development files for GTK+ were not found. For GTK+ 2, please
28823 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28824 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28825 and that the version is 1.2.3 or above. Also check that the
28826 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28827 --libs' are in the LD_LIBRARY_PATH or equivalent.
28828                             " >&5
28829 echo "$as_me: error:
28830 The development files for GTK+ were not found. For GTK+ 2, please
28831 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28832 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28833 and that the version is 1.2.3 or above. Also check that the
28834 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28835 --libs' are in the LD_LIBRARY_PATH or equivalent.
28836                             " >&2;}
28837    { (exit 1); exit 1; }; }
28838                     ;;
28839         esac
28840
28841         if test "$WXGTK20" = 1; then
28842             save_CFLAGS="$CFLAGS"
28843             save_LIBS="$LIBS"
28844             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28845             LIBS="$LIBS $wx_cv_libs_gtk"
28846
28847                                                             echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28848 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28849 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28850   echo $ECHO_N "(cached) $ECHO_C" >&6
28851 else
28852   cat >conftest.$ac_ext <<_ACEOF
28853 /* confdefs.h.  */
28854 _ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h.  */
28858 #include <gtk/gtk.h>
28859
28860 int
28861 main ()
28862 {
28863 #ifndef gtk_icon_size_lookup
28864   char *p = (char *) gtk_icon_size_lookup;
28865 #endif
28866
28867   ;
28868   return 0;
28869 }
28870 _ACEOF
28871 rm -f conftest.$ac_objext
28872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28873   (eval $ac_compile) 2>conftest.er1
28874   ac_status=$?
28875   grep -v '^ *+' conftest.er1 >conftest.err
28876   rm -f conftest.er1
28877   cat conftest.err >&5
28878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879   (exit $ac_status); } &&
28880          { ac_try='test -z "$ac_c_werror_flag"
28881                          || test ! -s conftest.err'
28882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28883   (eval $ac_try) 2>&5
28884   ac_status=$?
28885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886   (exit $ac_status); }; } &&
28887          { ac_try='test -s conftest.$ac_objext'
28888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889   (eval $ac_try) 2>&5
28890   ac_status=$?
28891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892   (exit $ac_status); }; }; then
28893   ac_cv_have_decl_gtk_icon_size_lookup=yes
28894 else
28895   echo "$as_me: failed program was:" >&5
28896 sed 's/^/| /' conftest.$ac_ext >&5
28897
28898 ac_cv_have_decl_gtk_icon_size_lookup=no
28899 fi
28900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28901 fi
28902 echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28903 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28904 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
28905
28906 cat >>confdefs.h <<_ACEOF
28907 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
28908 _ACEOF
28909
28910
28911 else
28912   cat >>confdefs.h <<_ACEOF
28913 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28914 _ACEOF
28915
28916 cat >>confdefs.h <<\_ACEOF
28917 #define NEED_GTK_ICON_SIZE_LOOKUP 1
28918 _ACEOF
28919
28920 fi
28921
28922
28923
28924                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28925 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28926             cat >conftest.$ac_ext <<_ACEOF
28927 /* confdefs.h.  */
28928 _ACEOF
28929 cat confdefs.h >>conftest.$ac_ext
28930 cat >>conftest.$ac_ext <<_ACEOF
28931 /* end confdefs.h.  */
28932
28933                             #include <gtk/gtk.h>
28934
28935 int
28936 main ()
28937 {
28938
28939                             #if !GTK_CHECK_VERSION(2,6,0)
28940                             Not GTK+ 2.6
28941                             #endif
28942
28943   ;
28944   return 0;
28945 }
28946 _ACEOF
28947 rm -f conftest.$ac_objext
28948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28949   (eval $ac_compile) 2>conftest.er1
28950   ac_status=$?
28951   grep -v '^ *+' conftest.er1 >conftest.err
28952   rm -f conftest.er1
28953   cat conftest.err >&5
28954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955   (exit $ac_status); } &&
28956          { ac_try='test -z "$ac_c_werror_flag"
28957                          || test ! -s conftest.err'
28958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959   (eval $ac_try) 2>&5
28960   ac_status=$?
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); }; } &&
28963          { ac_try='test -s conftest.$ac_objext'
28964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965   (eval $ac_try) 2>&5
28966   ac_status=$?
28967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); }; }; then
28969
28970                             cat >>confdefs.h <<\_ACEOF
28971 #define __WXGTK26__ 1
28972 _ACEOF
28973
28974                             cat >>confdefs.h <<\_ACEOF
28975 #define __WXGTK24__ 1
28976 _ACEOF
28977
28978                             echo "$as_me:$LINENO: result: yes" >&5
28979 echo "${ECHO_T}yes" >&6
28980                             ac_wxgtk26=1
28981
28982 else
28983   echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28985
28986
28987                             echo "$as_me:$LINENO: result: no" >&5
28988 echo "${ECHO_T}no" >&6
28989                             ac_wxgtk26=0
28990
28991 fi
28992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28993
28994             if test "$ac_wxgtk26" = 0; then
28995                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28996 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28997             cat >conftest.$ac_ext <<_ACEOF
28998 /* confdefs.h.  */
28999 _ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h.  */
29003
29004                             #include <gtk/gtk.h>
29005
29006 int
29007 main ()
29008 {
29009
29010                             #if !GTK_CHECK_VERSION(2,4,0)
29011                             Not GTK+ 2.4
29012                             #endif
29013
29014   ;
29015   return 0;
29016 }
29017 _ACEOF
29018 rm -f conftest.$ac_objext
29019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29020   (eval $ac_compile) 2>conftest.er1
29021   ac_status=$?
29022   grep -v '^ *+' conftest.er1 >conftest.err
29023   rm -f conftest.er1
29024   cat conftest.err >&5
29025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026   (exit $ac_status); } &&
29027          { ac_try='test -z "$ac_c_werror_flag"
29028                          || test ! -s conftest.err'
29029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29030   (eval $ac_try) 2>&5
29031   ac_status=$?
29032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033   (exit $ac_status); }; } &&
29034          { ac_try='test -s conftest.$ac_objext'
29035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036   (eval $ac_try) 2>&5
29037   ac_status=$?
29038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039   (exit $ac_status); }; }; then
29040
29041                             cat >>confdefs.h <<\_ACEOF
29042 #define __WXGTK24__ 1
29043 _ACEOF
29044
29045                             echo "$as_me:$LINENO: result: yes" >&5
29046 echo "${ECHO_T}yes" >&6
29047
29048 else
29049   echo "$as_me: failed program was:" >&5
29050 sed 's/^/| /' conftest.$ac_ext >&5
29051
29052
29053                             echo "$as_me:$LINENO: result: no" >&5
29054 echo "${ECHO_T}no" >&6
29055
29056 fi
29057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29058             fi
29059
29060             CFLAGS="$save_CFLAGS"
29061             LIBS="$save_LIBS"
29062         else
29063             if test "$wxUSE_UNICODE" = "yes"; then
29064                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29065 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29066                 wxUSE_UNICODE=no
29067             fi
29068
29069                         echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29070 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
29071 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29072   echo $ECHO_N "(cached) $ECHO_C" >&6
29073 else
29074   ac_check_lib_save_LIBS=$LIBS
29075 LIBS="-lgdk  $LIBS"
29076 cat >conftest.$ac_ext <<_ACEOF
29077 /* confdefs.h.  */
29078 _ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h.  */
29082
29083 /* Override any gcc2 internal prototype to avoid an error.  */
29084 #ifdef __cplusplus
29085 extern "C"
29086 #endif
29087 /* We use char because int might match the return type of a gcc2
29088    builtin and then its argument prototype would still apply.  */
29089 char gdk_im_open ();
29090 int
29091 main ()
29092 {
29093 gdk_im_open ();
29094   ;
29095   return 0;
29096 }
29097 _ACEOF
29098 rm -f conftest.$ac_objext conftest$ac_exeext
29099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29100   (eval $ac_link) 2>conftest.er1
29101   ac_status=$?
29102   grep -v '^ *+' conftest.er1 >conftest.err
29103   rm -f conftest.er1
29104   cat conftest.err >&5
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); } &&
29107          { ac_try='test -z "$ac_c_werror_flag"
29108                          || test ! -s conftest.err'
29109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29110   (eval $ac_try) 2>&5
29111   ac_status=$?
29112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113   (exit $ac_status); }; } &&
29114          { ac_try='test -s conftest$ac_exeext'
29115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116   (eval $ac_try) 2>&5
29117   ac_status=$?
29118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119   (exit $ac_status); }; }; then
29120   ac_cv_lib_gdk_gdk_im_open=yes
29121 else
29122   echo "$as_me: failed program was:" >&5
29123 sed 's/^/| /' conftest.$ac_ext >&5
29124
29125 ac_cv_lib_gdk_gdk_im_open=no
29126 fi
29127 rm -f conftest.err conftest.$ac_objext \
29128       conftest$ac_exeext conftest.$ac_ext
29129 LIBS=$ac_check_lib_save_LIBS
29130 fi
29131 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29132 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29133 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29134   cat >>confdefs.h <<\_ACEOF
29135 #define HAVE_XIM 1
29136 _ACEOF
29137
29138 fi
29139
29140         fi
29141
29142         ac_ext=cc
29143 ac_cpp='$CXXCPP $CPPFLAGS'
29144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29147
29148
29149                         if test "$USE_DARWIN" != 1; then
29150
29151 for ac_func in poll
29152 do
29153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29154 echo "$as_me:$LINENO: checking for $ac_func" >&5
29155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29156 if eval "test \"\${$as_ac_var+set}\" = set"; then
29157   echo $ECHO_N "(cached) $ECHO_C" >&6
29158 else
29159   cat >conftest.$ac_ext <<_ACEOF
29160 /* confdefs.h.  */
29161 _ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h.  */
29165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29167 #define $ac_func innocuous_$ac_func
29168
29169 /* System header to define __stub macros and hopefully few prototypes,
29170     which can conflict with char $ac_func (); below.
29171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29172     <limits.h> exists even on freestanding compilers.  */
29173
29174 #ifdef __STDC__
29175 # include <limits.h>
29176 #else
29177 # include <assert.h>
29178 #endif
29179
29180 #undef $ac_func
29181
29182 /* Override any gcc2 internal prototype to avoid an error.  */
29183 #ifdef __cplusplus
29184 extern "C"
29185 {
29186 #endif
29187 /* We use char because int might match the return type of a gcc2
29188    builtin and then its argument prototype would still apply.  */
29189 char $ac_func ();
29190 /* The GNU C library defines this for functions which it implements
29191     to always fail with ENOSYS.  Some functions are actually named
29192     something starting with __ and the normal name is an alias.  */
29193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29194 choke me
29195 #else
29196 char (*f) () = $ac_func;
29197 #endif
29198 #ifdef __cplusplus
29199 }
29200 #endif
29201
29202 int
29203 main ()
29204 {
29205 return f != $ac_func;
29206   ;
29207   return 0;
29208 }
29209 _ACEOF
29210 rm -f conftest.$ac_objext conftest$ac_exeext
29211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29212   (eval $ac_link) 2>conftest.er1
29213   ac_status=$?
29214   grep -v '^ *+' conftest.er1 >conftest.err
29215   rm -f conftest.er1
29216   cat conftest.err >&5
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); } &&
29219          { ac_try='test -z "$ac_cxx_werror_flag"
29220                          || test ! -s conftest.err'
29221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29222   (eval $ac_try) 2>&5
29223   ac_status=$?
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); }; } &&
29226          { ac_try='test -s conftest$ac_exeext'
29227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29228   (eval $ac_try) 2>&5
29229   ac_status=$?
29230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231   (exit $ac_status); }; }; then
29232   eval "$as_ac_var=yes"
29233 else
29234   echo "$as_me: failed program was:" >&5
29235 sed 's/^/| /' conftest.$ac_ext >&5
29236
29237 eval "$as_ac_var=no"
29238 fi
29239 rm -f conftest.err conftest.$ac_objext \
29240       conftest$ac_exeext conftest.$ac_ext
29241 fi
29242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29244 if test `eval echo '${'$as_ac_var'}'` = yes; then
29245   cat >>confdefs.h <<_ACEOF
29246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29247 _ACEOF
29248
29249 fi
29250 done
29251
29252         fi
29253
29254         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29255         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29256
29257         AFMINSTALL=afminstall
29258         TOOLKIT=GTK
29259         GUIDIST=GTK_DIST
29260
29261                 if test "$wxUSE_GPE" = "yes"; then
29262             echo "$as_me:$LINENO: checking for gpewidget library" >&5
29263 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29264
29265   ac_find_libraries=
29266   for ac_dir in $SEARCH_LIB;
29267   do
29268     for ac_extension in a so sl dylib dll.a; do
29269       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29270         ac_find_libraries=$ac_dir
29271         break 2
29272       fi
29273     done
29274   done
29275
29276             if test "$ac_find_libraries" != "" ; then
29277
29278     if test "$ac_find_libraries" = "default location"; then
29279     ac_path_to_link=""
29280   else
29281     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29282     result=$?
29283     if test $result = 0; then
29284       ac_path_to_link=""
29285     else
29286       ac_path_to_link=" -L$ac_find_libraries"
29287     fi
29288   fi
29289
29290                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29291                 WXGPE=1
29292                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29293 echo "${ECHO_T}found in $ac_find_libraries" >&6
29294             else
29295                 echo "$as_me:$LINENO: result: not found" >&5
29296 echo "${ECHO_T}not found" >&6
29297             fi
29298
29299                                                                                                                     fi
29300     fi
29301
29302     if test "$wxUSE_MGL" = 1; then
29303        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29304 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29305         if test "x$MGL_ROOT" = x ; then
29306             echo "$as_me:$LINENO: result: not found" >&5
29307 echo "${ECHO_T}not found" >&6
29308             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29309 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29310    { (exit 1); exit 1; }; }
29311         else
29312             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29313 echo "${ECHO_T}$MGL_ROOT" >&6
29314         fi
29315
29316         echo "$as_me:$LINENO: checking for libmgl location" >&5
29317 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29318                                 case "${host}" in
29319             *-*-linux* )
29320                                           if test "x$wxUSE_SHARED" = xyes ; then
29321                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29322               else
29323                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29324               fi
29325               ;;
29326             *-pc-msdosdjgpp )
29327               mgl_os_candidates="dos32/dj2"
29328               ;;
29329             *)
29330               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29331 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29332    { (exit 1); exit 1; }; }
29333         esac
29334
29335         mgl_lib_type=""
29336         mgl_os=""
29337
29338         for mgl_os_i in $mgl_os_candidates ; do
29339             if test "x$mgl_os" = x ; then
29340                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29341                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29342                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29343                         mgl_lib_type=debug
29344                         mgl_os=$mgl_os_i
29345                     fi
29346                 fi
29347                 if test "x$mgl_lib_type" = x ; then
29348                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29349                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29350                         mgl_lib_type=release
29351                         mgl_os=$mgl_os_i
29352                     fi
29353                 fi
29354             fi
29355         done
29356
29357         if test "x$mgl_os" = x ; then
29358             echo "$as_me:$LINENO: result: not found" >&5
29359 echo "${ECHO_T}not found" >&6
29360             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29361 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29362    { (exit 1); exit 1; }; }
29363         fi
29364         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29365 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29366
29367         wxUSE_UNIVERSAL="yes"
29368
29369         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29370         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29371
29372         AFMINSTALL=afminstall
29373         TOOLKIT=MGL
29374         GUIDIST=MGL_DIST
29375     fi
29376
29377     if test "$wxUSE_DFB" = 1; then
29378
29379
29380 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29381         if test -n "$ac_tool_prefix"; then
29382   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29383 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29384 echo "$as_me:$LINENO: checking for $ac_word" >&5
29385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29387   echo $ECHO_N "(cached) $ECHO_C" >&6
29388 else
29389   case $PKG_CONFIG in
29390   [\\/]* | ?:[\\/]*)
29391   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29392   ;;
29393   *)
29394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29395 for as_dir in $PATH
29396 do
29397   IFS=$as_save_IFS
29398   test -z "$as_dir" && as_dir=.
29399   for ac_exec_ext in '' $ac_executable_extensions; do
29400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29401     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29403     break 2
29404   fi
29405 done
29406 done
29407
29408   ;;
29409 esac
29410 fi
29411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29412
29413 if test -n "$PKG_CONFIG"; then
29414   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29415 echo "${ECHO_T}$PKG_CONFIG" >&6
29416 else
29417   echo "$as_me:$LINENO: result: no" >&5
29418 echo "${ECHO_T}no" >&6
29419 fi
29420
29421 fi
29422 if test -z "$ac_cv_path_PKG_CONFIG"; then
29423   ac_pt_PKG_CONFIG=$PKG_CONFIG
29424   # Extract the first word of "pkg-config", so it can be a program name with args.
29425 set dummy pkg-config; ac_word=$2
29426 echo "$as_me:$LINENO: checking for $ac_word" >&5
29427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29428 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29429   echo $ECHO_N "(cached) $ECHO_C" >&6
29430 else
29431   case $ac_pt_PKG_CONFIG in
29432   [\\/]* | ?:[\\/]*)
29433   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29434   ;;
29435   *)
29436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29437 for as_dir in $PATH
29438 do
29439   IFS=$as_save_IFS
29440   test -z "$as_dir" && as_dir=.
29441   for ac_exec_ext in '' $ac_executable_extensions; do
29442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29443     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29445     break 2
29446   fi
29447 done
29448 done
29449
29450   ;;
29451 esac
29452 fi
29453 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29454
29455 if test -n "$ac_pt_PKG_CONFIG"; then
29456   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29457 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29458 else
29459   echo "$as_me:$LINENO: result: no" >&5
29460 echo "${ECHO_T}no" >&6
29461 fi
29462
29463   PKG_CONFIG=$ac_pt_PKG_CONFIG
29464 else
29465   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29466 fi
29467
29468 fi
29469 if test -n "$PKG_CONFIG"; then
29470         _pkg_min_version=0.9.0
29471         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29472 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29473         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29474                 echo "$as_me:$LINENO: result: yes" >&5
29475 echo "${ECHO_T}yes" >&6
29476         else
29477                 echo "$as_me:$LINENO: result: no" >&5
29478 echo "${ECHO_T}no" >&6
29479                 PKG_CONFIG=""
29480         fi
29481
29482 fi
29483
29484 pkg_failed=no
29485 echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29486 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29487
29488 if test -n "$PKG_CONFIG"; then
29489     if test -n "$DIRECTFB_CFLAGS"; then
29490         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29491     else
29492         if test -n "$PKG_CONFIG" && \
29493     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29494   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
29495   ac_status=$?
29496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497   (exit $ac_status); }; then
29498   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
29499 else
29500   pkg_failed=yes
29501 fi
29502     fi
29503 else
29504         pkg_failed=untried
29505 fi
29506 if test -n "$PKG_CONFIG"; then
29507     if test -n "$DIRECTFB_LIBS"; then
29508         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29509     else
29510         if test -n "$PKG_CONFIG" && \
29511     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29512   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
29513   ac_status=$?
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); }; then
29516   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
29517 else
29518   pkg_failed=yes
29519 fi
29520     fi
29521 else
29522         pkg_failed=untried
29523 fi
29524
29525
29526
29527 if test $pkg_failed = yes; then
29528
29529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29530         _pkg_short_errors_supported=yes
29531 else
29532         _pkg_short_errors_supported=no
29533 fi
29534         if test $_pkg_short_errors_supported = yes; then
29535                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
29536         else
29537                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
29538         fi
29539         # Put the nasty error message in config.log where it belongs
29540         echo "$DIRECTFB_PKG_ERRORS" >&5
29541
29542
29543                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29544 echo "$as_me: error: DirectFB not found." >&2;}
29545    { (exit 1); exit 1; }; }
29546
29547
29548 elif test $pkg_failed = untried; then
29549
29550                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29551 echo "$as_me: error: DirectFB not found." >&2;}
29552    { (exit 1); exit 1; }; }
29553
29554
29555 else
29556         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29557         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29558         echo "$as_me:$LINENO: result: yes" >&5
29559 echo "${ECHO_T}yes" >&6
29560
29561                            wxUSE_UNIVERSAL="yes"
29562                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29563                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29564                            TOOLKIT=DFB
29565                            GUIDIST=DFB_DIST
29566
29567 fi
29568     fi
29569
29570     if test "$wxUSE_MICROWIN" = 1; then
29571         echo "$as_me:$LINENO: checking for MicroWindows" >&5
29572 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29573         if test "x$MICROWINDOWS" = x ; then
29574             echo "$as_me:$LINENO: result: not found" >&5
29575 echo "${ECHO_T}not found" >&6
29576             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29577 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29578    { (exit 1); exit 1; }; }
29579         else
29580             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29581 echo "${ECHO_T}$MICROWINDOWS" >&6
29582         fi
29583
29584         if test -f $MICROWINDOWS/lib/libmwin.a; then
29585             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29586 echo "${ECHO_T}MicroWindows' libraries found." >&6
29587         else
29588             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29589 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29590    { (exit 1); exit 1; }; }
29591         fi
29592
29593         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29594         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29595
29596         wxUSE_UNIVERSAL="yes"
29597
29598         AFMINSTALL=afminstall
29599         TOOLKIT=MICROWIN
29600         GUIDIST=MICROWIN_DIST
29601
29602         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29603     fi
29604
29605         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29606                                 echo "$as_me:$LINENO: checking for X" >&5
29607 echo $ECHO_N "checking for X... $ECHO_C" >&6
29608
29609
29610 # Check whether --with-x or --without-x was given.
29611 if test "${with_x+set}" = set; then
29612   withval="$with_x"
29613
29614 fi;
29615 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29616 if test "x$with_x" = xno; then
29617   # The user explicitly disabled X.
29618   have_x=disabled
29619 else
29620   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29621     # Both variables are already set.
29622     have_x=yes
29623   else
29624     if test "${ac_cv_have_x+set}" = set; then
29625   echo $ECHO_N "(cached) $ECHO_C" >&6
29626 else
29627   # One or both of the vars are not set, and there is no cached value.
29628 ac_x_includes=no ac_x_libraries=no
29629 rm -fr conftest.dir
29630 if mkdir conftest.dir; then
29631   cd conftest.dir
29632   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29633   cat >Imakefile <<'_ACEOF'
29634 acfindx:
29635         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29636 _ACEOF
29637   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29638     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29639     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29640     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29641     for ac_extension in a so sl; do
29642       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29643          test -f $ac_im_libdir/libX11.$ac_extension; then
29644         ac_im_usrlibdir=$ac_im_libdir; break
29645       fi
29646     done
29647     # Screen out bogus values from the imake configuration.  They are
29648     # bogus both because they are the default anyway, and because
29649     # using them would break gcc on systems where it needs fixed includes.
29650     case $ac_im_incroot in
29651         /usr/include) ;;
29652         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29653     esac
29654     case $ac_im_usrlibdir in
29655         /usr/lib | /lib) ;;
29656         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29657     esac
29658   fi
29659   cd ..
29660   rm -fr conftest.dir
29661 fi
29662
29663 # Standard set of common directories for X headers.
29664 # Check X11 before X11Rn because it is often a symlink to the current release.
29665 ac_x_header_dirs='
29666 /usr/X11/include
29667 /usr/X11R6/include
29668 /usr/X11R5/include
29669 /usr/X11R4/include
29670
29671 /usr/include/X11
29672 /usr/include/X11R6
29673 /usr/include/X11R5
29674 /usr/include/X11R4
29675
29676 /usr/local/X11/include
29677 /usr/local/X11R6/include
29678 /usr/local/X11R5/include
29679 /usr/local/X11R4/include
29680
29681 /usr/local/include/X11
29682 /usr/local/include/X11R6
29683 /usr/local/include/X11R5
29684 /usr/local/include/X11R4
29685
29686 /usr/X386/include
29687 /usr/x386/include
29688 /usr/XFree86/include/X11
29689
29690 /usr/include
29691 /usr/local/include
29692 /usr/unsupported/include
29693 /usr/athena/include
29694 /usr/local/x11r5/include
29695 /usr/lpp/Xamples/include
29696
29697 /usr/openwin/include
29698 /usr/openwin/share/include'
29699
29700 if test "$ac_x_includes" = no; then
29701   # Guess where to find include files, by looking for Intrinsic.h.
29702   # First, try using that file with no special directory specified.
29703   cat >conftest.$ac_ext <<_ACEOF
29704 /* confdefs.h.  */
29705 _ACEOF
29706 cat confdefs.h >>conftest.$ac_ext
29707 cat >>conftest.$ac_ext <<_ACEOF
29708 /* end confdefs.h.  */
29709 #include <X11/Intrinsic.h>
29710 _ACEOF
29711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29713   ac_status=$?
29714   grep -v '^ *+' conftest.er1 >conftest.err
29715   rm -f conftest.er1
29716   cat conftest.err >&5
29717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718   (exit $ac_status); } >/dev/null; then
29719   if test -s conftest.err; then
29720     ac_cpp_err=$ac_cxx_preproc_warn_flag
29721     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29722   else
29723     ac_cpp_err=
29724   fi
29725 else
29726   ac_cpp_err=yes
29727 fi
29728 if test -z "$ac_cpp_err"; then
29729   # We can compile using X headers with no special include directory.
29730 ac_x_includes=
29731 else
29732   echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29734
29735   for ac_dir in $ac_x_header_dirs; do
29736   if test -r "$ac_dir/X11/Intrinsic.h"; then
29737     ac_x_includes=$ac_dir
29738     break
29739   fi
29740 done
29741 fi
29742 rm -f conftest.err conftest.$ac_ext
29743 fi # $ac_x_includes = no
29744
29745 if test "$ac_x_libraries" = no; then
29746   # Check for the libraries.
29747   # See if we find them without any special options.
29748   # Don't add to $LIBS permanently.
29749   ac_save_LIBS=$LIBS
29750   LIBS="-lXt $LIBS"
29751   cat >conftest.$ac_ext <<_ACEOF
29752 /* confdefs.h.  */
29753 _ACEOF
29754 cat confdefs.h >>conftest.$ac_ext
29755 cat >>conftest.$ac_ext <<_ACEOF
29756 /* end confdefs.h.  */
29757 #include <X11/Intrinsic.h>
29758 int
29759 main ()
29760 {
29761 XtMalloc (0)
29762   ;
29763   return 0;
29764 }
29765 _ACEOF
29766 rm -f conftest.$ac_objext conftest$ac_exeext
29767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29768   (eval $ac_link) 2>conftest.er1
29769   ac_status=$?
29770   grep -v '^ *+' conftest.er1 >conftest.err
29771   rm -f conftest.er1
29772   cat conftest.err >&5
29773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774   (exit $ac_status); } &&
29775          { ac_try='test -z "$ac_cxx_werror_flag"
29776                          || test ! -s conftest.err'
29777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29778   (eval $ac_try) 2>&5
29779   ac_status=$?
29780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781   (exit $ac_status); }; } &&
29782          { ac_try='test -s conftest$ac_exeext'
29783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29784   (eval $ac_try) 2>&5
29785   ac_status=$?
29786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787   (exit $ac_status); }; }; then
29788   LIBS=$ac_save_LIBS
29789 # We can link X programs with no special library path.
29790 ac_x_libraries=
29791 else
29792   echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29794
29795 LIBS=$ac_save_LIBS
29796 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29797 do
29798   # Don't even attempt the hair of trying to link an X program!
29799   for ac_extension in a so sl; do
29800     if test -r $ac_dir/libXt.$ac_extension; then
29801       ac_x_libraries=$ac_dir
29802       break 2
29803     fi
29804   done
29805 done
29806 fi
29807 rm -f conftest.err conftest.$ac_objext \
29808       conftest$ac_exeext conftest.$ac_ext
29809 fi # $ac_x_libraries = no
29810
29811 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29812   # Didn't find X anywhere.  Cache the known absence of X.
29813   ac_cv_have_x="have_x=no"
29814 else
29815   # Record where we found X for the cache.
29816   ac_cv_have_x="have_x=yes \
29817                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29818 fi
29819 fi
29820
29821   fi
29822   eval "$ac_cv_have_x"
29823 fi # $with_x != no
29824
29825 if test "$have_x" != yes; then
29826   echo "$as_me:$LINENO: result: $have_x" >&5
29827 echo "${ECHO_T}$have_x" >&6
29828   no_x=yes
29829 else
29830   # If each of the values was on the command line, it overrides each guess.
29831   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29832   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29833   # Update the cache value to reflect the command line values.
29834   ac_cv_have_x="have_x=yes \
29835                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29836   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29837 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
29838 fi
29839
29840 if test "$no_x" = yes; then
29841   # Not all programs may use this symbol, but it does not hurt to define it.
29842
29843 cat >>confdefs.h <<\_ACEOF
29844 #define X_DISPLAY_MISSING 1
29845 _ACEOF
29846
29847   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29848 else
29849   if test -n "$x_includes"; then
29850     X_CFLAGS="$X_CFLAGS -I$x_includes"
29851   fi
29852
29853   # It would also be nice to do this for all -L options, not just this one.
29854   if test -n "$x_libraries"; then
29855     X_LIBS="$X_LIBS -L$x_libraries"
29856     # For Solaris; some versions of Sun CC require a space after -R and
29857     # others require no space.  Words are not sufficient . . . .
29858     case `(uname -sr) 2>/dev/null` in
29859     "SunOS 5"*)
29860       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29861 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29862       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29863       cat >conftest.$ac_ext <<_ACEOF
29864 /* confdefs.h.  */
29865 _ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h.  */
29869
29870 int
29871 main ()
29872 {
29873
29874   ;
29875   return 0;
29876 }
29877 _ACEOF
29878 rm -f conftest.$ac_objext conftest$ac_exeext
29879 if { (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_cxx_werror_flag"
29888                          || test ! -s conftest.err'
29889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890   (eval $ac_try) 2>&5
29891   ac_status=$?
29892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893   (exit $ac_status); }; } &&
29894          { ac_try='test -s conftest$ac_exeext'
29895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29896   (eval $ac_try) 2>&5
29897   ac_status=$?
29898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899   (exit $ac_status); }; }; then
29900   ac_R_nospace=yes
29901 else
29902   echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29904
29905 ac_R_nospace=no
29906 fi
29907 rm -f conftest.err conftest.$ac_objext \
29908       conftest$ac_exeext conftest.$ac_ext
29909       if test $ac_R_nospace = yes; then
29910         echo "$as_me:$LINENO: result: no" >&5
29911 echo "${ECHO_T}no" >&6
29912         X_LIBS="$X_LIBS -R$x_libraries"
29913       else
29914         LIBS="$ac_xsave_LIBS -R $x_libraries"
29915         cat >conftest.$ac_ext <<_ACEOF
29916 /* confdefs.h.  */
29917 _ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h.  */
29921
29922 int
29923 main ()
29924 {
29925
29926   ;
29927   return 0;
29928 }
29929 _ACEOF
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29932   (eval $ac_link) 2>conftest.er1
29933   ac_status=$?
29934   grep -v '^ *+' conftest.er1 >conftest.err
29935   rm -f conftest.er1
29936   cat conftest.err >&5
29937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); } &&
29939          { ac_try='test -z "$ac_cxx_werror_flag"
29940                          || test ! -s conftest.err'
29941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942   (eval $ac_try) 2>&5
29943   ac_status=$?
29944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945   (exit $ac_status); }; } &&
29946          { ac_try='test -s conftest$ac_exeext'
29947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948   (eval $ac_try) 2>&5
29949   ac_status=$?
29950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951   (exit $ac_status); }; }; then
29952   ac_R_space=yes
29953 else
29954   echo "$as_me: failed program was:" >&5
29955 sed 's/^/| /' conftest.$ac_ext >&5
29956
29957 ac_R_space=no
29958 fi
29959 rm -f conftest.err conftest.$ac_objext \
29960       conftest$ac_exeext conftest.$ac_ext
29961         if test $ac_R_space = yes; then
29962           echo "$as_me:$LINENO: result: yes" >&5
29963 echo "${ECHO_T}yes" >&6
29964           X_LIBS="$X_LIBS -R $x_libraries"
29965         else
29966           echo "$as_me:$LINENO: result: neither works" >&5
29967 echo "${ECHO_T}neither works" >&6
29968         fi
29969       fi
29970       LIBS=$ac_xsave_LIBS
29971     esac
29972   fi
29973
29974   # Check for system-dependent libraries X programs must link with.
29975   # Do this before checking for the system-independent R6 libraries
29976   # (-lICE), since we may need -lsocket or whatever for X linking.
29977
29978   if test "$ISC" = yes; then
29979     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29980   else
29981     # Martyn Johnson says this is needed for Ultrix, if the X
29982     # libraries were built with DECnet support.  And Karl Berry says
29983     # the Alpha needs dnet_stub (dnet does not exist).
29984     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29985     cat >conftest.$ac_ext <<_ACEOF
29986 /* confdefs.h.  */
29987 _ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h.  */
29991
29992 /* Override any gcc2 internal prototype to avoid an error.  */
29993 #ifdef __cplusplus
29994 extern "C"
29995 #endif
29996 /* We use char because int might match the return type of a gcc2
29997    builtin and then its argument prototype would still apply.  */
29998 char XOpenDisplay ();
29999 int
30000 main ()
30001 {
30002 XOpenDisplay ();
30003   ;
30004   return 0;
30005 }
30006 _ACEOF
30007 rm -f conftest.$ac_objext conftest$ac_exeext
30008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30009   (eval $ac_link) 2>conftest.er1
30010   ac_status=$?
30011   grep -v '^ *+' conftest.er1 >conftest.err
30012   rm -f conftest.er1
30013   cat conftest.err >&5
30014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015   (exit $ac_status); } &&
30016          { ac_try='test -z "$ac_cxx_werror_flag"
30017                          || test ! -s conftest.err'
30018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019   (eval $ac_try) 2>&5
30020   ac_status=$?
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); }; } &&
30023          { ac_try='test -s conftest$ac_exeext'
30024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025   (eval $ac_try) 2>&5
30026   ac_status=$?
30027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028   (exit $ac_status); }; }; then
30029   :
30030 else
30031   echo "$as_me: failed program was:" >&5
30032 sed 's/^/| /' conftest.$ac_ext >&5
30033
30034 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30035 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
30036 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30037   echo $ECHO_N "(cached) $ECHO_C" >&6
30038 else
30039   ac_check_lib_save_LIBS=$LIBS
30040 LIBS="-ldnet  $LIBS"
30041 cat >conftest.$ac_ext <<_ACEOF
30042 /* confdefs.h.  */
30043 _ACEOF
30044 cat confdefs.h >>conftest.$ac_ext
30045 cat >>conftest.$ac_ext <<_ACEOF
30046 /* end confdefs.h.  */
30047
30048 /* Override any gcc2 internal prototype to avoid an error.  */
30049 #ifdef __cplusplus
30050 extern "C"
30051 #endif
30052 /* We use char because int might match the return type of a gcc2
30053    builtin and then its argument prototype would still apply.  */
30054 char dnet_ntoa ();
30055 int
30056 main ()
30057 {
30058 dnet_ntoa ();
30059   ;
30060   return 0;
30061 }
30062 _ACEOF
30063 rm -f conftest.$ac_objext conftest$ac_exeext
30064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30065   (eval $ac_link) 2>conftest.er1
30066   ac_status=$?
30067   grep -v '^ *+' conftest.er1 >conftest.err
30068   rm -f conftest.er1
30069   cat conftest.err >&5
30070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071   (exit $ac_status); } &&
30072          { ac_try='test -z "$ac_cxx_werror_flag"
30073                          || test ! -s conftest.err'
30074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30075   (eval $ac_try) 2>&5
30076   ac_status=$?
30077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078   (exit $ac_status); }; } &&
30079          { ac_try='test -s conftest$ac_exeext'
30080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30081   (eval $ac_try) 2>&5
30082   ac_status=$?
30083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084   (exit $ac_status); }; }; then
30085   ac_cv_lib_dnet_dnet_ntoa=yes
30086 else
30087   echo "$as_me: failed program was:" >&5
30088 sed 's/^/| /' conftest.$ac_ext >&5
30089
30090 ac_cv_lib_dnet_dnet_ntoa=no
30091 fi
30092 rm -f conftest.err conftest.$ac_objext \
30093       conftest$ac_exeext conftest.$ac_ext
30094 LIBS=$ac_check_lib_save_LIBS
30095 fi
30096 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30097 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
30098 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30099   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30100 fi
30101
30102     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30103       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30104 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
30105 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30106   echo $ECHO_N "(cached) $ECHO_C" >&6
30107 else
30108   ac_check_lib_save_LIBS=$LIBS
30109 LIBS="-ldnet_stub  $LIBS"
30110 cat >conftest.$ac_ext <<_ACEOF
30111 /* confdefs.h.  */
30112 _ACEOF
30113 cat confdefs.h >>conftest.$ac_ext
30114 cat >>conftest.$ac_ext <<_ACEOF
30115 /* end confdefs.h.  */
30116
30117 /* Override any gcc2 internal prototype to avoid an error.  */
30118 #ifdef __cplusplus
30119 extern "C"
30120 #endif
30121 /* We use char because int might match the return type of a gcc2
30122    builtin and then its argument prototype would still apply.  */
30123 char dnet_ntoa ();
30124 int
30125 main ()
30126 {
30127 dnet_ntoa ();
30128   ;
30129   return 0;
30130 }
30131 _ACEOF
30132 rm -f conftest.$ac_objext conftest$ac_exeext
30133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30134   (eval $ac_link) 2>conftest.er1
30135   ac_status=$?
30136   grep -v '^ *+' conftest.er1 >conftest.err
30137   rm -f conftest.er1
30138   cat conftest.err >&5
30139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140   (exit $ac_status); } &&
30141          { ac_try='test -z "$ac_cxx_werror_flag"
30142                          || test ! -s conftest.err'
30143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144   (eval $ac_try) 2>&5
30145   ac_status=$?
30146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147   (exit $ac_status); }; } &&
30148          { ac_try='test -s conftest$ac_exeext'
30149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150   (eval $ac_try) 2>&5
30151   ac_status=$?
30152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153   (exit $ac_status); }; }; then
30154   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30155 else
30156   echo "$as_me: failed program was:" >&5
30157 sed 's/^/| /' conftest.$ac_ext >&5
30158
30159 ac_cv_lib_dnet_stub_dnet_ntoa=no
30160 fi
30161 rm -f conftest.err conftest.$ac_objext \
30162       conftest$ac_exeext conftest.$ac_ext
30163 LIBS=$ac_check_lib_save_LIBS
30164 fi
30165 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30166 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30167 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30168   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30169 fi
30170
30171     fi
30172 fi
30173 rm -f conftest.err conftest.$ac_objext \
30174       conftest$ac_exeext conftest.$ac_ext
30175     LIBS="$ac_xsave_LIBS"
30176
30177     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30178     # to get the SysV transport functions.
30179     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30180     # needs -lnsl.
30181     # The nsl library prevents programs from opening the X display
30182     # on Irix 5.2, according to T.E. Dickey.
30183     # The functions gethostbyname, getservbyname, and inet_addr are
30184     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30185     echo "$as_me:$LINENO: checking for gethostbyname" >&5
30186 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30187 if test "${ac_cv_func_gethostbyname+set}" = set; then
30188   echo $ECHO_N "(cached) $ECHO_C" >&6
30189 else
30190   cat >conftest.$ac_ext <<_ACEOF
30191 /* confdefs.h.  */
30192 _ACEOF
30193 cat confdefs.h >>conftest.$ac_ext
30194 cat >>conftest.$ac_ext <<_ACEOF
30195 /* end confdefs.h.  */
30196 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30198 #define gethostbyname innocuous_gethostbyname
30199
30200 /* System header to define __stub macros and hopefully few prototypes,
30201     which can conflict with char gethostbyname (); below.
30202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30203     <limits.h> exists even on freestanding compilers.  */
30204
30205 #ifdef __STDC__
30206 # include <limits.h>
30207 #else
30208 # include <assert.h>
30209 #endif
30210
30211 #undef gethostbyname
30212
30213 /* Override any gcc2 internal prototype to avoid an error.  */
30214 #ifdef __cplusplus
30215 extern "C"
30216 {
30217 #endif
30218 /* We use char because int might match the return type of a gcc2
30219    builtin and then its argument prototype would still apply.  */
30220 char gethostbyname ();
30221 /* The GNU C library defines this for functions which it implements
30222     to always fail with ENOSYS.  Some functions are actually named
30223     something starting with __ and the normal name is an alias.  */
30224 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30225 choke me
30226 #else
30227 char (*f) () = gethostbyname;
30228 #endif
30229 #ifdef __cplusplus
30230 }
30231 #endif
30232
30233 int
30234 main ()
30235 {
30236 return f != gethostbyname;
30237   ;
30238   return 0;
30239 }
30240 _ACEOF
30241 rm -f conftest.$ac_objext conftest$ac_exeext
30242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30243   (eval $ac_link) 2>conftest.er1
30244   ac_status=$?
30245   grep -v '^ *+' conftest.er1 >conftest.err
30246   rm -f conftest.er1
30247   cat conftest.err >&5
30248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249   (exit $ac_status); } &&
30250          { ac_try='test -z "$ac_cxx_werror_flag"
30251                          || test ! -s conftest.err'
30252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253   (eval $ac_try) 2>&5
30254   ac_status=$?
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); }; } &&
30257          { ac_try='test -s conftest$ac_exeext'
30258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259   (eval $ac_try) 2>&5
30260   ac_status=$?
30261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); }; }; then
30263   ac_cv_func_gethostbyname=yes
30264 else
30265   echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30267
30268 ac_cv_func_gethostbyname=no
30269 fi
30270 rm -f conftest.err conftest.$ac_objext \
30271       conftest$ac_exeext conftest.$ac_ext
30272 fi
30273 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30274 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30275
30276     if test $ac_cv_func_gethostbyname = no; then
30277       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30278 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30279 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30280   echo $ECHO_N "(cached) $ECHO_C" >&6
30281 else
30282   ac_check_lib_save_LIBS=$LIBS
30283 LIBS="-lnsl  $LIBS"
30284 cat >conftest.$ac_ext <<_ACEOF
30285 /* confdefs.h.  */
30286 _ACEOF
30287 cat confdefs.h >>conftest.$ac_ext
30288 cat >>conftest.$ac_ext <<_ACEOF
30289 /* end confdefs.h.  */
30290
30291 /* Override any gcc2 internal prototype to avoid an error.  */
30292 #ifdef __cplusplus
30293 extern "C"
30294 #endif
30295 /* We use char because int might match the return type of a gcc2
30296    builtin and then its argument prototype would still apply.  */
30297 char gethostbyname ();
30298 int
30299 main ()
30300 {
30301 gethostbyname ();
30302   ;
30303   return 0;
30304 }
30305 _ACEOF
30306 rm -f conftest.$ac_objext conftest$ac_exeext
30307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30308   (eval $ac_link) 2>conftest.er1
30309   ac_status=$?
30310   grep -v '^ *+' conftest.er1 >conftest.err
30311   rm -f conftest.er1
30312   cat conftest.err >&5
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); } &&
30315          { ac_try='test -z "$ac_cxx_werror_flag"
30316                          || test ! -s conftest.err'
30317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318   (eval $ac_try) 2>&5
30319   ac_status=$?
30320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321   (exit $ac_status); }; } &&
30322          { ac_try='test -s conftest$ac_exeext'
30323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30324   (eval $ac_try) 2>&5
30325   ac_status=$?
30326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327   (exit $ac_status); }; }; then
30328   ac_cv_lib_nsl_gethostbyname=yes
30329 else
30330   echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.$ac_ext >&5
30332
30333 ac_cv_lib_nsl_gethostbyname=no
30334 fi
30335 rm -f conftest.err conftest.$ac_objext \
30336       conftest$ac_exeext conftest.$ac_ext
30337 LIBS=$ac_check_lib_save_LIBS
30338 fi
30339 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30340 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30341 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30342   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30343 fi
30344
30345       if test $ac_cv_lib_nsl_gethostbyname = no; then
30346         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30347 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30348 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30349   echo $ECHO_N "(cached) $ECHO_C" >&6
30350 else
30351   ac_check_lib_save_LIBS=$LIBS
30352 LIBS="-lbsd  $LIBS"
30353 cat >conftest.$ac_ext <<_ACEOF
30354 /* confdefs.h.  */
30355 _ACEOF
30356 cat confdefs.h >>conftest.$ac_ext
30357 cat >>conftest.$ac_ext <<_ACEOF
30358 /* end confdefs.h.  */
30359
30360 /* Override any gcc2 internal prototype to avoid an error.  */
30361 #ifdef __cplusplus
30362 extern "C"
30363 #endif
30364 /* We use char because int might match the return type of a gcc2
30365    builtin and then its argument prototype would still apply.  */
30366 char gethostbyname ();
30367 int
30368 main ()
30369 {
30370 gethostbyname ();
30371   ;
30372   return 0;
30373 }
30374 _ACEOF
30375 rm -f conftest.$ac_objext conftest$ac_exeext
30376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30377   (eval $ac_link) 2>conftest.er1
30378   ac_status=$?
30379   grep -v '^ *+' conftest.er1 >conftest.err
30380   rm -f conftest.er1
30381   cat conftest.err >&5
30382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383   (exit $ac_status); } &&
30384          { ac_try='test -z "$ac_cxx_werror_flag"
30385                          || test ! -s conftest.err'
30386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30387   (eval $ac_try) 2>&5
30388   ac_status=$?
30389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390   (exit $ac_status); }; } &&
30391          { ac_try='test -s conftest$ac_exeext'
30392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30393   (eval $ac_try) 2>&5
30394   ac_status=$?
30395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396   (exit $ac_status); }; }; then
30397   ac_cv_lib_bsd_gethostbyname=yes
30398 else
30399   echo "$as_me: failed program was:" >&5
30400 sed 's/^/| /' conftest.$ac_ext >&5
30401
30402 ac_cv_lib_bsd_gethostbyname=no
30403 fi
30404 rm -f conftest.err conftest.$ac_objext \
30405       conftest$ac_exeext conftest.$ac_ext
30406 LIBS=$ac_check_lib_save_LIBS
30407 fi
30408 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30409 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30410 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30411   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30412 fi
30413
30414       fi
30415     fi
30416
30417     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30418     # socket/setsockopt and other routines are undefined under SCO ODT
30419     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30420     # on later versions), says Simon Leinen: it contains gethostby*
30421     # variants that don't use the name server (or something).  -lsocket
30422     # must be given before -lnsl if both are needed.  We assume that
30423     # if connect needs -lnsl, so does gethostbyname.
30424     echo "$as_me:$LINENO: checking for connect" >&5
30425 echo $ECHO_N "checking for connect... $ECHO_C" >&6
30426 if test "${ac_cv_func_connect+set}" = set; then
30427   echo $ECHO_N "(cached) $ECHO_C" >&6
30428 else
30429   cat >conftest.$ac_ext <<_ACEOF
30430 /* confdefs.h.  */
30431 _ACEOF
30432 cat confdefs.h >>conftest.$ac_ext
30433 cat >>conftest.$ac_ext <<_ACEOF
30434 /* end confdefs.h.  */
30435 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30437 #define connect innocuous_connect
30438
30439 /* System header to define __stub macros and hopefully few prototypes,
30440     which can conflict with char connect (); below.
30441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30442     <limits.h> exists even on freestanding compilers.  */
30443
30444 #ifdef __STDC__
30445 # include <limits.h>
30446 #else
30447 # include <assert.h>
30448 #endif
30449
30450 #undef connect
30451
30452 /* Override any gcc2 internal prototype to avoid an error.  */
30453 #ifdef __cplusplus
30454 extern "C"
30455 {
30456 #endif
30457 /* We use char because int might match the return type of a gcc2
30458    builtin and then its argument prototype would still apply.  */
30459 char connect ();
30460 /* The GNU C library defines this for functions which it implements
30461     to always fail with ENOSYS.  Some functions are actually named
30462     something starting with __ and the normal name is an alias.  */
30463 #if defined (__stub_connect) || defined (__stub___connect)
30464 choke me
30465 #else
30466 char (*f) () = connect;
30467 #endif
30468 #ifdef __cplusplus
30469 }
30470 #endif
30471
30472 int
30473 main ()
30474 {
30475 return f != connect;
30476   ;
30477   return 0;
30478 }
30479 _ACEOF
30480 rm -f conftest.$ac_objext conftest$ac_exeext
30481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30482   (eval $ac_link) 2>conftest.er1
30483   ac_status=$?
30484   grep -v '^ *+' conftest.er1 >conftest.err
30485   rm -f conftest.er1
30486   cat conftest.err >&5
30487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488   (exit $ac_status); } &&
30489          { ac_try='test -z "$ac_cxx_werror_flag"
30490                          || test ! -s conftest.err'
30491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30492   (eval $ac_try) 2>&5
30493   ac_status=$?
30494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495   (exit $ac_status); }; } &&
30496          { ac_try='test -s conftest$ac_exeext'
30497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498   (eval $ac_try) 2>&5
30499   ac_status=$?
30500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501   (exit $ac_status); }; }; then
30502   ac_cv_func_connect=yes
30503 else
30504   echo "$as_me: failed program was:" >&5
30505 sed 's/^/| /' conftest.$ac_ext >&5
30506
30507 ac_cv_func_connect=no
30508 fi
30509 rm -f conftest.err conftest.$ac_objext \
30510       conftest$ac_exeext conftest.$ac_ext
30511 fi
30512 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30513 echo "${ECHO_T}$ac_cv_func_connect" >&6
30514
30515     if test $ac_cv_func_connect = no; then
30516       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30517 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30518 if test "${ac_cv_lib_socket_connect+set}" = set; then
30519   echo $ECHO_N "(cached) $ECHO_C" >&6
30520 else
30521   ac_check_lib_save_LIBS=$LIBS
30522 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30523 cat >conftest.$ac_ext <<_ACEOF
30524 /* confdefs.h.  */
30525 _ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h.  */
30529
30530 /* Override any gcc2 internal prototype to avoid an error.  */
30531 #ifdef __cplusplus
30532 extern "C"
30533 #endif
30534 /* We use char because int might match the return type of a gcc2
30535    builtin and then its argument prototype would still apply.  */
30536 char connect ();
30537 int
30538 main ()
30539 {
30540 connect ();
30541   ;
30542   return 0;
30543 }
30544 _ACEOF
30545 rm -f conftest.$ac_objext conftest$ac_exeext
30546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30547   (eval $ac_link) 2>conftest.er1
30548   ac_status=$?
30549   grep -v '^ *+' conftest.er1 >conftest.err
30550   rm -f conftest.er1
30551   cat conftest.err >&5
30552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553   (exit $ac_status); } &&
30554          { ac_try='test -z "$ac_cxx_werror_flag"
30555                          || test ! -s conftest.err'
30556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30557   (eval $ac_try) 2>&5
30558   ac_status=$?
30559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560   (exit $ac_status); }; } &&
30561          { ac_try='test -s conftest$ac_exeext'
30562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30563   (eval $ac_try) 2>&5
30564   ac_status=$?
30565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566   (exit $ac_status); }; }; then
30567   ac_cv_lib_socket_connect=yes
30568 else
30569   echo "$as_me: failed program was:" >&5
30570 sed 's/^/| /' conftest.$ac_ext >&5
30571
30572 ac_cv_lib_socket_connect=no
30573 fi
30574 rm -f conftest.err conftest.$ac_objext \
30575       conftest$ac_exeext conftest.$ac_ext
30576 LIBS=$ac_check_lib_save_LIBS
30577 fi
30578 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30579 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30580 if test $ac_cv_lib_socket_connect = yes; then
30581   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30582 fi
30583
30584     fi
30585
30586     # Guillermo Gomez says -lposix is necessary on A/UX.
30587     echo "$as_me:$LINENO: checking for remove" >&5
30588 echo $ECHO_N "checking for remove... $ECHO_C" >&6
30589 if test "${ac_cv_func_remove+set}" = set; then
30590   echo $ECHO_N "(cached) $ECHO_C" >&6
30591 else
30592   cat >conftest.$ac_ext <<_ACEOF
30593 /* confdefs.h.  */
30594 _ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h.  */
30598 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30600 #define remove innocuous_remove
30601
30602 /* System header to define __stub macros and hopefully few prototypes,
30603     which can conflict with char remove (); below.
30604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30605     <limits.h> exists even on freestanding compilers.  */
30606
30607 #ifdef __STDC__
30608 # include <limits.h>
30609 #else
30610 # include <assert.h>
30611 #endif
30612
30613 #undef remove
30614
30615 /* Override any gcc2 internal prototype to avoid an error.  */
30616 #ifdef __cplusplus
30617 extern "C"
30618 {
30619 #endif
30620 /* We use char because int might match the return type of a gcc2
30621    builtin and then its argument prototype would still apply.  */
30622 char remove ();
30623 /* The GNU C library defines this for functions which it implements
30624     to always fail with ENOSYS.  Some functions are actually named
30625     something starting with __ and the normal name is an alias.  */
30626 #if defined (__stub_remove) || defined (__stub___remove)
30627 choke me
30628 #else
30629 char (*f) () = remove;
30630 #endif
30631 #ifdef __cplusplus
30632 }
30633 #endif
30634
30635 int
30636 main ()
30637 {
30638 return f != remove;
30639   ;
30640   return 0;
30641 }
30642 _ACEOF
30643 rm -f conftest.$ac_objext conftest$ac_exeext
30644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30645   (eval $ac_link) 2>conftest.er1
30646   ac_status=$?
30647   grep -v '^ *+' conftest.er1 >conftest.err
30648   rm -f conftest.er1
30649   cat conftest.err >&5
30650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651   (exit $ac_status); } &&
30652          { ac_try='test -z "$ac_cxx_werror_flag"
30653                          || test ! -s conftest.err'
30654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655   (eval $ac_try) 2>&5
30656   ac_status=$?
30657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658   (exit $ac_status); }; } &&
30659          { ac_try='test -s conftest$ac_exeext'
30660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661   (eval $ac_try) 2>&5
30662   ac_status=$?
30663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664   (exit $ac_status); }; }; then
30665   ac_cv_func_remove=yes
30666 else
30667   echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.$ac_ext >&5
30669
30670 ac_cv_func_remove=no
30671 fi
30672 rm -f conftest.err conftest.$ac_objext \
30673       conftest$ac_exeext conftest.$ac_ext
30674 fi
30675 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30676 echo "${ECHO_T}$ac_cv_func_remove" >&6
30677
30678     if test $ac_cv_func_remove = no; then
30679       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30680 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30681 if test "${ac_cv_lib_posix_remove+set}" = set; then
30682   echo $ECHO_N "(cached) $ECHO_C" >&6
30683 else
30684   ac_check_lib_save_LIBS=$LIBS
30685 LIBS="-lposix  $LIBS"
30686 cat >conftest.$ac_ext <<_ACEOF
30687 /* confdefs.h.  */
30688 _ACEOF
30689 cat confdefs.h >>conftest.$ac_ext
30690 cat >>conftest.$ac_ext <<_ACEOF
30691 /* end confdefs.h.  */
30692
30693 /* Override any gcc2 internal prototype to avoid an error.  */
30694 #ifdef __cplusplus
30695 extern "C"
30696 #endif
30697 /* We use char because int might match the return type of a gcc2
30698    builtin and then its argument prototype would still apply.  */
30699 char remove ();
30700 int
30701 main ()
30702 {
30703 remove ();
30704   ;
30705   return 0;
30706 }
30707 _ACEOF
30708 rm -f conftest.$ac_objext conftest$ac_exeext
30709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30710   (eval $ac_link) 2>conftest.er1
30711   ac_status=$?
30712   grep -v '^ *+' conftest.er1 >conftest.err
30713   rm -f conftest.er1
30714   cat conftest.err >&5
30715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716   (exit $ac_status); } &&
30717          { ac_try='test -z "$ac_cxx_werror_flag"
30718                          || test ! -s conftest.err'
30719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30720   (eval $ac_try) 2>&5
30721   ac_status=$?
30722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723   (exit $ac_status); }; } &&
30724          { ac_try='test -s conftest$ac_exeext'
30725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30726   (eval $ac_try) 2>&5
30727   ac_status=$?
30728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729   (exit $ac_status); }; }; then
30730   ac_cv_lib_posix_remove=yes
30731 else
30732   echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.$ac_ext >&5
30734
30735 ac_cv_lib_posix_remove=no
30736 fi
30737 rm -f conftest.err conftest.$ac_objext \
30738       conftest$ac_exeext conftest.$ac_ext
30739 LIBS=$ac_check_lib_save_LIBS
30740 fi
30741 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30742 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30743 if test $ac_cv_lib_posix_remove = yes; then
30744   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30745 fi
30746
30747     fi
30748
30749     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30750     echo "$as_me:$LINENO: checking for shmat" >&5
30751 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30752 if test "${ac_cv_func_shmat+set}" = set; then
30753   echo $ECHO_N "(cached) $ECHO_C" >&6
30754 else
30755   cat >conftest.$ac_ext <<_ACEOF
30756 /* confdefs.h.  */
30757 _ACEOF
30758 cat confdefs.h >>conftest.$ac_ext
30759 cat >>conftest.$ac_ext <<_ACEOF
30760 /* end confdefs.h.  */
30761 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30763 #define shmat innocuous_shmat
30764
30765 /* System header to define __stub macros and hopefully few prototypes,
30766     which can conflict with char shmat (); below.
30767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30768     <limits.h> exists even on freestanding compilers.  */
30769
30770 #ifdef __STDC__
30771 # include <limits.h>
30772 #else
30773 # include <assert.h>
30774 #endif
30775
30776 #undef shmat
30777
30778 /* Override any gcc2 internal prototype to avoid an error.  */
30779 #ifdef __cplusplus
30780 extern "C"
30781 {
30782 #endif
30783 /* We use char because int might match the return type of a gcc2
30784    builtin and then its argument prototype would still apply.  */
30785 char shmat ();
30786 /* The GNU C library defines this for functions which it implements
30787     to always fail with ENOSYS.  Some functions are actually named
30788     something starting with __ and the normal name is an alias.  */
30789 #if defined (__stub_shmat) || defined (__stub___shmat)
30790 choke me
30791 #else
30792 char (*f) () = shmat;
30793 #endif
30794 #ifdef __cplusplus
30795 }
30796 #endif
30797
30798 int
30799 main ()
30800 {
30801 return f != shmat;
30802   ;
30803   return 0;
30804 }
30805 _ACEOF
30806 rm -f conftest.$ac_objext conftest$ac_exeext
30807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30808   (eval $ac_link) 2>conftest.er1
30809   ac_status=$?
30810   grep -v '^ *+' conftest.er1 >conftest.err
30811   rm -f conftest.er1
30812   cat conftest.err >&5
30813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814   (exit $ac_status); } &&
30815          { ac_try='test -z "$ac_cxx_werror_flag"
30816                          || test ! -s conftest.err'
30817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30818   (eval $ac_try) 2>&5
30819   ac_status=$?
30820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821   (exit $ac_status); }; } &&
30822          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30828   ac_cv_func_shmat=yes
30829 else
30830   echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30832
30833 ac_cv_func_shmat=no
30834 fi
30835 rm -f conftest.err conftest.$ac_objext \
30836       conftest$ac_exeext conftest.$ac_ext
30837 fi
30838 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30839 echo "${ECHO_T}$ac_cv_func_shmat" >&6
30840
30841     if test $ac_cv_func_shmat = no; then
30842       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30843 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30844 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30845   echo $ECHO_N "(cached) $ECHO_C" >&6
30846 else
30847   ac_check_lib_save_LIBS=$LIBS
30848 LIBS="-lipc  $LIBS"
30849 cat >conftest.$ac_ext <<_ACEOF
30850 /* confdefs.h.  */
30851 _ACEOF
30852 cat confdefs.h >>conftest.$ac_ext
30853 cat >>conftest.$ac_ext <<_ACEOF
30854 /* end confdefs.h.  */
30855
30856 /* Override any gcc2 internal prototype to avoid an error.  */
30857 #ifdef __cplusplus
30858 extern "C"
30859 #endif
30860 /* We use char because int might match the return type of a gcc2
30861    builtin and then its argument prototype would still apply.  */
30862 char shmat ();
30863 int
30864 main ()
30865 {
30866 shmat ();
30867   ;
30868   return 0;
30869 }
30870 _ACEOF
30871 rm -f conftest.$ac_objext conftest$ac_exeext
30872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30873   (eval $ac_link) 2>conftest.er1
30874   ac_status=$?
30875   grep -v '^ *+' conftest.er1 >conftest.err
30876   rm -f conftest.er1
30877   cat conftest.err >&5
30878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879   (exit $ac_status); } &&
30880          { ac_try='test -z "$ac_cxx_werror_flag"
30881                          || test ! -s conftest.err'
30882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883   (eval $ac_try) 2>&5
30884   ac_status=$?
30885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); }; } &&
30887          { ac_try='test -s conftest$ac_exeext'
30888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889   (eval $ac_try) 2>&5
30890   ac_status=$?
30891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892   (exit $ac_status); }; }; then
30893   ac_cv_lib_ipc_shmat=yes
30894 else
30895   echo "$as_me: failed program was:" >&5
30896 sed 's/^/| /' conftest.$ac_ext >&5
30897
30898 ac_cv_lib_ipc_shmat=no
30899 fi
30900 rm -f conftest.err conftest.$ac_objext \
30901       conftest$ac_exeext conftest.$ac_ext
30902 LIBS=$ac_check_lib_save_LIBS
30903 fi
30904 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30905 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30906 if test $ac_cv_lib_ipc_shmat = yes; then
30907   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30908 fi
30909
30910     fi
30911   fi
30912
30913   # Check for libraries that X11R6 Xt/Xaw programs need.
30914   ac_save_LDFLAGS=$LDFLAGS
30915   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30916   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30917   # check for ICE first), but we must link in the order -lSM -lICE or
30918   # we get undefined symbols.  So assume we have SM if we have ICE.
30919   # These have to be linked with before -lX11, unlike the other
30920   # libraries we check for below, so use a different variable.
30921   # John Interrante, Karl Berry
30922   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30923 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30924 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30925   echo $ECHO_N "(cached) $ECHO_C" >&6
30926 else
30927   ac_check_lib_save_LIBS=$LIBS
30928 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30929 cat >conftest.$ac_ext <<_ACEOF
30930 /* confdefs.h.  */
30931 _ACEOF
30932 cat confdefs.h >>conftest.$ac_ext
30933 cat >>conftest.$ac_ext <<_ACEOF
30934 /* end confdefs.h.  */
30935
30936 /* Override any gcc2 internal prototype to avoid an error.  */
30937 #ifdef __cplusplus
30938 extern "C"
30939 #endif
30940 /* We use char because int might match the return type of a gcc2
30941    builtin and then its argument prototype would still apply.  */
30942 char IceConnectionNumber ();
30943 int
30944 main ()
30945 {
30946 IceConnectionNumber ();
30947   ;
30948   return 0;
30949 }
30950 _ACEOF
30951 rm -f conftest.$ac_objext conftest$ac_exeext
30952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30953   (eval $ac_link) 2>conftest.er1
30954   ac_status=$?
30955   grep -v '^ *+' conftest.er1 >conftest.err
30956   rm -f conftest.er1
30957   cat conftest.err >&5
30958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959   (exit $ac_status); } &&
30960          { ac_try='test -z "$ac_cxx_werror_flag"
30961                          || test ! -s conftest.err'
30962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30963   (eval $ac_try) 2>&5
30964   ac_status=$?
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); }; } &&
30967          { ac_try='test -s conftest$ac_exeext'
30968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30969   (eval $ac_try) 2>&5
30970   ac_status=$?
30971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972   (exit $ac_status); }; }; then
30973   ac_cv_lib_ICE_IceConnectionNumber=yes
30974 else
30975   echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30977
30978 ac_cv_lib_ICE_IceConnectionNumber=no
30979 fi
30980 rm -f conftest.err conftest.$ac_objext \
30981       conftest$ac_exeext conftest.$ac_ext
30982 LIBS=$ac_check_lib_save_LIBS
30983 fi
30984 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30985 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30986 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30987   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30988 fi
30989
30990   LDFLAGS=$ac_save_LDFLAGS
30991
30992 fi
30993
30994
30995         if test "$no_x" = "yes"; then
30996           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30997 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30998    { (exit 1); exit 1; }; }
30999         fi
31000
31001                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31002         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31003         AFMINSTALL=afminstall
31004         COMPILED_X_PROGRAM=0
31005
31006     fi
31007
31008     if test "$wxUSE_X11" = 1; then
31009         if test "$wxUSE_NANOX" = "yes"; then
31010             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31011 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
31012             if test "x$MICROWIN" = x ; then
31013                 echo "$as_me:$LINENO: result: not found" >&5
31014 echo "${ECHO_T}not found" >&6
31015                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31016 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31017    { (exit 1); exit 1; }; }
31018             else
31019                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
31020 echo "${ECHO_T}$MICROWIN" >&6
31021                 cat >>confdefs.h <<\_ACEOF
31022 #define wxUSE_NANOX 1
31023 _ACEOF
31024
31025             fi
31026         fi
31027
31028         if test "$wxUSE_UNICODE" = "yes"; then
31029
31030 pkg_failed=no
31031 echo "$as_me:$LINENO: checking for PANGOX" >&5
31032 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
31033
31034 if test -n "$PKG_CONFIG"; then
31035     if test -n "$PANGOX_CFLAGS"; then
31036         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31037     else
31038         if test -n "$PKG_CONFIG" && \
31039     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31040   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31041   ac_status=$?
31042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043   (exit $ac_status); }; then
31044   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31045 else
31046   pkg_failed=yes
31047 fi
31048     fi
31049 else
31050         pkg_failed=untried
31051 fi
31052 if test -n "$PKG_CONFIG"; then
31053     if test -n "$PANGOX_LIBS"; then
31054         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31055     else
31056         if test -n "$PKG_CONFIG" && \
31057     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31058   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31059   ac_status=$?
31060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061   (exit $ac_status); }; then
31062   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31063 else
31064   pkg_failed=yes
31065 fi
31066     fi
31067 else
31068         pkg_failed=untried
31069 fi
31070
31071
31072
31073 if test $pkg_failed = yes; then
31074
31075 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31076         _pkg_short_errors_supported=yes
31077 else
31078         _pkg_short_errors_supported=no
31079 fi
31080         if test $_pkg_short_errors_supported = yes; then
31081                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31082         else
31083                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31084         fi
31085         # Put the nasty error message in config.log where it belongs
31086         echo "$PANGOX_PKG_ERRORS" >&5
31087
31088
31089                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31090 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31091    { (exit 1); exit 1; }; }
31092
31093
31094 elif test $pkg_failed = untried; then
31095
31096                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31097 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31098    { (exit 1); exit 1; }; }
31099
31100
31101 else
31102         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31103         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31104         echo "$as_me:$LINENO: result: yes" >&5
31105 echo "${ECHO_T}yes" >&6
31106
31107                         CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31108                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31109
31110 fi
31111
31112 pkg_failed=no
31113 echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31114 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31115
31116 if test -n "$PKG_CONFIG"; then
31117     if test -n "$PANGOFT2_CFLAGS"; then
31118         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31119     else
31120         if test -n "$PKG_CONFIG" && \
31121     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31122   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31123   ac_status=$?
31124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125   (exit $ac_status); }; then
31126   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31127 else
31128   pkg_failed=yes
31129 fi
31130     fi
31131 else
31132         pkg_failed=untried
31133 fi
31134 if test -n "$PKG_CONFIG"; then
31135     if test -n "$PANGOFT2_LIBS"; then
31136         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31137     else
31138         if test -n "$PKG_CONFIG" && \
31139     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31140   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31141   ac_status=$?
31142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143   (exit $ac_status); }; then
31144   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31145 else
31146   pkg_failed=yes
31147 fi
31148     fi
31149 else
31150         pkg_failed=untried
31151 fi
31152
31153
31154
31155 if test $pkg_failed = yes; then
31156
31157 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31158         _pkg_short_errors_supported=yes
31159 else
31160         _pkg_short_errors_supported=no
31161 fi
31162         if test $_pkg_short_errors_supported = yes; then
31163                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31164         else
31165                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31166         fi
31167         # Put the nasty error message in config.log where it belongs
31168         echo "$PANGOFT2_PKG_ERRORS" >&5
31169
31170
31171                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31172 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31173                         wxUSE_PRINTING_ARCHITECTURE="no"
31174
31175
31176 elif test $pkg_failed = untried; then
31177
31178                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31179 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31180                         wxUSE_PRINTING_ARCHITECTURE="no"
31181
31182
31183 else
31184         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31185         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31186         echo "$as_me:$LINENO: result: yes" >&5
31187 echo "${ECHO_T}yes" >&6
31188
31189                         CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31190                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31191
31192 fi
31193
31194 pkg_failed=no
31195 echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31196 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
31197
31198 if test -n "$PKG_CONFIG"; then
31199     if test -n "$PANGOXFT_CFLAGS"; then
31200         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31201     else
31202         if test -n "$PKG_CONFIG" && \
31203     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31204   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31205   ac_status=$?
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); }; then
31208   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31209 else
31210   pkg_failed=yes
31211 fi
31212     fi
31213 else
31214         pkg_failed=untried
31215 fi
31216 if test -n "$PKG_CONFIG"; then
31217     if test -n "$PANGOXFT_LIBS"; then
31218         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31219     else
31220         if test -n "$PKG_CONFIG" && \
31221     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31222   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31223   ac_status=$?
31224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225   (exit $ac_status); }; then
31226   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31227 else
31228   pkg_failed=yes
31229 fi
31230     fi
31231 else
31232         pkg_failed=untried
31233 fi
31234
31235
31236
31237 if test $pkg_failed = yes; then
31238
31239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31240         _pkg_short_errors_supported=yes
31241 else
31242         _pkg_short_errors_supported=no
31243 fi
31244         if test $_pkg_short_errors_supported = yes; then
31245                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31246         else
31247                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31248         fi
31249         # Put the nasty error message in config.log where it belongs
31250         echo "$PANGOXFT_PKG_ERRORS" >&5
31251
31252
31253                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31254 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31255
31256
31257 elif test $pkg_failed = untried; then
31258
31259                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31260 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31261
31262
31263 else
31264         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31265         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31266         echo "$as_me:$LINENO: result: yes" >&5
31267 echo "${ECHO_T}yes" >&6
31268
31269                         cat >>confdefs.h <<\_ACEOF
31270 #define HAVE_PANGO_XFT 1
31271 _ACEOF
31272
31273                         CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31274                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31275
31276 fi
31277                 save_CXXFLAGS="$CXXFLAGS"
31278                 save_LIBS="$LIBS"
31279                 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31280                 LIBS="$LIBS $PANGOX_LIBS"
31281
31282 for ac_func in pango_font_family_is_monospace
31283 do
31284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31285 echo "$as_me:$LINENO: checking for $ac_func" >&5
31286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31287 if eval "test \"\${$as_ac_var+set}\" = set"; then
31288   echo $ECHO_N "(cached) $ECHO_C" >&6
31289 else
31290   cat >conftest.$ac_ext <<_ACEOF
31291 /* confdefs.h.  */
31292 _ACEOF
31293 cat confdefs.h >>conftest.$ac_ext
31294 cat >>conftest.$ac_ext <<_ACEOF
31295 /* end confdefs.h.  */
31296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31298 #define $ac_func innocuous_$ac_func
31299
31300 /* System header to define __stub macros and hopefully few prototypes,
31301     which can conflict with char $ac_func (); below.
31302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31303     <limits.h> exists even on freestanding compilers.  */
31304
31305 #ifdef __STDC__
31306 # include <limits.h>
31307 #else
31308 # include <assert.h>
31309 #endif
31310
31311 #undef $ac_func
31312
31313 /* Override any gcc2 internal prototype to avoid an error.  */
31314 #ifdef __cplusplus
31315 extern "C"
31316 {
31317 #endif
31318 /* We use char because int might match the return type of a gcc2
31319    builtin and then its argument prototype would still apply.  */
31320 char $ac_func ();
31321 /* The GNU C library defines this for functions which it implements
31322     to always fail with ENOSYS.  Some functions are actually named
31323     something starting with __ and the normal name is an alias.  */
31324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31325 choke me
31326 #else
31327 char (*f) () = $ac_func;
31328 #endif
31329 #ifdef __cplusplus
31330 }
31331 #endif
31332
31333 int
31334 main ()
31335 {
31336 return f != $ac_func;
31337   ;
31338   return 0;
31339 }
31340 _ACEOF
31341 rm -f conftest.$ac_objext conftest$ac_exeext
31342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31343   (eval $ac_link) 2>conftest.er1
31344   ac_status=$?
31345   grep -v '^ *+' conftest.er1 >conftest.err
31346   rm -f conftest.er1
31347   cat conftest.err >&5
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); } &&
31350          { ac_try='test -z "$ac_cxx_werror_flag"
31351                          || test ! -s conftest.err'
31352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31353   (eval $ac_try) 2>&5
31354   ac_status=$?
31355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356   (exit $ac_status); }; } &&
31357          { ac_try='test -s conftest$ac_exeext'
31358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31359   (eval $ac_try) 2>&5
31360   ac_status=$?
31361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362   (exit $ac_status); }; }; then
31363   eval "$as_ac_var=yes"
31364 else
31365   echo "$as_me: failed program was:" >&5
31366 sed 's/^/| /' conftest.$ac_ext >&5
31367
31368 eval "$as_ac_var=no"
31369 fi
31370 rm -f conftest.err conftest.$ac_objext \
31371       conftest$ac_exeext conftest.$ac_ext
31372 fi
31373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31375 if test `eval echo '${'$as_ac_var'}'` = yes; then
31376   cat >>confdefs.h <<_ACEOF
31377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31378 _ACEOF
31379
31380 fi
31381 done
31382
31383                 CXXFLAGS="$save_CXXFLAGS"
31384                 LIBS="$save_LIBS"
31385         fi
31386
31387         wxUSE_UNIVERSAL="yes"
31388
31389         if test "$wxUSE_NANOX" = "yes"; then
31390             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31391             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"
31392             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31393         else
31394             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31395         fi
31396
31397         TOOLKIT=X11
31398         GUIDIST=X11_DIST
31399     fi
31400
31401     if test "$wxUSE_MOTIF" = 1; then
31402         if test "$wxUSE_UNICODE" = "yes"; then
31403             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31404 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31405    { (exit 1); exit 1; }; }
31406         fi
31407
31408         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31409 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
31410
31411 ac_find_includes=
31412 for ac_dir in $SEARCH_INCLUDE /usr/include;
31413   do
31414     if test -f "$ac_dir/Xm/Xm.h"; then
31415       ac_find_includes=$ac_dir
31416       break
31417     fi
31418   done
31419
31420         if test "$ac_find_includes" != "" ; then
31421             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31422 echo "${ECHO_T}found in $ac_find_includes" >&6
31423
31424     if test "x$ac_find_includes" = "x/usr/include"; then
31425     ac_path_to_include=""
31426   else
31427     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31428     result=$?
31429     if test $result = 0; then
31430       ac_path_to_include=""
31431     else
31432       ac_path_to_include=" -I$ac_find_includes"
31433     fi
31434   fi
31435
31436             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31437         else
31438             save_CXXFLAGS=$CXXFLAGS
31439             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31440
31441             cat >conftest.$ac_ext <<_ACEOF
31442 /* confdefs.h.  */
31443 _ACEOF
31444 cat confdefs.h >>conftest.$ac_ext
31445 cat >>conftest.$ac_ext <<_ACEOF
31446 /* end confdefs.h.  */
31447
31448                     #include <Xm/Xm.h>
31449
31450 int
31451 main ()
31452 {
31453
31454                     int version;
31455                     version = xmUseVersion;
31456
31457   ;
31458   return 0;
31459 }
31460 _ACEOF
31461 rm -f conftest.$ac_objext
31462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31463   (eval $ac_compile) 2>conftest.er1
31464   ac_status=$?
31465   grep -v '^ *+' conftest.er1 >conftest.err
31466   rm -f conftest.er1
31467   cat conftest.err >&5
31468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469   (exit $ac_status); } &&
31470          { ac_try='test -z "$ac_cxx_werror_flag"
31471                          || test ! -s conftest.err'
31472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31473   (eval $ac_try) 2>&5
31474   ac_status=$?
31475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476   (exit $ac_status); }; } &&
31477          { ac_try='test -s conftest.$ac_objext'
31478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479   (eval $ac_try) 2>&5
31480   ac_status=$?
31481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482   (exit $ac_status); }; }; then
31483
31484                     echo "$as_me:$LINENO: result: found in default search path" >&5
31485 echo "${ECHO_T}found in default search path" >&6
31486                     COMPILED_X_PROGRAM=1
31487
31488 else
31489   echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.$ac_ext >&5
31491
31492
31493                     echo "$as_me:$LINENO: result: no" >&5
31494 echo "${ECHO_T}no" >&6
31495                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31496 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31497    { (exit 1); exit 1; }; }
31498
31499
31500 fi
31501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31502
31503             CXXFLAGS=$save_CXXFLAGS
31504         fi
31505
31506
31507         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31508 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31509
31510   ac_find_libraries=
31511   for ac_dir in $SEARCH_LIB;
31512   do
31513     for ac_extension in a so sl dylib dll.a; do
31514       if test -f "$ac_dir/libXm.$ac_extension"; then
31515         ac_find_libraries=$ac_dir
31516         break 2
31517       fi
31518     done
31519   done
31520
31521
31522         if test "x$ac_find_libraries" != "x" ; then
31523             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31524 echo "${ECHO_T}found in $ac_find_libraries" >&6
31525
31526
31527     if test "$ac_find_libraries" = "default location"; then
31528     ac_path_to_link=""
31529   else
31530     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31531     result=$?
31532     if test $result = 0; then
31533       ac_path_to_link=""
31534     else
31535       ac_path_to_link=" -L$ac_find_libraries"
31536     fi
31537   fi
31538
31539             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31540         else
31541                                                 save_CXXFLAGS=$CXXFLAGS
31542             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31543             save_LIBS="$LIBS"
31544             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31545
31546             cat >conftest.$ac_ext <<_ACEOF
31547 /* confdefs.h.  */
31548 _ACEOF
31549 cat confdefs.h >>conftest.$ac_ext
31550 cat >>conftest.$ac_ext <<_ACEOF
31551 /* end confdefs.h.  */
31552
31553                     #include <Xm/Xm.h>
31554
31555 int
31556 main ()
31557 {
31558
31559                     int version;
31560                     version = xmUseVersion;
31561
31562   ;
31563   return 0;
31564 }
31565 _ACEOF
31566 rm -f conftest.$ac_objext conftest$ac_exeext
31567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31568   (eval $ac_link) 2>conftest.er1
31569   ac_status=$?
31570   grep -v '^ *+' conftest.er1 >conftest.err
31571   rm -f conftest.er1
31572   cat conftest.err >&5
31573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574   (exit $ac_status); } &&
31575          { ac_try='test -z "$ac_cxx_werror_flag"
31576                          || test ! -s conftest.err'
31577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31578   (eval $ac_try) 2>&5
31579   ac_status=$?
31580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581   (exit $ac_status); }; } &&
31582          { ac_try='test -s conftest$ac_exeext'
31583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31584   (eval $ac_try) 2>&5
31585   ac_status=$?
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); }; }; then
31588
31589                     echo "$as_me:$LINENO: result: found in default search path" >&5
31590 echo "${ECHO_T}found in default search path" >&6
31591                     COMPILED_X_PROGRAM=1
31592
31593 else
31594   echo "$as_me: failed program was:" >&5
31595 sed 's/^/| /' conftest.$ac_ext >&5
31596
31597
31598                     echo "$as_me:$LINENO: result: no" >&5
31599 echo "${ECHO_T}no" >&6
31600                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31601 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31602    { (exit 1); exit 1; }; }
31603
31604
31605 fi
31606 rm -f conftest.err conftest.$ac_objext \
31607       conftest$ac_exeext conftest.$ac_ext
31608
31609             CXXFLAGS=$save_CXXFLAGS
31610             LIBS="$save_LIBS"
31611         fi
31612
31613         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31614 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31615         libp_link=""
31616         libsm_ice_link=""
31617         libs_found=0
31618         for libp in "" " -lXp"; do
31619             if test "$libs_found" = "0"; then
31620                 for libsm_ice in "" " -lSM -lICE"; do
31621                     if test "$libs_found" = "0"; then
31622                         save_LIBS="$LIBS"
31623                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31624                         save_CXXFLAGS=$CXXFLAGS
31625                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31626
31627                         cat >conftest.$ac_ext <<_ACEOF
31628 /* confdefs.h.  */
31629 _ACEOF
31630 cat confdefs.h >>conftest.$ac_ext
31631 cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h.  */
31633
31634                                 #include <Xm/Xm.h>
31635                                 #include <Xm/List.h>
31636
31637 int
31638 main ()
31639 {
31640
31641                                 XmString string = NULL;
31642                                 Widget w = NULL;
31643                                 int position = 0;
31644                                 XmListAddItem(w, string, position);
31645
31646   ;
31647   return 0;
31648 }
31649 _ACEOF
31650 rm -f conftest.$ac_objext conftest$ac_exeext
31651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31652   (eval $ac_link) 2>conftest.er1
31653   ac_status=$?
31654   grep -v '^ *+' conftest.er1 >conftest.err
31655   rm -f conftest.er1
31656   cat conftest.err >&5
31657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658   (exit $ac_status); } &&
31659          { ac_try='test -z "$ac_cxx_werror_flag"
31660                          || test ! -s conftest.err'
31661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31662   (eval $ac_try) 2>&5
31663   ac_status=$?
31664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665   (exit $ac_status); }; } &&
31666          { ac_try='test -s conftest$ac_exeext'
31667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668   (eval $ac_try) 2>&5
31669   ac_status=$?
31670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671   (exit $ac_status); }; }; then
31672
31673                                 libp_link="$libp"
31674                                 libsm_ice_link="$libsm_ice"
31675                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31676 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31677                                 libs_found=1
31678
31679 else
31680   echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31682
31683
31684
31685 fi
31686 rm -f conftest.err conftest.$ac_objext \
31687       conftest$ac_exeext conftest.$ac_ext
31688
31689                         LIBS="$save_LIBS"
31690                         CXXFLAGS=$save_CXXFLAGS
31691                     fi
31692                 done
31693             fi
31694         done
31695
31696         if test "$libs_found" = "0"; then
31697             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31698 echo "${ECHO_T}can't find the right libraries" >&6
31699             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31700 echo "$as_me: error: can't link a simple motif program" >&2;}
31701    { (exit 1); exit 1; }; }
31702         fi
31703
31704                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31705 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31706 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31707   echo $ECHO_N "(cached) $ECHO_C" >&6
31708 else
31709   ac_check_lib_save_LIBS=$LIBS
31710 LIBS="-lSgm  $LIBS"
31711 cat >conftest.$ac_ext <<_ACEOF
31712 /* confdefs.h.  */
31713 _ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h.  */
31717
31718 /* Override any gcc2 internal prototype to avoid an error.  */
31719 #ifdef __cplusplus
31720 extern "C"
31721 #endif
31722 /* We use char because int might match the return type of a gcc2
31723    builtin and then its argument prototype would still apply.  */
31724 char SgCreateList ();
31725 int
31726 main ()
31727 {
31728 SgCreateList ();
31729   ;
31730   return 0;
31731 }
31732 _ACEOF
31733 rm -f conftest.$ac_objext conftest$ac_exeext
31734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31735   (eval $ac_link) 2>conftest.er1
31736   ac_status=$?
31737   grep -v '^ *+' conftest.er1 >conftest.err
31738   rm -f conftest.er1
31739   cat conftest.err >&5
31740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741   (exit $ac_status); } &&
31742          { ac_try='test -z "$ac_cxx_werror_flag"
31743                          || test ! -s conftest.err'
31744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31745   (eval $ac_try) 2>&5
31746   ac_status=$?
31747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748   (exit $ac_status); }; } &&
31749          { ac_try='test -s conftest$ac_exeext'
31750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31751   (eval $ac_try) 2>&5
31752   ac_status=$?
31753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754   (exit $ac_status); }; }; then
31755   ac_cv_lib_Sgm_SgCreateList=yes
31756 else
31757   echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31759
31760 ac_cv_lib_Sgm_SgCreateList=no
31761 fi
31762 rm -f conftest.err conftest.$ac_objext \
31763       conftest$ac_exeext conftest.$ac_ext
31764 LIBS=$ac_check_lib_save_LIBS
31765 fi
31766 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31767 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31768 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31769   libsgm_link=" -lSgm"
31770 fi
31771
31772
31773         save_CXXFLAGS=$CXXFLAGS
31774         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31775
31776         echo "$as_me:$LINENO: checking for Motif 2" >&5
31777 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
31778 if test "${wx_cv_lib_motif2+set}" = set; then
31779   echo $ECHO_N "(cached) $ECHO_C" >&6
31780 else
31781   cat >conftest.$ac_ext <<_ACEOF
31782 /* confdefs.h.  */
31783 _ACEOF
31784 cat confdefs.h >>conftest.$ac_ext
31785 cat >>conftest.$ac_ext <<_ACEOF
31786 /* end confdefs.h.  */
31787
31788                             #include <Xm/Xm.h>
31789
31790 int
31791 main ()
31792 {
31793
31794                             #if XmVersion < 2000
31795                             Not Motif 2
31796                             #endif
31797
31798   ;
31799   return 0;
31800 }
31801 _ACEOF
31802 rm -f conftest.$ac_objext
31803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31804   (eval $ac_compile) 2>conftest.er1
31805   ac_status=$?
31806   grep -v '^ *+' conftest.er1 >conftest.err
31807   rm -f conftest.er1
31808   cat conftest.err >&5
31809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810   (exit $ac_status); } &&
31811          { ac_try='test -z "$ac_cxx_werror_flag"
31812                          || test ! -s conftest.err'
31813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31814   (eval $ac_try) 2>&5
31815   ac_status=$?
31816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817   (exit $ac_status); }; } &&
31818          { ac_try='test -s conftest.$ac_objext'
31819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31820   (eval $ac_try) 2>&5
31821   ac_status=$?
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); }; }; then
31824   wx_cv_lib_motif2="yes"
31825 else
31826   echo "$as_me: failed program was:" >&5
31827 sed 's/^/| /' conftest.$ac_ext >&5
31828
31829 wx_cv_lib_motif2="no"
31830 fi
31831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31832 fi
31833 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31834 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31835         if test "$wx_cv_lib_motif2" = "yes"; then
31836             cat >>confdefs.h <<\_ACEOF
31837 #define __WXMOTIF20__ 1
31838 _ACEOF
31839
31840         else
31841             cat >>confdefs.h <<\_ACEOF
31842 #define __WXMOTIF20__ 0
31843 _ACEOF
31844
31845         fi
31846
31847         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31848 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
31849 if test "${wx_cv_lib_lesstif+set}" = set; then
31850   echo $ECHO_N "(cached) $ECHO_C" >&6
31851 else
31852   cat >conftest.$ac_ext <<_ACEOF
31853 /* confdefs.h.  */
31854 _ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h.  */
31858
31859                             #include <Xm/Xm.h>
31860
31861 int
31862 main ()
31863 {
31864
31865                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31866                             Not Lesstif
31867                             #endif
31868
31869   ;
31870   return 0;
31871 }
31872 _ACEOF
31873 rm -f conftest.$ac_objext
31874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31875   (eval $ac_compile) 2>conftest.er1
31876   ac_status=$?
31877   grep -v '^ *+' conftest.er1 >conftest.err
31878   rm -f conftest.er1
31879   cat conftest.err >&5
31880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881   (exit $ac_status); } &&
31882          { ac_try='test -z "$ac_cxx_werror_flag"
31883                          || test ! -s conftest.err'
31884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31885   (eval $ac_try) 2>&5
31886   ac_status=$?
31887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888   (exit $ac_status); }; } &&
31889          { ac_try='test -s conftest.$ac_objext'
31890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31891   (eval $ac_try) 2>&5
31892   ac_status=$?
31893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894   (exit $ac_status); }; }; then
31895   wx_cv_lib_lesstif="yes"
31896 else
31897   echo "$as_me: failed program was:" >&5
31898 sed 's/^/| /' conftest.$ac_ext >&5
31899
31900 wx_cv_lib_lesstif="no"
31901 fi
31902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31903
31904 fi
31905 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31906 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31907         if test "$wx_cv_lib_lesstif" = "yes"; then
31908             cat >>confdefs.h <<\_ACEOF
31909 #define __WXLESSTIF__ 1
31910 _ACEOF
31911
31912         else
31913             cat >>confdefs.h <<\_ACEOF
31914 #define __WXLESSTIF__ 0
31915 _ACEOF
31916
31917         fi
31918
31919         CXXFLAGS=$save_CXXFLAGS
31920
31921         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31922         TOOLKIT=MOTIF
31923         GUIDIST=MOTIF_DIST
31924     fi
31925
31926         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31927                 if test "$wxUSE_LIBXPM" = "sys"; then
31928             echo "$as_me:$LINENO: checking for Xpm library" >&5
31929 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31930
31931   ac_find_libraries=
31932   for ac_dir in $SEARCH_LIB;
31933   do
31934     for ac_extension in a so sl dylib dll.a; do
31935       if test -f "$ac_dir/libXpm.$ac_extension"; then
31936         ac_find_libraries=$ac_dir
31937         break 2
31938       fi
31939     done
31940   done
31941
31942             if test "$ac_find_libraries" != "" ; then
31943
31944     if test "$ac_find_libraries" = "default location"; then
31945     ac_path_to_link=""
31946   else
31947     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31948     result=$?
31949     if test $result = 0; then
31950       ac_path_to_link=""
31951     else
31952       ac_path_to_link=" -L$ac_find_libraries"
31953     fi
31954   fi
31955
31956                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31957                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31958 echo "${ECHO_T}found in $ac_find_libraries" >&6
31959
31960                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31961 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31962 if test "${wx_cv_x11_xpm_h+set}" = set; then
31963   echo $ECHO_N "(cached) $ECHO_C" >&6
31964 else
31965
31966                         save_CXXFLAGS=$CXXFLAGS
31967                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31968
31969                         cat >conftest.$ac_ext <<_ACEOF
31970 /* confdefs.h.  */
31971 _ACEOF
31972 cat confdefs.h >>conftest.$ac_ext
31973 cat >>conftest.$ac_ext <<_ACEOF
31974 /* end confdefs.h.  */
31975
31976                                 #include <X11/xpm.h>
31977
31978 int
31979 main ()
31980 {
31981
31982                                 int version;
31983                                 version = XpmLibraryVersion();
31984
31985   ;
31986   return 0;
31987 }
31988 _ACEOF
31989 rm -f conftest.$ac_objext
31990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31991   (eval $ac_compile) 2>conftest.er1
31992   ac_status=$?
31993   grep -v '^ *+' conftest.er1 >conftest.err
31994   rm -f conftest.er1
31995   cat conftest.err >&5
31996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997   (exit $ac_status); } &&
31998          { ac_try='test -z "$ac_cxx_werror_flag"
31999                          || test ! -s conftest.err'
32000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001   (eval $ac_try) 2>&5
32002   ac_status=$?
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); }; } &&
32005          { ac_try='test -s conftest.$ac_objext'
32006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007   (eval $ac_try) 2>&5
32008   ac_status=$?
32009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); }; }; then
32011   wx_cv_x11_xpm_h=yes
32012 else
32013   echo "$as_me: failed program was:" >&5
32014 sed 's/^/| /' conftest.$ac_ext >&5
32015
32016 wx_cv_x11_xpm_h=no
32017
32018 fi
32019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32020
32021                         CXXFLAGS=$save_CXXFLAGS
32022
32023
32024 fi
32025 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32026 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
32027
32028                 if test $wx_cv_x11_xpm_h = "yes"; then
32029                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32030                     cat >>confdefs.h <<\_ACEOF
32031 #define wxHAVE_LIB_XPM 1
32032 _ACEOF
32033
32034                 else
32035                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32036 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32037                 fi
32038             fi
32039
32040         fi
32041
32042                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32043 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
32044 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32045   echo $ECHO_N "(cached) $ECHO_C" >&6
32046 else
32047   ac_check_lib_save_LIBS=$LIBS
32048 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32049 cat >conftest.$ac_ext <<_ACEOF
32050 /* confdefs.h.  */
32051 _ACEOF
32052 cat confdefs.h >>conftest.$ac_ext
32053 cat >>conftest.$ac_ext <<_ACEOF
32054 /* end confdefs.h.  */
32055
32056 /* Override any gcc2 internal prototype to avoid an error.  */
32057 #ifdef __cplusplus
32058 extern "C"
32059 #endif
32060 /* We use char because int might match the return type of a gcc2
32061    builtin and then its argument prototype would still apply.  */
32062 char XShapeQueryExtension ();
32063 int
32064 main ()
32065 {
32066 XShapeQueryExtension ();
32067   ;
32068   return 0;
32069 }
32070 _ACEOF
32071 rm -f conftest.$ac_objext conftest$ac_exeext
32072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32073   (eval $ac_link) 2>conftest.er1
32074   ac_status=$?
32075   grep -v '^ *+' conftest.er1 >conftest.err
32076   rm -f conftest.er1
32077   cat conftest.err >&5
32078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079   (exit $ac_status); } &&
32080          { ac_try='test -z "$ac_cxx_werror_flag"
32081                          || test ! -s conftest.err'
32082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32083   (eval $ac_try) 2>&5
32084   ac_status=$?
32085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086   (exit $ac_status); }; } &&
32087          { ac_try='test -s conftest$ac_exeext'
32088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32089   (eval $ac_try) 2>&5
32090   ac_status=$?
32091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092   (exit $ac_status); }; }; then
32093   ac_cv_lib_Xext_XShapeQueryExtension=yes
32094 else
32095   echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32097
32098 ac_cv_lib_Xext_XShapeQueryExtension=no
32099 fi
32100 rm -f conftest.err conftest.$ac_objext \
32101       conftest$ac_exeext conftest.$ac_ext
32102 LIBS=$ac_check_lib_save_LIBS
32103 fi
32104 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32105 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32106 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32107
32108                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32109                       wxHAVE_XEXT_LIB=1
32110
32111 fi
32112
32113
32114         if test "$wxHAVE_XEXT_LIB" = 1; then
32115             save_CXXFLAGS="$CXXFLAGS"
32116             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
32117
32118             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32119 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32120             cat >conftest.$ac_ext <<_ACEOF
32121 /* confdefs.h.  */
32122 _ACEOF
32123 cat confdefs.h >>conftest.$ac_ext
32124 cat >>conftest.$ac_ext <<_ACEOF
32125 /* end confdefs.h.  */
32126
32127                             #include <X11/Xlib.h>
32128                             #include <X11/extensions/shape.h>
32129
32130 int
32131 main ()
32132 {
32133
32134                             int dummy1, dummy2;
32135                             XShapeQueryExtension((Display*)NULL,
32136                                                  (int*)NULL, (int*)NULL);
32137
32138   ;
32139   return 0;
32140 }
32141 _ACEOF
32142 rm -f conftest.$ac_objext
32143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32144   (eval $ac_compile) 2>conftest.er1
32145   ac_status=$?
32146   grep -v '^ *+' conftest.er1 >conftest.err
32147   rm -f conftest.er1
32148   cat conftest.err >&5
32149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150   (exit $ac_status); } &&
32151          { ac_try='test -z "$ac_cxx_werror_flag"
32152                          || test ! -s conftest.err'
32153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154   (eval $ac_try) 2>&5
32155   ac_status=$?
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); }; } &&
32158          { ac_try='test -s conftest.$ac_objext'
32159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32160   (eval $ac_try) 2>&5
32161   ac_status=$?
32162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163   (exit $ac_status); }; }; then
32164
32165                             cat >>confdefs.h <<\_ACEOF
32166 #define HAVE_XSHAPE 1
32167 _ACEOF
32168
32169                             echo "$as_me:$LINENO: result: found" >&5
32170 echo "${ECHO_T}found" >&6
32171
32172 else
32173   echo "$as_me: failed program was:" >&5
32174 sed 's/^/| /' conftest.$ac_ext >&5
32175
32176
32177                             echo "$as_me:$LINENO: result: not found" >&5
32178 echo "${ECHO_T}not found" >&6
32179
32180 fi
32181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32182             CXXFLAGS="$save_CXXFLAGS"
32183
32184         fi
32185     fi
32186
32187     if test "$wxUSE_MAC" = 1; then
32188         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32189 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32190         if test "$GCC" = yes; then
32191             echo "$as_me:$LINENO: result: gcc" >&5
32192 echo "${ECHO_T}gcc" >&6
32193             CPPFLAGS_PASCAL="-fpascal-strings"
32194         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32195             echo "$as_me:$LINENO: result: xlc" >&5
32196 echo "${ECHO_T}xlc" >&6
32197             CPPFLAGS_PASCAL="-qmacpstr"
32198         else
32199             echo "$as_me:$LINENO: result: none" >&5
32200 echo "${ECHO_T}none" >&6
32201         fi
32202
32203         if test "x$wxUSE_UNIX" = "xyes"; then
32204             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32205         else
32206                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32207         fi
32208
32209         TOOLKIT=MAC
32210                 GUIDIST=MACX_DIST
32211                         WXBASEPORT="_carbon"
32212     fi
32213
32214     if test "$wxUSE_COCOA" = 1; then
32215         TOOLKIT=COCOA
32216         GUIDIST=COCOA_DIST
32217     fi
32218
32219     if test "$wxUSE_PM" = 1; then
32220         TOOLKIT=PM
32221         GUIDIST=PM_DIST
32222         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32223 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32224 if test "${wx_cv_spbcdata+set}" = set; then
32225   echo $ECHO_N "(cached) $ECHO_C" >&6
32226 else
32227
32228                 cat >conftest.$ac_ext <<_ACEOF
32229 /* confdefs.h.  */
32230 _ACEOF
32231 cat confdefs.h >>conftest.$ac_ext
32232 cat >>conftest.$ac_ext <<_ACEOF
32233 /* end confdefs.h.  */
32234
32235                         #define INCL_PM
32236                         #include <os2.h>
32237
32238 int
32239 main ()
32240 {
32241
32242                         SPBCDATA test;
32243
32244   ;
32245   return 0;
32246 }
32247 _ACEOF
32248 rm -f conftest.$ac_objext
32249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32250   (eval $ac_compile) 2>conftest.er1
32251   ac_status=$?
32252   grep -v '^ *+' conftest.er1 >conftest.err
32253   rm -f conftest.er1
32254   cat conftest.err >&5
32255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256   (exit $ac_status); } &&
32257          { ac_try='test -z "$ac_cxx_werror_flag"
32258                          || test ! -s conftest.err'
32259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260   (eval $ac_try) 2>&5
32261   ac_status=$?
32262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263   (exit $ac_status); }; } &&
32264          { ac_try='test -s conftest.$ac_objext'
32265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266   (eval $ac_try) 2>&5
32267   ac_status=$?
32268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269   (exit $ac_status); }; }; then
32270   wx_cv_spbcdata=yes
32271 else
32272   echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32274
32275 wx_cv_spbcdata=no
32276
32277 fi
32278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32279
32280
32281 fi
32282 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32283 echo "${ECHO_T}$wx_cv_spbcdata" >&6
32284
32285         if test $wx_cv_spbcdata = "yes"; then
32286             cat >>confdefs.h <<\_ACEOF
32287 #define HAVE_SPBCDATA 1
32288 _ACEOF
32289
32290         fi
32291     fi
32292
32293         if test "$TOOLKIT" = "PM" ; then
32294         TOOLKIT_DIR="os2"
32295     else
32296         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32297     fi
32298
32299     if test "$wxUSE_UNIVERSAL" = "yes"; then
32300         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32301         WIDGET_SET=univ
32302     fi
32303
32304         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32305     DISTDIR="wx\$(TOOLKIT)"
32306 else
32307     USE_GUI=0
32308
32309             TOOLKIT_DIR="base"
32310
32311         if test "$USE_WIN32" = 1 ; then
32312                         TOOLKIT="MSW"
32313     fi
32314
32315         GUIDIST="BASE_DIST"
32316     DISTDIR="wxBase"
32317 fi
32318
32319
32320 if test "$wxUSE_GUI" = "yes"; then
32321     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32322
32323 for ac_header in X11/Xlib.h
32324 do
32325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32327   echo "$as_me:$LINENO: checking for $ac_header" >&5
32328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32330   echo $ECHO_N "(cached) $ECHO_C" >&6
32331 fi
32332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32334 else
32335   # Is the header compilable?
32336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32338 cat >conftest.$ac_ext <<_ACEOF
32339 /* confdefs.h.  */
32340 _ACEOF
32341 cat confdefs.h >>conftest.$ac_ext
32342 cat >>conftest.$ac_ext <<_ACEOF
32343 /* end confdefs.h.  */
32344 $ac_includes_default
32345 #include <$ac_header>
32346 _ACEOF
32347 rm -f conftest.$ac_objext
32348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32349   (eval $ac_compile) 2>conftest.er1
32350   ac_status=$?
32351   grep -v '^ *+' conftest.er1 >conftest.err
32352   rm -f conftest.er1
32353   cat conftest.err >&5
32354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355   (exit $ac_status); } &&
32356          { ac_try='test -z "$ac_cxx_werror_flag"
32357                          || test ! -s conftest.err'
32358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359   (eval $ac_try) 2>&5
32360   ac_status=$?
32361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362   (exit $ac_status); }; } &&
32363          { ac_try='test -s conftest.$ac_objext'
32364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32365   (eval $ac_try) 2>&5
32366   ac_status=$?
32367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368   (exit $ac_status); }; }; then
32369   ac_header_compiler=yes
32370 else
32371   echo "$as_me: failed program was:" >&5
32372 sed 's/^/| /' conftest.$ac_ext >&5
32373
32374 ac_header_compiler=no
32375 fi
32376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32378 echo "${ECHO_T}$ac_header_compiler" >&6
32379
32380 # Is the header present?
32381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32383 cat >conftest.$ac_ext <<_ACEOF
32384 /* confdefs.h.  */
32385 _ACEOF
32386 cat confdefs.h >>conftest.$ac_ext
32387 cat >>conftest.$ac_ext <<_ACEOF
32388 /* end confdefs.h.  */
32389 #include <$ac_header>
32390 _ACEOF
32391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32392   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32393   ac_status=$?
32394   grep -v '^ *+' conftest.er1 >conftest.err
32395   rm -f conftest.er1
32396   cat conftest.err >&5
32397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398   (exit $ac_status); } >/dev/null; then
32399   if test -s conftest.err; then
32400     ac_cpp_err=$ac_cxx_preproc_warn_flag
32401     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32402   else
32403     ac_cpp_err=
32404   fi
32405 else
32406   ac_cpp_err=yes
32407 fi
32408 if test -z "$ac_cpp_err"; then
32409   ac_header_preproc=yes
32410 else
32411   echo "$as_me: failed program was:" >&5
32412 sed 's/^/| /' conftest.$ac_ext >&5
32413
32414   ac_header_preproc=no
32415 fi
32416 rm -f conftest.err conftest.$ac_ext
32417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32418 echo "${ECHO_T}$ac_header_preproc" >&6
32419
32420 # So?  What about this header?
32421 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32422   yes:no: )
32423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32427     ac_header_preproc=yes
32428     ;;
32429   no:yes:* )
32430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32442     (
32443       cat <<\_ASBOX
32444 ## ----------------------------------------- ##
32445 ## Report this to wx-dev@lists.wxwidgets.org ##
32446 ## ----------------------------------------- ##
32447 _ASBOX
32448     ) |
32449       sed "s/^/$as_me: WARNING:     /" >&2
32450     ;;
32451 esac
32452 echo "$as_me:$LINENO: checking for $ac_header" >&5
32453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32455   echo $ECHO_N "(cached) $ECHO_C" >&6
32456 else
32457   eval "$as_ac_Header=\$ac_header_preproc"
32458 fi
32459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32461
32462 fi
32463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32464   cat >>confdefs.h <<_ACEOF
32465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32466 _ACEOF
32467
32468 fi
32469
32470 done
32471
32472
32473 for ac_header in X11/XKBlib.h
32474 do
32475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32476 echo "$as_me:$LINENO: checking for $ac_header" >&5
32477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32479   echo $ECHO_N "(cached) $ECHO_C" >&6
32480 else
32481   cat >conftest.$ac_ext <<_ACEOF
32482 /* confdefs.h.  */
32483 _ACEOF
32484 cat confdefs.h >>conftest.$ac_ext
32485 cat >>conftest.$ac_ext <<_ACEOF
32486 /* end confdefs.h.  */
32487
32488                           #if HAVE_X11_XLIB_H
32489                             #include <X11/Xlib.h>
32490                           #endif
32491
32492
32493 #include <$ac_header>
32494 _ACEOF
32495 rm -f conftest.$ac_objext
32496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32497   (eval $ac_compile) 2>conftest.er1
32498   ac_status=$?
32499   grep -v '^ *+' conftest.er1 >conftest.err
32500   rm -f conftest.er1
32501   cat conftest.err >&5
32502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503   (exit $ac_status); } &&
32504          { ac_try='test -z "$ac_cxx_werror_flag"
32505                          || test ! -s conftest.err'
32506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32507   (eval $ac_try) 2>&5
32508   ac_status=$?
32509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510   (exit $ac_status); }; } &&
32511          { ac_try='test -s conftest.$ac_objext'
32512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32513   (eval $ac_try) 2>&5
32514   ac_status=$?
32515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516   (exit $ac_status); }; }; then
32517   eval "$as_ac_Header=yes"
32518 else
32519   echo "$as_me: failed program was:" >&5
32520 sed 's/^/| /' conftest.$ac_ext >&5
32521
32522 eval "$as_ac_Header=no"
32523 fi
32524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32525 fi
32526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32529   cat >>confdefs.h <<_ACEOF
32530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32531 _ACEOF
32532
32533 fi
32534
32535 done
32536
32537     fi
32538 fi
32539
32540
32541
32542 IODBC_C_SRC=""
32543
32544
32545 if test "$TOOLKIT" != "MSW" ; then
32546
32547     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32548
32549         if test "${ac_cv_header_sql_h+set}" = set; then
32550   echo "$as_me:$LINENO: checking for sql.h" >&5
32551 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32552 if test "${ac_cv_header_sql_h+set}" = set; then
32553   echo $ECHO_N "(cached) $ECHO_C" >&6
32554 fi
32555 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32556 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32557 else
32558   # Is the header compilable?
32559 echo "$as_me:$LINENO: checking sql.h usability" >&5
32560 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32561 cat >conftest.$ac_ext <<_ACEOF
32562 /* confdefs.h.  */
32563 _ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h.  */
32567 $ac_includes_default
32568 #include <sql.h>
32569 _ACEOF
32570 rm -f conftest.$ac_objext
32571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32572   (eval $ac_compile) 2>conftest.er1
32573   ac_status=$?
32574   grep -v '^ *+' conftest.er1 >conftest.err
32575   rm -f conftest.er1
32576   cat conftest.err >&5
32577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578   (exit $ac_status); } &&
32579          { ac_try='test -z "$ac_cxx_werror_flag"
32580                          || test ! -s conftest.err'
32581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32582   (eval $ac_try) 2>&5
32583   ac_status=$?
32584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585   (exit $ac_status); }; } &&
32586          { ac_try='test -s conftest.$ac_objext'
32587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32588   (eval $ac_try) 2>&5
32589   ac_status=$?
32590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591   (exit $ac_status); }; }; then
32592   ac_header_compiler=yes
32593 else
32594   echo "$as_me: failed program was:" >&5
32595 sed 's/^/| /' conftest.$ac_ext >&5
32596
32597 ac_header_compiler=no
32598 fi
32599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32601 echo "${ECHO_T}$ac_header_compiler" >&6
32602
32603 # Is the header present?
32604 echo "$as_me:$LINENO: checking sql.h presence" >&5
32605 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32606 cat >conftest.$ac_ext <<_ACEOF
32607 /* confdefs.h.  */
32608 _ACEOF
32609 cat confdefs.h >>conftest.$ac_ext
32610 cat >>conftest.$ac_ext <<_ACEOF
32611 /* end confdefs.h.  */
32612 #include <sql.h>
32613 _ACEOF
32614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32615   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32616   ac_status=$?
32617   grep -v '^ *+' conftest.er1 >conftest.err
32618   rm -f conftest.er1
32619   cat conftest.err >&5
32620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621   (exit $ac_status); } >/dev/null; then
32622   if test -s conftest.err; then
32623     ac_cpp_err=$ac_cxx_preproc_warn_flag
32624     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32625   else
32626     ac_cpp_err=
32627   fi
32628 else
32629   ac_cpp_err=yes
32630 fi
32631 if test -z "$ac_cpp_err"; then
32632   ac_header_preproc=yes
32633 else
32634   echo "$as_me: failed program was:" >&5
32635 sed 's/^/| /' conftest.$ac_ext >&5
32636
32637   ac_header_preproc=no
32638 fi
32639 rm -f conftest.err conftest.$ac_ext
32640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32641 echo "${ECHO_T}$ac_header_preproc" >&6
32642
32643 # So?  What about this header?
32644 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32645   yes:no: )
32646     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32647 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32648     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32649 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32650     ac_header_preproc=yes
32651     ;;
32652   no:yes:* )
32653     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32654 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
32655     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
32656 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
32657     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32658 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32659     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
32660 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32661     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32662 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
32663     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32664 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
32665     (
32666       cat <<\_ASBOX
32667 ## ----------------------------------------- ##
32668 ## Report this to wx-dev@lists.wxwidgets.org ##
32669 ## ----------------------------------------- ##
32670 _ASBOX
32671     ) |
32672       sed "s/^/$as_me: WARNING:     /" >&2
32673     ;;
32674 esac
32675 echo "$as_me:$LINENO: checking for sql.h" >&5
32676 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32677 if test "${ac_cv_header_sql_h+set}" = set; then
32678   echo $ECHO_N "(cached) $ECHO_C" >&6
32679 else
32680   ac_cv_header_sql_h=$ac_header_preproc
32681 fi
32682 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32683 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32684
32685 fi
32686 if test $ac_cv_header_sql_h = yes; then
32687   found_sql_h=1
32688 fi
32689
32690
32691         if test "x$found_sql_h" = "x1" ; then
32692             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32693 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32694 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32695   echo $ECHO_N "(cached) $ECHO_C" >&6
32696 else
32697   ac_check_lib_save_LIBS=$LIBS
32698 LIBS="-liodbc  $LIBS"
32699 cat >conftest.$ac_ext <<_ACEOF
32700 /* confdefs.h.  */
32701 _ACEOF
32702 cat confdefs.h >>conftest.$ac_ext
32703 cat >>conftest.$ac_ext <<_ACEOF
32704 /* end confdefs.h.  */
32705
32706 /* Override any gcc2 internal prototype to avoid an error.  */
32707 #ifdef __cplusplus
32708 extern "C"
32709 #endif
32710 /* We use char because int might match the return type of a gcc2
32711    builtin and then its argument prototype would still apply.  */
32712 char SQLAllocEnv ();
32713 int
32714 main ()
32715 {
32716 SQLAllocEnv ();
32717   ;
32718   return 0;
32719 }
32720 _ACEOF
32721 rm -f conftest.$ac_objext conftest$ac_exeext
32722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32723   (eval $ac_link) 2>conftest.er1
32724   ac_status=$?
32725   grep -v '^ *+' conftest.er1 >conftest.err
32726   rm -f conftest.er1
32727   cat conftest.err >&5
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); } &&
32730          { ac_try='test -z "$ac_cxx_werror_flag"
32731                          || test ! -s conftest.err'
32732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733   (eval $ac_try) 2>&5
32734   ac_status=$?
32735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736   (exit $ac_status); }; } &&
32737          { ac_try='test -s conftest$ac_exeext'
32738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739   (eval $ac_try) 2>&5
32740   ac_status=$?
32741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742   (exit $ac_status); }; }; then
32743   ac_cv_lib_iodbc_SQLAllocEnv=yes
32744 else
32745   echo "$as_me: failed program was:" >&5
32746 sed 's/^/| /' conftest.$ac_ext >&5
32747
32748 ac_cv_lib_iodbc_SQLAllocEnv=no
32749 fi
32750 rm -f conftest.err conftest.$ac_objext \
32751       conftest$ac_exeext conftest.$ac_ext
32752 LIBS=$ac_check_lib_save_LIBS
32753 fi
32754 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32755 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32756 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32757   ODBC_LINK=" -liodbc"
32758 else
32759
32760                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32761 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32762 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32763   echo $ECHO_N "(cached) $ECHO_C" >&6
32764 else
32765   ac_check_lib_save_LIBS=$LIBS
32766 LIBS="-lunixodbc  $LIBS"
32767 cat >conftest.$ac_ext <<_ACEOF
32768 /* confdefs.h.  */
32769 _ACEOF
32770 cat confdefs.h >>conftest.$ac_ext
32771 cat >>conftest.$ac_ext <<_ACEOF
32772 /* end confdefs.h.  */
32773
32774 /* Override any gcc2 internal prototype to avoid an error.  */
32775 #ifdef __cplusplus
32776 extern "C"
32777 #endif
32778 /* We use char because int might match the return type of a gcc2
32779    builtin and then its argument prototype would still apply.  */
32780 char SQLAllocEnv ();
32781 int
32782 main ()
32783 {
32784 SQLAllocEnv ();
32785   ;
32786   return 0;
32787 }
32788 _ACEOF
32789 rm -f conftest.$ac_objext conftest$ac_exeext
32790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32791   (eval $ac_link) 2>conftest.er1
32792   ac_status=$?
32793   grep -v '^ *+' conftest.er1 >conftest.err
32794   rm -f conftest.er1
32795   cat conftest.err >&5
32796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797   (exit $ac_status); } &&
32798          { ac_try='test -z "$ac_cxx_werror_flag"
32799                          || test ! -s conftest.err'
32800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32801   (eval $ac_try) 2>&5
32802   ac_status=$?
32803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804   (exit $ac_status); }; } &&
32805          { ac_try='test -s conftest$ac_exeext'
32806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32807   (eval $ac_try) 2>&5
32808   ac_status=$?
32809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810   (exit $ac_status); }; }; then
32811   ac_cv_lib_unixodbc_SQLAllocEnv=yes
32812 else
32813   echo "$as_me: failed program was:" >&5
32814 sed 's/^/| /' conftest.$ac_ext >&5
32815
32816 ac_cv_lib_unixodbc_SQLAllocEnv=no
32817 fi
32818 rm -f conftest.err conftest.$ac_objext \
32819       conftest$ac_exeext conftest.$ac_ext
32820 LIBS=$ac_check_lib_save_LIBS
32821 fi
32822 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32823 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32824 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32825   ODBC_LINK=" -lunixodbc"
32826 else
32827
32828                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32829 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32830 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32831   echo $ECHO_N "(cached) $ECHO_C" >&6
32832 else
32833   ac_check_lib_save_LIBS=$LIBS
32834 LIBS="-lodbc  $LIBS"
32835 cat >conftest.$ac_ext <<_ACEOF
32836 /* confdefs.h.  */
32837 _ACEOF
32838 cat confdefs.h >>conftest.$ac_ext
32839 cat >>conftest.$ac_ext <<_ACEOF
32840 /* end confdefs.h.  */
32841
32842 /* Override any gcc2 internal prototype to avoid an error.  */
32843 #ifdef __cplusplus
32844 extern "C"
32845 #endif
32846 /* We use char because int might match the return type of a gcc2
32847    builtin and then its argument prototype would still apply.  */
32848 char SQLAllocEnv ();
32849 int
32850 main ()
32851 {
32852 SQLAllocEnv ();
32853   ;
32854   return 0;
32855 }
32856 _ACEOF
32857 rm -f conftest.$ac_objext conftest$ac_exeext
32858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32859   (eval $ac_link) 2>conftest.er1
32860   ac_status=$?
32861   grep -v '^ *+' conftest.er1 >conftest.err
32862   rm -f conftest.er1
32863   cat conftest.err >&5
32864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865   (exit $ac_status); } &&
32866          { ac_try='test -z "$ac_cxx_werror_flag"
32867                          || test ! -s conftest.err'
32868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32869   (eval $ac_try) 2>&5
32870   ac_status=$?
32871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872   (exit $ac_status); }; } &&
32873          { ac_try='test -s conftest$ac_exeext'
32874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32875   (eval $ac_try) 2>&5
32876   ac_status=$?
32877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878   (exit $ac_status); }; }; then
32879   ac_cv_lib_odbc_SQLAllocEnv=yes
32880 else
32881   echo "$as_me: failed program was:" >&5
32882 sed 's/^/| /' conftest.$ac_ext >&5
32883
32884 ac_cv_lib_odbc_SQLAllocEnv=no
32885 fi
32886 rm -f conftest.err conftest.$ac_objext \
32887       conftest$ac_exeext conftest.$ac_ext
32888 LIBS=$ac_check_lib_save_LIBS
32889 fi
32890 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32891 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32892 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32893   ODBC_LINK=" -lodbc"
32894 fi
32895
32896
32897 fi
32898
32899
32900 fi
32901
32902         fi
32903         if test "x$ODBC_LINK" = "x" ; then
32904             if test "$wxUSE_ODBC" = "sys" ; then
32905                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32906 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32907    { (exit 1); exit 1; }; }
32908             else
32909                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32910 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32911                 wxUSE_ODBC=builtin
32912             fi
32913         else
32914                         wxUSE_ODBC=sys
32915         fi
32916     fi
32917
32918     if test "$wxUSE_ODBC" = "builtin" ; then
32919         cat >>confdefs.h <<\_ACEOF
32920 #define wxUSE_BUILTIN_IODBC 1
32921 _ACEOF
32922
32923     fi
32924 fi
32925
32926 if test "$wxUSE_ODBC" != "no" ; then
32927     cat >>confdefs.h <<\_ACEOF
32928 #define wxUSE_ODBC 1
32929 _ACEOF
32930
32931     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32932
32933         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
32934 fi
32935
32936
32937 if test "$wxUSE_DISPLAY" = "yes"; then
32938     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32939         echo "$as_me:$LINENO: checking for Xinerama" >&5
32940 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32941
32942   ac_find_libraries=
32943   for ac_dir in $SEARCH_LIB;
32944   do
32945     for ac_extension in a so sl dylib dll.a; do
32946       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32947         ac_find_libraries=$ac_dir
32948         break 2
32949       fi
32950     done
32951   done
32952
32953         if test "$ac_find_libraries" != "" ; then
32954
32955     if test "$ac_find_libraries" = "default location"; then
32956     ac_path_to_link=""
32957   else
32958     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32959     result=$?
32960     if test $result = 0; then
32961       ac_path_to_link=""
32962     else
32963       ac_path_to_link=" -L$ac_find_libraries"
32964     fi
32965   fi
32966
32967             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32968                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32969             fi
32970             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32971             echo "$as_me:$LINENO: result: yes" >&5
32972 echo "${ECHO_T}yes" >&6
32973
32974             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32975 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32976
32977   ac_find_libraries=
32978   for ac_dir in $SEARCH_LIB;
32979   do
32980     for ac_extension in a so sl dylib dll.a; do
32981       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32982         ac_find_libraries=$ac_dir
32983         break 2
32984       fi
32985     done
32986   done
32987
32988             if test "$ac_find_libraries" != "" ; then
32989                 echo "$as_me:$LINENO: result: yes" >&5
32990 echo "${ECHO_T}yes" >&6
32991
32992 for ac_header in X11/extensions/xf86vmode.h
32993 do
32994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32995 echo "$as_me:$LINENO: checking for $ac_header" >&5
32996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32998   echo $ECHO_N "(cached) $ECHO_C" >&6
32999 else
33000   cat >conftest.$ac_ext <<_ACEOF
33001 /* confdefs.h.  */
33002 _ACEOF
33003 cat confdefs.h >>conftest.$ac_ext
33004 cat >>conftest.$ac_ext <<_ACEOF
33005 /* end confdefs.h.  */
33006
33007                                       #if HAVE_X11_XLIB_H
33008                                         #include <X11/Xlib.h>
33009                                       #endif
33010
33011
33012 #include <$ac_header>
33013 _ACEOF
33014 rm -f conftest.$ac_objext
33015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33016   (eval $ac_compile) 2>conftest.er1
33017   ac_status=$?
33018   grep -v '^ *+' conftest.er1 >conftest.err
33019   rm -f conftest.er1
33020   cat conftest.err >&5
33021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022   (exit $ac_status); } &&
33023          { ac_try='test -z "$ac_cxx_werror_flag"
33024                          || test ! -s conftest.err'
33025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33026   (eval $ac_try) 2>&5
33027   ac_status=$?
33028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029   (exit $ac_status); }; } &&
33030          { ac_try='test -s conftest.$ac_objext'
33031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33032   (eval $ac_try) 2>&5
33033   ac_status=$?
33034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035   (exit $ac_status); }; }; then
33036   eval "$as_ac_Header=yes"
33037 else
33038   echo "$as_me: failed program was:" >&5
33039 sed 's/^/| /' conftest.$ac_ext >&5
33040
33041 eval "$as_ac_Header=no"
33042 fi
33043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33044 fi
33045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33048   cat >>confdefs.h <<_ACEOF
33049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33050 _ACEOF
33051
33052                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33053
33054 fi
33055
33056 done
33057
33058             else
33059                 echo "$as_me:$LINENO: result: no" >&5
33060 echo "${ECHO_T}no" >&6
33061             fi
33062
33063         else
33064             echo "$as_me:$LINENO: result: no" >&5
33065 echo "${ECHO_T}no" >&6
33066             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33067 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33068             wxUSE_DISPLAY="no"
33069         fi
33070     elif test "$wxUSE_MSW" = 1; then
33071
33072 for ac_header in ddraw.h
33073 do
33074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33075 echo "$as_me:$LINENO: checking for $ac_header" >&5
33076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33078   echo $ECHO_N "(cached) $ECHO_C" >&6
33079 else
33080   cat >conftest.$ac_ext <<_ACEOF
33081 /* confdefs.h.  */
33082 _ACEOF
33083 cat confdefs.h >>conftest.$ac_ext
33084 cat >>conftest.$ac_ext <<_ACEOF
33085 /* end confdefs.h.  */
33086 #include <windows.h>
33087
33088 #include <$ac_header>
33089 _ACEOF
33090 rm -f conftest.$ac_objext
33091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33092   (eval $ac_compile) 2>conftest.er1
33093   ac_status=$?
33094   grep -v '^ *+' conftest.er1 >conftest.err
33095   rm -f conftest.er1
33096   cat conftest.err >&5
33097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098   (exit $ac_status); } &&
33099          { ac_try='test -z "$ac_cxx_werror_flag"
33100                          || test ! -s conftest.err'
33101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102   (eval $ac_try) 2>&5
33103   ac_status=$?
33104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105   (exit $ac_status); }; } &&
33106          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33112   eval "$as_ac_Header=yes"
33113 else
33114   echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33116
33117 eval "$as_ac_Header=no"
33118 fi
33119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33120 fi
33121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33124   cat >>confdefs.h <<_ACEOF
33125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33126 _ACEOF
33127
33128 fi
33129
33130 done
33131
33132     fi
33133 fi
33134
33135 if test "$wxUSE_DETECT_SM" = "yes"; then
33136     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33137         echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33138 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33139
33140   ac_find_libraries=
33141   for ac_dir in $SEARCH_LIB;
33142   do
33143     for ac_extension in a so sl dylib dll.a; do
33144       if test -f "$ac_dir/libSM.$ac_extension"; then
33145         ac_find_libraries=$ac_dir
33146         break 2
33147       fi
33148     done
33149   done
33150
33151         if test "$ac_find_libraries" != "" ; then
33152
33153     if test "$ac_find_libraries" = "default location"; then
33154     ac_path_to_link=""
33155   else
33156     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33157     result=$?
33158     if test $result = 0; then
33159       ac_path_to_link=""
33160     else
33161       ac_path_to_link=" -L$ac_find_libraries"
33162     fi
33163   fi
33164
33165             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33166                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33167             fi
33168             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33169             echo "$as_me:$LINENO: result: yes" >&5
33170 echo "${ECHO_T}yes" >&6
33171         else
33172             echo "$as_me:$LINENO: result: no" >&5
33173 echo "${ECHO_T}no" >&6
33174             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33175 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33176             wxUSE_DETECT_SM="no"
33177         fi
33178     else
33179         wxUSE_DETECT_SM="no"
33180     fi
33181 fi
33182
33183
33184
33185 USE_OPENGL=0
33186 if test "$wxUSE_OPENGL" = "yes"; then
33187     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
33188         OPENGL_LIBS="-framework OpenGL -framework AGL"
33189     elif test "$wxUSE_MSW" = 1; then
33190         OPENGL_LIBS="-lopengl32 -lglu32"
33191     else
33192
33193
33194 ac_find_includes=
33195 for ac_dir in $SEARCH_INCLUDE /usr/include;
33196   do
33197     if test -f "$ac_dir/GL/gl.h"; then
33198       ac_find_includes=$ac_dir
33199       break
33200     fi
33201   done
33202
33203         if test "$ac_find_includes" != "" ; then
33204             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33205 echo "${ECHO_T}found in $ac_find_includes" >&6
33206
33207     if test "x$ac_find_includes" = "x/usr/include"; then
33208     ac_path_to_include=""
33209   else
33210     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33211     result=$?
33212     if test $result = 0; then
33213       ac_path_to_include=""
33214     else
33215       ac_path_to_include=" -I$ac_find_includes"
33216     fi
33217   fi
33218
33219             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33220         fi
33221
33222         if test "${ac_cv_header_GL_gl_h+set}" = set; then
33223   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33224 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33225 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33226   echo $ECHO_N "(cached) $ECHO_C" >&6
33227 fi
33228 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33229 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33230 else
33231   # Is the header compilable?
33232 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33233 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33234 cat >conftest.$ac_ext <<_ACEOF
33235 /* confdefs.h.  */
33236 _ACEOF
33237 cat confdefs.h >>conftest.$ac_ext
33238 cat >>conftest.$ac_ext <<_ACEOF
33239 /* end confdefs.h.  */
33240 $ac_includes_default
33241 #include <GL/gl.h>
33242 _ACEOF
33243 rm -f conftest.$ac_objext
33244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33245   (eval $ac_compile) 2>conftest.er1
33246   ac_status=$?
33247   grep -v '^ *+' conftest.er1 >conftest.err
33248   rm -f conftest.er1
33249   cat conftest.err >&5
33250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251   (exit $ac_status); } &&
33252          { ac_try='test -z "$ac_cxx_werror_flag"
33253                          || test ! -s conftest.err'
33254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33255   (eval $ac_try) 2>&5
33256   ac_status=$?
33257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258   (exit $ac_status); }; } &&
33259          { ac_try='test -s conftest.$ac_objext'
33260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33261   (eval $ac_try) 2>&5
33262   ac_status=$?
33263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264   (exit $ac_status); }; }; then
33265   ac_header_compiler=yes
33266 else
33267   echo "$as_me: failed program was:" >&5
33268 sed 's/^/| /' conftest.$ac_ext >&5
33269
33270 ac_header_compiler=no
33271 fi
33272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33274 echo "${ECHO_T}$ac_header_compiler" >&6
33275
33276 # Is the header present?
33277 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33278 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33279 cat >conftest.$ac_ext <<_ACEOF
33280 /* confdefs.h.  */
33281 _ACEOF
33282 cat confdefs.h >>conftest.$ac_ext
33283 cat >>conftest.$ac_ext <<_ACEOF
33284 /* end confdefs.h.  */
33285 #include <GL/gl.h>
33286 _ACEOF
33287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33289   ac_status=$?
33290   grep -v '^ *+' conftest.er1 >conftest.err
33291   rm -f conftest.er1
33292   cat conftest.err >&5
33293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33294   (exit $ac_status); } >/dev/null; then
33295   if test -s conftest.err; then
33296     ac_cpp_err=$ac_cxx_preproc_warn_flag
33297     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
33298   else
33299     ac_cpp_err=
33300   fi
33301 else
33302   ac_cpp_err=yes
33303 fi
33304 if test -z "$ac_cpp_err"; then
33305   ac_header_preproc=yes
33306 else
33307   echo "$as_me: failed program was:" >&5
33308 sed 's/^/| /' conftest.$ac_ext >&5
33309
33310   ac_header_preproc=no
33311 fi
33312 rm -f conftest.err conftest.$ac_ext
33313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33314 echo "${ECHO_T}$ac_header_preproc" >&6
33315
33316 # So?  What about this header?
33317 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
33318   yes:no: )
33319     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33320 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33321     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33322 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33323     ac_header_preproc=yes
33324     ;;
33325   no:yes:* )
33326     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33327 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
33328     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
33329 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
33330     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33331 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33332     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
33333 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33334     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33335 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
33336     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33337 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
33338     (
33339       cat <<\_ASBOX
33340 ## ----------------------------------------- ##
33341 ## Report this to wx-dev@lists.wxwidgets.org ##
33342 ## ----------------------------------------- ##
33343 _ASBOX
33344     ) |
33345       sed "s/^/$as_me: WARNING:     /" >&2
33346     ;;
33347 esac
33348 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33349 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33350 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33351   echo $ECHO_N "(cached) $ECHO_C" >&6
33352 else
33353   ac_cv_header_GL_gl_h=$ac_header_preproc
33354 fi
33355 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33356 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33357
33358 fi
33359 if test $ac_cv_header_GL_gl_h = yes; then
33360
33361                 found_gl=0
33362
33363                 echo "$as_me:$LINENO: checking for -lGL" >&5
33364 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33365
33366   ac_find_libraries=
33367   for ac_dir in $SEARCH_LIB;
33368   do
33369     for ac_extension in a so sl dylib dll.a; do
33370       if test -f "$ac_dir/libGL.$ac_extension"; then
33371         ac_find_libraries=$ac_dir
33372         break 2
33373       fi
33374     done
33375   done
33376
33377                 if test "$ac_find_libraries" != "" ; then
33378                     echo "$as_me:$LINENO: result: yes" >&5
33379 echo "${ECHO_T}yes" >&6
33380
33381
33382     if test "$ac_find_libraries" = "default location"; then
33383     ac_path_to_link=""
33384   else
33385     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33386     result=$?
33387     if test $result = 0; then
33388       ac_path_to_link=""
33389     else
33390       ac_path_to_link=" -L$ac_find_libraries"
33391     fi
33392   fi
33393
33394                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33395                         LDFLAGS_GL="$ac_path_to_link"
33396                     fi
33397
33398                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
33399 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
33400
33401   ac_find_libraries=
33402   for ac_dir in $SEARCH_LIB;
33403   do
33404     for ac_extension in a so sl dylib dll.a; do
33405       if test -f "$ac_dir/libGLU.$ac_extension"; then
33406         ac_find_libraries=$ac_dir
33407         break 2
33408       fi
33409     done
33410   done
33411
33412                     if test "$ac_find_libraries" != "" ; then
33413
33414     if test "$ac_find_libraries" = "default location"; then
33415     ac_path_to_link=""
33416   else
33417     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33418     result=$?
33419     if test $result = 0; then
33420       ac_path_to_link=""
33421     else
33422       ac_path_to_link=" -L$ac_find_libraries"
33423     fi
33424   fi
33425
33426                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33427                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33428                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33429                         fi
33430
33431                         found_gl=1
33432                         OPENGL_LIBS="-lGL -lGLU"
33433                         echo "$as_me:$LINENO: result: yes" >&5
33434 echo "${ECHO_T}yes" >&6
33435                     else
33436                         echo "$as_me:$LINENO: result: no" >&5
33437 echo "${ECHO_T}no" >&6
33438                     fi
33439                 else
33440                     echo "$as_me:$LINENO: result: no" >&5
33441 echo "${ECHO_T}no" >&6
33442                 fi
33443
33444                 if test "$found_gl" != 1; then
33445                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33446 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33447
33448   ac_find_libraries=
33449   for ac_dir in $SEARCH_LIB;
33450   do
33451     for ac_extension in a so sl dylib dll.a; do
33452       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33453         ac_find_libraries=$ac_dir
33454         break 2
33455       fi
33456     done
33457   done
33458
33459                     if test "$ac_find_libraries" != "" ; then
33460
33461     if test "$ac_find_libraries" = "default location"; then
33462     ac_path_to_link=""
33463   else
33464     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33465     result=$?
33466     if test $result = 0; then
33467       ac_path_to_link=""
33468     else
33469       ac_path_to_link=" -L$ac_find_libraries"
33470     fi
33471   fi
33472
33473                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33474                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33475                         echo "$as_me:$LINENO: result: yes" >&5
33476 echo "${ECHO_T}yes" >&6
33477                     else
33478                         echo "$as_me:$LINENO: result: no" >&5
33479 echo "${ECHO_T}no" >&6
33480                     fi
33481                 fi
33482
33483 fi
33484
33485
33486
33487         if test "x$OPENGL_LIBS" = "x"; then
33488                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33489 echo "$as_me: error: OpenGL libraries not available" >&2;}
33490    { (exit 1); exit 1; }; }
33491         fi
33492     fi
33493
33494     if test "$wxUSE_OPENGL" = "yes"; then
33495         USE_OPENGL=1
33496         cat >>confdefs.h <<\_ACEOF
33497 #define wxUSE_OPENGL 1
33498 _ACEOF
33499
33500         cat >>confdefs.h <<\_ACEOF
33501 #define wxUSE_GLCANVAS 1
33502 _ACEOF
33503
33504         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33505     fi
33506 fi
33507
33508
33509 if test -n "$TOOLKIT" ; then
33510     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33511 fi
33512
33513
33514
33515 if test "$wxUSE_SHARED" = "yes"; then
33516     case "${host}" in
33517       *-pc-msdosdjgpp )
33518                 wxUSE_SHARED=no
33519         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33520 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33521       ;;
33522     esac
33523 fi
33524
33525 if test "$wxUSE_SHARED" = "yes"; then
33526
33527
33528   found_versioning=no
33529
33530
33531     if test $found_versioning = no ; then
33532       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33533 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33534 if test "${wx_cv_version_script+set}" = set; then
33535   echo $ECHO_N "(cached) $ECHO_C" >&6
33536 else
33537
33538         echo "VER_1 { *; };" >conftest.sym
33539         echo "int main() { return 0; }" >conftest.cpp
33540
33541         if { ac_try='
33542                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33543                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545   (eval $ac_try) 2>&5
33546   ac_status=$?
33547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548   (exit $ac_status); }; } ; then
33549           if test -s conftest.stderr ; then
33550               wx_cv_version_script=no
33551           else
33552               wx_cv_version_script=yes
33553           fi
33554         else
33555           wx_cv_version_script=no
33556         fi
33557
33558                                                                                                 if test $wx_cv_version_script = yes
33559         then
33560           echo "struct B { virtual ~B() { } }; \
33561                 struct D : public B { }; \
33562                 void F() { D d; }" > conftest.cpp
33563
33564           if { ac_try='
33565                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33566                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568   (eval $ac_try) 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); }; } &&
33572              { ac_try='
33573                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33574                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33576   (eval $ac_try) 2>&5
33577   ac_status=$?
33578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33579   (exit $ac_status); }; }
33580           then
33581             if { ac_try='
33582                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33583                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585   (eval $ac_try) 2>&5
33586   ac_status=$?
33587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588   (exit $ac_status); }; }
33589             then
33590               wx_cv_version_script=yes
33591             else
33592               wx_cv_version_script=no
33593             fi
33594           fi
33595         fi
33596
33597         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33598         rm -f conftest1.output conftest2.output conftest3.output
33599
33600 fi
33601 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33602 echo "${ECHO_T}$wx_cv_version_script" >&6
33603       if test $wx_cv_version_script = yes ; then
33604         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33605       fi
33606   fi
33607
33608
33609     case "${host}" in
33610       *-*-linux* | *-*-gnu* )
33611         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
33612         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33613         ;;
33614
33615       *-*-solaris2* )
33616         if test "$GCC" = yes ; then
33617                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33618
33619                                     saveLdflags="$LDFLAGS"
33620             LDFLAGS="$saveLdflags -Wl,-rpath,/"
33621             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33622 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33623             cat >conftest.$ac_ext <<_ACEOF
33624 /* confdefs.h.  */
33625 _ACEOF
33626 cat confdefs.h >>conftest.$ac_ext
33627 cat >>conftest.$ac_ext <<_ACEOF
33628 /* end confdefs.h.  */
33629
33630 int
33631 main ()
33632 {
33633
33634   ;
33635   return 0;
33636 }
33637 _ACEOF
33638 rm -f conftest.$ac_objext conftest$ac_exeext
33639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33640   (eval $ac_link) 2>conftest.er1
33641   ac_status=$?
33642   grep -v '^ *+' conftest.er1 >conftest.err
33643   rm -f conftest.er1
33644   cat conftest.err >&5
33645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646   (exit $ac_status); } &&
33647          { ac_try='test -z "$ac_cxx_werror_flag"
33648                          || test ! -s conftest.err'
33649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33650   (eval $ac_try) 2>&5
33651   ac_status=$?
33652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653   (exit $ac_status); }; } &&
33654          { ac_try='test -s conftest$ac_exeext'
33655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33656   (eval $ac_try) 2>&5
33657   ac_status=$?
33658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659   (exit $ac_status); }; }; then
33660
33661                     echo "$as_me:$LINENO: result: yes" >&5
33662 echo "${ECHO_T}yes" >&6
33663                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
33664                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33665
33666 else
33667   echo "$as_me: failed program was:" >&5
33668 sed 's/^/| /' conftest.$ac_ext >&5
33669
33670
33671                     echo "$as_me:$LINENO: result: no" >&5
33672 echo "${ECHO_T}no" >&6
33673                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33674 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33675                     LDFLAGS="$saveLdflags -Wl,-R,/"
33676                     cat >conftest.$ac_ext <<_ACEOF
33677 /* confdefs.h.  */
33678 _ACEOF
33679 cat confdefs.h >>conftest.$ac_ext
33680 cat >>conftest.$ac_ext <<_ACEOF
33681 /* end confdefs.h.  */
33682
33683 int
33684 main ()
33685 {
33686
33687   ;
33688   return 0;
33689 }
33690 _ACEOF
33691 rm -f conftest.$ac_objext conftest$ac_exeext
33692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33693   (eval $ac_link) 2>conftest.er1
33694   ac_status=$?
33695   grep -v '^ *+' conftest.er1 >conftest.err
33696   rm -f conftest.er1
33697   cat conftest.err >&5
33698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699   (exit $ac_status); } &&
33700          { ac_try='test -z "$ac_cxx_werror_flag"
33701                          || test ! -s conftest.err'
33702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33703   (eval $ac_try) 2>&5
33704   ac_status=$?
33705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706   (exit $ac_status); }; } &&
33707          { ac_try='test -s conftest$ac_exeext'
33708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33709   (eval $ac_try) 2>&5
33710   ac_status=$?
33711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712   (exit $ac_status); }; }; then
33713
33714                             echo "$as_me:$LINENO: result: yes" >&5
33715 echo "${ECHO_T}yes" >&6
33716                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33717                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
33718
33719 else
33720   echo "$as_me: failed program was:" >&5
33721 sed 's/^/| /' conftest.$ac_ext >&5
33722
33723
33724                             echo "$as_me:$LINENO: result: no" >&5
33725 echo "${ECHO_T}no" >&6
33726
33727 fi
33728 rm -f conftest.err conftest.$ac_objext \
33729       conftest$ac_exeext conftest.$ac_ext
33730
33731 fi
33732 rm -f conftest.err conftest.$ac_objext \
33733       conftest$ac_exeext conftest.$ac_ext
33734             LDFLAGS="$saveLdflags"
33735         else
33736             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
33737             WXCONFIG_RPATH="-R\$libdir"
33738         fi
33739       ;;
33740
33741       *-*-darwin* )
33742         install_name_tool=`which install_name_tool`
33743         if test "$install_name_tool" -a -x "$install_name_tool"; then
33744             SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33745             cat <<EOF >change-install-names
33746 #!/bin/sh
33747 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33748 inst_cmd="install_name_tool "
33749 for i in \${libnames} ; do
33750     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33751 done
33752 \${inst_cmd} \${3}
33753 EOF
33754             chmod +x change-install-names
33755         fi
33756       ;;
33757
33758       *-*-cygwin* | *-*-mingw32* )
33759                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33760         ;;
33761
33762       *-*-hpux* )
33763         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33764         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33765         ;;
33766
33767     esac
33768
33769     if test $wxUSE_RPATH = "no"; then
33770         SAMPLES_RPATH_FLAG=''
33771         SAMPLES_RPATH_POSTLINK=''
33772         WXCONFIG_RPATH=''
33773     fi
33774
33775     SHARED=1
33776
33777 else
33778
33779     config_linkage_component="-static"
33780     SHARED=0
33781
33782 fi
33783
33784
33785 UNICODE=0
33786 lib_unicode_suffix=
33787 WX_CHARTYPE="ansi"
33788 if test "$wxUSE_UNICODE" = "yes"; then
33789     lib_unicode_suffix=u
33790     WX_CHARTYPE="unicode"
33791     UNICODE=1
33792 fi
33793
33794 lib_debug_suffix=
33795 WX_DEBUGTYPE="release"
33796 DEBUG_FLAG=0
33797 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33798     lib_debug_suffix=d
33799     WX_DEBUGTYPE="debug"
33800     DEBUG_FLAG=1
33801 fi
33802
33803 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33804 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33805
33806 DEBUG_INFO=0
33807 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33808     DEBUG_INFO=1
33809 fi
33810
33811 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
33812
33813 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33814
33815 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33816
33817 if test "$cross_compiling" = "yes"; then
33818     HOST_SUFFIX="-$host_alias"
33819     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33820     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33821 fi
33822
33823 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33824 if test "${TOOLKIT_DIR}" = "os2"; then
33825     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33826 else
33827     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33828 fi
33829
33830
33831
33832 if test "$wxUSE_COCOA" = 1; then
33833
33834
33835     ac_ext=c
33836 ac_cpp='$CPP $CPPFLAGS'
33837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33840
33841 ac_ext=m
33842
33843     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33844 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33845     cat >conftest.$ac_ext <<_ACEOF
33846 /* confdefs.h.  */
33847 _ACEOF
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h.  */
33851 #include <AppKit/NSEvent.h>
33852 #include <CoreFoundation/CoreFoundation.h>
33853
33854 int
33855 main ()
33856 {
33857
33858   ;
33859   return 0;
33860 }
33861 _ACEOF
33862 rm -f conftest.$ac_objext
33863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33864   (eval $ac_compile) 2>conftest.er1
33865   ac_status=$?
33866   grep -v '^ *+' conftest.er1 >conftest.err
33867   rm -f conftest.er1
33868   cat conftest.err >&5
33869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870   (exit $ac_status); } &&
33871          { ac_try='test -z "$ac_c_werror_flag"
33872                          || test ! -s conftest.err'
33873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33874   (eval $ac_try) 2>&5
33875   ac_status=$?
33876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877   (exit $ac_status); }; } &&
33878          { ac_try='test -s conftest.$ac_objext'
33879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880   (eval $ac_try) 2>&5
33881   ac_status=$?
33882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883   (exit $ac_status); }; }; then
33884   echo "$as_me:$LINENO: result: no" >&5
33885 echo "${ECHO_T}no" >&6
33886 else
33887   echo "$as_me: failed program was:" >&5
33888 sed 's/^/| /' conftest.$ac_ext >&5
33889
33890 echo "$as_me:$LINENO: result: yes" >&5
33891 echo "${ECHO_T}yes" >&6
33892         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33893 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33894         cat >conftest.$ac_ext <<_ACEOF
33895 /* confdefs.h.  */
33896 _ACEOF
33897 cat confdefs.h >>conftest.$ac_ext
33898 cat >>conftest.$ac_ext <<_ACEOF
33899 /* end confdefs.h.  */
33900 #define __Point__ 1
33901 #include <AppKit/NSEvent.h>
33902 #include <CoreFoundation/CoreFoundation.h>
33903
33904 int
33905 main ()
33906 {
33907
33908   ;
33909   return 0;
33910 }
33911 _ACEOF
33912 rm -f conftest.$ac_objext
33913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33914   (eval $ac_compile) 2>conftest.er1
33915   ac_status=$?
33916   grep -v '^ *+' conftest.er1 >conftest.err
33917   rm -f conftest.er1
33918   cat conftest.err >&5
33919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920   (exit $ac_status); } &&
33921          { ac_try='test -z "$ac_c_werror_flag"
33922                          || test ! -s conftest.err'
33923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33924   (eval $ac_try) 2>&5
33925   ac_status=$?
33926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927   (exit $ac_status); }; } &&
33928          { ac_try='test -s conftest.$ac_objext'
33929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930   (eval $ac_try) 2>&5
33931   ac_status=$?
33932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933   (exit $ac_status); }; }; then
33934   echo "$as_me:$LINENO: result: yes" >&5
33935 echo "${ECHO_T}yes" >&6
33936             cat >>confdefs.h <<\_ACEOF
33937 #define __Point__ 1
33938 _ACEOF
33939
33940
33941 else
33942   echo "$as_me: failed program was:" >&5
33943 sed 's/^/| /' conftest.$ac_ext >&5
33944
33945 { { echo "$as_me:$LINENO: error: no
33946 See \`config.log' for more details." >&5
33947 echo "$as_me: error: no
33948 See \`config.log' for more details." >&2;}
33949    { (exit 1); exit 1; }; }
33950
33951 fi
33952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33953
33954 fi
33955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33956     ac_ext=cc
33957 ac_cpp='$CXXCPP $CPPFLAGS'
33958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33961
33962 fi
33963
33964 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
33965             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33966     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
33967
33968         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
33969
33970     # Extract the first word of "Rez", so it can be a program name with args.
33971 set dummy Rez; ac_word=$2
33972 echo "$as_me:$LINENO: checking for $ac_word" >&5
33973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33974 if test "${ac_cv_prog_REZ+set}" = set; then
33975   echo $ECHO_N "(cached) $ECHO_C" >&6
33976 else
33977   if test -n "$REZ"; then
33978   ac_cv_prog_REZ="$REZ" # Let the user override the test.
33979 else
33980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33981 for as_dir in $PATH
33982 do
33983   IFS=$as_save_IFS
33984   test -z "$as_dir" && as_dir=.
33985   for ac_exec_ext in '' $ac_executable_extensions; do
33986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33987     ac_cv_prog_REZ="Rez"
33988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33989     break 2
33990   fi
33991 done
33992 done
33993
33994   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
33995 fi
33996 fi
33997 REZ=$ac_cv_prog_REZ
33998 if test -n "$REZ"; then
33999   echo "$as_me:$LINENO: result: $REZ" >&5
34000 echo "${ECHO_T}$REZ" >&6
34001 else
34002   echo "$as_me:$LINENO: result: no" >&5
34003 echo "${ECHO_T}no" >&6
34004 fi
34005
34006     # Extract the first word of "DeRez", so it can be a program name with args.
34007 set dummy DeRez; ac_word=$2
34008 echo "$as_me:$LINENO: checking for $ac_word" >&5
34009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34010 if test "${ac_cv_prog_DEREZ+set}" = set; then
34011   echo $ECHO_N "(cached) $ECHO_C" >&6
34012 else
34013   if test -n "$DEREZ"; then
34014   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
34015 else
34016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34017 for as_dir in $PATH
34018 do
34019   IFS=$as_save_IFS
34020   test -z "$as_dir" && as_dir=.
34021   for ac_exec_ext in '' $ac_executable_extensions; do
34022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34023     ac_cv_prog_DEREZ="DeRez"
34024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34025     break 2
34026   fi
34027 done
34028 done
34029
34030   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
34031 fi
34032 fi
34033 DEREZ=$ac_cv_prog_DEREZ
34034 if test -n "$DEREZ"; then
34035   echo "$as_me:$LINENO: result: $DEREZ" >&5
34036 echo "${ECHO_T}$DEREZ" >&6
34037 else
34038   echo "$as_me:$LINENO: result: no" >&5
34039 echo "${ECHO_T}no" >&6
34040 fi
34041
34042     # Extract the first word of "SetFile", so it can be a program name with args.
34043 set dummy SetFile; ac_word=$2
34044 echo "$as_me:$LINENO: checking for $ac_word" >&5
34045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34046 if test "${ac_cv_prog_SETFILE+set}" = set; then
34047   echo $ECHO_N "(cached) $ECHO_C" >&6
34048 else
34049   if test -n "$SETFILE"; then
34050   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34051 else
34052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34053 for as_dir in $PATH
34054 do
34055   IFS=$as_save_IFS
34056   test -z "$as_dir" && as_dir=.
34057   for ac_exec_ext in '' $ac_executable_extensions; do
34058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34059     ac_cv_prog_SETFILE="SetFile"
34060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34061     break 2
34062   fi
34063 done
34064 done
34065
34066   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34067 fi
34068 fi
34069 SETFILE=$ac_cv_prog_SETFILE
34070 if test -n "$SETFILE"; then
34071   echo "$as_me:$LINENO: result: $SETFILE" >&5
34072 echo "${ECHO_T}$SETFILE" >&6
34073 else
34074   echo "$as_me:$LINENO: result: no" >&5
34075 echo "${ECHO_T}no" >&6
34076 fi
34077
34078
34079     MACSETFILE="\$(SETFILE)"
34080
34081             if test "$wxUSE_MAC" = 1; then
34082         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
34083         RESCOMP="$REZ"
34084         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
34085     else
34086         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
34087         RESCOMP="echo -n \| $REZ"
34088         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
34089     fi
34090
34091 else
34092         MACSETFILE="@true"
34093
34094     if test "$wxUSE_PM" = 1; then
34095         RESCOMP="emxbind"
34096         WXCONFIG_RESFLAGS="-ep"
34097
34098                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
34099     else
34100         POSTLINK_COMMAND="@true"
34101     fi
34102
34103 fi
34104
34105
34106
34107 echo "$as_me:$LINENO: checking for mode_t" >&5
34108 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
34109 if test "${ac_cv_type_mode_t+set}" = set; then
34110   echo $ECHO_N "(cached) $ECHO_C" >&6
34111 else
34112   cat >conftest.$ac_ext <<_ACEOF
34113 /* confdefs.h.  */
34114 _ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h.  */
34118 $ac_includes_default
34119 int
34120 main ()
34121 {
34122 if ((mode_t *) 0)
34123   return 0;
34124 if (sizeof (mode_t))
34125   return 0;
34126   ;
34127   return 0;
34128 }
34129 _ACEOF
34130 rm -f conftest.$ac_objext
34131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34132   (eval $ac_compile) 2>conftest.er1
34133   ac_status=$?
34134   grep -v '^ *+' conftest.er1 >conftest.err
34135   rm -f conftest.er1
34136   cat conftest.err >&5
34137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138   (exit $ac_status); } &&
34139          { ac_try='test -z "$ac_cxx_werror_flag"
34140                          || test ! -s conftest.err'
34141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34142   (eval $ac_try) 2>&5
34143   ac_status=$?
34144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145   (exit $ac_status); }; } &&
34146          { ac_try='test -s conftest.$ac_objext'
34147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148   (eval $ac_try) 2>&5
34149   ac_status=$?
34150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151   (exit $ac_status); }; }; then
34152   ac_cv_type_mode_t=yes
34153 else
34154   echo "$as_me: failed program was:" >&5
34155 sed 's/^/| /' conftest.$ac_ext >&5
34156
34157 ac_cv_type_mode_t=no
34158 fi
34159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34160 fi
34161 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34162 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34163 if test $ac_cv_type_mode_t = yes; then
34164   :
34165 else
34166
34167 cat >>confdefs.h <<_ACEOF
34168 #define mode_t int
34169 _ACEOF
34170
34171 fi
34172
34173 echo "$as_me:$LINENO: checking for off_t" >&5
34174 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34175 if test "${ac_cv_type_off_t+set}" = set; then
34176   echo $ECHO_N "(cached) $ECHO_C" >&6
34177 else
34178   cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h.  */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h.  */
34184 $ac_includes_default
34185 int
34186 main ()
34187 {
34188 if ((off_t *) 0)
34189   return 0;
34190 if (sizeof (off_t))
34191   return 0;
34192   ;
34193   return 0;
34194 }
34195 _ACEOF
34196 rm -f conftest.$ac_objext
34197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34198   (eval $ac_compile) 2>conftest.er1
34199   ac_status=$?
34200   grep -v '^ *+' conftest.er1 >conftest.err
34201   rm -f conftest.er1
34202   cat conftest.err >&5
34203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204   (exit $ac_status); } &&
34205          { ac_try='test -z "$ac_cxx_werror_flag"
34206                          || test ! -s conftest.err'
34207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34208   (eval $ac_try) 2>&5
34209   ac_status=$?
34210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211   (exit $ac_status); }; } &&
34212          { ac_try='test -s conftest.$ac_objext'
34213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34214   (eval $ac_try) 2>&5
34215   ac_status=$?
34216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217   (exit $ac_status); }; }; then
34218   ac_cv_type_off_t=yes
34219 else
34220   echo "$as_me: failed program was:" >&5
34221 sed 's/^/| /' conftest.$ac_ext >&5
34222
34223 ac_cv_type_off_t=no
34224 fi
34225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34226 fi
34227 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34228 echo "${ECHO_T}$ac_cv_type_off_t" >&6
34229 if test $ac_cv_type_off_t = yes; then
34230   :
34231 else
34232
34233 cat >>confdefs.h <<_ACEOF
34234 #define off_t long
34235 _ACEOF
34236
34237 fi
34238
34239 echo "$as_me:$LINENO: checking for pid_t" >&5
34240 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34241 if test "${ac_cv_type_pid_t+set}" = set; then
34242   echo $ECHO_N "(cached) $ECHO_C" >&6
34243 else
34244   cat >conftest.$ac_ext <<_ACEOF
34245 /* confdefs.h.  */
34246 _ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h.  */
34250 $ac_includes_default
34251 int
34252 main ()
34253 {
34254 if ((pid_t *) 0)
34255   return 0;
34256 if (sizeof (pid_t))
34257   return 0;
34258   ;
34259   return 0;
34260 }
34261 _ACEOF
34262 rm -f conftest.$ac_objext
34263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34264   (eval $ac_compile) 2>conftest.er1
34265   ac_status=$?
34266   grep -v '^ *+' conftest.er1 >conftest.err
34267   rm -f conftest.er1
34268   cat conftest.err >&5
34269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34270   (exit $ac_status); } &&
34271          { ac_try='test -z "$ac_cxx_werror_flag"
34272                          || test ! -s conftest.err'
34273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34274   (eval $ac_try) 2>&5
34275   ac_status=$?
34276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277   (exit $ac_status); }; } &&
34278          { ac_try='test -s conftest.$ac_objext'
34279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34280   (eval $ac_try) 2>&5
34281   ac_status=$?
34282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34283   (exit $ac_status); }; }; then
34284   ac_cv_type_pid_t=yes
34285 else
34286   echo "$as_me: failed program was:" >&5
34287 sed 's/^/| /' conftest.$ac_ext >&5
34288
34289 ac_cv_type_pid_t=no
34290 fi
34291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34292 fi
34293 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34294 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34295 if test $ac_cv_type_pid_t = yes; then
34296   :
34297 else
34298
34299 cat >>confdefs.h <<_ACEOF
34300 #define pid_t int
34301 _ACEOF
34302
34303 fi
34304
34305 echo "$as_me:$LINENO: checking for size_t" >&5
34306 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34307 if test "${ac_cv_type_size_t+set}" = set; then
34308   echo $ECHO_N "(cached) $ECHO_C" >&6
34309 else
34310   cat >conftest.$ac_ext <<_ACEOF
34311 /* confdefs.h.  */
34312 _ACEOF
34313 cat confdefs.h >>conftest.$ac_ext
34314 cat >>conftest.$ac_ext <<_ACEOF
34315 /* end confdefs.h.  */
34316 $ac_includes_default
34317 int
34318 main ()
34319 {
34320 if ((size_t *) 0)
34321   return 0;
34322 if (sizeof (size_t))
34323   return 0;
34324   ;
34325   return 0;
34326 }
34327 _ACEOF
34328 rm -f conftest.$ac_objext
34329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34330   (eval $ac_compile) 2>conftest.er1
34331   ac_status=$?
34332   grep -v '^ *+' conftest.er1 >conftest.err
34333   rm -f conftest.er1
34334   cat conftest.err >&5
34335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336   (exit $ac_status); } &&
34337          { ac_try='test -z "$ac_cxx_werror_flag"
34338                          || test ! -s conftest.err'
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); }; } &&
34344          { ac_try='test -s conftest.$ac_objext'
34345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346   (eval $ac_try) 2>&5
34347   ac_status=$?
34348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349   (exit $ac_status); }; }; then
34350   ac_cv_type_size_t=yes
34351 else
34352   echo "$as_me: failed program was:" >&5
34353 sed 's/^/| /' conftest.$ac_ext >&5
34354
34355 ac_cv_type_size_t=no
34356 fi
34357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34358 fi
34359 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34360 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34361 if test $ac_cv_type_size_t = yes; then
34362   :
34363 else
34364
34365 cat >>confdefs.h <<_ACEOF
34366 #define size_t unsigned
34367 _ACEOF
34368
34369 fi
34370
34371 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34372 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34373 if test "${ac_cv_type_uid_t+set}" = set; then
34374   echo $ECHO_N "(cached) $ECHO_C" >&6
34375 else
34376   cat >conftest.$ac_ext <<_ACEOF
34377 /* confdefs.h.  */
34378 _ACEOF
34379 cat confdefs.h >>conftest.$ac_ext
34380 cat >>conftest.$ac_ext <<_ACEOF
34381 /* end confdefs.h.  */
34382 #include <sys/types.h>
34383
34384 _ACEOF
34385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34386   $EGREP "uid_t" >/dev/null 2>&1; then
34387   ac_cv_type_uid_t=yes
34388 else
34389   ac_cv_type_uid_t=no
34390 fi
34391 rm -f conftest*
34392
34393 fi
34394 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34395 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34396 if test $ac_cv_type_uid_t = no; then
34397
34398 cat >>confdefs.h <<\_ACEOF
34399 #define uid_t int
34400 _ACEOF
34401
34402
34403 cat >>confdefs.h <<\_ACEOF
34404 #define gid_t int
34405 _ACEOF
34406
34407 fi
34408
34409
34410 echo "$as_me:$LINENO: checking for ssize_t" >&5
34411 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34412 if test "${ac_cv_type_ssize_t+set}" = set; then
34413   echo $ECHO_N "(cached) $ECHO_C" >&6
34414 else
34415   cat >conftest.$ac_ext <<_ACEOF
34416 /* confdefs.h.  */
34417 _ACEOF
34418 cat confdefs.h >>conftest.$ac_ext
34419 cat >>conftest.$ac_ext <<_ACEOF
34420 /* end confdefs.h.  */
34421 $ac_includes_default
34422 int
34423 main ()
34424 {
34425 if ((ssize_t *) 0)
34426   return 0;
34427 if (sizeof (ssize_t))
34428   return 0;
34429   ;
34430   return 0;
34431 }
34432 _ACEOF
34433 rm -f conftest.$ac_objext
34434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34435   (eval $ac_compile) 2>conftest.er1
34436   ac_status=$?
34437   grep -v '^ *+' conftest.er1 >conftest.err
34438   rm -f conftest.er1
34439   cat conftest.err >&5
34440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441   (exit $ac_status); } &&
34442          { ac_try='test -z "$ac_cxx_werror_flag"
34443                          || test ! -s conftest.err'
34444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34445   (eval $ac_try) 2>&5
34446   ac_status=$?
34447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448   (exit $ac_status); }; } &&
34449          { ac_try='test -s conftest.$ac_objext'
34450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34451   (eval $ac_try) 2>&5
34452   ac_status=$?
34453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34454   (exit $ac_status); }; }; then
34455   ac_cv_type_ssize_t=yes
34456 else
34457   echo "$as_me: failed program was:" >&5
34458 sed 's/^/| /' conftest.$ac_ext >&5
34459
34460 ac_cv_type_ssize_t=no
34461 fi
34462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34463 fi
34464 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34465 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34466 if test $ac_cv_type_ssize_t = yes; then
34467
34468 cat >>confdefs.h <<_ACEOF
34469 #define HAVE_SSIZE_T 1
34470 _ACEOF
34471
34472
34473 fi
34474
34475
34476 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34477 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34478 if test "${wx_cv_size_t_is_uint+set}" = set; then
34479   echo $ECHO_N "(cached) $ECHO_C" >&6
34480 else
34481
34482                             cat >conftest.$ac_ext <<_ACEOF
34483 /* confdefs.h.  */
34484 _ACEOF
34485 cat confdefs.h >>conftest.$ac_ext
34486 cat >>conftest.$ac_ext <<_ACEOF
34487 /* end confdefs.h.  */
34488 #include <stddef.h>
34489 int
34490 main ()
34491 {
34492
34493             return 0; }
34494
34495             struct Foo { void foo(size_t); void foo(unsigned int); };
34496
34497             int bar() {
34498
34499   ;
34500   return 0;
34501 }
34502 _ACEOF
34503 rm -f conftest.$ac_objext
34504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34505   (eval $ac_compile) 2>conftest.er1
34506   ac_status=$?
34507   grep -v '^ *+' conftest.er1 >conftest.err
34508   rm -f conftest.er1
34509   cat conftest.err >&5
34510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511   (exit $ac_status); } &&
34512          { ac_try='test -z "$ac_cxx_werror_flag"
34513                          || test ! -s conftest.err'
34514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34515   (eval $ac_try) 2>&5
34516   ac_status=$?
34517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518   (exit $ac_status); }; } &&
34519          { ac_try='test -s conftest.$ac_objext'
34520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521   (eval $ac_try) 2>&5
34522   ac_status=$?
34523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524   (exit $ac_status); }; }; then
34525   wx_cv_size_t_is_uint=no
34526 else
34527   echo "$as_me: failed program was:" >&5
34528 sed 's/^/| /' conftest.$ac_ext >&5
34529
34530 wx_cv_size_t_is_uint=yes
34531
34532 fi
34533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34534
34535
34536 fi
34537 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34538 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34539
34540 if test "$wx_cv_size_t_is_uint" = "yes"; then
34541     cat >>confdefs.h <<\_ACEOF
34542 #define wxSIZE_T_IS_UINT 1
34543 _ACEOF
34544
34545 else
34546     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34547 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34548 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34549   echo $ECHO_N "(cached) $ECHO_C" >&6
34550 else
34551   cat >conftest.$ac_ext <<_ACEOF
34552 /* confdefs.h.  */
34553 _ACEOF
34554 cat confdefs.h >>conftest.$ac_ext
34555 cat >>conftest.$ac_ext <<_ACEOF
34556 /* end confdefs.h.  */
34557 #include <stddef.h>
34558 int
34559 main ()
34560 {
34561
34562                 return 0; }
34563
34564                 struct Foo { void foo(size_t); void foo(unsigned long); };
34565
34566                 int bar() {
34567
34568   ;
34569   return 0;
34570 }
34571 _ACEOF
34572 rm -f conftest.$ac_objext
34573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34574   (eval $ac_compile) 2>conftest.er1
34575   ac_status=$?
34576   grep -v '^ *+' conftest.er1 >conftest.err
34577   rm -f conftest.er1
34578   cat conftest.err >&5
34579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580   (exit $ac_status); } &&
34581          { ac_try='test -z "$ac_cxx_werror_flag"
34582                          || test ! -s conftest.err'
34583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34584   (eval $ac_try) 2>&5
34585   ac_status=$?
34586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587   (exit $ac_status); }; } &&
34588          { ac_try='test -s conftest.$ac_objext'
34589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34590   (eval $ac_try) 2>&5
34591   ac_status=$?
34592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593   (exit $ac_status); }; }; then
34594   wx_cv_size_t_is_ulong=no
34595 else
34596   echo "$as_me: failed program was:" >&5
34597 sed 's/^/| /' conftest.$ac_ext >&5
34598
34599 wx_cv_size_t_is_ulong=yes
34600
34601 fi
34602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34603
34604 fi
34605 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34606 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34607
34608     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34609         cat >>confdefs.h <<\_ACEOF
34610 #define wxSIZE_T_IS_ULONG 1
34611 _ACEOF
34612
34613     fi
34614 fi
34615
34616
34617 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34618 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34619 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34620   echo $ECHO_N "(cached) $ECHO_C" >&6
34621 else
34622
34623         cat >conftest.$ac_ext <<_ACEOF
34624 /* confdefs.h.  */
34625 _ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h.  */
34629 #include <pwd.h>
34630 int
34631 main ()
34632 {
34633
34634                 char *p;
34635                 struct passwd *pw;
34636                 p = pw->pw_gecos;
34637
34638   ;
34639   return 0;
34640 }
34641 _ACEOF
34642 rm -f conftest.$ac_objext
34643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34644   (eval $ac_compile) 2>conftest.er1
34645   ac_status=$?
34646   grep -v '^ *+' conftest.er1 >conftest.err
34647   rm -f conftest.er1
34648   cat conftest.err >&5
34649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650   (exit $ac_status); } &&
34651          { ac_try='test -z "$ac_cxx_werror_flag"
34652                          || test ! -s conftest.err'
34653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34654   (eval $ac_try) 2>&5
34655   ac_status=$?
34656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657   (exit $ac_status); }; } &&
34658          { ac_try='test -s conftest.$ac_objext'
34659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34660   (eval $ac_try) 2>&5
34661   ac_status=$?
34662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663   (exit $ac_status); }; }; then
34664
34665                 wx_cv_struct_pw_gecos=yes
34666
34667 else
34668   echo "$as_me: failed program was:" >&5
34669 sed 's/^/| /' conftest.$ac_ext >&5
34670
34671
34672                 wx_cv_struct_pw_gecos=no
34673
34674
34675 fi
34676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34677
34678
34679 fi
34680 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34681 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34682
34683 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34684     cat >>confdefs.h <<\_ACEOF
34685 #define HAVE_PW_GECOS 1
34686 _ACEOF
34687
34688 fi
34689
34690
34691 if test "$wxUSE_WCHAR_T" = "yes"; then
34692     cat >>confdefs.h <<\_ACEOF
34693 #define wxUSE_WCHAR_T 1
34694 _ACEOF
34695
34696
34697         WCSLEN_FOUND=0
34698     WCHAR_LINK=
34699
34700 for ac_func in wcslen
34701 do
34702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34703 echo "$as_me:$LINENO: checking for $ac_func" >&5
34704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34705 if eval "test \"\${$as_ac_var+set}\" = set"; then
34706   echo $ECHO_N "(cached) $ECHO_C" >&6
34707 else
34708   cat >conftest.$ac_ext <<_ACEOF
34709 /* confdefs.h.  */
34710 _ACEOF
34711 cat confdefs.h >>conftest.$ac_ext
34712 cat >>conftest.$ac_ext <<_ACEOF
34713 /* end confdefs.h.  */
34714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34716 #define $ac_func innocuous_$ac_func
34717
34718 /* System header to define __stub macros and hopefully few prototypes,
34719     which can conflict with char $ac_func (); below.
34720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34721     <limits.h> exists even on freestanding compilers.  */
34722
34723 #ifdef __STDC__
34724 # include <limits.h>
34725 #else
34726 # include <assert.h>
34727 #endif
34728
34729 #undef $ac_func
34730
34731 /* Override any gcc2 internal prototype to avoid an error.  */
34732 #ifdef __cplusplus
34733 extern "C"
34734 {
34735 #endif
34736 /* We use char because int might match the return type of a gcc2
34737    builtin and then its argument prototype would still apply.  */
34738 char $ac_func ();
34739 /* The GNU C library defines this for functions which it implements
34740     to always fail with ENOSYS.  Some functions are actually named
34741     something starting with __ and the normal name is an alias.  */
34742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34743 choke me
34744 #else
34745 char (*f) () = $ac_func;
34746 #endif
34747 #ifdef __cplusplus
34748 }
34749 #endif
34750
34751 int
34752 main ()
34753 {
34754 return f != $ac_func;
34755   ;
34756   return 0;
34757 }
34758 _ACEOF
34759 rm -f conftest.$ac_objext conftest$ac_exeext
34760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34761   (eval $ac_link) 2>conftest.er1
34762   ac_status=$?
34763   grep -v '^ *+' conftest.er1 >conftest.err
34764   rm -f conftest.er1
34765   cat conftest.err >&5
34766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767   (exit $ac_status); } &&
34768          { ac_try='test -z "$ac_cxx_werror_flag"
34769                          || test ! -s conftest.err'
34770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34771   (eval $ac_try) 2>&5
34772   ac_status=$?
34773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34774   (exit $ac_status); }; } &&
34775          { ac_try='test -s conftest$ac_exeext'
34776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34777   (eval $ac_try) 2>&5
34778   ac_status=$?
34779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34780   (exit $ac_status); }; }; then
34781   eval "$as_ac_var=yes"
34782 else
34783   echo "$as_me: failed program was:" >&5
34784 sed 's/^/| /' conftest.$ac_ext >&5
34785
34786 eval "$as_ac_var=no"
34787 fi
34788 rm -f conftest.err conftest.$ac_objext \
34789       conftest$ac_exeext conftest.$ac_ext
34790 fi
34791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34793 if test `eval echo '${'$as_ac_var'}'` = yes; then
34794   cat >>confdefs.h <<_ACEOF
34795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34796 _ACEOF
34797  WCSLEN_FOUND=1
34798 fi
34799 done
34800
34801
34802     if test "$WCSLEN_FOUND" = 0; then
34803         if test "$TOOLKIT" = "MSW"; then
34804             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34805 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34806 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34807   echo $ECHO_N "(cached) $ECHO_C" >&6
34808 else
34809   ac_check_lib_save_LIBS=$LIBS
34810 LIBS="-lmsvcrt  $LIBS"
34811 cat >conftest.$ac_ext <<_ACEOF
34812 /* confdefs.h.  */
34813 _ACEOF
34814 cat confdefs.h >>conftest.$ac_ext
34815 cat >>conftest.$ac_ext <<_ACEOF
34816 /* end confdefs.h.  */
34817
34818 /* Override any gcc2 internal prototype to avoid an error.  */
34819 #ifdef __cplusplus
34820 extern "C"
34821 #endif
34822 /* We use char because int might match the return type of a gcc2
34823    builtin and then its argument prototype would still apply.  */
34824 char wcslen ();
34825 int
34826 main ()
34827 {
34828 wcslen ();
34829   ;
34830   return 0;
34831 }
34832 _ACEOF
34833 rm -f conftest.$ac_objext conftest$ac_exeext
34834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34835   (eval $ac_link) 2>conftest.er1
34836   ac_status=$?
34837   grep -v '^ *+' conftest.er1 >conftest.err
34838   rm -f conftest.er1
34839   cat conftest.err >&5
34840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34841   (exit $ac_status); } &&
34842          { ac_try='test -z "$ac_cxx_werror_flag"
34843                          || test ! -s conftest.err'
34844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34845   (eval $ac_try) 2>&5
34846   ac_status=$?
34847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848   (exit $ac_status); }; } &&
34849          { ac_try='test -s conftest$ac_exeext'
34850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34851   (eval $ac_try) 2>&5
34852   ac_status=$?
34853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854   (exit $ac_status); }; }; then
34855   ac_cv_lib_msvcrt_wcslen=yes
34856 else
34857   echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.$ac_ext >&5
34859
34860 ac_cv_lib_msvcrt_wcslen=no
34861 fi
34862 rm -f conftest.err conftest.$ac_objext \
34863       conftest$ac_exeext conftest.$ac_ext
34864 LIBS=$ac_check_lib_save_LIBS
34865 fi
34866 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34867 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34868 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34869   WCHAR_OK=1
34870 fi
34871
34872         else
34873             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34874 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34875 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34876   echo $ECHO_N "(cached) $ECHO_C" >&6
34877 else
34878   ac_check_lib_save_LIBS=$LIBS
34879 LIBS="-lw  $LIBS"
34880 cat >conftest.$ac_ext <<_ACEOF
34881 /* confdefs.h.  */
34882 _ACEOF
34883 cat confdefs.h >>conftest.$ac_ext
34884 cat >>conftest.$ac_ext <<_ACEOF
34885 /* end confdefs.h.  */
34886
34887 /* Override any gcc2 internal prototype to avoid an error.  */
34888 #ifdef __cplusplus
34889 extern "C"
34890 #endif
34891 /* We use char because int might match the return type of a gcc2
34892    builtin and then its argument prototype would still apply.  */
34893 char wcslen ();
34894 int
34895 main ()
34896 {
34897 wcslen ();
34898   ;
34899   return 0;
34900 }
34901 _ACEOF
34902 rm -f conftest.$ac_objext conftest$ac_exeext
34903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34904   (eval $ac_link) 2>conftest.er1
34905   ac_status=$?
34906   grep -v '^ *+' conftest.er1 >conftest.err
34907   rm -f conftest.er1
34908   cat conftest.err >&5
34909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910   (exit $ac_status); } &&
34911          { ac_try='test -z "$ac_cxx_werror_flag"
34912                          || test ! -s conftest.err'
34913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34914   (eval $ac_try) 2>&5
34915   ac_status=$?
34916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917   (exit $ac_status); }; } &&
34918          { ac_try='test -s conftest$ac_exeext'
34919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34920   (eval $ac_try) 2>&5
34921   ac_status=$?
34922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923   (exit $ac_status); }; }; then
34924   ac_cv_lib_w_wcslen=yes
34925 else
34926   echo "$as_me: failed program was:" >&5
34927 sed 's/^/| /' conftest.$ac_ext >&5
34928
34929 ac_cv_lib_w_wcslen=no
34930 fi
34931 rm -f conftest.err conftest.$ac_objext \
34932       conftest$ac_exeext conftest.$ac_ext
34933 LIBS=$ac_check_lib_save_LIBS
34934 fi
34935 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34936 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34937 if test $ac_cv_lib_w_wcslen = yes; then
34938
34939                             WCHAR_LINK=" -lw"
34940                             WCSLEN_FOUND=1
34941
34942 fi
34943
34944         fi
34945     fi
34946
34947     if test "$WCSLEN_FOUND" = 1; then
34948         cat >>confdefs.h <<\_ACEOF
34949 #define HAVE_WCSLEN 1
34950 _ACEOF
34951
34952     fi
34953
34954                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34955         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34956     fi
34957
34958                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34959 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34960 if test "${ac_cv_type_mbstate_t+set}" = set; then
34961   echo $ECHO_N "(cached) $ECHO_C" >&6
34962 else
34963   cat >conftest.$ac_ext <<_ACEOF
34964 /* confdefs.h.  */
34965 _ACEOF
34966 cat confdefs.h >>conftest.$ac_ext
34967 cat >>conftest.$ac_ext <<_ACEOF
34968 /* end confdefs.h.  */
34969 #include <wchar.h>
34970
34971 int
34972 main ()
34973 {
34974 if ((mbstate_t *) 0)
34975   return 0;
34976 if (sizeof (mbstate_t))
34977   return 0;
34978   ;
34979   return 0;
34980 }
34981 _ACEOF
34982 rm -f conftest.$ac_objext
34983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34984   (eval $ac_compile) 2>conftest.er1
34985   ac_status=$?
34986   grep -v '^ *+' conftest.er1 >conftest.err
34987   rm -f conftest.er1
34988   cat conftest.err >&5
34989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990   (exit $ac_status); } &&
34991          { ac_try='test -z "$ac_cxx_werror_flag"
34992                          || test ! -s conftest.err'
34993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34994   (eval $ac_try) 2>&5
34995   ac_status=$?
34996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997   (exit $ac_status); }; } &&
34998          { ac_try='test -s conftest.$ac_objext'
34999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000   (eval $ac_try) 2>&5
35001   ac_status=$?
35002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003   (exit $ac_status); }; }; then
35004   ac_cv_type_mbstate_t=yes
35005 else
35006   echo "$as_me: failed program was:" >&5
35007 sed 's/^/| /' conftest.$ac_ext >&5
35008
35009 ac_cv_type_mbstate_t=no
35010 fi
35011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35012 fi
35013 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35014 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
35015 if test $ac_cv_type_mbstate_t = yes; then
35016
35017 cat >>confdefs.h <<_ACEOF
35018 #define HAVE_MBSTATE_T 1
35019 _ACEOF
35020
35021
35022 for ac_func in wcsrtombs
35023 do
35024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35025 echo "$as_me:$LINENO: checking for $ac_func" >&5
35026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35027 if eval "test \"\${$as_ac_var+set}\" = set"; then
35028   echo $ECHO_N "(cached) $ECHO_C" >&6
35029 else
35030   cat >conftest.$ac_ext <<_ACEOF
35031 /* confdefs.h.  */
35032 _ACEOF
35033 cat confdefs.h >>conftest.$ac_ext
35034 cat >>conftest.$ac_ext <<_ACEOF
35035 /* end confdefs.h.  */
35036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35038 #define $ac_func innocuous_$ac_func
35039
35040 /* System header to define __stub macros and hopefully few prototypes,
35041     which can conflict with char $ac_func (); below.
35042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35043     <limits.h> exists even on freestanding compilers.  */
35044
35045 #ifdef __STDC__
35046 # include <limits.h>
35047 #else
35048 # include <assert.h>
35049 #endif
35050
35051 #undef $ac_func
35052
35053 /* Override any gcc2 internal prototype to avoid an error.  */
35054 #ifdef __cplusplus
35055 extern "C"
35056 {
35057 #endif
35058 /* We use char because int might match the return type of a gcc2
35059    builtin and then its argument prototype would still apply.  */
35060 char $ac_func ();
35061 /* The GNU C library defines this for functions which it implements
35062     to always fail with ENOSYS.  Some functions are actually named
35063     something starting with __ and the normal name is an alias.  */
35064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35065 choke me
35066 #else
35067 char (*f) () = $ac_func;
35068 #endif
35069 #ifdef __cplusplus
35070 }
35071 #endif
35072
35073 int
35074 main ()
35075 {
35076 return f != $ac_func;
35077   ;
35078   return 0;
35079 }
35080 _ACEOF
35081 rm -f conftest.$ac_objext conftest$ac_exeext
35082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35083   (eval $ac_link) 2>conftest.er1
35084   ac_status=$?
35085   grep -v '^ *+' conftest.er1 >conftest.err
35086   rm -f conftest.er1
35087   cat conftest.err >&5
35088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089   (exit $ac_status); } &&
35090          { ac_try='test -z "$ac_cxx_werror_flag"
35091                          || test ! -s conftest.err'
35092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093   (eval $ac_try) 2>&5
35094   ac_status=$?
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); }; } &&
35097          { ac_try='test -s conftest$ac_exeext'
35098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35099   (eval $ac_try) 2>&5
35100   ac_status=$?
35101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102   (exit $ac_status); }; }; then
35103   eval "$as_ac_var=yes"
35104 else
35105   echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35107
35108 eval "$as_ac_var=no"
35109 fi
35110 rm -f conftest.err conftest.$ac_objext \
35111       conftest$ac_exeext conftest.$ac_ext
35112 fi
35113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35115 if test `eval echo '${'$as_ac_var'}'` = yes; then
35116   cat >>confdefs.h <<_ACEOF
35117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35118 _ACEOF
35119
35120 fi
35121 done
35122
35123 fi
35124
35125 else
35126     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35127 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35128 fi
35129
35130
35131
35132 for ac_func in snprintf vsnprintf
35133 do
35134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35135 echo "$as_me:$LINENO: checking for $ac_func" >&5
35136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35137 if eval "test \"\${$as_ac_var+set}\" = set"; then
35138   echo $ECHO_N "(cached) $ECHO_C" >&6
35139 else
35140   cat >conftest.$ac_ext <<_ACEOF
35141 /* confdefs.h.  */
35142 _ACEOF
35143 cat confdefs.h >>conftest.$ac_ext
35144 cat >>conftest.$ac_ext <<_ACEOF
35145 /* end confdefs.h.  */
35146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35148 #define $ac_func innocuous_$ac_func
35149
35150 /* System header to define __stub macros and hopefully few prototypes,
35151     which can conflict with char $ac_func (); below.
35152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35153     <limits.h> exists even on freestanding compilers.  */
35154
35155 #ifdef __STDC__
35156 # include <limits.h>
35157 #else
35158 # include <assert.h>
35159 #endif
35160
35161 #undef $ac_func
35162
35163 /* Override any gcc2 internal prototype to avoid an error.  */
35164 #ifdef __cplusplus
35165 extern "C"
35166 {
35167 #endif
35168 /* We use char because int might match the return type of a gcc2
35169    builtin and then its argument prototype would still apply.  */
35170 char $ac_func ();
35171 /* The GNU C library defines this for functions which it implements
35172     to always fail with ENOSYS.  Some functions are actually named
35173     something starting with __ and the normal name is an alias.  */
35174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35175 choke me
35176 #else
35177 char (*f) () = $ac_func;
35178 #endif
35179 #ifdef __cplusplus
35180 }
35181 #endif
35182
35183 int
35184 main ()
35185 {
35186 return f != $ac_func;
35187   ;
35188   return 0;
35189 }
35190 _ACEOF
35191 rm -f conftest.$ac_objext conftest$ac_exeext
35192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35193   (eval $ac_link) 2>conftest.er1
35194   ac_status=$?
35195   grep -v '^ *+' conftest.er1 >conftest.err
35196   rm -f conftest.er1
35197   cat conftest.err >&5
35198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199   (exit $ac_status); } &&
35200          { ac_try='test -z "$ac_cxx_werror_flag"
35201                          || test ! -s conftest.err'
35202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35203   (eval $ac_try) 2>&5
35204   ac_status=$?
35205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206   (exit $ac_status); }; } &&
35207          { ac_try='test -s conftest$ac_exeext'
35208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209   (eval $ac_try) 2>&5
35210   ac_status=$?
35211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212   (exit $ac_status); }; }; then
35213   eval "$as_ac_var=yes"
35214 else
35215   echo "$as_me: failed program was:" >&5
35216 sed 's/^/| /' conftest.$ac_ext >&5
35217
35218 eval "$as_ac_var=no"
35219 fi
35220 rm -f conftest.err conftest.$ac_objext \
35221       conftest$ac_exeext conftest.$ac_ext
35222 fi
35223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35225 if test `eval echo '${'$as_ac_var'}'` = yes; then
35226   cat >>confdefs.h <<_ACEOF
35227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35228 _ACEOF
35229
35230 fi
35231 done
35232
35233
35234 if test "$ac_cv_func_vsnprintf" = "yes"; then
35235         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35236 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35237 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35238   echo $ECHO_N "(cached) $ECHO_C" >&6
35239 else
35240
35241                                                             cat >conftest.$ac_ext <<_ACEOF
35242 /* confdefs.h.  */
35243 _ACEOF
35244 cat confdefs.h >>conftest.$ac_ext
35245 cat >>conftest.$ac_ext <<_ACEOF
35246 /* end confdefs.h.  */
35247
35248                     #include <stdio.h>
35249                     #include <stdarg.h>
35250                     #ifdef __MSL__
35251                     #if __MSL__ >= 0x6000
35252                     namespace std {}
35253                     using namespace std;
35254                     #endif
35255                     #endif
35256
35257 int
35258 main ()
35259 {
35260
35261                     char *buf;
35262                     va_list ap;
35263                     vsnprintf(buf, 10u, "%s", ap);
35264
35265   ;
35266   return 0;
35267 }
35268 _ACEOF
35269 rm -f conftest.$ac_objext
35270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35271   (eval $ac_compile) 2>conftest.er1
35272   ac_status=$?
35273   grep -v '^ *+' conftest.er1 >conftest.err
35274   rm -f conftest.er1
35275   cat conftest.err >&5
35276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277   (exit $ac_status); } &&
35278          { ac_try='test -z "$ac_cxx_werror_flag"
35279                          || test ! -s conftest.err'
35280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35281   (eval $ac_try) 2>&5
35282   ac_status=$?
35283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284   (exit $ac_status); }; } &&
35285          { ac_try='test -s conftest.$ac_objext'
35286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35287   (eval $ac_try) 2>&5
35288   ac_status=$?
35289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290   (exit $ac_status); }; }; then
35291   wx_cv_func_vsnprintf_decl=yes
35292 else
35293   echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35295
35296 wx_cv_func_vsnprintf_decl=no
35297
35298 fi
35299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35300
35301
35302 fi
35303 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35304 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35305
35306     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35307         cat >>confdefs.h <<\_ACEOF
35308 #define HAVE_VSNPRINTF_DECL 1
35309 _ACEOF
35310
35311
35312                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35313 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35314 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35315   echo $ECHO_N "(cached) $ECHO_C" >&6
35316 else
35317
35318                 cat >conftest.$ac_ext <<_ACEOF
35319 /* confdefs.h.  */
35320 _ACEOF
35321 cat confdefs.h >>conftest.$ac_ext
35322 cat >>conftest.$ac_ext <<_ACEOF
35323 /* end confdefs.h.  */
35324
35325                         #include <stdio.h>
35326                         #include <stdarg.h>
35327                         #ifdef __MSL__
35328                         #if __MSL__ >= 0x6000
35329                         namespace std {}
35330                         using namespace std;
35331                         #endif
35332                         #endif
35333
35334 int
35335 main ()
35336 {
35337
35338                         char *buf;
35339                         va_list ap;
35340                         const char *fmt = "%s";
35341                         vsnprintf(buf, 10u, fmt, ap);
35342
35343   ;
35344   return 0;
35345 }
35346 _ACEOF
35347 rm -f conftest.$ac_objext
35348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35349   (eval $ac_compile) 2>conftest.er1
35350   ac_status=$?
35351   grep -v '^ *+' conftest.er1 >conftest.err
35352   rm -f conftest.er1
35353   cat conftest.err >&5
35354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355   (exit $ac_status); } &&
35356          { ac_try='test -z "$ac_cxx_werror_flag"
35357                          || test ! -s conftest.err'
35358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35359   (eval $ac_try) 2>&5
35360   ac_status=$?
35361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362   (exit $ac_status); }; } &&
35363          { ac_try='test -s conftest.$ac_objext'
35364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35365   (eval $ac_try) 2>&5
35366   ac_status=$?
35367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368   (exit $ac_status); }; }; then
35369   wx_cv_func_broken_vsnprintf_decl=no
35370 else
35371   echo "$as_me: failed program was:" >&5
35372 sed 's/^/| /' conftest.$ac_ext >&5
35373
35374 wx_cv_func_broken_vsnprintf_decl=yes
35375
35376 fi
35377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35378
35379
35380 fi
35381 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35382 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35383
35384         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35385             cat >>confdefs.h <<\_ACEOF
35386 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35387 _ACEOF
35388
35389         fi
35390     fi
35391 fi
35392
35393 if test "$ac_cv_func_snprintf" = "yes"; then
35394     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35395 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35396 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35397   echo $ECHO_N "(cached) $ECHO_C" >&6
35398 else
35399
35400             cat >conftest.$ac_ext <<_ACEOF
35401 /* confdefs.h.  */
35402 _ACEOF
35403 cat confdefs.h >>conftest.$ac_ext
35404 cat >>conftest.$ac_ext <<_ACEOF
35405 /* end confdefs.h.  */
35406
35407                     #include <stdio.h>
35408                     #include <stdarg.h>
35409                     #ifdef __MSL__
35410                     #if __MSL__ >= 0x6000
35411                     namespace std {}
35412                     using namespace std;
35413                     #endif
35414                     #endif
35415
35416 int
35417 main ()
35418 {
35419
35420                     char *buf;
35421                     snprintf(buf, 10u, "%s", "wx");
35422
35423   ;
35424   return 0;
35425 }
35426 _ACEOF
35427 rm -f conftest.$ac_objext
35428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35429   (eval $ac_compile) 2>conftest.er1
35430   ac_status=$?
35431   grep -v '^ *+' conftest.er1 >conftest.err
35432   rm -f conftest.er1
35433   cat conftest.err >&5
35434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435   (exit $ac_status); } &&
35436          { ac_try='test -z "$ac_cxx_werror_flag"
35437                          || test ! -s conftest.err'
35438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35439   (eval $ac_try) 2>&5
35440   ac_status=$?
35441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442   (exit $ac_status); }; } &&
35443          { ac_try='test -s conftest.$ac_objext'
35444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35445   (eval $ac_try) 2>&5
35446   ac_status=$?
35447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448   (exit $ac_status); }; }; then
35449   wx_cv_func_snprintf_decl=yes
35450 else
35451   echo "$as_me: failed program was:" >&5
35452 sed 's/^/| /' conftest.$ac_ext >&5
35453
35454 wx_cv_func_snprintf_decl=no
35455
35456 fi
35457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35458
35459
35460 fi
35461 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35462 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35463
35464     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35465         cat >>confdefs.h <<\_ACEOF
35466 #define HAVE_SNPRINTF_DECL 1
35467 _ACEOF
35468
35469
35470                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35471 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35472 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35473   echo $ECHO_N "(cached) $ECHO_C" >&6
35474 else
35475
35476                 cat >conftest.$ac_ext <<_ACEOF
35477 /* confdefs.h.  */
35478 _ACEOF
35479 cat confdefs.h >>conftest.$ac_ext
35480 cat >>conftest.$ac_ext <<_ACEOF
35481 /* end confdefs.h.  */
35482
35483                         #include <stdio.h>
35484                         #include <stdarg.h>
35485                         #ifdef __MSL__
35486                         #if __MSL__ >= 0x6000
35487                         namespace std {}
35488                         using namespace std;
35489                         #endif
35490                         #endif
35491
35492 int
35493 main ()
35494 {
35495
35496                         char *buf;
35497                         const char *fmt = "%s";
35498                         snprintf(buf, 10u, fmt, "wx");
35499
35500   ;
35501   return 0;
35502 }
35503 _ACEOF
35504 rm -f conftest.$ac_objext
35505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35506   (eval $ac_compile) 2>conftest.er1
35507   ac_status=$?
35508   grep -v '^ *+' conftest.er1 >conftest.err
35509   rm -f conftest.er1
35510   cat conftest.err >&5
35511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512   (exit $ac_status); } &&
35513          { ac_try='test -z "$ac_cxx_werror_flag"
35514                          || test ! -s conftest.err'
35515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35516   (eval $ac_try) 2>&5
35517   ac_status=$?
35518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35519   (exit $ac_status); }; } &&
35520          { ac_try='test -s conftest.$ac_objext'
35521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35522   (eval $ac_try) 2>&5
35523   ac_status=$?
35524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525   (exit $ac_status); }; }; then
35526   wx_cv_func_broken_snprintf_decl=no
35527 else
35528   echo "$as_me: failed program was:" >&5
35529 sed 's/^/| /' conftest.$ac_ext >&5
35530
35531 wx_cv_func_broken_snprintf_decl=yes
35532
35533 fi
35534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35535
35536
35537 fi
35538 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35539 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35540
35541         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35542             cat >>confdefs.h <<\_ACEOF
35543 #define HAVE_BROKEN_SNPRINTF_DECL 1
35544 _ACEOF
35545
35546         fi
35547     fi
35548
35549     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35550
35551                                         echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35552 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35553 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35554   echo $ECHO_N "(cached) $ECHO_C" >&6
35555 else
35556
35557                 if test "$cross_compiling" = yes; then
35558
35559                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35560 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35561 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35562 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35563                         wx_cv_func_snprintf_pos_params=no
35564
35565
35566 else
35567   cat >conftest.$ac_ext <<_ACEOF
35568 /* confdefs.h.  */
35569 _ACEOF
35570 cat confdefs.h >>conftest.$ac_ext
35571 cat >>conftest.$ac_ext <<_ACEOF
35572 /* end confdefs.h.  */
35573
35574                         #include <stdio.h>
35575
35576                         int main (void)
35577                         {
35578                             char buffer[128];
35579                             snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35580                             if (strcmp ("2 3 1", buffer) == 0)
35581                                 exit (0);
35582                             exit (1);
35583                         }
35584
35585 _ACEOF
35586 rm -f conftest$ac_exeext
35587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35588   (eval $ac_link) 2>&5
35589   ac_status=$?
35590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35593   (eval $ac_try) 2>&5
35594   ac_status=$?
35595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596   (exit $ac_status); }; }; then
35597   wx_cv_func_snprintf_pos_params=no
35598 else
35599   echo "$as_me: program exited with status $ac_status" >&5
35600 echo "$as_me: failed program was:" >&5
35601 sed 's/^/| /' conftest.$ac_ext >&5
35602
35603 ( exit $ac_status )
35604 wx_cv_func_snprintf_pos_params=yes
35605 fi
35606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35607 fi
35608
35609
35610 fi
35611 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35612 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35613
35614         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35615             cat >>confdefs.h <<\_ACEOF
35616 #define HAVE_UNIX98_PRINTF 1
35617 _ACEOF
35618
35619         fi
35620     fi
35621 fi
35622
35623 if test "$wxUSE_UNICODE" = yes; then
35624
35625
35626 for ac_func in swprintf
35627 do
35628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35629 echo "$as_me:$LINENO: checking for $ac_func" >&5
35630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35631 if eval "test \"\${$as_ac_var+set}\" = set"; then
35632   echo $ECHO_N "(cached) $ECHO_C" >&6
35633 else
35634   cat >conftest.$ac_ext <<_ACEOF
35635 /* confdefs.h.  */
35636 _ACEOF
35637 cat confdefs.h >>conftest.$ac_ext
35638 cat >>conftest.$ac_ext <<_ACEOF
35639 /* end confdefs.h.  */
35640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35642 #define $ac_func innocuous_$ac_func
35643
35644 /* System header to define __stub macros and hopefully few prototypes,
35645     which can conflict with char $ac_func (); below.
35646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35647     <limits.h> exists even on freestanding compilers.  */
35648
35649 #ifdef __STDC__
35650 # include <limits.h>
35651 #else
35652 # include <assert.h>
35653 #endif
35654
35655 #undef $ac_func
35656
35657 /* Override any gcc2 internal prototype to avoid an error.  */
35658 #ifdef __cplusplus
35659 extern "C"
35660 {
35661 #endif
35662 /* We use char because int might match the return type of a gcc2
35663    builtin and then its argument prototype would still apply.  */
35664 char $ac_func ();
35665 /* The GNU C library defines this for functions which it implements
35666     to always fail with ENOSYS.  Some functions are actually named
35667     something starting with __ and the normal name is an alias.  */
35668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35669 choke me
35670 #else
35671 char (*f) () = $ac_func;
35672 #endif
35673 #ifdef __cplusplus
35674 }
35675 #endif
35676
35677 int
35678 main ()
35679 {
35680 return f != $ac_func;
35681   ;
35682   return 0;
35683 }
35684 _ACEOF
35685 rm -f conftest.$ac_objext conftest$ac_exeext
35686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35687   (eval $ac_link) 2>conftest.er1
35688   ac_status=$?
35689   grep -v '^ *+' conftest.er1 >conftest.err
35690   rm -f conftest.er1
35691   cat conftest.err >&5
35692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693   (exit $ac_status); } &&
35694          { ac_try='test -z "$ac_cxx_werror_flag"
35695                          || test ! -s conftest.err'
35696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35697   (eval $ac_try) 2>&5
35698   ac_status=$?
35699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700   (exit $ac_status); }; } &&
35701          { ac_try='test -s conftest$ac_exeext'
35702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35703   (eval $ac_try) 2>&5
35704   ac_status=$?
35705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706   (exit $ac_status); }; }; then
35707   eval "$as_ac_var=yes"
35708 else
35709   echo "$as_me: failed program was:" >&5
35710 sed 's/^/| /' conftest.$ac_ext >&5
35711
35712 eval "$as_ac_var=no"
35713 fi
35714 rm -f conftest.err conftest.$ac_objext \
35715       conftest$ac_exeext conftest.$ac_ext
35716 fi
35717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35719 if test `eval echo '${'$as_ac_var'}'` = yes; then
35720   cat >>confdefs.h <<_ACEOF
35721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35722 _ACEOF
35723
35724 fi
35725 done
35726
35727
35728     if test "$ac_cv_func_swprintf" = "yes"; then
35729         echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35730 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35731 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35732   echo $ECHO_N "(cached) $ECHO_C" >&6
35733 else
35734
35735                 cat >conftest.$ac_ext <<_ACEOF
35736 /* confdefs.h.  */
35737 _ACEOF
35738 cat confdefs.h >>conftest.$ac_ext
35739 cat >>conftest.$ac_ext <<_ACEOF
35740 /* end confdefs.h.  */
35741
35742                         #include <stdio.h>
35743                         #include <stdarg.h>
35744                         #include <wchar.h>
35745
35746 int
35747 main ()
35748 {
35749
35750                         wchar_t *buf;
35751                         const wchar_t *fmt = L"test";
35752                         swprintf(buf, 10u, fmt);
35753
35754   ;
35755   return 0;
35756 }
35757 _ACEOF
35758 rm -f conftest.$ac_objext
35759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35760   (eval $ac_compile) 2>conftest.er1
35761   ac_status=$?
35762   grep -v '^ *+' conftest.er1 >conftest.err
35763   rm -f conftest.er1
35764   cat conftest.err >&5
35765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766   (exit $ac_status); } &&
35767          { ac_try='test -z "$ac_cxx_werror_flag"
35768                          || test ! -s conftest.err'
35769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35770   (eval $ac_try) 2>&5
35771   ac_status=$?
35772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773   (exit $ac_status); }; } &&
35774          { ac_try='test -s conftest.$ac_objext'
35775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35776   (eval $ac_try) 2>&5
35777   ac_status=$?
35778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779   (exit $ac_status); }; }; then
35780   wx_cv_func_broken_swprintf_decl=no
35781 else
35782   echo "$as_me: failed program was:" >&5
35783 sed 's/^/| /' conftest.$ac_ext >&5
35784
35785 wx_cv_func_broken_swprintf_decl=yes
35786
35787 fi
35788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35789
35790
35791 fi
35792 echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35793 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35794
35795         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35796             cat >>confdefs.h <<\_ACEOF
35797 #define HAVE_BROKEN_SWPRINTF_DECL 1
35798 _ACEOF
35799
35800         fi
35801     fi
35802
35803
35804
35805
35806
35807
35808
35809 for ac_func in wputc wputchar putws fputws wprintf vswprintf
35810 do
35811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35812 echo "$as_me:$LINENO: checking for $ac_func" >&5
35813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35814 if eval "test \"\${$as_ac_var+set}\" = set"; then
35815   echo $ECHO_N "(cached) $ECHO_C" >&6
35816 else
35817   cat >conftest.$ac_ext <<_ACEOF
35818 /* confdefs.h.  */
35819 _ACEOF
35820 cat confdefs.h >>conftest.$ac_ext
35821 cat >>conftest.$ac_ext <<_ACEOF
35822 /* end confdefs.h.  */
35823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35825 #define $ac_func innocuous_$ac_func
35826
35827 /* System header to define __stub macros and hopefully few prototypes,
35828     which can conflict with char $ac_func (); below.
35829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35830     <limits.h> exists even on freestanding compilers.  */
35831
35832 #ifdef __STDC__
35833 # include <limits.h>
35834 #else
35835 # include <assert.h>
35836 #endif
35837
35838 #undef $ac_func
35839
35840 /* Override any gcc2 internal prototype to avoid an error.  */
35841 #ifdef __cplusplus
35842 extern "C"
35843 {
35844 #endif
35845 /* We use char because int might match the return type of a gcc2
35846    builtin and then its argument prototype would still apply.  */
35847 char $ac_func ();
35848 /* The GNU C library defines this for functions which it implements
35849     to always fail with ENOSYS.  Some functions are actually named
35850     something starting with __ and the normal name is an alias.  */
35851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35852 choke me
35853 #else
35854 char (*f) () = $ac_func;
35855 #endif
35856 #ifdef __cplusplus
35857 }
35858 #endif
35859
35860 int
35861 main ()
35862 {
35863 return f != $ac_func;
35864   ;
35865   return 0;
35866 }
35867 _ACEOF
35868 rm -f conftest.$ac_objext conftest$ac_exeext
35869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35870   (eval $ac_link) 2>conftest.er1
35871   ac_status=$?
35872   grep -v '^ *+' conftest.er1 >conftest.err
35873   rm -f conftest.er1
35874   cat conftest.err >&5
35875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876   (exit $ac_status); } &&
35877          { ac_try='test -z "$ac_cxx_werror_flag"
35878                          || test ! -s conftest.err'
35879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35880   (eval $ac_try) 2>&5
35881   ac_status=$?
35882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35883   (exit $ac_status); }; } &&
35884          { ac_try='test -s conftest$ac_exeext'
35885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35886   (eval $ac_try) 2>&5
35887   ac_status=$?
35888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889   (exit $ac_status); }; }; then
35890   eval "$as_ac_var=yes"
35891 else
35892   echo "$as_me: failed program was:" >&5
35893 sed 's/^/| /' conftest.$ac_ext >&5
35894
35895 eval "$as_ac_var=no"
35896 fi
35897 rm -f conftest.err conftest.$ac_objext \
35898       conftest$ac_exeext conftest.$ac_ext
35899 fi
35900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35902 if test `eval echo '${'$as_ac_var'}'` = yes; then
35903   cat >>confdefs.h <<_ACEOF
35904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35905 _ACEOF
35906
35907 fi
35908 done
35909
35910
35911                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35912 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35913     cat >conftest.$ac_ext <<_ACEOF
35914 /* confdefs.h.  */
35915 _ACEOF
35916 cat confdefs.h >>conftest.$ac_ext
35917 cat >>conftest.$ac_ext <<_ACEOF
35918 /* end confdefs.h.  */
35919 #include <wchar.h>
35920 int
35921 main ()
35922 {
35923 &_vsnwprintf;
35924   ;
35925   return 0;
35926 }
35927 _ACEOF
35928 rm -f conftest.$ac_objext
35929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35930   (eval $ac_compile) 2>conftest.er1
35931   ac_status=$?
35932   grep -v '^ *+' conftest.er1 >conftest.err
35933   rm -f conftest.er1
35934   cat conftest.err >&5
35935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936   (exit $ac_status); } &&
35937          { ac_try='test -z "$ac_cxx_werror_flag"
35938                          || test ! -s conftest.err'
35939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35940   (eval $ac_try) 2>&5
35941   ac_status=$?
35942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943   (exit $ac_status); }; } &&
35944          { ac_try='test -s conftest.$ac_objext'
35945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35946   (eval $ac_try) 2>&5
35947   ac_status=$?
35948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949   (exit $ac_status); }; }; then
35950   echo "$as_me:$LINENO: result: yes" >&5
35951 echo "${ECHO_T}yes" >&6
35952                     cat >>confdefs.h <<\_ACEOF
35953 #define HAVE__VSNWPRINTF 1
35954 _ACEOF
35955
35956 else
35957   echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35959
35960 echo "$as_me:$LINENO: result: no" >&5
35961 echo "${ECHO_T}no" >&6
35962 fi
35963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
35964 fi
35965
35966 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35967
35968 for ac_func in fnmatch
35969 do
35970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35971 echo "$as_me:$LINENO: checking for $ac_func" >&5
35972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35973 if eval "test \"\${$as_ac_var+set}\" = set"; then
35974   echo $ECHO_N "(cached) $ECHO_C" >&6
35975 else
35976   cat >conftest.$ac_ext <<_ACEOF
35977 /* confdefs.h.  */
35978 _ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h.  */
35982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35984 #define $ac_func innocuous_$ac_func
35985
35986 /* System header to define __stub macros and hopefully few prototypes,
35987     which can conflict with char $ac_func (); below.
35988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35989     <limits.h> exists even on freestanding compilers.  */
35990
35991 #ifdef __STDC__
35992 # include <limits.h>
35993 #else
35994 # include <assert.h>
35995 #endif
35996
35997 #undef $ac_func
35998
35999 /* Override any gcc2 internal prototype to avoid an error.  */
36000 #ifdef __cplusplus
36001 extern "C"
36002 {
36003 #endif
36004 /* We use char because int might match the return type of a gcc2
36005    builtin and then its argument prototype would still apply.  */
36006 char $ac_func ();
36007 /* The GNU C library defines this for functions which it implements
36008     to always fail with ENOSYS.  Some functions are actually named
36009     something starting with __ and the normal name is an alias.  */
36010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36011 choke me
36012 #else
36013 char (*f) () = $ac_func;
36014 #endif
36015 #ifdef __cplusplus
36016 }
36017 #endif
36018
36019 int
36020 main ()
36021 {
36022 return f != $ac_func;
36023   ;
36024   return 0;
36025 }
36026 _ACEOF
36027 rm -f conftest.$ac_objext conftest$ac_exeext
36028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36029   (eval $ac_link) 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_cxx_werror_flag"
36037                          || test ! -s conftest.err'
36038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36039   (eval $ac_try) 2>&5
36040   ac_status=$?
36041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042   (exit $ac_status); }; } &&
36043          { ac_try='test -s conftest$ac_exeext'
36044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36045   (eval $ac_try) 2>&5
36046   ac_status=$?
36047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048   (exit $ac_status); }; }; then
36049   eval "$as_ac_var=yes"
36050 else
36051   echo "$as_me: failed program was:" >&5
36052 sed 's/^/| /' conftest.$ac_ext >&5
36053
36054 eval "$as_ac_var=no"
36055 fi
36056 rm -f conftest.err conftest.$ac_objext \
36057       conftest$ac_exeext conftest.$ac_ext
36058 fi
36059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36061 if test `eval echo '${'$as_ac_var'}'` = yes; then
36062   cat >>confdefs.h <<_ACEOF
36063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36064 _ACEOF
36065
36066 fi
36067 done
36068
36069 fi
36070
36071 if test "$wxUSE_FILE" = "yes"; then
36072
36073 for ac_func in fsync
36074 do
36075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36076 echo "$as_me:$LINENO: checking for $ac_func" >&5
36077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36078 if eval "test \"\${$as_ac_var+set}\" = set"; then
36079   echo $ECHO_N "(cached) $ECHO_C" >&6
36080 else
36081   cat >conftest.$ac_ext <<_ACEOF
36082 /* confdefs.h.  */
36083 _ACEOF
36084 cat confdefs.h >>conftest.$ac_ext
36085 cat >>conftest.$ac_ext <<_ACEOF
36086 /* end confdefs.h.  */
36087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36089 #define $ac_func innocuous_$ac_func
36090
36091 /* System header to define __stub macros and hopefully few prototypes,
36092     which can conflict with char $ac_func (); below.
36093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36094     <limits.h> exists even on freestanding compilers.  */
36095
36096 #ifdef __STDC__
36097 # include <limits.h>
36098 #else
36099 # include <assert.h>
36100 #endif
36101
36102 #undef $ac_func
36103
36104 /* Override any gcc2 internal prototype to avoid an error.  */
36105 #ifdef __cplusplus
36106 extern "C"
36107 {
36108 #endif
36109 /* We use char because int might match the return type of a gcc2
36110    builtin and then its argument prototype would still apply.  */
36111 char $ac_func ();
36112 /* The GNU C library defines this for functions which it implements
36113     to always fail with ENOSYS.  Some functions are actually named
36114     something starting with __ and the normal name is an alias.  */
36115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36116 choke me
36117 #else
36118 char (*f) () = $ac_func;
36119 #endif
36120 #ifdef __cplusplus
36121 }
36122 #endif
36123
36124 int
36125 main ()
36126 {
36127 return f != $ac_func;
36128   ;
36129   return 0;
36130 }
36131 _ACEOF
36132 rm -f conftest.$ac_objext conftest$ac_exeext
36133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36134   (eval $ac_link) 2>conftest.er1
36135   ac_status=$?
36136   grep -v '^ *+' conftest.er1 >conftest.err
36137   rm -f conftest.er1
36138   cat conftest.err >&5
36139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140   (exit $ac_status); } &&
36141          { ac_try='test -z "$ac_cxx_werror_flag"
36142                          || test ! -s conftest.err'
36143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36144   (eval $ac_try) 2>&5
36145   ac_status=$?
36146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147   (exit $ac_status); }; } &&
36148          { ac_try='test -s conftest$ac_exeext'
36149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150   (eval $ac_try) 2>&5
36151   ac_status=$?
36152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153   (exit $ac_status); }; }; then
36154   eval "$as_ac_var=yes"
36155 else
36156   echo "$as_me: failed program was:" >&5
36157 sed 's/^/| /' conftest.$ac_ext >&5
36158
36159 eval "$as_ac_var=no"
36160 fi
36161 rm -f conftest.err conftest.$ac_objext \
36162       conftest$ac_exeext conftest.$ac_ext
36163 fi
36164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36166 if test `eval echo '${'$as_ac_var'}'` = yes; then
36167   cat >>confdefs.h <<_ACEOF
36168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36169 _ACEOF
36170
36171 fi
36172 done
36173
36174 fi
36175
36176
36177 for ac_func in round
36178 do
36179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36180 echo "$as_me:$LINENO: checking for $ac_func" >&5
36181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36182 if eval "test \"\${$as_ac_var+set}\" = set"; then
36183   echo $ECHO_N "(cached) $ECHO_C" >&6
36184 else
36185   cat >conftest.$ac_ext <<_ACEOF
36186 /* confdefs.h.  */
36187 _ACEOF
36188 cat confdefs.h >>conftest.$ac_ext
36189 cat >>conftest.$ac_ext <<_ACEOF
36190 /* end confdefs.h.  */
36191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36193 #define $ac_func innocuous_$ac_func
36194
36195 /* System header to define __stub macros and hopefully few prototypes,
36196     which can conflict with char $ac_func (); below.
36197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36198     <limits.h> exists even on freestanding compilers.  */
36199
36200 #ifdef __STDC__
36201 # include <limits.h>
36202 #else
36203 # include <assert.h>
36204 #endif
36205
36206 #undef $ac_func
36207
36208 /* Override any gcc2 internal prototype to avoid an error.  */
36209 #ifdef __cplusplus
36210 extern "C"
36211 {
36212 #endif
36213 /* We use char because int might match the return type of a gcc2
36214    builtin and then its argument prototype would still apply.  */
36215 char $ac_func ();
36216 /* The GNU C library defines this for functions which it implements
36217     to always fail with ENOSYS.  Some functions are actually named
36218     something starting with __ and the normal name is an alias.  */
36219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36220 choke me
36221 #else
36222 char (*f) () = $ac_func;
36223 #endif
36224 #ifdef __cplusplus
36225 }
36226 #endif
36227
36228 int
36229 main ()
36230 {
36231 return f != $ac_func;
36232   ;
36233   return 0;
36234 }
36235 _ACEOF
36236 rm -f conftest.$ac_objext conftest$ac_exeext
36237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36238   (eval $ac_link) 2>conftest.er1
36239   ac_status=$?
36240   grep -v '^ *+' conftest.er1 >conftest.err
36241   rm -f conftest.er1
36242   cat conftest.err >&5
36243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244   (exit $ac_status); } &&
36245          { ac_try='test -z "$ac_cxx_werror_flag"
36246                          || test ! -s conftest.err'
36247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248   (eval $ac_try) 2>&5
36249   ac_status=$?
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); }; } &&
36252          { ac_try='test -s conftest$ac_exeext'
36253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36254   (eval $ac_try) 2>&5
36255   ac_status=$?
36256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257   (exit $ac_status); }; }; then
36258   eval "$as_ac_var=yes"
36259 else
36260   echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36262
36263 eval "$as_ac_var=no"
36264 fi
36265 rm -f conftest.err conftest.$ac_objext \
36266       conftest$ac_exeext conftest.$ac_ext
36267 fi
36268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36270 if test `eval echo '${'$as_ac_var'}'` = yes; then
36271   cat >>confdefs.h <<_ACEOF
36272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36273 _ACEOF
36274
36275 fi
36276 done
36277
36278 if test "$ac_cv_func_round" = yes; then
36279     echo "$as_me:$LINENO: checking whether round is declared" >&5
36280 echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
36281 if test "${ac_cv_have_decl_round+set}" = set; then
36282   echo $ECHO_N "(cached) $ECHO_C" >&6
36283 else
36284   cat >conftest.$ac_ext <<_ACEOF
36285 /* confdefs.h.  */
36286 _ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h.  */
36290 #include <math.h>
36291
36292 int
36293 main ()
36294 {
36295 #ifndef round
36296   char *p = (char *) round;
36297 #endif
36298
36299   ;
36300   return 0;
36301 }
36302 _ACEOF
36303 rm -f conftest.$ac_objext
36304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36305   (eval $ac_compile) 2>conftest.er1
36306   ac_status=$?
36307   grep -v '^ *+' conftest.er1 >conftest.err
36308   rm -f conftest.er1
36309   cat conftest.err >&5
36310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36311   (exit $ac_status); } &&
36312          { ac_try='test -z "$ac_cxx_werror_flag"
36313                          || test ! -s conftest.err'
36314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315   (eval $ac_try) 2>&5
36316   ac_status=$?
36317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318   (exit $ac_status); }; } &&
36319          { ac_try='test -s conftest.$ac_objext'
36320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36321   (eval $ac_try) 2>&5
36322   ac_status=$?
36323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36324   (exit $ac_status); }; }; then
36325   ac_cv_have_decl_round=yes
36326 else
36327   echo "$as_me: failed program was:" >&5
36328 sed 's/^/| /' conftest.$ac_ext >&5
36329
36330 ac_cv_have_decl_round=no
36331 fi
36332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36333 fi
36334 echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
36335 echo "${ECHO_T}$ac_cv_have_decl_round" >&6
36336 if test $ac_cv_have_decl_round = yes; then
36337
36338 cat >>confdefs.h <<_ACEOF
36339 #define HAVE_DECL_ROUND 1
36340 _ACEOF
36341
36342
36343 else
36344   cat >>confdefs.h <<_ACEOF
36345 #define HAVE_DECL_ROUND 0
36346 _ACEOF
36347
36348
36349 fi
36350
36351
36352 fi
36353
36354
36355 if test "$TOOLKIT" != "MSW"; then
36356
36357
36358
36359
36360
36361 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36362 if test "${with_libiconv_prefix+set}" = set; then
36363   withval="$with_libiconv_prefix"
36364
36365     for dir in `echo "$withval" | tr : ' '`; do
36366       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36367       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36368     done
36369
36370 fi;
36371
36372   echo "$as_me:$LINENO: checking for iconv" >&5
36373 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36374 if test "${am_cv_func_iconv+set}" = set; then
36375   echo $ECHO_N "(cached) $ECHO_C" >&6
36376 else
36377
36378     am_cv_func_iconv="no, consider installing GNU libiconv"
36379     am_cv_lib_iconv=no
36380     cat >conftest.$ac_ext <<_ACEOF
36381 /* confdefs.h.  */
36382 _ACEOF
36383 cat confdefs.h >>conftest.$ac_ext
36384 cat >>conftest.$ac_ext <<_ACEOF
36385 /* end confdefs.h.  */
36386 #include <stdlib.h>
36387 #include <iconv.h>
36388 int
36389 main ()
36390 {
36391 iconv_t cd = iconv_open("","");
36392        iconv(cd,NULL,NULL,NULL,NULL);
36393        iconv_close(cd);
36394   ;
36395   return 0;
36396 }
36397 _ACEOF
36398 rm -f conftest.$ac_objext conftest$ac_exeext
36399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36400   (eval $ac_link) 2>conftest.er1
36401   ac_status=$?
36402   grep -v '^ *+' conftest.er1 >conftest.err
36403   rm -f conftest.er1
36404   cat conftest.err >&5
36405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406   (exit $ac_status); } &&
36407          { ac_try='test -z "$ac_cxx_werror_flag"
36408                          || test ! -s conftest.err'
36409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36410   (eval $ac_try) 2>&5
36411   ac_status=$?
36412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413   (exit $ac_status); }; } &&
36414          { ac_try='test -s conftest$ac_exeext'
36415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36416   (eval $ac_try) 2>&5
36417   ac_status=$?
36418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419   (exit $ac_status); }; }; then
36420   am_cv_func_iconv=yes
36421 else
36422   echo "$as_me: failed program was:" >&5
36423 sed 's/^/| /' conftest.$ac_ext >&5
36424
36425 fi
36426 rm -f conftest.err conftest.$ac_objext \
36427       conftest$ac_exeext conftest.$ac_ext
36428     if test "$am_cv_func_iconv" != yes; then
36429       am_save_LIBS="$LIBS"
36430       LIBS="$LIBS -liconv"
36431       cat >conftest.$ac_ext <<_ACEOF
36432 /* confdefs.h.  */
36433 _ACEOF
36434 cat confdefs.h >>conftest.$ac_ext
36435 cat >>conftest.$ac_ext <<_ACEOF
36436 /* end confdefs.h.  */
36437 #include <stdlib.h>
36438 #include <iconv.h>
36439 int
36440 main ()
36441 {
36442 iconv_t cd = iconv_open("","");
36443          iconv(cd,NULL,NULL,NULL,NULL);
36444          iconv_close(cd);
36445   ;
36446   return 0;
36447 }
36448 _ACEOF
36449 rm -f conftest.$ac_objext conftest$ac_exeext
36450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36451   (eval $ac_link) 2>conftest.er1
36452   ac_status=$?
36453   grep -v '^ *+' conftest.er1 >conftest.err
36454   rm -f conftest.er1
36455   cat conftest.err >&5
36456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457   (exit $ac_status); } &&
36458          { ac_try='test -z "$ac_cxx_werror_flag"
36459                          || test ! -s conftest.err'
36460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36461   (eval $ac_try) 2>&5
36462   ac_status=$?
36463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464   (exit $ac_status); }; } &&
36465          { ac_try='test -s conftest$ac_exeext'
36466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36467   (eval $ac_try) 2>&5
36468   ac_status=$?
36469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36470   (exit $ac_status); }; }; then
36471   am_cv_lib_iconv=yes
36472         am_cv_func_iconv=yes
36473 else
36474   echo "$as_me: failed program was:" >&5
36475 sed 's/^/| /' conftest.$ac_ext >&5
36476
36477 fi
36478 rm -f conftest.err conftest.$ac_objext \
36479       conftest$ac_exeext conftest.$ac_ext
36480       LIBS="$am_save_LIBS"
36481     fi
36482
36483 fi
36484 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36485 echo "${ECHO_T}$am_cv_func_iconv" >&6
36486   if test "$am_cv_func_iconv" = yes; then
36487
36488 cat >>confdefs.h <<\_ACEOF
36489 #define HAVE_ICONV 1
36490 _ACEOF
36491
36492     echo "$as_me:$LINENO: checking if iconv needs const" >&5
36493 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36494 if test "${wx_cv_func_iconv_const+set}" = set; then
36495   echo $ECHO_N "(cached) $ECHO_C" >&6
36496 else
36497   cat >conftest.$ac_ext <<_ACEOF
36498 /* confdefs.h.  */
36499 _ACEOF
36500 cat confdefs.h >>conftest.$ac_ext
36501 cat >>conftest.$ac_ext <<_ACEOF
36502 /* end confdefs.h.  */
36503
36504 #include <stdlib.h>
36505 #include <iconv.h>
36506 extern
36507 #ifdef __cplusplus
36508 "C"
36509 #endif
36510 #if defined(__STDC__) || defined(__cplusplus)
36511 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36512 #else
36513 size_t iconv();
36514 #endif
36515
36516 int
36517 main ()
36518 {
36519
36520   ;
36521   return 0;
36522 }
36523 _ACEOF
36524 rm -f conftest.$ac_objext
36525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36526   (eval $ac_compile) 2>conftest.er1
36527   ac_status=$?
36528   grep -v '^ *+' conftest.er1 >conftest.err
36529   rm -f conftest.er1
36530   cat conftest.err >&5
36531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532   (exit $ac_status); } &&
36533          { ac_try='test -z "$ac_cxx_werror_flag"
36534                          || test ! -s conftest.err'
36535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36536   (eval $ac_try) 2>&5
36537   ac_status=$?
36538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539   (exit $ac_status); }; } &&
36540          { ac_try='test -s conftest.$ac_objext'
36541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542   (eval $ac_try) 2>&5
36543   ac_status=$?
36544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545   (exit $ac_status); }; }; then
36546   wx_cv_func_iconv_const="no"
36547 else
36548   echo "$as_me: failed program was:" >&5
36549 sed 's/^/| /' conftest.$ac_ext >&5
36550
36551 wx_cv_func_iconv_const="yes"
36552
36553 fi
36554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36555
36556 fi
36557 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36558 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36559
36560     iconv_const=
36561     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36562         iconv_const="const"
36563     fi
36564
36565
36566 cat >>confdefs.h <<_ACEOF
36567 #define ICONV_CONST $iconv_const
36568 _ACEOF
36569
36570   fi
36571   LIBICONV=
36572   if test "$am_cv_lib_iconv" = yes; then
36573     LIBICONV="-liconv"
36574   fi
36575
36576
36577 LIBS="$LIBICONV $LIBS"
36578
36579 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36580
36581 for ac_func in sigaction
36582 do
36583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36584 echo "$as_me:$LINENO: checking for $ac_func" >&5
36585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36586 if eval "test \"\${$as_ac_var+set}\" = set"; then
36587   echo $ECHO_N "(cached) $ECHO_C" >&6
36588 else
36589   cat >conftest.$ac_ext <<_ACEOF
36590 /* confdefs.h.  */
36591 _ACEOF
36592 cat confdefs.h >>conftest.$ac_ext
36593 cat >>conftest.$ac_ext <<_ACEOF
36594 /* end confdefs.h.  */
36595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36597 #define $ac_func innocuous_$ac_func
36598
36599 /* System header to define __stub macros and hopefully few prototypes,
36600     which can conflict with char $ac_func (); below.
36601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36602     <limits.h> exists even on freestanding compilers.  */
36603
36604 #ifdef __STDC__
36605 # include <limits.h>
36606 #else
36607 # include <assert.h>
36608 #endif
36609
36610 #undef $ac_func
36611
36612 /* Override any gcc2 internal prototype to avoid an error.  */
36613 #ifdef __cplusplus
36614 extern "C"
36615 {
36616 #endif
36617 /* We use char because int might match the return type of a gcc2
36618    builtin and then its argument prototype would still apply.  */
36619 char $ac_func ();
36620 /* The GNU C library defines this for functions which it implements
36621     to always fail with ENOSYS.  Some functions are actually named
36622     something starting with __ and the normal name is an alias.  */
36623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36624 choke me
36625 #else
36626 char (*f) () = $ac_func;
36627 #endif
36628 #ifdef __cplusplus
36629 }
36630 #endif
36631
36632 int
36633 main ()
36634 {
36635 return f != $ac_func;
36636   ;
36637   return 0;
36638 }
36639 _ACEOF
36640 rm -f conftest.$ac_objext conftest$ac_exeext
36641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36642   (eval $ac_link) 2>conftest.er1
36643   ac_status=$?
36644   grep -v '^ *+' conftest.er1 >conftest.err
36645   rm -f conftest.er1
36646   cat conftest.err >&5
36647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36648   (exit $ac_status); } &&
36649          { ac_try='test -z "$ac_cxx_werror_flag"
36650                          || test ! -s conftest.err'
36651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36652   (eval $ac_try) 2>&5
36653   ac_status=$?
36654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36655   (exit $ac_status); }; } &&
36656          { ac_try='test -s conftest$ac_exeext'
36657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658   (eval $ac_try) 2>&5
36659   ac_status=$?
36660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661   (exit $ac_status); }; }; then
36662   eval "$as_ac_var=yes"
36663 else
36664   echo "$as_me: failed program was:" >&5
36665 sed 's/^/| /' conftest.$ac_ext >&5
36666
36667 eval "$as_ac_var=no"
36668 fi
36669 rm -f conftest.err conftest.$ac_objext \
36670       conftest$ac_exeext conftest.$ac_ext
36671 fi
36672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36674 if test `eval echo '${'$as_ac_var'}'` = yes; then
36675   cat >>confdefs.h <<_ACEOF
36676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36677 _ACEOF
36678
36679 fi
36680 done
36681
36682
36683     if test "$ac_cv_func_sigaction" = "no"; then
36684         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36685 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36686         wxUSE_ON_FATAL_EXCEPTION=no
36687     fi
36688
36689     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36690       echo "$as_me:$LINENO: checking for sa_handler type" >&5
36691 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36692 if test "${wx_cv_type_sa_handler+set}" = set; then
36693   echo $ECHO_N "(cached) $ECHO_C" >&6
36694 else
36695
36696         cat >conftest.$ac_ext <<_ACEOF
36697 /* confdefs.h.  */
36698 _ACEOF
36699 cat confdefs.h >>conftest.$ac_ext
36700 cat >>conftest.$ac_ext <<_ACEOF
36701 /* end confdefs.h.  */
36702 #include <signal.h>
36703 int
36704 main ()
36705 {
36706
36707                         extern void testSigHandler(int);
36708
36709                         struct sigaction sa;
36710                         sa.sa_handler = testSigHandler;
36711
36712   ;
36713   return 0;
36714 }
36715 _ACEOF
36716 rm -f conftest.$ac_objext
36717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36718   (eval $ac_compile) 2>conftest.er1
36719   ac_status=$?
36720   grep -v '^ *+' conftest.er1 >conftest.err
36721   rm -f conftest.er1
36722   cat conftest.err >&5
36723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724   (exit $ac_status); } &&
36725          { ac_try='test -z "$ac_cxx_werror_flag"
36726                          || test ! -s conftest.err'
36727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36728   (eval $ac_try) 2>&5
36729   ac_status=$?
36730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731   (exit $ac_status); }; } &&
36732          { ac_try='test -s conftest.$ac_objext'
36733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36734   (eval $ac_try) 2>&5
36735   ac_status=$?
36736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737   (exit $ac_status); }; }; then
36738
36739                         wx_cv_type_sa_handler=int
36740
36741 else
36742   echo "$as_me: failed program was:" >&5
36743 sed 's/^/| /' conftest.$ac_ext >&5
36744
36745
36746                         wx_cv_type_sa_handler=void
36747
36748 fi
36749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36750
36751 fi
36752 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36753 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36754
36755       cat >>confdefs.h <<_ACEOF
36756 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36757 _ACEOF
36758
36759     fi
36760 fi
36761
36762 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36763     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36764 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36765 if test "${wx_cv_func_backtrace+set}" = set; then
36766   echo $ECHO_N "(cached) $ECHO_C" >&6
36767 else
36768
36769             cat >conftest.$ac_ext <<_ACEOF
36770 /* confdefs.h.  */
36771 _ACEOF
36772 cat confdefs.h >>conftest.$ac_ext
36773 cat >>conftest.$ac_ext <<_ACEOF
36774 /* end confdefs.h.  */
36775 #include <execinfo.h>
36776 int
36777 main ()
36778 {
36779
36780                     void *trace[1];
36781                     char **messages;
36782
36783                     backtrace(trace, 1);
36784                     messages = backtrace_symbols(trace, 1);
36785
36786   ;
36787   return 0;
36788 }
36789 _ACEOF
36790 rm -f conftest.$ac_objext
36791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36792   (eval $ac_compile) 2>conftest.er1
36793   ac_status=$?
36794   grep -v '^ *+' conftest.er1 >conftest.err
36795   rm -f conftest.er1
36796   cat conftest.err >&5
36797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36798   (exit $ac_status); } &&
36799          { ac_try='test -z "$ac_cxx_werror_flag"
36800                          || test ! -s conftest.err'
36801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36802   (eval $ac_try) 2>&5
36803   ac_status=$?
36804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805   (exit $ac_status); }; } &&
36806          { ac_try='test -s conftest.$ac_objext'
36807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36808   (eval $ac_try) 2>&5
36809   ac_status=$?
36810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36811   (exit $ac_status); }; }; then
36812   wx_cv_func_backtrace=yes
36813 else
36814   echo "$as_me: failed program was:" >&5
36815 sed 's/^/| /' conftest.$ac_ext >&5
36816
36817 wx_cv_func_backtrace=no
36818
36819 fi
36820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36821
36822
36823 fi
36824 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36825 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36826
36827
36828     if test "$wx_cv_func_backtrace" = "no"; then
36829         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36830 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36831         wxUSE_STACKWALKER=no
36832     else
36833         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36834 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36835 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36836   echo $ECHO_N "(cached) $ECHO_C" >&6
36837 else
36838
36839                 cat >conftest.$ac_ext <<_ACEOF
36840 /* confdefs.h.  */
36841 _ACEOF
36842 cat confdefs.h >>conftest.$ac_ext
36843 cat >>conftest.$ac_ext <<_ACEOF
36844 /* end confdefs.h.  */
36845 #include <cxxabi.h>
36846 int
36847 main ()
36848 {
36849
36850                         int rc;
36851                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36852
36853   ;
36854   return 0;
36855 }
36856 _ACEOF
36857 rm -f conftest.$ac_objext conftest$ac_exeext
36858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36859   (eval $ac_link) 2>conftest.er1
36860   ac_status=$?
36861   grep -v '^ *+' conftest.er1 >conftest.err
36862   rm -f conftest.er1
36863   cat conftest.err >&5
36864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865   (exit $ac_status); } &&
36866          { ac_try='test -z "$ac_cxx_werror_flag"
36867                          || test ! -s conftest.err'
36868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36869   (eval $ac_try) 2>&5
36870   ac_status=$?
36871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872   (exit $ac_status); }; } &&
36873          { ac_try='test -s conftest$ac_exeext'
36874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36875   (eval $ac_try) 2>&5
36876   ac_status=$?
36877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36878   (exit $ac_status); }; }; then
36879   wx_cv_func_cxa_demangle=yes
36880 else
36881   echo "$as_me: failed program was:" >&5
36882 sed 's/^/| /' conftest.$ac_ext >&5
36883
36884 wx_cv_func_cxa_demangle=no
36885
36886 fi
36887 rm -f conftest.err conftest.$ac_objext \
36888       conftest$ac_exeext conftest.$ac_ext
36889
36890
36891 fi
36892 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36893 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36894
36895         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36896             cat >>confdefs.h <<\_ACEOF
36897 #define HAVE_CXA_DEMANGLE 1
36898 _ACEOF
36899
36900         fi
36901     fi
36902 fi
36903
36904 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36905     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36906 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36907     wxUSE_STACKWALKER=no
36908 fi
36909
36910
36911
36912
36913 for ac_func in mkstemp mktemp
36914 do
36915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36916 echo "$as_me:$LINENO: checking for $ac_func" >&5
36917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36918 if eval "test \"\${$as_ac_var+set}\" = set"; then
36919   echo $ECHO_N "(cached) $ECHO_C" >&6
36920 else
36921   cat >conftest.$ac_ext <<_ACEOF
36922 /* confdefs.h.  */
36923 _ACEOF
36924 cat confdefs.h >>conftest.$ac_ext
36925 cat >>conftest.$ac_ext <<_ACEOF
36926 /* end confdefs.h.  */
36927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36929 #define $ac_func innocuous_$ac_func
36930
36931 /* System header to define __stub macros and hopefully few prototypes,
36932     which can conflict with char $ac_func (); below.
36933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36934     <limits.h> exists even on freestanding compilers.  */
36935
36936 #ifdef __STDC__
36937 # include <limits.h>
36938 #else
36939 # include <assert.h>
36940 #endif
36941
36942 #undef $ac_func
36943
36944 /* Override any gcc2 internal prototype to avoid an error.  */
36945 #ifdef __cplusplus
36946 extern "C"
36947 {
36948 #endif
36949 /* We use char because int might match the return type of a gcc2
36950    builtin and then its argument prototype would still apply.  */
36951 char $ac_func ();
36952 /* The GNU C library defines this for functions which it implements
36953     to always fail with ENOSYS.  Some functions are actually named
36954     something starting with __ and the normal name is an alias.  */
36955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36956 choke me
36957 #else
36958 char (*f) () = $ac_func;
36959 #endif
36960 #ifdef __cplusplus
36961 }
36962 #endif
36963
36964 int
36965 main ()
36966 {
36967 return f != $ac_func;
36968   ;
36969   return 0;
36970 }
36971 _ACEOF
36972 rm -f conftest.$ac_objext conftest$ac_exeext
36973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36974   (eval $ac_link) 2>conftest.er1
36975   ac_status=$?
36976   grep -v '^ *+' conftest.er1 >conftest.err
36977   rm -f conftest.er1
36978   cat conftest.err >&5
36979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980   (exit $ac_status); } &&
36981          { ac_try='test -z "$ac_cxx_werror_flag"
36982                          || test ! -s conftest.err'
36983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984   (eval $ac_try) 2>&5
36985   ac_status=$?
36986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987   (exit $ac_status); }; } &&
36988          { ac_try='test -s conftest$ac_exeext'
36989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990   (eval $ac_try) 2>&5
36991   ac_status=$?
36992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993   (exit $ac_status); }; }; then
36994   eval "$as_ac_var=yes"
36995 else
36996   echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36998
36999 eval "$as_ac_var=no"
37000 fi
37001 rm -f conftest.err conftest.$ac_objext \
37002       conftest$ac_exeext conftest.$ac_ext
37003 fi
37004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37006 if test `eval echo '${'$as_ac_var'}'` = yes; then
37007   cat >>confdefs.h <<_ACEOF
37008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37009 _ACEOF
37010  break
37011 fi
37012 done
37013
37014
37015 echo "$as_me:$LINENO: checking for statfs" >&5
37016 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
37017 if test "${wx_cv_func_statfs+set}" = set; then
37018   echo $ECHO_N "(cached) $ECHO_C" >&6
37019 else
37020   cat >conftest.$ac_ext <<_ACEOF
37021 /* confdefs.h.  */
37022 _ACEOF
37023 cat confdefs.h >>conftest.$ac_ext
37024 cat >>conftest.$ac_ext <<_ACEOF
37025 /* end confdefs.h.  */
37026
37027              #if defined(__BSD__)
37028              #include <sys/param.h>
37029              #include <sys/mount.h>
37030              #else
37031              #include <sys/vfs.h>
37032              #endif
37033
37034 int
37035 main ()
37036 {
37037
37038              long l;
37039              struct statfs fs;
37040              statfs("/", &fs);
37041              l = fs.f_bsize;
37042              l += fs.f_blocks;
37043              l += fs.f_bavail;
37044
37045   ;
37046   return 0;
37047 }
37048 _ACEOF
37049 rm -f conftest.$ac_objext
37050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37051   (eval $ac_compile) 2>conftest.er1
37052   ac_status=$?
37053   grep -v '^ *+' conftest.er1 >conftest.err
37054   rm -f conftest.er1
37055   cat conftest.err >&5
37056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057   (exit $ac_status); } &&
37058          { ac_try='test -z "$ac_cxx_werror_flag"
37059                          || test ! -s conftest.err'
37060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37061   (eval $ac_try) 2>&5
37062   ac_status=$?
37063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064   (exit $ac_status); }; } &&
37065          { ac_try='test -s conftest.$ac_objext'
37066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37067   (eval $ac_try) 2>&5
37068   ac_status=$?
37069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070   (exit $ac_status); }; }; then
37071   wx_cv_func_statfs=yes
37072 else
37073   echo "$as_me: failed program was:" >&5
37074 sed 's/^/| /' conftest.$ac_ext >&5
37075
37076 wx_cv_func_statfs=no
37077
37078 fi
37079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37080
37081 fi
37082 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37083 echo "${ECHO_T}$wx_cv_func_statfs" >&6
37084
37085 if test "$wx_cv_func_statfs" = "yes"; then
37086         echo "$as_me:$LINENO: checking for statfs declaration" >&5
37087 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
37088 if test "${wx_cv_func_statfs_decl+set}" = set; then
37089   echo $ECHO_N "(cached) $ECHO_C" >&6
37090 else
37091   cat >conftest.$ac_ext <<_ACEOF
37092 /* confdefs.h.  */
37093 _ACEOF
37094 cat confdefs.h >>conftest.$ac_ext
37095 cat >>conftest.$ac_ext <<_ACEOF
37096 /* end confdefs.h.  */
37097
37098                  #if defined(__BSD__)
37099                  #include <sys/param.h>
37100                  #include <sys/mount.h>
37101                  #else
37102                  #include <sys/vfs.h>
37103                  #endif
37104
37105 int
37106 main ()
37107 {
37108
37109                 struct statfs fs;
37110                 statfs("", &fs);
37111
37112   ;
37113   return 0;
37114 }
37115 _ACEOF
37116 rm -f conftest.$ac_objext
37117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37118   (eval $ac_compile) 2>conftest.er1
37119   ac_status=$?
37120   grep -v '^ *+' conftest.er1 >conftest.err
37121   rm -f conftest.er1
37122   cat conftest.err >&5
37123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124   (exit $ac_status); } &&
37125          { ac_try='test -z "$ac_cxx_werror_flag"
37126                          || test ! -s conftest.err'
37127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37128   (eval $ac_try) 2>&5
37129   ac_status=$?
37130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37131   (exit $ac_status); }; } &&
37132          { ac_try='test -s conftest.$ac_objext'
37133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37134   (eval $ac_try) 2>&5
37135   ac_status=$?
37136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37137   (exit $ac_status); }; }; then
37138   wx_cv_func_statfs_decl=yes
37139 else
37140   echo "$as_me: failed program was:" >&5
37141 sed 's/^/| /' conftest.$ac_ext >&5
37142
37143 wx_cv_func_statfs_decl=no
37144
37145 fi
37146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37147
37148 fi
37149 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37150 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
37151
37152     if test "$wx_cv_func_statfs_decl" = "yes"; then
37153         cat >>confdefs.h <<\_ACEOF
37154 #define HAVE_STATFS_DECL 1
37155 _ACEOF
37156
37157     fi
37158
37159     wx_cv_type_statvfs_t="struct statfs"
37160     cat >>confdefs.h <<\_ACEOF
37161 #define HAVE_STATFS 1
37162 _ACEOF
37163
37164 else
37165     echo "$as_me:$LINENO: checking for statvfs" >&5
37166 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37167 if test "${wx_cv_func_statvfs+set}" = set; then
37168   echo $ECHO_N "(cached) $ECHO_C" >&6
37169 else
37170   cat >conftest.$ac_ext <<_ACEOF
37171 /* confdefs.h.  */
37172 _ACEOF
37173 cat confdefs.h >>conftest.$ac_ext
37174 cat >>conftest.$ac_ext <<_ACEOF
37175 /* end confdefs.h.  */
37176
37177                 #include <stddef.h>
37178                 #include <sys/statvfs.h>
37179
37180 int
37181 main ()
37182 {
37183
37184                 statvfs("/", NULL);
37185
37186   ;
37187   return 0;
37188 }
37189 _ACEOF
37190 rm -f conftest.$ac_objext
37191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37192   (eval $ac_compile) 2>conftest.er1
37193   ac_status=$?
37194   grep -v '^ *+' conftest.er1 >conftest.err
37195   rm -f conftest.er1
37196   cat conftest.err >&5
37197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198   (exit $ac_status); } &&
37199          { ac_try='test -z "$ac_cxx_werror_flag"
37200                          || test ! -s conftest.err'
37201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202   (eval $ac_try) 2>&5
37203   ac_status=$?
37204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205   (exit $ac_status); }; } &&
37206          { ac_try='test -s conftest.$ac_objext'
37207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37208   (eval $ac_try) 2>&5
37209   ac_status=$?
37210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211   (exit $ac_status); }; }; then
37212   wx_cv_func_statvfs=yes
37213 else
37214   echo "$as_me: failed program was:" >&5
37215 sed 's/^/| /' conftest.$ac_ext >&5
37216
37217 wx_cv_func_statvfs=no
37218
37219 fi
37220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37221
37222 fi
37223 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37224 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37225
37226     if test "$wx_cv_func_statvfs" = "yes"; then
37227                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37228 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37229 if test "${wx_cv_type_statvfs_t+set}" = set; then
37230   echo $ECHO_N "(cached) $ECHO_C" >&6
37231 else
37232   cat >conftest.$ac_ext <<_ACEOF
37233 /* confdefs.h.  */
37234 _ACEOF
37235 cat confdefs.h >>conftest.$ac_ext
37236 cat >>conftest.$ac_ext <<_ACEOF
37237 /* end confdefs.h.  */
37238
37239                     #include <sys/statvfs.h>
37240
37241 int
37242 main ()
37243 {
37244
37245                     long l;
37246                     statvfs_t fs;
37247                     statvfs("/", &fs);
37248                     l = fs.f_bsize;
37249                     l += fs.f_blocks;
37250                     l += fs.f_bavail;
37251
37252   ;
37253   return 0;
37254 }
37255 _ACEOF
37256 rm -f conftest.$ac_objext
37257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37258   (eval $ac_compile) 2>conftest.er1
37259   ac_status=$?
37260   grep -v '^ *+' conftest.er1 >conftest.err
37261   rm -f conftest.er1
37262   cat conftest.err >&5
37263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264   (exit $ac_status); } &&
37265          { ac_try='test -z "$ac_cxx_werror_flag"
37266                          || test ! -s conftest.err'
37267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37268   (eval $ac_try) 2>&5
37269   ac_status=$?
37270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37271   (exit $ac_status); }; } &&
37272          { ac_try='test -s conftest.$ac_objext'
37273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37274   (eval $ac_try) 2>&5
37275   ac_status=$?
37276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37277   (exit $ac_status); }; }; then
37278   wx_cv_type_statvfs_t=statvfs_t
37279 else
37280   echo "$as_me: failed program was:" >&5
37281 sed 's/^/| /' conftest.$ac_ext >&5
37282
37283
37284                     cat >conftest.$ac_ext <<_ACEOF
37285 /* confdefs.h.  */
37286 _ACEOF
37287 cat confdefs.h >>conftest.$ac_ext
37288 cat >>conftest.$ac_ext <<_ACEOF
37289 /* end confdefs.h.  */
37290
37291                             #include <sys/statvfs.h>
37292
37293 int
37294 main ()
37295 {
37296
37297                             long l;
37298                             struct statvfs fs;
37299                             statvfs("/", &fs);
37300                             l = fs.f_bsize;
37301                             l += fs.f_blocks;
37302                             l += fs.f_bavail;
37303
37304   ;
37305   return 0;
37306 }
37307 _ACEOF
37308 rm -f conftest.$ac_objext
37309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37310   (eval $ac_compile) 2>conftest.er1
37311   ac_status=$?
37312   grep -v '^ *+' conftest.er1 >conftest.err
37313   rm -f conftest.er1
37314   cat conftest.err >&5
37315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316   (exit $ac_status); } &&
37317          { ac_try='test -z "$ac_cxx_werror_flag"
37318                          || test ! -s conftest.err'
37319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37320   (eval $ac_try) 2>&5
37321   ac_status=$?
37322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323   (exit $ac_status); }; } &&
37324          { ac_try='test -s conftest.$ac_objext'
37325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37326   (eval $ac_try) 2>&5
37327   ac_status=$?
37328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37329   (exit $ac_status); }; }; then
37330   wx_cv_type_statvfs_t="struct statvfs"
37331 else
37332   echo "$as_me: failed program was:" >&5
37333 sed 's/^/| /' conftest.$ac_ext >&5
37334
37335 wx_cv_type_statvfs_t="unknown"
37336
37337 fi
37338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37339
37340
37341 fi
37342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37343
37344 fi
37345 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37346 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37347
37348         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37349             cat >>confdefs.h <<\_ACEOF
37350 #define HAVE_STATVFS 1
37351 _ACEOF
37352
37353         fi
37354     else
37355                 wx_cv_type_statvfs_t="unknown"
37356     fi
37357 fi
37358
37359 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37360     cat >>confdefs.h <<_ACEOF
37361 #define WX_STATFS_T $wx_cv_type_statvfs_t
37362 _ACEOF
37363
37364 else
37365     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37366 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37367 fi
37368
37369 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37370
37371
37372 for ac_func in fcntl flock
37373 do
37374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37375 echo "$as_me:$LINENO: checking for $ac_func" >&5
37376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37377 if eval "test \"\${$as_ac_var+set}\" = set"; then
37378   echo $ECHO_N "(cached) $ECHO_C" >&6
37379 else
37380   cat >conftest.$ac_ext <<_ACEOF
37381 /* confdefs.h.  */
37382 _ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h.  */
37386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37388 #define $ac_func innocuous_$ac_func
37389
37390 /* System header to define __stub macros and hopefully few prototypes,
37391     which can conflict with char $ac_func (); below.
37392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37393     <limits.h> exists even on freestanding compilers.  */
37394
37395 #ifdef __STDC__
37396 # include <limits.h>
37397 #else
37398 # include <assert.h>
37399 #endif
37400
37401 #undef $ac_func
37402
37403 /* Override any gcc2 internal prototype to avoid an error.  */
37404 #ifdef __cplusplus
37405 extern "C"
37406 {
37407 #endif
37408 /* We use char because int might match the return type of a gcc2
37409    builtin and then its argument prototype would still apply.  */
37410 char $ac_func ();
37411 /* The GNU C library defines this for functions which it implements
37412     to always fail with ENOSYS.  Some functions are actually named
37413     something starting with __ and the normal name is an alias.  */
37414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37415 choke me
37416 #else
37417 char (*f) () = $ac_func;
37418 #endif
37419 #ifdef __cplusplus
37420 }
37421 #endif
37422
37423 int
37424 main ()
37425 {
37426 return f != $ac_func;
37427   ;
37428   return 0;
37429 }
37430 _ACEOF
37431 rm -f conftest.$ac_objext conftest$ac_exeext
37432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37433   (eval $ac_link) 2>conftest.er1
37434   ac_status=$?
37435   grep -v '^ *+' conftest.er1 >conftest.err
37436   rm -f conftest.er1
37437   cat conftest.err >&5
37438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439   (exit $ac_status); } &&
37440          { ac_try='test -z "$ac_cxx_werror_flag"
37441                          || test ! -s conftest.err'
37442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37443   (eval $ac_try) 2>&5
37444   ac_status=$?
37445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446   (exit $ac_status); }; } &&
37447          { ac_try='test -s conftest$ac_exeext'
37448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37449   (eval $ac_try) 2>&5
37450   ac_status=$?
37451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452   (exit $ac_status); }; }; then
37453   eval "$as_ac_var=yes"
37454 else
37455   echo "$as_me: failed program was:" >&5
37456 sed 's/^/| /' conftest.$ac_ext >&5
37457
37458 eval "$as_ac_var=no"
37459 fi
37460 rm -f conftest.err conftest.$ac_objext \
37461       conftest$ac_exeext conftest.$ac_ext
37462 fi
37463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37465 if test `eval echo '${'$as_ac_var'}'` = yes; then
37466   cat >>confdefs.h <<_ACEOF
37467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37468 _ACEOF
37469  break
37470 fi
37471 done
37472
37473
37474     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37475         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37476 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37477         wxUSE_SNGLINST_CHECKER=no
37478     fi
37479 fi
37480
37481
37482 for ac_func in timegm
37483 do
37484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37485 echo "$as_me:$LINENO: checking for $ac_func" >&5
37486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37487 if eval "test \"\${$as_ac_var+set}\" = set"; then
37488   echo $ECHO_N "(cached) $ECHO_C" >&6
37489 else
37490   cat >conftest.$ac_ext <<_ACEOF
37491 /* confdefs.h.  */
37492 _ACEOF
37493 cat confdefs.h >>conftest.$ac_ext
37494 cat >>conftest.$ac_ext <<_ACEOF
37495 /* end confdefs.h.  */
37496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37498 #define $ac_func innocuous_$ac_func
37499
37500 /* System header to define __stub macros and hopefully few prototypes,
37501     which can conflict with char $ac_func (); below.
37502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37503     <limits.h> exists even on freestanding compilers.  */
37504
37505 #ifdef __STDC__
37506 # include <limits.h>
37507 #else
37508 # include <assert.h>
37509 #endif
37510
37511 #undef $ac_func
37512
37513 /* Override any gcc2 internal prototype to avoid an error.  */
37514 #ifdef __cplusplus
37515 extern "C"
37516 {
37517 #endif
37518 /* We use char because int might match the return type of a gcc2
37519    builtin and then its argument prototype would still apply.  */
37520 char $ac_func ();
37521 /* The GNU C library defines this for functions which it implements
37522     to always fail with ENOSYS.  Some functions are actually named
37523     something starting with __ and the normal name is an alias.  */
37524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37525 choke me
37526 #else
37527 char (*f) () = $ac_func;
37528 #endif
37529 #ifdef __cplusplus
37530 }
37531 #endif
37532
37533 int
37534 main ()
37535 {
37536 return f != $ac_func;
37537   ;
37538   return 0;
37539 }
37540 _ACEOF
37541 rm -f conftest.$ac_objext conftest$ac_exeext
37542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37543   (eval $ac_link) 2>conftest.er1
37544   ac_status=$?
37545   grep -v '^ *+' conftest.er1 >conftest.err
37546   rm -f conftest.er1
37547   cat conftest.err >&5
37548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549   (exit $ac_status); } &&
37550          { ac_try='test -z "$ac_cxx_werror_flag"
37551                          || test ! -s conftest.err'
37552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37553   (eval $ac_try) 2>&5
37554   ac_status=$?
37555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556   (exit $ac_status); }; } &&
37557          { ac_try='test -s conftest$ac_exeext'
37558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37559   (eval $ac_try) 2>&5
37560   ac_status=$?
37561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562   (exit $ac_status); }; }; then
37563   eval "$as_ac_var=yes"
37564 else
37565   echo "$as_me: failed program was:" >&5
37566 sed 's/^/| /' conftest.$ac_ext >&5
37567
37568 eval "$as_ac_var=no"
37569 fi
37570 rm -f conftest.err conftest.$ac_objext \
37571       conftest$ac_exeext conftest.$ac_ext
37572 fi
37573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37575 if test `eval echo '${'$as_ac_var'}'` = yes; then
37576   cat >>confdefs.h <<_ACEOF
37577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37578 _ACEOF
37579
37580 fi
37581 done
37582
37583
37584
37585
37586 for ac_func in putenv setenv
37587 do
37588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37589 echo "$as_me:$LINENO: checking for $ac_func" >&5
37590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37591 if eval "test \"\${$as_ac_var+set}\" = set"; then
37592   echo $ECHO_N "(cached) $ECHO_C" >&6
37593 else
37594   cat >conftest.$ac_ext <<_ACEOF
37595 /* confdefs.h.  */
37596 _ACEOF
37597 cat confdefs.h >>conftest.$ac_ext
37598 cat >>conftest.$ac_ext <<_ACEOF
37599 /* end confdefs.h.  */
37600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37602 #define $ac_func innocuous_$ac_func
37603
37604 /* System header to define __stub macros and hopefully few prototypes,
37605     which can conflict with char $ac_func (); below.
37606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37607     <limits.h> exists even on freestanding compilers.  */
37608
37609 #ifdef __STDC__
37610 # include <limits.h>
37611 #else
37612 # include <assert.h>
37613 #endif
37614
37615 #undef $ac_func
37616
37617 /* Override any gcc2 internal prototype to avoid an error.  */
37618 #ifdef __cplusplus
37619 extern "C"
37620 {
37621 #endif
37622 /* We use char because int might match the return type of a gcc2
37623    builtin and then its argument prototype would still apply.  */
37624 char $ac_func ();
37625 /* The GNU C library defines this for functions which it implements
37626     to always fail with ENOSYS.  Some functions are actually named
37627     something starting with __ and the normal name is an alias.  */
37628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37629 choke me
37630 #else
37631 char (*f) () = $ac_func;
37632 #endif
37633 #ifdef __cplusplus
37634 }
37635 #endif
37636
37637 int
37638 main ()
37639 {
37640 return f != $ac_func;
37641   ;
37642   return 0;
37643 }
37644 _ACEOF
37645 rm -f conftest.$ac_objext conftest$ac_exeext
37646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37647   (eval $ac_link) 2>conftest.er1
37648   ac_status=$?
37649   grep -v '^ *+' conftest.er1 >conftest.err
37650   rm -f conftest.er1
37651   cat conftest.err >&5
37652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653   (exit $ac_status); } &&
37654          { ac_try='test -z "$ac_cxx_werror_flag"
37655                          || test ! -s conftest.err'
37656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37657   (eval $ac_try) 2>&5
37658   ac_status=$?
37659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660   (exit $ac_status); }; } &&
37661          { ac_try='test -s conftest$ac_exeext'
37662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663   (eval $ac_try) 2>&5
37664   ac_status=$?
37665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666   (exit $ac_status); }; }; then
37667   eval "$as_ac_var=yes"
37668 else
37669   echo "$as_me: failed program was:" >&5
37670 sed 's/^/| /' conftest.$ac_ext >&5
37671
37672 eval "$as_ac_var=no"
37673 fi
37674 rm -f conftest.err conftest.$ac_objext \
37675       conftest$ac_exeext conftest.$ac_ext
37676 fi
37677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37679 if test `eval echo '${'$as_ac_var'}'` = yes; then
37680   cat >>confdefs.h <<_ACEOF
37681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37682 _ACEOF
37683  break
37684 fi
37685 done
37686
37687
37688 HAVE_SOME_SLEEP_FUNC=0
37689 if test "$USE_BEOS" = 1; then
37690             cat >>confdefs.h <<\_ACEOF
37691 #define HAVE_SLEEP 1
37692 _ACEOF
37693
37694     HAVE_SOME_SLEEP_FUNC=1
37695 fi
37696
37697 if test "$USE_DARWIN" = 1; then
37698             cat >>confdefs.h <<\_ACEOF
37699 #define HAVE_USLEEP 1
37700 _ACEOF
37701
37702     HAVE_SOME_SLEEP_FUNC=1
37703 fi
37704
37705 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37706         POSIX4_LINK=
37707
37708 for ac_func in nanosleep
37709 do
37710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37711 echo "$as_me:$LINENO: checking for $ac_func" >&5
37712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37713 if eval "test \"\${$as_ac_var+set}\" = set"; then
37714   echo $ECHO_N "(cached) $ECHO_C" >&6
37715 else
37716   cat >conftest.$ac_ext <<_ACEOF
37717 /* confdefs.h.  */
37718 _ACEOF
37719 cat confdefs.h >>conftest.$ac_ext
37720 cat >>conftest.$ac_ext <<_ACEOF
37721 /* end confdefs.h.  */
37722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37724 #define $ac_func innocuous_$ac_func
37725
37726 /* System header to define __stub macros and hopefully few prototypes,
37727     which can conflict with char $ac_func (); below.
37728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37729     <limits.h> exists even on freestanding compilers.  */
37730
37731 #ifdef __STDC__
37732 # include <limits.h>
37733 #else
37734 # include <assert.h>
37735 #endif
37736
37737 #undef $ac_func
37738
37739 /* Override any gcc2 internal prototype to avoid an error.  */
37740 #ifdef __cplusplus
37741 extern "C"
37742 {
37743 #endif
37744 /* We use char because int might match the return type of a gcc2
37745    builtin and then its argument prototype would still apply.  */
37746 char $ac_func ();
37747 /* The GNU C library defines this for functions which it implements
37748     to always fail with ENOSYS.  Some functions are actually named
37749     something starting with __ and the normal name is an alias.  */
37750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37751 choke me
37752 #else
37753 char (*f) () = $ac_func;
37754 #endif
37755 #ifdef __cplusplus
37756 }
37757 #endif
37758
37759 int
37760 main ()
37761 {
37762 return f != $ac_func;
37763   ;
37764   return 0;
37765 }
37766 _ACEOF
37767 rm -f conftest.$ac_objext conftest$ac_exeext
37768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37769   (eval $ac_link) 2>conftest.er1
37770   ac_status=$?
37771   grep -v '^ *+' conftest.er1 >conftest.err
37772   rm -f conftest.er1
37773   cat conftest.err >&5
37774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775   (exit $ac_status); } &&
37776          { ac_try='test -z "$ac_cxx_werror_flag"
37777                          || test ! -s conftest.err'
37778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37779   (eval $ac_try) 2>&5
37780   ac_status=$?
37781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782   (exit $ac_status); }; } &&
37783          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
37789   eval "$as_ac_var=yes"
37790 else
37791   echo "$as_me: failed program was:" >&5
37792 sed 's/^/| /' conftest.$ac_ext >&5
37793
37794 eval "$as_ac_var=no"
37795 fi
37796 rm -f conftest.err conftest.$ac_objext \
37797       conftest$ac_exeext conftest.$ac_ext
37798 fi
37799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37801 if test `eval echo '${'$as_ac_var'}'` = yes; then
37802   cat >>confdefs.h <<_ACEOF
37803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37804 _ACEOF
37805  cat >>confdefs.h <<\_ACEOF
37806 #define HAVE_NANOSLEEP 1
37807 _ACEOF
37808
37809 else
37810
37811             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37812 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37813 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37814   echo $ECHO_N "(cached) $ECHO_C" >&6
37815 else
37816   ac_check_lib_save_LIBS=$LIBS
37817 LIBS="-lposix4  $LIBS"
37818 cat >conftest.$ac_ext <<_ACEOF
37819 /* confdefs.h.  */
37820 _ACEOF
37821 cat confdefs.h >>conftest.$ac_ext
37822 cat >>conftest.$ac_ext <<_ACEOF
37823 /* end confdefs.h.  */
37824
37825 /* Override any gcc2 internal prototype to avoid an error.  */
37826 #ifdef __cplusplus
37827 extern "C"
37828 #endif
37829 /* We use char because int might match the return type of a gcc2
37830    builtin and then its argument prototype would still apply.  */
37831 char nanosleep ();
37832 int
37833 main ()
37834 {
37835 nanosleep ();
37836   ;
37837   return 0;
37838 }
37839 _ACEOF
37840 rm -f conftest.$ac_objext conftest$ac_exeext
37841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37842   (eval $ac_link) 2>conftest.er1
37843   ac_status=$?
37844   grep -v '^ *+' conftest.er1 >conftest.err
37845   rm -f conftest.er1
37846   cat conftest.err >&5
37847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37848   (exit $ac_status); } &&
37849          { ac_try='test -z "$ac_cxx_werror_flag"
37850                          || test ! -s conftest.err'
37851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37852   (eval $ac_try) 2>&5
37853   ac_status=$?
37854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37855   (exit $ac_status); }; } &&
37856          { ac_try='test -s conftest$ac_exeext'
37857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37858   (eval $ac_try) 2>&5
37859   ac_status=$?
37860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37861   (exit $ac_status); }; }; then
37862   ac_cv_lib_posix4_nanosleep=yes
37863 else
37864   echo "$as_me: failed program was:" >&5
37865 sed 's/^/| /' conftest.$ac_ext >&5
37866
37867 ac_cv_lib_posix4_nanosleep=no
37868 fi
37869 rm -f conftest.err conftest.$ac_objext \
37870       conftest$ac_exeext conftest.$ac_ext
37871 LIBS=$ac_check_lib_save_LIBS
37872 fi
37873 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37874 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37875 if test $ac_cv_lib_posix4_nanosleep = yes; then
37876
37877                     cat >>confdefs.h <<\_ACEOF
37878 #define HAVE_NANOSLEEP 1
37879 _ACEOF
37880
37881                     POSIX4_LINK=" -lposix4"
37882
37883 else
37884
37885
37886 for ac_func in usleep
37887 do
37888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37889 echo "$as_me:$LINENO: checking for $ac_func" >&5
37890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37891 if eval "test \"\${$as_ac_var+set}\" = set"; then
37892   echo $ECHO_N "(cached) $ECHO_C" >&6
37893 else
37894   cat >conftest.$ac_ext <<_ACEOF
37895 /* confdefs.h.  */
37896 _ACEOF
37897 cat confdefs.h >>conftest.$ac_ext
37898 cat >>conftest.$ac_ext <<_ACEOF
37899 /* end confdefs.h.  */
37900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37902 #define $ac_func innocuous_$ac_func
37903
37904 /* System header to define __stub macros and hopefully few prototypes,
37905     which can conflict with char $ac_func (); below.
37906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37907     <limits.h> exists even on freestanding compilers.  */
37908
37909 #ifdef __STDC__
37910 # include <limits.h>
37911 #else
37912 # include <assert.h>
37913 #endif
37914
37915 #undef $ac_func
37916
37917 /* Override any gcc2 internal prototype to avoid an error.  */
37918 #ifdef __cplusplus
37919 extern "C"
37920 {
37921 #endif
37922 /* We use char because int might match the return type of a gcc2
37923    builtin and then its argument prototype would still apply.  */
37924 char $ac_func ();
37925 /* The GNU C library defines this for functions which it implements
37926     to always fail with ENOSYS.  Some functions are actually named
37927     something starting with __ and the normal name is an alias.  */
37928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37929 choke me
37930 #else
37931 char (*f) () = $ac_func;
37932 #endif
37933 #ifdef __cplusplus
37934 }
37935 #endif
37936
37937 int
37938 main ()
37939 {
37940 return f != $ac_func;
37941   ;
37942   return 0;
37943 }
37944 _ACEOF
37945 rm -f conftest.$ac_objext conftest$ac_exeext
37946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37947   (eval $ac_link) 2>conftest.er1
37948   ac_status=$?
37949   grep -v '^ *+' conftest.er1 >conftest.err
37950   rm -f conftest.er1
37951   cat conftest.err >&5
37952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953   (exit $ac_status); } &&
37954          { ac_try='test -z "$ac_cxx_werror_flag"
37955                          || test ! -s conftest.err'
37956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37957   (eval $ac_try) 2>&5
37958   ac_status=$?
37959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960   (exit $ac_status); }; } &&
37961          { ac_try='test -s conftest$ac_exeext'
37962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37963   (eval $ac_try) 2>&5
37964   ac_status=$?
37965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37966   (exit $ac_status); }; }; then
37967   eval "$as_ac_var=yes"
37968 else
37969   echo "$as_me: failed program was:" >&5
37970 sed 's/^/| /' conftest.$ac_ext >&5
37971
37972 eval "$as_ac_var=no"
37973 fi
37974 rm -f conftest.err conftest.$ac_objext \
37975       conftest$ac_exeext conftest.$ac_ext
37976 fi
37977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37979 if test `eval echo '${'$as_ac_var'}'` = yes; then
37980   cat >>confdefs.h <<_ACEOF
37981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37982 _ACEOF
37983  cat >>confdefs.h <<\_ACEOF
37984 #define HAVE_USLEEP 1
37985 _ACEOF
37986
37987 else
37988   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37989 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37990
37991 fi
37992 done
37993
37994
37995
37996 fi
37997
37998
37999
38000 fi
38001 done
38002
38003 fi
38004
38005
38006
38007 for ac_func in uname gethostname
38008 do
38009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38010 echo "$as_me:$LINENO: checking for $ac_func" >&5
38011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38012 if eval "test \"\${$as_ac_var+set}\" = set"; then
38013   echo $ECHO_N "(cached) $ECHO_C" >&6
38014 else
38015   cat >conftest.$ac_ext <<_ACEOF
38016 /* confdefs.h.  */
38017 _ACEOF
38018 cat confdefs.h >>conftest.$ac_ext
38019 cat >>conftest.$ac_ext <<_ACEOF
38020 /* end confdefs.h.  */
38021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38023 #define $ac_func innocuous_$ac_func
38024
38025 /* System header to define __stub macros and hopefully few prototypes,
38026     which can conflict with char $ac_func (); below.
38027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38028     <limits.h> exists even on freestanding compilers.  */
38029
38030 #ifdef __STDC__
38031 # include <limits.h>
38032 #else
38033 # include <assert.h>
38034 #endif
38035
38036 #undef $ac_func
38037
38038 /* Override any gcc2 internal prototype to avoid an error.  */
38039 #ifdef __cplusplus
38040 extern "C"
38041 {
38042 #endif
38043 /* We use char because int might match the return type of a gcc2
38044    builtin and then its argument prototype would still apply.  */
38045 char $ac_func ();
38046 /* The GNU C library defines this for functions which it implements
38047     to always fail with ENOSYS.  Some functions are actually named
38048     something starting with __ and the normal name is an alias.  */
38049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38050 choke me
38051 #else
38052 char (*f) () = $ac_func;
38053 #endif
38054 #ifdef __cplusplus
38055 }
38056 #endif
38057
38058 int
38059 main ()
38060 {
38061 return f != $ac_func;
38062   ;
38063   return 0;
38064 }
38065 _ACEOF
38066 rm -f conftest.$ac_objext conftest$ac_exeext
38067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38068   (eval $ac_link) 2>conftest.er1
38069   ac_status=$?
38070   grep -v '^ *+' conftest.er1 >conftest.err
38071   rm -f conftest.er1
38072   cat conftest.err >&5
38073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074   (exit $ac_status); } &&
38075          { ac_try='test -z "$ac_cxx_werror_flag"
38076                          || test ! -s conftest.err'
38077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38078   (eval $ac_try) 2>&5
38079   ac_status=$?
38080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38081   (exit $ac_status); }; } &&
38082          { ac_try='test -s conftest$ac_exeext'
38083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38084   (eval $ac_try) 2>&5
38085   ac_status=$?
38086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38087   (exit $ac_status); }; }; then
38088   eval "$as_ac_var=yes"
38089 else
38090   echo "$as_me: failed program was:" >&5
38091 sed 's/^/| /' conftest.$ac_ext >&5
38092
38093 eval "$as_ac_var=no"
38094 fi
38095 rm -f conftest.err conftest.$ac_objext \
38096       conftest$ac_exeext conftest.$ac_ext
38097 fi
38098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38100 if test `eval echo '${'$as_ac_var'}'` = yes; then
38101   cat >>confdefs.h <<_ACEOF
38102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38103 _ACEOF
38104  break
38105 fi
38106 done
38107
38108
38109
38110   for wx_func in strtok_r
38111   do
38112     echo "$as_me:$LINENO: checking for $wx_func" >&5
38113 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38114 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38115   echo $ECHO_N "(cached) $ECHO_C" >&6
38116 else
38117
38118         cat >conftest.$ac_ext <<_ACEOF
38119
38120             /* confdefs.h.  */
38121 _ACEOF
38122 cat confdefs.h >>conftest.$ac_ext
38123 cat >>conftest.$ac_ext <<_ACEOF
38124 /* end confdefs.h.  */
38125
38126                 #define _REENTRANT
38127                 $ac_includes_default
38128
38129 int
38130 main ()
38131 {
38132
38133                 #ifndef $wx_func
38134                   &$wx_func;
38135                 #endif
38136
38137
38138   ;
38139   return 0;
38140 }
38141
38142 _ACEOF
38143 rm -f conftest.$ac_objext conftest$ac_exeext
38144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38145   (eval $ac_link) 2>conftest.er1
38146   ac_status=$?
38147   grep -v '^ *+' conftest.er1 >conftest.err
38148   rm -f conftest.er1
38149   cat conftest.err >&5
38150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38151   (exit $ac_status); } &&
38152          { ac_try='test -z "$ac_cxx_werror_flag"
38153                          || test ! -s conftest.err'
38154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38155   (eval $ac_try) 2>&5
38156   ac_status=$?
38157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38158   (exit $ac_status); }; } &&
38159          { ac_try='test -s conftest$ac_exeext'
38160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38161   (eval $ac_try) 2>&5
38162   ac_status=$?
38163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38164   (exit $ac_status); }; }; then
38165   eval wx_cv_func_$wx_func=yes
38166 else
38167   echo "$as_me: failed program was:" >&5
38168 sed 's/^/| /' conftest.$ac_ext >&5
38169
38170 eval wx_cv_func_$wx_func=no
38171 fi
38172 rm -f conftest.err conftest.$ac_objext \
38173       conftest$ac_exeext conftest.$ac_ext
38174
38175 fi
38176 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38177 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38178
38179     if eval test \$wx_cv_func_$wx_func = yes
38180     then
38181       cat >>confdefs.h <<_ACEOF
38182 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38183 _ACEOF
38184
38185
38186     else
38187       :
38188
38189     fi
38190   done
38191
38192
38193 INET_LINK=
38194
38195 for ac_func in inet_addr
38196 do
38197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38198 echo "$as_me:$LINENO: checking for $ac_func" >&5
38199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38200 if eval "test \"\${$as_ac_var+set}\" = set"; then
38201   echo $ECHO_N "(cached) $ECHO_C" >&6
38202 else
38203   cat >conftest.$ac_ext <<_ACEOF
38204 /* confdefs.h.  */
38205 _ACEOF
38206 cat confdefs.h >>conftest.$ac_ext
38207 cat >>conftest.$ac_ext <<_ACEOF
38208 /* end confdefs.h.  */
38209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38211 #define $ac_func innocuous_$ac_func
38212
38213 /* System header to define __stub macros and hopefully few prototypes,
38214     which can conflict with char $ac_func (); below.
38215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38216     <limits.h> exists even on freestanding compilers.  */
38217
38218 #ifdef __STDC__
38219 # include <limits.h>
38220 #else
38221 # include <assert.h>
38222 #endif
38223
38224 #undef $ac_func
38225
38226 /* Override any gcc2 internal prototype to avoid an error.  */
38227 #ifdef __cplusplus
38228 extern "C"
38229 {
38230 #endif
38231 /* We use char because int might match the return type of a gcc2
38232    builtin and then its argument prototype would still apply.  */
38233 char $ac_func ();
38234 /* The GNU C library defines this for functions which it implements
38235     to always fail with ENOSYS.  Some functions are actually named
38236     something starting with __ and the normal name is an alias.  */
38237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38238 choke me
38239 #else
38240 char (*f) () = $ac_func;
38241 #endif
38242 #ifdef __cplusplus
38243 }
38244 #endif
38245
38246 int
38247 main ()
38248 {
38249 return f != $ac_func;
38250   ;
38251   return 0;
38252 }
38253 _ACEOF
38254 rm -f conftest.$ac_objext conftest$ac_exeext
38255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38256   (eval $ac_link) 2>conftest.er1
38257   ac_status=$?
38258   grep -v '^ *+' conftest.er1 >conftest.err
38259   rm -f conftest.er1
38260   cat conftest.err >&5
38261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262   (exit $ac_status); } &&
38263          { ac_try='test -z "$ac_cxx_werror_flag"
38264                          || test ! -s conftest.err'
38265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38266   (eval $ac_try) 2>&5
38267   ac_status=$?
38268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269   (exit $ac_status); }; } &&
38270          { ac_try='test -s conftest$ac_exeext'
38271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38272   (eval $ac_try) 2>&5
38273   ac_status=$?
38274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275   (exit $ac_status); }; }; then
38276   eval "$as_ac_var=yes"
38277 else
38278   echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38280
38281 eval "$as_ac_var=no"
38282 fi
38283 rm -f conftest.err conftest.$ac_objext \
38284       conftest$ac_exeext conftest.$ac_ext
38285 fi
38286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38288 if test `eval echo '${'$as_ac_var'}'` = yes; then
38289   cat >>confdefs.h <<_ACEOF
38290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38291 _ACEOF
38292  cat >>confdefs.h <<\_ACEOF
38293 #define HAVE_INET_ADDR 1
38294 _ACEOF
38295
38296 else
38297
38298         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38299 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38300 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38301   echo $ECHO_N "(cached) $ECHO_C" >&6
38302 else
38303   ac_check_lib_save_LIBS=$LIBS
38304 LIBS="-lnsl  $LIBS"
38305 cat >conftest.$ac_ext <<_ACEOF
38306 /* confdefs.h.  */
38307 _ACEOF
38308 cat confdefs.h >>conftest.$ac_ext
38309 cat >>conftest.$ac_ext <<_ACEOF
38310 /* end confdefs.h.  */
38311
38312 /* Override any gcc2 internal prototype to avoid an error.  */
38313 #ifdef __cplusplus
38314 extern "C"
38315 #endif
38316 /* We use char because int might match the return type of a gcc2
38317    builtin and then its argument prototype would still apply.  */
38318 char inet_addr ();
38319 int
38320 main ()
38321 {
38322 inet_addr ();
38323   ;
38324   return 0;
38325 }
38326 _ACEOF
38327 rm -f conftest.$ac_objext conftest$ac_exeext
38328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38329   (eval $ac_link) 2>conftest.er1
38330   ac_status=$?
38331   grep -v '^ *+' conftest.er1 >conftest.err
38332   rm -f conftest.er1
38333   cat conftest.err >&5
38334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335   (exit $ac_status); } &&
38336          { ac_try='test -z "$ac_cxx_werror_flag"
38337                          || test ! -s conftest.err'
38338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38339   (eval $ac_try) 2>&5
38340   ac_status=$?
38341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38342   (exit $ac_status); }; } &&
38343          { ac_try='test -s conftest$ac_exeext'
38344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38345   (eval $ac_try) 2>&5
38346   ac_status=$?
38347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348   (exit $ac_status); }; }; then
38349   ac_cv_lib_nsl_inet_addr=yes
38350 else
38351   echo "$as_me: failed program was:" >&5
38352 sed 's/^/| /' conftest.$ac_ext >&5
38353
38354 ac_cv_lib_nsl_inet_addr=no
38355 fi
38356 rm -f conftest.err conftest.$ac_objext \
38357       conftest$ac_exeext conftest.$ac_ext
38358 LIBS=$ac_check_lib_save_LIBS
38359 fi
38360 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38361 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38362 if test $ac_cv_lib_nsl_inet_addr = yes; then
38363   INET_LINK="nsl"
38364 else
38365
38366                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38367 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38368 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38369   echo $ECHO_N "(cached) $ECHO_C" >&6
38370 else
38371   ac_check_lib_save_LIBS=$LIBS
38372 LIBS="-lresolv  $LIBS"
38373 cat >conftest.$ac_ext <<_ACEOF
38374 /* confdefs.h.  */
38375 _ACEOF
38376 cat confdefs.h >>conftest.$ac_ext
38377 cat >>conftest.$ac_ext <<_ACEOF
38378 /* end confdefs.h.  */
38379
38380 /* Override any gcc2 internal prototype to avoid an error.  */
38381 #ifdef __cplusplus
38382 extern "C"
38383 #endif
38384 /* We use char because int might match the return type of a gcc2
38385    builtin and then its argument prototype would still apply.  */
38386 char inet_addr ();
38387 int
38388 main ()
38389 {
38390 inet_addr ();
38391   ;
38392   return 0;
38393 }
38394 _ACEOF
38395 rm -f conftest.$ac_objext conftest$ac_exeext
38396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38397   (eval $ac_link) 2>conftest.er1
38398   ac_status=$?
38399   grep -v '^ *+' conftest.er1 >conftest.err
38400   rm -f conftest.er1
38401   cat conftest.err >&5
38402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403   (exit $ac_status); } &&
38404          { ac_try='test -z "$ac_cxx_werror_flag"
38405                          || test ! -s conftest.err'
38406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38407   (eval $ac_try) 2>&5
38408   ac_status=$?
38409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410   (exit $ac_status); }; } &&
38411          { ac_try='test -s conftest$ac_exeext'
38412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38413   (eval $ac_try) 2>&5
38414   ac_status=$?
38415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38416   (exit $ac_status); }; }; then
38417   ac_cv_lib_resolv_inet_addr=yes
38418 else
38419   echo "$as_me: failed program was:" >&5
38420 sed 's/^/| /' conftest.$ac_ext >&5
38421
38422 ac_cv_lib_resolv_inet_addr=no
38423 fi
38424 rm -f conftest.err conftest.$ac_objext \
38425       conftest$ac_exeext conftest.$ac_ext
38426 LIBS=$ac_check_lib_save_LIBS
38427 fi
38428 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38429 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38430 if test $ac_cv_lib_resolv_inet_addr = yes; then
38431   INET_LINK="resolv"
38432 else
38433
38434                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38435 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38436 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38437   echo $ECHO_N "(cached) $ECHO_C" >&6
38438 else
38439   ac_check_lib_save_LIBS=$LIBS
38440 LIBS="-lsocket  $LIBS"
38441 cat >conftest.$ac_ext <<_ACEOF
38442 /* confdefs.h.  */
38443 _ACEOF
38444 cat confdefs.h >>conftest.$ac_ext
38445 cat >>conftest.$ac_ext <<_ACEOF
38446 /* end confdefs.h.  */
38447
38448 /* Override any gcc2 internal prototype to avoid an error.  */
38449 #ifdef __cplusplus
38450 extern "C"
38451 #endif
38452 /* We use char because int might match the return type of a gcc2
38453    builtin and then its argument prototype would still apply.  */
38454 char inet_addr ();
38455 int
38456 main ()
38457 {
38458 inet_addr ();
38459   ;
38460   return 0;
38461 }
38462 _ACEOF
38463 rm -f conftest.$ac_objext conftest$ac_exeext
38464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38465   (eval $ac_link) 2>conftest.er1
38466   ac_status=$?
38467   grep -v '^ *+' conftest.er1 >conftest.err
38468   rm -f conftest.er1
38469   cat conftest.err >&5
38470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471   (exit $ac_status); } &&
38472          { ac_try='test -z "$ac_cxx_werror_flag"
38473                          || test ! -s conftest.err'
38474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38475   (eval $ac_try) 2>&5
38476   ac_status=$?
38477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478   (exit $ac_status); }; } &&
38479          { ac_try='test -s conftest$ac_exeext'
38480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38481   (eval $ac_try) 2>&5
38482   ac_status=$?
38483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38484   (exit $ac_status); }; }; then
38485   ac_cv_lib_socket_inet_addr=yes
38486 else
38487   echo "$as_me: failed program was:" >&5
38488 sed 's/^/| /' conftest.$ac_ext >&5
38489
38490 ac_cv_lib_socket_inet_addr=no
38491 fi
38492 rm -f conftest.err conftest.$ac_objext \
38493       conftest$ac_exeext conftest.$ac_ext
38494 LIBS=$ac_check_lib_save_LIBS
38495 fi
38496 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38497 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38498 if test $ac_cv_lib_socket_inet_addr = yes; then
38499   INET_LINK="socket"
38500
38501 fi
38502
38503
38504
38505 fi
38506
38507
38508
38509 fi
38510
38511
38512
38513 fi
38514 done
38515
38516
38517
38518 for ac_func in inet_aton
38519 do
38520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38521 echo "$as_me:$LINENO: checking for $ac_func" >&5
38522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38523 if eval "test \"\${$as_ac_var+set}\" = set"; then
38524   echo $ECHO_N "(cached) $ECHO_C" >&6
38525 else
38526   cat >conftest.$ac_ext <<_ACEOF
38527 /* confdefs.h.  */
38528 _ACEOF
38529 cat confdefs.h >>conftest.$ac_ext
38530 cat >>conftest.$ac_ext <<_ACEOF
38531 /* end confdefs.h.  */
38532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38534 #define $ac_func innocuous_$ac_func
38535
38536 /* System header to define __stub macros and hopefully few prototypes,
38537     which can conflict with char $ac_func (); below.
38538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38539     <limits.h> exists even on freestanding compilers.  */
38540
38541 #ifdef __STDC__
38542 # include <limits.h>
38543 #else
38544 # include <assert.h>
38545 #endif
38546
38547 #undef $ac_func
38548
38549 /* Override any gcc2 internal prototype to avoid an error.  */
38550 #ifdef __cplusplus
38551 extern "C"
38552 {
38553 #endif
38554 /* We use char because int might match the return type of a gcc2
38555    builtin and then its argument prototype would still apply.  */
38556 char $ac_func ();
38557 /* The GNU C library defines this for functions which it implements
38558     to always fail with ENOSYS.  Some functions are actually named
38559     something starting with __ and the normal name is an alias.  */
38560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38561 choke me
38562 #else
38563 char (*f) () = $ac_func;
38564 #endif
38565 #ifdef __cplusplus
38566 }
38567 #endif
38568
38569 int
38570 main ()
38571 {
38572 return f != $ac_func;
38573   ;
38574   return 0;
38575 }
38576 _ACEOF
38577 rm -f conftest.$ac_objext conftest$ac_exeext
38578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38579   (eval $ac_link) 2>conftest.er1
38580   ac_status=$?
38581   grep -v '^ *+' conftest.er1 >conftest.err
38582   rm -f conftest.er1
38583   cat conftest.err >&5
38584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38585   (exit $ac_status); } &&
38586          { ac_try='test -z "$ac_cxx_werror_flag"
38587                          || test ! -s conftest.err'
38588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38589   (eval $ac_try) 2>&5
38590   ac_status=$?
38591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592   (exit $ac_status); }; } &&
38593          { ac_try='test -s conftest$ac_exeext'
38594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38595   (eval $ac_try) 2>&5
38596   ac_status=$?
38597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38598   (exit $ac_status); }; }; then
38599   eval "$as_ac_var=yes"
38600 else
38601   echo "$as_me: failed program was:" >&5
38602 sed 's/^/| /' conftest.$ac_ext >&5
38603
38604 eval "$as_ac_var=no"
38605 fi
38606 rm -f conftest.err conftest.$ac_objext \
38607       conftest$ac_exeext conftest.$ac_ext
38608 fi
38609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38611 if test `eval echo '${'$as_ac_var'}'` = yes; then
38612   cat >>confdefs.h <<_ACEOF
38613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38614 _ACEOF
38615  cat >>confdefs.h <<\_ACEOF
38616 #define HAVE_INET_ATON 1
38617 _ACEOF
38618
38619 else
38620
38621                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38622 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38623 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38624 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38625   echo $ECHO_N "(cached) $ECHO_C" >&6
38626 else
38627   ac_check_lib_save_LIBS=$LIBS
38628 LIBS="-l$INET_LINK  $LIBS"
38629 cat >conftest.$ac_ext <<_ACEOF
38630 /* confdefs.h.  */
38631 _ACEOF
38632 cat confdefs.h >>conftest.$ac_ext
38633 cat >>conftest.$ac_ext <<_ACEOF
38634 /* end confdefs.h.  */
38635
38636 /* Override any gcc2 internal prototype to avoid an error.  */
38637 #ifdef __cplusplus
38638 extern "C"
38639 #endif
38640 /* We use char because int might match the return type of a gcc2
38641    builtin and then its argument prototype would still apply.  */
38642 char inet_aton ();
38643 int
38644 main ()
38645 {
38646 inet_aton ();
38647   ;
38648   return 0;
38649 }
38650 _ACEOF
38651 rm -f conftest.$ac_objext conftest$ac_exeext
38652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38653   (eval $ac_link) 2>conftest.er1
38654   ac_status=$?
38655   grep -v '^ *+' conftest.er1 >conftest.err
38656   rm -f conftest.er1
38657   cat conftest.err >&5
38658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38659   (exit $ac_status); } &&
38660          { ac_try='test -z "$ac_cxx_werror_flag"
38661                          || test ! -s conftest.err'
38662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38663   (eval $ac_try) 2>&5
38664   ac_status=$?
38665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38666   (exit $ac_status); }; } &&
38667          { ac_try='test -s conftest$ac_exeext'
38668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38669   (eval $ac_try) 2>&5
38670   ac_status=$?
38671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672   (exit $ac_status); }; }; then
38673   eval "$as_ac_Lib=yes"
38674 else
38675   echo "$as_me: failed program was:" >&5
38676 sed 's/^/| /' conftest.$ac_ext >&5
38677
38678 eval "$as_ac_Lib=no"
38679 fi
38680 rm -f conftest.err conftest.$ac_objext \
38681       conftest$ac_exeext conftest.$ac_ext
38682 LIBS=$ac_check_lib_save_LIBS
38683 fi
38684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38685 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38686 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38687   cat >>confdefs.h <<\_ACEOF
38688 #define HAVE_INET_ATON 1
38689 _ACEOF
38690
38691 fi
38692
38693
38694 fi
38695 done
38696
38697
38698 if test "x$INET_LINK" != "x"; then
38699     cat >>confdefs.h <<\_ACEOF
38700 #define HAVE_INET_ADDR 1
38701 _ACEOF
38702
38703     INET_LINK=" -l$INET_LINK"
38704 fi
38705
38706 fi
38707
38708
38709
38710 EXTRALIBS_ESD=
38711 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38712 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38713 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38714   echo $ECHO_N "(cached) $ECHO_C" >&6
38715 else
38716   ac_check_lib_save_LIBS=$LIBS
38717 LIBS="-lesd  $LIBS"
38718 cat >conftest.$ac_ext <<_ACEOF
38719 /* confdefs.h.  */
38720 _ACEOF
38721 cat confdefs.h >>conftest.$ac_ext
38722 cat >>conftest.$ac_ext <<_ACEOF
38723 /* end confdefs.h.  */
38724
38725 /* Override any gcc2 internal prototype to avoid an error.  */
38726 #ifdef __cplusplus
38727 extern "C"
38728 #endif
38729 /* We use char because int might match the return type of a gcc2
38730    builtin and then its argument prototype would still apply.  */
38731 char esd_close ();
38732 int
38733 main ()
38734 {
38735 esd_close ();
38736   ;
38737   return 0;
38738 }
38739 _ACEOF
38740 rm -f conftest.$ac_objext conftest$ac_exeext
38741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38742   (eval $ac_link) 2>conftest.er1
38743   ac_status=$?
38744   grep -v '^ *+' conftest.er1 >conftest.err
38745   rm -f conftest.er1
38746   cat conftest.err >&5
38747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38748   (exit $ac_status); } &&
38749          { ac_try='test -z "$ac_cxx_werror_flag"
38750                          || test ! -s conftest.err'
38751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38752   (eval $ac_try) 2>&5
38753   ac_status=$?
38754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755   (exit $ac_status); }; } &&
38756          { ac_try='test -s conftest$ac_exeext'
38757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38758   (eval $ac_try) 2>&5
38759   ac_status=$?
38760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38761   (exit $ac_status); }; }; then
38762   ac_cv_lib_esd_esd_close=yes
38763 else
38764   echo "$as_me: failed program was:" >&5
38765 sed 's/^/| /' conftest.$ac_ext >&5
38766
38767 ac_cv_lib_esd_esd_close=no
38768 fi
38769 rm -f conftest.err conftest.$ac_objext \
38770       conftest$ac_exeext conftest.$ac_ext
38771 LIBS=$ac_check_lib_save_LIBS
38772 fi
38773 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38774 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38775 if test $ac_cv_lib_esd_esd_close = yes; then
38776
38777
38778 for ac_header in esd.h
38779 do
38780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38782   echo "$as_me:$LINENO: checking for $ac_header" >&5
38783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38785   echo $ECHO_N "(cached) $ECHO_C" >&6
38786 fi
38787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38789 else
38790   # Is the header compilable?
38791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38793 cat >conftest.$ac_ext <<_ACEOF
38794 /* confdefs.h.  */
38795 _ACEOF
38796 cat confdefs.h >>conftest.$ac_ext
38797 cat >>conftest.$ac_ext <<_ACEOF
38798 /* end confdefs.h.  */
38799 $ac_includes_default
38800 #include <$ac_header>
38801 _ACEOF
38802 rm -f conftest.$ac_objext
38803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38804   (eval $ac_compile) 2>conftest.er1
38805   ac_status=$?
38806   grep -v '^ *+' conftest.er1 >conftest.err
38807   rm -f conftest.er1
38808   cat conftest.err >&5
38809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38810   (exit $ac_status); } &&
38811          { ac_try='test -z "$ac_cxx_werror_flag"
38812                          || test ! -s conftest.err'
38813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38814   (eval $ac_try) 2>&5
38815   ac_status=$?
38816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817   (exit $ac_status); }; } &&
38818          { ac_try='test -s conftest.$ac_objext'
38819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38820   (eval $ac_try) 2>&5
38821   ac_status=$?
38822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823   (exit $ac_status); }; }; then
38824   ac_header_compiler=yes
38825 else
38826   echo "$as_me: failed program was:" >&5
38827 sed 's/^/| /' conftest.$ac_ext >&5
38828
38829 ac_header_compiler=no
38830 fi
38831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38833 echo "${ECHO_T}$ac_header_compiler" >&6
38834
38835 # Is the header present?
38836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38838 cat >conftest.$ac_ext <<_ACEOF
38839 /* confdefs.h.  */
38840 _ACEOF
38841 cat confdefs.h >>conftest.$ac_ext
38842 cat >>conftest.$ac_ext <<_ACEOF
38843 /* end confdefs.h.  */
38844 #include <$ac_header>
38845 _ACEOF
38846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38848   ac_status=$?
38849   grep -v '^ *+' conftest.er1 >conftest.err
38850   rm -f conftest.er1
38851   cat conftest.err >&5
38852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38853   (exit $ac_status); } >/dev/null; then
38854   if test -s conftest.err; then
38855     ac_cpp_err=$ac_cxx_preproc_warn_flag
38856     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
38857   else
38858     ac_cpp_err=
38859   fi
38860 else
38861   ac_cpp_err=yes
38862 fi
38863 if test -z "$ac_cpp_err"; then
38864   ac_header_preproc=yes
38865 else
38866   echo "$as_me: failed program was:" >&5
38867 sed 's/^/| /' conftest.$ac_ext >&5
38868
38869   ac_header_preproc=no
38870 fi
38871 rm -f conftest.err conftest.$ac_ext
38872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38873 echo "${ECHO_T}$ac_header_preproc" >&6
38874
38875 # So?  What about this header?
38876 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38877   yes:no: )
38878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38882     ac_header_preproc=yes
38883     ;;
38884   no:yes:* )
38885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38897     (
38898       cat <<\_ASBOX
38899 ## ----------------------------------------- ##
38900 ## Report this to wx-dev@lists.wxwidgets.org ##
38901 ## ----------------------------------------- ##
38902 _ASBOX
38903     ) |
38904       sed "s/^/$as_me: WARNING:     /" >&2
38905     ;;
38906 esac
38907 echo "$as_me:$LINENO: checking for $ac_header" >&5
38908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38910   echo $ECHO_N "(cached) $ECHO_C" >&6
38911 else
38912   eval "$as_ac_Header=\$ac_header_preproc"
38913 fi
38914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38916
38917 fi
38918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38919   cat >>confdefs.h <<_ACEOF
38920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38921 _ACEOF
38922
38923     EXTRALIBS_ESD="-lesd"
38924
38925 fi
38926
38927 done
38928
38929
38930 fi
38931
38932
38933
38934 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38935 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38936 cat >conftest.$ac_ext <<_ACEOF
38937 /* confdefs.h.  */
38938 _ACEOF
38939 cat confdefs.h >>conftest.$ac_ext
38940 cat >>conftest.$ac_ext <<_ACEOF
38941 /* end confdefs.h.  */
38942 #ifdef __linux__
38943                 #include <linux/cdrom.h>
38944                 #else
38945                 /* For Solaris */
38946                 #include <sys/cdio.h>
38947                 #endif
38948
38949 int
38950 main ()
38951 {
38952 struct cdrom_tocentry entry, old_entry;
38953   ;
38954   return 0;
38955 }
38956 _ACEOF
38957 rm -f conftest.$ac_objext
38958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38959   (eval $ac_compile) 2>conftest.er1
38960   ac_status=$?
38961   grep -v '^ *+' conftest.er1 >conftest.err
38962   rm -f conftest.er1
38963   cat conftest.err >&5
38964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965   (exit $ac_status); } &&
38966          { ac_try='test -z "$ac_cxx_werror_flag"
38967                          || test ! -s conftest.err'
38968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38969   (eval $ac_try) 2>&5
38970   ac_status=$?
38971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972   (exit $ac_status); }; } &&
38973          { ac_try='test -s conftest.$ac_objext'
38974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38975   (eval $ac_try) 2>&5
38976   ac_status=$?
38977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38978   (exit $ac_status); }; }; then
38979   echo "$as_me:$LINENO: result: yes" >&5
38980 echo "${ECHO_T}yes" >&6
38981                 cat >>confdefs.h <<\_ACEOF
38982 #define HAVE_KNOWN_CDROM_INTERFACE 1
38983 _ACEOF
38984
38985 else
38986   echo "$as_me: failed program was:" >&5
38987 sed 's/^/| /' conftest.$ac_ext >&5
38988
38989 echo "$as_me:$LINENO: result: no" >&5
38990 echo "${ECHO_T}no" >&6
38991 fi
38992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38993
38994
38995 cat >confcache <<\_ACEOF
38996 # This file is a shell script that caches the results of configure
38997 # tests run on this system so they can be shared between configure
38998 # scripts and configure runs, see configure's option --config-cache.
38999 # It is not useful on other systems.  If it contains results you don't
39000 # want to keep, you may remove or edit it.
39001 #
39002 # config.status only pays attention to the cache file if you give it
39003 # the --recheck option to rerun configure.
39004 #
39005 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39007 # following values.
39008
39009 _ACEOF
39010
39011 # The following way of writing the cache mishandles newlines in values,
39012 # but we know of no workaround that is simple, portable, and efficient.
39013 # So, don't put newlines in cache variables' values.
39014 # Ultrix sh set writes to stderr and can't be redirected directly,
39015 # and sets the high bit in the cache file unless we assign to the vars.
39016 {
39017   (set) 2>&1 |
39018     case `(ac_space=' '; set | grep ac_space) 2>&1` in
39019     *ac_space=\ *)
39020       # `set' does not quote correctly, so add quotes (double-quote
39021       # substitution turns \\\\ into \\, and sed turns \\ into \).
39022       sed -n \
39023         "s/'/'\\\\''/g;
39024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39025       ;;
39026     *)
39027       # `set' quotes correctly as required by POSIX, so do not add quotes.
39028       sed -n \
39029         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39030       ;;
39031     esac;
39032 } |
39033   sed '
39034      t clear
39035      : clear
39036      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39037      t end
39038      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39039      : end' >>confcache
39040 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39041   if test -w $cache_file; then
39042     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39043     cat confcache >$cache_file
39044   else
39045     echo "not updating unwritable cache $cache_file"
39046   fi
39047 fi
39048 rm -f confcache
39049
39050
39051 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39052
39053
39054     THREADS_LINK=
39055     THREADS_CXXFLAGS=
39056
39057     if test "$wxUSE_THREADS" = "yes" ; then
39058         if test "$USE_BEOS" = 1; then
39059             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39060 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39061             wxUSE_THREADS="no"
39062         fi
39063     fi
39064
39065     if test "$wxUSE_THREADS" = "yes" ; then
39066
39067
39068                                 THREAD_OPTS="-pthread"
39069         case "${host}" in
39070           *-*-solaris2* | *-*-sunos4* )
39071                 if test "x$GCC" = "xyes"; then
39072                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
39073                 else
39074                     THREAD_OPTS="-mt $THREAD_OPTS"
39075                 fi
39076                 ;;
39077           *-*-freebsd*)
39078                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39079                 ;;
39080           *-*-darwin* | *-*-cygwin* )
39081                                                 THREAD_OPTS=""
39082                 ;;
39083           *-*-aix*)
39084                                 THREAD_OPTS="pthreads"
39085                 ;;
39086           *-hp-hpux* )
39087                 if test "x$GCC" = "xyes"; then
39088                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39089                         THREAD_OPTS=""
39090                 else
39091                                                             THREAD_OPTS="-mt"
39092                 fi
39093                 ;;
39094
39095           *-*-irix* )
39096                                                                 if test "x$GCC" = "xyes"; then
39097                     THREAD_OPTS=""
39098                 fi
39099                 ;;
39100
39101           *-*-*UnixWare*)
39102                                 if test "x$GCC" != "xyes"; then
39103                     THREAD_OPTS="-Ethread"
39104                 fi
39105                 ;;
39106         esac
39107
39108                                 THREAD_OPTS="$THREAD_OPTS pthread none"
39109
39110                 THREADS_OK=no
39111         for flag in $THREAD_OPTS; do
39112             case $flag in
39113                 none)
39114                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39115 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39116                     ;;
39117
39118                 -*)
39119                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39120 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
39121                     THREADS_CXXFLAGS="$flag"
39122                     ;;
39123
39124                 *)
39125                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39126 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39127                     THREADS_LINK="-l$flag"
39128                     ;;
39129               esac
39130
39131               save_LIBS="$LIBS"
39132               save_CXXFLAGS="$CXXFLAGS"
39133               LIBS="$THREADS_LINK $LIBS"
39134               CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
39135
39136               cat >conftest.$ac_ext <<_ACEOF
39137 /* confdefs.h.  */
39138 _ACEOF
39139 cat confdefs.h >>conftest.$ac_ext
39140 cat >>conftest.$ac_ext <<_ACEOF
39141 /* end confdefs.h.  */
39142 #include <pthread.h>
39143 int
39144 main ()
39145 {
39146 pthread_create(0,0,0,0);
39147   ;
39148   return 0;
39149 }
39150 _ACEOF
39151 rm -f conftest.$ac_objext conftest$ac_exeext
39152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39153   (eval $ac_link) 2>conftest.er1
39154   ac_status=$?
39155   grep -v '^ *+' conftest.er1 >conftest.err
39156   rm -f conftest.er1
39157   cat conftest.err >&5
39158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39159   (exit $ac_status); } &&
39160          { ac_try='test -z "$ac_cxx_werror_flag"
39161                          || test ! -s conftest.err'
39162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39163   (eval $ac_try) 2>&5
39164   ac_status=$?
39165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39166   (exit $ac_status); }; } &&
39167          { ac_try='test -s conftest$ac_exeext'
39168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39169   (eval $ac_try) 2>&5
39170   ac_status=$?
39171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172   (exit $ac_status); }; }; then
39173   THREADS_OK=yes
39174 else
39175   echo "$as_me: failed program was:" >&5
39176 sed 's/^/| /' conftest.$ac_ext >&5
39177
39178 fi
39179 rm -f conftest.err conftest.$ac_objext \
39180       conftest$ac_exeext conftest.$ac_ext
39181
39182               LIBS="$save_LIBS"
39183               CXXFLAGS="$save_CXXFLAGS"
39184
39185               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39186 echo "${ECHO_T}$THREADS_OK" >&6
39187               if test "x$THREADS_OK" = "xyes"; then
39188                       break;
39189               fi
39190
39191               THREADS_LINK=""
39192               THREADS_CXXFLAGS=""
39193       done
39194
39195       if test "x$THREADS_OK" != "xyes"; then
39196           wxUSE_THREADS=no
39197           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39198 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39199       else
39200                               LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
39201           LIBS="$THREADS_LINK $LIBS"
39202
39203           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39204 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39205           flag=no
39206           case "${host}" in
39207             *-aix*)
39208                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39209                 flag="-D_THREAD_SAFE"
39210                 ;;
39211             *-freebsd*)
39212                 flag="-D_THREAD_SAFE"
39213                 ;;
39214             *-hp-hpux* )
39215                 flag="-D_REENTRANT"
39216                 if test "x$GCC" != "xyes"; then
39217                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39218                 fi
39219                 ;;
39220             *solaris* | alpha*-osf*)
39221                 flag="-D_REENTRANT"
39222                 ;;
39223           esac
39224           echo "$as_me:$LINENO: result: ${flag}" >&5
39225 echo "${ECHO_T}${flag}" >&6
39226           if test "x$flag" != xno; then
39227               THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
39228           fi
39229
39230                     WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
39231       fi
39232     fi
39233
39234         if test "$wxUSE_THREADS" = "yes" ; then
39235
39236 for ac_func in thr_setconcurrency
39237 do
39238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39239 echo "$as_me:$LINENO: checking for $ac_func" >&5
39240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39241 if eval "test \"\${$as_ac_var+set}\" = set"; then
39242   echo $ECHO_N "(cached) $ECHO_C" >&6
39243 else
39244   cat >conftest.$ac_ext <<_ACEOF
39245 /* confdefs.h.  */
39246 _ACEOF
39247 cat confdefs.h >>conftest.$ac_ext
39248 cat >>conftest.$ac_ext <<_ACEOF
39249 /* end confdefs.h.  */
39250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39252 #define $ac_func innocuous_$ac_func
39253
39254 /* System header to define __stub macros and hopefully few prototypes,
39255     which can conflict with char $ac_func (); below.
39256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39257     <limits.h> exists even on freestanding compilers.  */
39258
39259 #ifdef __STDC__
39260 # include <limits.h>
39261 #else
39262 # include <assert.h>
39263 #endif
39264
39265 #undef $ac_func
39266
39267 /* Override any gcc2 internal prototype to avoid an error.  */
39268 #ifdef __cplusplus
39269 extern "C"
39270 {
39271 #endif
39272 /* We use char because int might match the return type of a gcc2
39273    builtin and then its argument prototype would still apply.  */
39274 char $ac_func ();
39275 /* The GNU C library defines this for functions which it implements
39276     to always fail with ENOSYS.  Some functions are actually named
39277     something starting with __ and the normal name is an alias.  */
39278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39279 choke me
39280 #else
39281 char (*f) () = $ac_func;
39282 #endif
39283 #ifdef __cplusplus
39284 }
39285 #endif
39286
39287 int
39288 main ()
39289 {
39290 return f != $ac_func;
39291   ;
39292   return 0;
39293 }
39294 _ACEOF
39295 rm -f conftest.$ac_objext conftest$ac_exeext
39296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39297   (eval $ac_link) 2>conftest.er1
39298   ac_status=$?
39299   grep -v '^ *+' conftest.er1 >conftest.err
39300   rm -f conftest.er1
39301   cat conftest.err >&5
39302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39303   (exit $ac_status); } &&
39304          { ac_try='test -z "$ac_cxx_werror_flag"
39305                          || test ! -s conftest.err'
39306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39307   (eval $ac_try) 2>&5
39308   ac_status=$?
39309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39310   (exit $ac_status); }; } &&
39311          { ac_try='test -s conftest$ac_exeext'
39312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39313   (eval $ac_try) 2>&5
39314   ac_status=$?
39315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39316   (exit $ac_status); }; }; then
39317   eval "$as_ac_var=yes"
39318 else
39319   echo "$as_me: failed program was:" >&5
39320 sed 's/^/| /' conftest.$ac_ext >&5
39321
39322 eval "$as_ac_var=no"
39323 fi
39324 rm -f conftest.err conftest.$ac_objext \
39325       conftest$ac_exeext conftest.$ac_ext
39326 fi
39327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39329 if test `eval echo '${'$as_ac_var'}'` = yes; then
39330   cat >>confdefs.h <<_ACEOF
39331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39332 _ACEOF
39333
39334 fi
39335 done
39336
39337
39338                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39339 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39340 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39341   echo $ECHO_N "(cached) $ECHO_C" >&6
39342 else
39343
39344         cat >conftest.$ac_ext <<_ACEOF
39345 /* confdefs.h.  */
39346 _ACEOF
39347 cat confdefs.h >>conftest.$ac_ext
39348 cat >>conftest.$ac_ext <<_ACEOF
39349 /* end confdefs.h.  */
39350 #include <pthread.h>
39351                void ThreadCleanupFunc(void *p);
39352
39353 int
39354 main ()
39355 {
39356
39357                 void *p;
39358                 pthread_cleanup_push(ThreadCleanupFunc, p);
39359                 pthread_cleanup_pop(0);
39360
39361   ;
39362   return 0;
39363 }
39364 _ACEOF
39365 rm -f conftest.$ac_objext
39366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39367   (eval $ac_compile) 2>conftest.er1
39368   ac_status=$?
39369   grep -v '^ *+' conftest.er1 >conftest.err
39370   rm -f conftest.er1
39371   cat conftest.err >&5
39372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39373   (exit $ac_status); } &&
39374          { ac_try='test -z "$ac_cxx_werror_flag"
39375                          || test ! -s conftest.err'
39376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39377   (eval $ac_try) 2>&5
39378   ac_status=$?
39379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380   (exit $ac_status); }; } &&
39381          { ac_try='test -s conftest.$ac_objext'
39382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39383   (eval $ac_try) 2>&5
39384   ac_status=$?
39385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386   (exit $ac_status); }; }; then
39387
39388                wx_cv_func_pthread_cleanup=yes
39389
39390 else
39391   echo "$as_me: failed program was:" >&5
39392 sed 's/^/| /' conftest.$ac_ext >&5
39393
39394
39395                wx_cv_func_pthread_cleanup=no
39396
39397
39398 fi
39399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39400
39401 fi
39402 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39403 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39404       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39405         cat >>confdefs.h <<\_ACEOF
39406 #define wxHAVE_PTHREAD_CLEANUP 1
39407 _ACEOF
39408
39409       fi
39410
39411
39412 for ac_header in sched.h
39413 do
39414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39416   echo "$as_me:$LINENO: checking for $ac_header" >&5
39417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39419   echo $ECHO_N "(cached) $ECHO_C" >&6
39420 fi
39421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39423 else
39424   # Is the header compilable?
39425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39427 cat >conftest.$ac_ext <<_ACEOF
39428 /* confdefs.h.  */
39429 _ACEOF
39430 cat confdefs.h >>conftest.$ac_ext
39431 cat >>conftest.$ac_ext <<_ACEOF
39432 /* end confdefs.h.  */
39433 $ac_includes_default
39434 #include <$ac_header>
39435 _ACEOF
39436 rm -f conftest.$ac_objext
39437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39438   (eval $ac_compile) 2>conftest.er1
39439   ac_status=$?
39440   grep -v '^ *+' conftest.er1 >conftest.err
39441   rm -f conftest.er1
39442   cat conftest.err >&5
39443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444   (exit $ac_status); } &&
39445          { ac_try='test -z "$ac_cxx_werror_flag"
39446                          || test ! -s conftest.err'
39447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39448   (eval $ac_try) 2>&5
39449   ac_status=$?
39450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451   (exit $ac_status); }; } &&
39452          { ac_try='test -s conftest.$ac_objext'
39453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39454   (eval $ac_try) 2>&5
39455   ac_status=$?
39456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39457   (exit $ac_status); }; }; then
39458   ac_header_compiler=yes
39459 else
39460   echo "$as_me: failed program was:" >&5
39461 sed 's/^/| /' conftest.$ac_ext >&5
39462
39463 ac_header_compiler=no
39464 fi
39465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39467 echo "${ECHO_T}$ac_header_compiler" >&6
39468
39469 # Is the header present?
39470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39472 cat >conftest.$ac_ext <<_ACEOF
39473 /* confdefs.h.  */
39474 _ACEOF
39475 cat confdefs.h >>conftest.$ac_ext
39476 cat >>conftest.$ac_ext <<_ACEOF
39477 /* end confdefs.h.  */
39478 #include <$ac_header>
39479 _ACEOF
39480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39482   ac_status=$?
39483   grep -v '^ *+' conftest.er1 >conftest.err
39484   rm -f conftest.er1
39485   cat conftest.err >&5
39486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39487   (exit $ac_status); } >/dev/null; then
39488   if test -s conftest.err; then
39489     ac_cpp_err=$ac_cxx_preproc_warn_flag
39490     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
39491   else
39492     ac_cpp_err=
39493   fi
39494 else
39495   ac_cpp_err=yes
39496 fi
39497 if test -z "$ac_cpp_err"; then
39498   ac_header_preproc=yes
39499 else
39500   echo "$as_me: failed program was:" >&5
39501 sed 's/^/| /' conftest.$ac_ext >&5
39502
39503   ac_header_preproc=no
39504 fi
39505 rm -f conftest.err conftest.$ac_ext
39506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39507 echo "${ECHO_T}$ac_header_preproc" >&6
39508
39509 # So?  What about this header?
39510 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39511   yes:no: )
39512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39516     ac_header_preproc=yes
39517     ;;
39518   no:yes:* )
39519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39531     (
39532       cat <<\_ASBOX
39533 ## ----------------------------------------- ##
39534 ## Report this to wx-dev@lists.wxwidgets.org ##
39535 ## ----------------------------------------- ##
39536 _ASBOX
39537     ) |
39538       sed "s/^/$as_me: WARNING:     /" >&2
39539     ;;
39540 esac
39541 echo "$as_me:$LINENO: checking for $ac_header" >&5
39542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39544   echo $ECHO_N "(cached) $ECHO_C" >&6
39545 else
39546   eval "$as_ac_Header=\$ac_header_preproc"
39547 fi
39548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39550
39551 fi
39552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39553   cat >>confdefs.h <<_ACEOF
39554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39555 _ACEOF
39556
39557 fi
39558
39559 done
39560
39561       if test "$ac_cv_header_sched_h" = "yes"; then
39562           echo "$as_me:$LINENO: checking for sched_yield" >&5
39563 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39564 if test "${ac_cv_func_sched_yield+set}" = set; then
39565   echo $ECHO_N "(cached) $ECHO_C" >&6
39566 else
39567   cat >conftest.$ac_ext <<_ACEOF
39568 /* confdefs.h.  */
39569 _ACEOF
39570 cat confdefs.h >>conftest.$ac_ext
39571 cat >>conftest.$ac_ext <<_ACEOF
39572 /* end confdefs.h.  */
39573 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39575 #define sched_yield innocuous_sched_yield
39576
39577 /* System header to define __stub macros and hopefully few prototypes,
39578     which can conflict with char sched_yield (); below.
39579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39580     <limits.h> exists even on freestanding compilers.  */
39581
39582 #ifdef __STDC__
39583 # include <limits.h>
39584 #else
39585 # include <assert.h>
39586 #endif
39587
39588 #undef sched_yield
39589
39590 /* Override any gcc2 internal prototype to avoid an error.  */
39591 #ifdef __cplusplus
39592 extern "C"
39593 {
39594 #endif
39595 /* We use char because int might match the return type of a gcc2
39596    builtin and then its argument prototype would still apply.  */
39597 char sched_yield ();
39598 /* The GNU C library defines this for functions which it implements
39599     to always fail with ENOSYS.  Some functions are actually named
39600     something starting with __ and the normal name is an alias.  */
39601 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39602 choke me
39603 #else
39604 char (*f) () = sched_yield;
39605 #endif
39606 #ifdef __cplusplus
39607 }
39608 #endif
39609
39610 int
39611 main ()
39612 {
39613 return f != sched_yield;
39614   ;
39615   return 0;
39616 }
39617 _ACEOF
39618 rm -f conftest.$ac_objext conftest$ac_exeext
39619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39620   (eval $ac_link) 2>conftest.er1
39621   ac_status=$?
39622   grep -v '^ *+' conftest.er1 >conftest.err
39623   rm -f conftest.er1
39624   cat conftest.err >&5
39625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626   (exit $ac_status); } &&
39627          { ac_try='test -z "$ac_cxx_werror_flag"
39628                          || test ! -s conftest.err'
39629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39630   (eval $ac_try) 2>&5
39631   ac_status=$?
39632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633   (exit $ac_status); }; } &&
39634          { ac_try='test -s conftest$ac_exeext'
39635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39636   (eval $ac_try) 2>&5
39637   ac_status=$?
39638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639   (exit $ac_status); }; }; then
39640   ac_cv_func_sched_yield=yes
39641 else
39642   echo "$as_me: failed program was:" >&5
39643 sed 's/^/| /' conftest.$ac_ext >&5
39644
39645 ac_cv_func_sched_yield=no
39646 fi
39647 rm -f conftest.err conftest.$ac_objext \
39648       conftest$ac_exeext conftest.$ac_ext
39649 fi
39650 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39651 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39652 if test $ac_cv_func_sched_yield = yes; then
39653   cat >>confdefs.h <<\_ACEOF
39654 #define HAVE_SCHED_YIELD 1
39655 _ACEOF
39656
39657 else
39658
39659                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39660 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39661 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39662   echo $ECHO_N "(cached) $ECHO_C" >&6
39663 else
39664   ac_check_lib_save_LIBS=$LIBS
39665 LIBS="-lposix4  $LIBS"
39666 cat >conftest.$ac_ext <<_ACEOF
39667 /* confdefs.h.  */
39668 _ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h.  */
39672
39673 /* Override any gcc2 internal prototype to avoid an error.  */
39674 #ifdef __cplusplus
39675 extern "C"
39676 #endif
39677 /* We use char because int might match the return type of a gcc2
39678    builtin and then its argument prototype would still apply.  */
39679 char sched_yield ();
39680 int
39681 main ()
39682 {
39683 sched_yield ();
39684   ;
39685   return 0;
39686 }
39687 _ACEOF
39688 rm -f conftest.$ac_objext conftest$ac_exeext
39689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39690   (eval $ac_link) 2>conftest.er1
39691   ac_status=$?
39692   grep -v '^ *+' conftest.er1 >conftest.err
39693   rm -f conftest.er1
39694   cat conftest.err >&5
39695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39696   (exit $ac_status); } &&
39697          { ac_try='test -z "$ac_cxx_werror_flag"
39698                          || test ! -s conftest.err'
39699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39700   (eval $ac_try) 2>&5
39701   ac_status=$?
39702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703   (exit $ac_status); }; } &&
39704          { ac_try='test -s conftest$ac_exeext'
39705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39706   (eval $ac_try) 2>&5
39707   ac_status=$?
39708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39709   (exit $ac_status); }; }; then
39710   ac_cv_lib_posix4_sched_yield=yes
39711 else
39712   echo "$as_me: failed program was:" >&5
39713 sed 's/^/| /' conftest.$ac_ext >&5
39714
39715 ac_cv_lib_posix4_sched_yield=no
39716 fi
39717 rm -f conftest.err conftest.$ac_objext \
39718       conftest$ac_exeext conftest.$ac_ext
39719 LIBS=$ac_check_lib_save_LIBS
39720 fi
39721 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39722 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39723 if test $ac_cv_lib_posix4_sched_yield = yes; then
39724   cat >>confdefs.h <<\_ACEOF
39725 #define HAVE_SCHED_YIELD 1
39726 _ACEOF
39727  POSIX4_LINK=" -lposix4"
39728 else
39729   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39730 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39731
39732 fi
39733
39734
39735
39736 fi
39737
39738       fi
39739
39740                                           HAVE_PRIOR_FUNCS=0
39741       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39742 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39743 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39744   echo $ECHO_N "(cached) $ECHO_C" >&6
39745 else
39746   cat >conftest.$ac_ext <<_ACEOF
39747 /* confdefs.h.  */
39748 _ACEOF
39749 cat confdefs.h >>conftest.$ac_ext
39750 cat >>conftest.$ac_ext <<_ACEOF
39751 /* end confdefs.h.  */
39752 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39754 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39755
39756 /* System header to define __stub macros and hopefully few prototypes,
39757     which can conflict with char pthread_attr_getschedpolicy (); below.
39758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39759     <limits.h> exists even on freestanding compilers.  */
39760
39761 #ifdef __STDC__
39762 # include <limits.h>
39763 #else
39764 # include <assert.h>
39765 #endif
39766
39767 #undef pthread_attr_getschedpolicy
39768
39769 /* Override any gcc2 internal prototype to avoid an error.  */
39770 #ifdef __cplusplus
39771 extern "C"
39772 {
39773 #endif
39774 /* We use char because int might match the return type of a gcc2
39775    builtin and then its argument prototype would still apply.  */
39776 char pthread_attr_getschedpolicy ();
39777 /* The GNU C library defines this for functions which it implements
39778     to always fail with ENOSYS.  Some functions are actually named
39779     something starting with __ and the normal name is an alias.  */
39780 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39781 choke me
39782 #else
39783 char (*f) () = pthread_attr_getschedpolicy;
39784 #endif
39785 #ifdef __cplusplus
39786 }
39787 #endif
39788
39789 int
39790 main ()
39791 {
39792 return f != pthread_attr_getschedpolicy;
39793   ;
39794   return 0;
39795 }
39796 _ACEOF
39797 rm -f conftest.$ac_objext conftest$ac_exeext
39798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39799   (eval $ac_link) 2>conftest.er1
39800   ac_status=$?
39801   grep -v '^ *+' conftest.er1 >conftest.err
39802   rm -f conftest.er1
39803   cat conftest.err >&5
39804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39805   (exit $ac_status); } &&
39806          { ac_try='test -z "$ac_cxx_werror_flag"
39807                          || test ! -s conftest.err'
39808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39809   (eval $ac_try) 2>&5
39810   ac_status=$?
39811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812   (exit $ac_status); }; } &&
39813          { ac_try='test -s conftest$ac_exeext'
39814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39815   (eval $ac_try) 2>&5
39816   ac_status=$?
39817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818   (exit $ac_status); }; }; then
39819   ac_cv_func_pthread_attr_getschedpolicy=yes
39820 else
39821   echo "$as_me: failed program was:" >&5
39822 sed 's/^/| /' conftest.$ac_ext >&5
39823
39824 ac_cv_func_pthread_attr_getschedpolicy=no
39825 fi
39826 rm -f conftest.err conftest.$ac_objext \
39827       conftest$ac_exeext conftest.$ac_ext
39828 fi
39829 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39830 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39831 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39832   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39833 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39834 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39835   echo $ECHO_N "(cached) $ECHO_C" >&6
39836 else
39837   cat >conftest.$ac_ext <<_ACEOF
39838 /* confdefs.h.  */
39839 _ACEOF
39840 cat confdefs.h >>conftest.$ac_ext
39841 cat >>conftest.$ac_ext <<_ACEOF
39842 /* end confdefs.h.  */
39843 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39845 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39846
39847 /* System header to define __stub macros and hopefully few prototypes,
39848     which can conflict with char pthread_attr_setschedparam (); below.
39849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39850     <limits.h> exists even on freestanding compilers.  */
39851
39852 #ifdef __STDC__
39853 # include <limits.h>
39854 #else
39855 # include <assert.h>
39856 #endif
39857
39858 #undef pthread_attr_setschedparam
39859
39860 /* Override any gcc2 internal prototype to avoid an error.  */
39861 #ifdef __cplusplus
39862 extern "C"
39863 {
39864 #endif
39865 /* We use char because int might match the return type of a gcc2
39866    builtin and then its argument prototype would still apply.  */
39867 char pthread_attr_setschedparam ();
39868 /* The GNU C library defines this for functions which it implements
39869     to always fail with ENOSYS.  Some functions are actually named
39870     something starting with __ and the normal name is an alias.  */
39871 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39872 choke me
39873 #else
39874 char (*f) () = pthread_attr_setschedparam;
39875 #endif
39876 #ifdef __cplusplus
39877 }
39878 #endif
39879
39880 int
39881 main ()
39882 {
39883 return f != pthread_attr_setschedparam;
39884   ;
39885   return 0;
39886 }
39887 _ACEOF
39888 rm -f conftest.$ac_objext conftest$ac_exeext
39889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39890   (eval $ac_link) 2>conftest.er1
39891   ac_status=$?
39892   grep -v '^ *+' conftest.er1 >conftest.err
39893   rm -f conftest.er1
39894   cat conftest.err >&5
39895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896   (exit $ac_status); } &&
39897          { ac_try='test -z "$ac_cxx_werror_flag"
39898                          || test ! -s conftest.err'
39899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39900   (eval $ac_try) 2>&5
39901   ac_status=$?
39902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903   (exit $ac_status); }; } &&
39904          { ac_try='test -s conftest$ac_exeext'
39905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39906   (eval $ac_try) 2>&5
39907   ac_status=$?
39908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39909   (exit $ac_status); }; }; then
39910   ac_cv_func_pthread_attr_setschedparam=yes
39911 else
39912   echo "$as_me: failed program was:" >&5
39913 sed 's/^/| /' conftest.$ac_ext >&5
39914
39915 ac_cv_func_pthread_attr_setschedparam=no
39916 fi
39917 rm -f conftest.err conftest.$ac_objext \
39918       conftest$ac_exeext conftest.$ac_ext
39919 fi
39920 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39921 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39922 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39923   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39924 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39925 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39926   echo $ECHO_N "(cached) $ECHO_C" >&6
39927 else
39928   cat >conftest.$ac_ext <<_ACEOF
39929 /* confdefs.h.  */
39930 _ACEOF
39931 cat confdefs.h >>conftest.$ac_ext
39932 cat >>conftest.$ac_ext <<_ACEOF
39933 /* end confdefs.h.  */
39934 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39936 #define sched_get_priority_max innocuous_sched_get_priority_max
39937
39938 /* System header to define __stub macros and hopefully few prototypes,
39939     which can conflict with char sched_get_priority_max (); below.
39940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39941     <limits.h> exists even on freestanding compilers.  */
39942
39943 #ifdef __STDC__
39944 # include <limits.h>
39945 #else
39946 # include <assert.h>
39947 #endif
39948
39949 #undef sched_get_priority_max
39950
39951 /* Override any gcc2 internal prototype to avoid an error.  */
39952 #ifdef __cplusplus
39953 extern "C"
39954 {
39955 #endif
39956 /* We use char because int might match the return type of a gcc2
39957    builtin and then its argument prototype would still apply.  */
39958 char sched_get_priority_max ();
39959 /* The GNU C library defines this for functions which it implements
39960     to always fail with ENOSYS.  Some functions are actually named
39961     something starting with __ and the normal name is an alias.  */
39962 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39963 choke me
39964 #else
39965 char (*f) () = sched_get_priority_max;
39966 #endif
39967 #ifdef __cplusplus
39968 }
39969 #endif
39970
39971 int
39972 main ()
39973 {
39974 return f != sched_get_priority_max;
39975   ;
39976   return 0;
39977 }
39978 _ACEOF
39979 rm -f conftest.$ac_objext conftest$ac_exeext
39980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39981   (eval $ac_link) 2>conftest.er1
39982   ac_status=$?
39983   grep -v '^ *+' conftest.er1 >conftest.err
39984   rm -f conftest.er1
39985   cat conftest.err >&5
39986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39987   (exit $ac_status); } &&
39988          { ac_try='test -z "$ac_cxx_werror_flag"
39989                          || test ! -s conftest.err'
39990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39991   (eval $ac_try) 2>&5
39992   ac_status=$?
39993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994   (exit $ac_status); }; } &&
39995          { ac_try='test -s conftest$ac_exeext'
39996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39997   (eval $ac_try) 2>&5
39998   ac_status=$?
39999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40000   (exit $ac_status); }; }; then
40001   ac_cv_func_sched_get_priority_max=yes
40002 else
40003   echo "$as_me: failed program was:" >&5
40004 sed 's/^/| /' conftest.$ac_ext >&5
40005
40006 ac_cv_func_sched_get_priority_max=no
40007 fi
40008 rm -f conftest.err conftest.$ac_objext \
40009       conftest$ac_exeext conftest.$ac_ext
40010 fi
40011 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40012 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
40013 if test $ac_cv_func_sched_get_priority_max = yes; then
40014   HAVE_PRIOR_FUNCS=1
40015 else
40016   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40017 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
40018 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40019   echo $ECHO_N "(cached) $ECHO_C" >&6
40020 else
40021   ac_check_lib_save_LIBS=$LIBS
40022 LIBS="-lposix4  $LIBS"
40023 cat >conftest.$ac_ext <<_ACEOF
40024 /* confdefs.h.  */
40025 _ACEOF
40026 cat confdefs.h >>conftest.$ac_ext
40027 cat >>conftest.$ac_ext <<_ACEOF
40028 /* end confdefs.h.  */
40029
40030 /* Override any gcc2 internal prototype to avoid an error.  */
40031 #ifdef __cplusplus
40032 extern "C"
40033 #endif
40034 /* We use char because int might match the return type of a gcc2
40035    builtin and then its argument prototype would still apply.  */
40036 char sched_get_priority_max ();
40037 int
40038 main ()
40039 {
40040 sched_get_priority_max ();
40041   ;
40042   return 0;
40043 }
40044 _ACEOF
40045 rm -f conftest.$ac_objext conftest$ac_exeext
40046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40047   (eval $ac_link) 2>conftest.er1
40048   ac_status=$?
40049   grep -v '^ *+' conftest.er1 >conftest.err
40050   rm -f conftest.er1
40051   cat conftest.err >&5
40052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053   (exit $ac_status); } &&
40054          { ac_try='test -z "$ac_cxx_werror_flag"
40055                          || test ! -s conftest.err'
40056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057   (eval $ac_try) 2>&5
40058   ac_status=$?
40059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060   (exit $ac_status); }; } &&
40061          { ac_try='test -s conftest$ac_exeext'
40062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40063   (eval $ac_try) 2>&5
40064   ac_status=$?
40065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40066   (exit $ac_status); }; }; then
40067   ac_cv_lib_posix4_sched_get_priority_max=yes
40068 else
40069   echo "$as_me: failed program was:" >&5
40070 sed 's/^/| /' conftest.$ac_ext >&5
40071
40072 ac_cv_lib_posix4_sched_get_priority_max=no
40073 fi
40074 rm -f conftest.err conftest.$ac_objext \
40075       conftest$ac_exeext conftest.$ac_ext
40076 LIBS=$ac_check_lib_save_LIBS
40077 fi
40078 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40079 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
40080 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40081
40082                                 HAVE_PRIOR_FUNCS=1
40083                                 POSIX4_LINK=" -lposix4"
40084
40085 fi
40086
40087
40088 fi
40089
40090
40091 fi
40092
40093
40094 fi
40095
40096
40097       if test "$HAVE_PRIOR_FUNCS" = 1; then
40098         cat >>confdefs.h <<\_ACEOF
40099 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40100 _ACEOF
40101
40102       else
40103         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40104 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40105       fi
40106
40107       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40108 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40109 if test "${ac_cv_func_pthread_cancel+set}" = set; then
40110   echo $ECHO_N "(cached) $ECHO_C" >&6
40111 else
40112   cat >conftest.$ac_ext <<_ACEOF
40113 /* confdefs.h.  */
40114 _ACEOF
40115 cat confdefs.h >>conftest.$ac_ext
40116 cat >>conftest.$ac_ext <<_ACEOF
40117 /* end confdefs.h.  */
40118 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40120 #define pthread_cancel innocuous_pthread_cancel
40121
40122 /* System header to define __stub macros and hopefully few prototypes,
40123     which can conflict with char pthread_cancel (); below.
40124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40125     <limits.h> exists even on freestanding compilers.  */
40126
40127 #ifdef __STDC__
40128 # include <limits.h>
40129 #else
40130 # include <assert.h>
40131 #endif
40132
40133 #undef pthread_cancel
40134
40135 /* Override any gcc2 internal prototype to avoid an error.  */
40136 #ifdef __cplusplus
40137 extern "C"
40138 {
40139 #endif
40140 /* We use char because int might match the return type of a gcc2
40141    builtin and then its argument prototype would still apply.  */
40142 char pthread_cancel ();
40143 /* The GNU C library defines this for functions which it implements
40144     to always fail with ENOSYS.  Some functions are actually named
40145     something starting with __ and the normal name is an alias.  */
40146 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40147 choke me
40148 #else
40149 char (*f) () = pthread_cancel;
40150 #endif
40151 #ifdef __cplusplus
40152 }
40153 #endif
40154
40155 int
40156 main ()
40157 {
40158 return f != pthread_cancel;
40159   ;
40160   return 0;
40161 }
40162 _ACEOF
40163 rm -f conftest.$ac_objext conftest$ac_exeext
40164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40165   (eval $ac_link) 2>conftest.er1
40166   ac_status=$?
40167   grep -v '^ *+' conftest.er1 >conftest.err
40168   rm -f conftest.er1
40169   cat conftest.err >&5
40170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171   (exit $ac_status); } &&
40172          { ac_try='test -z "$ac_cxx_werror_flag"
40173                          || test ! -s conftest.err'
40174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40175   (eval $ac_try) 2>&5
40176   ac_status=$?
40177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40178   (exit $ac_status); }; } &&
40179          { ac_try='test -s conftest$ac_exeext'
40180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40181   (eval $ac_try) 2>&5
40182   ac_status=$?
40183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184   (exit $ac_status); }; }; then
40185   ac_cv_func_pthread_cancel=yes
40186 else
40187   echo "$as_me: failed program was:" >&5
40188 sed 's/^/| /' conftest.$ac_ext >&5
40189
40190 ac_cv_func_pthread_cancel=no
40191 fi
40192 rm -f conftest.err conftest.$ac_objext \
40193       conftest$ac_exeext conftest.$ac_ext
40194 fi
40195 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40196 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40197 if test $ac_cv_func_pthread_cancel = yes; then
40198   cat >>confdefs.h <<\_ACEOF
40199 #define HAVE_PTHREAD_CANCEL 1
40200 _ACEOF
40201
40202 else
40203   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40204 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40205 fi
40206
40207
40208       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40209 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40210 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40211   echo $ECHO_N "(cached) $ECHO_C" >&6
40212 else
40213   cat >conftest.$ac_ext <<_ACEOF
40214 /* confdefs.h.  */
40215 _ACEOF
40216 cat confdefs.h >>conftest.$ac_ext
40217 cat >>conftest.$ac_ext <<_ACEOF
40218 /* end confdefs.h.  */
40219 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40221 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40222
40223 /* System header to define __stub macros and hopefully few prototypes,
40224     which can conflict with char pthread_attr_setstacksize (); below.
40225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40226     <limits.h> exists even on freestanding compilers.  */
40227
40228 #ifdef __STDC__
40229 # include <limits.h>
40230 #else
40231 # include <assert.h>
40232 #endif
40233
40234 #undef pthread_attr_setstacksize
40235
40236 /* Override any gcc2 internal prototype to avoid an error.  */
40237 #ifdef __cplusplus
40238 extern "C"
40239 {
40240 #endif
40241 /* We use char because int might match the return type of a gcc2
40242    builtin and then its argument prototype would still apply.  */
40243 char pthread_attr_setstacksize ();
40244 /* The GNU C library defines this for functions which it implements
40245     to always fail with ENOSYS.  Some functions are actually named
40246     something starting with __ and the normal name is an alias.  */
40247 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40248 choke me
40249 #else
40250 char (*f) () = pthread_attr_setstacksize;
40251 #endif
40252 #ifdef __cplusplus
40253 }
40254 #endif
40255
40256 int
40257 main ()
40258 {
40259 return f != pthread_attr_setstacksize;
40260   ;
40261   return 0;
40262 }
40263 _ACEOF
40264 rm -f conftest.$ac_objext conftest$ac_exeext
40265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40266   (eval $ac_link) 2>conftest.er1
40267   ac_status=$?
40268   grep -v '^ *+' conftest.er1 >conftest.err
40269   rm -f conftest.er1
40270   cat conftest.err >&5
40271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40272   (exit $ac_status); } &&
40273          { ac_try='test -z "$ac_cxx_werror_flag"
40274                          || test ! -s conftest.err'
40275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40276   (eval $ac_try) 2>&5
40277   ac_status=$?
40278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279   (exit $ac_status); }; } &&
40280          { ac_try='test -s conftest$ac_exeext'
40281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40282   (eval $ac_try) 2>&5
40283   ac_status=$?
40284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40285   (exit $ac_status); }; }; then
40286   ac_cv_func_pthread_attr_setstacksize=yes
40287 else
40288   echo "$as_me: failed program was:" >&5
40289 sed 's/^/| /' conftest.$ac_ext >&5
40290
40291 ac_cv_func_pthread_attr_setstacksize=no
40292 fi
40293 rm -f conftest.err conftest.$ac_objext \
40294       conftest$ac_exeext conftest.$ac_ext
40295 fi
40296 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40297 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40298 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40299   cat >>confdefs.h <<\_ACEOF
40300 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40301 _ACEOF
40302
40303 fi
40304
40305
40306
40307       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40308 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40309 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40310   echo $ECHO_N "(cached) $ECHO_C" >&6
40311 else
40312
40313         cat >conftest.$ac_ext <<_ACEOF
40314 /* confdefs.h.  */
40315 _ACEOF
40316 cat confdefs.h >>conftest.$ac_ext
40317 cat >>conftest.$ac_ext <<_ACEOF
40318 /* end confdefs.h.  */
40319 #include <pthread.h>
40320 int
40321 main ()
40322 {
40323
40324                pthread_mutexattr_t attr;
40325                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40326
40327   ;
40328   return 0;
40329 }
40330 _ACEOF
40331 rm -f conftest.$ac_objext
40332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40333   (eval $ac_compile) 2>conftest.er1
40334   ac_status=$?
40335   grep -v '^ *+' conftest.er1 >conftest.err
40336   rm -f conftest.er1
40337   cat conftest.err >&5
40338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40339   (exit $ac_status); } &&
40340          { ac_try='test -z "$ac_cxx_werror_flag"
40341                          || test ! -s conftest.err'
40342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40343   (eval $ac_try) 2>&5
40344   ac_status=$?
40345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40346   (exit $ac_status); }; } &&
40347          { ac_try='test -s conftest.$ac_objext'
40348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40349   (eval $ac_try) 2>&5
40350   ac_status=$?
40351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40352   (exit $ac_status); }; }; then
40353   wx_cv_type_pthread_mutexattr_t=yes
40354 else
40355   echo "$as_me: failed program was:" >&5
40356 sed 's/^/| /' conftest.$ac_ext >&5
40357
40358 wx_cv_type_pthread_mutexattr_t=no
40359
40360 fi
40361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40362
40363 fi
40364 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40365 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40366
40367       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40368         cat >>confdefs.h <<\_ACEOF
40369 #define HAVE_PTHREAD_MUTEXATTR_T 1
40370 _ACEOF
40371
40372
40373                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40374 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40375 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40376   echo $ECHO_N "(cached) $ECHO_C" >&6
40377 else
40378
40379                        cat >conftest.$ac_ext <<_ACEOF
40380 /* confdefs.h.  */
40381 _ACEOF
40382 cat confdefs.h >>conftest.$ac_ext
40383 cat >>conftest.$ac_ext <<_ACEOF
40384 /* end confdefs.h.  */
40385 #include <pthread.h>
40386 int
40387 main ()
40388 {
40389
40390                                pthread_mutexattr_t attr;
40391                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40392
40393   ;
40394   return 0;
40395 }
40396 _ACEOF
40397 rm -f conftest.$ac_objext
40398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40399   (eval $ac_compile) 2>conftest.er1
40400   ac_status=$?
40401   grep -v '^ *+' conftest.er1 >conftest.err
40402   rm -f conftest.er1
40403   cat conftest.err >&5
40404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405   (exit $ac_status); } &&
40406          { ac_try='test -z "$ac_cxx_werror_flag"
40407                          || test ! -s conftest.err'
40408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40409   (eval $ac_try) 2>&5
40410   ac_status=$?
40411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412   (exit $ac_status); }; } &&
40413          { ac_try='test -s conftest.$ac_objext'
40414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415   (eval $ac_try) 2>&5
40416   ac_status=$?
40417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418   (exit $ac_status); }; }; then
40419   wx_cv_func_pthread_mutexattr_settype_decl=yes
40420 else
40421   echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40423
40424 wx_cv_func_pthread_mutexattr_settype_decl=no
40425
40426 fi
40427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40428
40429 fi
40430 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40431 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40432         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40433             cat >>confdefs.h <<\_ACEOF
40434 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40435 _ACEOF
40436
40437         fi
40438       else
40439                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40440 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40441 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40442   echo $ECHO_N "(cached) $ECHO_C" >&6
40443 else
40444
40445             cat >conftest.$ac_ext <<_ACEOF
40446 /* confdefs.h.  */
40447 _ACEOF
40448 cat confdefs.h >>conftest.$ac_ext
40449 cat >>conftest.$ac_ext <<_ACEOF
40450 /* end confdefs.h.  */
40451 #include <pthread.h>
40452 int
40453 main ()
40454 {
40455
40456                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40457
40458   ;
40459   return 0;
40460 }
40461 _ACEOF
40462 rm -f conftest.$ac_objext
40463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40464   (eval $ac_compile) 2>conftest.er1
40465   ac_status=$?
40466   grep -v '^ *+' conftest.er1 >conftest.err
40467   rm -f conftest.er1
40468   cat conftest.err >&5
40469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470   (exit $ac_status); } &&
40471          { ac_try='test -z "$ac_cxx_werror_flag"
40472                          || test ! -s conftest.err'
40473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40474   (eval $ac_try) 2>&5
40475   ac_status=$?
40476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477   (exit $ac_status); }; } &&
40478          { ac_try='test -s conftest.$ac_objext'
40479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40480   (eval $ac_try) 2>&5
40481   ac_status=$?
40482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40483   (exit $ac_status); }; }; then
40484
40485                     wx_cv_type_pthread_rec_mutex_init=yes
40486
40487 else
40488   echo "$as_me: failed program was:" >&5
40489 sed 's/^/| /' conftest.$ac_ext >&5
40490
40491
40492                     wx_cv_type_pthread_rec_mutex_init=no
40493
40494
40495 fi
40496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40497
40498 fi
40499 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40500 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40501         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40502           cat >>confdefs.h <<\_ACEOF
40503 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40504 _ACEOF
40505
40506         else
40507                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40508 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40509         fi
40510       fi
40511     fi
40512
40513 else
40514     if test "$wxUSE_THREADS" = "yes" ; then
40515       case "${host}" in
40516         *-*-mingw32* )
40517                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40518 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40519 if test "${wx_cv_cflags_mthread+set}" = set; then
40520   echo $ECHO_N "(cached) $ECHO_C" >&6
40521 else
40522
40523                     CXXFLAGS_OLD="$CXXFLAGS"
40524                     CXXFLAGS="-mthreads $CXXFLAGS"
40525                     cat >conftest.$ac_ext <<_ACEOF
40526 /* confdefs.h.  */
40527 _ACEOF
40528 cat confdefs.h >>conftest.$ac_ext
40529 cat >>conftest.$ac_ext <<_ACEOF
40530 /* end confdefs.h.  */
40531
40532 int
40533 main ()
40534 {
40535
40536   ;
40537   return 0;
40538 }
40539 _ACEOF
40540 rm -f conftest.$ac_objext
40541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40542   (eval $ac_compile) 2>conftest.er1
40543   ac_status=$?
40544   grep -v '^ *+' conftest.er1 >conftest.err
40545   rm -f conftest.er1
40546   cat conftest.err >&5
40547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548   (exit $ac_status); } &&
40549          { ac_try='test -z "$ac_cxx_werror_flag"
40550                          || test ! -s conftest.err'
40551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40552   (eval $ac_try) 2>&5
40553   ac_status=$?
40554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555   (exit $ac_status); }; } &&
40556          { ac_try='test -s conftest.$ac_objext'
40557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40558   (eval $ac_try) 2>&5
40559   ac_status=$?
40560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40561   (exit $ac_status); }; }; then
40562   wx_cv_cflags_mthread=yes
40563 else
40564   echo "$as_me: failed program was:" >&5
40565 sed 's/^/| /' conftest.$ac_ext >&5
40566
40567 wx_cv_cflags_mthread=no
40568
40569 fi
40570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40571
40572
40573 fi
40574 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40575 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40576
40577             if test "$wx_cv_cflags_mthread" = "yes"; then
40578                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
40579                 LDFLAGS="$LDFLAGS -mthreads"
40580             else
40581                                 CXXFLAGS="$CXXFLAGS_OLD"
40582             fi
40583         ;;
40584         *-pc-os2*emx )
40585             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40586             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
40587             LDFLAGS="$LDFLAGS -Zmt"
40588         ;;
40589       esac
40590     fi
40591 fi
40592
40593 echo "$as_me:$LINENO: checking for localtime_r" >&5
40594 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40595 if test "${ac_cv_func_localtime_r+set}" = set; then
40596   echo $ECHO_N "(cached) $ECHO_C" >&6
40597 else
40598   cat >conftest.$ac_ext <<_ACEOF
40599 /* confdefs.h.  */
40600 _ACEOF
40601 cat confdefs.h >>conftest.$ac_ext
40602 cat >>conftest.$ac_ext <<_ACEOF
40603 /* end confdefs.h.  */
40604 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40606 #define localtime_r innocuous_localtime_r
40607
40608 /* System header to define __stub macros and hopefully few prototypes,
40609     which can conflict with char localtime_r (); below.
40610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40611     <limits.h> exists even on freestanding compilers.  */
40612
40613 #ifdef __STDC__
40614 # include <limits.h>
40615 #else
40616 # include <assert.h>
40617 #endif
40618
40619 #undef localtime_r
40620
40621 /* Override any gcc2 internal prototype to avoid an error.  */
40622 #ifdef __cplusplus
40623 extern "C"
40624 {
40625 #endif
40626 /* We use char because int might match the return type of a gcc2
40627    builtin and then its argument prototype would still apply.  */
40628 char localtime_r ();
40629 /* The GNU C library defines this for functions which it implements
40630     to always fail with ENOSYS.  Some functions are actually named
40631     something starting with __ and the normal name is an alias.  */
40632 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
40633 choke me
40634 #else
40635 char (*f) () = localtime_r;
40636 #endif
40637 #ifdef __cplusplus
40638 }
40639 #endif
40640
40641 int
40642 main ()
40643 {
40644 return f != localtime_r;
40645   ;
40646   return 0;
40647 }
40648 _ACEOF
40649 rm -f conftest.$ac_objext conftest$ac_exeext
40650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40651   (eval $ac_link) 2>conftest.er1
40652   ac_status=$?
40653   grep -v '^ *+' conftest.er1 >conftest.err
40654   rm -f conftest.er1
40655   cat conftest.err >&5
40656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657   (exit $ac_status); } &&
40658          { ac_try='test -z "$ac_cxx_werror_flag"
40659                          || test ! -s conftest.err'
40660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40661   (eval $ac_try) 2>&5
40662   ac_status=$?
40663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664   (exit $ac_status); }; } &&
40665          { ac_try='test -s conftest$ac_exeext'
40666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40667   (eval $ac_try) 2>&5
40668   ac_status=$?
40669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670   (exit $ac_status); }; }; then
40671   ac_cv_func_localtime_r=yes
40672 else
40673   echo "$as_me: failed program was:" >&5
40674 sed 's/^/| /' conftest.$ac_ext >&5
40675
40676 ac_cv_func_localtime_r=no
40677 fi
40678 rm -f conftest.err conftest.$ac_objext \
40679       conftest$ac_exeext conftest.$ac_ext
40680 fi
40681 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40682 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40683 if test $ac_cv_func_localtime_r = yes; then
40684    cat >>confdefs.h <<\_ACEOF
40685 #define HAVE_LOCALTIME_R 1
40686 _ACEOF
40687
40688 fi
40689
40690 echo "$as_me:$LINENO: checking for gmtime_r" >&5
40691 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40692 if test "${ac_cv_func_gmtime_r+set}" = set; then
40693   echo $ECHO_N "(cached) $ECHO_C" >&6
40694 else
40695   cat >conftest.$ac_ext <<_ACEOF
40696 /* confdefs.h.  */
40697 _ACEOF
40698 cat confdefs.h >>conftest.$ac_ext
40699 cat >>conftest.$ac_ext <<_ACEOF
40700 /* end confdefs.h.  */
40701 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40703 #define gmtime_r innocuous_gmtime_r
40704
40705 /* System header to define __stub macros and hopefully few prototypes,
40706     which can conflict with char gmtime_r (); below.
40707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40708     <limits.h> exists even on freestanding compilers.  */
40709
40710 #ifdef __STDC__
40711 # include <limits.h>
40712 #else
40713 # include <assert.h>
40714 #endif
40715
40716 #undef gmtime_r
40717
40718 /* Override any gcc2 internal prototype to avoid an error.  */
40719 #ifdef __cplusplus
40720 extern "C"
40721 {
40722 #endif
40723 /* We use char because int might match the return type of a gcc2
40724    builtin and then its argument prototype would still apply.  */
40725 char gmtime_r ();
40726 /* The GNU C library defines this for functions which it implements
40727     to always fail with ENOSYS.  Some functions are actually named
40728     something starting with __ and the normal name is an alias.  */
40729 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40730 choke me
40731 #else
40732 char (*f) () = gmtime_r;
40733 #endif
40734 #ifdef __cplusplus
40735 }
40736 #endif
40737
40738 int
40739 main ()
40740 {
40741 return f != gmtime_r;
40742   ;
40743   return 0;
40744 }
40745 _ACEOF
40746 rm -f conftest.$ac_objext conftest$ac_exeext
40747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40748   (eval $ac_link) 2>conftest.er1
40749   ac_status=$?
40750   grep -v '^ *+' conftest.er1 >conftest.err
40751   rm -f conftest.er1
40752   cat conftest.err >&5
40753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40754   (exit $ac_status); } &&
40755          { ac_try='test -z "$ac_cxx_werror_flag"
40756                          || 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_exeext'
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   ac_cv_func_gmtime_r=yes
40769 else
40770   echo "$as_me: failed program was:" >&5
40771 sed 's/^/| /' conftest.$ac_ext >&5
40772
40773 ac_cv_func_gmtime_r=no
40774 fi
40775 rm -f conftest.err conftest.$ac_objext \
40776       conftest$ac_exeext conftest.$ac_ext
40777 fi
40778 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40779 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40780 if test $ac_cv_func_gmtime_r = yes; then
40781    cat >>confdefs.h <<\_ACEOF
40782 #define HAVE_GMTIME_R 1
40783 _ACEOF
40784
40785 fi
40786
40787 echo "$as_me:$LINENO: checking for readdir_r" >&5
40788 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40789 if test "${ac_cv_func_readdir_r+set}" = set; then
40790   echo $ECHO_N "(cached) $ECHO_C" >&6
40791 else
40792   cat >conftest.$ac_ext <<_ACEOF
40793 /* confdefs.h.  */
40794 _ACEOF
40795 cat confdefs.h >>conftest.$ac_ext
40796 cat >>conftest.$ac_ext <<_ACEOF
40797 /* end confdefs.h.  */
40798 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40800 #define readdir_r innocuous_readdir_r
40801
40802 /* System header to define __stub macros and hopefully few prototypes,
40803     which can conflict with char readdir_r (); below.
40804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40805     <limits.h> exists even on freestanding compilers.  */
40806
40807 #ifdef __STDC__
40808 # include <limits.h>
40809 #else
40810 # include <assert.h>
40811 #endif
40812
40813 #undef readdir_r
40814
40815 /* Override any gcc2 internal prototype to avoid an error.  */
40816 #ifdef __cplusplus
40817 extern "C"
40818 {
40819 #endif
40820 /* We use char because int might match the return type of a gcc2
40821    builtin and then its argument prototype would still apply.  */
40822 char readdir_r ();
40823 /* The GNU C library defines this for functions which it implements
40824     to always fail with ENOSYS.  Some functions are actually named
40825     something starting with __ and the normal name is an alias.  */
40826 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40827 choke me
40828 #else
40829 char (*f) () = readdir_r;
40830 #endif
40831 #ifdef __cplusplus
40832 }
40833 #endif
40834
40835 int
40836 main ()
40837 {
40838 return f != readdir_r;
40839   ;
40840   return 0;
40841 }
40842 _ACEOF
40843 rm -f conftest.$ac_objext conftest$ac_exeext
40844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40845   (eval $ac_link) 2>conftest.er1
40846   ac_status=$?
40847   grep -v '^ *+' conftest.er1 >conftest.err
40848   rm -f conftest.er1
40849   cat conftest.err >&5
40850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851   (exit $ac_status); } &&
40852          { ac_try='test -z "$ac_cxx_werror_flag"
40853                          || test ! -s conftest.err'
40854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40855   (eval $ac_try) 2>&5
40856   ac_status=$?
40857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858   (exit $ac_status); }; } &&
40859          { ac_try='test -s conftest$ac_exeext'
40860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40861   (eval $ac_try) 2>&5
40862   ac_status=$?
40863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864   (exit $ac_status); }; }; then
40865   ac_cv_func_readdir_r=yes
40866 else
40867   echo "$as_me: failed program was:" >&5
40868 sed 's/^/| /' conftest.$ac_ext >&5
40869
40870 ac_cv_func_readdir_r=no
40871 fi
40872 rm -f conftest.err conftest.$ac_objext \
40873       conftest$ac_exeext conftest.$ac_ext
40874 fi
40875 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40876 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40877 if test $ac_cv_func_readdir_r = yes; then
40878    cat >>confdefs.h <<\_ACEOF
40879 #define HAVE_READDIR_R 1
40880 _ACEOF
40881
40882 fi
40883
40884
40885
40886
40887     ac_ext=c
40888 ac_cpp='$CPP $CPPFLAGS'
40889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40892
40893     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40894 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40895
40896     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40897   echo $ECHO_N "(cached) $ECHO_C" >&6
40898 else
40899
40900
40901 ################################################################
40902
40903 ac_cv_func_which_gethostbyname_r=unknown
40904
40905 #
40906 # ONE ARGUMENT (sanity check)
40907 #
40908
40909 # This should fail, as there is no variant of gethostbyname_r() that takes
40910 # a single argument. If it actually compiles, then we can assume that
40911 # netdb.h is not declaring the function, and the compiler is thereby
40912 # assuming an implicit prototype. In which case, we're out of luck.
40913 #
40914 cat >conftest.$ac_ext <<_ACEOF
40915 /* confdefs.h.  */
40916 _ACEOF
40917 cat confdefs.h >>conftest.$ac_ext
40918 cat >>conftest.$ac_ext <<_ACEOF
40919 /* end confdefs.h.  */
40920 #include <netdb.h>
40921 int
40922 main ()
40923 {
40924
40925             char *name = "www.gnu.org";
40926             (void)gethostbyname_r(name) /* ; */
40927
40928   ;
40929   return 0;
40930 }
40931 _ACEOF
40932 rm -f conftest.$ac_objext
40933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40934   (eval $ac_compile) 2>conftest.er1
40935   ac_status=$?
40936   grep -v '^ *+' conftest.er1 >conftest.err
40937   rm -f conftest.er1
40938   cat conftest.err >&5
40939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40940   (exit $ac_status); } &&
40941          { ac_try='test -z "$ac_c_werror_flag"
40942                          || test ! -s conftest.err'
40943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40944   (eval $ac_try) 2>&5
40945   ac_status=$?
40946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947   (exit $ac_status); }; } &&
40948          { ac_try='test -s conftest.$ac_objext'
40949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40950   (eval $ac_try) 2>&5
40951   ac_status=$?
40952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40953   (exit $ac_status); }; }; then
40954   ac_cv_func_which_gethostbyname_r=no
40955 else
40956   echo "$as_me: failed program was:" >&5
40957 sed 's/^/| /' conftest.$ac_ext >&5
40958
40959 fi
40960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40961
40962 #
40963 # SIX ARGUMENTS
40964 # (e.g. Linux)
40965 #
40966
40967 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40968
40969 cat >conftest.$ac_ext <<_ACEOF
40970 /* confdefs.h.  */
40971 _ACEOF
40972 cat confdefs.h >>conftest.$ac_ext
40973 cat >>conftest.$ac_ext <<_ACEOF
40974 /* end confdefs.h.  */
40975 #include <netdb.h>
40976 int
40977 main ()
40978 {
40979
40980             char *name = "www.gnu.org";
40981             struct hostent ret, *retp;
40982             char buf[1024];
40983             int buflen = 1024;
40984             int my_h_errno;
40985             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40986
40987   ;
40988   return 0;
40989 }
40990 _ACEOF
40991 rm -f conftest.$ac_objext
40992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40993   (eval $ac_compile) 2>conftest.er1
40994   ac_status=$?
40995   grep -v '^ *+' conftest.er1 >conftest.err
40996   rm -f conftest.er1
40997   cat conftest.err >&5
40998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40999   (exit $ac_status); } &&
41000          { ac_try='test -z "$ac_c_werror_flag"
41001                          || test ! -s conftest.err'
41002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41003   (eval $ac_try) 2>&5
41004   ac_status=$?
41005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41006   (exit $ac_status); }; } &&
41007          { ac_try='test -s conftest.$ac_objext'
41008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41009   (eval $ac_try) 2>&5
41010   ac_status=$?
41011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41012   (exit $ac_status); }; }; then
41013   ac_cv_func_which_gethostbyname_r=six
41014 else
41015   echo "$as_me: failed program was:" >&5
41016 sed 's/^/| /' conftest.$ac_ext >&5
41017
41018 fi
41019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41020
41021 fi
41022
41023 #
41024 # FIVE ARGUMENTS
41025 # (e.g. Solaris)
41026 #
41027
41028 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41029
41030 cat >conftest.$ac_ext <<_ACEOF
41031 /* confdefs.h.  */
41032 _ACEOF
41033 cat confdefs.h >>conftest.$ac_ext
41034 cat >>conftest.$ac_ext <<_ACEOF
41035 /* end confdefs.h.  */
41036 #include <netdb.h>
41037 int
41038 main ()
41039 {
41040
41041             char *name = "www.gnu.org";
41042             struct hostent ret;
41043             char buf[1024];
41044             int buflen = 1024;
41045             int my_h_errno;
41046             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41047
41048   ;
41049   return 0;
41050 }
41051 _ACEOF
41052 rm -f conftest.$ac_objext
41053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41054   (eval $ac_compile) 2>conftest.er1
41055   ac_status=$?
41056   grep -v '^ *+' conftest.er1 >conftest.err
41057   rm -f conftest.er1
41058   cat conftest.err >&5
41059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41060   (exit $ac_status); } &&
41061          { ac_try='test -z "$ac_c_werror_flag"
41062                          || test ! -s conftest.err'
41063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41064   (eval $ac_try) 2>&5
41065   ac_status=$?
41066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41067   (exit $ac_status); }; } &&
41068          { ac_try='test -s conftest.$ac_objext'
41069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41070   (eval $ac_try) 2>&5
41071   ac_status=$?
41072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073   (exit $ac_status); }; }; then
41074   ac_cv_func_which_gethostbyname_r=five
41075 else
41076   echo "$as_me: failed program was:" >&5
41077 sed 's/^/| /' conftest.$ac_ext >&5
41078
41079 fi
41080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41081
41082 fi
41083
41084 #
41085 # THREE ARGUMENTS
41086 # (e.g. AIX, HP-UX, Tru64)
41087 #
41088
41089 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41090
41091 cat >conftest.$ac_ext <<_ACEOF
41092 /* confdefs.h.  */
41093 _ACEOF
41094 cat confdefs.h >>conftest.$ac_ext
41095 cat >>conftest.$ac_ext <<_ACEOF
41096 /* end confdefs.h.  */
41097 #include <netdb.h>
41098 int
41099 main ()
41100 {
41101
41102             char *name = "www.gnu.org";
41103             struct hostent ret;
41104             struct hostent_data data;
41105             (void)gethostbyname_r(name, &ret, &data) /* ; */
41106
41107   ;
41108   return 0;
41109 }
41110 _ACEOF
41111 rm -f conftest.$ac_objext
41112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41113   (eval $ac_compile) 2>conftest.er1
41114   ac_status=$?
41115   grep -v '^ *+' conftest.er1 >conftest.err
41116   rm -f conftest.er1
41117   cat conftest.err >&5
41118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41119   (exit $ac_status); } &&
41120          { ac_try='test -z "$ac_c_werror_flag"
41121                          || test ! -s conftest.err'
41122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41123   (eval $ac_try) 2>&5
41124   ac_status=$?
41125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41126   (exit $ac_status); }; } &&
41127          { ac_try='test -s conftest.$ac_objext'
41128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41129   (eval $ac_try) 2>&5
41130   ac_status=$?
41131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132   (exit $ac_status); }; }; then
41133   ac_cv_func_which_gethostbyname_r=three
41134 else
41135   echo "$as_me: failed program was:" >&5
41136 sed 's/^/| /' conftest.$ac_ext >&5
41137
41138 fi
41139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41140
41141 fi
41142
41143 ################################################################
41144
41145
41146 fi
41147
41148 case "$ac_cv_func_which_gethostbyname_r" in
41149     three)
41150     echo "$as_me:$LINENO: result: three" >&5
41151 echo "${ECHO_T}three" >&6
41152     cat >>confdefs.h <<\_ACEOF
41153 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41154 _ACEOF
41155
41156     ;;
41157
41158     five)
41159     echo "$as_me:$LINENO: result: five" >&5
41160 echo "${ECHO_T}five" >&6
41161     cat >>confdefs.h <<\_ACEOF
41162 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41163 _ACEOF
41164
41165     ;;
41166
41167     six)
41168     echo "$as_me:$LINENO: result: six" >&5
41169 echo "${ECHO_T}six" >&6
41170     cat >>confdefs.h <<\_ACEOF
41171 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41172 _ACEOF
41173
41174     ;;
41175
41176     no)
41177     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41178 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41179     ;;
41180
41181     unknown)
41182     echo "$as_me:$LINENO: result: can't tell" >&5
41183 echo "${ECHO_T}can't tell" >&6
41184     ;;
41185
41186     *)
41187     { { echo "$as_me:$LINENO: error: internal error" >&5
41188 echo "$as_me: error: internal error" >&2;}
41189    { (exit 1); exit 1; }; }
41190     ;;
41191 esac
41192
41193 ac_ext=cc
41194 ac_cpp='$CXXCPP $CPPFLAGS'
41195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41198
41199
41200
41201       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41202               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41203           echo "$as_me:$LINENO: checking for gethostbyname" >&5
41204 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41205 if test "${ac_cv_func_gethostbyname+set}" = set; then
41206   echo $ECHO_N "(cached) $ECHO_C" >&6
41207 else
41208   cat >conftest.$ac_ext <<_ACEOF
41209 /* confdefs.h.  */
41210 _ACEOF
41211 cat confdefs.h >>conftest.$ac_ext
41212 cat >>conftest.$ac_ext <<_ACEOF
41213 /* end confdefs.h.  */
41214 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41216 #define gethostbyname innocuous_gethostbyname
41217
41218 /* System header to define __stub macros and hopefully few prototypes,
41219     which can conflict with char gethostbyname (); below.
41220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41221     <limits.h> exists even on freestanding compilers.  */
41222
41223 #ifdef __STDC__
41224 # include <limits.h>
41225 #else
41226 # include <assert.h>
41227 #endif
41228
41229 #undef gethostbyname
41230
41231 /* Override any gcc2 internal prototype to avoid an error.  */
41232 #ifdef __cplusplus
41233 extern "C"
41234 {
41235 #endif
41236 /* We use char because int might match the return type of a gcc2
41237    builtin and then its argument prototype would still apply.  */
41238 char gethostbyname ();
41239 /* The GNU C library defines this for functions which it implements
41240     to always fail with ENOSYS.  Some functions are actually named
41241     something starting with __ and the normal name is an alias.  */
41242 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41243 choke me
41244 #else
41245 char (*f) () = gethostbyname;
41246 #endif
41247 #ifdef __cplusplus
41248 }
41249 #endif
41250
41251 int
41252 main ()
41253 {
41254 return f != gethostbyname;
41255   ;
41256   return 0;
41257 }
41258 _ACEOF
41259 rm -f conftest.$ac_objext conftest$ac_exeext
41260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41261   (eval $ac_link) 2>conftest.er1
41262   ac_status=$?
41263   grep -v '^ *+' conftest.er1 >conftest.err
41264   rm -f conftest.er1
41265   cat conftest.err >&5
41266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41267   (exit $ac_status); } &&
41268          { ac_try='test -z "$ac_cxx_werror_flag"
41269                          || test ! -s conftest.err'
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); }; } &&
41275          { ac_try='test -s conftest$ac_exeext'
41276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41277   (eval $ac_try) 2>&5
41278   ac_status=$?
41279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280   (exit $ac_status); }; }; then
41281   ac_cv_func_gethostbyname=yes
41282 else
41283   echo "$as_me: failed program was:" >&5
41284 sed 's/^/| /' conftest.$ac_ext >&5
41285
41286 ac_cv_func_gethostbyname=no
41287 fi
41288 rm -f conftest.err conftest.$ac_objext \
41289       conftest$ac_exeext conftest.$ac_ext
41290 fi
41291 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41292 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41293 if test $ac_cv_func_gethostbyname = yes; then
41294    cat >>confdefs.h <<\_ACEOF
41295 #define HAVE_GETHOSTBYNAME 1
41296 _ACEOF
41297
41298 fi
41299
41300       fi
41301
41302 echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41303 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41304 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41305   echo $ECHO_N "(cached) $ECHO_C" >&6
41306 else
41307
41308         cat >conftest.$ac_ext <<_ACEOF
41309 /* confdefs.h.  */
41310 _ACEOF
41311 cat confdefs.h >>conftest.$ac_ext
41312 cat >>conftest.$ac_ext <<_ACEOF
41313 /* end confdefs.h.  */
41314 #include <netdb.h>
41315 int
41316 main ()
41317 {
41318
41319                 char *name;
41320                 char *proto;
41321                 struct servent *se, *res;
41322                 char buffer[2048];
41323                 int buflen = 2048;
41324                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41325
41326   ;
41327   return 0;
41328 }
41329 _ACEOF
41330 rm -f conftest.$ac_objext
41331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41332   (eval $ac_compile) 2>conftest.er1
41333   ac_status=$?
41334   grep -v '^ *+' conftest.er1 >conftest.err
41335   rm -f conftest.er1
41336   cat conftest.err >&5
41337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338   (exit $ac_status); } &&
41339          { ac_try='test -z "$ac_cxx_werror_flag"
41340                          || test ! -s conftest.err'
41341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41342   (eval $ac_try) 2>&5
41343   ac_status=$?
41344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345   (exit $ac_status); }; } &&
41346          { ac_try='test -s conftest.$ac_objext'
41347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41348   (eval $ac_try) 2>&5
41349   ac_status=$?
41350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41351   (exit $ac_status); }; }; then
41352   ac_cv_func_which_getservbyname_r=six
41353 else
41354   echo "$as_me: failed program was:" >&5
41355 sed 's/^/| /' conftest.$ac_ext >&5
41356
41357
41358                 cat >conftest.$ac_ext <<_ACEOF
41359 /* confdefs.h.  */
41360 _ACEOF
41361 cat confdefs.h >>conftest.$ac_ext
41362 cat >>conftest.$ac_ext <<_ACEOF
41363 /* end confdefs.h.  */
41364 #include <netdb.h>
41365 int
41366 main ()
41367 {
41368
41369                         char *name;
41370                         char *proto;
41371                         struct servent *se;
41372                         char buffer[2048];
41373                         int buflen = 2048;
41374                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41375
41376   ;
41377   return 0;
41378 }
41379 _ACEOF
41380 rm -f conftest.$ac_objext
41381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41382   (eval $ac_compile) 2>conftest.er1
41383   ac_status=$?
41384   grep -v '^ *+' conftest.er1 >conftest.err
41385   rm -f conftest.er1
41386   cat conftest.err >&5
41387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388   (exit $ac_status); } &&
41389          { ac_try='test -z "$ac_cxx_werror_flag"
41390                          || test ! -s conftest.err'
41391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41392   (eval $ac_try) 2>&5
41393   ac_status=$?
41394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41395   (exit $ac_status); }; } &&
41396          { ac_try='test -s conftest.$ac_objext'
41397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41398   (eval $ac_try) 2>&5
41399   ac_status=$?
41400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41401   (exit $ac_status); }; }; then
41402   ac_cv_func_which_getservbyname_r=five
41403 else
41404   echo "$as_me: failed program was:" >&5
41405 sed 's/^/| /' conftest.$ac_ext >&5
41406
41407
41408                         cat >conftest.$ac_ext <<_ACEOF
41409 /* confdefs.h.  */
41410 _ACEOF
41411 cat confdefs.h >>conftest.$ac_ext
41412 cat >>conftest.$ac_ext <<_ACEOF
41413 /* end confdefs.h.  */
41414 #include <netdb.h>
41415 int
41416 main ()
41417 {
41418
41419                                 char *name;
41420                                 char *proto;
41421                                 struct servent *se;
41422                                 struct servent_data data;
41423                                 (void) getservbyname_r(name, proto, se, &data);
41424
41425   ;
41426   return 0;
41427 }
41428 _ACEOF
41429 rm -f conftest.$ac_objext
41430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41431   (eval $ac_compile) 2>conftest.er1
41432   ac_status=$?
41433   grep -v '^ *+' conftest.er1 >conftest.err
41434   rm -f conftest.er1
41435   cat conftest.err >&5
41436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41437   (exit $ac_status); } &&
41438          { ac_try='test -z "$ac_cxx_werror_flag"
41439                          || test ! -s conftest.err'
41440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41441   (eval $ac_try) 2>&5
41442   ac_status=$?
41443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41444   (exit $ac_status); }; } &&
41445          { ac_try='test -s conftest.$ac_objext'
41446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41447   (eval $ac_try) 2>&5
41448   ac_status=$?
41449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41450   (exit $ac_status); }; }; then
41451   ac_cv_func_which_getservbyname_r=four
41452 else
41453   echo "$as_me: failed program was:" >&5
41454 sed 's/^/| /' conftest.$ac_ext >&5
41455
41456 ac_cv_func_which_getservbyname_r=no
41457
41458 fi
41459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41460
41461
41462 fi
41463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41464
41465
41466 fi
41467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41468
41469
41470 fi
41471 echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41472 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
41473
41474 if test $ac_cv_func_which_getservbyname_r = six; then
41475   cat >>confdefs.h <<\_ACEOF
41476 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41477 _ACEOF
41478
41479 elif test $ac_cv_func_which_getservbyname_r = five; then
41480   cat >>confdefs.h <<\_ACEOF
41481 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41482 _ACEOF
41483
41484 elif test $ac_cv_func_which_getservbyname_r = four; then
41485   cat >>confdefs.h <<\_ACEOF
41486 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41487 _ACEOF
41488
41489 fi
41490
41491
41492       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41493               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41494
41495 for ac_func in getservbyname
41496 do
41497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41498 echo "$as_me:$LINENO: checking for $ac_func" >&5
41499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41500 if eval "test \"\${$as_ac_var+set}\" = set"; then
41501   echo $ECHO_N "(cached) $ECHO_C" >&6
41502 else
41503   cat >conftest.$ac_ext <<_ACEOF
41504 /* confdefs.h.  */
41505 _ACEOF
41506 cat confdefs.h >>conftest.$ac_ext
41507 cat >>conftest.$ac_ext <<_ACEOF
41508 /* end confdefs.h.  */
41509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41511 #define $ac_func innocuous_$ac_func
41512
41513 /* System header to define __stub macros and hopefully few prototypes,
41514     which can conflict with char $ac_func (); below.
41515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41516     <limits.h> exists even on freestanding compilers.  */
41517
41518 #ifdef __STDC__
41519 # include <limits.h>
41520 #else
41521 # include <assert.h>
41522 #endif
41523
41524 #undef $ac_func
41525
41526 /* Override any gcc2 internal prototype to avoid an error.  */
41527 #ifdef __cplusplus
41528 extern "C"
41529 {
41530 #endif
41531 /* We use char because int might match the return type of a gcc2
41532    builtin and then its argument prototype would still apply.  */
41533 char $ac_func ();
41534 /* The GNU C library defines this for functions which it implements
41535     to always fail with ENOSYS.  Some functions are actually named
41536     something starting with __ and the normal name is an alias.  */
41537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41538 choke me
41539 #else
41540 char (*f) () = $ac_func;
41541 #endif
41542 #ifdef __cplusplus
41543 }
41544 #endif
41545
41546 int
41547 main ()
41548 {
41549 return f != $ac_func;
41550   ;
41551   return 0;
41552 }
41553 _ACEOF
41554 rm -f conftest.$ac_objext conftest$ac_exeext
41555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41556   (eval $ac_link) 2>conftest.er1
41557   ac_status=$?
41558   grep -v '^ *+' conftest.er1 >conftest.err
41559   rm -f conftest.er1
41560   cat conftest.err >&5
41561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562   (exit $ac_status); } &&
41563          { ac_try='test -z "$ac_cxx_werror_flag"
41564                          || test ! -s conftest.err'
41565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41566   (eval $ac_try) 2>&5
41567   ac_status=$?
41568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41569   (exit $ac_status); }; } &&
41570          { ac_try='test -s conftest$ac_exeext'
41571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41572   (eval $ac_try) 2>&5
41573   ac_status=$?
41574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575   (exit $ac_status); }; }; then
41576   eval "$as_ac_var=yes"
41577 else
41578   echo "$as_me: failed program was:" >&5
41579 sed 's/^/| /' conftest.$ac_ext >&5
41580
41581 eval "$as_ac_var=no"
41582 fi
41583 rm -f conftest.err conftest.$ac_objext \
41584       conftest$ac_exeext conftest.$ac_ext
41585 fi
41586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41588 if test `eval echo '${'$as_ac_var'}'` = yes; then
41589   cat >>confdefs.h <<_ACEOF
41590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41591 _ACEOF
41592   cat >>confdefs.h <<\_ACEOF
41593 #define HAVE_GETSERVBYNAME 1
41594 _ACEOF
41595
41596 fi
41597 done
41598
41599       fi
41600
41601 if test "$wxUSE_THREADS" = "yes"; then
41602   cat >>confdefs.h <<\_ACEOF
41603 #define wxUSE_THREADS 1
41604 _ACEOF
41605
41606
41607   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41608 else
41609       if test "$wx_cv_func_strtok_r" = "yes"; then
41610     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41611 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41612     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41613         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41614         echo "$as_me:$LINENO: result: yes" >&5
41615 echo "${ECHO_T}yes" >&6
41616     else
41617         echo "$as_me:$LINENO: result: no" >&5
41618 echo "${ECHO_T}no" >&6
41619     fi
41620   fi
41621 fi
41622
41623 if test "$WXGTK20" = 1 ; then
41624   cat >>confdefs.h <<_ACEOF
41625 #define __WXGTK20__ $WXGTK20
41626 _ACEOF
41627
41628   WXGTK12=1
41629 fi
41630
41631 if test "$WXGTK12" = 1 ; then
41632   cat >>confdefs.h <<_ACEOF
41633 #define __WXGTK12__ $WXGTK12
41634 _ACEOF
41635
41636 fi
41637
41638 if test "$WXGTK127" = 1 ; then
41639   cat >>confdefs.h <<_ACEOF
41640 #define __WXGTK127__ $WXGTK127
41641 _ACEOF
41642
41643 fi
41644
41645 if test "$WXGPE" = 1 ; then
41646   cat >>confdefs.h <<_ACEOF
41647 #define __WXGPE__ $WXGPE
41648 _ACEOF
41649
41650 fi
41651
41652 DEBUG_CFLAGS=
41653 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41654     DEBUG_CFLAGS="-g"
41655     wxUSE_OPTIMISE=no
41656 fi
41657
41658 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41659     wxUSE_DEBUG_INFO=yes
41660     if test "$GCC" = yes; then
41661         DEBUG_CFLAGS="-ggdb"
41662     fi
41663 fi
41664
41665 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41666     cat >>confdefs.h <<\_ACEOF
41667 #define WXDEBUG 1
41668 _ACEOF
41669
41670     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41671 else
41672     if test "$wxUSE_GTK" = 1 ; then
41673         if test "x$wxGTK_VERSION" = "x1" ; then
41674             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41675         fi
41676     fi
41677 fi
41678
41679 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41680     cat >>confdefs.h <<\_ACEOF
41681 #define wxUSE_MEMORY_TRACING 1
41682 _ACEOF
41683
41684     cat >>confdefs.h <<\_ACEOF
41685 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41686 _ACEOF
41687
41688     cat >>confdefs.h <<\_ACEOF
41689 #define wxUSE_DEBUG_NEW_ALWAYS 1
41690 _ACEOF
41691
41692     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41693 fi
41694
41695 if test "$wxUSE_DMALLOC" = "yes" ; then
41696     DMALLOC_LIBS="-ldmallocthcxx"
41697 fi
41698
41699 PROFILE_FLAGS=
41700 if test "$wxUSE_PROFILE" = "yes" ; then
41701     PROFILE_FLAGS=" -pg"
41702 fi
41703
41704 if test "$GCC" = "yes" ; then
41705     if test "$wxUSE_NO_RTTI" = "yes" ; then
41706         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41707     fi
41708     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41709         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41710     fi
41711     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41712         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41713     fi
41714
41715                                                 case "${host}" in
41716       powerpc*-*-aix* )
41717         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41718         ;;
41719       *-hppa* )
41720         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41721         ;;
41722     esac
41723 fi
41724
41725 OPTIMISE_CFLAGS=
41726 if test "$wxUSE_OPTIMISE" = "no" ; then
41727     if test "$GCC" = yes ; then
41728                         OPTIMISE_CFLAGS="-O0"
41729     fi
41730 else
41731     if test "$GCC" = yes ; then
41732         case "${host}" in
41733             *-pc-os2_emx | *-pc-os2-emx )
41734                                                 OPTIMISE_CFLAGS="-O2"
41735             ;;
41736             *)
41737                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41738             ;;
41739         esac
41740     else
41741         OPTIMISE_CFLAGS="-O"
41742     fi
41743 fi
41744
41745
41746 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41747     cat >>confdefs.h <<\_ACEOF
41748 #define WXWIN_COMPATIBILITY_2_4 1
41749 _ACEOF
41750
41751
41752     WXWIN_COMPATIBILITY_2_6="yes"
41753 fi
41754
41755 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41756     cat >>confdefs.h <<\_ACEOF
41757 #define WXWIN_COMPATIBILITY_2_6 1
41758 _ACEOF
41759
41760 fi
41761
41762
41763 if test "$wxUSE_GUI" = "yes"; then
41764     cat >>confdefs.h <<\_ACEOF
41765 #define wxUSE_GUI 1
41766 _ACEOF
41767
41768
41769                                             fi
41770
41771
41772 if test "$wxUSE_UNIX" = "yes"; then
41773   cat >>confdefs.h <<\_ACEOF
41774 #define wxUSE_UNIX 1
41775 _ACEOF
41776
41777 fi
41778
41779
41780 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41781
41782     HAVE_DL_FUNCS=0
41783     HAVE_SHL_FUNCS=0
41784     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41785         if test "$USE_DARWIN" = 1; then
41786                         HAVE_DL_FUNCS=1
41787         elif test "$USE_DOS" = 1; then
41788             HAVE_DL_FUNCS=0
41789         else
41790
41791 for ac_func in dlopen
41792 do
41793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41794 echo "$as_me:$LINENO: checking for $ac_func" >&5
41795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41796 if eval "test \"\${$as_ac_var+set}\" = set"; then
41797   echo $ECHO_N "(cached) $ECHO_C" >&6
41798 else
41799   cat >conftest.$ac_ext <<_ACEOF
41800 /* confdefs.h.  */
41801 _ACEOF
41802 cat confdefs.h >>conftest.$ac_ext
41803 cat >>conftest.$ac_ext <<_ACEOF
41804 /* end confdefs.h.  */
41805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41807 #define $ac_func innocuous_$ac_func
41808
41809 /* System header to define __stub macros and hopefully few prototypes,
41810     which can conflict with char $ac_func (); below.
41811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41812     <limits.h> exists even on freestanding compilers.  */
41813
41814 #ifdef __STDC__
41815 # include <limits.h>
41816 #else
41817 # include <assert.h>
41818 #endif
41819
41820 #undef $ac_func
41821
41822 /* Override any gcc2 internal prototype to avoid an error.  */
41823 #ifdef __cplusplus
41824 extern "C"
41825 {
41826 #endif
41827 /* We use char because int might match the return type of a gcc2
41828    builtin and then its argument prototype would still apply.  */
41829 char $ac_func ();
41830 /* The GNU C library defines this for functions which it implements
41831     to always fail with ENOSYS.  Some functions are actually named
41832     something starting with __ and the normal name is an alias.  */
41833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41834 choke me
41835 #else
41836 char (*f) () = $ac_func;
41837 #endif
41838 #ifdef __cplusplus
41839 }
41840 #endif
41841
41842 int
41843 main ()
41844 {
41845 return f != $ac_func;
41846   ;
41847   return 0;
41848 }
41849 _ACEOF
41850 rm -f conftest.$ac_objext conftest$ac_exeext
41851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41852   (eval $ac_link) 2>conftest.er1
41853   ac_status=$?
41854   grep -v '^ *+' conftest.er1 >conftest.err
41855   rm -f conftest.er1
41856   cat conftest.err >&5
41857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41858   (exit $ac_status); } &&
41859          { ac_try='test -z "$ac_cxx_werror_flag"
41860                          || test ! -s conftest.err'
41861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41862   (eval $ac_try) 2>&5
41863   ac_status=$?
41864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41865   (exit $ac_status); }; } &&
41866          { ac_try='test -s conftest$ac_exeext'
41867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41868   (eval $ac_try) 2>&5
41869   ac_status=$?
41870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41871   (exit $ac_status); }; }; then
41872   eval "$as_ac_var=yes"
41873 else
41874   echo "$as_me: failed program was:" >&5
41875 sed 's/^/| /' conftest.$ac_ext >&5
41876
41877 eval "$as_ac_var=no"
41878 fi
41879 rm -f conftest.err conftest.$ac_objext \
41880       conftest$ac_exeext conftest.$ac_ext
41881 fi
41882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41884 if test `eval echo '${'$as_ac_var'}'` = yes; then
41885   cat >>confdefs.h <<_ACEOF
41886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41887 _ACEOF
41888
41889                 cat >>confdefs.h <<\_ACEOF
41890 #define HAVE_DLOPEN 1
41891 _ACEOF
41892
41893                 HAVE_DL_FUNCS=1
41894
41895 else
41896
41897                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41900   echo $ECHO_N "(cached) $ECHO_C" >&6
41901 else
41902   ac_check_lib_save_LIBS=$LIBS
41903 LIBS="-ldl  $LIBS"
41904 cat >conftest.$ac_ext <<_ACEOF
41905 /* confdefs.h.  */
41906 _ACEOF
41907 cat confdefs.h >>conftest.$ac_ext
41908 cat >>conftest.$ac_ext <<_ACEOF
41909 /* end confdefs.h.  */
41910
41911 /* Override any gcc2 internal prototype to avoid an error.  */
41912 #ifdef __cplusplus
41913 extern "C"
41914 #endif
41915 /* We use char because int might match the return type of a gcc2
41916    builtin and then its argument prototype would still apply.  */
41917 char dlopen ();
41918 int
41919 main ()
41920 {
41921 dlopen ();
41922   ;
41923   return 0;
41924 }
41925 _ACEOF
41926 rm -f conftest.$ac_objext conftest$ac_exeext
41927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41928   (eval $ac_link) 2>conftest.er1
41929   ac_status=$?
41930   grep -v '^ *+' conftest.er1 >conftest.err
41931   rm -f conftest.er1
41932   cat conftest.err >&5
41933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41934   (exit $ac_status); } &&
41935          { ac_try='test -z "$ac_cxx_werror_flag"
41936                          || test ! -s conftest.err'
41937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41938   (eval $ac_try) 2>&5
41939   ac_status=$?
41940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41941   (exit $ac_status); }; } &&
41942          { ac_try='test -s conftest$ac_exeext'
41943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41944   (eval $ac_try) 2>&5
41945   ac_status=$?
41946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41947   (exit $ac_status); }; }; then
41948   ac_cv_lib_dl_dlopen=yes
41949 else
41950   echo "$as_me: failed program was:" >&5
41951 sed 's/^/| /' conftest.$ac_ext >&5
41952
41953 ac_cv_lib_dl_dlopen=no
41954 fi
41955 rm -f conftest.err conftest.$ac_objext \
41956       conftest$ac_exeext conftest.$ac_ext
41957 LIBS=$ac_check_lib_save_LIBS
41958 fi
41959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41961 if test $ac_cv_lib_dl_dlopen = yes; then
41962
41963                                 cat >>confdefs.h <<\_ACEOF
41964 #define HAVE_DLOPEN 1
41965 _ACEOF
41966
41967                                 HAVE_DL_FUNCS=1
41968                                 DL_LINK=" -ldl$DL_LINK"
41969
41970 else
41971
41972
41973 for ac_func in shl_load
41974 do
41975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41976 echo "$as_me:$LINENO: checking for $ac_func" >&5
41977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41978 if eval "test \"\${$as_ac_var+set}\" = set"; then
41979   echo $ECHO_N "(cached) $ECHO_C" >&6
41980 else
41981   cat >conftest.$ac_ext <<_ACEOF
41982 /* confdefs.h.  */
41983 _ACEOF
41984 cat confdefs.h >>conftest.$ac_ext
41985 cat >>conftest.$ac_ext <<_ACEOF
41986 /* end confdefs.h.  */
41987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41989 #define $ac_func innocuous_$ac_func
41990
41991 /* System header to define __stub macros and hopefully few prototypes,
41992     which can conflict with char $ac_func (); below.
41993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41994     <limits.h> exists even on freestanding compilers.  */
41995
41996 #ifdef __STDC__
41997 # include <limits.h>
41998 #else
41999 # include <assert.h>
42000 #endif
42001
42002 #undef $ac_func
42003
42004 /* Override any gcc2 internal prototype to avoid an error.  */
42005 #ifdef __cplusplus
42006 extern "C"
42007 {
42008 #endif
42009 /* We use char because int might match the return type of a gcc2
42010    builtin and then its argument prototype would still apply.  */
42011 char $ac_func ();
42012 /* The GNU C library defines this for functions which it implements
42013     to always fail with ENOSYS.  Some functions are actually named
42014     something starting with __ and the normal name is an alias.  */
42015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42016 choke me
42017 #else
42018 char (*f) () = $ac_func;
42019 #endif
42020 #ifdef __cplusplus
42021 }
42022 #endif
42023
42024 int
42025 main ()
42026 {
42027 return f != $ac_func;
42028   ;
42029   return 0;
42030 }
42031 _ACEOF
42032 rm -f conftest.$ac_objext conftest$ac_exeext
42033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42034   (eval $ac_link) 2>conftest.er1
42035   ac_status=$?
42036   grep -v '^ *+' conftest.er1 >conftest.err
42037   rm -f conftest.er1
42038   cat conftest.err >&5
42039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42040   (exit $ac_status); } &&
42041          { ac_try='test -z "$ac_cxx_werror_flag"
42042                          || test ! -s conftest.err'
42043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42044   (eval $ac_try) 2>&5
42045   ac_status=$?
42046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42047   (exit $ac_status); }; } &&
42048          { ac_try='test -s conftest$ac_exeext'
42049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42050   (eval $ac_try) 2>&5
42051   ac_status=$?
42052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053   (exit $ac_status); }; }; then
42054   eval "$as_ac_var=yes"
42055 else
42056   echo "$as_me: failed program was:" >&5
42057 sed 's/^/| /' conftest.$ac_ext >&5
42058
42059 eval "$as_ac_var=no"
42060 fi
42061 rm -f conftest.err conftest.$ac_objext \
42062       conftest$ac_exeext conftest.$ac_ext
42063 fi
42064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42066 if test `eval echo '${'$as_ac_var'}'` = yes; then
42067   cat >>confdefs.h <<_ACEOF
42068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42069 _ACEOF
42070
42071                                                 cat >>confdefs.h <<\_ACEOF
42072 #define HAVE_SHL_LOAD 1
42073 _ACEOF
42074
42075                                                 HAVE_SHL_FUNCS=1
42076
42077 else
42078
42079                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42080 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
42081 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42082   echo $ECHO_N "(cached) $ECHO_C" >&6
42083 else
42084   ac_check_lib_save_LIBS=$LIBS
42085 LIBS="-lshl_load  $LIBS"
42086 cat >conftest.$ac_ext <<_ACEOF
42087 /* confdefs.h.  */
42088 _ACEOF
42089 cat confdefs.h >>conftest.$ac_ext
42090 cat >>conftest.$ac_ext <<_ACEOF
42091 /* end confdefs.h.  */
42092
42093 /* Override any gcc2 internal prototype to avoid an error.  */
42094 #ifdef __cplusplus
42095 extern "C"
42096 #endif
42097 /* We use char because int might match the return type of a gcc2
42098    builtin and then its argument prototype would still apply.  */
42099 char dld ();
42100 int
42101 main ()
42102 {
42103 dld ();
42104   ;
42105   return 0;
42106 }
42107 _ACEOF
42108 rm -f conftest.$ac_objext conftest$ac_exeext
42109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42110   (eval $ac_link) 2>conftest.er1
42111   ac_status=$?
42112   grep -v '^ *+' conftest.er1 >conftest.err
42113   rm -f conftest.er1
42114   cat conftest.err >&5
42115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42116   (exit $ac_status); } &&
42117          { ac_try='test -z "$ac_cxx_werror_flag"
42118                          || test ! -s conftest.err'
42119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42120   (eval $ac_try) 2>&5
42121   ac_status=$?
42122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42123   (exit $ac_status); }; } &&
42124          { ac_try='test -s conftest$ac_exeext'
42125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42126   (eval $ac_try) 2>&5
42127   ac_status=$?
42128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42129   (exit $ac_status); }; }; then
42130   ac_cv_lib_shl_load_dld=yes
42131 else
42132   echo "$as_me: failed program was:" >&5
42133 sed 's/^/| /' conftest.$ac_ext >&5
42134
42135 ac_cv_lib_shl_load_dld=no
42136 fi
42137 rm -f conftest.err conftest.$ac_objext \
42138       conftest$ac_exeext conftest.$ac_ext
42139 LIBS=$ac_check_lib_save_LIBS
42140 fi
42141 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42142 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42143 if test $ac_cv_lib_shl_load_dld = yes; then
42144
42145                                                                 HAVE_SHL_FUNCS=1
42146                                                                 DL_LINK=" -ldld$DL_LINK"
42147
42148 fi
42149
42150
42151 fi
42152 done
42153
42154
42155 fi
42156
42157
42158 fi
42159 done
42160
42161
42162                 if test "$HAVE_DL_FUNCS" = 1; then
42163
42164 for ac_func in dlerror
42165 do
42166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42167 echo "$as_me:$LINENO: checking for $ac_func" >&5
42168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42169 if eval "test \"\${$as_ac_var+set}\" = set"; then
42170   echo $ECHO_N "(cached) $ECHO_C" >&6
42171 else
42172   cat >conftest.$ac_ext <<_ACEOF
42173 /* confdefs.h.  */
42174 _ACEOF
42175 cat confdefs.h >>conftest.$ac_ext
42176 cat >>conftest.$ac_ext <<_ACEOF
42177 /* end confdefs.h.  */
42178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42180 #define $ac_func innocuous_$ac_func
42181
42182 /* System header to define __stub macros and hopefully few prototypes,
42183     which can conflict with char $ac_func (); below.
42184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42185     <limits.h> exists even on freestanding compilers.  */
42186
42187 #ifdef __STDC__
42188 # include <limits.h>
42189 #else
42190 # include <assert.h>
42191 #endif
42192
42193 #undef $ac_func
42194
42195 /* Override any gcc2 internal prototype to avoid an error.  */
42196 #ifdef __cplusplus
42197 extern "C"
42198 {
42199 #endif
42200 /* We use char because int might match the return type of a gcc2
42201    builtin and then its argument prototype would still apply.  */
42202 char $ac_func ();
42203 /* The GNU C library defines this for functions which it implements
42204     to always fail with ENOSYS.  Some functions are actually named
42205     something starting with __ and the normal name is an alias.  */
42206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42207 choke me
42208 #else
42209 char (*f) () = $ac_func;
42210 #endif
42211 #ifdef __cplusplus
42212 }
42213 #endif
42214
42215 int
42216 main ()
42217 {
42218 return f != $ac_func;
42219   ;
42220   return 0;
42221 }
42222 _ACEOF
42223 rm -f conftest.$ac_objext conftest$ac_exeext
42224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42225   (eval $ac_link) 2>conftest.er1
42226   ac_status=$?
42227   grep -v '^ *+' conftest.er1 >conftest.err
42228   rm -f conftest.er1
42229   cat conftest.err >&5
42230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42231   (exit $ac_status); } &&
42232          { ac_try='test -z "$ac_cxx_werror_flag"
42233                          || test ! -s conftest.err'
42234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42235   (eval $ac_try) 2>&5
42236   ac_status=$?
42237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42238   (exit $ac_status); }; } &&
42239          { ac_try='test -s conftest$ac_exeext'
42240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42241   (eval $ac_try) 2>&5
42242   ac_status=$?
42243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42244   (exit $ac_status); }; }; then
42245   eval "$as_ac_var=yes"
42246 else
42247   echo "$as_me: failed program was:" >&5
42248 sed 's/^/| /' conftest.$ac_ext >&5
42249
42250 eval "$as_ac_var=no"
42251 fi
42252 rm -f conftest.err conftest.$ac_objext \
42253       conftest$ac_exeext conftest.$ac_ext
42254 fi
42255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42257 if test `eval echo '${'$as_ac_var'}'` = yes; then
42258   cat >>confdefs.h <<_ACEOF
42259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42260 _ACEOF
42261  cat >>confdefs.h <<\_ACEOF
42262 #define HAVE_DLERROR 1
42263 _ACEOF
42264
42265 else
42266
42267                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42268 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42269 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42270   echo $ECHO_N "(cached) $ECHO_C" >&6
42271 else
42272   ac_check_lib_save_LIBS=$LIBS
42273 LIBS="-ldl  $LIBS"
42274 cat >conftest.$ac_ext <<_ACEOF
42275 /* confdefs.h.  */
42276 _ACEOF
42277 cat confdefs.h >>conftest.$ac_ext
42278 cat >>conftest.$ac_ext <<_ACEOF
42279 /* end confdefs.h.  */
42280
42281 /* Override any gcc2 internal prototype to avoid an error.  */
42282 #ifdef __cplusplus
42283 extern "C"
42284 #endif
42285 /* We use char because int might match the return type of a gcc2
42286    builtin and then its argument prototype would still apply.  */
42287 char dlerror ();
42288 int
42289 main ()
42290 {
42291 dlerror ();
42292   ;
42293   return 0;
42294 }
42295 _ACEOF
42296 rm -f conftest.$ac_objext conftest$ac_exeext
42297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42298   (eval $ac_link) 2>conftest.er1
42299   ac_status=$?
42300   grep -v '^ *+' conftest.er1 >conftest.err
42301   rm -f conftest.er1
42302   cat conftest.err >&5
42303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42304   (exit $ac_status); } &&
42305          { ac_try='test -z "$ac_cxx_werror_flag"
42306                          || test ! -s conftest.err'
42307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42308   (eval $ac_try) 2>&5
42309   ac_status=$?
42310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311   (exit $ac_status); }; } &&
42312          { ac_try='test -s conftest$ac_exeext'
42313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42314   (eval $ac_try) 2>&5
42315   ac_status=$?
42316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317   (exit $ac_status); }; }; then
42318   ac_cv_lib_dl_dlerror=yes
42319 else
42320   echo "$as_me: failed program was:" >&5
42321 sed 's/^/| /' conftest.$ac_ext >&5
42322
42323 ac_cv_lib_dl_dlerror=no
42324 fi
42325 rm -f conftest.err conftest.$ac_objext \
42326       conftest$ac_exeext conftest.$ac_ext
42327 LIBS=$ac_check_lib_save_LIBS
42328 fi
42329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42330 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42331 if test $ac_cv_lib_dl_dlerror = yes; then
42332   cat >>confdefs.h <<\_ACEOF
42333 #define HAVE_DLERROR 1
42334 _ACEOF
42335
42336 fi
42337
42338
42339
42340 fi
42341 done
42342
42343         fi
42344         fi
42345
42346         if test "$HAVE_DL_FUNCS" = 0; then
42347             if test "$HAVE_SHL_FUNCS" = 0; then
42348               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42349                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42350 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42351                   wxUSE_DYNAMIC_LOADER=no
42352                   wxUSE_DYNLIB_CLASS=no
42353               else
42354                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42355 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42356               fi
42357             fi
42358         fi
42359     fi
42360 fi
42361
42362 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42363     cat >>confdefs.h <<\_ACEOF
42364 #define wxUSE_DYNAMIC_LOADER 1
42365 _ACEOF
42366
42367 fi
42368 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42369     cat >>confdefs.h <<\_ACEOF
42370 #define wxUSE_DYNLIB_CLASS 1
42371 _ACEOF
42372
42373 fi
42374
42375
42376
42377 if test "$wxUSE_PLUGINS" = "yes" ; then
42378     if test "$wxUSE_SHARED" = "no" ; then
42379         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42380 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42381         wxUSE_PLUGINS=no
42382     fi
42383     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42384         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42385 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42386         wxUSE_PLUGINS=no
42387     fi
42388     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42389         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42390 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42391         wxUSE_PLUGINS=no
42392     fi
42393     if test "$wxUSE_PLUGINS" = "yes" ; then
42394         cat >>confdefs.h <<\_ACEOF
42395 #define wxUSE_PLUGINS 1
42396 _ACEOF
42397
42398     fi
42399 fi
42400
42401
42402 if test "$wxUSE_STL" = "yes"; then
42403   cat >>confdefs.h <<\_ACEOF
42404 #define wxUSE_STL 1
42405 _ACEOF
42406
42407 fi
42408
42409 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42410   cat >>confdefs.h <<\_ACEOF
42411 #define wxUSE_APPLE_IEEE 1
42412 _ACEOF
42413
42414 fi
42415
42416 if test "$wxUSE_TIMER" = "yes"; then
42417   cat >>confdefs.h <<\_ACEOF
42418 #define wxUSE_TIMER 1
42419 _ACEOF
42420
42421 fi
42422
42423 if test "$USE_UNIX" = "1" ; then
42424                 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42425 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
42426 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42427   echo $ECHO_N "(cached) $ECHO_C" >&6
42428 else
42429
42430         cat >conftest.$ac_ext <<_ACEOF
42431 /* confdefs.h.  */
42432 _ACEOF
42433 cat confdefs.h >>conftest.$ac_ext
42434 cat >>conftest.$ac_ext <<_ACEOF
42435 /* end confdefs.h.  */
42436
42437                 #include <sys/ioctl.h>
42438                 #include <sys/soundcard.h>
42439
42440 int
42441 main ()
42442 {
42443
42444                 ioctl(0, SNDCTL_DSP_SPEED, 0);
42445
42446   ;
42447   return 0;
42448 }
42449 _ACEOF
42450 rm -f conftest.$ac_objext conftest$ac_exeext
42451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42452   (eval $ac_link) 2>conftest.er1
42453   ac_status=$?
42454   grep -v '^ *+' conftest.er1 >conftest.err
42455   rm -f conftest.er1
42456   cat conftest.err >&5
42457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42458   (exit $ac_status); } &&
42459          { ac_try='test -z "$ac_cxx_werror_flag"
42460                          || test ! -s conftest.err'
42461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42462   (eval $ac_try) 2>&5
42463   ac_status=$?
42464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465   (exit $ac_status); }; } &&
42466          { ac_try='test -s conftest$ac_exeext'
42467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42468   (eval $ac_try) 2>&5
42469   ac_status=$?
42470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471   (exit $ac_status); }; }; then
42472   ac_cv_header_sys_soundcard=yes
42473 else
42474   echo "$as_me: failed program was:" >&5
42475 sed 's/^/| /' conftest.$ac_ext >&5
42476
42477
42478                 saveLibs="$LIBS"
42479                 LIBS="$saveLibs -lossaudio"
42480                 cat >conftest.$ac_ext <<_ACEOF
42481 /* confdefs.h.  */
42482 _ACEOF
42483 cat confdefs.h >>conftest.$ac_ext
42484 cat >>conftest.$ac_ext <<_ACEOF
42485 /* end confdefs.h.  */
42486
42487                         #include <sys/ioctl.h>
42488                         #include <sys/soundcard.h>
42489
42490 int
42491 main ()
42492 {
42493
42494                         ioctl(0, SNDCTL_DSP_SPEED, 0);
42495
42496   ;
42497   return 0;
42498 }
42499 _ACEOF
42500 rm -f conftest.$ac_objext conftest$ac_exeext
42501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42502   (eval $ac_link) 2>conftest.er1
42503   ac_status=$?
42504   grep -v '^ *+' conftest.er1 >conftest.err
42505   rm -f conftest.er1
42506   cat conftest.err >&5
42507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42508   (exit $ac_status); } &&
42509          { ac_try='test -z "$ac_cxx_werror_flag"
42510                          || test ! -s conftest.err'
42511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42512   (eval $ac_try) 2>&5
42513   ac_status=$?
42514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42515   (exit $ac_status); }; } &&
42516          { ac_try='test -s conftest$ac_exeext'
42517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42518   (eval $ac_try) 2>&5
42519   ac_status=$?
42520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521   (exit $ac_status); }; }; then
42522   ac_cv_header_sys_soundcard=yes
42523 else
42524   echo "$as_me: failed program was:" >&5
42525 sed 's/^/| /' conftest.$ac_ext >&5
42526
42527
42528                         LIBS="$saveLibs"
42529                         ac_cv_header_sys_soundcard=no
42530
42531
42532 fi
42533 rm -f conftest.err conftest.$ac_objext \
42534       conftest$ac_exeext conftest.$ac_ext
42535
42536
42537 fi
42538 rm -f conftest.err conftest.$ac_objext \
42539       conftest$ac_exeext conftest.$ac_ext
42540
42541 fi
42542 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42543 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
42544
42545     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42546         cat >>confdefs.h <<\_ACEOF
42547 #define HAVE_SYS_SOUNDCARD_H 1
42548 _ACEOF
42549
42550     else
42551         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42552     fi
42553 fi
42554 WITH_PLUGIN_SDL=0
42555 if test "$wxUSE_SOUND" = "yes"; then
42556   if test "$USE_UNIX" = "1" ; then
42557     if test "$wxUSE_LIBSDL" != "no"; then
42558
42559 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42560 if test "${with_sdl_prefix+set}" = set; then
42561   withval="$with_sdl_prefix"
42562   sdl_prefix="$withval"
42563 else
42564   sdl_prefix=""
42565 fi;
42566
42567 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42568 if test "${with_sdl_exec_prefix+set}" = set; then
42569   withval="$with_sdl_exec_prefix"
42570   sdl_exec_prefix="$withval"
42571 else
42572   sdl_exec_prefix=""
42573 fi;
42574 # Check whether --enable-sdltest or --disable-sdltest was given.
42575 if test "${enable_sdltest+set}" = set; then
42576   enableval="$enable_sdltest"
42577
42578 else
42579   enable_sdltest=yes
42580 fi;
42581
42582   if test x$sdl_exec_prefix != x ; then
42583     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42584     if test x${SDL_CONFIG+set} != xset ; then
42585       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42586     fi
42587   fi
42588   if test x$sdl_prefix != x ; then
42589     sdl_args="$sdl_args --prefix=$sdl_prefix"
42590     if test x${SDL_CONFIG+set} != xset ; then
42591       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42592     fi
42593   fi
42594
42595   if test "x$prefix" != xNONE; then
42596     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42597   fi
42598   # Extract the first word of "sdl-config", so it can be a program name with args.
42599 set dummy sdl-config; ac_word=$2
42600 echo "$as_me:$LINENO: checking for $ac_word" >&5
42601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42602 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42603   echo $ECHO_N "(cached) $ECHO_C" >&6
42604 else
42605   case $SDL_CONFIG in
42606   [\\/]* | ?:[\\/]*)
42607   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42608   ;;
42609   *)
42610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42611 for as_dir in $PATH
42612 do
42613   IFS=$as_save_IFS
42614   test -z "$as_dir" && as_dir=.
42615   for ac_exec_ext in '' $ac_executable_extensions; do
42616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42617     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42619     break 2
42620   fi
42621 done
42622 done
42623
42624   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42625   ;;
42626 esac
42627 fi
42628 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42629
42630 if test -n "$SDL_CONFIG"; then
42631   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42632 echo "${ECHO_T}$SDL_CONFIG" >&6
42633 else
42634   echo "$as_me:$LINENO: result: no" >&5
42635 echo "${ECHO_T}no" >&6
42636 fi
42637
42638   min_sdl_version=1.2.0
42639   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42640 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42641   no_sdl=""
42642   if test "$SDL_CONFIG" = "no" ; then
42643     no_sdl=yes
42644   else
42645     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42646     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42647
42648     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42649            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42650     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42651            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42652     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42653            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42654     if test "x$enable_sdltest" = "xyes" ; then
42655       ac_save_CFLAGS="$CFLAGS"
42656       ac_save_CXXFLAGS="$CXXFLAGS"
42657       ac_save_LIBS="$LIBS"
42658       CFLAGS="$CFLAGS $SDL_CFLAGS"
42659       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42660       LIBS="$LIBS $SDL_LIBS"
42661       rm -f conf.sdltest
42662       if test "$cross_compiling" = yes; then
42663   echo $ac_n "cross compiling; assumed OK... $ac_c"
42664 else
42665   cat >conftest.$ac_ext <<_ACEOF
42666 /* confdefs.h.  */
42667 _ACEOF
42668 cat confdefs.h >>conftest.$ac_ext
42669 cat >>conftest.$ac_ext <<_ACEOF
42670 /* end confdefs.h.  */
42671
42672 #include <stdio.h>
42673 #include <stdlib.h>
42674 #include <string.h>
42675 #include "SDL.h"
42676
42677 char*
42678 my_strdup (char *str)
42679 {
42680   char *new_str;
42681
42682   if (str)
42683     {
42684       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42685       strcpy (new_str, str);
42686     }
42687   else
42688     new_str = NULL;
42689
42690   return new_str;
42691 }
42692
42693 int main (int argc, char *argv[])
42694 {
42695   int major, minor, micro;
42696   char *tmp_version;
42697
42698   /* This hangs on some systems (?)
42699   system ("touch conf.sdltest");
42700   */
42701   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42702
42703   /* HP/UX 9 (%@#!) writes to sscanf strings */
42704   tmp_version = my_strdup("$min_sdl_version");
42705   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42706      printf("%s, bad version string\n", "$min_sdl_version");
42707      exit(1);
42708    }
42709
42710    if (($sdl_major_version > major) ||
42711       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42712       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42713     {
42714       return 0;
42715     }
42716   else
42717     {
42718       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42719       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42720       printf("*** best to upgrade to the required version.\n");
42721       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42722       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42723       printf("*** config.cache before re-running configure\n");
42724       return 1;
42725     }
42726 }
42727
42728
42729 _ACEOF
42730 rm -f conftest$ac_exeext
42731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42732   (eval $ac_link) 2>&5
42733   ac_status=$?
42734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42737   (eval $ac_try) 2>&5
42738   ac_status=$?
42739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42740   (exit $ac_status); }; }; then
42741   :
42742 else
42743   echo "$as_me: program exited with status $ac_status" >&5
42744 echo "$as_me: failed program was:" >&5
42745 sed 's/^/| /' conftest.$ac_ext >&5
42746
42747 ( exit $ac_status )
42748 no_sdl=yes
42749 fi
42750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42751 fi
42752        CFLAGS="$ac_save_CFLAGS"
42753        CXXFLAGS="$ac_save_CXXFLAGS"
42754        LIBS="$ac_save_LIBS"
42755      fi
42756   fi
42757   if test "x$no_sdl" = x ; then
42758      echo "$as_me:$LINENO: result: yes" >&5
42759 echo "${ECHO_T}yes" >&6
42760
42761                     EXTRALIBS_SDL="$SDL_LIBS"
42762                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42763                     cat >>confdefs.h <<\_ACEOF
42764 #define wxUSE_LIBSDL 1
42765 _ACEOF
42766
42767
42768   else
42769      echo "$as_me:$LINENO: result: no" >&5
42770 echo "${ECHO_T}no" >&6
42771      if test "$SDL_CONFIG" = "no" ; then
42772        echo "*** The sdl-config script installed by SDL could not be found"
42773        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42774        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42775        echo "*** full path to sdl-config."
42776      else
42777        if test -f conf.sdltest ; then
42778         :
42779        else
42780           echo "*** Could not run SDL test program, checking why..."
42781           CFLAGS="$CFLAGS $SDL_CFLAGS"
42782           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42783           LIBS="$LIBS $SDL_LIBS"
42784           cat >conftest.$ac_ext <<_ACEOF
42785 /* confdefs.h.  */
42786 _ACEOF
42787 cat confdefs.h >>conftest.$ac_ext
42788 cat >>conftest.$ac_ext <<_ACEOF
42789 /* end confdefs.h.  */
42790
42791 #include <stdio.h>
42792 #include "SDL.h"
42793
42794 int main(int argc, char *argv[])
42795 { return 0; }
42796 #undef  main
42797 #define main K_and_R_C_main
42798
42799 int
42800 main ()
42801 {
42802  return 0;
42803   ;
42804   return 0;
42805 }
42806 _ACEOF
42807 rm -f conftest.$ac_objext conftest$ac_exeext
42808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42809   (eval $ac_link) 2>conftest.er1
42810   ac_status=$?
42811   grep -v '^ *+' conftest.er1 >conftest.err
42812   rm -f conftest.er1
42813   cat conftest.err >&5
42814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42815   (exit $ac_status); } &&
42816          { ac_try='test -z "$ac_cxx_werror_flag"
42817                          || test ! -s conftest.err'
42818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42819   (eval $ac_try) 2>&5
42820   ac_status=$?
42821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42822   (exit $ac_status); }; } &&
42823          { ac_try='test -s conftest$ac_exeext'
42824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42825   (eval $ac_try) 2>&5
42826   ac_status=$?
42827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828   (exit $ac_status); }; }; then
42829    echo "*** The test program compiled, but did not run. This usually means"
42830           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42831           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42832           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42833           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42834           echo "*** is required on your system"
42835           echo "***"
42836           echo "*** If you have an old version installed, it is best to remove it, although"
42837           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42838 else
42839   echo "$as_me: failed program was:" >&5
42840 sed 's/^/| /' conftest.$ac_ext >&5
42841
42842  echo "*** The test program failed to compile or link. See the file config.log for the"
42843           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42844           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42845           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42846 fi
42847 rm -f conftest.err conftest.$ac_objext \
42848       conftest$ac_exeext conftest.$ac_ext
42849           CFLAGS="$ac_save_CFLAGS"
42850           CXXFLAGS="$ac_save_CXXFLAGS"
42851           LIBS="$ac_save_LIBS"
42852        fi
42853      fi
42854      SDL_CFLAGS=""
42855      SDL_LIBS=""
42856      wxUSE_LIBSDL="no"
42857   fi
42858
42859
42860   rm -f conf.sdltest
42861
42862       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42863         WITH_PLUGIN_SDL=1
42864       fi
42865     fi
42866   fi
42867
42868   cat >>confdefs.h <<\_ACEOF
42869 #define wxUSE_SOUND 1
42870 _ACEOF
42871
42872   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42873 fi
42874
42875 if test "$WXGTK20" = 1; then
42876     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42877         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42878
42879
42880 pkg_failed=no
42881 echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42882 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
42883
42884 if test -n "$PKG_CONFIG"; then
42885     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42886         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42887     else
42888         if test -n "$PKG_CONFIG" && \
42889     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42890   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42891   ac_status=$?
42892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42893   (exit $ac_status); }; then
42894   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42895 else
42896   pkg_failed=yes
42897 fi
42898     fi
42899 else
42900         pkg_failed=untried
42901 fi
42902 if test -n "$PKG_CONFIG"; then
42903     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42904         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42905     else
42906         if test -n "$PKG_CONFIG" && \
42907     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42908   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42909   ac_status=$?
42910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42911   (exit $ac_status); }; then
42912   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42913 else
42914   pkg_failed=yes
42915 fi
42916     fi
42917 else
42918         pkg_failed=untried
42919 fi
42920
42921
42922
42923 if test $pkg_failed = yes; then
42924
42925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42926         _pkg_short_errors_supported=yes
42927 else
42928         _pkg_short_errors_supported=no
42929 fi
42930         if test $_pkg_short_errors_supported = yes; then
42931                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42932         else
42933                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42934         fi
42935         # Put the nasty error message in config.log where it belongs
42936         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42937
42938
42939                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42940 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42941                         wxUSE_LIBGNOMEPRINT="no"
42942
42943
42944 elif test $pkg_failed = untried; then
42945
42946                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42947 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42948                         wxUSE_LIBGNOMEPRINT="no"
42949
42950
42951 else
42952         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42953         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42954         echo "$as_me:$LINENO: result: yes" >&5
42955 echo "${ECHO_T}yes" >&6
42956
42957                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42958                         cat >>confdefs.h <<\_ACEOF
42959 #define wxUSE_LIBGNOMEPRINT 1
42960 _ACEOF
42961
42962
42963 fi
42964         fi
42965     fi
42966 fi
42967
42968 if test "$WXGTK20" = 1; then
42969     if test "$wxUSE_MIMETYPE" = "yes" ; then
42970         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42971
42972
42973 pkg_failed=no
42974 echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42975 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
42976
42977 if test -n "$PKG_CONFIG"; then
42978     if test -n "$GNOMEVFS_CFLAGS"; then
42979         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42980     else
42981         if test -n "$PKG_CONFIG" && \
42982     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42983   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42984   ac_status=$?
42985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986   (exit $ac_status); }; then
42987   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42988 else
42989   pkg_failed=yes
42990 fi
42991     fi
42992 else
42993         pkg_failed=untried
42994 fi
42995 if test -n "$PKG_CONFIG"; then
42996     if test -n "$GNOMEVFS_LIBS"; then
42997         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42998     else
42999         if test -n "$PKG_CONFIG" && \
43000     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43001   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43002   ac_status=$?
43003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004   (exit $ac_status); }; then
43005   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43006 else
43007   pkg_failed=yes
43008 fi
43009     fi
43010 else
43011         pkg_failed=untried
43012 fi
43013
43014
43015
43016 if test $pkg_failed = yes; then
43017
43018 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43019         _pkg_short_errors_supported=yes
43020 else
43021         _pkg_short_errors_supported=no
43022 fi
43023         if test $_pkg_short_errors_supported = yes; then
43024                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43025         else
43026                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43027         fi
43028         # Put the nasty error message in config.log where it belongs
43029         echo "$GNOMEVFS_PKG_ERRORS" >&5
43030
43031
43032                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43033 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43034                         wxUSE_LIBGNOMEVFS="no"
43035
43036
43037 elif test $pkg_failed = untried; then
43038
43039                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43040 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43041                         wxUSE_LIBGNOMEVFS="no"
43042
43043
43044 else
43045         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43046         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43047         echo "$as_me:$LINENO: result: yes" >&5
43048 echo "${ECHO_T}yes" >&6
43049
43050                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43051                         cat >>confdefs.h <<\_ACEOF
43052 #define wxUSE_LIBGNOMEVFS 1
43053 _ACEOF
43054
43055
43056 fi
43057         fi
43058     fi
43059 fi
43060
43061 if test "$WXGTK20" = 1; then
43062     if test "$wxUSE_LIBHILDON" = "yes" ; then
43063
43064 pkg_failed=no
43065 echo "$as_me:$LINENO: checking for HILDON" >&5
43066 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
43067
43068 if test -n "$PKG_CONFIG"; then
43069     if test -n "$HILDON_CFLAGS"; then
43070         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43071     else
43072         if test -n "$PKG_CONFIG" && \
43073     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43074   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43075   ac_status=$?
43076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43077   (exit $ac_status); }; then
43078   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43079 else
43080   pkg_failed=yes
43081 fi
43082     fi
43083 else
43084         pkg_failed=untried
43085 fi
43086 if test -n "$PKG_CONFIG"; then
43087     if test -n "$HILDON_LIBS"; then
43088         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43089     else
43090         if test -n "$PKG_CONFIG" && \
43091     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43092   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43093   ac_status=$?
43094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43095   (exit $ac_status); }; then
43096   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43097 else
43098   pkg_failed=yes
43099 fi
43100     fi
43101 else
43102         pkg_failed=untried
43103 fi
43104
43105
43106
43107 if test $pkg_failed = yes; then
43108
43109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43110         _pkg_short_errors_supported=yes
43111 else
43112         _pkg_short_errors_supported=no
43113 fi
43114         if test $_pkg_short_errors_supported = yes; then
43115                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43116         else
43117                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43118         fi
43119         # Put the nasty error message in config.log where it belongs
43120         echo "$HILDON_PKG_ERRORS" >&5
43121
43122
43123                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43124 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43125                         wxUSE_LIBHILDON="no"
43126
43127
43128 elif test $pkg_failed = untried; then
43129
43130                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43131 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43132                         wxUSE_LIBHILDON="no"
43133
43134
43135 else
43136         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43137         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43138         echo "$as_me:$LINENO: result: yes" >&5
43139 echo "${ECHO_T}yes" >&6
43140
43141                 EXTRALIBS_HILDON="$HILDON_LIBS"
43142                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43143                 cat >>confdefs.h <<\_ACEOF
43144 #define wxUSE_LIBHILDON 1
43145 _ACEOF
43146
43147
43148 fi
43149     fi
43150 fi
43151
43152 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43153   cat >>confdefs.h <<\_ACEOF
43154 #define wxUSE_CMDLINE_PARSER 1
43155 _ACEOF
43156
43157 fi
43158
43159 if test "$wxUSE_STOPWATCH" = "yes"; then
43160   cat >>confdefs.h <<\_ACEOF
43161 #define wxUSE_STOPWATCH 1
43162 _ACEOF
43163
43164 fi
43165
43166 if test "$wxUSE_DATETIME" = "yes"; then
43167   cat >>confdefs.h <<\_ACEOF
43168 #define wxUSE_DATETIME 1
43169 _ACEOF
43170
43171 fi
43172
43173 if test "$wxUSE_FILE" = "yes"; then
43174   cat >>confdefs.h <<\_ACEOF
43175 #define wxUSE_FILE 1
43176 _ACEOF
43177
43178 fi
43179
43180 if test "$wxUSE_FFILE" = "yes"; then
43181   cat >>confdefs.h <<\_ACEOF
43182 #define wxUSE_FFILE 1
43183 _ACEOF
43184
43185 fi
43186
43187 if test "$wxUSE_FILESYSTEM" = "yes"; then
43188   cat >>confdefs.h <<\_ACEOF
43189 #define wxUSE_FILESYSTEM 1
43190 _ACEOF
43191
43192 fi
43193
43194 if test "$wxUSE_FS_ZIP" = "yes"; then
43195   cat >>confdefs.h <<\_ACEOF
43196 #define wxUSE_FS_ZIP 1
43197 _ACEOF
43198
43199 fi
43200
43201 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43202   cat >>confdefs.h <<\_ACEOF
43203 #define wxUSE_ARCHIVE_STREAMS 1
43204 _ACEOF
43205
43206 fi
43207
43208 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43209   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43210     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43211 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43212   elif test "$wxUSE_ZLIB" = "no"; then
43213     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43214 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43215   else
43216     cat >>confdefs.h <<\_ACEOF
43217 #define wxUSE_ZIPSTREAM 1
43218 _ACEOF
43219
43220   fi
43221 fi
43222
43223 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43224   if test "$USE_UNIX" != 1; then
43225     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43226 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43227     wxUSE_ON_FATAL_EXCEPTION=no
43228   else
43229     cat >>confdefs.h <<\_ACEOF
43230 #define wxUSE_ON_FATAL_EXCEPTION 1
43231 _ACEOF
43232
43233   fi
43234 fi
43235
43236 if test "$wxUSE_STACKWALKER" = "yes"; then
43237     cat >>confdefs.h <<\_ACEOF
43238 #define wxUSE_STACKWALKER 1
43239 _ACEOF
43240
43241 fi
43242
43243 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43244     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43245         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43246 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43247         wxUSE_DEBUGREPORT=no
43248     else
43249         cat >>confdefs.h <<\_ACEOF
43250 #define wxUSE_DEBUGREPORT 1
43251 _ACEOF
43252
43253         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43254             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43255         fi
43256     fi
43257 fi
43258
43259 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43260   cat >>confdefs.h <<\_ACEOF
43261 #define wxUSE_SNGLINST_CHECKER 1
43262 _ACEOF
43263
43264 fi
43265
43266 if test "$wxUSE_BUSYINFO" = "yes"; then
43267   cat >>confdefs.h <<\_ACEOF
43268 #define wxUSE_BUSYINFO 1
43269 _ACEOF
43270
43271 fi
43272
43273 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43274   cat >>confdefs.h <<\_ACEOF
43275 #define wxUSE_STD_IOSTREAM 1
43276 _ACEOF
43277
43278 fi
43279
43280 if test "$wxUSE_STD_STRING" = "yes"; then
43281   cat >>confdefs.h <<\_ACEOF
43282 #define wxUSE_STD_STRING 1
43283 _ACEOF
43284
43285 fi
43286
43287 if test "$wxUSE_STDPATHS" = "yes"; then
43288   cat >>confdefs.h <<\_ACEOF
43289 #define wxUSE_STDPATHS 1
43290 _ACEOF
43291
43292 fi
43293
43294 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43295     cat >>confdefs.h <<\_ACEOF
43296 #define wxUSE_TEXTBUFFER 1
43297 _ACEOF
43298
43299 fi
43300
43301 if test "$wxUSE_TEXTFILE" = "yes"; then
43302   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43303     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43304 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43305   else
43306     cat >>confdefs.h <<\_ACEOF
43307 #define wxUSE_TEXTFILE 1
43308 _ACEOF
43309
43310   fi
43311 fi
43312
43313 if test "$wxUSE_CONFIG" = "yes" ; then
43314   if test "$wxUSE_TEXTFILE" != "yes"; then
43315     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43316 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43317   else
43318     cat >>confdefs.h <<\_ACEOF
43319 #define wxUSE_CONFIG 1
43320 _ACEOF
43321
43322     cat >>confdefs.h <<\_ACEOF
43323 #define wxUSE_CONFIG_NATIVE 1
43324 _ACEOF
43325
43326     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43327   fi
43328 fi
43329
43330 if test "$wxUSE_INTL" = "yes" ; then
43331   if test "$wxUSE_FILE" != "yes"; then
43332     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43333 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43334   else
43335     cat >>confdefs.h <<\_ACEOF
43336 #define wxUSE_INTL 1
43337 _ACEOF
43338
43339     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43340     GUIDIST="$GUIDIST INTL_DIST"
43341   fi
43342 fi
43343
43344 if test "$wxUSE_LOG" = "yes"; then
43345   cat >>confdefs.h <<\_ACEOF
43346 #define wxUSE_LOG 1
43347 _ACEOF
43348
43349
43350     if test "$wxUSE_LOGGUI" = "yes"; then
43351       cat >>confdefs.h <<\_ACEOF
43352 #define wxUSE_LOGGUI 1
43353 _ACEOF
43354
43355     fi
43356
43357     if test "$wxUSE_LOGWINDOW" = "yes"; then
43358       cat >>confdefs.h <<\_ACEOF
43359 #define wxUSE_LOGWINDOW 1
43360 _ACEOF
43361
43362     fi
43363
43364     if test "$wxUSE_LOGDIALOG" = "yes"; then
43365       cat >>confdefs.h <<\_ACEOF
43366 #define wxUSE_LOG_DIALOG 1
43367 _ACEOF
43368
43369     fi
43370
43371         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43372 fi
43373
43374 if test "$wxUSE_LONGLONG" = "yes"; then
43375   cat >>confdefs.h <<\_ACEOF
43376 #define wxUSE_LONGLONG 1
43377 _ACEOF
43378
43379 fi
43380
43381 if test "$wxUSE_GEOMETRY" = "yes"; then
43382   cat >>confdefs.h <<\_ACEOF
43383 #define wxUSE_GEOMETRY 1
43384 _ACEOF
43385
43386 fi
43387
43388 if test "$wxUSE_STREAMS" = "yes" ; then
43389   cat >>confdefs.h <<\_ACEOF
43390 #define wxUSE_STREAMS 1
43391 _ACEOF
43392
43393 fi
43394
43395 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43396   cat >>confdefs.h <<\_ACEOF
43397 #define wxUSE_PRINTF_POS_PARAMS 1
43398 _ACEOF
43399
43400 fi
43401
43402
43403
43404 if test "$wxUSE_DATETIME" = "yes"; then
43405
43406 for ac_func in strptime
43407 do
43408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43409 echo "$as_me:$LINENO: checking for $ac_func" >&5
43410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43411 if eval "test \"\${$as_ac_var+set}\" = set"; then
43412   echo $ECHO_N "(cached) $ECHO_C" >&6
43413 else
43414   cat >conftest.$ac_ext <<_ACEOF
43415 /* confdefs.h.  */
43416 _ACEOF
43417 cat confdefs.h >>conftest.$ac_ext
43418 cat >>conftest.$ac_ext <<_ACEOF
43419 /* end confdefs.h.  */
43420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43422 #define $ac_func innocuous_$ac_func
43423
43424 /* System header to define __stub macros and hopefully few prototypes,
43425     which can conflict with char $ac_func (); below.
43426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43427     <limits.h> exists even on freestanding compilers.  */
43428
43429 #ifdef __STDC__
43430 # include <limits.h>
43431 #else
43432 # include <assert.h>
43433 #endif
43434
43435 #undef $ac_func
43436
43437 /* Override any gcc2 internal prototype to avoid an error.  */
43438 #ifdef __cplusplus
43439 extern "C"
43440 {
43441 #endif
43442 /* We use char because int might match the return type of a gcc2
43443    builtin and then its argument prototype would still apply.  */
43444 char $ac_func ();
43445 /* The GNU C library defines this for functions which it implements
43446     to always fail with ENOSYS.  Some functions are actually named
43447     something starting with __ and the normal name is an alias.  */
43448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43449 choke me
43450 #else
43451 char (*f) () = $ac_func;
43452 #endif
43453 #ifdef __cplusplus
43454 }
43455 #endif
43456
43457 int
43458 main ()
43459 {
43460 return f != $ac_func;
43461   ;
43462   return 0;
43463 }
43464 _ACEOF
43465 rm -f conftest.$ac_objext conftest$ac_exeext
43466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43467   (eval $ac_link) 2>conftest.er1
43468   ac_status=$?
43469   grep -v '^ *+' conftest.er1 >conftest.err
43470   rm -f conftest.er1
43471   cat conftest.err >&5
43472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43473   (exit $ac_status); } &&
43474          { ac_try='test -z "$ac_cxx_werror_flag"
43475                          || test ! -s conftest.err'
43476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43477   (eval $ac_try) 2>&5
43478   ac_status=$?
43479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43480   (exit $ac_status); }; } &&
43481          { ac_try='test -s conftest$ac_exeext'
43482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43483   (eval $ac_try) 2>&5
43484   ac_status=$?
43485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486   (exit $ac_status); }; }; then
43487   eval "$as_ac_var=yes"
43488 else
43489   echo "$as_me: failed program was:" >&5
43490 sed 's/^/| /' conftest.$ac_ext >&5
43491
43492 eval "$as_ac_var=no"
43493 fi
43494 rm -f conftest.err conftest.$ac_objext \
43495       conftest$ac_exeext conftest.$ac_ext
43496 fi
43497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43499 if test `eval echo '${'$as_ac_var'}'` = yes; then
43500   cat >>confdefs.h <<_ACEOF
43501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43502 _ACEOF
43503
43504 fi
43505 done
43506
43507     if test "$ac_cv_func_strptime" = "yes"; then
43508         echo "$as_me:$LINENO: checking for strptime declaration" >&5
43509 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43510 if test "${wx_cv_func_strptime_decl+set}" = set; then
43511   echo $ECHO_N "(cached) $ECHO_C" >&6
43512 else
43513
43514                 cat >conftest.$ac_ext <<_ACEOF
43515 /* confdefs.h.  */
43516 _ACEOF
43517 cat confdefs.h >>conftest.$ac_ext
43518 cat >>conftest.$ac_ext <<_ACEOF
43519 /* end confdefs.h.  */
43520
43521                         #include <time.h>
43522
43523 int
43524 main ()
43525 {
43526
43527                         struct tm t;
43528                         strptime("foo", "bar", &t);
43529
43530   ;
43531   return 0;
43532 }
43533 _ACEOF
43534 rm -f conftest.$ac_objext
43535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43536   (eval $ac_compile) 2>conftest.er1
43537   ac_status=$?
43538   grep -v '^ *+' conftest.er1 >conftest.err
43539   rm -f conftest.er1
43540   cat conftest.err >&5
43541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43542   (exit $ac_status); } &&
43543          { ac_try='test -z "$ac_cxx_werror_flag"
43544                          || test ! -s conftest.err'
43545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43546   (eval $ac_try) 2>&5
43547   ac_status=$?
43548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43549   (exit $ac_status); }; } &&
43550          { ac_try='test -s conftest.$ac_objext'
43551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43552   (eval $ac_try) 2>&5
43553   ac_status=$?
43554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43555   (exit $ac_status); }; }; then
43556   wx_cv_func_strptime_decl=yes
43557 else
43558   echo "$as_me: failed program was:" >&5
43559 sed 's/^/| /' conftest.$ac_ext >&5
43560
43561 wx_cv_func_strptime_decl=no
43562
43563 fi
43564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43565
43566
43567 fi
43568 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43569 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43570     fi
43571     if test "$wx_cv_func_strptime_decl" = "yes"; then
43572         cat >>confdefs.h <<\_ACEOF
43573 #define HAVE_STRPTIME_DECL 1
43574 _ACEOF
43575
43576     fi
43577
43578             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43579 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43580 if test "${wx_cv_var_timezone+set}" = set; then
43581   echo $ECHO_N "(cached) $ECHO_C" >&6
43582 else
43583
43584                         cat >conftest.$ac_ext <<_ACEOF
43585 /* confdefs.h.  */
43586 _ACEOF
43587 cat confdefs.h >>conftest.$ac_ext
43588 cat >>conftest.$ac_ext <<_ACEOF
43589 /* end confdefs.h.  */
43590
43591                                 #include <time.h>
43592
43593 int
43594 main ()
43595 {
43596
43597                                 int tz;
43598                                 tz = timezone;
43599
43600   ;
43601   return 0;
43602 }
43603 _ACEOF
43604 rm -f conftest.$ac_objext
43605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43606   (eval $ac_compile) 2>conftest.er1
43607   ac_status=$?
43608   grep -v '^ *+' conftest.er1 >conftest.err
43609   rm -f conftest.er1
43610   cat conftest.err >&5
43611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43612   (exit $ac_status); } &&
43613          { ac_try='test -z "$ac_cxx_werror_flag"
43614                          || test ! -s conftest.err'
43615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43616   (eval $ac_try) 2>&5
43617   ac_status=$?
43618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43619   (exit $ac_status); }; } &&
43620          { ac_try='test -s conftest.$ac_objext'
43621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43622   (eval $ac_try) 2>&5
43623   ac_status=$?
43624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43625   (exit $ac_status); }; }; then
43626
43627                                 wx_cv_var_timezone=timezone
43628
43629 else
43630   echo "$as_me: failed program was:" >&5
43631 sed 's/^/| /' conftest.$ac_ext >&5
43632
43633
43634                                 cat >conftest.$ac_ext <<_ACEOF
43635 /* confdefs.h.  */
43636 _ACEOF
43637 cat confdefs.h >>conftest.$ac_ext
43638 cat >>conftest.$ac_ext <<_ACEOF
43639 /* end confdefs.h.  */
43640
43641                                         #include <time.h>
43642
43643 int
43644 main ()
43645 {
43646
43647                                         int tz;
43648                                         tz = _timezone;
43649
43650   ;
43651   return 0;
43652 }
43653 _ACEOF
43654 rm -f conftest.$ac_objext
43655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43656   (eval $ac_compile) 2>conftest.er1
43657   ac_status=$?
43658   grep -v '^ *+' conftest.er1 >conftest.err
43659   rm -f conftest.er1
43660   cat conftest.err >&5
43661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43662   (exit $ac_status); } &&
43663          { ac_try='test -z "$ac_cxx_werror_flag"
43664                          || test ! -s conftest.err'
43665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43666   (eval $ac_try) 2>&5
43667   ac_status=$?
43668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43669   (exit $ac_status); }; } &&
43670          { ac_try='test -s conftest.$ac_objext'
43671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43672   (eval $ac_try) 2>&5
43673   ac_status=$?
43674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43675   (exit $ac_status); }; }; then
43676
43677                                         wx_cv_var_timezone=_timezone
43678
43679 else
43680   echo "$as_me: failed program was:" >&5
43681 sed 's/^/| /' conftest.$ac_ext >&5
43682
43683
43684                                         cat >conftest.$ac_ext <<_ACEOF
43685 /* confdefs.h.  */
43686 _ACEOF
43687 cat confdefs.h >>conftest.$ac_ext
43688 cat >>conftest.$ac_ext <<_ACEOF
43689 /* end confdefs.h.  */
43690
43691                                                 #include <time.h>
43692
43693 int
43694 main ()
43695 {
43696
43697                                                 int tz;
43698                                                 tz = __timezone;
43699
43700   ;
43701   return 0;
43702 }
43703 _ACEOF
43704 rm -f conftest.$ac_objext
43705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43706   (eval $ac_compile) 2>conftest.er1
43707   ac_status=$?
43708   grep -v '^ *+' conftest.er1 >conftest.err
43709   rm -f conftest.er1
43710   cat conftest.err >&5
43711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43712   (exit $ac_status); } &&
43713          { ac_try='test -z "$ac_cxx_werror_flag"
43714                          || test ! -s conftest.err'
43715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43716   (eval $ac_try) 2>&5
43717   ac_status=$?
43718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719   (exit $ac_status); }; } &&
43720          { ac_try='test -s conftest.$ac_objext'
43721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43722   (eval $ac_try) 2>&5
43723   ac_status=$?
43724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43725   (exit $ac_status); }; }; then
43726
43727                                                 wx_cv_var_timezone=__timezone
43728
43729 else
43730   echo "$as_me: failed program was:" >&5
43731 sed 's/^/| /' conftest.$ac_ext >&5
43732
43733
43734                                                 if test "$USE_DOS" = 0 ; then
43735                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43736 echo "$as_me: WARNING: no timezone variable" >&2;}
43737                                                 fi
43738
43739
43740 fi
43741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43742
43743
43744 fi
43745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43746
43747
43748 fi
43749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43750
43751
43752 fi
43753 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43754 echo "${ECHO_T}$wx_cv_var_timezone" >&6
43755
43756         if test "x$wx_cv_var_timezone" != x ; then
43757         cat >>confdefs.h <<_ACEOF
43758 #define WX_TIMEZONE $wx_cv_var_timezone
43759 _ACEOF
43760
43761     fi
43762
43763
43764 for ac_func in localtime
43765 do
43766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43767 echo "$as_me:$LINENO: checking for $ac_func" >&5
43768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43769 if eval "test \"\${$as_ac_var+set}\" = set"; then
43770   echo $ECHO_N "(cached) $ECHO_C" >&6
43771 else
43772   cat >conftest.$ac_ext <<_ACEOF
43773 /* confdefs.h.  */
43774 _ACEOF
43775 cat confdefs.h >>conftest.$ac_ext
43776 cat >>conftest.$ac_ext <<_ACEOF
43777 /* end confdefs.h.  */
43778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43780 #define $ac_func innocuous_$ac_func
43781
43782 /* System header to define __stub macros and hopefully few prototypes,
43783     which can conflict with char $ac_func (); below.
43784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43785     <limits.h> exists even on freestanding compilers.  */
43786
43787 #ifdef __STDC__
43788 # include <limits.h>
43789 #else
43790 # include <assert.h>
43791 #endif
43792
43793 #undef $ac_func
43794
43795 /* Override any gcc2 internal prototype to avoid an error.  */
43796 #ifdef __cplusplus
43797 extern "C"
43798 {
43799 #endif
43800 /* We use char because int might match the return type of a gcc2
43801    builtin and then its argument prototype would still apply.  */
43802 char $ac_func ();
43803 /* The GNU C library defines this for functions which it implements
43804     to always fail with ENOSYS.  Some functions are actually named
43805     something starting with __ and the normal name is an alias.  */
43806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43807 choke me
43808 #else
43809 char (*f) () = $ac_func;
43810 #endif
43811 #ifdef __cplusplus
43812 }
43813 #endif
43814
43815 int
43816 main ()
43817 {
43818 return f != $ac_func;
43819   ;
43820   return 0;
43821 }
43822 _ACEOF
43823 rm -f conftest.$ac_objext conftest$ac_exeext
43824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43825   (eval $ac_link) 2>conftest.er1
43826   ac_status=$?
43827   grep -v '^ *+' conftest.er1 >conftest.err
43828   rm -f conftest.er1
43829   cat conftest.err >&5
43830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43831   (exit $ac_status); } &&
43832          { ac_try='test -z "$ac_cxx_werror_flag"
43833                          || test ! -s conftest.err'
43834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43835   (eval $ac_try) 2>&5
43836   ac_status=$?
43837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43838   (exit $ac_status); }; } &&
43839          { ac_try='test -s conftest$ac_exeext'
43840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43841   (eval $ac_try) 2>&5
43842   ac_status=$?
43843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43844   (exit $ac_status); }; }; then
43845   eval "$as_ac_var=yes"
43846 else
43847   echo "$as_me: failed program was:" >&5
43848 sed 's/^/| /' conftest.$ac_ext >&5
43849
43850 eval "$as_ac_var=no"
43851 fi
43852 rm -f conftest.err conftest.$ac_objext \
43853       conftest$ac_exeext conftest.$ac_ext
43854 fi
43855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43857 if test `eval echo '${'$as_ac_var'}'` = yes; then
43858   cat >>confdefs.h <<_ACEOF
43859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43860 _ACEOF
43861
43862 fi
43863 done
43864
43865
43866     if test "$ac_cv_func_localtime" = "yes"; then
43867         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43868 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43869 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43870   echo $ECHO_N "(cached) $ECHO_C" >&6
43871 else
43872
43873             cat >conftest.$ac_ext <<_ACEOF
43874 /* confdefs.h.  */
43875 _ACEOF
43876 cat confdefs.h >>conftest.$ac_ext
43877 cat >>conftest.$ac_ext <<_ACEOF
43878 /* end confdefs.h.  */
43879
43880                     #include <time.h>
43881
43882 int
43883 main ()
43884 {
43885
43886                     struct tm tm;
43887                     tm.tm_gmtoff++;
43888
43889   ;
43890   return 0;
43891 }
43892 _ACEOF
43893 rm -f conftest.$ac_objext
43894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43895   (eval $ac_compile) 2>conftest.er1
43896   ac_status=$?
43897   grep -v '^ *+' conftest.er1 >conftest.err
43898   rm -f conftest.er1
43899   cat conftest.err >&5
43900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43901   (exit $ac_status); } &&
43902          { ac_try='test -z "$ac_cxx_werror_flag"
43903                          || test ! -s conftest.err'
43904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43905   (eval $ac_try) 2>&5
43906   ac_status=$?
43907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43908   (exit $ac_status); }; } &&
43909          { ac_try='test -s conftest.$ac_objext'
43910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43911   (eval $ac_try) 2>&5
43912   ac_status=$?
43913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43914   (exit $ac_status); }; }; then
43915
43916                     wx_cv_struct_tm_has_gmtoff=yes
43917
43918 else
43919   echo "$as_me: failed program was:" >&5
43920 sed 's/^/| /' conftest.$ac_ext >&5
43921
43922 wx_cv_struct_tm_has_gmtoff=no
43923
43924 fi
43925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43926
43927 fi
43928 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43929 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43930     fi
43931
43932     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43933         cat >>confdefs.h <<\_ACEOF
43934 #define WX_GMTOFF_IN_TM 1
43935 _ACEOF
43936
43937     fi
43938
43939
43940
43941 for ac_func in gettimeofday ftime
43942 do
43943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43944 echo "$as_me:$LINENO: checking for $ac_func" >&5
43945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43946 if eval "test \"\${$as_ac_var+set}\" = set"; then
43947   echo $ECHO_N "(cached) $ECHO_C" >&6
43948 else
43949   cat >conftest.$ac_ext <<_ACEOF
43950 /* confdefs.h.  */
43951 _ACEOF
43952 cat confdefs.h >>conftest.$ac_ext
43953 cat >>conftest.$ac_ext <<_ACEOF
43954 /* end confdefs.h.  */
43955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43957 #define $ac_func innocuous_$ac_func
43958
43959 /* System header to define __stub macros and hopefully few prototypes,
43960     which can conflict with char $ac_func (); below.
43961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43962     <limits.h> exists even on freestanding compilers.  */
43963
43964 #ifdef __STDC__
43965 # include <limits.h>
43966 #else
43967 # include <assert.h>
43968 #endif
43969
43970 #undef $ac_func
43971
43972 /* Override any gcc2 internal prototype to avoid an error.  */
43973 #ifdef __cplusplus
43974 extern "C"
43975 {
43976 #endif
43977 /* We use char because int might match the return type of a gcc2
43978    builtin and then its argument prototype would still apply.  */
43979 char $ac_func ();
43980 /* The GNU C library defines this for functions which it implements
43981     to always fail with ENOSYS.  Some functions are actually named
43982     something starting with __ and the normal name is an alias.  */
43983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43984 choke me
43985 #else
43986 char (*f) () = $ac_func;
43987 #endif
43988 #ifdef __cplusplus
43989 }
43990 #endif
43991
43992 int
43993 main ()
43994 {
43995 return f != $ac_func;
43996   ;
43997   return 0;
43998 }
43999 _ACEOF
44000 rm -f conftest.$ac_objext conftest$ac_exeext
44001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44002   (eval $ac_link) 2>conftest.er1
44003   ac_status=$?
44004   grep -v '^ *+' conftest.er1 >conftest.err
44005   rm -f conftest.er1
44006   cat conftest.err >&5
44007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44008   (exit $ac_status); } &&
44009          { ac_try='test -z "$ac_cxx_werror_flag"
44010                          || test ! -s conftest.err'
44011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44012   (eval $ac_try) 2>&5
44013   ac_status=$?
44014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44015   (exit $ac_status); }; } &&
44016          { ac_try='test -s conftest$ac_exeext'
44017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44018   (eval $ac_try) 2>&5
44019   ac_status=$?
44020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44021   (exit $ac_status); }; }; then
44022   eval "$as_ac_var=yes"
44023 else
44024   echo "$as_me: failed program was:" >&5
44025 sed 's/^/| /' conftest.$ac_ext >&5
44026
44027 eval "$as_ac_var=no"
44028 fi
44029 rm -f conftest.err conftest.$ac_objext \
44030       conftest$ac_exeext conftest.$ac_ext
44031 fi
44032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44034 if test `eval echo '${'$as_ac_var'}'` = yes; then
44035   cat >>confdefs.h <<_ACEOF
44036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44037 _ACEOF
44038  break
44039 fi
44040 done
44041
44042
44043     if test "$ac_cv_func_gettimeofday" = "yes"; then
44044         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44045 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
44046 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44047   echo $ECHO_N "(cached) $ECHO_C" >&6
44048 else
44049
44050                         cat >conftest.$ac_ext <<_ACEOF
44051 /* confdefs.h.  */
44052 _ACEOF
44053 cat confdefs.h >>conftest.$ac_ext
44054 cat >>conftest.$ac_ext <<_ACEOF
44055 /* end confdefs.h.  */
44056
44057                     #include <sys/time.h>
44058                     #include <unistd.h>
44059
44060 int
44061 main ()
44062 {
44063
44064                     struct timeval tv;
44065                     gettimeofday(&tv, NULL);
44066
44067   ;
44068   return 0;
44069 }
44070 _ACEOF
44071 rm -f conftest.$ac_objext
44072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44073   (eval $ac_compile) 2>conftest.er1
44074   ac_status=$?
44075   grep -v '^ *+' conftest.er1 >conftest.err
44076   rm -f conftest.er1
44077   cat conftest.err >&5
44078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44079   (exit $ac_status); } &&
44080          { ac_try='test -z "$ac_cxx_werror_flag"
44081                          || test ! -s conftest.err'
44082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44083   (eval $ac_try) 2>&5
44084   ac_status=$?
44085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44086   (exit $ac_status); }; } &&
44087          { ac_try='test -s conftest.$ac_objext'
44088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44089   (eval $ac_try) 2>&5
44090   ac_status=$?
44091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44092   (exit $ac_status); }; }; then
44093   wx_cv_func_gettimeofday_has_2_args=yes
44094 else
44095   echo "$as_me: failed program was:" >&5
44096 sed 's/^/| /' conftest.$ac_ext >&5
44097
44098 cat >conftest.$ac_ext <<_ACEOF
44099 /* confdefs.h.  */
44100 _ACEOF
44101 cat confdefs.h >>conftest.$ac_ext
44102 cat >>conftest.$ac_ext <<_ACEOF
44103 /* end confdefs.h.  */
44104
44105                         #include <sys/time.h>
44106                         #include <unistd.h>
44107
44108 int
44109 main ()
44110 {
44111
44112                         struct timeval tv;
44113                         gettimeofday(&tv);
44114
44115   ;
44116   return 0;
44117 }
44118 _ACEOF
44119 rm -f conftest.$ac_objext
44120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44121   (eval $ac_compile) 2>conftest.er1
44122   ac_status=$?
44123   grep -v '^ *+' conftest.er1 >conftest.err
44124   rm -f conftest.er1
44125   cat conftest.err >&5
44126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44127   (exit $ac_status); } &&
44128          { ac_try='test -z "$ac_cxx_werror_flag"
44129                          || test ! -s conftest.err'
44130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44131   (eval $ac_try) 2>&5
44132   ac_status=$?
44133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44134   (exit $ac_status); }; } &&
44135          { ac_try='test -s conftest.$ac_objext'
44136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44137   (eval $ac_try) 2>&5
44138   ac_status=$?
44139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44140   (exit $ac_status); }; }; then
44141   wx_cv_func_gettimeofday_has_2_args=no
44142 else
44143   echo "$as_me: failed program was:" >&5
44144 sed 's/^/| /' conftest.$ac_ext >&5
44145
44146
44147                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44148 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44149                         wx_cv_func_gettimeofday_has_2_args=unknown
44150
44151
44152 fi
44153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44154
44155 fi
44156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44157
44158 fi
44159 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44160 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44161
44162         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44163             cat >>confdefs.h <<\_ACEOF
44164 #define WX_GETTIMEOFDAY_NO_TZ 1
44165 _ACEOF
44166
44167         fi
44168     fi
44169
44170     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44171 fi
44172
44173
44174 if test "$wxUSE_SOCKETS" = "yes"; then
44175     if test "$wxUSE_MGL" = "1"; then
44176         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44177 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44178         wxUSE_SOCKETS="no"
44179     fi
44180 fi
44181
44182 if test "$wxUSE_SOCKETS" = "yes"; then
44183         if test "$TOOLKIT" != "MSW"; then
44184                 echo "$as_me:$LINENO: checking for socket" >&5
44185 echo $ECHO_N "checking for socket... $ECHO_C" >&6
44186 if test "${ac_cv_func_socket+set}" = set; then
44187   echo $ECHO_N "(cached) $ECHO_C" >&6
44188 else
44189   cat >conftest.$ac_ext <<_ACEOF
44190 /* confdefs.h.  */
44191 _ACEOF
44192 cat confdefs.h >>conftest.$ac_ext
44193 cat >>conftest.$ac_ext <<_ACEOF
44194 /* end confdefs.h.  */
44195 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44197 #define socket innocuous_socket
44198
44199 /* System header to define __stub macros and hopefully few prototypes,
44200     which can conflict with char socket (); below.
44201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44202     <limits.h> exists even on freestanding compilers.  */
44203
44204 #ifdef __STDC__
44205 # include <limits.h>
44206 #else
44207 # include <assert.h>
44208 #endif
44209
44210 #undef socket
44211
44212 /* Override any gcc2 internal prototype to avoid an error.  */
44213 #ifdef __cplusplus
44214 extern "C"
44215 {
44216 #endif
44217 /* We use char because int might match the return type of a gcc2
44218    builtin and then its argument prototype would still apply.  */
44219 char socket ();
44220 /* The GNU C library defines this for functions which it implements
44221     to always fail with ENOSYS.  Some functions are actually named
44222     something starting with __ and the normal name is an alias.  */
44223 #if defined (__stub_socket) || defined (__stub___socket)
44224 choke me
44225 #else
44226 char (*f) () = socket;
44227 #endif
44228 #ifdef __cplusplus
44229 }
44230 #endif
44231
44232 int
44233 main ()
44234 {
44235 return f != socket;
44236   ;
44237   return 0;
44238 }
44239 _ACEOF
44240 rm -f conftest.$ac_objext conftest$ac_exeext
44241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44242   (eval $ac_link) 2>conftest.er1
44243   ac_status=$?
44244   grep -v '^ *+' conftest.er1 >conftest.err
44245   rm -f conftest.er1
44246   cat conftest.err >&5
44247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44248   (exit $ac_status); } &&
44249          { ac_try='test -z "$ac_cxx_werror_flag"
44250                          || test ! -s conftest.err'
44251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44252   (eval $ac_try) 2>&5
44253   ac_status=$?
44254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44255   (exit $ac_status); }; } &&
44256          { ac_try='test -s conftest$ac_exeext'
44257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44258   (eval $ac_try) 2>&5
44259   ac_status=$?
44260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44261   (exit $ac_status); }; }; then
44262   ac_cv_func_socket=yes
44263 else
44264   echo "$as_me: failed program was:" >&5
44265 sed 's/^/| /' conftest.$ac_ext >&5
44266
44267 ac_cv_func_socket=no
44268 fi
44269 rm -f conftest.err conftest.$ac_objext \
44270       conftest$ac_exeext conftest.$ac_ext
44271 fi
44272 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44273 echo "${ECHO_T}$ac_cv_func_socket" >&6
44274 if test $ac_cv_func_socket = yes; then
44275   :
44276 else
44277
44278                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44279 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44280 if test "${ac_cv_lib_socket_socket+set}" = set; then
44281   echo $ECHO_N "(cached) $ECHO_C" >&6
44282 else
44283   ac_check_lib_save_LIBS=$LIBS
44284 LIBS="-lsocket  $LIBS"
44285 cat >conftest.$ac_ext <<_ACEOF
44286 /* confdefs.h.  */
44287 _ACEOF
44288 cat confdefs.h >>conftest.$ac_ext
44289 cat >>conftest.$ac_ext <<_ACEOF
44290 /* end confdefs.h.  */
44291
44292 /* Override any gcc2 internal prototype to avoid an error.  */
44293 #ifdef __cplusplus
44294 extern "C"
44295 #endif
44296 /* We use char because int might match the return type of a gcc2
44297    builtin and then its argument prototype would still apply.  */
44298 char socket ();
44299 int
44300 main ()
44301 {
44302 socket ();
44303   ;
44304   return 0;
44305 }
44306 _ACEOF
44307 rm -f conftest.$ac_objext conftest$ac_exeext
44308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44309   (eval $ac_link) 2>conftest.er1
44310   ac_status=$?
44311   grep -v '^ *+' conftest.er1 >conftest.err
44312   rm -f conftest.er1
44313   cat conftest.err >&5
44314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44315   (exit $ac_status); } &&
44316          { ac_try='test -z "$ac_cxx_werror_flag"
44317                          || test ! -s conftest.err'
44318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44319   (eval $ac_try) 2>&5
44320   ac_status=$?
44321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44322   (exit $ac_status); }; } &&
44323          { ac_try='test -s conftest$ac_exeext'
44324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44325   (eval $ac_try) 2>&5
44326   ac_status=$?
44327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44328   (exit $ac_status); }; }; then
44329   ac_cv_lib_socket_socket=yes
44330 else
44331   echo "$as_me: failed program was:" >&5
44332 sed 's/^/| /' conftest.$ac_ext >&5
44333
44334 ac_cv_lib_socket_socket=no
44335 fi
44336 rm -f conftest.err conftest.$ac_objext \
44337       conftest$ac_exeext conftest.$ac_ext
44338 LIBS=$ac_check_lib_save_LIBS
44339 fi
44340 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44341 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44342 if test $ac_cv_lib_socket_socket = yes; then
44343   if test "$INET_LINK" != " -lsocket"; then
44344                         INET_LINK="$INET_LINK -lsocket"
44345                     fi
44346 else
44347
44348                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44349 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44350                         wxUSE_SOCKETS=no
44351
44352
44353 fi
44354
44355
44356
44357 fi
44358
44359     fi
44360 fi
44361
44362 if test "$wxUSE_SOCKETS" = "yes" ; then
44363                 if test "$TOOLKIT" != "MSW"; then
44364                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44365 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44366 if test "${wx_cv_type_getsockname3+set}" = set; then
44367   echo $ECHO_N "(cached) $ECHO_C" >&6
44368 else
44369
44370                 cat >conftest.$ac_ext <<_ACEOF
44371 /* confdefs.h.  */
44372 _ACEOF
44373 cat confdefs.h >>conftest.$ac_ext
44374 cat >>conftest.$ac_ext <<_ACEOF
44375 /* end confdefs.h.  */
44376
44377                         #include <sys/types.h>
44378                         #include <sys/socket.h>
44379
44380 int
44381 main ()
44382 {
44383
44384                         socklen_t len;
44385                         getsockname(0, 0, &len);
44386
44387   ;
44388   return 0;
44389 }
44390 _ACEOF
44391 rm -f conftest.$ac_objext
44392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44393   (eval $ac_compile) 2>conftest.er1
44394   ac_status=$?
44395   grep -v '^ *+' conftest.er1 >conftest.err
44396   rm -f conftest.er1
44397   cat conftest.err >&5
44398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44399   (exit $ac_status); } &&
44400          { ac_try='test -z "$ac_cxx_werror_flag"
44401                          || test ! -s conftest.err'
44402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44403   (eval $ac_try) 2>&5
44404   ac_status=$?
44405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44406   (exit $ac_status); }; } &&
44407          { ac_try='test -s conftest.$ac_objext'
44408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44409   (eval $ac_try) 2>&5
44410   ac_status=$?
44411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44412   (exit $ac_status); }; }; then
44413   wx_cv_type_getsockname3=socklen_t
44414 else
44415   echo "$as_me: failed program was:" >&5
44416 sed 's/^/| /' conftest.$ac_ext >&5
44417
44418
44419                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
44420                         if test "$GCC" = yes ; then
44421                             CXXFLAGS="-Werror $CXXFLAGS"
44422                         fi
44423
44424                         cat >conftest.$ac_ext <<_ACEOF
44425 /* confdefs.h.  */
44426 _ACEOF
44427 cat confdefs.h >>conftest.$ac_ext
44428 cat >>conftest.$ac_ext <<_ACEOF
44429 /* end confdefs.h.  */
44430
44431                                 #include <sys/types.h>
44432                                 #include <sys/socket.h>
44433
44434 int
44435 main ()
44436 {
44437
44438                                 size_t len;
44439                                 getsockname(0, 0, &len);
44440
44441   ;
44442   return 0;
44443 }
44444 _ACEOF
44445 rm -f conftest.$ac_objext
44446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44447   (eval $ac_compile) 2>conftest.er1
44448   ac_status=$?
44449   grep -v '^ *+' conftest.er1 >conftest.err
44450   rm -f conftest.er1
44451   cat conftest.err >&5
44452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44453   (exit $ac_status); } &&
44454          { ac_try='test -z "$ac_cxx_werror_flag"
44455                          || test ! -s conftest.err'
44456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44457   (eval $ac_try) 2>&5
44458   ac_status=$?
44459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44460   (exit $ac_status); }; } &&
44461          { ac_try='test -s conftest.$ac_objext'
44462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44463   (eval $ac_try) 2>&5
44464   ac_status=$?
44465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44466   (exit $ac_status); }; }; then
44467   wx_cv_type_getsockname3=size_t
44468 else
44469   echo "$as_me: failed program was:" >&5
44470 sed 's/^/| /' conftest.$ac_ext >&5
44471
44472 cat >conftest.$ac_ext <<_ACEOF
44473 /* confdefs.h.  */
44474 _ACEOF
44475 cat confdefs.h >>conftest.$ac_ext
44476 cat >>conftest.$ac_ext <<_ACEOF
44477 /* end confdefs.h.  */
44478
44479                                     #include <sys/types.h>
44480                                     #include <sys/socket.h>
44481
44482 int
44483 main ()
44484 {
44485
44486                                     int len;
44487                                     getsockname(0, 0, &len);
44488
44489   ;
44490   return 0;
44491 }
44492 _ACEOF
44493 rm -f conftest.$ac_objext
44494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44495   (eval $ac_compile) 2>conftest.er1
44496   ac_status=$?
44497   grep -v '^ *+' conftest.er1 >conftest.err
44498   rm -f conftest.er1
44499   cat conftest.err >&5
44500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44501   (exit $ac_status); } &&
44502          { ac_try='test -z "$ac_cxx_werror_flag"
44503                          || test ! -s conftest.err'
44504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44505   (eval $ac_try) 2>&5
44506   ac_status=$?
44507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44508   (exit $ac_status); }; } &&
44509          { ac_try='test -s conftest.$ac_objext'
44510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44511   (eval $ac_try) 2>&5
44512   ac_status=$?
44513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514   (exit $ac_status); }; }; then
44515   wx_cv_type_getsockname3=int
44516 else
44517   echo "$as_me: failed program was:" >&5
44518 sed 's/^/| /' conftest.$ac_ext >&5
44519
44520 wx_cv_type_getsockname3=unknown
44521
44522 fi
44523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44524
44525 fi
44526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44527
44528                         CXXFLAGS="$CXXFLAGS_OLD"
44529
44530
44531 fi
44532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44533
44534 fi
44535 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44536 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44537
44538         if test "$wx_cv_type_getsockname3" = "unknown"; then
44539             wxUSE_SOCKETS=no
44540             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44541 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44542         else
44543             cat >>confdefs.h <<_ACEOF
44544 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44545 _ACEOF
44546
44547         fi
44548                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44549 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44550 if test "${wx_cv_type_getsockopt5+set}" = set; then
44551   echo $ECHO_N "(cached) $ECHO_C" >&6
44552 else
44553
44554                 cat >conftest.$ac_ext <<_ACEOF
44555 /* confdefs.h.  */
44556 _ACEOF
44557 cat confdefs.h >>conftest.$ac_ext
44558 cat >>conftest.$ac_ext <<_ACEOF
44559 /* end confdefs.h.  */
44560
44561                         #include <sys/types.h>
44562                         #include <sys/socket.h>
44563
44564 int
44565 main ()
44566 {
44567
44568                         socklen_t len;
44569                         getsockopt(0, 0, 0, 0, &len);
44570
44571   ;
44572   return 0;
44573 }
44574 _ACEOF
44575 rm -f conftest.$ac_objext
44576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44577   (eval $ac_compile) 2>conftest.er1
44578   ac_status=$?
44579   grep -v '^ *+' conftest.er1 >conftest.err
44580   rm -f conftest.er1
44581   cat conftest.err >&5
44582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44583   (exit $ac_status); } &&
44584          { ac_try='test -z "$ac_cxx_werror_flag"
44585                          || test ! -s conftest.err'
44586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44587   (eval $ac_try) 2>&5
44588   ac_status=$?
44589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44590   (exit $ac_status); }; } &&
44591          { ac_try='test -s conftest.$ac_objext'
44592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44593   (eval $ac_try) 2>&5
44594   ac_status=$?
44595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44596   (exit $ac_status); }; }; then
44597   wx_cv_type_getsockopt5=socklen_t
44598 else
44599   echo "$as_me: failed program was:" >&5
44600 sed 's/^/| /' conftest.$ac_ext >&5
44601
44602
44603                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
44604                         if test "$GCC" = yes ; then
44605                             CXXFLAGS="-Werror $CXXFLAGS"
44606                         fi
44607
44608                         cat >conftest.$ac_ext <<_ACEOF
44609 /* confdefs.h.  */
44610 _ACEOF
44611 cat confdefs.h >>conftest.$ac_ext
44612 cat >>conftest.$ac_ext <<_ACEOF
44613 /* end confdefs.h.  */
44614
44615                                 #include <sys/types.h>
44616                                 #include <sys/socket.h>
44617
44618 int
44619 main ()
44620 {
44621
44622                                 size_t len;
44623                                 getsockopt(0, 0, 0, 0, &len);
44624
44625   ;
44626   return 0;
44627 }
44628 _ACEOF
44629 rm -f conftest.$ac_objext
44630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44631   (eval $ac_compile) 2>conftest.er1
44632   ac_status=$?
44633   grep -v '^ *+' conftest.er1 >conftest.err
44634   rm -f conftest.er1
44635   cat conftest.err >&5
44636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44637   (exit $ac_status); } &&
44638          { ac_try='test -z "$ac_cxx_werror_flag"
44639                          || test ! -s conftest.err'
44640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44641   (eval $ac_try) 2>&5
44642   ac_status=$?
44643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44644   (exit $ac_status); }; } &&
44645          { ac_try='test -s conftest.$ac_objext'
44646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44647   (eval $ac_try) 2>&5
44648   ac_status=$?
44649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44650   (exit $ac_status); }; }; then
44651   wx_cv_type_getsockopt5=size_t
44652 else
44653   echo "$as_me: failed program was:" >&5
44654 sed 's/^/| /' conftest.$ac_ext >&5
44655
44656 cat >conftest.$ac_ext <<_ACEOF
44657 /* confdefs.h.  */
44658 _ACEOF
44659 cat confdefs.h >>conftest.$ac_ext
44660 cat >>conftest.$ac_ext <<_ACEOF
44661 /* end confdefs.h.  */
44662
44663                                     #include <sys/types.h>
44664                                     #include <sys/socket.h>
44665
44666 int
44667 main ()
44668 {
44669
44670                                     int len;
44671                                     getsockopt(0, 0, 0, 0, &len);
44672
44673   ;
44674   return 0;
44675 }
44676 _ACEOF
44677 rm -f conftest.$ac_objext
44678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44679   (eval $ac_compile) 2>conftest.er1
44680   ac_status=$?
44681   grep -v '^ *+' conftest.er1 >conftest.err
44682   rm -f conftest.er1
44683   cat conftest.err >&5
44684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44685   (exit $ac_status); } &&
44686          { ac_try='test -z "$ac_cxx_werror_flag"
44687                          || test ! -s conftest.err'
44688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44689   (eval $ac_try) 2>&5
44690   ac_status=$?
44691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44692   (exit $ac_status); }; } &&
44693          { ac_try='test -s conftest.$ac_objext'
44694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44695   (eval $ac_try) 2>&5
44696   ac_status=$?
44697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698   (exit $ac_status); }; }; then
44699   wx_cv_type_getsockopt5=int
44700 else
44701   echo "$as_me: failed program was:" >&5
44702 sed 's/^/| /' conftest.$ac_ext >&5
44703
44704 wx_cv_type_getsockopt5=unknown
44705
44706 fi
44707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44708
44709 fi
44710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44711
44712                         CXXFLAGS="$CXXFLAGS_OLD"
44713
44714
44715 fi
44716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44717
44718 fi
44719 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44720 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44721
44722         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44723             wxUSE_SOCKETS=no
44724             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44725 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44726         else
44727             cat >>confdefs.h <<_ACEOF
44728 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44729 _ACEOF
44730
44731         fi
44732     fi
44733 fi
44734
44735 if test "$wxUSE_SOCKETS" = "yes" ; then
44736     cat >>confdefs.h <<\_ACEOF
44737 #define wxUSE_SOCKETS 1
44738 _ACEOF
44739
44740     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44741 fi
44742
44743 if test "$wxUSE_PROTOCOL" = "yes"; then
44744     if test "$wxUSE_SOCKETS" != "yes"; then
44745         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44746 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44747         wxUSE_PROTOCOL=no
44748     fi
44749 fi
44750
44751 if test "$wxUSE_PROTOCOL" = "yes"; then
44752     cat >>confdefs.h <<\_ACEOF
44753 #define wxUSE_PROTOCOL 1
44754 _ACEOF
44755
44756
44757     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44758         cat >>confdefs.h <<\_ACEOF
44759 #define wxUSE_PROTOCOL_HTTP 1
44760 _ACEOF
44761
44762     fi
44763     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44764         cat >>confdefs.h <<\_ACEOF
44765 #define wxUSE_PROTOCOL_FTP 1
44766 _ACEOF
44767
44768     fi
44769     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44770         cat >>confdefs.h <<\_ACEOF
44771 #define wxUSE_PROTOCOL_FILE 1
44772 _ACEOF
44773
44774     fi
44775 else
44776     if test "$wxUSE_FS_INET" = "yes"; then
44777         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44778 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44779         wxUSE_FS_INET="no"
44780     fi
44781 fi
44782
44783 if test "$wxUSE_URL" = "yes"; then
44784     if test "$wxUSE_PROTOCOL" != "yes"; then
44785         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44786 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44787         wxUSE_URL=no
44788     fi
44789     if test "$wxUSE_URL" = "yes"; then
44790         cat >>confdefs.h <<\_ACEOF
44791 #define wxUSE_URL 1
44792 _ACEOF
44793
44794     fi
44795 fi
44796
44797 if test "$wxUSE_VARIANT" = "yes"; then
44798     cat >>confdefs.h <<\_ACEOF
44799 #define wxUSE_VARIANT 1
44800 _ACEOF
44801
44802 fi
44803
44804 if test "$wxUSE_FS_INET" = "yes"; then
44805   cat >>confdefs.h <<\_ACEOF
44806 #define wxUSE_FS_INET 1
44807 _ACEOF
44808
44809 fi
44810
44811
44812 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44813     wxUSE_JOYSTICK=no
44814
44815         if test "$TOOLKIT" = "MSW"; then
44816         wxUSE_JOYSTICK=yes
44817
44818         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44819         if test "$USE_DARWIN" = 1; then
44820                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44821 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
44822             cat >conftest.$ac_ext <<_ACEOF
44823 /* confdefs.h.  */
44824 _ACEOF
44825 cat confdefs.h >>conftest.$ac_ext
44826 cat >>conftest.$ac_ext <<_ACEOF
44827 /* end confdefs.h.  */
44828  #include <IOKit/hid/IOHIDLib.h>
44829 int
44830 main ()
44831 {
44832  IOHIDQueueInterface *qi = NULL;
44833                               IOHIDCallbackFunction cb = NULL;
44834                               qi->setEventCallout(NULL, cb, NULL, NULL);
44835   ;
44836   return 0;
44837 }
44838 _ACEOF
44839 rm -f conftest.$ac_objext
44840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44841   (eval $ac_compile) 2>conftest.er1
44842   ac_status=$?
44843   grep -v '^ *+' conftest.er1 >conftest.err
44844   rm -f conftest.er1
44845   cat conftest.err >&5
44846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44847   (exit $ac_status); } &&
44848          { ac_try='test -z "$ac_cxx_werror_flag"
44849                          || test ! -s conftest.err'
44850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44851   (eval $ac_try) 2>&5
44852   ac_status=$?
44853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44854   (exit $ac_status); }; } &&
44855          { ac_try='test -s conftest.$ac_objext'
44856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44857   (eval $ac_try) 2>&5
44858   ac_status=$?
44859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44860   (exit $ac_status); }; }; then
44861    wxUSE_JOYSTICK=yes
44862
44863 else
44864   echo "$as_me: failed program was:" >&5
44865 sed 's/^/| /' conftest.$ac_ext >&5
44866
44867 fi
44868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44869             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44870 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44871         fi
44872
44873         else
44874
44875 for ac_header in linux/joystick.h
44876 do
44877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44879   echo "$as_me:$LINENO: checking for $ac_header" >&5
44880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44882   echo $ECHO_N "(cached) $ECHO_C" >&6
44883 fi
44884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44886 else
44887   # Is the header compilable?
44888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44890 cat >conftest.$ac_ext <<_ACEOF
44891 /* confdefs.h.  */
44892 _ACEOF
44893 cat confdefs.h >>conftest.$ac_ext
44894 cat >>conftest.$ac_ext <<_ACEOF
44895 /* end confdefs.h.  */
44896 $ac_includes_default
44897 #include <$ac_header>
44898 _ACEOF
44899 rm -f conftest.$ac_objext
44900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44901   (eval $ac_compile) 2>conftest.er1
44902   ac_status=$?
44903   grep -v '^ *+' conftest.er1 >conftest.err
44904   rm -f conftest.er1
44905   cat conftest.err >&5
44906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44907   (exit $ac_status); } &&
44908          { ac_try='test -z "$ac_cxx_werror_flag"
44909                          || test ! -s conftest.err'
44910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44911   (eval $ac_try) 2>&5
44912   ac_status=$?
44913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44914   (exit $ac_status); }; } &&
44915          { ac_try='test -s conftest.$ac_objext'
44916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44917   (eval $ac_try) 2>&5
44918   ac_status=$?
44919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44920   (exit $ac_status); }; }; then
44921   ac_header_compiler=yes
44922 else
44923   echo "$as_me: failed program was:" >&5
44924 sed 's/^/| /' conftest.$ac_ext >&5
44925
44926 ac_header_compiler=no
44927 fi
44928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44930 echo "${ECHO_T}$ac_header_compiler" >&6
44931
44932 # Is the header present?
44933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44935 cat >conftest.$ac_ext <<_ACEOF
44936 /* confdefs.h.  */
44937 _ACEOF
44938 cat confdefs.h >>conftest.$ac_ext
44939 cat >>conftest.$ac_ext <<_ACEOF
44940 /* end confdefs.h.  */
44941 #include <$ac_header>
44942 _ACEOF
44943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44945   ac_status=$?
44946   grep -v '^ *+' conftest.er1 >conftest.err
44947   rm -f conftest.er1
44948   cat conftest.err >&5
44949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44950   (exit $ac_status); } >/dev/null; then
44951   if test -s conftest.err; then
44952     ac_cpp_err=$ac_cxx_preproc_warn_flag
44953     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
44954   else
44955     ac_cpp_err=
44956   fi
44957 else
44958   ac_cpp_err=yes
44959 fi
44960 if test -z "$ac_cpp_err"; then
44961   ac_header_preproc=yes
44962 else
44963   echo "$as_me: failed program was:" >&5
44964 sed 's/^/| /' conftest.$ac_ext >&5
44965
44966   ac_header_preproc=no
44967 fi
44968 rm -f conftest.err conftest.$ac_ext
44969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44970 echo "${ECHO_T}$ac_header_preproc" >&6
44971
44972 # So?  What about this header?
44973 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
44974   yes:no: )
44975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44979     ac_header_preproc=yes
44980     ;;
44981   no:yes:* )
44982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44994     (
44995       cat <<\_ASBOX
44996 ## ----------------------------------------- ##
44997 ## Report this to wx-dev@lists.wxwidgets.org ##
44998 ## ----------------------------------------- ##
44999 _ASBOX
45000     ) |
45001       sed "s/^/$as_me: WARNING:     /" >&2
45002     ;;
45003 esac
45004 echo "$as_me:$LINENO: checking for $ac_header" >&5
45005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45007   echo $ECHO_N "(cached) $ECHO_C" >&6
45008 else
45009   eval "$as_ac_Header=\$ac_header_preproc"
45010 fi
45011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45013
45014 fi
45015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45016   cat >>confdefs.h <<_ACEOF
45017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45018 _ACEOF
45019  wxUSE_JOYSTICK=yes
45020 fi
45021
45022 done
45023
45024     fi
45025
45026     if test "$wxUSE_JOYSTICK" = "yes"; then
45027         cat >>confdefs.h <<\_ACEOF
45028 #define wxUSE_JOYSTICK 1
45029 _ACEOF
45030
45031         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45032     else
45033         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45034 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45035     fi
45036 fi
45037
45038
45039
45040 if test "$wxUSE_FONTMAP" = "yes" ; then
45041   cat >>confdefs.h <<\_ACEOF
45042 #define wxUSE_FONTMAP 1
45043 _ACEOF
45044
45045 fi
45046
45047 if test "$wxUSE_UNICODE" = "yes" ; then
45048   cat >>confdefs.h <<\_ACEOF
45049 #define wxUSE_UNICODE 1
45050 _ACEOF
45051
45052
45053   if test "$USE_WIN32" != 1; then
45054       wxUSE_UNICODE_MSLU=no
45055   fi
45056
45057   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45058         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45059 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
45060 if test "${ac_cv_lib_unicows_main+set}" = set; then
45061   echo $ECHO_N "(cached) $ECHO_C" >&6
45062 else
45063   ac_check_lib_save_LIBS=$LIBS
45064 LIBS="-lunicows  $LIBS"
45065 cat >conftest.$ac_ext <<_ACEOF
45066 /* confdefs.h.  */
45067 _ACEOF
45068 cat confdefs.h >>conftest.$ac_ext
45069 cat >>conftest.$ac_ext <<_ACEOF
45070 /* end confdefs.h.  */
45071
45072
45073 int
45074 main ()
45075 {
45076 main ();
45077   ;
45078   return 0;
45079 }
45080 _ACEOF
45081 rm -f conftest.$ac_objext conftest$ac_exeext
45082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45083   (eval $ac_link) 2>conftest.er1
45084   ac_status=$?
45085   grep -v '^ *+' conftest.er1 >conftest.err
45086   rm -f conftest.er1
45087   cat conftest.err >&5
45088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45089   (exit $ac_status); } &&
45090          { ac_try='test -z "$ac_cxx_werror_flag"
45091                          || test ! -s conftest.err'
45092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45093   (eval $ac_try) 2>&5
45094   ac_status=$?
45095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45096   (exit $ac_status); }; } &&
45097          { ac_try='test -s conftest$ac_exeext'
45098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45099   (eval $ac_try) 2>&5
45100   ac_status=$?
45101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45102   (exit $ac_status); }; }; then
45103   ac_cv_lib_unicows_main=yes
45104 else
45105   echo "$as_me: failed program was:" >&5
45106 sed 's/^/| /' conftest.$ac_ext >&5
45107
45108 ac_cv_lib_unicows_main=no
45109 fi
45110 rm -f conftest.err conftest.$ac_objext \
45111       conftest$ac_exeext conftest.$ac_ext
45112 LIBS=$ac_check_lib_save_LIBS
45113 fi
45114 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45115 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45116 if test $ac_cv_lib_unicows_main = yes; then
45117
45118                 cat >>confdefs.h <<\_ACEOF
45119 #define wxUSE_UNICODE_MSLU 1
45120 _ACEOF
45121
45122
45123 else
45124
45125                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45126                              Applications will only run on Windows NT/2000/XP!" >&5
45127 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45128                              Applications will only run on Windows NT/2000/XP!" >&2;}
45129                 wxUSE_UNICODE_MSLU=no
45130
45131 fi
45132
45133     fi
45134 fi
45135
45136 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45137   cat >>confdefs.h <<\_ACEOF
45138 #define wxUSE_EXPERIMENTAL_PRINTF 1
45139 _ACEOF
45140
45141 fi
45142
45143
45144 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45145   cat >>confdefs.h <<\_ACEOF
45146 #define wxUSE_POSTSCRIPT 1
45147 _ACEOF
45148
45149 fi
45150
45151 cat >>confdefs.h <<\_ACEOF
45152 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45153 _ACEOF
45154
45155
45156 cat >>confdefs.h <<\_ACEOF
45157 #define wxUSE_NORMALIZED_PS_FONTS 1
45158 _ACEOF
45159
45160
45161
45162 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45163     cat >>confdefs.h <<\_ACEOF
45164 #define wxUSE_CONSTRAINTS 1
45165 _ACEOF
45166
45167     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45168 fi
45169
45170 if test "$wxUSE_MDI" = "yes"; then
45171     cat >>confdefs.h <<\_ACEOF
45172 #define wxUSE_MDI 1
45173 _ACEOF
45174
45175
45176     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45177         cat >>confdefs.h <<\_ACEOF
45178 #define wxUSE_MDI_ARCHITECTURE 1
45179 _ACEOF
45180
45181         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45182     fi
45183 fi
45184
45185 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45186     cat >>confdefs.h <<\_ACEOF
45187 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45188 _ACEOF
45189
45190     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45191     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45192         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45193     fi
45194 fi
45195
45196 if test "$wxUSE_HELP" = "yes"; then
45197     cat >>confdefs.h <<\_ACEOF
45198 #define wxUSE_HELP 1
45199 _ACEOF
45200
45201     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45202
45203     if test "$wxUSE_MSW" = 1; then
45204       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45205         cat >>confdefs.h <<\_ACEOF
45206 #define wxUSE_MS_HTML_HELP 1
45207 _ACEOF
45208
45209       fi
45210     fi
45211
45212     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45213       if test "$wxUSE_HTML" = "yes"; then
45214         cat >>confdefs.h <<\_ACEOF
45215 #define wxUSE_WXHTML_HELP 1
45216 _ACEOF
45217
45218       else
45219         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45220 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45221         wxUSE_WXHTML_HELP=no
45222       fi
45223     fi
45224 fi
45225
45226 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45227     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45228         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45229 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45230     else
45231         cat >>confdefs.h <<\_ACEOF
45232 #define wxUSE_PRINTING_ARCHITECTURE 1
45233 _ACEOF
45234
45235     fi
45236     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45237 fi
45238
45239 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
45240     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45241 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45242    { (exit 1); exit 1; }; }
45243 fi
45244
45245
45246 if test "$wxUSE_METAFILE" = "yes"; then
45247     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45248         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45249 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45250         wxUSE_METAFILE=no
45251     fi
45252 fi
45253
45254
45255 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45256                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45257                           -o "$wxUSE_OLE"     = "yes" \
45258                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45259
45260 for ac_header in ole2.h
45261 do
45262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45264   echo "$as_me:$LINENO: checking for $ac_header" >&5
45265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45267   echo $ECHO_N "(cached) $ECHO_C" >&6
45268 fi
45269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45271 else
45272   # Is the header compilable?
45273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45275 cat >conftest.$ac_ext <<_ACEOF
45276 /* confdefs.h.  */
45277 _ACEOF
45278 cat confdefs.h >>conftest.$ac_ext
45279 cat >>conftest.$ac_ext <<_ACEOF
45280 /* end confdefs.h.  */
45281 $ac_includes_default
45282 #include <$ac_header>
45283 _ACEOF
45284 rm -f conftest.$ac_objext
45285 if { (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"
45294                          || test ! -s conftest.err'
45295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45296   (eval $ac_try) 2>&5
45297   ac_status=$?
45298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45299   (exit $ac_status); }; } &&
45300          { ac_try='test -s conftest.$ac_objext'
45301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45302   (eval $ac_try) 2>&5
45303   ac_status=$?
45304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45305   (exit $ac_status); }; }; then
45306   ac_header_compiler=yes
45307 else
45308   echo "$as_me: failed program was:" >&5
45309 sed 's/^/| /' conftest.$ac_ext >&5
45310
45311 ac_header_compiler=no
45312 fi
45313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45315 echo "${ECHO_T}$ac_header_compiler" >&6
45316
45317 # Is the header present?
45318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45320 cat >conftest.$ac_ext <<_ACEOF
45321 /* confdefs.h.  */
45322 _ACEOF
45323 cat confdefs.h >>conftest.$ac_ext
45324 cat >>conftest.$ac_ext <<_ACEOF
45325 /* end confdefs.h.  */
45326 #include <$ac_header>
45327 _ACEOF
45328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45330   ac_status=$?
45331   grep -v '^ *+' conftest.er1 >conftest.err
45332   rm -f conftest.er1
45333   cat conftest.err >&5
45334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45335   (exit $ac_status); } >/dev/null; then
45336   if test -s conftest.err; then
45337     ac_cpp_err=$ac_cxx_preproc_warn_flag
45338     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
45339   else
45340     ac_cpp_err=
45341   fi
45342 else
45343   ac_cpp_err=yes
45344 fi
45345 if test -z "$ac_cpp_err"; then
45346   ac_header_preproc=yes
45347 else
45348   echo "$as_me: failed program was:" >&5
45349 sed 's/^/| /' conftest.$ac_ext >&5
45350
45351   ac_header_preproc=no
45352 fi
45353 rm -f conftest.err conftest.$ac_ext
45354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45355 echo "${ECHO_T}$ac_header_preproc" >&6
45356
45357 # So?  What about this header?
45358 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
45359   yes:no: )
45360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45364     ac_header_preproc=yes
45365     ;;
45366   no:yes:* )
45367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45379     (
45380       cat <<\_ASBOX
45381 ## ----------------------------------------- ##
45382 ## Report this to wx-dev@lists.wxwidgets.org ##
45383 ## ----------------------------------------- ##
45384 _ASBOX
45385     ) |
45386       sed "s/^/$as_me: WARNING:     /" >&2
45387     ;;
45388 esac
45389 echo "$as_me:$LINENO: checking for $ac_header" >&5
45390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45392   echo $ECHO_N "(cached) $ECHO_C" >&6
45393 else
45394   eval "$as_ac_Header=\$ac_header_preproc"
45395 fi
45396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45398
45399 fi
45400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45401   cat >>confdefs.h <<_ACEOF
45402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45403 _ACEOF
45404
45405 fi
45406
45407 done
45408
45409
45410     if test "$ac_cv_header_ole2_h" = "yes" ; then
45411         if test "$GCC" = yes ; then
45412             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45413 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45414             cat >conftest.$ac_ext <<_ACEOF
45415 /* confdefs.h.  */
45416 _ACEOF
45417 cat confdefs.h >>conftest.$ac_ext
45418 cat >>conftest.$ac_ext <<_ACEOF
45419 /* end confdefs.h.  */
45420 #include <windows.h>
45421                             #include <ole2.h>
45422 int
45423 main ()
45424 {
45425
45426   ;
45427   return 0;
45428 }
45429 _ACEOF
45430 rm -f conftest.$ac_objext
45431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45432   (eval $ac_compile) 2>conftest.er1
45433   ac_status=$?
45434   grep -v '^ *+' conftest.er1 >conftest.err
45435   rm -f conftest.er1
45436   cat conftest.err >&5
45437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45438   (exit $ac_status); } &&
45439          { ac_try='test -z "$ac_cxx_werror_flag"
45440                          || test ! -s conftest.err'
45441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45442   (eval $ac_try) 2>&5
45443   ac_status=$?
45444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45445   (exit $ac_status); }; } &&
45446          { ac_try='test -s conftest.$ac_objext'
45447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45448   (eval $ac_try) 2>&5
45449   ac_status=$?
45450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45451   (exit $ac_status); }; }; then
45452   echo "$as_me:$LINENO: result: no" >&5
45453 echo "${ECHO_T}no" >&6
45454 else
45455   echo "$as_me: failed program was:" >&5
45456 sed 's/^/| /' conftest.$ac_ext >&5
45457
45458 echo "$as_me:$LINENO: result: yes" >&5
45459 echo "${ECHO_T}yes" >&6
45460                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45461 fi
45462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45463             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45464             if test "$wxUSE_OLE" = "yes" ; then
45465                 cat >>confdefs.h <<\_ACEOF
45466 #define wxUSE_OLE 1
45467 _ACEOF
45468
45469                 cat >>confdefs.h <<\_ACEOF
45470 #define wxUSE_OLE_AUTOMATION 1
45471 _ACEOF
45472
45473                 cat >>confdefs.h <<\_ACEOF
45474 #define wxUSE_OLE_ACTIVEX 1
45475 _ACEOF
45476
45477                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45478             fi
45479         fi
45480
45481                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45482             cat >>confdefs.h <<\_ACEOF
45483 #define wxUSE_DATAOBJ 1
45484 _ACEOF
45485
45486         fi
45487     else
45488         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45489 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45490
45491         wxUSE_CLIPBOARD=no
45492         wxUSE_DRAG_AND_DROP=no
45493         wxUSE_DATAOBJ=no
45494         wxUSE_OLE=no
45495     fi
45496
45497     if test "$wxUSE_METAFILE" = "yes"; then
45498         cat >>confdefs.h <<\_ACEOF
45499 #define wxUSE_METAFILE 1
45500 _ACEOF
45501
45502
45503                 cat >>confdefs.h <<\_ACEOF
45504 #define wxUSE_ENH_METAFILE 1
45505 _ACEOF
45506
45507     fi
45508 fi
45509
45510 if test "$wxUSE_IPC" = "yes"; then
45511     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45512         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45513 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45514         wxUSE_IPC=no
45515     fi
45516
45517     if test "$wxUSE_IPC" = "yes"; then
45518         cat >>confdefs.h <<\_ACEOF
45519 #define wxUSE_IPC 1
45520 _ACEOF
45521
45522         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45523     fi
45524 fi
45525
45526 if test "$wxUSE_DATAOBJ" = "yes"; then
45527     if test "$wxUSE_MGL" = 1; then
45528         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45529 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45530         wxUSE_DATAOBJ=no
45531     else
45532         cat >>confdefs.h <<\_ACEOF
45533 #define wxUSE_DATAOBJ 1
45534 _ACEOF
45535
45536     fi
45537 else
45538     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45539 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45540     wxUSE_CLIPBOARD=no
45541     wxUSE_DRAG_AND_DROP=no
45542 fi
45543
45544 if test "$wxUSE_CLIPBOARD" = "yes"; then
45545     if test "$wxUSE_MGL" = 1; then
45546         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45547 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45548         wxUSE_CLIPBOARD=no
45549     fi
45550
45551     if test "$wxUSE_CLIPBOARD" = "yes"; then
45552         cat >>confdefs.h <<\_ACEOF
45553 #define wxUSE_CLIPBOARD 1
45554 _ACEOF
45555
45556     fi
45557 fi
45558
45559 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45560     if test "$wxUSE_GTK" = 1; then
45561         if test "$WXGTK12" != 1; then
45562             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45563 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45564             wxUSE_DRAG_AND_DROP=no
45565         fi
45566     fi
45567
45568     if test "$wxUSE_MOTIF" = 1; then
45569         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45570 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45571         wxUSE_DRAG_AND_DROP=no
45572     fi
45573
45574     if test "$wxUSE_X11" = 1; then
45575         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45576 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45577         wxUSE_DRAG_AND_DROP=no
45578     fi
45579
45580     if test "$wxUSE_MGL" = 1; then
45581         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45582 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45583         wxUSE_DRAG_AND_DROP=no
45584     fi
45585
45586     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45587         cat >>confdefs.h <<\_ACEOF
45588 #define wxUSE_DRAG_AND_DROP 1
45589 _ACEOF
45590
45591     fi
45592
45593 fi
45594
45595 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45596     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45597 fi
45598
45599 if test "$wxUSE_SPLINES" = "yes" ; then
45600   cat >>confdefs.h <<\_ACEOF
45601 #define wxUSE_SPLINES 1
45602 _ACEOF
45603
45604 fi
45605
45606 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45607   cat >>confdefs.h <<\_ACEOF
45608 #define wxUSE_MOUSEWHEEL 1
45609 _ACEOF
45610
45611 fi
45612
45613
45614 USES_CONTROLS=0
45615 if test "$wxUSE_CONTROLS" = "yes"; then
45616   USES_CONTROLS=1
45617 fi
45618
45619 if test "$wxUSE_ACCEL" = "yes"; then
45620   cat >>confdefs.h <<\_ACEOF
45621 #define wxUSE_ACCEL 1
45622 _ACEOF
45623
45624   USES_CONTROLS=1
45625 fi
45626
45627 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45628   cat >>confdefs.h <<\_ACEOF
45629 #define wxUSE_ANIMATIONCTRL 1
45630 _ACEOF
45631
45632   USES_CONTROLS=1
45633   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45634 fi
45635
45636 if test "$wxUSE_BUTTON" = "yes"; then
45637   cat >>confdefs.h <<\_ACEOF
45638 #define wxUSE_BUTTON 1
45639 _ACEOF
45640
45641   USES_CONTROLS=1
45642 fi
45643
45644 if test "$wxUSE_BMPBUTTON" = "yes"; then
45645   cat >>confdefs.h <<\_ACEOF
45646 #define wxUSE_BMPBUTTON 1
45647 _ACEOF
45648
45649   USES_CONTROLS=1
45650 fi
45651
45652 if test "$wxUSE_CALCTRL" = "yes"; then
45653   cat >>confdefs.h <<\_ACEOF
45654 #define wxUSE_CALENDARCTRL 1
45655 _ACEOF
45656
45657   USES_CONTROLS=1
45658   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45659 fi
45660
45661 if test "$wxUSE_CARET" = "yes"; then
45662   cat >>confdefs.h <<\_ACEOF
45663 #define wxUSE_CARET 1
45664 _ACEOF
45665
45666   USES_CONTROLS=1
45667   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45668 fi
45669
45670 if test "$wxUSE_COMBOBOX" = "yes"; then
45671   cat >>confdefs.h <<\_ACEOF
45672 #define wxUSE_COMBOBOX 1
45673 _ACEOF
45674
45675   USES_CONTROLS=1
45676 fi
45677
45678 if test "$wxUSE_COMBOCTRL" = "yes"; then
45679   cat >>confdefs.h <<\_ACEOF
45680 #define wxUSE_COMBOCTRL 1
45681 _ACEOF
45682
45683   USES_CONTROLS=1
45684 fi
45685
45686 if test "$wxUSE_CHOICE" = "yes"; then
45687   cat >>confdefs.h <<\_ACEOF
45688 #define wxUSE_CHOICE 1
45689 _ACEOF
45690
45691   USES_CONTROLS=1
45692 fi
45693
45694 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45695     cat >>confdefs.h <<\_ACEOF
45696 #define wxUSE_CHOICEBOOK 1
45697 _ACEOF
45698
45699     USES_CONTROLS=1
45700 fi
45701
45702 if test "$wxUSE_CHECKBOX" = "yes"; then
45703   cat >>confdefs.h <<\_ACEOF
45704 #define wxUSE_CHECKBOX 1
45705 _ACEOF
45706
45707   USES_CONTROLS=1
45708 fi
45709
45710 if test "$wxUSE_CHECKLST" = "yes"; then
45711   cat >>confdefs.h <<\_ACEOF
45712 #define wxUSE_CHECKLISTBOX 1
45713 _ACEOF
45714
45715   USES_CONTROLS=1
45716   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45717 fi
45718
45719 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45720   cat >>confdefs.h <<\_ACEOF
45721 #define wxUSE_COLOURPICKERCTRL 1
45722 _ACEOF
45723
45724   USES_CONTROLS=1
45725 fi
45726
45727 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45728   cat >>confdefs.h <<\_ACEOF
45729 #define wxUSE_DATEPICKCTRL 1
45730 _ACEOF
45731
45732   USES_CONTROLS=1
45733 fi
45734
45735 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45736   cat >>confdefs.h <<\_ACEOF
45737 #define wxUSE_DIRPICKERCTRL 1
45738 _ACEOF
45739
45740   USES_CONTROLS=1
45741 fi
45742
45743 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45744   cat >>confdefs.h <<\_ACEOF
45745 #define wxUSE_FILEPICKERCTRL 1
45746 _ACEOF
45747
45748   USES_CONTROLS=1
45749 fi
45750
45751 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45752   cat >>confdefs.h <<\_ACEOF
45753 #define wxUSE_FONTPICKERCTRL 1
45754 _ACEOF
45755
45756   USES_CONTROLS=1
45757 fi
45758
45759 if test "$wxUSE_DISPLAY" = "yes"; then
45760     cat >>confdefs.h <<\_ACEOF
45761 #define wxUSE_DISPLAY 1
45762 _ACEOF
45763
45764     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
45765 fi
45766
45767 if test "$wxUSE_DETECT_SM" = "yes"; then
45768     cat >>confdefs.h <<\_ACEOF
45769 #define wxUSE_DETECT_SM 1
45770 _ACEOF
45771
45772 fi
45773
45774 if test "$wxUSE_GAUGE" = "yes"; then
45775   cat >>confdefs.h <<\_ACEOF
45776 #define wxUSE_GAUGE 1
45777 _ACEOF
45778
45779   USES_CONTROLS=1
45780 fi
45781
45782 if test "$wxUSE_GRID" = "yes"; then
45783   cat >>confdefs.h <<\_ACEOF
45784 #define wxUSE_GRID 1
45785 _ACEOF
45786
45787   USES_CONTROLS=1
45788   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45789 fi
45790
45791 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45792   cat >>confdefs.h <<\_ACEOF
45793 #define wxUSE_HYPERLINKCTRL 1
45794 _ACEOF
45795
45796   USES_CONTROLS=1
45797 fi
45798
45799 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45800   cat >>confdefs.h <<\_ACEOF
45801 #define wxUSE_BITMAPCOMBOBOX 1
45802 _ACEOF
45803
45804   USES_CONTROLS=1
45805 fi
45806
45807 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45808   cat >>confdefs.h <<\_ACEOF
45809 #define wxUSE_DATAVIEWCTRL 1
45810 _ACEOF
45811
45812   USES_CONTROLS=1
45813   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45814 fi
45815
45816 if test "$wxUSE_IMAGLIST" = "yes"; then
45817     cat >>confdefs.h <<\_ACEOF
45818 #define wxUSE_IMAGLIST 1
45819 _ACEOF
45820
45821 fi
45822
45823 if test "$wxUSE_LISTBOOK" = "yes"; then
45824     cat >>confdefs.h <<\_ACEOF
45825 #define wxUSE_LISTBOOK 1
45826 _ACEOF
45827
45828     USES_CONTROLS=1
45829 fi
45830
45831 if test "$wxUSE_LISTBOX" = "yes"; then
45832     cat >>confdefs.h <<\_ACEOF
45833 #define wxUSE_LISTBOX 1
45834 _ACEOF
45835
45836     USES_CONTROLS=1
45837     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
45838 fi
45839
45840 if test "$wxUSE_LISTCTRL" = "yes"; then
45841     if test "$wxUSE_IMAGLIST" = "yes"; then
45842         cat >>confdefs.h <<\_ACEOF
45843 #define wxUSE_LISTCTRL 1
45844 _ACEOF
45845
45846         USES_CONTROLS=1
45847         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45848     else
45849         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45850 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45851     fi
45852 fi
45853
45854 if test "$wxUSE_NOTEBOOK" = "yes"; then
45855     cat >>confdefs.h <<\_ACEOF
45856 #define wxUSE_NOTEBOOK 1
45857 _ACEOF
45858
45859     USES_CONTROLS=1
45860     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45861 fi
45862
45863 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45864   cat >>confdefs.h <<\_ACEOF
45865 #define wxUSE_ODCOMBOBOX 1
45866 _ACEOF
45867
45868   USES_CONTROLS=1
45869   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45870 fi
45871
45872
45873 if test "$wxUSE_RADIOBOX" = "yes"; then
45874     cat >>confdefs.h <<\_ACEOF
45875 #define wxUSE_RADIOBOX 1
45876 _ACEOF
45877
45878     USES_CONTROLS=1
45879 fi
45880
45881 if test "$wxUSE_RADIOBTN" = "yes"; then
45882     cat >>confdefs.h <<\_ACEOF
45883 #define wxUSE_RADIOBTN 1
45884 _ACEOF
45885
45886     USES_CONTROLS=1
45887 fi
45888
45889 if test "$wxUSE_SASH" = "yes"; then
45890     cat >>confdefs.h <<\_ACEOF
45891 #define wxUSE_SASH 1
45892 _ACEOF
45893
45894     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45895 fi
45896
45897 if test "$wxUSE_SCROLLBAR" = "yes"; then
45898     cat >>confdefs.h <<\_ACEOF
45899 #define wxUSE_SCROLLBAR 1
45900 _ACEOF
45901
45902     USES_CONTROLS=1
45903     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45904 fi
45905
45906 if test "$wxUSE_SLIDER" = "yes"; then
45907     cat >>confdefs.h <<\_ACEOF
45908 #define wxUSE_SLIDER 1
45909 _ACEOF
45910
45911     USES_CONTROLS=1
45912 fi
45913
45914 if test "$wxUSE_SPINBTN" = "yes"; then
45915     cat >>confdefs.h <<\_ACEOF
45916 #define wxUSE_SPINBTN 1
45917 _ACEOF
45918
45919     USES_CONTROLS=1
45920 fi
45921
45922 if test "$wxUSE_SPINCTRL" = "yes"; then
45923     cat >>confdefs.h <<\_ACEOF
45924 #define wxUSE_SPINCTRL 1
45925 _ACEOF
45926
45927     USES_CONTROLS=1
45928 fi
45929
45930 if test "$wxUSE_SPLITTER" = "yes"; then
45931     cat >>confdefs.h <<\_ACEOF
45932 #define wxUSE_SPLITTER 1
45933 _ACEOF
45934
45935     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45936 fi
45937
45938 if test "$wxUSE_STATBMP" = "yes"; then
45939     cat >>confdefs.h <<\_ACEOF
45940 #define wxUSE_STATBMP 1
45941 _ACEOF
45942
45943     USES_CONTROLS=1
45944 fi
45945
45946 if test "$wxUSE_STATBOX" = "yes"; then
45947     cat >>confdefs.h <<\_ACEOF
45948 #define wxUSE_STATBOX 1
45949 _ACEOF
45950
45951     USES_CONTROLS=1
45952 fi
45953
45954 if test "$wxUSE_STATTEXT" = "yes"; then
45955     cat >>confdefs.h <<\_ACEOF
45956 #define wxUSE_STATTEXT 1
45957 _ACEOF
45958
45959     USES_CONTROLS=1
45960 fi
45961
45962 if test "$wxUSE_STATLINE" = "yes"; then
45963     cat >>confdefs.h <<\_ACEOF
45964 #define wxUSE_STATLINE 1
45965 _ACEOF
45966
45967     USES_CONTROLS=1
45968 fi
45969
45970 if test "$wxUSE_STATUSBAR" = "yes"; then
45971         cat >>confdefs.h <<\_ACEOF
45972 #define wxUSE_NATIVE_STATUSBAR 1
45973 _ACEOF
45974
45975     cat >>confdefs.h <<\_ACEOF
45976 #define wxUSE_STATUSBAR 1
45977 _ACEOF
45978
45979     USES_CONTROLS=1
45980
45981     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45982 fi
45983
45984 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45985     cat >>confdefs.h <<\_ACEOF
45986 #define wxUSE_TAB_DIALOG 1
45987 _ACEOF
45988
45989 fi
45990
45991 if test "$wxUSE_TEXTCTRL" = "yes"; then
45992     cat >>confdefs.h <<\_ACEOF
45993 #define wxUSE_TEXTCTRL 1
45994 _ACEOF
45995
45996     USES_CONTROLS=1
45997     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45998 fi
45999
46000 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46001     if test "$wxUSE_COCOA" = 1 ; then
46002         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46003 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46004         wxUSE_TOGGLEBTN=no
46005     fi
46006
46007     if test "$wxUSE_TOGGLEBTN" = "yes"; then
46008         cat >>confdefs.h <<\_ACEOF
46009 #define wxUSE_TOGGLEBTN 1
46010 _ACEOF
46011
46012         USES_CONTROLS=1
46013     fi
46014 fi
46015
46016 if test "$wxUSE_TOOLBAR" = "yes"; then
46017     cat >>confdefs.h <<\_ACEOF
46018 #define wxUSE_TOOLBAR 1
46019 _ACEOF
46020
46021     USES_CONTROLS=1
46022
46023     if test "$wxUSE_UNIVERSAL" = "yes"; then
46024         wxUSE_TOOLBAR_NATIVE="no"
46025     else
46026         wxUSE_TOOLBAR_NATIVE="yes"
46027         cat >>confdefs.h <<\_ACEOF
46028 #define wxUSE_TOOLBAR_NATIVE 1
46029 _ACEOF
46030
46031     fi
46032
46033     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46034 fi
46035
46036 if test "$wxUSE_TOOLTIPS" = "yes"; then
46037     if test "$wxUSE_MOTIF" = 1; then
46038         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46039 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46040     else
46041         if test "$wxUSE_UNIVERSAL" = "yes"; then
46042             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46043 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46044         else
46045             cat >>confdefs.h <<\_ACEOF
46046 #define wxUSE_TOOLTIPS 1
46047 _ACEOF
46048
46049         fi
46050     fi
46051 fi
46052
46053 if test "$wxUSE_TREEBOOK" = "yes"; then
46054     cat >>confdefs.h <<\_ACEOF
46055 #define wxUSE_TREEBOOK 1
46056 _ACEOF
46057
46058     USES_CONTROLS=1
46059 fi
46060
46061 if test "$wxUSE_TOOLBOOK" = "yes"; then
46062     cat >>confdefs.h <<\_ACEOF
46063 #define wxUSE_TOOLBOOK 1
46064 _ACEOF
46065
46066     USES_CONTROLS=1
46067 fi
46068
46069 if test "$wxUSE_TREECTRL" = "yes"; then
46070     if test "$wxUSE_IMAGLIST" = "yes"; then
46071         cat >>confdefs.h <<\_ACEOF
46072 #define wxUSE_TREECTRL 1
46073 _ACEOF
46074
46075         USES_CONTROLS=1
46076         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46077     else
46078         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46079 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46080     fi
46081 fi
46082
46083 if test "$wxUSE_POPUPWIN" = "yes"; then
46084     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46085         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46086 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46087     else
46088         if test "$wxUSE_PM" = 1; then
46089             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46090 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46091         else
46092             cat >>confdefs.h <<\_ACEOF
46093 #define wxUSE_POPUPWIN 1
46094 _ACEOF
46095
46096             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46097
46098             USES_CONTROLS=1
46099         fi
46100     fi
46101 fi
46102
46103 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46104     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46105         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
46106 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
46107     else
46108         cat >>confdefs.h <<\_ACEOF
46109 #define wxUSE_DIALUP_MANAGER 1
46110 _ACEOF
46111
46112         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46113     fi
46114 fi
46115
46116 if test "$wxUSE_TIPWINDOW" = "yes"; then
46117     if test "$wxUSE_PM" = 1; then
46118         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46119 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46120     else
46121         cat >>confdefs.h <<\_ACEOF
46122 #define wxUSE_TIPWINDOW 1
46123 _ACEOF
46124
46125     fi
46126 fi
46127
46128 if test "$USES_CONTROLS" = 1; then
46129     cat >>confdefs.h <<\_ACEOF
46130 #define wxUSE_CONTROLS 1
46131 _ACEOF
46132
46133 fi
46134
46135
46136 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46137     cat >>confdefs.h <<\_ACEOF
46138 #define wxUSE_ACCESSIBILITY 1
46139 _ACEOF
46140
46141     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46142 fi
46143
46144 if test "$wxUSE_DC_CACHEING" = "yes"; then
46145     cat >>confdefs.h <<\_ACEOF
46146 #define wxUSE_DC_CACHEING 1
46147 _ACEOF
46148
46149 fi
46150
46151 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46152     cat >>confdefs.h <<\_ACEOF
46153 #define wxUSE_DRAGIMAGE 1
46154 _ACEOF
46155
46156     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46157 fi
46158
46159 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46160     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46161         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46162 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46163     else
46164         cat >>confdefs.h <<\_ACEOF
46165 #define wxUSE_EXCEPTIONS 1
46166 _ACEOF
46167
46168         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46169     fi
46170 fi
46171
46172 USE_HTML=0
46173 if test "$wxUSE_HTML" = "yes"; then
46174     cat >>confdefs.h <<\_ACEOF
46175 #define wxUSE_HTML 1
46176 _ACEOF
46177
46178     USE_HTML=1
46179     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46180     if test "$wxUSE_MAC" = 1; then
46181         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46182     fi
46183 fi
46184 if test "$wxUSE_WEBKIT" = "yes"; then
46185     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46186         old_CPPFLAGS="$CPPFLAGS"
46187         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46188         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46189 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46190 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46191   echo $ECHO_N "(cached) $ECHO_C" >&6
46192 else
46193   cat >conftest.$ac_ext <<_ACEOF
46194 /* confdefs.h.  */
46195 _ACEOF
46196 cat confdefs.h >>conftest.$ac_ext
46197 cat >>conftest.$ac_ext <<_ACEOF
46198 /* end confdefs.h.  */
46199 #include <Carbon/Carbon.h>
46200
46201 #include <WebKit/HIWebView.h>
46202 _ACEOF
46203 rm -f conftest.$ac_objext
46204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46205   (eval $ac_compile) 2>conftest.er1
46206   ac_status=$?
46207   grep -v '^ *+' conftest.er1 >conftest.err
46208   rm -f conftest.er1
46209   cat conftest.err >&5
46210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46211   (exit $ac_status); } &&
46212          { ac_try='test -z "$ac_cxx_werror_flag"
46213                          || test ! -s conftest.err'
46214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46215   (eval $ac_try) 2>&5
46216   ac_status=$?
46217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46218   (exit $ac_status); }; } &&
46219          { ac_try='test -s conftest.$ac_objext'
46220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46221   (eval $ac_try) 2>&5
46222   ac_status=$?
46223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46224   (exit $ac_status); }; }; then
46225   ac_cv_header_WebKit_HIWebView_h=yes
46226 else
46227   echo "$as_me: failed program was:" >&5
46228 sed 's/^/| /' conftest.$ac_ext >&5
46229
46230 ac_cv_header_WebKit_HIWebView_h=no
46231 fi
46232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46233 fi
46234 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46235 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46236 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46237
46238                            cat >>confdefs.h <<\_ACEOF
46239 #define wxUSE_WEBKIT 1
46240 _ACEOF
46241
46242                            WEBKIT_LINK="-framework WebKit"
46243
46244 else
46245
46246                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46247 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46248                            wxUSE_WEBKIT=no
46249
46250 fi
46251
46252
46253         CPPFLAGS="$old_CPPFLAGS"
46254     elif test "$wxUSE_COCOA" = 1; then
46255         cat >>confdefs.h <<\_ACEOF
46256 #define wxUSE_WEBKIT 1
46257 _ACEOF
46258
46259     else
46260         wxUSE_WEBKIT=no
46261     fi
46262 fi
46263
46264 USE_XRC=0
46265 if test "$wxUSE_XRC" = "yes"; then
46266     if test "$wxUSE_XML" != "yes"; then
46267         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46268 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46269         wxUSE_XRC=no
46270     else
46271         cat >>confdefs.h <<\_ACEOF
46272 #define wxUSE_XRC 1
46273 _ACEOF
46274
46275         USE_XRC=1
46276         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46277     fi
46278 fi
46279
46280 USE_AUI=0
46281 if test "$wxUSE_AUI" = "yes"; then
46282    cat >>confdefs.h <<\_ACEOF
46283 #define wxUSE_AUI 1
46284 _ACEOF
46285
46286    USE_AUI=1
46287    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46288 fi
46289
46290 if test "$wxUSE_MENUS" = "yes"; then
46291     cat >>confdefs.h <<\_ACEOF
46292 #define wxUSE_MENUS 1
46293 _ACEOF
46294
46295     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46296 fi
46297
46298 if test "$wxUSE_METAFILE" = "yes"; then
46299     cat >>confdefs.h <<\_ACEOF
46300 #define wxUSE_METAFILE 1
46301 _ACEOF
46302
46303 fi
46304
46305 if test "$wxUSE_MIMETYPE" = "yes"; then
46306     cat >>confdefs.h <<\_ACEOF
46307 #define wxUSE_MIMETYPE 1
46308 _ACEOF
46309
46310 fi
46311
46312 if test "$wxUSE_MINIFRAME" = "yes"; then
46313     cat >>confdefs.h <<\_ACEOF
46314 #define wxUSE_MINIFRAME 1
46315 _ACEOF
46316
46317     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46318 fi
46319
46320 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46321     cat >>confdefs.h <<\_ACEOF
46322 #define wxUSE_SYSTEM_OPTIONS 1
46323 _ACEOF
46324
46325     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
46326         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
46327         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46328     fi
46329 fi
46330
46331
46332 if test "$wxUSE_VALIDATORS" = "yes"; then
46333     cat >>confdefs.h <<\_ACEOF
46334 #define wxUSE_VALIDATORS 1
46335 _ACEOF
46336
46337     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46338 fi
46339
46340 if test "$wxUSE_PALETTE" = "yes" ; then
46341   cat >>confdefs.h <<\_ACEOF
46342 #define wxUSE_PALETTE 1
46343 _ACEOF
46344
46345 fi
46346
46347 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46348     LIBS=" -lunicows $LIBS"
46349 fi
46350
46351 USE_RICHTEXT=0
46352 if test "$wxUSE_RICHTEXT" = "yes"; then
46353     cat >>confdefs.h <<\_ACEOF
46354 #define wxUSE_RICHTEXT 1
46355 _ACEOF
46356
46357     USE_RICHTEXT=1
46358     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46359 fi
46360
46361
46362 if test "$wxUSE_IMAGE" = "yes" ; then
46363     cat >>confdefs.h <<\_ACEOF
46364 #define wxUSE_IMAGE 1
46365 _ACEOF
46366
46367
46368     if test "$wxUSE_GIF" = "yes" ; then
46369       cat >>confdefs.h <<\_ACEOF
46370 #define wxUSE_GIF 1
46371 _ACEOF
46372
46373     fi
46374
46375     if test "$wxUSE_PCX" = "yes" ; then
46376       cat >>confdefs.h <<\_ACEOF
46377 #define wxUSE_PCX 1
46378 _ACEOF
46379
46380     fi
46381
46382     if test "$wxUSE_IFF" = "yes" ; then
46383       cat >>confdefs.h <<\_ACEOF
46384 #define wxUSE_IFF 1
46385 _ACEOF
46386
46387     fi
46388
46389     if test "$wxUSE_PNM" = "yes" ; then
46390       cat >>confdefs.h <<\_ACEOF
46391 #define wxUSE_PNM 1
46392 _ACEOF
46393
46394     fi
46395
46396     if test "$wxUSE_XPM" = "yes" ; then
46397       cat >>confdefs.h <<\_ACEOF
46398 #define wxUSE_XPM 1
46399 _ACEOF
46400
46401     fi
46402
46403     if test "$wxUSE_ICO_CUR" = "yes" ; then
46404       cat >>confdefs.h <<\_ACEOF
46405 #define wxUSE_ICO_CUR 1
46406 _ACEOF
46407
46408     fi
46409 fi
46410
46411
46412 if test "$wxUSE_ABOUTDLG" = "yes"; then
46413     cat >>confdefs.h <<\_ACEOF
46414 #define wxUSE_ABOUTDLG 1
46415 _ACEOF
46416
46417 fi
46418
46419 if test "$wxUSE_CHOICEDLG" = "yes"; then
46420     cat >>confdefs.h <<\_ACEOF
46421 #define wxUSE_CHOICEDLG 1
46422 _ACEOF
46423
46424 fi
46425
46426 if test "$wxUSE_COLOURDLG" = "yes"; then
46427     cat >>confdefs.h <<\_ACEOF
46428 #define wxUSE_COLOURDLG 1
46429 _ACEOF
46430
46431 fi
46432
46433 if test "$wxUSE_FILEDLG" = "yes"; then
46434     cat >>confdefs.h <<\_ACEOF
46435 #define wxUSE_FILEDLG 1
46436 _ACEOF
46437
46438 fi
46439
46440 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46441     cat >>confdefs.h <<\_ACEOF
46442 #define wxUSE_FINDREPLDLG 1
46443 _ACEOF
46444
46445 fi
46446
46447 if test "$wxUSE_FONTDLG" = "yes"; then
46448     cat >>confdefs.h <<\_ACEOF
46449 #define wxUSE_FONTDLG 1
46450 _ACEOF
46451
46452 fi
46453
46454 if test "$wxUSE_DIRDLG" = "yes"; then
46455     if test "$wxUSE_TREECTRL" != "yes"; then
46456         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46457 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46458     else
46459         cat >>confdefs.h <<\_ACEOF
46460 #define wxUSE_DIRDLG 1
46461 _ACEOF
46462
46463     fi
46464 fi
46465
46466 if test "$wxUSE_MSGDLG" = "yes"; then
46467     cat >>confdefs.h <<\_ACEOF
46468 #define wxUSE_MSGDLG 1
46469 _ACEOF
46470
46471 fi
46472
46473 if test "$wxUSE_NUMBERDLG" = "yes"; then
46474     cat >>confdefs.h <<\_ACEOF
46475 #define wxUSE_NUMBERDLG 1
46476 _ACEOF
46477
46478 fi
46479
46480 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46481     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46482        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46483 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46484     else
46485         cat >>confdefs.h <<\_ACEOF
46486 #define wxUSE_PROGRESSDLG 1
46487 _ACEOF
46488
46489     fi
46490 fi
46491
46492 if test "$wxUSE_SPLASH" = "yes"; then
46493     cat >>confdefs.h <<\_ACEOF
46494 #define wxUSE_SPLASH 1
46495 _ACEOF
46496
46497     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46498 fi
46499
46500 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46501     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46502        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46503 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46504     else
46505         cat >>confdefs.h <<\_ACEOF
46506 #define wxUSE_STARTUP_TIPS 1
46507 _ACEOF
46508
46509     fi
46510 fi
46511
46512 if test "$wxUSE_TEXTDLG" = "yes"; then
46513     cat >>confdefs.h <<\_ACEOF
46514 #define wxUSE_TEXTDLG 1
46515 _ACEOF
46516
46517 fi
46518
46519 if test "$wxUSE_WIZARDDLG" = "yes"; then
46520     cat >>confdefs.h <<\_ACEOF
46521 #define wxUSE_WIZARDDLG 1
46522 _ACEOF
46523
46524     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46525 fi
46526
46527
46528 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46529    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46530       cat >>confdefs.h <<\_ACEOF
46531 #define wxUSE_GRAPHICS_CONTEXT 1
46532 _ACEOF
46533
46534    elif test "$wxUSE_GTK" != 1; then
46535             cat >>confdefs.h <<\_ACEOF
46536 #define wxUSE_GRAPHICS_CONTEXT 1
46537 _ACEOF
46538
46539    else
46540
46541 pkg_failed=no
46542 echo "$as_me:$LINENO: checking for CAIRO" >&5
46543 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46544
46545 if test -n "$PKG_CONFIG"; then
46546     if test -n "$CAIRO_CFLAGS"; then
46547         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46548     else
46549         if test -n "$PKG_CONFIG" && \
46550     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46551   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46552   ac_status=$?
46553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46554   (exit $ac_status); }; then
46555   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46556 else
46557   pkg_failed=yes
46558 fi
46559     fi
46560 else
46561         pkg_failed=untried
46562 fi
46563 if test -n "$PKG_CONFIG"; then
46564     if test -n "$CAIRO_LIBS"; then
46565         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46566     else
46567         if test -n "$PKG_CONFIG" && \
46568     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46569   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46570   ac_status=$?
46571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46572   (exit $ac_status); }; then
46573   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46574 else
46575   pkg_failed=yes
46576 fi
46577     fi
46578 else
46579         pkg_failed=untried
46580 fi
46581
46582
46583
46584 if test $pkg_failed = yes; then
46585
46586 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46587         _pkg_short_errors_supported=yes
46588 else
46589         _pkg_short_errors_supported=no
46590 fi
46591         if test $_pkg_short_errors_supported = yes; then
46592                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46593         else
46594                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46595         fi
46596         # Put the nasty error message in config.log where it belongs
46597         echo "$CAIRO_PKG_ERRORS" >&5
46598
46599
46600                 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46601 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46602
46603
46604 elif test $pkg_failed = untried; then
46605
46606                 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46607 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46608
46609
46610 else
46611         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46612         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46613         echo "$as_me:$LINENO: result: yes" >&5
46614 echo "${ECHO_T}yes" >&6
46615
46616                 cat >>confdefs.h <<\_ACEOF
46617 #define wxUSE_GRAPHICS_CONTEXT 1
46618 _ACEOF
46619
46620
46621 fi
46622    fi
46623 fi
46624
46625
46626 USE_MEDIA=0
46627
46628 if test "$wxUSE_MEDIACTRL" = "yes"; then
46629     USE_MEDIA=1
46630
46631                 if test "$wxUSE_GTK" = 1; then
46632         wxUSE_GSTREAMER="no"
46633
46634                                                                 GST_VERSION_MAJOR=0
46635         GST_VERSION_MINOR=10
46636         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46637
46638         if test "$wxUSE_GSTREAMER8" = "no"; then
46639
46640 pkg_failed=no
46641 echo "$as_me:$LINENO: checking for GST" >&5
46642 echo $ECHO_N "checking for GST... $ECHO_C" >&6
46643
46644 if test -n "$PKG_CONFIG"; then
46645     if test -n "$GST_CFLAGS"; then
46646         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46647     else
46648         if test -n "$PKG_CONFIG" && \
46649     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46650   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46651   ac_status=$?
46652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46653   (exit $ac_status); }; then
46654   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46655 else
46656   pkg_failed=yes
46657 fi
46658     fi
46659 else
46660         pkg_failed=untried
46661 fi
46662 if test -n "$PKG_CONFIG"; then
46663     if test -n "$GST_LIBS"; then
46664         pkg_cv_GST_LIBS="$GST_LIBS"
46665     else
46666         if test -n "$PKG_CONFIG" && \
46667     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46668   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46669   ac_status=$?
46670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46671   (exit $ac_status); }; then
46672   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46673 else
46674   pkg_failed=yes
46675 fi
46676     fi
46677 else
46678         pkg_failed=untried
46679 fi
46680
46681
46682
46683 if test $pkg_failed = yes; then
46684
46685 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46686         _pkg_short_errors_supported=yes
46687 else
46688         _pkg_short_errors_supported=no
46689 fi
46690         if test $_pkg_short_errors_supported = yes; then
46691                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46692         else
46693                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46694         fi
46695         # Put the nasty error message in config.log where it belongs
46696         echo "$GST_PKG_ERRORS" >&5
46697
46698
46699                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46700 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46701                     GST_VERSION_MINOR=8
46702
46703
46704 elif test $pkg_failed = untried; then
46705
46706                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46707 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46708                     GST_VERSION_MINOR=8
46709
46710
46711 else
46712         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46713         GST_LIBS=$pkg_cv_GST_LIBS
46714         echo "$as_me:$LINENO: result: yes" >&5
46715 echo "${ECHO_T}yes" >&6
46716
46717                     wxUSE_GSTREAMER="yes"
46718                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46719
46720 fi
46721         else
46722                         GST_VERSION_MINOR=8
46723         fi
46724
46725         if test $GST_VERSION_MINOR = "8"; then
46726             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46727
46728 pkg_failed=no
46729 echo "$as_me:$LINENO: checking for GST" >&5
46730 echo $ECHO_N "checking for GST... $ECHO_C" >&6
46731
46732 if test -n "$PKG_CONFIG"; then
46733     if test -n "$GST_CFLAGS"; then
46734         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46735     else
46736         if test -n "$PKG_CONFIG" && \
46737     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46738   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46739   ac_status=$?
46740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46741   (exit $ac_status); }; then
46742   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46743 else
46744   pkg_failed=yes
46745 fi
46746     fi
46747 else
46748         pkg_failed=untried
46749 fi
46750 if test -n "$PKG_CONFIG"; then
46751     if test -n "$GST_LIBS"; then
46752         pkg_cv_GST_LIBS="$GST_LIBS"
46753     else
46754         if test -n "$PKG_CONFIG" && \
46755     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46756   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46757   ac_status=$?
46758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46759   (exit $ac_status); }; then
46760   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46761 else
46762   pkg_failed=yes
46763 fi
46764     fi
46765 else
46766         pkg_failed=untried
46767 fi
46768
46769
46770
46771 if test $pkg_failed = yes; then
46772
46773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46774         _pkg_short_errors_supported=yes
46775 else
46776         _pkg_short_errors_supported=no
46777 fi
46778         if test $_pkg_short_errors_supported = yes; then
46779                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46780         else
46781                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46782         fi
46783         # Put the nasty error message in config.log where it belongs
46784         echo "$GST_PKG_ERRORS" >&5
46785
46786
46787                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46788 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46789
46790 elif test $pkg_failed = untried; then
46791
46792                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46793 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46794
46795 else
46796         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46797         GST_LIBS=$pkg_cv_GST_LIBS
46798         echo "$as_me:$LINENO: result: yes" >&5
46799 echo "${ECHO_T}yes" >&6
46800         wxUSE_GSTREAMER="yes"
46801 fi
46802         fi
46803
46804
46805         if test "$wxUSE_GSTREAMER" = "yes"; then
46806                                     case "${host}" in
46807                 *-*-solaris2* )
46808                     if "$GCC" = yes; then
46809                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46810                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46811                     fi
46812             esac
46813
46814             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46815             LIBS="$GST_LIBS $LIBS"
46816
46817             cat >>confdefs.h <<\_ACEOF
46818 #define wxUSE_GSTREAMER 1
46819 _ACEOF
46820
46821         else
46822             USE_MEDIA=0
46823         fi
46824     fi
46825
46826     if test $USE_MEDIA = 1; then
46827         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46828         cat >>confdefs.h <<\_ACEOF
46829 #define wxUSE_MEDIACTRL 1
46830 _ACEOF
46831
46832     fi
46833 fi
46834
46835
46836 if test "$cross_compiling" = "yes"; then
46837         OSINFO="\"$host\""
46838 else
46839         OSINFO=`uname -s -r -m`
46840     OSINFO="\"$OSINFO\""
46841 fi
46842
46843 cat >>confdefs.h <<_ACEOF
46844 #define WXWIN_OS_DESCRIPTION $OSINFO
46845 _ACEOF
46846
46847
46848
46849 if test "x$prefix" != "xNONE"; then
46850     wxPREFIX=$prefix
46851 else
46852     wxPREFIX=$ac_default_prefix
46853 fi
46854
46855 cat >>confdefs.h <<_ACEOF
46856 #define wxINSTALL_PREFIX "$wxPREFIX"
46857 _ACEOF
46858
46859
46860
46861
46862 CORE_BASE_LIBS="net base"
46863 CORE_GUI_LIBS="adv core"
46864
46865 if test "$wxUSE_XML" = "yes" ; then
46866     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46867 fi
46868 if test "$wxUSE_ODBC" != "no" ; then
46869     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46870     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46871 fi
46872 if test "$wxUSE_HTML" = "yes" ; then
46873     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46874 fi
46875 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46876     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46877 fi
46878 if test "$wxUSE_XRC" = "yes" ; then
46879     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46880 fi
46881 if test "$wxUSE_AUI" = "yes" ; then
46882     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46883 fi
46884
46885 if test "$wxUSE_GUI" != "yes"; then
46886     CORE_GUI_LIBS=""
46887 fi
46888
46889
46890
46891
46892
46893 ac_ext=c
46894 ac_cpp='$CPP $CPPFLAGS'
46895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46898
46899
46900
46901 if test "$wxUSE_MAC" = 1 ; then
46902     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46903         if test "$USE_DARWIN" = 1; then
46904             LDFLAGS="$LDFLAGS -framework QuickTime"
46905         else
46906             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46907         fi
46908     fi
46909     if test "$USE_DARWIN" = 1; then
46910         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46911     else
46912         LDFLAGS="$LDFLAGS -lCarbonLib"
46913     fi
46914 fi
46915 if test "$wxUSE_COCOA" = 1 ; then
46916     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46917     if test "$wxUSE_MEDIACTRL" = "yes"; then
46918         LDFLAGS="$LDFLAGS -framework QuickTime"
46919     fi
46920 fi
46921 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46922     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46923 fi
46924
46925 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46926
46927 if test "$wxUSE_GUI" = "yes"; then
46928
46929
46930         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46931                      dynamic erase event exec font image minimal mobile \
46932                      mobile/wxedit mobile/styles propsize render \
46933                      rotate shaped vscroll widgets"
46934
46935     if test "$wxUSE_MONOLITHIC" != "yes"; then
46936         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46937     fi
46938     if test "$TOOLKIT" = "MSW"; then
46939         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46940         if test "$wxUSE_UNIVERSAL" != "yes"; then
46941             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46942         fi
46943     fi
46944     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46945         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46946     fi
46947 else
46948     SAMPLES_SUBDIRS="console"
46949 fi
46950
46951
46952 if test "x$INTELCC" = "xyes" ; then
46953                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46954 elif test "$GCC" = yes ; then
46955     CWARNINGS="-Wall -Wundef"
46956 fi
46957
46958 if test "x$INTELCXX" = "xyes" ; then
46959                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46960 elif test "$GXX" = yes ; then
46961         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
46962 fi
46963
46964
46965 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46966 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46967
46968
46969 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46970  -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
46971  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46972  $CPPFLAGS `
46973
46974 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46975 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46976 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
46977
46978 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46979
46980
46981 if test "x$MWCC" = "xyes"; then
46982
46983             CC="$CC -cwd source -I-"
46984     CXX="$CXX -cwd source -I-"
46985 fi
46986
46987
46988 LIBS=`echo $LIBS`
46989 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46990 EXTRALIBS_XML="$EXPAT_LINK"
46991 EXTRALIBS_HTML="$MSPACK_LINK"
46992 EXTRALIBS_ODBC="$ODBC_LINK"
46993 if test "$wxUSE_GUI" = "yes"; then
46994     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46995 fi
46996 if test "$wxUSE_OPENGL" = "yes"; then
46997     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46998 fi
46999
47000 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47001
47002 WXCONFIG_LIBS="$LIBS"
47003
47004 if test "$wxUSE_REGEX" = "builtin" ; then
47005     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47006 fi
47007 if test "$wxUSE_EXPAT" = "builtin" ; then
47008     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47009 fi
47010 if test "$wxUSE_ODBC" = "builtin" ; then
47011     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
47012 fi
47013 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47014     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47015 fi
47016 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47017     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47018 fi
47019 if test "$wxUSE_LIBPNG" = "builtin" ; then
47020     wxconfig_3rdparty="png $wxconfig_3rdparty"
47021 fi
47022 if test "$wxUSE_ZLIB" = "builtin" ; then
47023     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47024 fi
47025
47026 for i in $wxconfig_3rdparty ; do
47027     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47028 done
47029
47030
47031 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47032     WXUNIV=1
47033
47034     case "$wxUNIV_THEMES" in
47035         ''|all)
47036             cat >>confdefs.h <<\_ACEOF
47037 #define wxUSE_ALL_THEMES 1
47038 _ACEOF
47039
47040             ;;
47041
47042         *)
47043             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
47044                 cat >>confdefs.h <<_ACEOF
47045 #define wxUSE_THEME_$t 1
47046 _ACEOF
47047
47048             done
47049     esac
47050 else
47051     WXUNIV=0
47052 fi
47053
47054
47055
47056
47057
47058
47059
47060
47061
47062 if test $wxUSE_MONOLITHIC = "yes" ; then
47063     MONOLITHIC=1
47064 else
47065     MONOLITHIC=0
47066 fi
47067
47068 if test $wxUSE_PLUGINS = "yes" ; then
47069     USE_PLUGINS=1
47070 else
47071     USE_PLUGINS=0
47072 fi
47073
47074 if test $wxUSE_ODBC != "no" ; then
47075     USE_ODBC=1
47076 else
47077     USE_ODBC=0
47078 fi
47079
47080 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47081     USE_QA=1
47082 else
47083     USE_QA=0
47084 fi
47085
47086 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47087     OFFICIAL_BUILD=1
47088 else
47089     OFFICIAL_BUILD=0
47090 fi
47091
47092
47093
47094
47095
47096
47097
47098
47099
47100
47101
47102
47103
47104
47105
47106
47107
47108
47109
47110
47111
47112
47113
47114
47115
47116 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47117
47118
47119
47120
47121
47122
47123
47124
47125 case "$TOOLKIT" in
47126     GTK)
47127         TOOLKIT_DESC="GTK+"
47128         if test "$WXGTK20" = 1; then
47129             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47130             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47131                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47132             fi
47133             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47134                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47135             fi
47136             if test "$wxUSE_LIBHILDON" = "yes"; then
47137                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47138             fi
47139
47140             if test "$TOOLKIT_EXTRA" != ""; then
47141                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47142             fi
47143         fi
47144         ;;
47145
47146     ?*)
47147         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47148         ;;
47149
47150     *)
47151         TOOLKIT_DESC="base only"
47152         ;;
47153 esac
47154
47155 if test "$wxUSE_WINE" = "yes"; then
47156     BAKEFILE_FORCE_PLATFORM=win32
47157 fi
47158
47159 if test "$wxUSE_MAC" = 1 ; then
47160     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47161                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47162             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47163         else
47164                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47165         fi
47166         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47167         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47168         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47169         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
47170         bk_use_pch=no
47171     fi
47172     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47173     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
47174 fi
47175
47176
47177
47178
47179     if test "x$BAKEFILE_HOST" = "x"; then
47180                if test "x${host}" = "x" ; then
47181                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47182 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47183    { (exit 1); exit 1; }; }
47184                fi
47185
47186         BAKEFILE_HOST="${host}"
47187     fi
47188
47189     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47190
47191     if test -n "$ac_tool_prefix"; then
47192   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47194 echo "$as_me:$LINENO: checking for $ac_word" >&5
47195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47196 if test "${ac_cv_prog_RANLIB+set}" = set; then
47197   echo $ECHO_N "(cached) $ECHO_C" >&6
47198 else
47199   if test -n "$RANLIB"; then
47200   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47201 else
47202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47203 for as_dir in $PATH
47204 do
47205   IFS=$as_save_IFS
47206   test -z "$as_dir" && as_dir=.
47207   for ac_exec_ext in '' $ac_executable_extensions; do
47208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47209     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47211     break 2
47212   fi
47213 done
47214 done
47215
47216 fi
47217 fi
47218 RANLIB=$ac_cv_prog_RANLIB
47219 if test -n "$RANLIB"; then
47220   echo "$as_me:$LINENO: result: $RANLIB" >&5
47221 echo "${ECHO_T}$RANLIB" >&6
47222 else
47223   echo "$as_me:$LINENO: result: no" >&5
47224 echo "${ECHO_T}no" >&6
47225 fi
47226
47227 fi
47228 if test -z "$ac_cv_prog_RANLIB"; then
47229   ac_ct_RANLIB=$RANLIB
47230   # Extract the first word of "ranlib", so it can be a program name with args.
47231 set dummy ranlib; ac_word=$2
47232 echo "$as_me:$LINENO: checking for $ac_word" >&5
47233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47235   echo $ECHO_N "(cached) $ECHO_C" >&6
47236 else
47237   if test -n "$ac_ct_RANLIB"; then
47238   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47239 else
47240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47241 for as_dir in $PATH
47242 do
47243   IFS=$as_save_IFS
47244   test -z "$as_dir" && as_dir=.
47245   for ac_exec_ext in '' $ac_executable_extensions; do
47246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47247     ac_cv_prog_ac_ct_RANLIB="ranlib"
47248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47249     break 2
47250   fi
47251 done
47252 done
47253
47254   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47255 fi
47256 fi
47257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47258 if test -n "$ac_ct_RANLIB"; then
47259   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47260 echo "${ECHO_T}$ac_ct_RANLIB" >&6
47261 else
47262   echo "$as_me:$LINENO: result: no" >&5
47263 echo "${ECHO_T}no" >&6
47264 fi
47265
47266   RANLIB=$ac_ct_RANLIB
47267 else
47268   RANLIB="$ac_cv_prog_RANLIB"
47269 fi
47270
47271     # Find a good install program.  We prefer a C program (faster),
47272 # so one script is as good as another.  But avoid the broken or
47273 # incompatible versions:
47274 # SysV /etc/install, /usr/sbin/install
47275 # SunOS /usr/etc/install
47276 # IRIX /sbin/install
47277 # AIX /bin/install
47278 # AmigaOS /C/install, which installs bootblocks on floppy discs
47279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47282 # OS/2's system install, which has a completely different semantic
47283 # ./install, which can be erroneously created by make from ./install.sh.
47284 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47286 if test -z "$INSTALL"; then
47287 if test "${ac_cv_path_install+set}" = set; then
47288   echo $ECHO_N "(cached) $ECHO_C" >&6
47289 else
47290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47291 for as_dir in $PATH
47292 do
47293   IFS=$as_save_IFS
47294   test -z "$as_dir" && as_dir=.
47295   # Account for people who put trailing slashes in PATH elements.
47296 case $as_dir/ in
47297   ./ | .// | /cC/* | \
47298   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47299   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47300   /usr/ucb/* ) ;;
47301   *)
47302     # OSF1 and SCO ODT 3.0 have their own names for install.
47303     # Don't use installbsd from OSF since it installs stuff as root
47304     # by default.
47305     for ac_prog in ginstall scoinst install; do
47306       for ac_exec_ext in '' $ac_executable_extensions; do
47307         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47308           if test $ac_prog = install &&
47309             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47310             # AIX install.  It has an incompatible calling convention.
47311             :
47312           elif test $ac_prog = install &&
47313             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47314             # program-specific install script used by HP pwplus--don't use.
47315             :
47316           else
47317             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47318             break 3
47319           fi
47320         fi
47321       done
47322     done
47323     ;;
47324 esac
47325 done
47326
47327
47328 fi
47329   if test "${ac_cv_path_install+set}" = set; then
47330     INSTALL=$ac_cv_path_install
47331   else
47332     # As a last resort, use the slow shell script.  We don't cache a
47333     # path for INSTALL within a source directory, because that will
47334     # break other packages using the cache if that directory is
47335     # removed, or if the path is relative.
47336     INSTALL=$ac_install_sh
47337   fi
47338 fi
47339 echo "$as_me:$LINENO: result: $INSTALL" >&5
47340 echo "${ECHO_T}$INSTALL" >&6
47341
47342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47343 # It thinks the first close brace ends the variable substitution.
47344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47345
47346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47347
47348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47349
47350     echo "$as_me:$LINENO: checking whether ln -s works" >&5
47351 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47352 LN_S=$as_ln_s
47353 if test "$LN_S" = "ln -s"; then
47354   echo "$as_me:$LINENO: result: yes" >&5
47355 echo "${ECHO_T}yes" >&6
47356 else
47357   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47358 echo "${ECHO_T}no, using $LN_S" >&6
47359 fi
47360
47361
47362     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47363 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
47364 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
47365 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47366   echo $ECHO_N "(cached) $ECHO_C" >&6
47367 else
47368   cat >conftest.make <<\_ACEOF
47369 all:
47370         @echo 'ac_maketemp="$(MAKE)"'
47371 _ACEOF
47372 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47373 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47374 if test -n "$ac_maketemp"; then
47375   eval ac_cv_prog_make_${ac_make}_set=yes
47376 else
47377   eval ac_cv_prog_make_${ac_make}_set=no
47378 fi
47379 rm -f conftest.make
47380 fi
47381 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47382   echo "$as_me:$LINENO: result: yes" >&5
47383 echo "${ECHO_T}yes" >&6
47384   SET_MAKE=
47385 else
47386   echo "$as_me:$LINENO: result: no" >&5
47387 echo "${ECHO_T}no" >&6
47388   SET_MAKE="MAKE=${MAKE-make}"
47389 fi
47390
47391
47392
47393     if test -n "$ac_tool_prefix"; then
47394   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47395 set dummy ${ac_tool_prefix}ar; ac_word=$2
47396 echo "$as_me:$LINENO: checking for $ac_word" >&5
47397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47398 if test "${ac_cv_prog_AR+set}" = set; then
47399   echo $ECHO_N "(cached) $ECHO_C" >&6
47400 else
47401   if test -n "$AR"; then
47402   ac_cv_prog_AR="$AR" # Let the user override the test.
47403 else
47404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47405 for as_dir in $PATH
47406 do
47407   IFS=$as_save_IFS
47408   test -z "$as_dir" && as_dir=.
47409   for ac_exec_ext in '' $ac_executable_extensions; do
47410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47411     ac_cv_prog_AR="${ac_tool_prefix}ar"
47412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47413     break 2
47414   fi
47415 done
47416 done
47417
47418 fi
47419 fi
47420 AR=$ac_cv_prog_AR
47421 if test -n "$AR"; then
47422   echo "$as_me:$LINENO: result: $AR" >&5
47423 echo "${ECHO_T}$AR" >&6
47424 else
47425   echo "$as_me:$LINENO: result: no" >&5
47426 echo "${ECHO_T}no" >&6
47427 fi
47428
47429 fi
47430 if test -z "$ac_cv_prog_AR"; then
47431   ac_ct_AR=$AR
47432   # Extract the first word of "ar", so it can be a program name with args.
47433 set dummy ar; ac_word=$2
47434 echo "$as_me:$LINENO: checking for $ac_word" >&5
47435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47436 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47437   echo $ECHO_N "(cached) $ECHO_C" >&6
47438 else
47439   if test -n "$ac_ct_AR"; then
47440   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47441 else
47442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47443 for as_dir in $PATH
47444 do
47445   IFS=$as_save_IFS
47446   test -z "$as_dir" && as_dir=.
47447   for ac_exec_ext in '' $ac_executable_extensions; do
47448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47449     ac_cv_prog_ac_ct_AR="ar"
47450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47451     break 2
47452   fi
47453 done
47454 done
47455
47456   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47457 fi
47458 fi
47459 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47460 if test -n "$ac_ct_AR"; then
47461   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47462 echo "${ECHO_T}$ac_ct_AR" >&6
47463 else
47464   echo "$as_me:$LINENO: result: no" >&5
47465 echo "${ECHO_T}no" >&6
47466 fi
47467
47468   AR=$ac_ct_AR
47469 else
47470   AR="$ac_cv_prog_AR"
47471 fi
47472
47473     if test -n "$ac_tool_prefix"; then
47474   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47475 set dummy ${ac_tool_prefix}strip; ac_word=$2
47476 echo "$as_me:$LINENO: checking for $ac_word" >&5
47477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47478 if test "${ac_cv_prog_STRIP+set}" = set; then
47479   echo $ECHO_N "(cached) $ECHO_C" >&6
47480 else
47481   if test -n "$STRIP"; then
47482   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47483 else
47484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47485 for as_dir in $PATH
47486 do
47487   IFS=$as_save_IFS
47488   test -z "$as_dir" && as_dir=.
47489   for ac_exec_ext in '' $ac_executable_extensions; do
47490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47491     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47493     break 2
47494   fi
47495 done
47496 done
47497
47498 fi
47499 fi
47500 STRIP=$ac_cv_prog_STRIP
47501 if test -n "$STRIP"; then
47502   echo "$as_me:$LINENO: result: $STRIP" >&5
47503 echo "${ECHO_T}$STRIP" >&6
47504 else
47505   echo "$as_me:$LINENO: result: no" >&5
47506 echo "${ECHO_T}no" >&6
47507 fi
47508
47509 fi
47510 if test -z "$ac_cv_prog_STRIP"; then
47511   ac_ct_STRIP=$STRIP
47512   # Extract the first word of "strip", so it can be a program name with args.
47513 set dummy strip; ac_word=$2
47514 echo "$as_me:$LINENO: checking for $ac_word" >&5
47515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47517   echo $ECHO_N "(cached) $ECHO_C" >&6
47518 else
47519   if test -n "$ac_ct_STRIP"; then
47520   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47521 else
47522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47523 for as_dir in $PATH
47524 do
47525   IFS=$as_save_IFS
47526   test -z "$as_dir" && as_dir=.
47527   for ac_exec_ext in '' $ac_executable_extensions; do
47528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47529     ac_cv_prog_ac_ct_STRIP="strip"
47530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47531     break 2
47532   fi
47533 done
47534 done
47535
47536   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47537 fi
47538 fi
47539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47540 if test -n "$ac_ct_STRIP"; then
47541   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47542 echo "${ECHO_T}$ac_ct_STRIP" >&6
47543 else
47544   echo "$as_me:$LINENO: result: no" >&5
47545 echo "${ECHO_T}no" >&6
47546 fi
47547
47548   STRIP=$ac_ct_STRIP
47549 else
47550   STRIP="$ac_cv_prog_STRIP"
47551 fi
47552
47553     if test -n "$ac_tool_prefix"; then
47554   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47555 set dummy ${ac_tool_prefix}nm; ac_word=$2
47556 echo "$as_me:$LINENO: checking for $ac_word" >&5
47557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47558 if test "${ac_cv_prog_NM+set}" = set; then
47559   echo $ECHO_N "(cached) $ECHO_C" >&6
47560 else
47561   if test -n "$NM"; then
47562   ac_cv_prog_NM="$NM" # Let the user override the test.
47563 else
47564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47565 for as_dir in $PATH
47566 do
47567   IFS=$as_save_IFS
47568   test -z "$as_dir" && as_dir=.
47569   for ac_exec_ext in '' $ac_executable_extensions; do
47570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47571     ac_cv_prog_NM="${ac_tool_prefix}nm"
47572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47573     break 2
47574   fi
47575 done
47576 done
47577
47578 fi
47579 fi
47580 NM=$ac_cv_prog_NM
47581 if test -n "$NM"; then
47582   echo "$as_me:$LINENO: result: $NM" >&5
47583 echo "${ECHO_T}$NM" >&6
47584 else
47585   echo "$as_me:$LINENO: result: no" >&5
47586 echo "${ECHO_T}no" >&6
47587 fi
47588
47589 fi
47590 if test -z "$ac_cv_prog_NM"; then
47591   ac_ct_NM=$NM
47592   # Extract the first word of "nm", so it can be a program name with args.
47593 set dummy nm; ac_word=$2
47594 echo "$as_me:$LINENO: checking for $ac_word" >&5
47595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47596 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47597   echo $ECHO_N "(cached) $ECHO_C" >&6
47598 else
47599   if test -n "$ac_ct_NM"; then
47600   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47601 else
47602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47603 for as_dir in $PATH
47604 do
47605   IFS=$as_save_IFS
47606   test -z "$as_dir" && as_dir=.
47607   for ac_exec_ext in '' $ac_executable_extensions; do
47608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47609     ac_cv_prog_ac_ct_NM="nm"
47610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47611     break 2
47612   fi
47613 done
47614 done
47615
47616   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47617 fi
47618 fi
47619 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47620 if test -n "$ac_ct_NM"; then
47621   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47622 echo "${ECHO_T}$ac_ct_NM" >&6
47623 else
47624   echo "$as_me:$LINENO: result: no" >&5
47625 echo "${ECHO_T}no" >&6
47626 fi
47627
47628   NM=$ac_ct_NM
47629 else
47630   NM="$ac_cv_prog_NM"
47631 fi
47632
47633
47634     case ${BAKEFILE_HOST} in
47635         *-hp-hpux* )
47636                                     INSTALL_DIR="mkdir -p"
47637             ;;
47638         *)  INSTALL_DIR="$INSTALL -d"
47639             ;;
47640     esac
47641
47642
47643     LDFLAGS_GUI=
47644     case ${BAKEFILE_HOST} in
47645         *-*-cygwin* | *-*-mingw32* )
47646         LDFLAGS_GUI="-mwindows"
47647     esac
47648
47649
47650     fi
47651
47652         echo "$as_me:$LINENO: checking if make is GNU make" >&5
47653 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47654 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47655   echo $ECHO_N "(cached) $ECHO_C" >&6
47656 else
47657
47658         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47659                 egrep -s GNU > /dev/null); then
47660             bakefile_cv_prog_makeisgnu="yes"
47661         else
47662             bakefile_cv_prog_makeisgnu="no"
47663         fi
47664
47665 fi
47666 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47667 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47668
47669     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47670         IF_GNU_MAKE=""
47671     else
47672         IF_GNU_MAKE="#"
47673     fi
47674
47675
47676
47677     PLATFORM_UNIX=0
47678     PLATFORM_WIN32=0
47679     PLATFORM_MSDOS=0
47680     PLATFORM_MAC=0
47681     PLATFORM_MACOS=0
47682     PLATFORM_MACOSX=0
47683     PLATFORM_OS2=0
47684     PLATFORM_BEOS=0
47685
47686     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47687         case "${BAKEFILE_HOST}" in
47688             *-*-mingw32* )
47689                 PLATFORM_WIN32=1
47690             ;;
47691             *-pc-msdosdjgpp )
47692                 PLATFORM_MSDOS=1
47693             ;;
47694             *-pc-os2_emx | *-pc-os2-emx )
47695                 PLATFORM_OS2=1
47696             ;;
47697             *-*-darwin* )
47698                 PLATFORM_MAC=1
47699                 PLATFORM_MACOSX=1
47700             ;;
47701             *-*-beos* )
47702                 PLATFORM_BEOS=1
47703             ;;
47704             powerpc-apple-macos* )
47705                 PLATFORM_MAC=1
47706                 PLATFORM_MACOS=1
47707             ;;
47708             * )
47709                 PLATFORM_UNIX=1
47710             ;;
47711         esac
47712     else
47713         case "$BAKEFILE_FORCE_PLATFORM" in
47714             win32 )
47715                 PLATFORM_WIN32=1
47716             ;;
47717             msdos )
47718                 PLATFORM_MSDOS=1
47719             ;;
47720             os2 )
47721                 PLATFORM_OS2=1
47722             ;;
47723             darwin )
47724                 PLATFORM_MAC=1
47725                 PLATFORM_MACOSX=1
47726             ;;
47727             unix )
47728                 PLATFORM_UNIX=1
47729             ;;
47730             beos )
47731                 PLATFORM_BEOS=1
47732             ;;
47733             * )
47734                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47735 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47736    { (exit 1); exit 1; }; }
47737             ;;
47738         esac
47739     fi
47740
47741
47742
47743
47744
47745
47746
47747
47748
47749
47750
47751     # Check whether --enable-omf or --disable-omf was given.
47752 if test "${enable_omf+set}" = set; then
47753   enableval="$enable_omf"
47754   bk_os2_use_omf="$enableval"
47755 fi;
47756
47757     case "${BAKEFILE_HOST}" in
47758       *-*-darwin* )
47759                         if test "x$GCC" = "xyes"; then
47760             CFLAGS="$CFLAGS -fno-common"
47761             CXXFLAGS="$CXXFLAGS -fno-common"
47762         fi
47763         if test "x$XLCC" = "xyes"; then
47764             CFLAGS="$CFLAGS -qnocommon"
47765             CXXFLAGS="$CXXFLAGS -qnocommon"
47766         fi
47767         ;;
47768
47769       *-pc-os2_emx | *-pc-os2-emx )
47770         if test "x$bk_os2_use_omf" = "xyes" ; then
47771             AR=emxomfar
47772             RANLIB=:
47773             LDFLAGS="-Zomf $LDFLAGS"
47774             CFLAGS="-Zomf $CFLAGS"
47775             CXXFLAGS="-Zomf $CXXFLAGS"
47776             OS2_LIBEXT="lib"
47777         else
47778             OS2_LIBEXT="a"
47779         fi
47780         ;;
47781
47782       i*86-*-beos* )
47783         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47784         ;;
47785     esac
47786
47787
47788     SO_SUFFIX="so"
47789     SO_SUFFIX_MODULE="so"
47790     EXEEXT=""
47791     LIBPREFIX="lib"
47792     LIBEXT=".a"
47793     DLLPREFIX="lib"
47794     DLLPREFIX_MODULE=""
47795     DLLIMP_SUFFIX=""
47796     dlldir="$libdir"
47797
47798     case "${BAKEFILE_HOST}" in
47799         *-hp-hpux* )
47800             SO_SUFFIX="sl"
47801             SO_SUFFIX_MODULE="sl"
47802         ;;
47803         *-*-aix* )
47804                                                                         SO_SUFFIX="a"
47805             SO_SUFFIX_MODULE="a"
47806         ;;
47807         *-*-cygwin* )
47808             SO_SUFFIX="dll"
47809             SO_SUFFIX_MODULE="dll"
47810             DLLIMP_SUFFIX="dll.a"
47811             EXEEXT=".exe"
47812             DLLPREFIX="cyg"
47813             dlldir="$bindir"
47814         ;;
47815         *-*-mingw32* )
47816             SO_SUFFIX="dll"
47817             SO_SUFFIX_MODULE="dll"
47818             DLLIMP_SUFFIX="dll.a"
47819             EXEEXT=".exe"
47820             DLLPREFIX=""
47821             dlldir="$bindir"
47822         ;;
47823         *-pc-msdosdjgpp )
47824             EXEEXT=".exe"
47825             DLLPREFIX=""
47826             dlldir="$bindir"
47827         ;;
47828         *-pc-os2_emx | *-pc-os2-emx )
47829             SO_SUFFIX="dll"
47830             SO_SUFFIX_MODULE="dll"
47831             DLLIMP_SUFFIX=$OS2_LIBEXT
47832             EXEEXT=".exe"
47833             DLLPREFIX=""
47834             LIBPREFIX=""
47835             LIBEXT=".$OS2_LIBEXT"
47836             dlldir="$bindir"
47837         ;;
47838         *-*-darwin* )
47839             SO_SUFFIX="dylib"
47840             SO_SUFFIX_MODULE="bundle"
47841         ;;
47842     esac
47843
47844     if test "x$DLLIMP_SUFFIX" = "x" ; then
47845         DLLIMP_SUFFIX="$SO_SUFFIX"
47846     fi
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
47858
47859         PIC_FLAG=""
47860     if test "x$GCC" = "xyes"; then
47861                 PIC_FLAG="-fPIC"
47862     fi
47863
47864         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47865     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47866     WINDOWS_IMPLIB=0
47867
47868     case "${BAKEFILE_HOST}" in
47869       *-hp-hpux* )
47870                 if test "x$GCC" != "xyes"; then
47871                         LDFLAGS="$LDFLAGS -L/usr/lib"
47872
47873             SHARED_LD_CC="${CC} -b -o"
47874             SHARED_LD_CXX="${CXX} -b -o"
47875             PIC_FLAG="+Z"
47876         fi
47877       ;;
47878
47879       *-*-linux* )
47880         if test "x$GCC" != "xyes"; then
47881             echo "$as_me:$LINENO: checking for Intel compiler" >&5
47882 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47883 if test "${bakefile_cv_prog_icc+set}" = set; then
47884   echo $ECHO_N "(cached) $ECHO_C" >&6
47885 else
47886
47887                 cat >conftest.$ac_ext <<_ACEOF
47888 /* confdefs.h.  */
47889 _ACEOF
47890 cat confdefs.h >>conftest.$ac_ext
47891 cat >>conftest.$ac_ext <<_ACEOF
47892 /* end confdefs.h.  */
47893
47894 int
47895 main ()
47896 {
47897
47898                         #ifndef __INTEL_COMPILER
47899                         This is not ICC
47900                         #endif
47901
47902   ;
47903   return 0;
47904 }
47905 _ACEOF
47906 rm -f conftest.$ac_objext
47907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47908   (eval $ac_compile) 2>conftest.er1
47909   ac_status=$?
47910   grep -v '^ *+' conftest.er1 >conftest.err
47911   rm -f conftest.er1
47912   cat conftest.err >&5
47913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47914   (exit $ac_status); } &&
47915          { ac_try='test -z "$ac_c_werror_flag"
47916                          || test ! -s conftest.err'
47917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47918   (eval $ac_try) 2>&5
47919   ac_status=$?
47920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47921   (exit $ac_status); }; } &&
47922          { ac_try='test -s conftest.$ac_objext'
47923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47924   (eval $ac_try) 2>&5
47925   ac_status=$?
47926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47927   (exit $ac_status); }; }; then
47928   bakefile_cv_prog_icc=yes
47929 else
47930   echo "$as_me: failed program was:" >&5
47931 sed 's/^/| /' conftest.$ac_ext >&5
47932
47933 bakefile_cv_prog_icc=no
47934
47935 fi
47936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47937
47938 fi
47939 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47940 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47941             if test "$bakefile_cv_prog_icc" = "yes"; then
47942                 PIC_FLAG="-KPIC"
47943             fi
47944         fi
47945       ;;
47946
47947       *-*-solaris2* )
47948         if test "x$GCC" != xyes ; then
47949             SHARED_LD_CC="${CC} -G -o"
47950             SHARED_LD_CXX="${CXX} -G -o"
47951             PIC_FLAG="-KPIC"
47952         fi
47953       ;;
47954
47955       *-*-darwin* )
47956
47957 D='$'
47958 cat <<EOF >shared-ld-sh
47959 #!/bin/sh
47960 #-----------------------------------------------------------------------------
47961 #-- Name:        distrib/mac/shared-ld-sh
47962 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47963 #-- Author:      Gilles Depeyrot
47964 #-- Copyright:   (c) 2002 Gilles Depeyrot
47965 #-- Licence:     any use permitted
47966 #-----------------------------------------------------------------------------
47967
47968 verbose=0
47969 args=""
47970 objects=""
47971 linking_flag="-dynamiclib"
47972 ldargs="-r -keep_private_externs -nostdlib"
47973
47974 while test ${D}# -gt 0; do
47975     case ${D}1 in
47976
47977        -v)
47978         verbose=1
47979         ;;
47980
47981        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47982         # collect these options and values
47983         args="${D}{args} ${D}1 ${D}2"
47984         shift
47985         ;;
47986
47987        -s|-Wl,*)
47988         # collect these load args
47989         ldargs="${D}{ldargs} ${D}1"
47990         ;;
47991
47992        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
47993         # collect these options
47994         args="${D}{args} ${D}1"
47995         ;;
47996
47997        -dynamiclib|-bundle)
47998         linking_flag="${D}1"
47999         ;;
48000
48001        -*)
48002         echo "shared-ld: unhandled option '${D}1'"
48003         exit 1
48004         ;;
48005
48006         *.o | *.a | *.dylib)
48007         # collect object files
48008         objects="${D}{objects} ${D}1"
48009         ;;
48010
48011         *)
48012         echo "shared-ld: unhandled argument '${D}1'"
48013         exit 1
48014         ;;
48015
48016     esac
48017     shift
48018 done
48019
48020 status=0
48021
48022 #
48023 # Link one module containing all the others
48024 #
48025 if test ${D}{verbose} = 1; then
48026     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48027 fi
48028 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48029 status=${D}?
48030
48031 #
48032 # Link the shared library from the single module created, but only if the
48033 # previous command didn't fail:
48034 #
48035 if test ${D}{status} = 0; then
48036     if test ${D}{verbose} = 1; then
48037         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48038     fi
48039     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48040     status=${D}?
48041 fi
48042
48043 #
48044 # Remove intermediate module
48045 #
48046 rm -f master.${D}${D}.o
48047
48048 exit ${D}status
48049 EOF
48050
48051         chmod +x shared-ld-sh
48052
48053         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48054         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48055
48056
48057                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48058 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48059 if test "${bakefile_cv_gcc31+set}" = set; then
48060   echo $ECHO_N "(cached) $ECHO_C" >&6
48061 else
48062
48063            cat >conftest.$ac_ext <<_ACEOF
48064 /* confdefs.h.  */
48065 _ACEOF
48066 cat confdefs.h >>conftest.$ac_ext
48067 cat >>conftest.$ac_ext <<_ACEOF
48068 /* end confdefs.h.  */
48069
48070 int
48071 main ()
48072 {
48073
48074                    #if (__GNUC__ < 3) || \
48075                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48076                        This is old gcc
48077                    #endif
48078
48079   ;
48080   return 0;
48081 }
48082 _ACEOF
48083 rm -f conftest.$ac_objext
48084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48085   (eval $ac_compile) 2>conftest.er1
48086   ac_status=$?
48087   grep -v '^ *+' conftest.er1 >conftest.err
48088   rm -f conftest.er1
48089   cat conftest.err >&5
48090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48091   (exit $ac_status); } &&
48092          { ac_try='test -z "$ac_c_werror_flag"
48093                          || test ! -s conftest.err'
48094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48095   (eval $ac_try) 2>&5
48096   ac_status=$?
48097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48098   (exit $ac_status); }; } &&
48099          { ac_try='test -s conftest.$ac_objext'
48100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48101   (eval $ac_try) 2>&5
48102   ac_status=$?
48103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48104   (exit $ac_status); }; }; then
48105
48106                    bakefile_cv_gcc31=yes
48107
48108 else
48109   echo "$as_me: failed program was:" >&5
48110 sed 's/^/| /' conftest.$ac_ext >&5
48111
48112
48113                    bakefile_cv_gcc31=no
48114
48115
48116 fi
48117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48118
48119 fi
48120 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48121 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48122         if test "$bakefile_cv_gcc31" = "no"; then
48123                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48124             SHARED_LD_CXX="$SHARED_LD_CC"
48125         else
48126                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48127             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48128         fi
48129
48130         if test "x$GCC" == "xyes"; then
48131             PIC_FLAG="-dynamic -fPIC"
48132         fi
48133         if test "x$XLCC" = "xyes"; then
48134             PIC_FLAG="-dynamic -DPIC"
48135         fi
48136       ;;
48137
48138       *-*-aix* )
48139         if test "x$GCC" = "xyes"; then
48140                                                             PIC_FLAG=""
48141
48142                                                                                     case "${BAKEFILE_HOST}" in
48143                 *-*-aix5* )
48144                     LD_EXPFULL="-Wl,-bexpfull"
48145                     ;;
48146             esac
48147
48148             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48149             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48150         else
48151                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48152 set dummy makeC++SharedLib; ac_word=$2
48153 echo "$as_me:$LINENO: checking for $ac_word" >&5
48154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48155 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48156   echo $ECHO_N "(cached) $ECHO_C" >&6
48157 else
48158   if test -n "$AIX_CXX_LD"; then
48159   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48160 else
48161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48162 for as_dir in $PATH
48163 do
48164   IFS=$as_save_IFS
48165   test -z "$as_dir" && as_dir=.
48166   for ac_exec_ext in '' $ac_executable_extensions; do
48167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48168     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48170     break 2
48171   fi
48172 done
48173 done
48174
48175   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48176 fi
48177 fi
48178 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48179 if test -n "$AIX_CXX_LD"; then
48180   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48181 echo "${ECHO_T}$AIX_CXX_LD" >&6
48182 else
48183   echo "$as_me:$LINENO: result: no" >&5
48184 echo "${ECHO_T}no" >&6
48185 fi
48186
48187             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48188             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48189         fi
48190       ;;
48191
48192       *-*-beos* )
48193                         SHARED_LD_CC="${LD} -nostart -o"
48194         SHARED_LD_CXX="${LD} -nostart -o"
48195       ;;
48196
48197       *-*-irix* )
48198                 if test "x$GCC" != "xyes"; then
48199             PIC_FLAG="-KPIC"
48200         fi
48201       ;;
48202
48203       *-*-cygwin* | *-*-mingw32* )
48204         PIC_FLAG=""
48205         SHARED_LD_CC="\$(CC) -shared -o"
48206         SHARED_LD_CXX="\$(CXX) -shared -o"
48207         WINDOWS_IMPLIB=1
48208       ;;
48209
48210       *-pc-os2_emx | *-pc-os2-emx )
48211         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48212         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48213         PIC_FLAG=""
48214
48215 D='$'
48216 cat <<EOF >dllar.sh
48217 #!/bin/sh
48218 #
48219 # dllar - a tool to build both a .dll and an .a file
48220 # from a set of object (.o) files for EMX/OS2.
48221 #
48222 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48223 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48224 #
48225 #  This script will accept a set of files on the command line.
48226 #  All the public symbols from the .o files will be exported into
48227 #  a .DEF file, then linker will be run (through gcc) against them to
48228 #  build a shared library consisting of all given .o files. All libraries
48229 #  (.a) will be first decompressed into component .o files then act as
48230 #  described above. You can optionally give a description (-d "description")
48231 #  which will be put into .DLL. To see the list of accepted options (as well
48232 #  as command-line format) simply run this program without options. The .DLL
48233 #  is built to be imported by name (there is no guarantee that new versions
48234 #  of the library you build will have same ordinals for same symbols).
48235 #
48236 #  dllar is free software; you can redistribute it and/or modify
48237 #  it under the terms of the GNU General Public License as published by
48238 #  the Free Software Foundation; either version 2, or (at your option)
48239 #  any later version.
48240 #
48241 #  dllar is distributed in the hope that it will be useful,
48242 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48243 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48244 #  GNU General Public License for more details.
48245 #
48246 #  You should have received a copy of the GNU General Public License
48247 #  along with dllar; see the file COPYING.  If not, write to the Free
48248 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48249 #  02111-1307, USA.
48250
48251 # To successfuly run this program you will need:
48252 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48253 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48254 #  - gcc
48255 #    (used to build the .dll)
48256 #  - emxexp
48257 #    (used to create .def file from .o files)
48258 #  - emximp
48259 #    (used to create .a file from .def file)
48260 #  - GNU text utilites (cat, sort, uniq)
48261 #    used to process emxexp output
48262 #  - GNU file utilities (mv, rm)
48263 #  - GNU sed
48264 #  - lxlite (optional, see flag below)
48265 #    (used for general .dll cleanup)
48266 #
48267
48268 flag_USE_LXLITE=1;
48269
48270 #
48271 # helper functions
48272 # basnam, variant of basename, which does _not_ remove the path, _iff_
48273 #                              second argument (suffix to remove) is given
48274 basnam(){
48275     case ${D}# in
48276     1)
48277         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48278         ;;
48279     2)
48280         echo ${D}1 | sed 's/'${D}2'${D}//'
48281         ;;
48282     *)
48283         echo "error in basnam ${D}*"
48284         exit 8
48285         ;;
48286     esac
48287 }
48288
48289 # Cleanup temporary files and output
48290 CleanUp() {
48291     cd ${D}curDir
48292     for i in ${D}inputFiles ; do
48293         case ${D}i in
48294         *!)
48295             rm -rf \`basnam ${D}i !\`
48296             ;;
48297         *)
48298             ;;
48299         esac
48300     done
48301
48302     # Kill result in case of failure as there is just to many stupid make/nmake
48303     # things out there which doesn't do this.
48304     if [ ${D}# -eq 0 ]; then
48305         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48306     fi
48307 }
48308
48309 # Print usage and exit script with rc=1.
48310 PrintHelp() {
48311  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48312  echo '       [-name-mangler-script script.sh]'
48313  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48314  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48315  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48316  echo '       [*.o] [*.a]'
48317  echo '*> "output_file" should have no extension.'
48318  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48319  echo '   The import library name is derived from this and is set to "name".a,'
48320  echo '   unless overridden by -import'
48321  echo '*> "importlib_name" should have no extension.'
48322  echo '   If it has the .o, or .a extension, it is automatically removed.'
48323  echo '   This name is used as the import library name and may be longer and'
48324  echo '   more descriptive than the DLL name which has to follow the old '
48325  echo '   8.3 convention of FAT.'
48326  echo '*> "script.sh may be given to override the output_file name by a'
48327  echo '   different name. It is mainly useful if the regular make process'
48328  echo '   of some package does not take into account OS/2 restriction of'
48329  echo '   DLL name lengths. It takes the importlib name as input and is'
48330  echo '   supposed to procude a shorter name as output. The script should'
48331  echo '   expect to get importlib_name without extension and should produce'
48332  echo '   a (max.) 8 letter name without extension.'
48333  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48334  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48335  echo '   These flags will be put at the start of GCC command line.'
48336  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48337  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48338  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48339  echo '   If the last character of a symbol is "*", all symbols beginning'
48340  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48341  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48342  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48343  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48344  echo '   C runtime DLLs.'
48345  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48346  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48347  echo '   unchanged to GCC at the end of command line.'
48348  echo '*> If you create a DLL from a library and you do not specify -o,'
48349  echo '   the basename for DLL and import library will be set to library name,'
48350  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48351  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48352  echo '   library will be renamed into gcc_s.a.'
48353  echo '--------'
48354  echo 'Example:'
48355  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48356  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48357  CleanUp
48358  exit 1
48359 }
48360
48361 # Execute a command.
48362 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48363 # @Uses    Whatever CleanUp() uses.
48364 doCommand() {
48365     echo "${D}*"
48366     eval ${D}*
48367     rcCmd=${D}?
48368
48369     if [ ${D}rcCmd -ne 0 ]; then
48370         echo "command failed, exit code="${D}rcCmd
48371         CleanUp
48372         exit ${D}rcCmd
48373     fi
48374 }
48375
48376 # main routine
48377 # setup globals
48378 cmdLine=${D}*
48379 outFile=""
48380 outimpFile=""
48381 inputFiles=""
48382 renameScript=""
48383 description=""
48384 CC=gcc.exe
48385 CFLAGS="-s -Zcrtdll"
48386 EXTRA_CFLAGS=""
48387 EXPORT_BY_ORDINALS=0
48388 exclude_symbols=""
48389 library_flags=""
48390 curDir=\`pwd\`
48391 curDirS=curDir
48392 case ${D}curDirS in
48393 */)
48394   ;;
48395 *)
48396   curDirS=${D}{curDirS}"/"
48397   ;;
48398 esac
48399 # Parse commandline
48400 libsToLink=0
48401 omfLinking=0
48402 while [ ${D}1 ]; do
48403     case ${D}1 in
48404     -ord*)
48405         EXPORT_BY_ORDINALS=1;
48406         ;;
48407     -o*)
48408         shift
48409         outFile=${D}1
48410         ;;
48411     -i*)
48412         shift
48413         outimpFile=${D}1
48414         ;;
48415     -name-mangler-script)
48416         shift
48417         renameScript=${D}1
48418         ;;
48419     -d*)
48420         shift
48421         description=${D}1
48422         ;;
48423     -f*)
48424         shift
48425         CFLAGS=${D}1
48426         ;;
48427     -c*)
48428         shift
48429         CC=${D}1
48430         ;;
48431     -h*)
48432         PrintHelp
48433         ;;
48434     -ex*)
48435         shift
48436         exclude_symbols=${D}{exclude_symbols}${D}1" "
48437         ;;
48438     -libf*)
48439         shift
48440         library_flags=${D}{library_flags}${D}1" "
48441         ;;
48442     -nocrt*)
48443         CFLAGS="-s"
48444         ;;
48445     -nolxl*)
48446         flag_USE_LXLITE=0
48447         ;;
48448     -* | /*)
48449         case ${D}1 in
48450         -L* | -l*)
48451             libsToLink=1
48452             ;;
48453         -Zomf)
48454             omfLinking=1
48455             ;;
48456         *)
48457             ;;
48458         esac
48459         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48460         ;;
48461     *.dll)
48462         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48463         if [ ${D}omfLinking -eq 1 ]; then
48464             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48465         else
48466             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48467         fi
48468         ;;
48469     *)
48470         found=0;
48471         if [ ${D}libsToLink -ne 0 ]; then
48472             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48473         else
48474             for file in ${D}1 ; do
48475                 if [ -f ${D}file ]; then
48476                     inputFiles="${D}{inputFiles} ${D}file"
48477                     found=1
48478                 fi
48479             done
48480             if [ ${D}found -eq 0 ]; then
48481                 echo "ERROR: No file(s) found: "${D}1
48482                 exit 8
48483             fi
48484         fi
48485       ;;
48486     esac
48487     shift
48488 done # iterate cmdline words
48489
48490 #
48491 if [ -z "${D}inputFiles" ]; then
48492     echo "dllar: no input files"
48493     PrintHelp
48494 fi
48495
48496 # Now extract all .o files from .a files
48497 newInputFiles=""
48498 for file in ${D}inputFiles ; do
48499     case ${D}file in
48500     *.a | *.lib)
48501         case ${D}file in
48502         *.a)
48503             suffix=".a"
48504             AR="ar"
48505             ;;
48506         *.lib)
48507             suffix=".lib"
48508             AR="emxomfar"
48509             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48510             ;;
48511         *)
48512             ;;
48513         esac
48514         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48515         mkdir ${D}dirname
48516         if [ ${D}? -ne 0 ]; then
48517             echo "Failed to create subdirectory ./${D}dirname"
48518             CleanUp
48519             exit 8;
48520         fi
48521         # Append '!' to indicate archive
48522         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48523         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48524         cd ${D}curDir
48525         found=0;
48526         for subfile in ${D}dirname/*.o* ; do
48527             if [ -f ${D}subfile ]; then
48528                 found=1
48529                 if [ -s ${D}subfile ]; then
48530                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48531                     newInputFiles="${D}newInputFiles ${D}subfile"
48532                 fi
48533             fi
48534         done
48535         if [ ${D}found -eq 0 ]; then
48536             echo "WARNING: there are no files in archive \\'${D}file\\'"
48537         fi
48538         ;;
48539     *)
48540         newInputFiles="${D}{newInputFiles} ${D}file"
48541         ;;
48542     esac
48543 done
48544 inputFiles="${D}newInputFiles"
48545
48546 # Output filename(s).
48547 do_backup=0;
48548 if [ -z ${D}outFile ]; then
48549     do_backup=1;
48550     set outFile ${D}inputFiles; outFile=${D}2
48551 fi
48552
48553 # If it is an archive, remove the '!' and the '_%' suffixes
48554 case ${D}outFile in
48555 *_%!)
48556     outFile=\`basnam ${D}outFile _%!\`
48557     ;;
48558 *)
48559     ;;
48560 esac
48561 case ${D}outFile in
48562 *.dll)
48563     outFile=\`basnam ${D}outFile .dll\`
48564     ;;
48565 *.DLL)
48566     outFile=\`basnam ${D}outFile .DLL\`
48567     ;;
48568 *.o)
48569     outFile=\`basnam ${D}outFile .o\`
48570     ;;
48571 *.obj)
48572     outFile=\`basnam ${D}outFile .obj\`
48573     ;;
48574 *.a)
48575     outFile=\`basnam ${D}outFile .a\`
48576     ;;
48577 *.lib)
48578     outFile=\`basnam ${D}outFile .lib\`
48579     ;;
48580 *)
48581     ;;
48582 esac
48583 case ${D}outimpFile in
48584 *.a)
48585     outimpFile=\`basnam ${D}outimpFile .a\`
48586     ;;
48587 *.lib)
48588     outimpFile=\`basnam ${D}outimpFile .lib\`
48589     ;;
48590 *)
48591     ;;
48592 esac
48593 if [ -z ${D}outimpFile ]; then
48594     outimpFile=${D}outFile
48595 fi
48596 defFile="${D}{outFile}.def"
48597 arcFile="${D}{outimpFile}.a"
48598 arcFile2="${D}{outimpFile}.lib"
48599
48600 #create ${D}dllFile as something matching 8.3 restrictions,
48601 if [ -z ${D}renameScript ] ; then
48602     dllFile="${D}outFile"
48603 else
48604     dllFile=\`${D}renameScript ${D}outimpFile\`
48605 fi
48606
48607 if [ ${D}do_backup -ne 0 ] ; then
48608     if [ -f ${D}arcFile ] ; then
48609         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48610     fi
48611     if [ -f ${D}arcFile2 ] ; then
48612         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48613     fi
48614 fi
48615
48616 # Extract public symbols from all the object files.
48617 tmpdefFile=${D}{defFile}_%
48618 rm -f ${D}tmpdefFile
48619 for file in ${D}inputFiles ; do
48620     case ${D}file in
48621     *!)
48622         ;;
48623     *)
48624         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48625         ;;
48626     esac
48627 done
48628
48629 # Create the def file.
48630 rm -f ${D}defFile
48631 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48632 dllFile="${D}{dllFile}.dll"
48633 if [ ! -z ${D}description ]; then
48634     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48635 fi
48636 echo "EXPORTS" >> ${D}defFile
48637
48638 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48639 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48640
48641 # Checks if the export is ok or not.
48642 for word in ${D}exclude_symbols; do
48643     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48644     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48645 done
48646
48647
48648 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48649     sed "=" < ${D}tmpdefFile | \\
48650     sed '
48651       N
48652       : loop
48653       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48654       t loop
48655     ' > ${D}{tmpdefFile}%
48656     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48657 else
48658     rm -f ${D}{tmpdefFile}%
48659 fi
48660 cat ${D}tmpdefFile >> ${D}defFile
48661 rm -f ${D}tmpdefFile
48662
48663 # Do linking, create implib, and apply lxlite.
48664 gccCmdl="";
48665 for file in ${D}inputFiles ; do
48666     case ${D}file in
48667     *!)
48668         ;;
48669     *)
48670         gccCmdl="${D}gccCmdl ${D}file"
48671         ;;
48672     esac
48673 done
48674 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48675 touch "${D}{outFile}.dll"
48676
48677 doCommand "emximp -o ${D}arcFile ${D}defFile"
48678 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48679     add_flags="";
48680     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48681         add_flags="-ynd"
48682     fi
48683     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48684 fi
48685 doCommand "emxomf -s -l ${D}arcFile"
48686
48687 # Successful exit.
48688 CleanUp 1
48689 exit 0
48690 EOF
48691
48692         chmod +x dllar.sh
48693       ;;
48694
48695       powerpc-apple-macos* | \
48696       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48697       *-*-sunos4* | \
48698       *-*-osf* | \
48699       *-*-dgux5* | \
48700       *-*-sysv5* | \
48701       *-pc-msdosdjgpp )
48702               ;;
48703
48704       *)
48705                     esac
48706
48707     if test "x$PIC_FLAG" != "x" ; then
48708         PIC_FLAG="$PIC_FLAG -DPIC"
48709     fi
48710
48711     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48712         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48713     fi
48714     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48715         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48716     fi
48717
48718
48719
48720
48721
48722
48723
48724
48725
48726     USE_SOVERSION=0
48727     USE_SOVERLINUX=0
48728     USE_SOVERSOLARIS=0
48729     USE_SOVERCYGWIN=0
48730     USE_SOSYMLINKS=0
48731     USE_MACVERSION=0
48732     SONAME_FLAG=
48733
48734     case "${BAKEFILE_HOST}" in
48735       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
48736         SONAME_FLAG="-Wl,-soname,"
48737         USE_SOVERSION=1
48738         USE_SOVERLINUX=1
48739         USE_SOSYMLINKS=1
48740       ;;
48741
48742       *-*-solaris2* )
48743         SONAME_FLAG="-h "
48744         USE_SOVERSION=1
48745         USE_SOVERSOLARIS=1
48746         USE_SOSYMLINKS=1
48747       ;;
48748
48749       *-*-darwin* )
48750         USE_MACVERSION=1
48751         USE_SOVERSION=1
48752         USE_SOSYMLINKS=1
48753       ;;
48754
48755       *-*-cygwin* )
48756         USE_SOVERSION=1
48757         USE_SOVERCYGWIN=1
48758       ;;
48759     esac
48760
48761
48762
48763
48764
48765
48766
48767
48768
48769
48770     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48771 if test "${enable_dependency_tracking+set}" = set; then
48772   enableval="$enable_dependency_tracking"
48773   bk_use_trackdeps="$enableval"
48774 fi;
48775
48776     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48777 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
48778
48779     if test "x$bk_use_trackdeps" = "xno" ; then
48780         DEPS_TRACKING=0
48781         echo "$as_me:$LINENO: result: disabled" >&5
48782 echo "${ECHO_T}disabled" >&6
48783     else
48784         DEPS_TRACKING=1
48785
48786         if test "x$GCC" = "xyes"; then
48787             DEPSMODE=gcc
48788             case "${BAKEFILE_HOST}" in
48789                 *-*-darwin* )
48790                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48791                 ;;
48792                 * )
48793                     DEPSFLAG="-MMD"
48794                 ;;
48795             esac
48796             echo "$as_me:$LINENO: result: gcc" >&5
48797 echo "${ECHO_T}gcc" >&6
48798         elif test "x$MWCC" = "xyes"; then
48799             DEPSMODE=mwcc
48800             DEPSFLAG="-MM"
48801             echo "$as_me:$LINENO: result: mwcc" >&5
48802 echo "${ECHO_T}mwcc" >&6
48803         elif test "x$SUNCC" = "xyes"; then
48804             DEPSMODE=unixcc
48805             DEPSFLAG="-xM1"
48806             echo "$as_me:$LINENO: result: Sun cc" >&5
48807 echo "${ECHO_T}Sun cc" >&6
48808         elif test "x$SGICC" = "xyes"; then
48809             DEPSMODE=unixcc
48810             DEPSFLAG="-M"
48811             echo "$as_me:$LINENO: result: SGI cc" >&5
48812 echo "${ECHO_T}SGI cc" >&6
48813         elif test "x$HPCC" = "xyes"; then
48814             DEPSMODE=unixcc
48815             DEPSFLAG="+make"
48816             echo "$as_me:$LINENO: result: HP cc" >&5
48817 echo "${ECHO_T}HP cc" >&6
48818         elif test "x$COMPAQCC" = "xyes"; then
48819             DEPSMODE=gcc
48820             DEPSFLAG="-MD"
48821             echo "$as_me:$LINENO: result: Compaq cc" >&5
48822 echo "${ECHO_T}Compaq cc" >&6
48823         else
48824             DEPS_TRACKING=0
48825             echo "$as_me:$LINENO: result: none" >&5
48826 echo "${ECHO_T}none" >&6
48827         fi
48828
48829         if test $DEPS_TRACKING = 1 ; then
48830
48831 D='$'
48832 cat <<EOF >bk-deps
48833 #!/bin/sh
48834
48835 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48836 # script. It is used to track C/C++ files dependencies in portable way.
48837 #
48838 # Permission is given to use this file in any way.
48839
48840 DEPSMODE=${DEPSMODE}
48841 DEPSDIR=.deps
48842 DEPSFLAG="${DEPSFLAG}"
48843
48844 mkdir -p ${D}DEPSDIR
48845
48846 if test ${D}DEPSMODE = gcc ; then
48847     ${D}* ${D}{DEPSFLAG}
48848     status=${D}?
48849     if test ${D}{status} != 0 ; then
48850         exit ${D}{status}
48851     fi
48852     # move created file to the location we want it in:
48853     while test ${D}# -gt 0; do
48854         case "${D}1" in
48855             -o )
48856                 shift
48857                 objfile=${D}1
48858             ;;
48859             -* )
48860             ;;
48861             * )
48862                 srcfile=${D}1
48863             ;;
48864         esac
48865         shift
48866     done
48867     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48868     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48869     if test -f ${D}depfile ; then
48870         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48871         rm -f ${D}depfile
48872     else
48873         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48874         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48875         if test ! -f ${D}depfile ; then
48876             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48877             depfile="${D}objfile.d"
48878         fi
48879         if test -f ${D}depfile ; then
48880             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48881             rm -f ${D}depfile
48882         fi
48883     fi
48884     exit 0
48885 elif test ${D}DEPSMODE = mwcc ; then
48886     ${D}* || exit ${D}?
48887     # Run mwcc again with -MM and redirect into the dep file we want
48888     # NOTE: We can't use shift here because we need ${D}* to be valid
48889     prevarg=
48890     for arg in ${D}* ; do
48891         if test "${D}prevarg" = "-o"; then
48892             objfile=${D}arg
48893         else
48894             case "${D}arg" in
48895                 -* )
48896                 ;;
48897                 * )
48898                     srcfile=${D}arg
48899                 ;;
48900             esac
48901         fi
48902         prevarg="${D}arg"
48903     done
48904     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48905     exit 0
48906 elif test ${D}DEPSMODE = unixcc; then
48907     ${D}* || exit ${D}?
48908     # Run compiler again with deps flag and redirect into the dep file.
48909     # It doesn't work if the '-o FILE' option is used, but without it the
48910     # dependency file will contain the wrong name for the object. So it is
48911     # removed from the command line, and the dep file is fixed with sed.
48912     cmd=""
48913     while test ${D}# -gt 0; do
48914         case "${D}1" in
48915             -o )
48916                 shift
48917                 objfile=${D}1
48918             ;;
48919             * )
48920                 eval arg${D}#=\\${D}1
48921                 cmd="${D}cmd \\${D}arg${D}#"
48922             ;;
48923         esac
48924         shift
48925     done
48926     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48927     exit 0
48928 else
48929     ${D}*
48930     exit ${D}?
48931 fi
48932 EOF
48933
48934             chmod +x bk-deps
48935         fi
48936     fi
48937
48938
48939
48940
48941     case ${BAKEFILE_HOST} in
48942         *-*-cygwin* | *-*-mingw32* )
48943                         if test -n "$ac_tool_prefix"; then
48944   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48945 set dummy ${ac_tool_prefix}windres; ac_word=$2
48946 echo "$as_me:$LINENO: checking for $ac_word" >&5
48947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48948 if test "${ac_cv_prog_WINDRES+set}" = set; then
48949   echo $ECHO_N "(cached) $ECHO_C" >&6
48950 else
48951   if test -n "$WINDRES"; then
48952   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48953 else
48954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48955 for as_dir in $PATH
48956 do
48957   IFS=$as_save_IFS
48958   test -z "$as_dir" && as_dir=.
48959   for ac_exec_ext in '' $ac_executable_extensions; do
48960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48961     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48963     break 2
48964   fi
48965 done
48966 done
48967
48968 fi
48969 fi
48970 WINDRES=$ac_cv_prog_WINDRES
48971 if test -n "$WINDRES"; then
48972   echo "$as_me:$LINENO: result: $WINDRES" >&5
48973 echo "${ECHO_T}$WINDRES" >&6
48974 else
48975   echo "$as_me:$LINENO: result: no" >&5
48976 echo "${ECHO_T}no" >&6
48977 fi
48978
48979 fi
48980 if test -z "$ac_cv_prog_WINDRES"; then
48981   ac_ct_WINDRES=$WINDRES
48982   # Extract the first word of "windres", so it can be a program name with args.
48983 set dummy windres; ac_word=$2
48984 echo "$as_me:$LINENO: checking for $ac_word" >&5
48985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48986 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
48987   echo $ECHO_N "(cached) $ECHO_C" >&6
48988 else
48989   if test -n "$ac_ct_WINDRES"; then
48990   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
48991 else
48992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48993 for as_dir in $PATH
48994 do
48995   IFS=$as_save_IFS
48996   test -z "$as_dir" && as_dir=.
48997   for ac_exec_ext in '' $ac_executable_extensions; do
48998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48999     ac_cv_prog_ac_ct_WINDRES="windres"
49000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49001     break 2
49002   fi
49003 done
49004 done
49005
49006 fi
49007 fi
49008 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49009 if test -n "$ac_ct_WINDRES"; then
49010   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49011 echo "${ECHO_T}$ac_ct_WINDRES" >&6
49012 else
49013   echo "$as_me:$LINENO: result: no" >&5
49014 echo "${ECHO_T}no" >&6
49015 fi
49016
49017   WINDRES=$ac_ct_WINDRES
49018 else
49019   WINDRES="$ac_cv_prog_WINDRES"
49020 fi
49021
49022          ;;
49023
49024       *-*-darwin* | powerpc-apple-macos* )
49025             # Extract the first word of "Rez", so it can be a program name with args.
49026 set dummy Rez; ac_word=$2
49027 echo "$as_me:$LINENO: checking for $ac_word" >&5
49028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49029 if test "${ac_cv_prog_REZ+set}" = set; then
49030   echo $ECHO_N "(cached) $ECHO_C" >&6
49031 else
49032   if test -n "$REZ"; then
49033   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49034 else
49035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49036 for as_dir in $PATH
49037 do
49038   IFS=$as_save_IFS
49039   test -z "$as_dir" && as_dir=.
49040   for ac_exec_ext in '' $ac_executable_extensions; do
49041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49042     ac_cv_prog_REZ="Rez"
49043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49044     break 2
49045   fi
49046 done
49047 done
49048
49049   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49050 fi
49051 fi
49052 REZ=$ac_cv_prog_REZ
49053 if test -n "$REZ"; then
49054   echo "$as_me:$LINENO: result: $REZ" >&5
49055 echo "${ECHO_T}$REZ" >&6
49056 else
49057   echo "$as_me:$LINENO: result: no" >&5
49058 echo "${ECHO_T}no" >&6
49059 fi
49060
49061             # Extract the first word of "SetFile", so it can be a program name with args.
49062 set dummy SetFile; ac_word=$2
49063 echo "$as_me:$LINENO: checking for $ac_word" >&5
49064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49065 if test "${ac_cv_prog_SETFILE+set}" = set; then
49066   echo $ECHO_N "(cached) $ECHO_C" >&6
49067 else
49068   if test -n "$SETFILE"; then
49069   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49070 else
49071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49072 for as_dir in $PATH
49073 do
49074   IFS=$as_save_IFS
49075   test -z "$as_dir" && as_dir=.
49076   for ac_exec_ext in '' $ac_executable_extensions; do
49077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49078     ac_cv_prog_SETFILE="SetFile"
49079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49080     break 2
49081   fi
49082 done
49083 done
49084
49085   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49086 fi
49087 fi
49088 SETFILE=$ac_cv_prog_SETFILE
49089 if test -n "$SETFILE"; then
49090   echo "$as_me:$LINENO: result: $SETFILE" >&5
49091 echo "${ECHO_T}$SETFILE" >&6
49092 else
49093   echo "$as_me:$LINENO: result: no" >&5
49094 echo "${ECHO_T}no" >&6
49095 fi
49096
49097         ;;
49098     esac
49099
49100
49101
49102
49103
49104
49105     BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
49106
49107
49108 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
49109
49110
49111
49112     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49113 if test "${enable_precomp_headers+set}" = set; then
49114   enableval="$enable_precomp_headers"
49115   bk_use_pch="$enableval"
49116 fi;
49117
49118     GCC_PCH=0
49119     ICC_PCH=0
49120     USE_PCH=0
49121
49122     case ${BAKEFILE_HOST} in
49123         *-*-cygwin* )
49124                                                 bk_use_pch="no"
49125             ;;
49126     esac
49127
49128     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49129         if test "x$GCC" = "xyes"; then
49130                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49131 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49132             cat >conftest.$ac_ext <<_ACEOF
49133 /* confdefs.h.  */
49134 _ACEOF
49135 cat confdefs.h >>conftest.$ac_ext
49136 cat >>conftest.$ac_ext <<_ACEOF
49137 /* end confdefs.h.  */
49138
49139 int
49140 main ()
49141 {
49142
49143                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49144                         There is no PCH support
49145                     #endif
49146                     #if (__GNUC__ < 3)
49147                         There is no PCH support
49148                     #endif
49149                     #if (__GNUC__ == 3) && \
49150                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49151                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49152                        ( defined(__INTEL_COMPILER) )
49153                         There is no PCH support
49154                     #endif
49155
49156   ;
49157   return 0;
49158 }
49159 _ACEOF
49160 rm -f conftest.$ac_objext
49161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49162   (eval $ac_compile) 2>conftest.er1
49163   ac_status=$?
49164   grep -v '^ *+' conftest.er1 >conftest.err
49165   rm -f conftest.er1
49166   cat conftest.err >&5
49167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49168   (exit $ac_status); } &&
49169          { ac_try='test -z "$ac_c_werror_flag"
49170                          || test ! -s conftest.err'
49171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49172   (eval $ac_try) 2>&5
49173   ac_status=$?
49174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49175   (exit $ac_status); }; } &&
49176          { ac_try='test -s conftest.$ac_objext'
49177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49178   (eval $ac_try) 2>&5
49179   ac_status=$?
49180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49181   (exit $ac_status); }; }; then
49182
49183                     echo "$as_me:$LINENO: result: yes" >&5
49184 echo "${ECHO_T}yes" >&6
49185                     GCC_PCH=1
49186
49187 else
49188   echo "$as_me: failed program was:" >&5
49189 sed 's/^/| /' conftest.$ac_ext >&5
49190
49191
49192                     cat >conftest.$ac_ext <<_ACEOF
49193 /* confdefs.h.  */
49194 _ACEOF
49195 cat confdefs.h >>conftest.$ac_ext
49196 cat >>conftest.$ac_ext <<_ACEOF
49197 /* end confdefs.h.  */
49198
49199 int
49200 main ()
49201 {
49202
49203                             #if !defined(__INTEL_COMPILER) || \
49204                                 (__INTEL_COMPILER < 800)
49205                                 There is no PCH support
49206                             #endif
49207
49208   ;
49209   return 0;
49210 }
49211 _ACEOF
49212 rm -f conftest.$ac_objext
49213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49214   (eval $ac_compile) 2>conftest.er1
49215   ac_status=$?
49216   grep -v '^ *+' conftest.er1 >conftest.err
49217   rm -f conftest.er1
49218   cat conftest.err >&5
49219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49220   (exit $ac_status); } &&
49221          { ac_try='test -z "$ac_c_werror_flag"
49222                          || test ! -s conftest.err'
49223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49224   (eval $ac_try) 2>&5
49225   ac_status=$?
49226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49227   (exit $ac_status); }; } &&
49228          { ac_try='test -s conftest.$ac_objext'
49229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49230   (eval $ac_try) 2>&5
49231   ac_status=$?
49232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49233   (exit $ac_status); }; }; then
49234
49235                             echo "$as_me:$LINENO: result: yes" >&5
49236 echo "${ECHO_T}yes" >&6
49237                             ICC_PCH=1
49238
49239 else
49240   echo "$as_me: failed program was:" >&5
49241 sed 's/^/| /' conftest.$ac_ext >&5
49242
49243
49244                             echo "$as_me:$LINENO: result: no" >&5
49245 echo "${ECHO_T}no" >&6
49246
49247 fi
49248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49249
49250 fi
49251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49252             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49253                 USE_PCH=1
49254
49255 D='$'
49256 cat <<EOF >bk-make-pch
49257 #!/bin/sh
49258
49259 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49260 # script. It is used to generated precompiled headers.
49261 #
49262 # Permission is given to use this file in any way.
49263
49264 outfile="${D}{1}"
49265 header="${D}{2}"
49266 shift
49267 shift
49268
49269 compiler=""
49270 headerfile=""
49271
49272 while test ${D}{#} -gt 0; do
49273     add_to_cmdline=1
49274     case "${D}{1}" in
49275         -I* )
49276             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49277             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49278                 headerfile="${D}{incdir}/${D}{header}"
49279             fi
49280         ;;
49281         -use-pch|-use_pch )
49282             shift
49283             add_to_cmdline=0
49284         ;;
49285     esac
49286     if test ${D}add_to_cmdline = 1 ; then
49287         compiler="${D}{compiler} ${D}{1}"
49288     fi
49289     shift
49290 done
49291
49292 if test "x${D}{headerfile}" = "x" ; then
49293     echo "error: can't find header ${D}{header} in include paths" >&2
49294 else
49295     if test -f ${D}{outfile} ; then
49296         rm -f ${D}{outfile}
49297     else
49298         mkdir -p \`dirname ${D}{outfile}\`
49299     fi
49300     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49301     mkdir -p .deps
49302     if test "x${GCC_PCH}" = "x1" ; then
49303         # can do this because gcc is >= 3.4:
49304         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49305     elif test "x${ICC_PCH}" = "x1" ; then
49306         filename=pch_gen-${D}${D}
49307         file=${D}{filename}.c
49308         dfile=${D}{filename}.d
49309         cat > ${D}file <<EOT
49310 #include "${D}header"
49311 EOT
49312         # using -MF icc complains about differing command lines in creation/use
49313         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49314           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49315           rm -f ${D}file ${D}dfile ${D}{filename}.o
49316     fi
49317     exit ${D}{?}
49318 fi
49319 EOF
49320
49321                 chmod +x bk-make-pch
49322             fi
49323         fi
49324     fi
49325
49326
49327
49328
49329     COND_BUILD_DEBUG="#"
49330     if test "x$BUILD" = "xdebug" ; then
49331         COND_BUILD_DEBUG=""
49332     fi
49333
49334     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49335     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49336         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49337     fi
49338
49339     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49340     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49341         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49342     fi
49343
49344     COND_BUILD_DEBUG_UNICODE_0="#"
49345     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49346         COND_BUILD_DEBUG_UNICODE_0=""
49347     fi
49348
49349     COND_BUILD_DEBUG_UNICODE_1="#"
49350     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49351         COND_BUILD_DEBUG_UNICODE_1=""
49352     fi
49353
49354     COND_BUILD_RELEASE="#"
49355     if test "x$BUILD" = "xrelease" ; then
49356         COND_BUILD_RELEASE=""
49357     fi
49358
49359     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49360     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49361         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49362     fi
49363
49364     COND_BUILD_RELEASE_UNICODE_0="#"
49365     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49366         COND_BUILD_RELEASE_UNICODE_0=""
49367     fi
49368
49369     COND_BUILD_RELEASE_UNICODE_1="#"
49370     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49371         COND_BUILD_RELEASE_UNICODE_1=""
49372     fi
49373
49374     COND_DEBUG_FLAG_1="#"
49375     if test "x$DEBUG_FLAG" = "x1" ; then
49376         COND_DEBUG_FLAG_1=""
49377     fi
49378
49379     COND_DEBUG_INFO_0="#"
49380     if test "x$DEBUG_INFO" = "x0" ; then
49381         COND_DEBUG_INFO_0=""
49382     fi
49383
49384     COND_DEBUG_INFO_1="#"
49385     if test "x$DEBUG_INFO" = "x1" ; then
49386         COND_DEBUG_INFO_1=""
49387     fi
49388
49389     COND_DEPS_TRACKING_0="#"
49390     if test "x$DEPS_TRACKING" = "x0" ; then
49391         COND_DEPS_TRACKING_0=""
49392     fi
49393
49394     COND_DEPS_TRACKING_1="#"
49395     if test "x$DEPS_TRACKING" = "x1" ; then
49396         COND_DEPS_TRACKING_1=""
49397     fi
49398
49399     COND_GCC_PCH_1="#"
49400     if test "x$GCC_PCH" = "x1" ; then
49401         COND_GCC_PCH_1=""
49402     fi
49403
49404     COND_ICC_PCH_1="#"
49405     if test "x$ICC_PCH" = "x1" ; then
49406         COND_ICC_PCH_1=""
49407     fi
49408
49409     COND_MONOLITHIC_0="#"
49410     if test "x$MONOLITHIC" = "x0" ; then
49411         COND_MONOLITHIC_0=""
49412     fi
49413
49414     COND_MONOLITHIC_0_SHARED_0="#"
49415     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49416         COND_MONOLITHIC_0_SHARED_0=""
49417     fi
49418
49419     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49420     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49421         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49422     fi
49423
49424     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49425     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49426         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49427     fi
49428
49429     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49430     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49431         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49432     fi
49433
49434     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49435     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49436         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49437     fi
49438
49439     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49440     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49441         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49442     fi
49443
49444     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49445     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49446         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49447     fi
49448
49449     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49450     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49451         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49452     fi
49453
49454     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49455     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49456         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49457     fi
49458
49459     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49460     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49461         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49462     fi
49463
49464     COND_MONOLITHIC_0_SHARED_1="#"
49465     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49466         COND_MONOLITHIC_0_SHARED_1=""
49467     fi
49468
49469     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49470     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49471         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49472     fi
49473
49474     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49475     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49476         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49477     fi
49478
49479     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49480     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49481         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49482     fi
49483
49484     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49485     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49486         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49487     fi
49488
49489     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49490     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49491         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49492     fi
49493
49494     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49495     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49496         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49497     fi
49498
49499     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49500     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49501         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49502     fi
49503
49504     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49505     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49506         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49507     fi
49508
49509     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49510     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49511         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49512     fi
49513
49514     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49515     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49516         COND_MONOLITHIC_0_USE_MEDIA_1=""
49517     fi
49518
49519     COND_MONOLITHIC_0_USE_ODBC_1="#"
49520     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49521         COND_MONOLITHIC_0_USE_ODBC_1=""
49522     fi
49523
49524     COND_MONOLITHIC_1="#"
49525     if test "x$MONOLITHIC" = "x1" ; then
49526         COND_MONOLITHIC_1=""
49527     fi
49528
49529     COND_MONOLITHIC_1_SHARED_0="#"
49530     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49531         COND_MONOLITHIC_1_SHARED_0=""
49532     fi
49533
49534     COND_MONOLITHIC_1_SHARED_1="#"
49535     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49536         COND_MONOLITHIC_1_SHARED_1=""
49537     fi
49538
49539     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49540     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49541         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49542     fi
49543
49544     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49545     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49546         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49547     fi
49548
49549     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49550     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49551         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49552     fi
49553
49554     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49555     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49556         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49557     fi
49558
49559     COND_PLATFORM_MACOSX_1="#"
49560     if test "x$PLATFORM_MACOSX" = "x1" ; then
49561         COND_PLATFORM_MACOSX_1=""
49562     fi
49563
49564     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49565     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49566         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49567     fi
49568
49569     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49570     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49571         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49572     fi
49573
49574     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49575     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49576         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49577     fi
49578
49579     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49580     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49581         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49582     fi
49583
49584     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49585     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49586         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49587     fi
49588
49589     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49590     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49591         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49592     fi
49593
49594     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49595     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49596         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49597     fi
49598
49599     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49600     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49601         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49602     fi
49603
49604     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49605     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49606         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49607     fi
49608
49609     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49610     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49611         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49612     fi
49613
49614     COND_PLATFORM_MACOS_1="#"
49615     if test "x$PLATFORM_MACOS" = "x1" ; then
49616         COND_PLATFORM_MACOS_1=""
49617     fi
49618
49619     COND_PLATFORM_MAC_1="#"
49620     if test "x$PLATFORM_MAC" = "x1" ; then
49621         COND_PLATFORM_MAC_1=""
49622     fi
49623
49624     COND_PLATFORM_MSDOS_0="#"
49625     if test "x$PLATFORM_MSDOS" = "x0" ; then
49626         COND_PLATFORM_MSDOS_0=""
49627     fi
49628
49629     COND_PLATFORM_MSDOS_1="#"
49630     if test "x$PLATFORM_MSDOS" = "x1" ; then
49631         COND_PLATFORM_MSDOS_1=""
49632     fi
49633
49634     COND_PLATFORM_OS2_1="#"
49635     if test "x$PLATFORM_OS2" = "x1" ; then
49636         COND_PLATFORM_OS2_1=""
49637     fi
49638
49639     COND_PLATFORM_UNIX_0="#"
49640     if test "x$PLATFORM_UNIX" = "x0" ; then
49641         COND_PLATFORM_UNIX_0=""
49642     fi
49643
49644     COND_PLATFORM_UNIX_1="#"
49645     if test "x$PLATFORM_UNIX" = "x1" ; then
49646         COND_PLATFORM_UNIX_1=""
49647     fi
49648
49649     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49650     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49651         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49652     fi
49653
49654     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49655     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49656         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49657     fi
49658
49659     COND_PLATFORM_WIN32_0="#"
49660     if test "x$PLATFORM_WIN32" = "x0" ; then
49661         COND_PLATFORM_WIN32_0=""
49662     fi
49663
49664     COND_PLATFORM_WIN32_1="#"
49665     if test "x$PLATFORM_WIN32" = "x1" ; then
49666         COND_PLATFORM_WIN32_1=""
49667     fi
49668
49669     COND_SHARED_0="#"
49670     if test "x$SHARED" = "x0" ; then
49671         COND_SHARED_0=""
49672     fi
49673
49674     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49675     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49676         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49677     fi
49678
49679     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49680     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49681         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49682     fi
49683
49684     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49685     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49686         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49687     fi
49688
49689     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49690     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49691         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49692     fi
49693
49694     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49695     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49696         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49697     fi
49698
49699     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49700     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49701         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49702     fi
49703
49704     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49705     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49706         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49707     fi
49708
49709     COND_SHARED_0_USE_XRC_1="#"
49710     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49711         COND_SHARED_0_USE_XRC_1=""
49712     fi
49713
49714     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49715     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49716         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49717     fi
49718
49719     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49720     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49721         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49722     fi
49723
49724     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49725     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49726         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49727     fi
49728
49729     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49730     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49731         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49732     fi
49733
49734     COND_SHARED_1="#"
49735     if test "x$SHARED" = "x1" ; then
49736         COND_SHARED_1=""
49737     fi
49738
49739     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49740     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49741         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49742     fi
49743
49744     COND_SHARED_1_USE_XRC_1="#"
49745     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49746         COND_SHARED_1_USE_XRC_1=""
49747     fi
49748
49749     COND_TOOLKIT_="#"
49750     if test "x$TOOLKIT" = "x" ; then
49751         COND_TOOLKIT_=""
49752     fi
49753
49754     COND_TOOLKIT_COCOA="#"
49755     if test "x$TOOLKIT" = "xCOCOA" ; then
49756         COND_TOOLKIT_COCOA=""
49757     fi
49758
49759     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49760     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49761         COND_TOOLKIT_COCOA_USE_GUI_1=""
49762     fi
49763
49764     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49765     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49766         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49767     fi
49768
49769     COND_TOOLKIT_DFB="#"
49770     if test "x$TOOLKIT" = "xDFB" ; then
49771         COND_TOOLKIT_DFB=""
49772     fi
49773
49774     COND_TOOLKIT_DFB_USE_GUI_1="#"
49775     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49776         COND_TOOLKIT_DFB_USE_GUI_1=""
49777     fi
49778
49779     COND_TOOLKIT_GTK="#"
49780     if test "x$TOOLKIT" = "xGTK" ; then
49781         COND_TOOLKIT_GTK=""
49782     fi
49783
49784     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49785     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49786         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49787     fi
49788
49789     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49790     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49791         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49792     fi
49793
49794     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49795     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49796         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49797     fi
49798
49799     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49800     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49801         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49802     fi
49803
49804     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49805     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49806         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49807     fi
49808
49809     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49810     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49811         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49812     fi
49813
49814     COND_TOOLKIT_GTK_USE_GUI_1="#"
49815     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49816         COND_TOOLKIT_GTK_USE_GUI_1=""
49817     fi
49818
49819     COND_TOOLKIT_MAC="#"
49820     if test "x$TOOLKIT" = "xMAC" ; then
49821         COND_TOOLKIT_MAC=""
49822     fi
49823
49824     COND_TOOLKIT_MAC_USE_GUI_1="#"
49825     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49826         COND_TOOLKIT_MAC_USE_GUI_1=""
49827     fi
49828
49829     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49830     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49831         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49832     fi
49833
49834     COND_TOOLKIT_MGL="#"
49835     if test "x$TOOLKIT" = "xMGL" ; then
49836         COND_TOOLKIT_MGL=""
49837     fi
49838
49839     COND_TOOLKIT_MGL_USE_GUI_1="#"
49840     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49841         COND_TOOLKIT_MGL_USE_GUI_1=""
49842     fi
49843
49844     COND_TOOLKIT_MOTIF="#"
49845     if test "x$TOOLKIT" = "xMOTIF" ; then
49846         COND_TOOLKIT_MOTIF=""
49847     fi
49848
49849     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49850     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49851         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49852     fi
49853
49854     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49855     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49856         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49857     fi
49858
49859     COND_TOOLKIT_MSW="#"
49860     if test "x$TOOLKIT" = "xMSW" ; then
49861         COND_TOOLKIT_MSW=""
49862     fi
49863
49864     COND_TOOLKIT_MSW_USE_GUI_1="#"
49865     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49866         COND_TOOLKIT_MSW_USE_GUI_1=""
49867     fi
49868
49869     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49870     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49871         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49872     fi
49873
49874     COND_TOOLKIT_MSW_WXUNIV_0="#"
49875     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49876         COND_TOOLKIT_MSW_WXUNIV_0=""
49877     fi
49878
49879     COND_TOOLKIT_PM="#"
49880     if test "x$TOOLKIT" = "xPM" ; then
49881         COND_TOOLKIT_PM=""
49882     fi
49883
49884     COND_TOOLKIT_PM_USE_GUI_1="#"
49885     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49886         COND_TOOLKIT_PM_USE_GUI_1=""
49887     fi
49888
49889     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49890     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49891         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49892     fi
49893
49894     COND_TOOLKIT_WINCE="#"
49895     if test "x$TOOLKIT" = "xWINCE" ; then
49896         COND_TOOLKIT_WINCE=""
49897     fi
49898
49899     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49900     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49901         COND_TOOLKIT_WINCE_USE_GUI_1=""
49902     fi
49903
49904     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49905     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49906         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49907     fi
49908
49909     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49910     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49911         COND_TOOLKIT_WINCE_WXUNIV_0=""
49912     fi
49913
49914     COND_TOOLKIT_X11="#"
49915     if test "x$TOOLKIT" = "xX11" ; then
49916         COND_TOOLKIT_X11=""
49917     fi
49918
49919     COND_TOOLKIT_X11_USE_GUI_1="#"
49920     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49921         COND_TOOLKIT_X11_USE_GUI_1=""
49922     fi
49923
49924     COND_UNICODE_1="#"
49925     if test "x$UNICODE" = "x1" ; then
49926         COND_UNICODE_1=""
49927     fi
49928
49929     COND_USE_EXCEPTIONS_0="#"
49930     if test "x$USE_EXCEPTIONS" = "x0" ; then
49931         COND_USE_EXCEPTIONS_0=""
49932     fi
49933
49934     COND_USE_EXCEPTIONS_1="#"
49935     if test "x$USE_EXCEPTIONS" = "x1" ; then
49936         COND_USE_EXCEPTIONS_1=""
49937     fi
49938
49939     COND_USE_GUI_0="#"
49940     if test "x$USE_GUI" = "x0" ; then
49941         COND_USE_GUI_0=""
49942     fi
49943
49944     COND_USE_GUI_1="#"
49945     if test "x$USE_GUI" = "x1" ; then
49946         COND_USE_GUI_1=""
49947     fi
49948
49949     COND_USE_GUI_1_WXUNIV_0="#"
49950     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49951         COND_USE_GUI_1_WXUNIV_0=""
49952     fi
49953
49954     COND_USE_GUI_1_WXUNIV_1="#"
49955     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49956         COND_USE_GUI_1_WXUNIV_1=""
49957     fi
49958
49959     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49960     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49961         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49962     fi
49963
49964     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49965     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49966         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49967     fi
49968
49969     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49970     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49971         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49972     fi
49973
49974     COND_USE_ODBC_1="#"
49975     if test "x$USE_ODBC" = "x1" ; then
49976         COND_USE_ODBC_1=""
49977     fi
49978
49979     COND_USE_OPENGL_1="#"
49980     if test "x$USE_OPENGL" = "x1" ; then
49981         COND_USE_OPENGL_1=""
49982     fi
49983
49984     COND_USE_PCH_1="#"
49985     if test "x$USE_PCH" = "x1" ; then
49986         COND_USE_PCH_1=""
49987     fi
49988
49989     COND_USE_PLUGINS_0="#"
49990     if test "x$USE_PLUGINS" = "x0" ; then
49991         COND_USE_PLUGINS_0=""
49992     fi
49993
49994     COND_USE_RTTI_0="#"
49995     if test "x$USE_RTTI" = "x0" ; then
49996         COND_USE_RTTI_0=""
49997     fi
49998
49999     COND_USE_RTTI_1="#"
50000     if test "x$USE_RTTI" = "x1" ; then
50001         COND_USE_RTTI_1=""
50002     fi
50003
50004     COND_USE_SOSYMLINKS_1="#"
50005     if test "x$USE_SOSYMLINKS" = "x1" ; then
50006         COND_USE_SOSYMLINKS_1=""
50007     fi
50008
50009     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50010     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50011         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50012     fi
50013
50014     COND_USE_SOVERLINUX_1="#"
50015     if test "x$USE_SOVERLINUX" = "x1" ; then
50016         COND_USE_SOVERLINUX_1=""
50017     fi
50018
50019     COND_USE_SOVERSION_0="#"
50020     if test "x$USE_SOVERSION" = "x0" ; then
50021         COND_USE_SOVERSION_0=""
50022     fi
50023
50024     COND_USE_SOVERSOLARIS_1="#"
50025     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50026         COND_USE_SOVERSOLARIS_1=""
50027     fi
50028
50029     COND_USE_THREADS_0="#"
50030     if test "x$USE_THREADS" = "x0" ; then
50031         COND_USE_THREADS_0=""
50032     fi
50033
50034     COND_USE_THREADS_1="#"
50035     if test "x$USE_THREADS" = "x1" ; then
50036         COND_USE_THREADS_1=""
50037     fi
50038
50039     COND_USE_XRC_1="#"
50040     if test "x$USE_XRC" = "x1" ; then
50041         COND_USE_XRC_1=""
50042     fi
50043
50044     COND_WINDOWS_IMPLIB_1="#"
50045     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50046         COND_WINDOWS_IMPLIB_1=""
50047     fi
50048
50049     COND_WITH_PLUGIN_SDL_1="#"
50050     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50051         COND_WITH_PLUGIN_SDL_1=""
50052     fi
50053
50054     COND_WXUNIV_0="#"
50055     if test "x$WXUNIV" = "x0" ; then
50056         COND_WXUNIV_0=""
50057     fi
50058
50059     COND_WXUNIV_1="#"
50060     if test "x$WXUNIV" = "x1" ; then
50061         COND_WXUNIV_1=""
50062     fi
50063
50064     COND_WXUSE_EXPAT_BUILTIN="#"
50065     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50066         COND_WXUSE_EXPAT_BUILTIN=""
50067     fi
50068
50069     COND_WXUSE_LIBJPEG_BUILTIN="#"
50070     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50071         COND_WXUSE_LIBJPEG_BUILTIN=""
50072     fi
50073
50074     COND_WXUSE_LIBPNG_BUILTIN="#"
50075     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50076         COND_WXUSE_LIBPNG_BUILTIN=""
50077     fi
50078
50079     COND_WXUSE_LIBTIFF_BUILTIN="#"
50080     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50081         COND_WXUSE_LIBTIFF_BUILTIN=""
50082     fi
50083
50084     COND_WXUSE_ODBC_BUILTIN="#"
50085     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50086         COND_WXUSE_ODBC_BUILTIN=""
50087     fi
50088
50089     COND_WXUSE_REGEX_BUILTIN="#"
50090     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50091         COND_WXUSE_REGEX_BUILTIN=""
50092     fi
50093
50094     COND_WXUSE_ZLIB_BUILTIN="#"
50095     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50096         COND_WXUSE_ZLIB_BUILTIN=""
50097     fi
50098
50099
50100
50101     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50102         { { 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
50103 echo "$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;}
50104    { (exit 1); exit 1; }; }
50105     fi
50106
50107     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50108         { { 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
50109 echo "$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;}
50110    { (exit 1); exit 1; }; }
50111     fi
50112
50113
50114
50115 if test "$wxUSE_MAC" = 1 ; then
50116     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50117         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50118         mv temp bk-deps
50119         chmod +x bk-deps
50120     fi
50121 fi
50122
50123 if test "$wxUSE_SHARED" = "yes"; then
50124
50125                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50126     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50127
50128                 case "${host}" in
50129       *-pc-os2_emx | *-pc-os2-emx )
50130         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50131         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50132         cp -p ${srcdir}/src/os2/dllnames.sh .
50133         cp -p ${srcdir}/src/os2/dllar.sh .
50134       ;;
50135     esac
50136 else
50137
50138         EXE_LINKER="$CXX -o"
50139
50140 fi
50141 if test "$wxUSE_OMF" = "yes"; then
50142     case "${host}" in
50143       *-pc-os2_emx | *-pc-os2-emx )
50144         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50145         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50146         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50147       ;;
50148     esac
50149 fi
50150
50151 if test $GCC_PCH = 1 ; then
50152     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50153 fi
50154
50155 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50156
50157 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50158
50159
50160
50161
50162
50163
50164
50165
50166
50167
50168
50169
50170
50171
50172
50173
50174
50175
50176
50177
50178
50179
50180
50181
50182
50183
50184
50185
50186
50187
50188
50189
50190
50191
50192
50193
50194
50195
50196
50197
50198
50199
50200
50201
50202
50203
50204
50205
50206
50207
50208
50209
50210
50211
50212
50213
50214
50215
50216
50217
50218
50219 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50220 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
50221 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
50222 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50223   echo $ECHO_N "(cached) $ECHO_C" >&6
50224 else
50225   cat >conftest.make <<\_ACEOF
50226 all:
50227         @echo 'ac_maketemp="$(MAKE)"'
50228 _ACEOF
50229 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50230 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50231 if test -n "$ac_maketemp"; then
50232   eval ac_cv_prog_make_${ac_make}_set=yes
50233 else
50234   eval ac_cv_prog_make_${ac_make}_set=no
50235 fi
50236 rm -f conftest.make
50237 fi
50238 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50239   echo "$as_me:$LINENO: result: yes" >&5
50240 echo "${ECHO_T}yes" >&6
50241   SET_MAKE=
50242 else
50243   echo "$as_me:$LINENO: result: no" >&5
50244 echo "${ECHO_T}no" >&6
50245   SET_MAKE="MAKE=${MAKE-make}"
50246 fi
50247
50248
50249
50250           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50251
50252
50253 if test "$USE_WIN32" = 1; then
50254               ac_config_commands="$ac_config_commands
50255             rcdefs.h
50256         "
50257
50258 fi
50259
50260           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50261
50262
50263           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50264
50265
50266                     ac_config_files="$ac_config_files version-script Makefile"
50267
50268
50269           ac_config_commands="$ac_config_commands wx-config"
50270
50271
50272
50273 if test "$wxWITH_SUBDIRS" != "no"; then
50274 if test "$wxUSE_GUI" = "yes"; then
50275     SUBDIRS="samples demos utils contrib"
50276 else         SUBDIRS="samples utils"
50277 fi
50278
50279
50280
50281 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50282 if test "${with_cppunit_prefix+set}" = set; then
50283   withval="$with_cppunit_prefix"
50284   cppunit_config_prefix="$withval"
50285 else
50286   cppunit_config_prefix=""
50287 fi;
50288
50289 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50290 if test "${with_cppunit_exec_prefix+set}" = set; then
50291   withval="$with_cppunit_exec_prefix"
50292   cppunit_config_exec_prefix="$withval"
50293 else
50294   cppunit_config_exec_prefix=""
50295 fi;
50296
50297   if test x$cppunit_config_exec_prefix != x ; then
50298      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50299      if test x${CPPUNIT_CONFIG+set} != xset ; then
50300         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50301      fi
50302   fi
50303   if test x$cppunit_config_prefix != x ; then
50304      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50305      if test x${CPPUNIT_CONFIG+set} != xset ; then
50306         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50307      fi
50308   fi
50309
50310   # Extract the first word of "cppunit-config", so it can be a program name with args.
50311 set dummy cppunit-config; ac_word=$2
50312 echo "$as_me:$LINENO: checking for $ac_word" >&5
50313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50314 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50315   echo $ECHO_N "(cached) $ECHO_C" >&6
50316 else
50317   case $CPPUNIT_CONFIG in
50318   [\\/]* | ?:[\\/]*)
50319   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50320   ;;
50321   *)
50322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50323 for as_dir in $PATH
50324 do
50325   IFS=$as_save_IFS
50326   test -z "$as_dir" && as_dir=.
50327   for ac_exec_ext in '' $ac_executable_extensions; do
50328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50329     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50331     break 2
50332   fi
50333 done
50334 done
50335
50336   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50337   ;;
50338 esac
50339 fi
50340 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50341
50342 if test -n "$CPPUNIT_CONFIG"; then
50343   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50344 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50345 else
50346   echo "$as_me:$LINENO: result: no" >&5
50347 echo "${ECHO_T}no" >&6
50348 fi
50349
50350   cppunit_version_min=1.8.0
50351
50352   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50353 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50354   no_cppunit=""
50355   if test "$CPPUNIT_CONFIG" = "no" ; then
50356     echo "$as_me:$LINENO: result: no" >&5
50357 echo "${ECHO_T}no" >&6
50358     no_cppunit=yes
50359   else
50360     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50361     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50362     cppunit_version=`$CPPUNIT_CONFIG --version`
50363
50364     cppunit_major_version=`echo $cppunit_version | \
50365            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50366     cppunit_minor_version=`echo $cppunit_version | \
50367            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50368     cppunit_micro_version=`echo $cppunit_version | \
50369            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50370
50371     cppunit_major_min=`echo $cppunit_version_min | \
50372            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50373     cppunit_minor_min=`echo $cppunit_version_min | \
50374            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50375     cppunit_micro_min=`echo $cppunit_version_min | \
50376            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50377
50378     cppunit_version_proper=`expr \
50379         $cppunit_major_version \> $cppunit_major_min \| \
50380         $cppunit_major_version \= $cppunit_major_min \& \
50381         $cppunit_minor_version \> $cppunit_minor_min \| \
50382         $cppunit_major_version \= $cppunit_major_min \& \
50383         $cppunit_minor_version \= $cppunit_minor_min \& \
50384         $cppunit_micro_version \>= $cppunit_micro_min `
50385
50386     if test "$cppunit_version_proper" = "1" ; then
50387       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50388 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50389     else
50390       echo "$as_me:$LINENO: result: no" >&5
50391 echo "${ECHO_T}no" >&6
50392       no_cppunit=yes
50393     fi
50394   fi
50395
50396   if test "x$no_cppunit" = x ; then
50397      SUBDIRS="$SUBDIRS tests"
50398   else
50399      CPPUNIT_CFLAGS=""
50400      CPPUNIT_LIBS=""
50401      :
50402   fi
50403
50404
50405
50406
50407
50408 for subdir in `echo $SUBDIRS`; do
50409     if test -d ${srcdir}/${subdir} ; then
50410         if test "$wxUSE_GUI" = "yes"; then
50411             if test ${subdir} = "samples"; then
50412                                                 makefiles="samples/Makefile.in $makefiles"
50413                 for sample in `echo $SAMPLES_SUBDIRS`; do
50414                     if test -d $srcdir/samples/$sample; then
50415                         makefiles="samples/$sample/Makefile.in $makefiles"
50416                     fi
50417                 done
50418             else
50419                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50420                 eval "disabled=\$$disabled_var"
50421                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50422                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
50423             fi
50424         else                                     if test ${subdir} = "samples"; then
50425                 makefiles="samples/Makefile.in samples/console/Makefile.in"
50426             elif test ${subdir} = "utils"; then
50427                 makefiles=""
50428                 for util in HelpGen tex2rtf ; do
50429                     if test -d $srcdir/utils/$util ; then
50430                         makefiles="utils/$util/Makefile.in \
50431                                    utils/$util/src/Makefile.in \
50432                                    $makefiles"
50433                     fi
50434                 done
50435             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50436             fi
50437         fi
50438
50439         for mkin in $makefiles ; do
50440             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50441                       ac_config_files="$ac_config_files $mk"
50442
50443         done
50444     fi
50445 done
50446 fi
50447 cat >confcache <<\_ACEOF
50448 # This file is a shell script that caches the results of configure
50449 # tests run on this system so they can be shared between configure
50450 # scripts and configure runs, see configure's option --config-cache.
50451 # It is not useful on other systems.  If it contains results you don't
50452 # want to keep, you may remove or edit it.
50453 #
50454 # config.status only pays attention to the cache file if you give it
50455 # the --recheck option to rerun configure.
50456 #
50457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50459 # following values.
50460
50461 _ACEOF
50462
50463 # The following way of writing the cache mishandles newlines in values,
50464 # but we know of no workaround that is simple, portable, and efficient.
50465 # So, don't put newlines in cache variables' values.
50466 # Ultrix sh set writes to stderr and can't be redirected directly,
50467 # and sets the high bit in the cache file unless we assign to the vars.
50468 {
50469   (set) 2>&1 |
50470     case `(ac_space=' '; set | grep ac_space) 2>&1` in
50471     *ac_space=\ *)
50472       # `set' does not quote correctly, so add quotes (double-quote
50473       # substitution turns \\\\ into \\, and sed turns \\ into \).
50474       sed -n \
50475         "s/'/'\\\\''/g;
50476           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50477       ;;
50478     *)
50479       # `set' quotes correctly as required by POSIX, so do not add quotes.
50480       sed -n \
50481         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
50482       ;;
50483     esac;
50484 } |
50485   sed '
50486      t clear
50487      : clear
50488      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50489      t end
50490      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50491      : end' >>confcache
50492 if diff $cache_file confcache >/dev/null 2>&1; then :; else
50493   if test -w $cache_file; then
50494     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50495     cat confcache >$cache_file
50496   else
50497     echo "not updating unwritable cache $cache_file"
50498   fi
50499 fi
50500 rm -f confcache
50501
50502 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50503 # Let make expand exec_prefix.
50504 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50505
50506 # VPATH may cause trouble with some makes, so we remove $(srcdir),
50507 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50508 # trailing colons and then remove the whole line if VPATH becomes empty
50509 # (actually we leave an empty line to preserve line numbers).
50510 if test "x$srcdir" = x.; then
50511   ac_vpsub='/^[  ]*VPATH[        ]*=/{
50512 s/:*\$(srcdir):*/:/;
50513 s/:*\${srcdir}:*/:/;
50514 s/:*@srcdir@:*/:/;
50515 s/^\([^=]*=[     ]*\):*/\1/;
50516 s/:*$//;
50517 s/^[^=]*=[       ]*$//;
50518 }'
50519 fi
50520
50521 DEFS=-DHAVE_CONFIG_H
50522
50523 ac_libobjs=
50524 ac_ltlibobjs=
50525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50526   # 1. Remove the extension, and $U if already installed.
50527   ac_i=`echo "$ac_i" |
50528          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
50529   # 2. Add them.
50530   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50531   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50532 done
50533 LIBOBJS=$ac_libobjs
50534
50535 LTLIBOBJS=$ac_ltlibobjs
50536
50537
50538
50539 : ${CONFIG_STATUS=./config.status}
50540 ac_clean_files_save=$ac_clean_files
50541 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50542 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50543 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50544 cat >$CONFIG_STATUS <<_ACEOF
50545 #! $SHELL
50546 # Generated by $as_me.
50547 # Run this file to recreate the current configuration.
50548 # Compiler output produced by configure, useful for debugging
50549 # configure, is in config.log if it exists.
50550
50551 debug=false
50552 ac_cs_recheck=false
50553 ac_cs_silent=false
50554 SHELL=\${CONFIG_SHELL-$SHELL}
50555 _ACEOF
50556
50557 cat >>$CONFIG_STATUS <<\_ACEOF
50558 ## --------------------- ##
50559 ## M4sh Initialization.  ##
50560 ## --------------------- ##
50561
50562 # Be Bourne compatible
50563 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50564   emulate sh
50565   NULLCMD=:
50566   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50567   # is contrary to our usage.  Disable this feature.
50568   alias -g '${1+"$@"}'='"$@"'
50569 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50570   set -o posix
50571 fi
50572 DUALCASE=1; export DUALCASE # for MKS sh
50573
50574 # Support unset when possible.
50575 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50576   as_unset=unset
50577 else
50578   as_unset=false
50579 fi
50580
50581
50582 # Work around bugs in pre-3.0 UWIN ksh.
50583 $as_unset ENV MAIL MAILPATH
50584 PS1='$ '
50585 PS2='> '
50586 PS4='+ '
50587
50588 # NLS nuisances.
50589 for as_var in \
50590   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50591   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50592   LC_TELEPHONE LC_TIME
50593 do
50594   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50595     eval $as_var=C; export $as_var
50596   else
50597     $as_unset $as_var
50598   fi
50599 done
50600
50601 # Required to use basename.
50602 if expr a : '\(a\)' >/dev/null 2>&1; then
50603   as_expr=expr
50604 else
50605   as_expr=false
50606 fi
50607
50608 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50609   as_basename=basename
50610 else
50611   as_basename=false
50612 fi
50613
50614
50615 # Name of the executable.
50616 as_me=`$as_basename "$0" ||
50617 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50618          X"$0" : 'X\(//\)$' \| \
50619          X"$0" : 'X\(/\)$' \| \
50620          .     : '\(.\)' 2>/dev/null ||
50621 echo X/"$0" |
50622     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50623           /^X\/\(\/\/\)$/{ s//\1/; q; }
50624           /^X\/\(\/\).*/{ s//\1/; q; }
50625           s/.*/./; q'`
50626
50627
50628 # PATH needs CR, and LINENO needs CR and PATH.
50629 # Avoid depending upon Character Ranges.
50630 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50631 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50632 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50633 as_cr_digits='0123456789'
50634 as_cr_alnum=$as_cr_Letters$as_cr_digits
50635
50636 # The user is always right.
50637 if test "${PATH_SEPARATOR+set}" != set; then
50638   echo "#! /bin/sh" >conf$$.sh
50639   echo  "exit 0"   >>conf$$.sh
50640   chmod +x conf$$.sh
50641   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50642     PATH_SEPARATOR=';'
50643   else
50644     PATH_SEPARATOR=:
50645   fi
50646   rm -f conf$$.sh
50647 fi
50648
50649
50650   as_lineno_1=$LINENO
50651   as_lineno_2=$LINENO
50652   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50653   test "x$as_lineno_1" != "x$as_lineno_2" &&
50654   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
50655   # Find who we are.  Look in the path if we contain no path at all
50656   # relative or not.
50657   case $0 in
50658     *[\\/]* ) as_myself=$0 ;;
50659     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50660 for as_dir in $PATH
50661 do
50662   IFS=$as_save_IFS
50663   test -z "$as_dir" && as_dir=.
50664   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50665 done
50666
50667        ;;
50668   esac
50669   # We did not find ourselves, most probably we were run as `sh COMMAND'
50670   # in which case we are not to be found in the path.
50671   if test "x$as_myself" = x; then
50672     as_myself=$0
50673   fi
50674   if test ! -f "$as_myself"; then
50675     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50676 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50677    { (exit 1); exit 1; }; }
50678   fi
50679   case $CONFIG_SHELL in
50680   '')
50681     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50682 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50683 do
50684   IFS=$as_save_IFS
50685   test -z "$as_dir" && as_dir=.
50686   for as_base in sh bash ksh sh5; do
50687          case $as_dir in
50688          /*)
50689            if ("$as_dir/$as_base" -c '
50690   as_lineno_1=$LINENO
50691   as_lineno_2=$LINENO
50692   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50693   test "x$as_lineno_1" != "x$as_lineno_2" &&
50694   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
50695              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50696              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50697              CONFIG_SHELL=$as_dir/$as_base
50698              export CONFIG_SHELL
50699              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50700            fi;;
50701          esac
50702        done
50703 done
50704 ;;
50705   esac
50706
50707   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50708   # uniformly replaced by the line number.  The first 'sed' inserts a
50709   # line-number line before each line; the second 'sed' does the real
50710   # work.  The second script uses 'N' to pair each line-number line
50711   # with the numbered line, and appends trailing '-' during
50712   # substitution so that $LINENO is not a special case at line end.
50713   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50714   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
50715   sed '=' <$as_myself |
50716     sed '
50717       N
50718       s,$,-,
50719       : loop
50720       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50721       t loop
50722       s,-$,,
50723       s,^['$as_cr_digits']*\n,,
50724     ' >$as_me.lineno &&
50725   chmod +x $as_me.lineno ||
50726     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50727 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50728    { (exit 1); exit 1; }; }
50729
50730   # Don't try to exec as it changes $[0], causing all sort of problems
50731   # (the dirname of $[0] is not the place where we might find the
50732   # original and so on.  Autoconf is especially sensible to this).
50733   . ./$as_me.lineno
50734   # Exit status is that of the last command.
50735   exit
50736 }
50737
50738
50739 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50740   *c*,-n*) ECHO_N= ECHO_C='
50741 ' ECHO_T='      ' ;;
50742   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50743   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
50744 esac
50745
50746 if expr a : '\(a\)' >/dev/null 2>&1; then
50747   as_expr=expr
50748 else
50749   as_expr=false
50750 fi
50751
50752 rm -f conf$$ conf$$.exe conf$$.file
50753 echo >conf$$.file
50754 if ln -s conf$$.file conf$$ 2>/dev/null; then
50755   # We could just check for DJGPP; but this test a) works b) is more generic
50756   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50757   if test -f conf$$.exe; then
50758     # Don't use ln at all; we don't have any links
50759     as_ln_s='cp -p'
50760   else
50761     as_ln_s='ln -s'
50762   fi
50763 elif ln conf$$.file conf$$ 2>/dev/null; then
50764   as_ln_s=ln
50765 else
50766   as_ln_s='cp -p'
50767 fi
50768 rm -f conf$$ conf$$.exe conf$$.file
50769
50770 if mkdir -p . 2>/dev/null; then
50771   as_mkdir_p=:
50772 else
50773   test -d ./-p && rmdir ./-p
50774   as_mkdir_p=false
50775 fi
50776
50777 as_executable_p="test -f"
50778
50779 # Sed expression to map a string onto a valid CPP name.
50780 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50781
50782 # Sed expression to map a string onto a valid variable name.
50783 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50784
50785
50786 # IFS
50787 # We need space, tab and new line, in precisely that order.
50788 as_nl='
50789 '
50790 IFS="   $as_nl"
50791
50792 # CDPATH.
50793 $as_unset CDPATH
50794
50795 exec 6>&1
50796
50797 # Open the log real soon, to keep \$[0] and so on meaningful, and to
50798 # report actual input values of CONFIG_FILES etc. instead of their
50799 # values after options handling.  Logging --version etc. is OK.
50800 exec 5>>config.log
50801 {
50802   echo
50803   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50804 ## Running $as_me. ##
50805 _ASBOX
50806 } >&5
50807 cat >&5 <<_CSEOF
50808
50809 This file was extended by wxWidgets $as_me 2.7.1, which was
50810 generated by GNU Autoconf 2.59.  Invocation command line was
50811
50812   CONFIG_FILES    = $CONFIG_FILES
50813   CONFIG_HEADERS  = $CONFIG_HEADERS
50814   CONFIG_LINKS    = $CONFIG_LINKS
50815   CONFIG_COMMANDS = $CONFIG_COMMANDS
50816   $ $0 $@
50817
50818 _CSEOF
50819 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50820 echo >&5
50821 _ACEOF
50822
50823 # Files that config.status was made for.
50824 if test -n "$ac_config_files"; then
50825   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50826 fi
50827
50828 if test -n "$ac_config_headers"; then
50829   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50830 fi
50831
50832 if test -n "$ac_config_links"; then
50833   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50834 fi
50835
50836 if test -n "$ac_config_commands"; then
50837   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50838 fi
50839
50840 cat >>$CONFIG_STATUS <<\_ACEOF
50841
50842 ac_cs_usage="\
50843 \`$as_me' instantiates files from templates according to the
50844 current configuration.
50845
50846 Usage: $0 [OPTIONS] [FILE]...
50847
50848   -h, --help       print this help, then exit
50849   -V, --version    print version number, then exit
50850   -q, --quiet      do not print progress messages
50851   -d, --debug      don't remove temporary files
50852       --recheck    update $as_me by reconfiguring in the same conditions
50853   --file=FILE[:TEMPLATE]
50854                    instantiate the configuration file FILE
50855   --header=FILE[:TEMPLATE]
50856                    instantiate the configuration header FILE
50857
50858 Configuration files:
50859 $config_files
50860
50861 Configuration headers:
50862 $config_headers
50863
50864 Configuration commands:
50865 $config_commands
50866
50867 Report bugs to <bug-autoconf@gnu.org>."
50868 _ACEOF
50869
50870 cat >>$CONFIG_STATUS <<_ACEOF
50871 ac_cs_version="\\
50872 wxWidgets config.status 2.7.1
50873 configured by $0, generated by GNU Autoconf 2.59,
50874   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50875
50876 Copyright (C) 2003 Free Software Foundation, Inc.
50877 This config.status script is free software; the Free Software Foundation
50878 gives unlimited permission to copy, distribute and modify it."
50879 srcdir=$srcdir
50880 INSTALL="$INSTALL"
50881 _ACEOF
50882
50883 cat >>$CONFIG_STATUS <<\_ACEOF
50884 # If no file are specified by the user, then we need to provide default
50885 # value.  By we need to know if files were specified by the user.
50886 ac_need_defaults=:
50887 while test $# != 0
50888 do
50889   case $1 in
50890   --*=*)
50891     ac_option=`expr "x$1" : 'x\([^=]*\)='`
50892     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50893     ac_shift=:
50894     ;;
50895   -*)
50896     ac_option=$1
50897     ac_optarg=$2
50898     ac_shift=shift
50899     ;;
50900   *) # This is not an option, so the user has probably given explicit
50901      # arguments.
50902      ac_option=$1
50903      ac_need_defaults=false;;
50904   esac
50905
50906   case $ac_option in
50907   # Handling of the options.
50908 _ACEOF
50909 cat >>$CONFIG_STATUS <<\_ACEOF
50910   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50911     ac_cs_recheck=: ;;
50912   --version | --vers* | -V )
50913     echo "$ac_cs_version"; exit 0 ;;
50914   --he | --h)
50915     # Conflict between --help and --header
50916     { { echo "$as_me:$LINENO: error: ambiguous option: $1
50917 Try \`$0 --help' for more information." >&5
50918 echo "$as_me: error: ambiguous option: $1
50919 Try \`$0 --help' for more information." >&2;}
50920    { (exit 1); exit 1; }; };;
50921   --help | --hel | -h )
50922     echo "$ac_cs_usage"; exit 0 ;;
50923   --debug | --d* | -d )
50924     debug=: ;;
50925   --file | --fil | --fi | --f )
50926     $ac_shift
50927     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50928     ac_need_defaults=false;;
50929   --header | --heade | --head | --hea )
50930     $ac_shift
50931     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50932     ac_need_defaults=false;;
50933   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50934   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50935     ac_cs_silent=: ;;
50936
50937   # This is an error.
50938   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50939 Try \`$0 --help' for more information." >&5
50940 echo "$as_me: error: unrecognized option: $1
50941 Try \`$0 --help' for more information." >&2;}
50942    { (exit 1); exit 1; }; } ;;
50943
50944   *) ac_config_targets="$ac_config_targets $1" ;;
50945
50946   esac
50947   shift
50948 done
50949
50950 ac_configure_extra_args=
50951
50952 if $ac_cs_silent; then
50953   exec 6>/dev/null
50954   ac_configure_extra_args="$ac_configure_extra_args --silent"
50955 fi
50956
50957 _ACEOF
50958 cat >>$CONFIG_STATUS <<_ACEOF
50959 if \$ac_cs_recheck; then
50960   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50961   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50962 fi
50963
50964 _ACEOF
50965
50966 cat >>$CONFIG_STATUS <<_ACEOF
50967 #
50968 # INIT-COMMANDS section.
50969 #
50970
50971
50972             CPP="$CPP"
50973             infile="$srcdir/include/wx/msw/genrcdefs.h"
50974             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50975
50976
50977  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50978  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50979  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50980                      LN_S="${LN_S}"
50981
50982
50983 _ACEOF
50984
50985
50986
50987 cat >>$CONFIG_STATUS <<\_ACEOF
50988 for ac_config_target in $ac_config_targets
50989 do
50990   case "$ac_config_target" in
50991   # Handling of arguments.
50992   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50993   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
50994   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50995   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50996   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
50997   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
50998   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50999   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51000   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51001 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51002    { (exit 1); exit 1; }; };;
51003   esac
51004 done
51005
51006 # If the user did not use the arguments to specify the items to instantiate,
51007 # then the envvar interface is used.  Set only those that are not.
51008 # We use the long form for the default assignment because of an extremely
51009 # bizarre bug on SunOS 4.1.3.
51010 if $ac_need_defaults; then
51011   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51012   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51013   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51014 fi
51015
51016 # Have a temporary directory for convenience.  Make it in the build tree
51017 # simply because there is no reason to put it here, and in addition,
51018 # creating and moving files from /tmp can sometimes cause problems.
51019 # Create a temporary directory, and hook for its removal unless debugging.
51020 $debug ||
51021 {
51022   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51023   trap '{ (exit 1); exit 1; }' 1 2 13 15
51024 }
51025
51026 # Create a (secure) tmp directory for tmp files.
51027
51028 {
51029   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51030   test -n "$tmp" && test -d "$tmp"
51031 }  ||
51032 {
51033   tmp=./confstat$$-$RANDOM
51034   (umask 077 && mkdir $tmp)
51035 } ||
51036 {
51037    echo "$me: cannot create a temporary directory in ." >&2
51038    { (exit 1); exit 1; }
51039 }
51040
51041 _ACEOF
51042
51043 cat >>$CONFIG_STATUS <<_ACEOF
51044
51045 #
51046 # CONFIG_FILES section.
51047 #
51048
51049 # No need to generate the scripts if there are no CONFIG_FILES.
51050 # This happens for instance when ./config.status config.h
51051 if test -n "\$CONFIG_FILES"; then
51052   # Protect against being on the right side of a sed subst in config.status.
51053   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51054    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51055 s,@SHELL@,$SHELL,;t t
51056 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51057 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51058 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51059 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51060 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51061 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51062 s,@exec_prefix@,$exec_prefix,;t t
51063 s,@prefix@,$prefix,;t t
51064 s,@program_transform_name@,$program_transform_name,;t t
51065 s,@bindir@,$bindir,;t t
51066 s,@sbindir@,$sbindir,;t t
51067 s,@libexecdir@,$libexecdir,;t t
51068 s,@datadir@,$datadir,;t t
51069 s,@sysconfdir@,$sysconfdir,;t t
51070 s,@sharedstatedir@,$sharedstatedir,;t t
51071 s,@localstatedir@,$localstatedir,;t t
51072 s,@libdir@,$libdir,;t t
51073 s,@includedir@,$includedir,;t t
51074 s,@oldincludedir@,$oldincludedir,;t t
51075 s,@infodir@,$infodir,;t t
51076 s,@mandir@,$mandir,;t t
51077 s,@build_alias@,$build_alias,;t t
51078 s,@host_alias@,$host_alias,;t t
51079 s,@target_alias@,$target_alias,;t t
51080 s,@DEFS@,$DEFS,;t t
51081 s,@ECHO_C@,$ECHO_C,;t t
51082 s,@ECHO_N@,$ECHO_N,;t t
51083 s,@ECHO_T@,$ECHO_T,;t t
51084 s,@LIBS@,$LIBS,;t t
51085 s,@build@,$build,;t t
51086 s,@build_cpu@,$build_cpu,;t t
51087 s,@build_vendor@,$build_vendor,;t t
51088 s,@build_os@,$build_os,;t t
51089 s,@host@,$host,;t t
51090 s,@host_cpu@,$host_cpu,;t t
51091 s,@host_vendor@,$host_vendor,;t t
51092 s,@host_os@,$host_os,;t t
51093 s,@target@,$target,;t t
51094 s,@target_cpu@,$target_cpu,;t t
51095 s,@target_vendor@,$target_vendor,;t t
51096 s,@target_os@,$target_os,;t t
51097 s,@CC@,$CC,;t t
51098 s,@CFLAGS@,$CFLAGS,;t t
51099 s,@LDFLAGS@,$LDFLAGS,;t t
51100 s,@CPPFLAGS@,$CPPFLAGS,;t t
51101 s,@ac_ct_CC@,$ac_ct_CC,;t t
51102 s,@EXEEXT@,$EXEEXT,;t t
51103 s,@OBJEXT@,$OBJEXT,;t t
51104 s,@CPP@,$CPP,;t t
51105 s,@EGREP@,$EGREP,;t t
51106 s,@CXX@,$CXX,;t t
51107 s,@CXXFLAGS@,$CXXFLAGS,;t t
51108 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51109 s,@RANLIB@,$RANLIB,;t t
51110 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51111 s,@AR@,$AR,;t t
51112 s,@ac_ct_AR@,$ac_ct_AR,;t t
51113 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51114 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51115 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51116 s,@STRIP@,$STRIP,;t t
51117 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51118 s,@WINDRES@,$WINDRES,;t t
51119 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
51120 s,@DLLTOOL@,$DLLTOOL,;t t
51121 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51122 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51123 s,@LN_S@,$LN_S,;t t
51124 s,@CXXCPP@,$CXXCPP,;t t
51125 s,@subdirs@,$subdirs,;t t
51126 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51127 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51128 s,@GTK_LIBS@,$GTK_LIBS,;t t
51129 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
51130 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51131 s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51132 s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
51133 s,@X_CFLAGS@,$X_CFLAGS,;t t
51134 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51135 s,@X_LIBS@,$X_LIBS,;t t
51136 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51137 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51138 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
51139 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51140 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
51141 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51142 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
51143 s,@REZ@,$REZ,;t t
51144 s,@DEREZ@,$DEREZ,;t t
51145 s,@SETFILE@,$SETFILE,;t t
51146 s,@LIBICONV@,$LIBICONV,;t t
51147 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51148 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51149 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51150 s,@SDL_LIBS@,$SDL_LIBS,;t t
51151 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51152 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
51153 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51154 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
51155 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51156 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
51157 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51158 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
51159 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51160 s,@GST_LIBS@,$GST_LIBS,;t t
51161 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51162 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51163 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51164 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51165 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51166 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51167 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51168 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51169 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51170 s,@VENDOR@,$VENDOR,;t t
51171 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
51172 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51173 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
51174 s,@WXUNIV@,$WXUNIV,;t t
51175 s,@MONOLITHIC@,$MONOLITHIC,;t t
51176 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51177 s,@EXTRALIBS@,$EXTRALIBS,;t t
51178 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51179 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51180 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51181 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51182 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51183 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51184 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
51185 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
51186 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
51187 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
51188 s,@UNICODE@,$UNICODE,;t t
51189 s,@BUILD@,$BUILD,;t t
51190 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51191 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
51192 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51193 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51194 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51195 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51196 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51197 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51198 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51199 s,@SET_MAKE@,$SET_MAKE,;t t
51200 s,@MAKE_SET@,$MAKE_SET,;t t
51201 s,@NM@,$NM,;t t
51202 s,@ac_ct_NM@,$ac_ct_NM,;t t
51203 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51204 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51205 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51206 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51207 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51208 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
51209 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
51210 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51211 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
51212 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
51213 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51214 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51215 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51216 s,@LIBPREFIX@,$LIBPREFIX,;t t
51217 s,@LIBEXT@,$LIBEXT,;t t
51218 s,@DLLPREFIX@,$DLLPREFIX,;t t
51219 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
51220 s,@dlldir@,$dlldir,;t t
51221 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51222 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51223 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51224 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51225 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51226 s,@PIC_FLAG@,$PIC_FLAG,;t t
51227 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
51228 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51229 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51230 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
51231 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
51232 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51233 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51234 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51235 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51236 s,@GCC_PCH@,$GCC_PCH,;t t
51237 s,@ICC_PCH@,$ICC_PCH,;t t
51238 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51239 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51240 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51241 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51242 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51243 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51244 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51245 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51246 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51247 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51248 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51249 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51250 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51251 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51252 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
51253 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
51254 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51255 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
51256 s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
51257 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
51258 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
51259 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
51260 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
51261 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
51262 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
51263 s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
51264 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
51265 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
51266 s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
51267 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
51268 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
51269 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
51270 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
51271 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
51272 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
51273 s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
51274 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
51275 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
51276 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51277 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51278 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51279 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51280 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51281 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
51282 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
51283 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51284 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
51285 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
51286 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51287 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51288 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
51289 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
51290 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51291 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51292 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
51293 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51294 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
51295 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
51296 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
51297 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
51298 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
51299 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51300 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51301 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51302 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51303 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51304 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51305 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51306 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
51307 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51308 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51309 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
51310 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51311 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51312 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51313 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
51314 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
51315 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51316 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51317 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51318 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51319 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51320 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
51321 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
51322 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
51323 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
51324 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
51325 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
51326 s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51327 s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
51328 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
51329 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51330 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51331 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51332 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51333 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51334 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
51335 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
51336 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51337 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51338 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51339 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51340 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51341 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51342 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51343 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51344 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51345 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51346 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
51347 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
51348 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51349 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51350 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
51351 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51352 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51353 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
51354 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
51355 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51356 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51357 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51358 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51359 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51360 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51361 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51362 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51363 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51364 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51365 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51366 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
51367 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51368 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
51369 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
51370 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
51371 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51372 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
51373 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
51374 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
51375 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51376 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51377 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
51378 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51379 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
51380 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
51381 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
51382 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
51383 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
51384 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51385 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51386 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51387 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51388 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51389 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51390 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51391 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
51392 s,@SHARED@,$SHARED,;t t
51393 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51394 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
51395 s,@USE_GUI@,$USE_GUI,;t t
51396 s,@AFMINSTALL@,$AFMINSTALL,;t t
51397 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51398 s,@TOOLKIT@,$TOOLKIT,;t t
51399 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
51400 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
51401 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
51402 s,@cross_compiling@,$cross_compiling,;t t
51403 s,@WIDGET_SET@,$WIDGET_SET,;t t
51404 s,@WX_RELEASE@,$WX_RELEASE,;t t
51405 s,@WX_VERSION@,$WX_VERSION,;t t
51406 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51407 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51408 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
51409 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51410 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51411 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51412 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
51413 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51414 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
51415 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
51416 s,@EXE_LINKER@,$EXE_LINKER,;t t
51417 s,@GUIDIST@,$GUIDIST,;t t
51418 s,@DISTDIR@,$DISTDIR,;t t
51419 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51420 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
51421 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51422 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51423 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
51424 s,@RESCOMP@,$RESCOMP,;t t
51425 s,@RESFLAGS@,$RESFLAGS,;t t
51426 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51427 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51428 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51429 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
51430 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
51431 s,@MACSETFILE@,$MACSETFILE,;t t
51432 s,@GCC@,$GCC,;t t
51433 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51434 s,@LIBOBJS@,$LIBOBJS,;t t
51435 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51436 CEOF
51437
51438 _ACEOF
51439
51440   cat >>$CONFIG_STATUS <<\_ACEOF
51441   # Split the substitutions into bite-sized pieces for seds with
51442   # small command number limits, like on Digital OSF/1 and HP-UX.
51443   ac_max_sed_lines=48
51444   ac_sed_frag=1 # Number of current file.
51445   ac_beg=1 # First line for current file.
51446   ac_end=$ac_max_sed_lines # Line after last line for current file.
51447   ac_more_lines=:
51448   ac_sed_cmds=
51449   while $ac_more_lines; do
51450     if test $ac_beg -gt 1; then
51451       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51452     else
51453       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51454     fi
51455     if test ! -s $tmp/subs.frag; then
51456       ac_more_lines=false
51457     else
51458       # The purpose of the label and of the branching condition is to
51459       # speed up the sed processing (if there are no `@' at all, there
51460       # is no need to browse any of the substitutions).
51461       # These are the two extra sed commands mentioned above.
51462       (echo ':t
51463   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51464       if test -z "$ac_sed_cmds"; then
51465         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
51466       else
51467         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
51468       fi
51469       ac_sed_frag=`expr $ac_sed_frag + 1`
51470       ac_beg=$ac_end
51471       ac_end=`expr $ac_end + $ac_max_sed_lines`
51472     fi
51473   done
51474   if test -z "$ac_sed_cmds"; then
51475     ac_sed_cmds=cat
51476   fi
51477 fi # test -n "$CONFIG_FILES"
51478
51479 _ACEOF
51480 cat >>$CONFIG_STATUS <<\_ACEOF
51481 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51482   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51483   case $ac_file in
51484   - | *:- | *:-:* ) # input from stdin
51485         cat >$tmp/stdin
51486         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51487         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51488   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51489         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51490   * )   ac_file_in=$ac_file.in ;;
51491   esac
51492
51493   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51494   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51496          X"$ac_file" : 'X\(//\)[^/]' \| \
51497          X"$ac_file" : 'X\(//\)$' \| \
51498          X"$ac_file" : 'X\(/\)' \| \
51499          .     : '\(.\)' 2>/dev/null ||
51500 echo X"$ac_file" |
51501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51502           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51503           /^X\(\/\/\)$/{ s//\1/; q; }
51504           /^X\(\/\).*/{ s//\1/; q; }
51505           s/.*/./; q'`
51506   { if $as_mkdir_p; then
51507     mkdir -p "$ac_dir"
51508   else
51509     as_dir="$ac_dir"
51510     as_dirs=
51511     while test ! -d "$as_dir"; do
51512       as_dirs="$as_dir $as_dirs"
51513       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51515          X"$as_dir" : 'X\(//\)[^/]' \| \
51516          X"$as_dir" : 'X\(//\)$' \| \
51517          X"$as_dir" : 'X\(/\)' \| \
51518          .     : '\(.\)' 2>/dev/null ||
51519 echo X"$as_dir" |
51520     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51521           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51522           /^X\(\/\/\)$/{ s//\1/; q; }
51523           /^X\(\/\).*/{ s//\1/; q; }
51524           s/.*/./; q'`
51525     done
51526     test ! -n "$as_dirs" || mkdir $as_dirs
51527   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51529    { (exit 1); exit 1; }; }; }
51530
51531   ac_builddir=.
51532
51533 if test "$ac_dir" != .; then
51534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51535   # A "../" for each directory in $ac_dir_suffix.
51536   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51537 else
51538   ac_dir_suffix= ac_top_builddir=
51539 fi
51540
51541 case $srcdir in
51542   .)  # No --srcdir option.  We are building in place.
51543     ac_srcdir=.
51544     if test -z "$ac_top_builddir"; then
51545        ac_top_srcdir=.
51546     else
51547        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51548     fi ;;
51549   [\\/]* | ?:[\\/]* )  # Absolute path.
51550     ac_srcdir=$srcdir$ac_dir_suffix;
51551     ac_top_srcdir=$srcdir ;;
51552   *) # Relative path.
51553     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51554     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51555 esac
51556
51557 # Do not use `cd foo && pwd` to compute absolute paths, because
51558 # the directories may not exist.
51559 case `pwd` in
51560 .) ac_abs_builddir="$ac_dir";;
51561 *)
51562   case "$ac_dir" in
51563   .) ac_abs_builddir=`pwd`;;
51564   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51565   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51566   esac;;
51567 esac
51568 case $ac_abs_builddir in
51569 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51570 *)
51571   case ${ac_top_builddir}. in
51572   .) ac_abs_top_builddir=$ac_abs_builddir;;
51573   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51574   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51575   esac;;
51576 esac
51577 case $ac_abs_builddir in
51578 .) ac_abs_srcdir=$ac_srcdir;;
51579 *)
51580   case $ac_srcdir in
51581   .) ac_abs_srcdir=$ac_abs_builddir;;
51582   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51583   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51584   esac;;
51585 esac
51586 case $ac_abs_builddir in
51587 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51588 *)
51589   case $ac_top_srcdir in
51590   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51591   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51592   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51593   esac;;
51594 esac
51595
51596
51597   case $INSTALL in
51598   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51599   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51600   esac
51601
51602   if test x"$ac_file" != x-; then
51603     { echo "$as_me:$LINENO: creating $ac_file" >&5
51604 echo "$as_me: creating $ac_file" >&6;}
51605     rm -f "$ac_file"
51606   fi
51607   # Let's still pretend it is `configure' which instantiates (i.e., don't
51608   # use $as_me), people would be surprised to read:
51609   #    /* config.h.  Generated by config.status.  */
51610   if test x"$ac_file" = x-; then
51611     configure_input=
51612   else
51613     configure_input="$ac_file.  "
51614   fi
51615   configure_input=$configure_input"Generated from `echo $ac_file_in |
51616                                      sed 's,.*/,,'` by configure."
51617
51618   # First look for the input files in the build tree, otherwise in the
51619   # src tree.
51620   ac_file_inputs=`IFS=:
51621     for f in $ac_file_in; do
51622       case $f in
51623       -) echo $tmp/stdin ;;
51624       [\\/$]*)
51625          # Absolute (can't be DOS-style, as IFS=:)
51626          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51627 echo "$as_me: error: cannot find input file: $f" >&2;}
51628    { (exit 1); exit 1; }; }
51629          echo "$f";;
51630       *) # Relative
51631          if test -f "$f"; then
51632            # Build tree
51633            echo "$f"
51634          elif test -f "$srcdir/$f"; then
51635            # Source tree
51636            echo "$srcdir/$f"
51637          else
51638            # /dev/null tree
51639            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51640 echo "$as_me: error: cannot find input file: $f" >&2;}
51641    { (exit 1); exit 1; }; }
51642          fi;;
51643       esac
51644     done` || { (exit 1); exit 1; }
51645 _ACEOF
51646 cat >>$CONFIG_STATUS <<_ACEOF
51647   sed "$ac_vpsub
51648 $extrasub
51649 _ACEOF
51650 cat >>$CONFIG_STATUS <<\_ACEOF
51651 :t
51652 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51653 s,@configure_input@,$configure_input,;t t
51654 s,@srcdir@,$ac_srcdir,;t t
51655 s,@abs_srcdir@,$ac_abs_srcdir,;t t
51656 s,@top_srcdir@,$ac_top_srcdir,;t t
51657 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51658 s,@builddir@,$ac_builddir,;t t
51659 s,@abs_builddir@,$ac_abs_builddir,;t t
51660 s,@top_builddir@,$ac_top_builddir,;t t
51661 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51662 s,@INSTALL@,$ac_INSTALL,;t t
51663 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51664   rm -f $tmp/stdin
51665   if test x"$ac_file" != x-; then
51666     mv $tmp/out $ac_file
51667   else
51668     cat $tmp/out
51669     rm -f $tmp/out
51670   fi
51671
51672   # Run the commands associated with the file.
51673   case $ac_file in
51674     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
51675     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
51676   esac
51677 done
51678 _ACEOF
51679 cat >>$CONFIG_STATUS <<\_ACEOF
51680
51681 #
51682 # CONFIG_HEADER section.
51683 #
51684
51685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
51687 #
51688 # ac_d sets the value in "#define NAME VALUE" lines.
51689 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
51690 ac_dB='[         ].*$,\1#\2'
51691 ac_dC=' '
51692 ac_dD=',;t'
51693 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
51694 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
51695 ac_uB='$,\1#\2define\3'
51696 ac_uC=' '
51697 ac_uD=',;t'
51698
51699 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51700   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51701   case $ac_file in
51702   - | *:- | *:-:* ) # input from stdin
51703         cat >$tmp/stdin
51704         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51705         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51706   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51707         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51708   * )   ac_file_in=$ac_file.in ;;
51709   esac
51710
51711   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51712 echo "$as_me: creating $ac_file" >&6;}
51713
51714   # First look for the input files in the build tree, otherwise in the
51715   # src tree.
51716   ac_file_inputs=`IFS=:
51717     for f in $ac_file_in; do
51718       case $f in
51719       -) echo $tmp/stdin ;;
51720       [\\/$]*)
51721          # Absolute (can't be DOS-style, as IFS=:)
51722          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51723 echo "$as_me: error: cannot find input file: $f" >&2;}
51724    { (exit 1); exit 1; }; }
51725          # Do quote $f, to prevent DOS paths from being IFS'd.
51726          echo "$f";;
51727       *) # Relative
51728          if test -f "$f"; then
51729            # Build tree
51730            echo "$f"
51731          elif test -f "$srcdir/$f"; then
51732            # Source tree
51733            echo "$srcdir/$f"
51734          else
51735            # /dev/null tree
51736            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51737 echo "$as_me: error: cannot find input file: $f" >&2;}
51738    { (exit 1); exit 1; }; }
51739          fi;;
51740       esac
51741     done` || { (exit 1); exit 1; }
51742   # Remove the trailing spaces.
51743   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
51744
51745 _ACEOF
51746
51747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
51748 # `conftest.undefs', that substitutes the proper values into
51749 # config.h.in to produce config.h.  The first handles `#define'
51750 # templates, and the second `#undef' templates.
51751 # And first: Protect against being on the right side of a sed subst in
51752 # config.status.  Protect against being in an unquoted here document
51753 # in config.status.
51754 rm -f conftest.defines conftest.undefs
51755 # Using a here document instead of a string reduces the quoting nightmare.
51756 # Putting comments in sed scripts is not portable.
51757 #
51758 # `end' is used to avoid that the second main sed command (meant for
51759 # 0-ary CPP macros) applies to n-ary macro definitions.
51760 # See the Autoconf documentation for `clear'.
51761 cat >confdef2sed.sed <<\_ACEOF
51762 s/[\\&,]/\\&/g
51763 s,[\\$`],\\&,g
51764 t clear
51765 : clear
51766 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
51767 t end
51768 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
51769 : end
51770 _ACEOF
51771 # If some macros were called several times there might be several times
51772 # the same #defines, which is useless.  Nevertheless, we may not want to
51773 # sort them, since we want the *last* AC-DEFINE to be honored.
51774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51776 rm -f confdef2sed.sed
51777
51778 # This sed command replaces #undef with comments.  This is necessary, for
51779 # example, in the case of _POSIX_SOURCE, which is predefined and required
51780 # on some systems where configure will not decide to define it.
51781 cat >>conftest.undefs <<\_ACEOF
51782 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
51783 _ACEOF
51784
51785 # Break up conftest.defines because some shells have a limit on the size
51786 # of here documents, and old seds have small limits too (100 cmds).
51787 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
51788 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
51789 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51790 echo '  :' >>$CONFIG_STATUS
51791 rm -f conftest.tail
51792 while grep . conftest.defines >/dev/null
51793 do
51794   # Write a limited-size here document to $tmp/defines.sed.
51795   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51796   # Speed up: don't consider the non `#define' lines.
51797   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
51798   # Work around the forget-to-reset-the-flag bug.
51799   echo 't clr' >>$CONFIG_STATUS
51800   echo ': clr' >>$CONFIG_STATUS
51801   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51802   echo 'CEOF
51803   sed -f $tmp/defines.sed $tmp/in >$tmp/out
51804   rm -f $tmp/in
51805   mv $tmp/out $tmp/in
51806 ' >>$CONFIG_STATUS
51807   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51808   rm -f conftest.defines
51809   mv conftest.tail conftest.defines
51810 done
51811 rm -f conftest.defines
51812 echo '  fi # grep' >>$CONFIG_STATUS
51813 echo >>$CONFIG_STATUS
51814
51815 # Break up conftest.undefs because some shells have a limit on the size
51816 # of here documents, and old seds have small limits too (100 cmds).
51817 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
51818 rm -f conftest.tail
51819 while grep . conftest.undefs >/dev/null
51820 do
51821   # Write a limited-size here document to $tmp/undefs.sed.
51822   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51823   # Speed up: don't consider the non `#undef'
51824   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
51825   # Work around the forget-to-reset-the-flag bug.
51826   echo 't clr' >>$CONFIG_STATUS
51827   echo ': clr' >>$CONFIG_STATUS
51828   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51829   echo 'CEOF
51830   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51831   rm -f $tmp/in
51832   mv $tmp/out $tmp/in
51833 ' >>$CONFIG_STATUS
51834   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51835   rm -f conftest.undefs
51836   mv conftest.tail conftest.undefs
51837 done
51838 rm -f conftest.undefs
51839
51840 cat >>$CONFIG_STATUS <<\_ACEOF
51841   # Let's still pretend it is `configure' which instantiates (i.e., don't
51842   # use $as_me), people would be surprised to read:
51843   #    /* config.h.  Generated by config.status.  */
51844   if test x"$ac_file" = x-; then
51845     echo "/* Generated by configure.  */" >$tmp/config.h
51846   else
51847     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
51848   fi
51849   cat $tmp/in >>$tmp/config.h
51850   rm -f $tmp/in
51851   if test x"$ac_file" != x-; then
51852     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51853       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51854 echo "$as_me: $ac_file is unchanged" >&6;}
51855     else
51856       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51858          X"$ac_file" : 'X\(//\)[^/]' \| \
51859          X"$ac_file" : 'X\(//\)$' \| \
51860          X"$ac_file" : 'X\(/\)' \| \
51861          .     : '\(.\)' 2>/dev/null ||
51862 echo X"$ac_file" |
51863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51865           /^X\(\/\/\)$/{ s//\1/; q; }
51866           /^X\(\/\).*/{ s//\1/; q; }
51867           s/.*/./; q'`
51868       { if $as_mkdir_p; then
51869     mkdir -p "$ac_dir"
51870   else
51871     as_dir="$ac_dir"
51872     as_dirs=
51873     while test ! -d "$as_dir"; do
51874       as_dirs="$as_dir $as_dirs"
51875       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51877          X"$as_dir" : 'X\(//\)[^/]' \| \
51878          X"$as_dir" : 'X\(//\)$' \| \
51879          X"$as_dir" : 'X\(/\)' \| \
51880          .     : '\(.\)' 2>/dev/null ||
51881 echo X"$as_dir" |
51882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51884           /^X\(\/\/\)$/{ s//\1/; q; }
51885           /^X\(\/\).*/{ s//\1/; q; }
51886           s/.*/./; q'`
51887     done
51888     test ! -n "$as_dirs" || mkdir $as_dirs
51889   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51891    { (exit 1); exit 1; }; }; }
51892
51893       rm -f $ac_file
51894       mv $tmp/config.h $ac_file
51895     fi
51896   else
51897     cat $tmp/config.h
51898     rm -f $tmp/config.h
51899   fi
51900 done
51901 _ACEOF
51902 cat >>$CONFIG_STATUS <<\_ACEOF
51903
51904 #
51905 # CONFIG_COMMANDS section.
51906 #
51907 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51908   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51909   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51910   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51912          X"$ac_dest" : 'X\(//\)[^/]' \| \
51913          X"$ac_dest" : 'X\(//\)$' \| \
51914          X"$ac_dest" : 'X\(/\)' \| \
51915          .     : '\(.\)' 2>/dev/null ||
51916 echo X"$ac_dest" |
51917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51919           /^X\(\/\/\)$/{ s//\1/; q; }
51920           /^X\(\/\).*/{ s//\1/; q; }
51921           s/.*/./; q'`
51922   { if $as_mkdir_p; then
51923     mkdir -p "$ac_dir"
51924   else
51925     as_dir="$ac_dir"
51926     as_dirs=
51927     while test ! -d "$as_dir"; do
51928       as_dirs="$as_dir $as_dirs"
51929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51931          X"$as_dir" : 'X\(//\)[^/]' \| \
51932          X"$as_dir" : 'X\(//\)$' \| \
51933          X"$as_dir" : 'X\(/\)' \| \
51934          .     : '\(.\)' 2>/dev/null ||
51935 echo X"$as_dir" |
51936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51938           /^X\(\/\/\)$/{ s//\1/; q; }
51939           /^X\(\/\).*/{ s//\1/; q; }
51940           s/.*/./; q'`
51941     done
51942     test ! -n "$as_dirs" || mkdir $as_dirs
51943   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51945    { (exit 1); exit 1; }; }; }
51946
51947   ac_builddir=.
51948
51949 if test "$ac_dir" != .; then
51950   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51951   # A "../" for each directory in $ac_dir_suffix.
51952   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51953 else
51954   ac_dir_suffix= ac_top_builddir=
51955 fi
51956
51957 case $srcdir in
51958   .)  # No --srcdir option.  We are building in place.
51959     ac_srcdir=.
51960     if test -z "$ac_top_builddir"; then
51961        ac_top_srcdir=.
51962     else
51963        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51964     fi ;;
51965   [\\/]* | ?:[\\/]* )  # Absolute path.
51966     ac_srcdir=$srcdir$ac_dir_suffix;
51967     ac_top_srcdir=$srcdir ;;
51968   *) # Relative path.
51969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51971 esac
51972
51973 # Do not use `cd foo && pwd` to compute absolute paths, because
51974 # the directories may not exist.
51975 case `pwd` in
51976 .) ac_abs_builddir="$ac_dir";;
51977 *)
51978   case "$ac_dir" in
51979   .) ac_abs_builddir=`pwd`;;
51980   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51981   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51982   esac;;
51983 esac
51984 case $ac_abs_builddir in
51985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51986 *)
51987   case ${ac_top_builddir}. in
51988   .) ac_abs_top_builddir=$ac_abs_builddir;;
51989   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51990   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51991   esac;;
51992 esac
51993 case $ac_abs_builddir in
51994 .) ac_abs_srcdir=$ac_srcdir;;
51995 *)
51996   case $ac_srcdir in
51997   .) ac_abs_srcdir=$ac_abs_builddir;;
51998   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51999   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52000   esac;;
52001 esac
52002 case $ac_abs_builddir in
52003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52004 *)
52005   case $ac_top_srcdir in
52006   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52007   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52008   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52009   esac;;
52010 esac
52011
52012
52013   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52014 echo "$as_me: executing $ac_dest commands" >&6;}
52015   case $ac_dest in
52016     rcdefs.h )
52017             mkdir -p $outdir &&
52018             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52019          ;;
52020     wx-config )  rm -f wx-config
52021                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52022                     ;;
52023   esac
52024 done
52025 _ACEOF
52026
52027 cat >>$CONFIG_STATUS <<\_ACEOF
52028
52029 { (exit 0); exit 0; }
52030 _ACEOF
52031 chmod +x $CONFIG_STATUS
52032 ac_clean_files=$ac_clean_files_save
52033
52034
52035 # configure is writing to config.log, and then calls config.status.
52036 # config.status does its own redirection, appending to config.log.
52037 # Unfortunately, on DOS this fails, as config.log is still kept open
52038 # by configure, so config.status won't be able to write to it; its
52039 # output is simply discarded.  So we exec the FD to /dev/null,
52040 # effectively closing config.log, so it can be properly (re)opened and
52041 # appended to by config.status.  When coming back to configure, we
52042 # need to make the FD available again.
52043 if test "$no_create" != yes; then
52044   ac_cs_success=:
52045   ac_config_status_args=
52046   test "$silent" = yes &&
52047     ac_config_status_args="$ac_config_status_args --quiet"
52048   exec 5>/dev/null
52049   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52050   exec 5>>config.log
52051   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52052   # would make configure fail if this is the last instruction.
52053   $ac_cs_success || { (exit 1); exit 1; }
52054 fi
52055
52056 #
52057 # CONFIG_SUBDIRS section.
52058 #
52059 if test "$no_recursion" != yes; then
52060
52061   # Remove --cache-file and --srcdir arguments so they do not pile up.
52062   ac_sub_configure_args=
52063   ac_prev=
52064   for ac_arg in $ac_configure_args; do
52065     if test -n "$ac_prev"; then
52066       ac_prev=
52067       continue
52068     fi
52069     case $ac_arg in
52070     -cache-file | --cache-file | --cache-fil | --cache-fi \
52071     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52072       ac_prev=cache_file ;;
52073     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52074     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52075     | --c=*)
52076       ;;
52077     --config-cache | -C)
52078       ;;
52079     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52080       ac_prev=srcdir ;;
52081     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52082       ;;
52083     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52084       ac_prev=prefix ;;
52085     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52086       ;;
52087     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52088     esac
52089   done
52090
52091   # Always prepend --prefix to ensure using the same prefix
52092   # in subdir configurations.
52093   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52094
52095   ac_popdir=`pwd`
52096   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52097
52098     # Do not complain, so a configure script can configure whichever
52099     # parts of a large source tree are present.
52100     test -d $srcdir/$ac_dir || continue
52101
52102     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52103 echo "$as_me: configuring in $ac_dir" >&6;}
52104     { if $as_mkdir_p; then
52105     mkdir -p "$ac_dir"
52106   else
52107     as_dir="$ac_dir"
52108     as_dirs=
52109     while test ! -d "$as_dir"; do
52110       as_dirs="$as_dir $as_dirs"
52111       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52113          X"$as_dir" : 'X\(//\)[^/]' \| \
52114          X"$as_dir" : 'X\(//\)$' \| \
52115          X"$as_dir" : 'X\(/\)' \| \
52116          .     : '\(.\)' 2>/dev/null ||
52117 echo X"$as_dir" |
52118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52120           /^X\(\/\/\)$/{ s//\1/; q; }
52121           /^X\(\/\).*/{ s//\1/; q; }
52122           s/.*/./; q'`
52123     done
52124     test ! -n "$as_dirs" || mkdir $as_dirs
52125   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52126 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52127    { (exit 1); exit 1; }; }; }
52128
52129     ac_builddir=.
52130
52131 if test "$ac_dir" != .; then
52132   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52133   # A "../" for each directory in $ac_dir_suffix.
52134   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52135 else
52136   ac_dir_suffix= ac_top_builddir=
52137 fi
52138
52139 case $srcdir in
52140   .)  # No --srcdir option.  We are building in place.
52141     ac_srcdir=.
52142     if test -z "$ac_top_builddir"; then
52143        ac_top_srcdir=.
52144     else
52145        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52146     fi ;;
52147   [\\/]* | ?:[\\/]* )  # Absolute path.
52148     ac_srcdir=$srcdir$ac_dir_suffix;
52149     ac_top_srcdir=$srcdir ;;
52150   *) # Relative path.
52151     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52152     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52153 esac
52154
52155 # Do not use `cd foo && pwd` to compute absolute paths, because
52156 # the directories may not exist.
52157 case `pwd` in
52158 .) ac_abs_builddir="$ac_dir";;
52159 *)
52160   case "$ac_dir" in
52161   .) ac_abs_builddir=`pwd`;;
52162   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52163   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52164   esac;;
52165 esac
52166 case $ac_abs_builddir in
52167 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52168 *)
52169   case ${ac_top_builddir}. in
52170   .) ac_abs_top_builddir=$ac_abs_builddir;;
52171   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52172   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52173   esac;;
52174 esac
52175 case $ac_abs_builddir in
52176 .) ac_abs_srcdir=$ac_srcdir;;
52177 *)
52178   case $ac_srcdir in
52179   .) ac_abs_srcdir=$ac_abs_builddir;;
52180   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52181   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52182   esac;;
52183 esac
52184 case $ac_abs_builddir in
52185 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52186 *)
52187   case $ac_top_srcdir in
52188   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52189   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52190   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52191   esac;;
52192 esac
52193
52194
52195     cd $ac_dir
52196
52197     # Check for guested configure; otherwise get Cygnus style configure.
52198     if test -f $ac_srcdir/configure.gnu; then
52199       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52200     elif test -f $ac_srcdir/configure; then
52201       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52202     elif test -f $ac_srcdir/configure.in; then
52203       ac_sub_configure=$ac_configure
52204     else
52205       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52206 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52207       ac_sub_configure=
52208     fi
52209
52210     # The recursion is here.
52211     if test -n "$ac_sub_configure"; then
52212       # Make the cache file name correct relative to the subdirectory.
52213       case $cache_file in
52214       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52215       *) # Relative path.
52216         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
52217       esac
52218
52219       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52220 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52221       # The eval makes quoting arguments work.
52222       eval $ac_sub_configure $ac_sub_configure_args \
52223            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52224         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52225 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52226    { (exit 1); exit 1; }; }
52227     fi
52228
52229     cd $ac_popdir
52230   done
52231 fi
52232
52233
52234 echo
52235 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52236 echo ""
52237 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52238 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52239
52240 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52241 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52242 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
52243
52244 echo "  What level of wxWidgets compatibility should be enabled?"
52245 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
52246 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
52247
52248 echo "  Which libraries should wxWidgets use?"
52249 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52250 echo "                                       png                ${wxUSE_LIBPNG-none}"
52251 echo "                                       regex              ${wxUSE_REGEX}"
52252 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52253 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52254 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52255 fi
52256 echo "                                       zlib               ${wxUSE_ZLIB}"
52257 echo "                                       odbc               ${wxUSE_ODBC}"
52258 echo "                                       expat              ${wxUSE_EXPAT}"
52259 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52260 echo "                                       sdl                ${wxUSE_LIBSDL}"
52261
52262 echo ""
52263