why was using std::string and streams disabled by default for mingw32 and cygwin...
[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=2
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   ;;
2074
2075   *-pc-msdosdjgpp )
2076     USE_UNIX=0
2077     USE_DOS=1
2078     cat >>confdefs.h <<\_ACEOF
2079 #define __DOS__ 1
2080 _ACEOF
2081
2082     PROGRAM_EXT=".exe"
2083     DEFAULT_DEFAULT_wxUSE_MGL=1
2084   ;;
2085
2086   *-pc-os2_emx | *-pc-os2-emx )
2087     cat >>confdefs.h <<\_ACEOF
2088 #define __EMX__ 1
2089 _ACEOF
2090
2091     USE_OS2=1
2092     cat >>confdefs.h <<\_ACEOF
2093 #define __OS2__ 1
2094 _ACEOF
2095
2096     PROGRAM_EXT=".exe"
2097     DEFAULT_DEFAULT_wxUSE_PM=1
2098         CXX=gcc
2099     LDFLAGS="$LDFLAGS -Zcrtdll"
2100                         ac_executable_extensions=".exe"
2101     export ac_executable_extensions
2102             ac_save_IFS="$IFS"
2103     IFS='\\'
2104     ac_TEMP_PATH=
2105     for ac_dir in $PATH; do
2106       IFS=$ac_save_IFS
2107       if test -z "$ac_TEMP_PATH"; then
2108         ac_TEMP_PATH="$ac_dir"
2109       else
2110         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2111       fi
2112     done
2113     export PATH="$ac_TEMP_PATH"
2114     unset ac_TEMP_PATH
2115     DEFAULT_STD_FLAG=no
2116   ;;
2117
2118   *-*-darwin* )
2119         USE_BSD=1
2120     USE_DARWIN=1
2121     SO_SUFFIX=dylib
2122     cat >>confdefs.h <<\_ACEOF
2123 #define __BSD__ 1
2124 _ACEOF
2125
2126     cat >>confdefs.h <<\_ACEOF
2127 #define __DARWIN__ 1
2128 _ACEOF
2129
2130     cat >>confdefs.h <<\_ACEOF
2131 #define TARGET_CARBON 1
2132 _ACEOF
2133
2134     DEFAULT_DEFAULT_wxUSE_MAC=1
2135     DEFAULT_STD_FLAG=no
2136   ;;
2137   powerpc-apple-macos* )
2138         USE_UNIX=0
2139             ac_cv_c_bigendian=yes
2140     SO_SUFFIX=shlib
2141             DEFAULT_DEFAULT_wxUSE_MAC=1
2142     DEFAULT_STD_FLAG=no
2143   ;;
2144
2145   *-*-beos* )
2146         USE_BEOS=1
2147     cat >>confdefs.h <<\_ACEOF
2148 #define __BEOS__ 1
2149 _ACEOF
2150
2151   ;;
2152
2153   *)
2154     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2155 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2156     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2157 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2158
2159     DEFAULT_DEFAULT_wxUSE_X11=1
2160     DEFAULT_wxUSE_SHARED=no
2161 esac
2162
2163
2164
2165
2166           wx_arg_cache_file="configarg.cache"
2167           echo "loading argument cache $wx_arg_cache_file"
2168           rm -f ${wx_arg_cache_file}.tmp
2169           touch ${wx_arg_cache_file}.tmp
2170           touch ${wx_arg_cache_file}
2171
2172
2173 DEBUG_CONFIGURE=0
2174 if test $DEBUG_CONFIGURE = 1; then
2175   DEFAULT_wxUSE_UNIVERSAL=no
2176   DEFAULT_wxUSE_STL=no
2177
2178   DEFAULT_wxUSE_NANOX=no
2179
2180   DEFAULT_wxUSE_THREADS=yes
2181
2182   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2183   DEFAULT_wxUSE_OPTIMISE=no
2184   DEFAULT_wxUSE_PROFILE=no
2185   DEFAULT_wxUSE_NO_DEPS=no
2186   DEFAULT_wxUSE_NO_RTTI=no
2187   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2188   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2189   DEFAULT_wxUSE_RPATH=yes
2190   DEFAULT_wxUSE_PERMISSIVE=no
2191   DEFAULT_wxUSE_DEBUG_FLAG=yes
2192   DEFAULT_wxUSE_DEBUG_INFO=yes
2193   DEFAULT_wxUSE_DEBUG_GDB=yes
2194   DEFAULT_wxUSE_MEM_TRACING=no
2195   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2196   DEFAULT_wxUSE_DMALLOC=no
2197   DEFAULT_wxUSE_APPLE_IEEE=no
2198
2199   DEFAULT_wxUSE_EXCEPTIONS=no
2200   DEFAULT_wxUSE_LOG=yes
2201   DEFAULT_wxUSE_LOGWINDOW=no
2202   DEFAULT_wxUSE_LOGGUI=no
2203   DEFAULT_wxUSE_LOGDIALOG=no
2204
2205   DEFAULT_wxUSE_GUI=yes
2206   DEFAULT_wxUSE_CONTROLS=no
2207
2208   DEFAULT_wxUSE_REGEX=no
2209   DEFAULT_wxUSE_XML=no
2210   DEFAULT_wxUSE_EXPAT=no
2211   DEFAULT_wxUSE_ZLIB=no
2212   DEFAULT_wxUSE_LIBPNG=no
2213   DEFAULT_wxUSE_LIBJPEG=no
2214   DEFAULT_wxUSE_LIBTIFF=no
2215   DEFAULT_wxUSE_LIBXPM=no
2216   DEFAULT_wxUSE_LIBMSPACK=no
2217   DEFAULT_wxUSE_LIBSDL=no
2218   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2219   DEFAULT_wxUSE_LIBGNOMEVFS=no
2220   DEFAULT_wxUSE_LIBHILDON=no
2221   DEFAULT_wxUSE_ODBC=no
2222   DEFAULT_wxUSE_OPENGL=no
2223
2224   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2225   DEFAULT_wxUSE_STACKWALKER=no
2226   DEFAULT_wxUSE_DEBUGREPORT=no
2227   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2228   DEFAULT_wxUSE_STD_IOSTREAM=no
2229   DEFAULT_wxUSE_STD_STRING=no
2230   DEFAULT_wxUSE_CMDLINE_PARSER=no
2231   DEFAULT_wxUSE_DATETIME=no
2232   DEFAULT_wxUSE_TIMER=no
2233   DEFAULT_wxUSE_STOPWATCH=no
2234   DEFAULT_wxUSE_FILE=no
2235   DEFAULT_wxUSE_FFILE=no
2236   DEFAULT_wxUSE_STDPATHS=no
2237   DEFAULT_wxUSE_TEXTBUFFER=no
2238   DEFAULT_wxUSE_TEXTFILE=no
2239   DEFAULT_wxUSE_SOUND=no
2240   DEFAULT_wxUSE_MEDIACTRL=no
2241   DEFAULT_wxUSE_GSTREAMER8=no
2242   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2243   DEFAULT_wxUSE_INTL=no
2244   DEFAULT_wxUSE_CONFIG=no
2245   DEFAULT_wxUSE_FONTMAP=no
2246   DEFAULT_wxUSE_STREAMS=no
2247   DEFAULT_wxUSE_SOCKETS=no
2248   DEFAULT_wxUSE_OLE=no
2249   DEFAULT_wxUSE_DATAOBJ=no
2250   DEFAULT_wxUSE_DIALUP_MANAGER=no
2251   DEFAULT_wxUSE_JOYSTICK=no
2252   DEFAULT_wxUSE_DYNLIB_CLASS=no
2253   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2254   DEFAULT_wxUSE_LONGLONG=no
2255   DEFAULT_wxUSE_GEOMETRY=no
2256
2257   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2258   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2259   DEFAULT_wxUSE_POSTSCRIPT=no
2260
2261   DEFAULT_wxUSE_CLIPBOARD=no
2262   DEFAULT_wxUSE_TOOLTIPS=no
2263   DEFAULT_wxUSE_DRAG_AND_DROP=no
2264   DEFAULT_wxUSE_DRAGIMAGE=no
2265   DEFAULT_wxUSE_SPLINES=no
2266   DEFAULT_wxUSE_MOUSEWHEEL=no
2267
2268   DEFAULT_wxUSE_MDI=no
2269   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2270   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2271   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2272
2273   DEFAULT_wxUSE_RESOURCES=no
2274   DEFAULT_wxUSE_CONSTRAINTS=no
2275   DEFAULT_wxUSE_IPC=no
2276   DEFAULT_wxUSE_HELP=no
2277   DEFAULT_wxUSE_MS_HTML_HELP=no
2278   DEFAULT_wxUSE_WXHTML_HELP=no
2279   DEFAULT_wxUSE_TREELAYOUT=no
2280   DEFAULT_wxUSE_METAFILE=no
2281   DEFAULT_wxUSE_MIMETYPE=no
2282   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2283   DEFAULT_wxUSE_PROTOCOL=no
2284   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2285   DEFAULT_wxUSE_PROTOCOL_FTP=no
2286   DEFAULT_wxUSE_PROTOCOL_FILE=no
2287   DEFAULT_wxUSE_URL=no
2288   DEFAULT_wxUSE_VARIANT=no
2289
2290   DEFAULT_wxUSE_ABOUTDLG=no
2291   DEFAULT_wxUSE_COMMONDLGS=no
2292   DEFAULT_wxUSE_CHOICEDLG=no
2293   DEFAULT_wxUSE_COLOURDLG=no
2294   DEFAULT_wxUSE_DIRDLG=no
2295   DEFAULT_wxUSE_FILEDLG=no
2296   DEFAULT_wxUSE_FINDREPLDLG=no
2297   DEFAULT_wxUSE_FONTDLG=no
2298   DEFAULT_wxUSE_MSGDLG=no
2299   DEFAULT_wxUSE_NUMBERDLG=no
2300   DEFAULT_wxUSE_TEXTDLG=no
2301   DEFAULT_wxUSE_SPLASH=no
2302   DEFAULT_wxUSE_STARTUP_TIPS=no
2303   DEFAULT_wxUSE_PROGRESSDLG=no
2304   DEFAULT_wxUSE_WIZARDDLG=no
2305
2306   DEFAULT_wxUSE_MENUS=no
2307   DEFAULT_wxUSE_MINIFRAME=no
2308   DEFAULT_wxUSE_HTML=no
2309   DEFAULT_wxUSE_RICHTEXT=no
2310   DEFAULT_wxUSE_XRC=no
2311   DEFAULT_wxUSE_AUI=no
2312   DEFAULT_wxUSE_WEBKIT=no
2313   DEFAULT_wxUSE_FILESYSTEM=no
2314   DEFAULT_wxUSE_FS_INET=no
2315   DEFAULT_wxUSE_FS_ZIP=no
2316   DEFAULT_wxUSE_BUSYINFO=no
2317   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2318   DEFAULT_wxUSE_ZIPSTREAM=no
2319   DEFAULT_wxUSE_VALIDATORS=no
2320
2321   DEFAULT_wxUSE_ACCEL=no
2322   DEFAULT_wxUSE_ANIMATIONCTRL=no
2323   DEFAULT_wxUSE_BUTTON=no
2324   DEFAULT_wxUSE_BMPBUTTON=no
2325   DEFAULT_wxUSE_BITMAPCOMBOBOX=no
2326   DEFAULT_wxUSE_CALCTRL=no
2327   DEFAULT_wxUSE_CARET=no
2328   DEFAULT_wxUSE_CHECKBOX=no
2329   DEFAULT_wxUSE_CHECKLST=no
2330   DEFAULT_wxUSE_CHOICE=no
2331   DEFAULT_wxUSE_CHOICEBOOK=no
2332   DEFAULT_wxUSE_COLOURPICKERCTRL=no
2333   DEFAULT_wxUSE_COMBOBOX=no
2334   DEFAULT_wxUSE_COMBOCTRL=no
2335   DEFAULT_wxUSE_DATEPICKCTRL=no
2336   DEFAULT_wxUSE_DISPLAY=no
2337   DEFAULT_wxUSE_DETECT_SM=no
2338   DEFAULT_wxUSE_DIRPICKERCTRL=no
2339   DEFAULT_wxUSE_FILEPICKERCTRL=no
2340   DEFAULT_wxUSE_FONTPICKERCTRL=no
2341   DEFAULT_wxUSE_GAUGE=no
2342   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2343   DEFAULT_wxUSE_GRID=no
2344   DEFAULT_wxUSE_HYPERLINKCTRL=no
2345   DEFAULT_wxUSE_DATAVIEWCTRL=no
2346   DEFAULT_wxUSE_IMAGLIST=no
2347   DEFAULT_wxUSE_LISTBOOK=no
2348   DEFAULT_wxUSE_LISTBOX=no
2349   DEFAULT_wxUSE_LISTCTRL=no
2350   DEFAULT_wxUSE_NOTEBOOK=no
2351   DEFAULT_wxUSE_ODCOMBOBOX=no
2352   DEFAULT_wxUSE_RADIOBOX=no
2353   DEFAULT_wxUSE_RADIOBTN=no
2354   DEFAULT_wxUSE_SASH=no
2355   DEFAULT_wxUSE_SCROLLBAR=no
2356   DEFAULT_wxUSE_SLIDER=no
2357   DEFAULT_wxUSE_SPINBTN=no
2358   DEFAULT_wxUSE_SPINCTRL=no
2359   DEFAULT_wxUSE_SPLITTER=no
2360   DEFAULT_wxUSE_STATBMP=no
2361   DEFAULT_wxUSE_STATBOX=no
2362   DEFAULT_wxUSE_STATLINE=no
2363   DEFAULT_wxUSE_STATTEXT=no
2364   DEFAULT_wxUSE_STATUSBAR=yes
2365   DEFAULT_wxUSE_TAB_DIALOG=no
2366   DEFAULT_wxUSE_TEXTCTRL=no
2367   DEFAULT_wxUSE_TOGGLEBTN=no
2368   DEFAULT_wxUSE_TOOLBAR=no
2369   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2370   DEFAULT_wxUSE_TREEBOOK=no
2371   DEFAULT_wxUSE_TOOLBOOK=no
2372   DEFAULT_wxUSE_TREECTRL=no
2373   DEFAULT_wxUSE_POPUPWIN=no
2374   DEFAULT_wxUSE_TIPWINDOW=no
2375
2376   DEFAULT_wxUSE_UNICODE=no
2377   DEFAULT_wxUSE_UNICODE_MSLU=no
2378   DEFAULT_wxUSE_WCSRTOMBS=no
2379
2380   DEFAULT_wxUSE_PALETTE=no
2381   DEFAULT_wxUSE_IMAGE=no
2382   DEFAULT_wxUSE_GIF=no
2383   DEFAULT_wxUSE_PCX=no
2384   DEFAULT_wxUSE_PNM=no
2385   DEFAULT_wxUSE_IFF=no
2386   DEFAULT_wxUSE_XPM=no
2387   DEFAULT_wxUSE_ICO_CUR=no
2388   DEFAULT_wxUSE_ACCESSIBILITY=no
2389
2390   DEFAULT_wxUSE_MONOLITHIC=no
2391   DEFAULT_wxUSE_PLUGINS=no
2392   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2393 else
2394   DEFAULT_wxUSE_UNIVERSAL=no
2395   DEFAULT_wxUSE_STL=no
2396
2397   DEFAULT_wxUSE_NANOX=no
2398
2399   DEFAULT_wxUSE_THREADS=yes
2400
2401   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2402   DEFAULT_wxUSE_OPTIMISE=yes
2403   DEFAULT_wxUSE_PROFILE=no
2404   DEFAULT_wxUSE_NO_DEPS=no
2405   DEFAULT_wxUSE_NO_RTTI=no
2406   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2407   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2408   DEFAULT_wxUSE_RPATH=yes
2409   DEFAULT_wxUSE_PERMISSIVE=no
2410   DEFAULT_wxUSE_DEBUG_FLAG=no
2411   DEFAULT_wxUSE_DEBUG_INFO=no
2412   DEFAULT_wxUSE_DEBUG_GDB=no
2413   DEFAULT_wxUSE_MEM_TRACING=no
2414   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2415   DEFAULT_wxUSE_DMALLOC=no
2416   DEFAULT_wxUSE_APPLE_IEEE=yes
2417
2418   DEFAULT_wxUSE_EXCEPTIONS=yes
2419   DEFAULT_wxUSE_LOG=yes
2420   DEFAULT_wxUSE_LOGWINDOW=yes
2421   DEFAULT_wxUSE_LOGGUI=yes
2422   DEFAULT_wxUSE_LOGDIALOG=yes
2423
2424   DEFAULT_wxUSE_GUI=yes
2425
2426   DEFAULT_wxUSE_REGEX=yes
2427   DEFAULT_wxUSE_XML=yes
2428   DEFAULT_wxUSE_EXPAT=yes
2429   DEFAULT_wxUSE_ZLIB=yes
2430   DEFAULT_wxUSE_LIBPNG=yes
2431   DEFAULT_wxUSE_LIBJPEG=yes
2432   DEFAULT_wxUSE_LIBTIFF=yes
2433   DEFAULT_wxUSE_LIBXPM=yes
2434   DEFAULT_wxUSE_LIBMSPACK=yes
2435   DEFAULT_wxUSE_LIBSDL=no
2436   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2437   DEFAULT_wxUSE_LIBGNOMEVFS=no
2438   DEFAULT_wxUSE_LIBHILDON=no
2439   DEFAULT_wxUSE_ODBC=no
2440   DEFAULT_wxUSE_OPENGL=no
2441
2442   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2443   DEFAULT_wxUSE_STACKWALKER=yes
2444   DEFAULT_wxUSE_DEBUGREPORT=yes
2445   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2446   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2447   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2448   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2449   DEFAULT_wxUSE_DATETIME=yes
2450   DEFAULT_wxUSE_TIMER=yes
2451   DEFAULT_wxUSE_STOPWATCH=yes
2452   DEFAULT_wxUSE_FILE=yes
2453   DEFAULT_wxUSE_FFILE=yes
2454   DEFAULT_wxUSE_STDPATHS=yes
2455   DEFAULT_wxUSE_TEXTBUFFER=yes
2456   DEFAULT_wxUSE_TEXTFILE=yes
2457   DEFAULT_wxUSE_SOUND=yes
2458   DEFAULT_wxUSE_MEDIACTRL=no
2459   DEFAULT_wxUSE_GSTREAMER8=no
2460   DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
2461   DEFAULT_wxUSE_INTL=yes
2462   DEFAULT_wxUSE_CONFIG=yes
2463   DEFAULT_wxUSE_FONTMAP=yes
2464   DEFAULT_wxUSE_STREAMS=yes
2465   DEFAULT_wxUSE_SOCKETS=yes
2466   DEFAULT_wxUSE_OLE=yes
2467   DEFAULT_wxUSE_DATAOBJ=yes
2468   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2469   DEFAULT_wxUSE_JOYSTICK=yes
2470   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2471   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2472   DEFAULT_wxUSE_LONGLONG=yes
2473   DEFAULT_wxUSE_GEOMETRY=yes
2474
2475   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2476   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2477   DEFAULT_wxUSE_POSTSCRIPT=yes
2478
2479   DEFAULT_wxUSE_CLIPBOARD=yes
2480   DEFAULT_wxUSE_TOOLTIPS=yes
2481   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2482   DEFAULT_wxUSE_DRAGIMAGE=yes
2483   DEFAULT_wxUSE_SPLINES=yes
2484   DEFAULT_wxUSE_MOUSEWHEEL=yes
2485
2486   DEFAULT_wxUSE_MDI=yes
2487   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2488   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2489   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2490
2491   DEFAULT_wxUSE_RESOURCES=no
2492   DEFAULT_wxUSE_CONSTRAINTS=yes
2493   DEFAULT_wxUSE_IPC=yes
2494   DEFAULT_wxUSE_HELP=yes
2495   DEFAULT_wxUSE_MS_HTML_HELP=yes
2496   DEFAULT_wxUSE_WXHTML_HELP=yes
2497   DEFAULT_wxUSE_TREELAYOUT=yes
2498   DEFAULT_wxUSE_METAFILE=yes
2499   DEFAULT_wxUSE_MIMETYPE=yes
2500   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2501   DEFAULT_wxUSE_PROTOCOL=yes
2502   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2503   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2504   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2505   DEFAULT_wxUSE_URL=yes
2506   DEFAULT_wxUSE_VARIANT=yes
2507
2508   DEFAULT_wxUSE_ABOUTDLG=yes
2509   DEFAULT_wxUSE_COMMONDLGS=yes
2510   DEFAULT_wxUSE_CHOICEDLG=yes
2511   DEFAULT_wxUSE_COLOURDLG=yes
2512   DEFAULT_wxUSE_DIRDLG=yes
2513   DEFAULT_wxUSE_FILEDLG=yes
2514   DEFAULT_wxUSE_FINDREPLDLG=yes
2515   DEFAULT_wxUSE_FONTDLG=yes
2516   DEFAULT_wxUSE_MSGDLG=yes
2517   DEFAULT_wxUSE_NUMBERDLG=yes
2518   DEFAULT_wxUSE_TEXTDLG=yes
2519   DEFAULT_wxUSE_SPLASH=yes
2520   DEFAULT_wxUSE_STARTUP_TIPS=yes
2521   DEFAULT_wxUSE_PROGRESSDLG=yes
2522   DEFAULT_wxUSE_WIZARDDLG=yes
2523
2524   DEFAULT_wxUSE_MENUS=yes
2525   DEFAULT_wxUSE_MINIFRAME=yes
2526   DEFAULT_wxUSE_HTML=yes
2527   DEFAULT_wxUSE_RICHTEXT=yes
2528   DEFAULT_wxUSE_XRC=yes
2529   DEFAULT_wxUSE_AUI=yes
2530   DEFAULT_wxUSE_WEBKIT=yes
2531   DEFAULT_wxUSE_FILESYSTEM=yes
2532   DEFAULT_wxUSE_FS_INET=yes
2533   DEFAULT_wxUSE_FS_ZIP=yes
2534   DEFAULT_wxUSE_BUSYINFO=yes
2535   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2536   DEFAULT_wxUSE_ZIPSTREAM=yes
2537   DEFAULT_wxUSE_VALIDATORS=yes
2538
2539   DEFAULT_wxUSE_ACCEL=yes
2540   DEFAULT_wxUSE_ANIMATIONCTRL=yes
2541   DEFAULT_wxUSE_BUTTON=yes
2542   DEFAULT_wxUSE_BMPBUTTON=yes
2543   DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
2544   DEFAULT_wxUSE_CALCTRL=yes
2545   DEFAULT_wxUSE_CARET=yes
2546   DEFAULT_wxUSE_CHECKBOX=yes
2547   DEFAULT_wxUSE_CHECKLST=yes
2548   DEFAULT_wxUSE_CHOICE=yes
2549   DEFAULT_wxUSE_CHOICEBOOK=yes
2550   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2551   DEFAULT_wxUSE_COMBOBOX=yes
2552   DEFAULT_wxUSE_COMBOCTRL=yes
2553   DEFAULT_wxUSE_DATEPICKCTRL=yes
2554   DEFAULT_wxUSE_DISPLAY=yes
2555   DEFAULT_wxUSE_DETECT_SM=yes
2556   DEFAULT_wxUSE_DIRPICKERCTRL=yes
2557   DEFAULT_wxUSE_FILEPICKERCTRL=yes
2558   DEFAULT_wxUSE_FONTPICKERCTRL=yes
2559   DEFAULT_wxUSE_GAUGE=yes
2560   DEFAULT_wxUSE_GRID=yes
2561   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2562   DEFAULT_wxUSE_HYPERLINKCTRL=yes
2563   DEFAULT_wxUSE_DATAVIEWCTRL=no
2564   DEFAULT_wxUSE_IMAGLIST=yes
2565   DEFAULT_wxUSE_LISTBOOK=yes
2566   DEFAULT_wxUSE_LISTBOX=yes
2567   DEFAULT_wxUSE_LISTCTRL=yes
2568   DEFAULT_wxUSE_NOTEBOOK=yes
2569   DEFAULT_wxUSE_ODCOMBOBOX=yes
2570   DEFAULT_wxUSE_RADIOBOX=yes
2571   DEFAULT_wxUSE_RADIOBTN=yes
2572   DEFAULT_wxUSE_SASH=yes
2573   DEFAULT_wxUSE_SCROLLBAR=yes
2574   DEFAULT_wxUSE_SLIDER=yes
2575   DEFAULT_wxUSE_SPINBTN=yes
2576   DEFAULT_wxUSE_SPINCTRL=yes
2577   DEFAULT_wxUSE_SPLITTER=yes
2578   DEFAULT_wxUSE_STATBMP=yes
2579   DEFAULT_wxUSE_STATBOX=yes
2580   DEFAULT_wxUSE_STATLINE=yes
2581   DEFAULT_wxUSE_STATTEXT=yes
2582   DEFAULT_wxUSE_STATUSBAR=yes
2583   DEFAULT_wxUSE_TAB_DIALOG=no
2584   DEFAULT_wxUSE_TEXTCTRL=yes
2585   DEFAULT_wxUSE_TOGGLEBTN=yes
2586   DEFAULT_wxUSE_TOOLBAR=yes
2587   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2588   DEFAULT_wxUSE_TREEBOOK=yes
2589   DEFAULT_wxUSE_TOOLBOOK=yes
2590   DEFAULT_wxUSE_TREECTRL=yes
2591   DEFAULT_wxUSE_POPUPWIN=yes
2592   DEFAULT_wxUSE_TIPWINDOW=yes
2593
2594   DEFAULT_wxUSE_UNICODE=no
2595   DEFAULT_wxUSE_UNICODE_MSLU=yes
2596   DEFAULT_wxUSE_WCSRTOMBS=no
2597
2598   DEFAULT_wxUSE_PALETTE=yes
2599   DEFAULT_wxUSE_IMAGE=yes
2600   DEFAULT_wxUSE_GIF=yes
2601   DEFAULT_wxUSE_PCX=yes
2602   DEFAULT_wxUSE_IFF=no
2603   DEFAULT_wxUSE_PNM=yes
2604   DEFAULT_wxUSE_XPM=yes
2605   DEFAULT_wxUSE_ICO_CUR=yes
2606   DEFAULT_wxUSE_ACCESSIBILITY=no
2607
2608   DEFAULT_wxUSE_MONOLITHIC=no
2609   DEFAULT_wxUSE_PLUGINS=no
2610   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2611
2612     DEFAULT_wxUSE_GTK2=yes
2613 fi
2614
2615
2616
2617
2618 for toolkit in `echo $ALL_TOOLKITS`; do
2619   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2620   if test "x$LINE" != "x" ; then
2621     has_toolkit_in_cache=1
2622     eval "DEFAULT_$LINE"
2623     eval "CACHE_$toolkit=1"
2624
2625     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2626     if test "x$LINE" != "x" ; then
2627         eval "DEFAULT_$LINE"
2628     fi
2629   fi
2630 done
2631
2632
2633
2634           enablestring=
2635           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2636 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2637           no_cache=0
2638           # Check whether --enable-gui or --disable-gui was given.
2639 if test "${enable_gui+set}" = set; then
2640   enableval="$enable_gui"
2641
2642                           if test "$enableval" = yes; then
2643                             ac_cv_use_gui='wxUSE_GUI=yes'
2644                           else
2645                             ac_cv_use_gui='wxUSE_GUI=no'
2646                           fi
2647
2648 else
2649
2650                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2651                           if test "x$LINE" != x ; then
2652                             eval "DEFAULT_$LINE"
2653                           else
2654                             no_cache=1
2655                           fi
2656
2657                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2658
2659 fi;
2660
2661           eval "$ac_cv_use_gui"
2662           if test "$no_cache" != 1; then
2663             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2664           fi
2665
2666           if test "$wxUSE_GUI" = yes; then
2667             echo "$as_me:$LINENO: result: yes" >&5
2668 echo "${ECHO_T}yes" >&6
2669           else
2670             echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6
2672           fi
2673
2674
2675           enablestring=
2676           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2677 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2678           no_cache=0
2679           # Check whether --enable-monolithic or --disable-monolithic was given.
2680 if test "${enable_monolithic+set}" = set; then
2681   enableval="$enable_monolithic"
2682
2683                           if test "$enableval" = yes; then
2684                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2685                           else
2686                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2687                           fi
2688
2689 else
2690
2691                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2692                           if test "x$LINE" != x ; then
2693                             eval "DEFAULT_$LINE"
2694                           else
2695                             no_cache=1
2696                           fi
2697
2698                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2699
2700 fi;
2701
2702           eval "$ac_cv_use_monolithic"
2703           if test "$no_cache" != 1; then
2704             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2705           fi
2706
2707           if test "$wxUSE_MONOLITHIC" = yes; then
2708             echo "$as_me:$LINENO: result: yes" >&5
2709 echo "${ECHO_T}yes" >&6
2710           else
2711             echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2713           fi
2714
2715
2716           enablestring=
2717           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2718 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2719           no_cache=0
2720           # Check whether --enable-plugins or --disable-plugins was given.
2721 if test "${enable_plugins+set}" = set; then
2722   enableval="$enable_plugins"
2723
2724                           if test "$enableval" = yes; then
2725                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2726                           else
2727                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2728                           fi
2729
2730 else
2731
2732                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2733                           if test "x$LINE" != x ; then
2734                             eval "DEFAULT_$LINE"
2735                           else
2736                             no_cache=1
2737                           fi
2738
2739                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2740
2741 fi;
2742
2743           eval "$ac_cv_use_plugins"
2744           if test "$no_cache" != 1; then
2745             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2746           fi
2747
2748           if test "$wxUSE_PLUGINS" = yes; then
2749             echo "$as_me:$LINENO: result: yes" >&5
2750 echo "${ECHO_T}yes" >&6
2751           else
2752             echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6
2754           fi
2755
2756
2757           withstring=without
2758           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2759 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2760           no_cache=0
2761
2762 # Check whether --with-subdirs or --without-subdirs was given.
2763 if test "${with_subdirs+set}" = set; then
2764   withval="$with_subdirs"
2765
2766                         if test "$withval" = yes; then
2767                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2768                         else
2769                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2770                         fi
2771
2772 else
2773
2774                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2775                         if test "x$LINE" != x ; then
2776                           eval "DEFAULT_$LINE"
2777                         else
2778                           no_cache=1
2779                         fi
2780
2781                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2782
2783 fi;
2784
2785           eval "$ac_cv_use_subdirs"
2786           if test "$no_cache" != 1; then
2787             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2788           fi
2789
2790           if test "$wxWITH_SUBDIRS" = yes; then
2791             echo "$as_me:$LINENO: result: yes" >&5
2792 echo "${ECHO_T}yes" >&6
2793           else
2794             echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2796           fi
2797
2798
2799 if test "$wxUSE_GUI" = "yes"; then
2800
2801
2802           enablestring=
2803           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2804 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2805           no_cache=0
2806           # Check whether --enable-universal or --disable-universal was given.
2807 if test "${enable_universal+set}" = set; then
2808   enableval="$enable_universal"
2809
2810                           if test "$enableval" = yes; then
2811                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2812                           else
2813                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2814                           fi
2815
2816 else
2817
2818                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2819                           if test "x$LINE" != x ; then
2820                             eval "DEFAULT_$LINE"
2821                           else
2822                             no_cache=1
2823                           fi
2824
2825                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2826
2827 fi;
2828
2829           eval "$ac_cv_use_universal"
2830           if test "$no_cache" != 1; then
2831             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2832           fi
2833
2834           if test "$wxUSE_UNIVERSAL" = yes; then
2835             echo "$as_me:$LINENO: result: yes" >&5
2836 echo "${ECHO_T}yes" >&6
2837           else
2838             echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6
2840           fi
2841
2842
2843 # Check whether --with-gtk or --without-gtk was given.
2844 if test "${with_gtk+set}" = set; then
2845   withval="$with_gtk"
2846   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2847 fi;
2848
2849 # Check whether --with-motif or --without-motif was given.
2850 if test "${with_motif+set}" = set; then
2851   withval="$with_motif"
2852   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2853 fi;
2854
2855 # Check whether --with-mac or --without-mac was given.
2856 if test "${with_mac+set}" = set; then
2857   withval="$with_mac"
2858   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2859 fi;
2860
2861 # Check whether --with-cocoa or --without-cocoa was given.
2862 if test "${with_cocoa+set}" = set; then
2863   withval="$with_cocoa"
2864   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2865 fi;
2866
2867 # Check whether --with-wine or --without-wine was given.
2868 if test "${with_wine+set}" = set; then
2869   withval="$with_wine"
2870   wxUSE_WINE="$withval" CACHE_WINE=1
2871 fi;
2872
2873 # Check whether --with-msw or --without-msw was given.
2874 if test "${with_msw+set}" = set; then
2875   withval="$with_msw"
2876   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2877 fi;
2878
2879 # Check whether --with-pm or --without-pm was given.
2880 if test "${with_pm+set}" = set; then
2881   withval="$with_pm"
2882   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2883 fi;
2884
2885 # Check whether --with-mgl or --without-mgl was given.
2886 if test "${with_mgl+set}" = set; then
2887   withval="$with_mgl"
2888   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2889 fi;
2890
2891 # Check whether --with-directfb or --without-directfb was given.
2892 if test "${with_directfb+set}" = set; then
2893   withval="$with_directfb"
2894   wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2895 fi;
2896
2897 # Check whether --with-microwin or --without-microwin was given.
2898 if test "${with_microwin+set}" = set; then
2899   withval="$with_microwin"
2900   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2901 fi;
2902
2903 # Check whether --with-x11 or --without-x11 was given.
2904 if test "${with_x11+set}" = set; then
2905   withval="$with_x11"
2906   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2907 fi;
2908
2909           enablestring=
2910           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2911 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2912           no_cache=0
2913           # Check whether --enable-nanox or --disable-nanox was given.
2914 if test "${enable_nanox+set}" = set; then
2915   enableval="$enable_nanox"
2916
2917                           if test "$enableval" = yes; then
2918                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2919                           else
2920                             ac_cv_use_nanox='wxUSE_NANOX=no'
2921                           fi
2922
2923 else
2924
2925                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2926                           if test "x$LINE" != x ; then
2927                             eval "DEFAULT_$LINE"
2928                           else
2929                             no_cache=1
2930                           fi
2931
2932                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2933
2934 fi;
2935
2936           eval "$ac_cv_use_nanox"
2937           if test "$no_cache" != 1; then
2938             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2939           fi
2940
2941           if test "$wxUSE_NANOX" = yes; then
2942             echo "$as_me:$LINENO: result: yes" >&5
2943 echo "${ECHO_T}yes" >&6
2944           else
2945             echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2947           fi
2948
2949
2950 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2951 if test "${enable_gtk2+set}" = set; then
2952   enableval="$enable_gtk2"
2953   wxUSE_GTK2="$enableval"
2954 fi;
2955
2956           enablestring=
2957           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2958 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2959           no_cache=0
2960           # Check whether --enable-gpe or --disable-gpe was given.
2961 if test "${enable_gpe+set}" = set; then
2962   enableval="$enable_gpe"
2963
2964                           if test "$enableval" = yes; then
2965                             ac_cv_use_gpe='wxUSE_GPE=yes'
2966                           else
2967                             ac_cv_use_gpe='wxUSE_GPE=no'
2968                           fi
2969
2970 else
2971
2972                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2973                           if test "x$LINE" != x ; then
2974                             eval "DEFAULT_$LINE"
2975                           else
2976                             no_cache=1
2977                           fi
2978
2979                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2980
2981 fi;
2982
2983           eval "$ac_cv_use_gpe"
2984           if test "$no_cache" != 1; then
2985             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2986           fi
2987
2988           if test "$wxUSE_GPE" = yes; then
2989             echo "$as_me:$LINENO: result: yes" >&5
2990 echo "${ECHO_T}yes" >&6
2991           else
2992             echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6
2994           fi
2995
2996
2997
2998           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2999 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3000           no_cache=0
3001
3002 # Check whether --with-libpng or --without-libpng was given.
3003 if test "${with_libpng+set}" = set; then
3004   withval="$with_libpng"
3005
3006                         if test "$withval" = yes; then
3007                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3008                         elif test "$withval" = no; then
3009                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
3010                         elif test "$withval" = sys; then
3011                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3012                         elif test "$withval" = builtin; then
3013                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3014                         else
3015                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3016 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3017    { (exit 1); exit 1; }; }
3018                         fi
3019
3020 else
3021
3022                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3023                         if test "x$LINE" != x ; then
3024                           eval "DEFAULT_$LINE"
3025                         else
3026                           no_cache=1
3027                         fi
3028
3029                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3030
3031 fi;
3032
3033           eval "$ac_cv_use_libpng"
3034           if test "$no_cache" != 1; then
3035             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3036           fi
3037
3038           if test "$wxUSE_LIBPNG" = yes; then
3039             echo "$as_me:$LINENO: result: yes" >&5
3040 echo "${ECHO_T}yes" >&6
3041           elif test "$wxUSE_LIBPNG" = no; then
3042             echo "$as_me:$LINENO: result: no" >&5
3043 echo "${ECHO_T}no" >&6
3044           elif test "$wxUSE_LIBPNG" = sys; then
3045             echo "$as_me:$LINENO: result: system version" >&5
3046 echo "${ECHO_T}system version" >&6
3047           elif test "$wxUSE_LIBPNG" = builtin; then
3048             echo "$as_me:$LINENO: result: builtin version" >&5
3049 echo "${ECHO_T}builtin version" >&6
3050           else
3051             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3052 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3053    { (exit 1); exit 1; }; }
3054           fi
3055
3056
3057           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3058 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3059           no_cache=0
3060
3061 # Check whether --with-libjpeg or --without-libjpeg was given.
3062 if test "${with_libjpeg+set}" = set; then
3063   withval="$with_libjpeg"
3064
3065                         if test "$withval" = yes; then
3066                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3067                         elif test "$withval" = no; then
3068                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3069                         elif test "$withval" = sys; then
3070                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3071                         elif test "$withval" = builtin; then
3072                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3073                         else
3074                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3075 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3076    { (exit 1); exit 1; }; }
3077                         fi
3078
3079 else
3080
3081                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3082                         if test "x$LINE" != x ; then
3083                           eval "DEFAULT_$LINE"
3084                         else
3085                           no_cache=1
3086                         fi
3087
3088                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3089
3090 fi;
3091
3092           eval "$ac_cv_use_libjpeg"
3093           if test "$no_cache" != 1; then
3094             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3095           fi
3096
3097           if test "$wxUSE_LIBJPEG" = yes; then
3098             echo "$as_me:$LINENO: result: yes" >&5
3099 echo "${ECHO_T}yes" >&6
3100           elif test "$wxUSE_LIBJPEG" = no; then
3101             echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3103           elif test "$wxUSE_LIBJPEG" = sys; then
3104             echo "$as_me:$LINENO: result: system version" >&5
3105 echo "${ECHO_T}system version" >&6
3106           elif test "$wxUSE_LIBJPEG" = builtin; then
3107             echo "$as_me:$LINENO: result: builtin version" >&5
3108 echo "${ECHO_T}builtin version" >&6
3109           else
3110             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3111 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3112    { (exit 1); exit 1; }; }
3113           fi
3114
3115
3116           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3117 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3118           no_cache=0
3119
3120 # Check whether --with-libtiff or --without-libtiff was given.
3121 if test "${with_libtiff+set}" = set; then
3122   withval="$with_libtiff"
3123
3124                         if test "$withval" = yes; then
3125                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3126                         elif test "$withval" = no; then
3127                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3128                         elif test "$withval" = sys; then
3129                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3130                         elif test "$withval" = builtin; then
3131                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3132                         else
3133                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3134 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3135    { (exit 1); exit 1; }; }
3136                         fi
3137
3138 else
3139
3140                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3141                         if test "x$LINE" != x ; then
3142                           eval "DEFAULT_$LINE"
3143                         else
3144                           no_cache=1
3145                         fi
3146
3147                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3148
3149 fi;
3150
3151           eval "$ac_cv_use_libtiff"
3152           if test "$no_cache" != 1; then
3153             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3154           fi
3155
3156           if test "$wxUSE_LIBTIFF" = yes; then
3157             echo "$as_me:$LINENO: result: yes" >&5
3158 echo "${ECHO_T}yes" >&6
3159           elif test "$wxUSE_LIBTIFF" = no; then
3160             echo "$as_me:$LINENO: result: no" >&5
3161 echo "${ECHO_T}no" >&6
3162           elif test "$wxUSE_LIBTIFF" = sys; then
3163             echo "$as_me:$LINENO: result: system version" >&5
3164 echo "${ECHO_T}system version" >&6
3165           elif test "$wxUSE_LIBTIFF" = builtin; then
3166             echo "$as_me:$LINENO: result: builtin version" >&5
3167 echo "${ECHO_T}builtin version" >&6
3168           else
3169             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3170 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3171    { (exit 1); exit 1; }; }
3172           fi
3173
3174
3175           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3176 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3177           no_cache=0
3178
3179 # Check whether --with-libxpm or --without-libxpm was given.
3180 if test "${with_libxpm+set}" = set; then
3181   withval="$with_libxpm"
3182
3183                         if test "$withval" = yes; then
3184                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3185                         elif test "$withval" = no; then
3186                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3187                         elif test "$withval" = sys; then
3188                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3189                         elif test "$withval" = builtin; then
3190                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3191                         else
3192                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3193 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3194    { (exit 1); exit 1; }; }
3195                         fi
3196
3197 else
3198
3199                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3200                         if test "x$LINE" != x ; then
3201                           eval "DEFAULT_$LINE"
3202                         else
3203                           no_cache=1
3204                         fi
3205
3206                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3207
3208 fi;
3209
3210           eval "$ac_cv_use_libxpm"
3211           if test "$no_cache" != 1; then
3212             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3213           fi
3214
3215           if test "$wxUSE_LIBXPM" = yes; then
3216             echo "$as_me:$LINENO: result: yes" >&5
3217 echo "${ECHO_T}yes" >&6
3218           elif test "$wxUSE_LIBXPM" = no; then
3219             echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221           elif test "$wxUSE_LIBXPM" = sys; then
3222             echo "$as_me:$LINENO: result: system version" >&5
3223 echo "${ECHO_T}system version" >&6
3224           elif test "$wxUSE_LIBXPM" = builtin; then
3225             echo "$as_me:$LINENO: result: builtin version" >&5
3226 echo "${ECHO_T}builtin version" >&6
3227           else
3228             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3229 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3230    { (exit 1); exit 1; }; }
3231           fi
3232
3233
3234           withstring=
3235           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3236 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3237           no_cache=0
3238
3239 # Check whether --with-libmspack or --without-libmspack was given.
3240 if test "${with_libmspack+set}" = set; then
3241   withval="$with_libmspack"
3242
3243                         if test "$withval" = yes; then
3244                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3245                         else
3246                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3247                         fi
3248
3249 else
3250
3251                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3252                         if test "x$LINE" != x ; then
3253                           eval "DEFAULT_$LINE"
3254                         else
3255                           no_cache=1
3256                         fi
3257
3258                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3259
3260 fi;
3261
3262           eval "$ac_cv_use_libmspack"
3263           if test "$no_cache" != 1; then
3264             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3265           fi
3266
3267           if test "$wxUSE_LIBMSPACK" = yes; then
3268             echo "$as_me:$LINENO: result: yes" >&5
3269 echo "${ECHO_T}yes" >&6
3270           else
3271             echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3273           fi
3274
3275
3276           withstring=
3277           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3278 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3279           no_cache=0
3280
3281 # Check whether --with-sdl or --without-sdl was given.
3282 if test "${with_sdl+set}" = set; then
3283   withval="$with_sdl"
3284
3285                         if test "$withval" = yes; then
3286                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3287                         else
3288                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3289                         fi
3290
3291 else
3292
3293                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3294                         if test "x$LINE" != x ; then
3295                           eval "DEFAULT_$LINE"
3296                         else
3297                           no_cache=1
3298                         fi
3299
3300                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3301
3302 fi;
3303
3304           eval "$ac_cv_use_sdl"
3305           if test "$no_cache" != 1; then
3306             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3307           fi
3308
3309           if test "$wxUSE_LIBSDL" = yes; then
3310             echo "$as_me:$LINENO: result: yes" >&5
3311 echo "${ECHO_T}yes" >&6
3312           else
3313             echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3315           fi
3316
3317
3318           withstring=
3319           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3320 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3321           no_cache=0
3322
3323 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3324 if test "${with_gnomeprint+set}" = set; then
3325   withval="$with_gnomeprint"
3326
3327                         if test "$withval" = yes; then
3328                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3329                         else
3330                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3331                         fi
3332
3333 else
3334
3335                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3336                         if test "x$LINE" != x ; then
3337                           eval "DEFAULT_$LINE"
3338                         else
3339                           no_cache=1
3340                         fi
3341
3342                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3343
3344 fi;
3345
3346           eval "$ac_cv_use_gnomeprint"
3347           if test "$no_cache" != 1; then
3348             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3349           fi
3350
3351           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3352             echo "$as_me:$LINENO: result: yes" >&5
3353 echo "${ECHO_T}yes" >&6
3354           else
3355             echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6
3357           fi
3358
3359
3360           withstring=
3361           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3362 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3363           no_cache=0
3364
3365 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3366 if test "${with_gnomevfs+set}" = set; then
3367   withval="$with_gnomevfs"
3368
3369                         if test "$withval" = yes; then
3370                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3371                         else
3372                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3373                         fi
3374
3375 else
3376
3377                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3378                         if test "x$LINE" != x ; then
3379                           eval "DEFAULT_$LINE"
3380                         else
3381                           no_cache=1
3382                         fi
3383
3384                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3385
3386 fi;
3387
3388           eval "$ac_cv_use_gnomevfs"
3389           if test "$no_cache" != 1; then
3390             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3391           fi
3392
3393           if test "$wxUSE_LIBGNOMEVFS" = yes; then
3394             echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6
3396           else
3397             echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3399           fi
3400
3401
3402           withstring=
3403           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3404 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3405           no_cache=0
3406
3407 # Check whether --with-hildon or --without-hildon was given.
3408 if test "${with_hildon+set}" = set; then
3409   withval="$with_hildon"
3410
3411                         if test "$withval" = yes; then
3412                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3413                         else
3414                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3415                         fi
3416
3417 else
3418
3419                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3420                         if test "x$LINE" != x ; then
3421                           eval "DEFAULT_$LINE"
3422                         else
3423                           no_cache=1
3424                         fi
3425
3426                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3427
3428 fi;
3429
3430           eval "$ac_cv_use_hildon"
3431           if test "$no_cache" != 1; then
3432             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3433           fi
3434
3435           if test "$wxUSE_LIBHILDON" = yes; then
3436             echo "$as_me:$LINENO: result: yes" >&5
3437 echo "${ECHO_T}yes" >&6
3438           else
3439             echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3441           fi
3442
3443
3444           withstring=
3445           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3446 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3447           no_cache=0
3448
3449 # Check whether --with-opengl or --without-opengl was given.
3450 if test "${with_opengl+set}" = set; then
3451   withval="$with_opengl"
3452
3453                         if test "$withval" = yes; then
3454                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3455                         else
3456                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3457                         fi
3458
3459 else
3460
3461                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3462                         if test "x$LINE" != x ; then
3463                           eval "DEFAULT_$LINE"
3464                         else
3465                           no_cache=1
3466                         fi
3467
3468                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3469
3470 fi;
3471
3472           eval "$ac_cv_use_opengl"
3473           if test "$no_cache" != 1; then
3474             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3475           fi
3476
3477           if test "$wxUSE_OPENGL" = yes; then
3478             echo "$as_me:$LINENO: result: yes" >&5
3479 echo "${ECHO_T}yes" >&6
3480           else
3481             echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3483           fi
3484
3485
3486 if test "$wxUSE_UNIVERSAL" = "yes"; then
3487
3488 # Check whether --with-themes or --without-themes was given.
3489 if test "${with_themes+set}" = set; then
3490   withval="$with_themes"
3491   wxUNIV_THEMES="$withval"
3492 fi;
3493 fi
3494
3495 fi
3496
3497
3498           withstring=
3499           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3500 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3501           no_cache=0
3502
3503 # Check whether --with-dmalloc or --without-dmalloc was given.
3504 if test "${with_dmalloc+set}" = set; then
3505   withval="$with_dmalloc"
3506
3507                         if test "$withval" = yes; then
3508                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3509                         else
3510                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3511                         fi
3512
3513 else
3514
3515                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3516                         if test "x$LINE" != x ; then
3517                           eval "DEFAULT_$LINE"
3518                         else
3519                           no_cache=1
3520                         fi
3521
3522                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3523
3524 fi;
3525
3526           eval "$ac_cv_use_dmalloc"
3527           if test "$no_cache" != 1; then
3528             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3529           fi
3530
3531           if test "$wxUSE_DMALLOC" = yes; then
3532             echo "$as_me:$LINENO: result: yes" >&5
3533 echo "${ECHO_T}yes" >&6
3534           else
3535             echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3537           fi
3538
3539
3540           echo "$as_me:$LINENO: checking for --with-regex" >&5
3541 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3542           no_cache=0
3543
3544 # Check whether --with-regex or --without-regex was given.
3545 if test "${with_regex+set}" = set; then
3546   withval="$with_regex"
3547
3548                         if test "$withval" = yes; then
3549                           ac_cv_use_regex='wxUSE_REGEX=yes'
3550                         elif test "$withval" = no; then
3551                           ac_cv_use_regex='wxUSE_REGEX=no'
3552                         elif test "$withval" = sys; then
3553                           ac_cv_use_regex='wxUSE_REGEX=sys'
3554                         elif test "$withval" = builtin; then
3555                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3556                         else
3557                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3558 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3559    { (exit 1); exit 1; }; }
3560                         fi
3561
3562 else
3563
3564                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3565                         if test "x$LINE" != x ; then
3566                           eval "DEFAULT_$LINE"
3567                         else
3568                           no_cache=1
3569                         fi
3570
3571                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3572
3573 fi;
3574
3575           eval "$ac_cv_use_regex"
3576           if test "$no_cache" != 1; then
3577             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3578           fi
3579
3580           if test "$wxUSE_REGEX" = yes; then
3581             echo "$as_me:$LINENO: result: yes" >&5
3582 echo "${ECHO_T}yes" >&6
3583           elif test "$wxUSE_REGEX" = no; then
3584             echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586           elif test "$wxUSE_REGEX" = sys; then
3587             echo "$as_me:$LINENO: result: system version" >&5
3588 echo "${ECHO_T}system version" >&6
3589           elif test "$wxUSE_REGEX" = builtin; then
3590             echo "$as_me:$LINENO: result: builtin version" >&5
3591 echo "${ECHO_T}builtin version" >&6
3592           else
3593             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3594 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3595    { (exit 1); exit 1; }; }
3596           fi
3597
3598
3599           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3600 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3601           no_cache=0
3602
3603 # Check whether --with-zlib or --without-zlib was given.
3604 if test "${with_zlib+set}" = set; then
3605   withval="$with_zlib"
3606
3607                         if test "$withval" = yes; then
3608                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3609                         elif test "$withval" = no; then
3610                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3611                         elif test "$withval" = sys; then
3612                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3613                         elif test "$withval" = builtin; then
3614                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3615                         else
3616                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3617 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3618    { (exit 1); exit 1; }; }
3619                         fi
3620
3621 else
3622
3623                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3624                         if test "x$LINE" != x ; then
3625                           eval "DEFAULT_$LINE"
3626                         else
3627                           no_cache=1
3628                         fi
3629
3630                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3631
3632 fi;
3633
3634           eval "$ac_cv_use_zlib"
3635           if test "$no_cache" != 1; then
3636             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3637           fi
3638
3639           if test "$wxUSE_ZLIB" = yes; then
3640             echo "$as_me:$LINENO: result: yes" >&5
3641 echo "${ECHO_T}yes" >&6
3642           elif test "$wxUSE_ZLIB" = no; then
3643             echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6
3645           elif test "$wxUSE_ZLIB" = sys; then
3646             echo "$as_me:$LINENO: result: system version" >&5
3647 echo "${ECHO_T}system version" >&6
3648           elif test "$wxUSE_ZLIB" = builtin; then
3649             echo "$as_me:$LINENO: result: builtin version" >&5
3650 echo "${ECHO_T}builtin version" >&6
3651           else
3652             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3653 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3654    { (exit 1); exit 1; }; }
3655           fi
3656
3657
3658           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3659 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3660           no_cache=0
3661
3662 # Check whether --with-odbc or --without-odbc was given.
3663 if test "${with_odbc+set}" = set; then
3664   withval="$with_odbc"
3665
3666                         if test "$withval" = yes; then
3667                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3668                         elif test "$withval" = no; then
3669                           ac_cv_use_odbc='wxUSE_ODBC=no'
3670                         elif test "$withval" = sys; then
3671                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3672                         elif test "$withval" = builtin; then
3673                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3674                         else
3675                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3676 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3677    { (exit 1); exit 1; }; }
3678                         fi
3679
3680 else
3681
3682                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3683                         if test "x$LINE" != x ; then
3684                           eval "DEFAULT_$LINE"
3685                         else
3686                           no_cache=1
3687                         fi
3688
3689                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3690
3691 fi;
3692
3693           eval "$ac_cv_use_odbc"
3694           if test "$no_cache" != 1; then
3695             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3696           fi
3697
3698           if test "$wxUSE_ODBC" = yes; then
3699             echo "$as_me:$LINENO: result: yes" >&5
3700 echo "${ECHO_T}yes" >&6
3701           elif test "$wxUSE_ODBC" = no; then
3702             echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3704           elif test "$wxUSE_ODBC" = sys; then
3705             echo "$as_me:$LINENO: result: system version" >&5
3706 echo "${ECHO_T}system version" >&6
3707           elif test "$wxUSE_ODBC" = builtin; then
3708             echo "$as_me:$LINENO: result: builtin version" >&5
3709 echo "${ECHO_T}builtin version" >&6
3710           else
3711             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3712 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3713    { (exit 1); exit 1; }; }
3714           fi
3715
3716
3717           echo "$as_me:$LINENO: checking for --with-expat" >&5
3718 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3719           no_cache=0
3720
3721 # Check whether --with-expat or --without-expat was given.
3722 if test "${with_expat+set}" = set; then
3723   withval="$with_expat"
3724
3725                         if test "$withval" = yes; then
3726                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3727                         elif test "$withval" = no; then
3728                           ac_cv_use_expat='wxUSE_EXPAT=no'
3729                         elif test "$withval" = sys; then
3730                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3731                         elif test "$withval" = builtin; then
3732                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3733                         else
3734                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3735 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3736    { (exit 1); exit 1; }; }
3737                         fi
3738
3739 else
3740
3741                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3742                         if test "x$LINE" != x ; then
3743                           eval "DEFAULT_$LINE"
3744                         else
3745                           no_cache=1
3746                         fi
3747
3748                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3749
3750 fi;
3751
3752           eval "$ac_cv_use_expat"
3753           if test "$no_cache" != 1; then
3754             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3755           fi
3756
3757           if test "$wxUSE_EXPAT" = yes; then
3758             echo "$as_me:$LINENO: result: yes" >&5
3759 echo "${ECHO_T}yes" >&6
3760           elif test "$wxUSE_EXPAT" = no; then
3761             echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3763           elif test "$wxUSE_EXPAT" = sys; then
3764             echo "$as_me:$LINENO: result: system version" >&5
3765 echo "${ECHO_T}system version" >&6
3766           elif test "$wxUSE_EXPAT" = builtin; then
3767             echo "$as_me:$LINENO: result: builtin version" >&5
3768 echo "${ECHO_T}builtin version" >&6
3769           else
3770             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3771 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3772    { (exit 1); exit 1; }; }
3773           fi
3774
3775
3776
3777
3778           enablestring=
3779           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3780 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3781           no_cache=0
3782           # Check whether --enable-shared or --disable-shared was given.
3783 if test "${enable_shared+set}" = set; then
3784   enableval="$enable_shared"
3785
3786                           if test "$enableval" = yes; then
3787                             ac_cv_use_shared='wxUSE_SHARED=yes'
3788                           else
3789                             ac_cv_use_shared='wxUSE_SHARED=no'
3790                           fi
3791
3792 else
3793
3794                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3795                           if test "x$LINE" != x ; then
3796                             eval "DEFAULT_$LINE"
3797                           else
3798                             no_cache=1
3799                           fi
3800
3801                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3802
3803 fi;
3804
3805           eval "$ac_cv_use_shared"
3806           if test "$no_cache" != 1; then
3807             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3808           fi
3809
3810           if test "$wxUSE_SHARED" = yes; then
3811             echo "$as_me:$LINENO: result: yes" >&5
3812 echo "${ECHO_T}yes" >&6
3813           else
3814             echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3816           fi
3817
3818
3819           enablestring=
3820           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3821 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3822           no_cache=0
3823           # Check whether --enable-optimise or --disable-optimise was given.
3824 if test "${enable_optimise+set}" = set; then
3825   enableval="$enable_optimise"
3826
3827                           if test "$enableval" = yes; then
3828                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3829                           else
3830                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3831                           fi
3832
3833 else
3834
3835                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3836                           if test "x$LINE" != x ; then
3837                             eval "DEFAULT_$LINE"
3838                           else
3839                             no_cache=1
3840                           fi
3841
3842                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3843
3844 fi;
3845
3846           eval "$ac_cv_use_optimise"
3847           if test "$no_cache" != 1; then
3848             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3849           fi
3850
3851           if test "$wxUSE_OPTIMISE" = yes; then
3852             echo "$as_me:$LINENO: result: yes" >&5
3853 echo "${ECHO_T}yes" >&6
3854           else
3855             echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857           fi
3858
3859
3860           enablestring=
3861           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3862 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3863           no_cache=0
3864           # Check whether --enable-debug or --disable-debug was given.
3865 if test "${enable_debug+set}" = set; then
3866   enableval="$enable_debug"
3867
3868                           if test "$enableval" = yes; then
3869                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3870                           else
3871                             ac_cv_use_debug='wxUSE_DEBUG=no'
3872                           fi
3873
3874 else
3875
3876                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3877                           if test "x$LINE" != x ; then
3878                             eval "DEFAULT_$LINE"
3879                           else
3880                             no_cache=1
3881                           fi
3882
3883                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3884
3885 fi;
3886
3887           eval "$ac_cv_use_debug"
3888           if test "$no_cache" != 1; then
3889             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3890           fi
3891
3892           if test "$wxUSE_DEBUG" = yes; then
3893             echo "$as_me:$LINENO: result: yes" >&5
3894 echo "${ECHO_T}yes" >&6
3895           else
3896             echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3898           fi
3899
3900
3901           enablestring=
3902           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3903 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3904           no_cache=0
3905           # Check whether --enable-stl or --disable-stl was given.
3906 if test "${enable_stl+set}" = set; then
3907   enableval="$enable_stl"
3908
3909                           if test "$enableval" = yes; then
3910                             ac_cv_use_stl='wxUSE_STL=yes'
3911                           else
3912                             ac_cv_use_stl='wxUSE_STL=no'
3913                           fi
3914
3915 else
3916
3917                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3918                           if test "x$LINE" != x ; then
3919                             eval "DEFAULT_$LINE"
3920                           else
3921                             no_cache=1
3922                           fi
3923
3924                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3925
3926 fi;
3927
3928           eval "$ac_cv_use_stl"
3929           if test "$no_cache" != 1; then
3930             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3931           fi
3932
3933           if test "$wxUSE_STL" = yes; then
3934             echo "$as_me:$LINENO: result: yes" >&5
3935 echo "${ECHO_T}yes" >&6
3936           else
3937             echo "$as_me:$LINENO: result: no" >&5
3938 echo "${ECHO_T}no" >&6
3939           fi
3940
3941 if test "$USE_OS2" = "1"; then
3942     DEFAULT_wxUSE_OMF=no
3943
3944           enablestring=
3945           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3946 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3947           no_cache=0
3948           # Check whether --enable-omf or --disable-omf was given.
3949 if test "${enable_omf+set}" = set; then
3950   enableval="$enable_omf"
3951
3952                           if test "$enableval" = yes; then
3953                             ac_cv_use_omf='wxUSE_OMF=yes'
3954                           else
3955                             ac_cv_use_omf='wxUSE_OMF=no'
3956                           fi
3957
3958 else
3959
3960                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3961                           if test "x$LINE" != x ; then
3962                             eval "DEFAULT_$LINE"
3963                           else
3964                             no_cache=1
3965                           fi
3966
3967                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3968
3969 fi;
3970
3971           eval "$ac_cv_use_omf"
3972           if test "$no_cache" != 1; then
3973             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3974           fi
3975
3976           if test "$wxUSE_OMF" = yes; then
3977             echo "$as_me:$LINENO: result: yes" >&5
3978 echo "${ECHO_T}yes" >&6
3979           else
3980             echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982           fi
3983
3984 fi
3985
3986 if test "$wxUSE_DEBUG" = "yes"; then
3987   DEFAULT_wxUSE_DEBUG_FLAG=yes
3988   DEFAULT_wxUSE_DEBUG_INFO=yes
3989   BUILD=debug
3990 elif test "$wxUSE_DEBUG" = "no"; then
3991   DEFAULT_wxUSE_DEBUG_FLAG=no
3992   DEFAULT_wxUSE_DEBUG_INFO=no
3993   BUILD=release
3994 fi
3995
3996
3997           enablestring=
3998           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3999 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4000           no_cache=0
4001           # Check whether --enable-debug_flag or --disable-debug_flag was given.
4002 if test "${enable_debug_flag+set}" = set; then
4003   enableval="$enable_debug_flag"
4004
4005                           if test "$enableval" = yes; then
4006                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4007                           else
4008                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4009                           fi
4010
4011 else
4012
4013                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4014                           if test "x$LINE" != x ; then
4015                             eval "DEFAULT_$LINE"
4016                           else
4017                             no_cache=1
4018                           fi
4019
4020                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4021
4022 fi;
4023
4024           eval "$ac_cv_use_debug_flag"
4025           if test "$no_cache" != 1; then
4026             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4027           fi
4028
4029           if test "$wxUSE_DEBUG_FLAG" = yes; then
4030             echo "$as_me:$LINENO: result: yes" >&5
4031 echo "${ECHO_T}yes" >&6
4032           else
4033             echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4035           fi
4036
4037
4038           enablestring=
4039           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4040 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4041           no_cache=0
4042           # Check whether --enable-debug_info or --disable-debug_info was given.
4043 if test "${enable_debug_info+set}" = set; then
4044   enableval="$enable_debug_info"
4045
4046                           if test "$enableval" = yes; then
4047                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4048                           else
4049                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4050                           fi
4051
4052 else
4053
4054                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4055                           if test "x$LINE" != x ; then
4056                             eval "DEFAULT_$LINE"
4057                           else
4058                             no_cache=1
4059                           fi
4060
4061                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4062
4063 fi;
4064
4065           eval "$ac_cv_use_debug_info"
4066           if test "$no_cache" != 1; then
4067             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4068           fi
4069
4070           if test "$wxUSE_DEBUG_INFO" = yes; then
4071             echo "$as_me:$LINENO: result: yes" >&5
4072 echo "${ECHO_T}yes" >&6
4073           else
4074             echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4076           fi
4077
4078
4079           enablestring=
4080           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4081 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4082           no_cache=0
4083           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4084 if test "${enable_debug_gdb+set}" = set; then
4085   enableval="$enable_debug_gdb"
4086
4087                           if test "$enableval" = yes; then
4088                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4089                           else
4090                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4091                           fi
4092
4093 else
4094
4095                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4096                           if test "x$LINE" != x ; then
4097                             eval "DEFAULT_$LINE"
4098                           else
4099                             no_cache=1
4100                           fi
4101
4102                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4103
4104 fi;
4105
4106           eval "$ac_cv_use_debug_gdb"
4107           if test "$no_cache" != 1; then
4108             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4109           fi
4110
4111           if test "$wxUSE_DEBUG_GDB" = yes; then
4112             echo "$as_me:$LINENO: result: yes" >&5
4113 echo "${ECHO_T}yes" >&6
4114           else
4115             echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4117           fi
4118
4119
4120           enablestring=
4121           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4122 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4123           no_cache=0
4124           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4125 if test "${enable_debug_cntxt+set}" = set; then
4126   enableval="$enable_debug_cntxt"
4127
4128                           if test "$enableval" = yes; then
4129                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4130                           else
4131                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4132                           fi
4133
4134 else
4135
4136                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4137                           if test "x$LINE" != x ; then
4138                             eval "DEFAULT_$LINE"
4139                           else
4140                             no_cache=1
4141                           fi
4142
4143                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4144
4145 fi;
4146
4147           eval "$ac_cv_use_debug_cntxt"
4148           if test "$no_cache" != 1; then
4149             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4150           fi
4151
4152           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4153             echo "$as_me:$LINENO: result: yes" >&5
4154 echo "${ECHO_T}yes" >&6
4155           else
4156             echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4158           fi
4159
4160
4161           enablestring=
4162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4163 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4164           no_cache=0
4165           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4166 if test "${enable_mem_tracing+set}" = set; then
4167   enableval="$enable_mem_tracing"
4168
4169                           if test "$enableval" = yes; then
4170                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4171                           else
4172                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4173                           fi
4174
4175 else
4176
4177                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4178                           if test "x$LINE" != x ; then
4179                             eval "DEFAULT_$LINE"
4180                           else
4181                             no_cache=1
4182                           fi
4183
4184                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4185
4186 fi;
4187
4188           eval "$ac_cv_use_mem_tracing"
4189           if test "$no_cache" != 1; then
4190             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4191           fi
4192
4193           if test "$wxUSE_MEM_TRACING" = yes; then
4194             echo "$as_me:$LINENO: result: yes" >&5
4195 echo "${ECHO_T}yes" >&6
4196           else
4197             echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199           fi
4200
4201
4202           enablestring=
4203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4204 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4205           no_cache=0
4206           # Check whether --enable-profile or --disable-profile was given.
4207 if test "${enable_profile+set}" = set; then
4208   enableval="$enable_profile"
4209
4210                           if test "$enableval" = yes; then
4211                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4212                           else
4213                             ac_cv_use_profile='wxUSE_PROFILE=no'
4214                           fi
4215
4216 else
4217
4218                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4219                           if test "x$LINE" != x ; then
4220                             eval "DEFAULT_$LINE"
4221                           else
4222                             no_cache=1
4223                           fi
4224
4225                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4226
4227 fi;
4228
4229           eval "$ac_cv_use_profile"
4230           if test "$no_cache" != 1; then
4231             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4232           fi
4233
4234           if test "$wxUSE_PROFILE" = yes; then
4235             echo "$as_me:$LINENO: result: yes" >&5
4236 echo "${ECHO_T}yes" >&6
4237           else
4238             echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6
4240           fi
4241
4242
4243           enablestring=
4244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4245 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4246           no_cache=0
4247           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4248 if test "${enable_no_rtti+set}" = set; then
4249   enableval="$enable_no_rtti"
4250
4251                           if test "$enableval" = yes; then
4252                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4253                           else
4254                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4255                           fi
4256
4257 else
4258
4259                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4260                           if test "x$LINE" != x ; then
4261                             eval "DEFAULT_$LINE"
4262                           else
4263                             no_cache=1
4264                           fi
4265
4266                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4267
4268 fi;
4269
4270           eval "$ac_cv_use_no_rtti"
4271           if test "$no_cache" != 1; then
4272             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4273           fi
4274
4275           if test "$wxUSE_NO_RTTI" = yes; then
4276             echo "$as_me:$LINENO: result: yes" >&5
4277 echo "${ECHO_T}yes" >&6
4278           else
4279             echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6
4281           fi
4282
4283
4284           enablestring=
4285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4286 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4287           no_cache=0
4288           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4289 if test "${enable_no_exceptions+set}" = set; then
4290   enableval="$enable_no_exceptions"
4291
4292                           if test "$enableval" = yes; then
4293                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4294                           else
4295                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4296                           fi
4297
4298 else
4299
4300                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4301                           if test "x$LINE" != x ; then
4302                             eval "DEFAULT_$LINE"
4303                           else
4304                             no_cache=1
4305                           fi
4306
4307                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4308
4309 fi;
4310
4311           eval "$ac_cv_use_no_exceptions"
4312           if test "$no_cache" != 1; then
4313             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4314           fi
4315
4316           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4317             echo "$as_me:$LINENO: result: yes" >&5
4318 echo "${ECHO_T}yes" >&6
4319           else
4320             echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6
4322           fi
4323
4324
4325           enablestring=
4326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4327 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4328           no_cache=0
4329           # Check whether --enable-permissive or --disable-permissive was given.
4330 if test "${enable_permissive+set}" = set; then
4331   enableval="$enable_permissive"
4332
4333                           if test "$enableval" = yes; then
4334                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4335                           else
4336                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4337                           fi
4338
4339 else
4340
4341                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4342                           if test "x$LINE" != x ; then
4343                             eval "DEFAULT_$LINE"
4344                           else
4345                             no_cache=1
4346                           fi
4347
4348                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4349
4350 fi;
4351
4352           eval "$ac_cv_use_permissive"
4353           if test "$no_cache" != 1; then
4354             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4355           fi
4356
4357           if test "$wxUSE_PERMISSIVE" = yes; then
4358             echo "$as_me:$LINENO: result: yes" >&5
4359 echo "${ECHO_T}yes" >&6
4360           else
4361             echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4363           fi
4364
4365
4366           enablestring=
4367           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4368 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4369           no_cache=0
4370           # Check whether --enable-no_deps or --disable-no_deps was given.
4371 if test "${enable_no_deps+set}" = set; then
4372   enableval="$enable_no_deps"
4373
4374                           if test "$enableval" = yes; then
4375                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4376                           else
4377                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4378                           fi
4379
4380 else
4381
4382                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4383                           if test "x$LINE" != x ; then
4384                             eval "DEFAULT_$LINE"
4385                           else
4386                             no_cache=1
4387                           fi
4388
4389                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4390
4391 fi;
4392
4393           eval "$ac_cv_use_no_deps"
4394           if test "$no_cache" != 1; then
4395             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4396           fi
4397
4398           if test "$wxUSE_NO_DEPS" = yes; then
4399             echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6
4401           else
4402             echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4404           fi
4405
4406
4407           enablestring=
4408           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4409 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4410           no_cache=0
4411           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4412 if test "${enable_universal_binary+set}" = set; then
4413   enableval="$enable_universal_binary"
4414
4415                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
4416
4417 else
4418
4419                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4420                           if test "x$LINE" != x ; then
4421                             eval "DEFAULT_$LINE"
4422                             wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4423                           else
4424                             no_cache=1
4425                             wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
4426                           fi
4427
4428 fi;
4429
4430           eval "$wx_cv_use_universal_binary"
4431           if test "$no_cache" != 1; then
4432             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4433           fi
4434
4435           echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4436 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
4437
4438
4439
4440           enablestring=enable
4441           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4442 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4443           no_cache=0
4444           # Check whether --enable-compat24 or --disable-compat24 was given.
4445 if test "${enable_compat24+set}" = set; then
4446   enableval="$enable_compat24"
4447
4448                           if test "$enableval" = yes; then
4449                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4450                           else
4451                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4452                           fi
4453
4454 else
4455
4456                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4457                           if test "x$LINE" != x ; then
4458                             eval "DEFAULT_$LINE"
4459                           else
4460                             no_cache=1
4461                           fi
4462
4463                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4464
4465 fi;
4466
4467           eval "$ac_cv_use_compat24"
4468           if test "$no_cache" != 1; then
4469             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4470           fi
4471
4472           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4473             echo "$as_me:$LINENO: result: yes" >&5
4474 echo "${ECHO_T}yes" >&6
4475           else
4476             echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6
4478           fi
4479
4480
4481           enablestring=disable
4482           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4483 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4484           no_cache=0
4485           # Check whether --enable-compat26 or --disable-compat26 was given.
4486 if test "${enable_compat26+set}" = set; then
4487   enableval="$enable_compat26"
4488
4489                           if test "$enableval" = yes; then
4490                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4491                           else
4492                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4493                           fi
4494
4495 else
4496
4497                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4498                           if test "x$LINE" != x ; then
4499                             eval "DEFAULT_$LINE"
4500                           else
4501                             no_cache=1
4502                           fi
4503
4504                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4505
4506 fi;
4507
4508           eval "$ac_cv_use_compat26"
4509           if test "$no_cache" != 1; then
4510             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4511           fi
4512
4513           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4514             echo "$as_me:$LINENO: result: yes" >&5
4515 echo "${ECHO_T}yes" >&6
4516           else
4517             echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6
4519           fi
4520
4521
4522
4523           enablestring=
4524           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4525 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4526           no_cache=0
4527           # Check whether --enable-rpath or --disable-rpath was given.
4528 if test "${enable_rpath+set}" = set; then
4529   enableval="$enable_rpath"
4530
4531                           if test "$enableval" = yes; then
4532                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4533                           else
4534                             ac_cv_use_rpath='wxUSE_RPATH=no'
4535                           fi
4536
4537 else
4538
4539                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4540                           if test "x$LINE" != x ; then
4541                             eval "DEFAULT_$LINE"
4542                           else
4543                             no_cache=1
4544                           fi
4545
4546                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4547
4548 fi;
4549
4550           eval "$ac_cv_use_rpath"
4551           if test "$no_cache" != 1; then
4552             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4553           fi
4554
4555           if test "$wxUSE_RPATH" = yes; then
4556             echo "$as_me:$LINENO: result: yes" >&5
4557 echo "${ECHO_T}yes" >&6
4558           else
4559             echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6
4561           fi
4562
4563
4564
4565
4566
4567           enablestring=
4568           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4569 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4570           no_cache=0
4571           # Check whether --enable-intl or --disable-intl was given.
4572 if test "${enable_intl+set}" = set; then
4573   enableval="$enable_intl"
4574
4575                           if test "$enableval" = yes; then
4576                             ac_cv_use_intl='wxUSE_INTL=yes'
4577                           else
4578                             ac_cv_use_intl='wxUSE_INTL=no'
4579                           fi
4580
4581 else
4582
4583                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4584                           if test "x$LINE" != x ; then
4585                             eval "DEFAULT_$LINE"
4586                           else
4587                             no_cache=1
4588                           fi
4589
4590                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4591
4592 fi;
4593
4594           eval "$ac_cv_use_intl"
4595           if test "$no_cache" != 1; then
4596             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4597           fi
4598
4599           if test "$wxUSE_INTL" = yes; then
4600             echo "$as_me:$LINENO: result: yes" >&5
4601 echo "${ECHO_T}yes" >&6
4602           else
4603             echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6
4605           fi
4606
4607
4608           enablestring=
4609           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4610 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4611           no_cache=0
4612           # Check whether --enable-config or --disable-config was given.
4613 if test "${enable_config+set}" = set; then
4614   enableval="$enable_config"
4615
4616                           if test "$enableval" = yes; then
4617                             ac_cv_use_config='wxUSE_CONFIG=yes'
4618                           else
4619                             ac_cv_use_config='wxUSE_CONFIG=no'
4620                           fi
4621
4622 else
4623
4624                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4625                           if test "x$LINE" != x ; then
4626                             eval "DEFAULT_$LINE"
4627                           else
4628                             no_cache=1
4629                           fi
4630
4631                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4632
4633 fi;
4634
4635           eval "$ac_cv_use_config"
4636           if test "$no_cache" != 1; then
4637             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4638           fi
4639
4640           if test "$wxUSE_CONFIG" = yes; then
4641             echo "$as_me:$LINENO: result: yes" >&5
4642 echo "${ECHO_T}yes" >&6
4643           else
4644             echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4646           fi
4647
4648
4649
4650           enablestring=
4651           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4652 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4653           no_cache=0
4654           # Check whether --enable-protocols or --disable-protocols was given.
4655 if test "${enable_protocols+set}" = set; then
4656   enableval="$enable_protocols"
4657
4658                           if test "$enableval" = yes; then
4659                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4660                           else
4661                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4662                           fi
4663
4664 else
4665
4666                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4667                           if test "x$LINE" != x ; then
4668                             eval "DEFAULT_$LINE"
4669                           else
4670                             no_cache=1
4671                           fi
4672
4673                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4674
4675 fi;
4676
4677           eval "$ac_cv_use_protocols"
4678           if test "$no_cache" != 1; then
4679             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4680           fi
4681
4682           if test "$wxUSE_PROTOCOL" = yes; then
4683             echo "$as_me:$LINENO: result: yes" >&5
4684 echo "${ECHO_T}yes" >&6
4685           else
4686             echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4688           fi
4689
4690
4691           enablestring=
4692           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4693 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4694           no_cache=0
4695           # Check whether --enable-ftp or --disable-ftp was given.
4696 if test "${enable_ftp+set}" = set; then
4697   enableval="$enable_ftp"
4698
4699                           if test "$enableval" = yes; then
4700                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4701                           else
4702                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4703                           fi
4704
4705 else
4706
4707                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4708                           if test "x$LINE" != x ; then
4709                             eval "DEFAULT_$LINE"
4710                           else
4711                             no_cache=1
4712                           fi
4713
4714                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4715
4716 fi;
4717
4718           eval "$ac_cv_use_ftp"
4719           if test "$no_cache" != 1; then
4720             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4721           fi
4722
4723           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4724             echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6
4726           else
4727             echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6
4729           fi
4730
4731
4732           enablestring=
4733           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4734 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4735           no_cache=0
4736           # Check whether --enable-http or --disable-http was given.
4737 if test "${enable_http+set}" = set; then
4738   enableval="$enable_http"
4739
4740                           if test "$enableval" = yes; then
4741                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4742                           else
4743                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4744                           fi
4745
4746 else
4747
4748                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4749                           if test "x$LINE" != x ; then
4750                             eval "DEFAULT_$LINE"
4751                           else
4752                             no_cache=1
4753                           fi
4754
4755                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4756
4757 fi;
4758
4759           eval "$ac_cv_use_http"
4760           if test "$no_cache" != 1; then
4761             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4762           fi
4763
4764           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4765             echo "$as_me:$LINENO: result: yes" >&5
4766 echo "${ECHO_T}yes" >&6
4767           else
4768             echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6
4770           fi
4771
4772
4773           enablestring=
4774           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4775 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4776           no_cache=0
4777           # Check whether --enable-fileproto or --disable-fileproto was given.
4778 if test "${enable_fileproto+set}" = set; then
4779   enableval="$enable_fileproto"
4780
4781                           if test "$enableval" = yes; then
4782                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4783                           else
4784                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4785                           fi
4786
4787 else
4788
4789                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4790                           if test "x$LINE" != x ; then
4791                             eval "DEFAULT_$LINE"
4792                           else
4793                             no_cache=1
4794                           fi
4795
4796                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4797
4798 fi;
4799
4800           eval "$ac_cv_use_fileproto"
4801           if test "$no_cache" != 1; then
4802             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4803           fi
4804
4805           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4806             echo "$as_me:$LINENO: result: yes" >&5
4807 echo "${ECHO_T}yes" >&6
4808           else
4809             echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4811           fi
4812
4813
4814           enablestring=
4815           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4816 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4817           no_cache=0
4818           # Check whether --enable-sockets or --disable-sockets was given.
4819 if test "${enable_sockets+set}" = set; then
4820   enableval="$enable_sockets"
4821
4822                           if test "$enableval" = yes; then
4823                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4824                           else
4825                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4826                           fi
4827
4828 else
4829
4830                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4831                           if test "x$LINE" != x ; then
4832                             eval "DEFAULT_$LINE"
4833                           else
4834                             no_cache=1
4835                           fi
4836
4837                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4838
4839 fi;
4840
4841           eval "$ac_cv_use_sockets"
4842           if test "$no_cache" != 1; then
4843             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4844           fi
4845
4846           if test "$wxUSE_SOCKETS" = yes; then
4847             echo "$as_me:$LINENO: result: yes" >&5
4848 echo "${ECHO_T}yes" >&6
4849           else
4850             echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6
4852           fi
4853
4854
4855           enablestring=
4856           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4857 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4858           no_cache=0
4859           # Check whether --enable-ole or --disable-ole was given.
4860 if test "${enable_ole+set}" = set; then
4861   enableval="$enable_ole"
4862
4863                           if test "$enableval" = yes; then
4864                             ac_cv_use_ole='wxUSE_OLE=yes'
4865                           else
4866                             ac_cv_use_ole='wxUSE_OLE=no'
4867                           fi
4868
4869 else
4870
4871                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4872                           if test "x$LINE" != x ; then
4873                             eval "DEFAULT_$LINE"
4874                           else
4875                             no_cache=1
4876                           fi
4877
4878                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4879
4880 fi;
4881
4882           eval "$ac_cv_use_ole"
4883           if test "$no_cache" != 1; then
4884             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4885           fi
4886
4887           if test "$wxUSE_OLE" = yes; then
4888             echo "$as_me:$LINENO: result: yes" >&5
4889 echo "${ECHO_T}yes" >&6
4890           else
4891             echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4893           fi
4894
4895
4896           enablestring=
4897           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4898 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4899           no_cache=0
4900           # Check whether --enable-dataobj or --disable-dataobj was given.
4901 if test "${enable_dataobj+set}" = set; then
4902   enableval="$enable_dataobj"
4903
4904                           if test "$enableval" = yes; then
4905                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4906                           else
4907                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4908                           fi
4909
4910 else
4911
4912                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4913                           if test "x$LINE" != x ; then
4914                             eval "DEFAULT_$LINE"
4915                           else
4916                             no_cache=1
4917                           fi
4918
4919                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4920
4921 fi;
4922
4923           eval "$ac_cv_use_dataobj"
4924           if test "$no_cache" != 1; then
4925             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4926           fi
4927
4928           if test "$wxUSE_DATAOBJ" = yes; then
4929             echo "$as_me:$LINENO: result: yes" >&5
4930 echo "${ECHO_T}yes" >&6
4931           else
4932             echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4934           fi
4935
4936
4937
4938           enablestring=
4939           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4940 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4941           no_cache=0
4942           # Check whether --enable-ipc or --disable-ipc was given.
4943 if test "${enable_ipc+set}" = set; then
4944   enableval="$enable_ipc"
4945
4946                           if test "$enableval" = yes; then
4947                             ac_cv_use_ipc='wxUSE_IPC=yes'
4948                           else
4949                             ac_cv_use_ipc='wxUSE_IPC=no'
4950                           fi
4951
4952 else
4953
4954                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4955                           if test "x$LINE" != x ; then
4956                             eval "DEFAULT_$LINE"
4957                           else
4958                             no_cache=1
4959                           fi
4960
4961                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4962
4963 fi;
4964
4965           eval "$ac_cv_use_ipc"
4966           if test "$no_cache" != 1; then
4967             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4968           fi
4969
4970           if test "$wxUSE_IPC" = yes; then
4971             echo "$as_me:$LINENO: result: yes" >&5
4972 echo "${ECHO_T}yes" >&6
4973           else
4974             echo "$as_me:$LINENO: result: no" >&5
4975 echo "${ECHO_T}no" >&6
4976           fi
4977
4978
4979
4980           enablestring=
4981           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4982 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4983           no_cache=0
4984           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4985 if test "${enable_apple_ieee+set}" = set; then
4986   enableval="$enable_apple_ieee"
4987
4988                           if test "$enableval" = yes; then
4989                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4990                           else
4991                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4992                           fi
4993
4994 else
4995
4996                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4997                           if test "x$LINE" != x ; then
4998                             eval "DEFAULT_$LINE"
4999                           else
5000                             no_cache=1
5001                           fi
5002
5003                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5004
5005 fi;
5006
5007           eval "$ac_cv_use_apple_ieee"
5008           if test "$no_cache" != 1; then
5009             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5010           fi
5011
5012           if test "$wxUSE_APPLE_IEEE" = yes; then
5013             echo "$as_me:$LINENO: result: yes" >&5
5014 echo "${ECHO_T}yes" >&6
5015           else
5016             echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5018           fi
5019
5020
5021           enablestring=
5022           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5023 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5024           no_cache=0
5025           # Check whether --enable-arcstream or --disable-arcstream was given.
5026 if test "${enable_arcstream+set}" = set; then
5027   enableval="$enable_arcstream"
5028
5029                           if test "$enableval" = yes; then
5030                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
5031                           else
5032                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
5033                           fi
5034
5035 else
5036
5037                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
5038                           if test "x$LINE" != x ; then
5039                             eval "DEFAULT_$LINE"
5040                           else
5041                             no_cache=1
5042                           fi
5043
5044                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
5045
5046 fi;
5047
5048           eval "$ac_cv_use_arcstream"
5049           if test "$no_cache" != 1; then
5050             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5051           fi
5052
5053           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
5054             echo "$as_me:$LINENO: result: yes" >&5
5055 echo "${ECHO_T}yes" >&6
5056           else
5057             echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5059           fi
5060
5061
5062           enablestring=
5063           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5064 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
5065           no_cache=0
5066           # Check whether --enable-backtrace or --disable-backtrace was given.
5067 if test "${enable_backtrace+set}" = set; then
5068   enableval="$enable_backtrace"
5069
5070                           if test "$enableval" = yes; then
5071                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5072                           else
5073                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5074                           fi
5075
5076 else
5077
5078                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5079                           if test "x$LINE" != x ; then
5080                             eval "DEFAULT_$LINE"
5081                           else
5082                             no_cache=1
5083                           fi
5084
5085                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5086
5087 fi;
5088
5089           eval "$ac_cv_use_backtrace"
5090           if test "$no_cache" != 1; then
5091             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5092           fi
5093
5094           if test "$wxUSE_STACKWALKER" = yes; then
5095             echo "$as_me:$LINENO: result: yes" >&5
5096 echo "${ECHO_T}yes" >&6
5097           else
5098             echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6
5100           fi
5101
5102
5103           enablestring=
5104           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5105 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5106           no_cache=0
5107           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5108 if test "${enable_catch_segvs+set}" = set; then
5109   enableval="$enable_catch_segvs"
5110
5111                           if test "$enableval" = yes; then
5112                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5113                           else
5114                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5115                           fi
5116
5117 else
5118
5119                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5120                           if test "x$LINE" != x ; then
5121                             eval "DEFAULT_$LINE"
5122                           else
5123                             no_cache=1
5124                           fi
5125
5126                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5127
5128 fi;
5129
5130           eval "$ac_cv_use_catch_segvs"
5131           if test "$no_cache" != 1; then
5132             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5133           fi
5134
5135           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5136             echo "$as_me:$LINENO: result: yes" >&5
5137 echo "${ECHO_T}yes" >&6
5138           else
5139             echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6
5141           fi
5142
5143
5144           enablestring=
5145           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5146 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5147           no_cache=0
5148           # Check whether --enable-cmdline or --disable-cmdline was given.
5149 if test "${enable_cmdline+set}" = set; then
5150   enableval="$enable_cmdline"
5151
5152                           if test "$enableval" = yes; then
5153                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5154                           else
5155                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5156                           fi
5157
5158 else
5159
5160                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5161                           if test "x$LINE" != x ; then
5162                             eval "DEFAULT_$LINE"
5163                           else
5164                             no_cache=1
5165                           fi
5166
5167                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5168
5169 fi;
5170
5171           eval "$ac_cv_use_cmdline"
5172           if test "$no_cache" != 1; then
5173             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5174           fi
5175
5176           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5177             echo "$as_me:$LINENO: result: yes" >&5
5178 echo "${ECHO_T}yes" >&6
5179           else
5180             echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6
5182           fi
5183
5184
5185           enablestring=
5186           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5187 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5188           no_cache=0
5189           # Check whether --enable-datetime or --disable-datetime was given.
5190 if test "${enable_datetime+set}" = set; then
5191   enableval="$enable_datetime"
5192
5193                           if test "$enableval" = yes; then
5194                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5195                           else
5196                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5197                           fi
5198
5199 else
5200
5201                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5202                           if test "x$LINE" != x ; then
5203                             eval "DEFAULT_$LINE"
5204                           else
5205                             no_cache=1
5206                           fi
5207
5208                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5209
5210 fi;
5211
5212           eval "$ac_cv_use_datetime"
5213           if test "$no_cache" != 1; then
5214             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5215           fi
5216
5217           if test "$wxUSE_DATETIME" = yes; then
5218             echo "$as_me:$LINENO: result: yes" >&5
5219 echo "${ECHO_T}yes" >&6
5220           else
5221             echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6
5223           fi
5224
5225
5226           enablestring=
5227           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5228 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5229           no_cache=0
5230           # Check whether --enable-debugreport or --disable-debugreport was given.
5231 if test "${enable_debugreport+set}" = set; then
5232   enableval="$enable_debugreport"
5233
5234                           if test "$enableval" = yes; then
5235                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5236                           else
5237                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5238                           fi
5239
5240 else
5241
5242                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5243                           if test "x$LINE" != x ; then
5244                             eval "DEFAULT_$LINE"
5245                           else
5246                             no_cache=1
5247                           fi
5248
5249                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5250
5251 fi;
5252
5253           eval "$ac_cv_use_debugreport"
5254           if test "$no_cache" != 1; then
5255             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5256           fi
5257
5258           if test "$wxUSE_DEBUGREPORT" = yes; then
5259             echo "$as_me:$LINENO: result: yes" >&5
5260 echo "${ECHO_T}yes" >&6
5261           else
5262             echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6
5264           fi
5265
5266
5267           enablestring=
5268           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5269 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5270           no_cache=0
5271           # Check whether --enable-dialupman or --disable-dialupman was given.
5272 if test "${enable_dialupman+set}" = set; then
5273   enableval="$enable_dialupman"
5274
5275                           if test "$enableval" = yes; then
5276                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5277                           else
5278                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5279                           fi
5280
5281 else
5282
5283                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5284                           if test "x$LINE" != x ; then
5285                             eval "DEFAULT_$LINE"
5286                           else
5287                             no_cache=1
5288                           fi
5289
5290                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5291
5292 fi;
5293
5294           eval "$ac_cv_use_dialupman"
5295           if test "$no_cache" != 1; then
5296             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5297           fi
5298
5299           if test "$wxUSE_DIALUP_MANAGER" = yes; then
5300             echo "$as_me:$LINENO: result: yes" >&5
5301 echo "${ECHO_T}yes" >&6
5302           else
5303             echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5305           fi
5306
5307
5308           enablestring=
5309           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5310 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5311           no_cache=0
5312           # Check whether --enable-dynlib or --disable-dynlib was given.
5313 if test "${enable_dynlib+set}" = set; then
5314   enableval="$enable_dynlib"
5315
5316                           if test "$enableval" = yes; then
5317                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5318                           else
5319                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5320                           fi
5321
5322 else
5323
5324                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5325                           if test "x$LINE" != x ; then
5326                             eval "DEFAULT_$LINE"
5327                           else
5328                             no_cache=1
5329                           fi
5330
5331                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5332
5333 fi;
5334
5335           eval "$ac_cv_use_dynlib"
5336           if test "$no_cache" != 1; then
5337             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5338           fi
5339
5340           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5341             echo "$as_me:$LINENO: result: yes" >&5
5342 echo "${ECHO_T}yes" >&6
5343           else
5344             echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5346           fi
5347
5348
5349           enablestring=
5350           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5351 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5352           no_cache=0
5353           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5354 if test "${enable_dynamicloader+set}" = set; then
5355   enableval="$enable_dynamicloader"
5356
5357                           if test "$enableval" = yes; then
5358                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5359                           else
5360                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5361                           fi
5362
5363 else
5364
5365                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5366                           if test "x$LINE" != x ; then
5367                             eval "DEFAULT_$LINE"
5368                           else
5369                             no_cache=1
5370                           fi
5371
5372                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5373
5374 fi;
5375
5376           eval "$ac_cv_use_dynamicloader"
5377           if test "$no_cache" != 1; then
5378             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5379           fi
5380
5381           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5382             echo "$as_me:$LINENO: result: yes" >&5
5383 echo "${ECHO_T}yes" >&6
5384           else
5385             echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5387           fi
5388
5389
5390           enablestring=
5391           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5392 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5393           no_cache=0
5394           # Check whether --enable-exceptions or --disable-exceptions was given.
5395 if test "${enable_exceptions+set}" = set; then
5396   enableval="$enable_exceptions"
5397
5398                           if test "$enableval" = yes; then
5399                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5400                           else
5401                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5402                           fi
5403
5404 else
5405
5406                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5407                           if test "x$LINE" != x ; then
5408                             eval "DEFAULT_$LINE"
5409                           else
5410                             no_cache=1
5411                           fi
5412
5413                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5414
5415 fi;
5416
5417           eval "$ac_cv_use_exceptions"
5418           if test "$no_cache" != 1; then
5419             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5420           fi
5421
5422           if test "$wxUSE_EXCEPTIONS" = yes; then
5423             echo "$as_me:$LINENO: result: yes" >&5
5424 echo "${ECHO_T}yes" >&6
5425           else
5426             echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5428           fi
5429
5430
5431           enablestring=
5432           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5433 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5434           no_cache=0
5435           # Check whether --enable-ffile or --disable-ffile was given.
5436 if test "${enable_ffile+set}" = set; then
5437   enableval="$enable_ffile"
5438
5439                           if test "$enableval" = yes; then
5440                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5441                           else
5442                             ac_cv_use_ffile='wxUSE_FFILE=no'
5443                           fi
5444
5445 else
5446
5447                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5448                           if test "x$LINE" != x ; then
5449                             eval "DEFAULT_$LINE"
5450                           else
5451                             no_cache=1
5452                           fi
5453
5454                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5455
5456 fi;
5457
5458           eval "$ac_cv_use_ffile"
5459           if test "$no_cache" != 1; then
5460             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5461           fi
5462
5463           if test "$wxUSE_FFILE" = yes; then
5464             echo "$as_me:$LINENO: result: yes" >&5
5465 echo "${ECHO_T}yes" >&6
5466           else
5467             echo "$as_me:$LINENO: result: no" >&5
5468 echo "${ECHO_T}no" >&6
5469           fi
5470
5471
5472           enablestring=
5473           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5474 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5475           no_cache=0
5476           # Check whether --enable-file or --disable-file was given.
5477 if test "${enable_file+set}" = set; then
5478   enableval="$enable_file"
5479
5480                           if test "$enableval" = yes; then
5481                             ac_cv_use_file='wxUSE_FILE=yes'
5482                           else
5483                             ac_cv_use_file='wxUSE_FILE=no'
5484                           fi
5485
5486 else
5487
5488                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5489                           if test "x$LINE" != x ; then
5490                             eval "DEFAULT_$LINE"
5491                           else
5492                             no_cache=1
5493                           fi
5494
5495                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5496
5497 fi;
5498
5499           eval "$ac_cv_use_file"
5500           if test "$no_cache" != 1; then
5501             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5502           fi
5503
5504           if test "$wxUSE_FILE" = yes; then
5505             echo "$as_me:$LINENO: result: yes" >&5
5506 echo "${ECHO_T}yes" >&6
5507           else
5508             echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6
5510           fi
5511
5512
5513           enablestring=
5514           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5515 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5516           no_cache=0
5517           # Check whether --enable-filesystem or --disable-filesystem was given.
5518 if test "${enable_filesystem+set}" = set; then
5519   enableval="$enable_filesystem"
5520
5521                           if test "$enableval" = yes; then
5522                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5523                           else
5524                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5525                           fi
5526
5527 else
5528
5529                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5530                           if test "x$LINE" != x ; then
5531                             eval "DEFAULT_$LINE"
5532                           else
5533                             no_cache=1
5534                           fi
5535
5536                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5537
5538 fi;
5539
5540           eval "$ac_cv_use_filesystem"
5541           if test "$no_cache" != 1; then
5542             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5543           fi
5544
5545           if test "$wxUSE_FILESYSTEM" = yes; then
5546             echo "$as_me:$LINENO: result: yes" >&5
5547 echo "${ECHO_T}yes" >&6
5548           else
5549             echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5551           fi
5552
5553
5554           enablestring=
5555           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5556 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5557           no_cache=0
5558           # Check whether --enable-fontmap or --disable-fontmap was given.
5559 if test "${enable_fontmap+set}" = set; then
5560   enableval="$enable_fontmap"
5561
5562                           if test "$enableval" = yes; then
5563                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5564                           else
5565                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5566                           fi
5567
5568 else
5569
5570                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5571                           if test "x$LINE" != x ; then
5572                             eval "DEFAULT_$LINE"
5573                           else
5574                             no_cache=1
5575                           fi
5576
5577                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5578
5579 fi;
5580
5581           eval "$ac_cv_use_fontmap"
5582           if test "$no_cache" != 1; then
5583             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5584           fi
5585
5586           if test "$wxUSE_FONTMAP" = yes; then
5587             echo "$as_me:$LINENO: result: yes" >&5
5588 echo "${ECHO_T}yes" >&6
5589           else
5590             echo "$as_me:$LINENO: result: no" >&5
5591 echo "${ECHO_T}no" >&6
5592           fi
5593
5594
5595           enablestring=
5596           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5597 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5598           no_cache=0
5599           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5600 if test "${enable_fs_inet+set}" = set; then
5601   enableval="$enable_fs_inet"
5602
5603                           if test "$enableval" = yes; then
5604                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5605                           else
5606                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5607                           fi
5608
5609 else
5610
5611                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5612                           if test "x$LINE" != x ; then
5613                             eval "DEFAULT_$LINE"
5614                           else
5615                             no_cache=1
5616                           fi
5617
5618                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5619
5620 fi;
5621
5622           eval "$ac_cv_use_fs_inet"
5623           if test "$no_cache" != 1; then
5624             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5625           fi
5626
5627           if test "$wxUSE_FS_INET" = yes; then
5628             echo "$as_me:$LINENO: result: yes" >&5
5629 echo "${ECHO_T}yes" >&6
5630           else
5631             echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5633           fi
5634
5635
5636           enablestring=
5637           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5638 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5639           no_cache=0
5640           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5641 if test "${enable_fs_zip+set}" = set; then
5642   enableval="$enable_fs_zip"
5643
5644                           if test "$enableval" = yes; then
5645                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5646                           else
5647                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5648                           fi
5649
5650 else
5651
5652                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5653                           if test "x$LINE" != x ; then
5654                             eval "DEFAULT_$LINE"
5655                           else
5656                             no_cache=1
5657                           fi
5658
5659                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5660
5661 fi;
5662
5663           eval "$ac_cv_use_fs_zip"
5664           if test "$no_cache" != 1; then
5665             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5666           fi
5667
5668           if test "$wxUSE_FS_ZIP" = yes; then
5669             echo "$as_me:$LINENO: result: yes" >&5
5670 echo "${ECHO_T}yes" >&6
5671           else
5672             echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5674           fi
5675
5676
5677           enablestring=
5678           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5679 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5680           no_cache=0
5681           # Check whether --enable-geometry or --disable-geometry was given.
5682 if test "${enable_geometry+set}" = set; then
5683   enableval="$enable_geometry"
5684
5685                           if test "$enableval" = yes; then
5686                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5687                           else
5688                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5689                           fi
5690
5691 else
5692
5693                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5694                           if test "x$LINE" != x ; then
5695                             eval "DEFAULT_$LINE"
5696                           else
5697                             no_cache=1
5698                           fi
5699
5700                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5701
5702 fi;
5703
5704           eval "$ac_cv_use_geometry"
5705           if test "$no_cache" != 1; then
5706             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5707           fi
5708
5709           if test "$wxUSE_GEOMETRY" = yes; then
5710             echo "$as_me:$LINENO: result: yes" >&5
5711 echo "${ECHO_T}yes" >&6
5712           else
5713             echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5715           fi
5716
5717
5718           enablestring=
5719           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5720 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5721           no_cache=0
5722           # Check whether --enable-log or --disable-log was given.
5723 if test "${enable_log+set}" = set; then
5724   enableval="$enable_log"
5725
5726                           if test "$enableval" = yes; then
5727                             ac_cv_use_log='wxUSE_LOG=yes'
5728                           else
5729                             ac_cv_use_log='wxUSE_LOG=no'
5730                           fi
5731
5732 else
5733
5734                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5735                           if test "x$LINE" != x ; then
5736                             eval "DEFAULT_$LINE"
5737                           else
5738                             no_cache=1
5739                           fi
5740
5741                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5742
5743 fi;
5744
5745           eval "$ac_cv_use_log"
5746           if test "$no_cache" != 1; then
5747             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5748           fi
5749
5750           if test "$wxUSE_LOG" = yes; then
5751             echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6
5753           else
5754             echo "$as_me:$LINENO: result: no" >&5
5755 echo "${ECHO_T}no" >&6
5756           fi
5757
5758
5759           enablestring=
5760           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5761 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5762           no_cache=0
5763           # Check whether --enable-longlong or --disable-longlong was given.
5764 if test "${enable_longlong+set}" = set; then
5765   enableval="$enable_longlong"
5766
5767                           if test "$enableval" = yes; then
5768                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5769                           else
5770                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5771                           fi
5772
5773 else
5774
5775                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5776                           if test "x$LINE" != x ; then
5777                             eval "DEFAULT_$LINE"
5778                           else
5779                             no_cache=1
5780                           fi
5781
5782                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5783
5784 fi;
5785
5786           eval "$ac_cv_use_longlong"
5787           if test "$no_cache" != 1; then
5788             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5789           fi
5790
5791           if test "$wxUSE_LONGLONG" = yes; then
5792             echo "$as_me:$LINENO: result: yes" >&5
5793 echo "${ECHO_T}yes" >&6
5794           else
5795             echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5797           fi
5798
5799
5800           enablestring=
5801           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5802 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5803           no_cache=0
5804           # Check whether --enable-mimetype or --disable-mimetype was given.
5805 if test "${enable_mimetype+set}" = set; then
5806   enableval="$enable_mimetype"
5807
5808                           if test "$enableval" = yes; then
5809                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5810                           else
5811                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5812                           fi
5813
5814 else
5815
5816                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5817                           if test "x$LINE" != x ; then
5818                             eval "DEFAULT_$LINE"
5819                           else
5820                             no_cache=1
5821                           fi
5822
5823                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5824
5825 fi;
5826
5827           eval "$ac_cv_use_mimetype"
5828           if test "$no_cache" != 1; then
5829             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5830           fi
5831
5832           if test "$wxUSE_MIMETYPE" = yes; then
5833             echo "$as_me:$LINENO: result: yes" >&5
5834 echo "${ECHO_T}yes" >&6
5835           else
5836             echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5838           fi
5839
5840
5841           enablestring=
5842           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5843 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5844           no_cache=0
5845           # Check whether --enable-mslu or --disable-mslu was given.
5846 if test "${enable_mslu+set}" = set; then
5847   enableval="$enable_mslu"
5848
5849                           if test "$enableval" = yes; then
5850                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5851                           else
5852                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5853                           fi
5854
5855 else
5856
5857                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5858                           if test "x$LINE" != x ; then
5859                             eval "DEFAULT_$LINE"
5860                           else
5861                             no_cache=1
5862                           fi
5863
5864                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5865
5866 fi;
5867
5868           eval "$ac_cv_use_mslu"
5869           if test "$no_cache" != 1; then
5870             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5871           fi
5872
5873           if test "$wxUSE_UNICODE_MSLU" = yes; then
5874             echo "$as_me:$LINENO: result: yes" >&5
5875 echo "${ECHO_T}yes" >&6
5876           else
5877             echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5879           fi
5880
5881
5882           enablestring=
5883           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5884 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5885           no_cache=0
5886           # Check whether --enable-snglinst or --disable-snglinst was given.
5887 if test "${enable_snglinst+set}" = set; then
5888   enableval="$enable_snglinst"
5889
5890                           if test "$enableval" = yes; then
5891                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5892                           else
5893                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5894                           fi
5895
5896 else
5897
5898                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5899                           if test "x$LINE" != x ; then
5900                             eval "DEFAULT_$LINE"
5901                           else
5902                             no_cache=1
5903                           fi
5904
5905                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5906
5907 fi;
5908
5909           eval "$ac_cv_use_snglinst"
5910           if test "$no_cache" != 1; then
5911             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5912           fi
5913
5914           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5915             echo "$as_me:$LINENO: result: yes" >&5
5916 echo "${ECHO_T}yes" >&6
5917           else
5918             echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5920           fi
5921
5922
5923           enablestring=
5924           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5925 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5926           no_cache=0
5927           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5928 if test "${enable_std_iostreams+set}" = set; then
5929   enableval="$enable_std_iostreams"
5930
5931                           if test "$enableval" = yes; then
5932                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5933                           else
5934                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5935                           fi
5936
5937 else
5938
5939                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5940                           if test "x$LINE" != x ; then
5941                             eval "DEFAULT_$LINE"
5942                           else
5943                             no_cache=1
5944                           fi
5945
5946                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5947
5948 fi;
5949
5950           eval "$ac_cv_use_std_iostreams"
5951           if test "$no_cache" != 1; then
5952             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5953           fi
5954
5955           if test "$wxUSE_STD_IOSTREAM" = yes; then
5956             echo "$as_me:$LINENO: result: yes" >&5
5957 echo "${ECHO_T}yes" >&6
5958           else
5959             echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5961           fi
5962
5963
5964           enablestring=
5965           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5966 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5967           no_cache=0
5968           # Check whether --enable-std_string or --disable-std_string was given.
5969 if test "${enable_std_string+set}" = set; then
5970   enableval="$enable_std_string"
5971
5972                           if test "$enableval" = yes; then
5973                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5974                           else
5975                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5976                           fi
5977
5978 else
5979
5980                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5981                           if test "x$LINE" != x ; then
5982                             eval "DEFAULT_$LINE"
5983                           else
5984                             no_cache=1
5985                           fi
5986
5987                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5988
5989 fi;
5990
5991           eval "$ac_cv_use_std_string"
5992           if test "$no_cache" != 1; then
5993             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5994           fi
5995
5996           if test "$wxUSE_STD_STRING" = yes; then
5997             echo "$as_me:$LINENO: result: yes" >&5
5998 echo "${ECHO_T}yes" >&6
5999           else
6000             echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6
6002           fi
6003
6004
6005           enablestring=
6006           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6007 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
6008           no_cache=0
6009           # Check whether --enable-stdpaths or --disable-stdpaths was given.
6010 if test "${enable_stdpaths+set}" = set; then
6011   enableval="$enable_stdpaths"
6012
6013                           if test "$enableval" = yes; then
6014                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
6015                           else
6016                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
6017                           fi
6018
6019 else
6020
6021                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
6022                           if test "x$LINE" != x ; then
6023                             eval "DEFAULT_$LINE"
6024                           else
6025                             no_cache=1
6026                           fi
6027
6028                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
6029
6030 fi;
6031
6032           eval "$ac_cv_use_stdpaths"
6033           if test "$no_cache" != 1; then
6034             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
6035           fi
6036
6037           if test "$wxUSE_STDPATHS" = yes; then
6038             echo "$as_me:$LINENO: result: yes" >&5
6039 echo "${ECHO_T}yes" >&6
6040           else
6041             echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6
6043           fi
6044
6045
6046           enablestring=
6047           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6048 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6049           no_cache=0
6050           # Check whether --enable-stopwatch or --disable-stopwatch was given.
6051 if test "${enable_stopwatch+set}" = set; then
6052   enableval="$enable_stopwatch"
6053
6054                           if test "$enableval" = yes; then
6055                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6056                           else
6057                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6058                           fi
6059
6060 else
6061
6062                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6063                           if test "x$LINE" != x ; then
6064                             eval "DEFAULT_$LINE"
6065                           else
6066                             no_cache=1
6067                           fi
6068
6069                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6070
6071 fi;
6072
6073           eval "$ac_cv_use_stopwatch"
6074           if test "$no_cache" != 1; then
6075             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6076           fi
6077
6078           if test "$wxUSE_STOPWATCH" = yes; then
6079             echo "$as_me:$LINENO: result: yes" >&5
6080 echo "${ECHO_T}yes" >&6
6081           else
6082             echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6
6084           fi
6085
6086
6087           enablestring=
6088           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6089 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6090           no_cache=0
6091           # Check whether --enable-streams or --disable-streams was given.
6092 if test "${enable_streams+set}" = set; then
6093   enableval="$enable_streams"
6094
6095                           if test "$enableval" = yes; then
6096                             ac_cv_use_streams='wxUSE_STREAMS=yes'
6097                           else
6098                             ac_cv_use_streams='wxUSE_STREAMS=no'
6099                           fi
6100
6101 else
6102
6103                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6104                           if test "x$LINE" != x ; then
6105                             eval "DEFAULT_$LINE"
6106                           else
6107                             no_cache=1
6108                           fi
6109
6110                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6111
6112 fi;
6113
6114           eval "$ac_cv_use_streams"
6115           if test "$no_cache" != 1; then
6116             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6117           fi
6118
6119           if test "$wxUSE_STREAMS" = yes; then
6120             echo "$as_me:$LINENO: result: yes" >&5
6121 echo "${ECHO_T}yes" >&6
6122           else
6123             echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6
6125           fi
6126
6127
6128           enablestring=
6129           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6130 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6131           no_cache=0
6132           # Check whether --enable-system_options or --disable-system_options was given.
6133 if test "${enable_system_options+set}" = set; then
6134   enableval="$enable_system_options"
6135
6136                           if test "$enableval" = yes; then
6137                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6138                           else
6139                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6140                           fi
6141
6142 else
6143
6144                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6145                           if test "x$LINE" != x ; then
6146                             eval "DEFAULT_$LINE"
6147                           else
6148                             no_cache=1
6149                           fi
6150
6151                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6152
6153 fi;
6154
6155           eval "$ac_cv_use_system_options"
6156           if test "$no_cache" != 1; then
6157             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6158           fi
6159
6160           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6161             echo "$as_me:$LINENO: result: yes" >&5
6162 echo "${ECHO_T}yes" >&6
6163           else
6164             echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6
6166           fi
6167
6168
6169           enablestring=
6170           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6171 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6172           no_cache=0
6173           # Check whether --enable-textbuf or --disable-textbuf was given.
6174 if test "${enable_textbuf+set}" = set; then
6175   enableval="$enable_textbuf"
6176
6177                           if test "$enableval" = yes; then
6178                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6179                           else
6180                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6181                           fi
6182
6183 else
6184
6185                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6186                           if test "x$LINE" != x ; then
6187                             eval "DEFAULT_$LINE"
6188                           else
6189                             no_cache=1
6190                           fi
6191
6192                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6193
6194 fi;
6195
6196           eval "$ac_cv_use_textbuf"
6197           if test "$no_cache" != 1; then
6198             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6199           fi
6200
6201           if test "$wxUSE_TEXTBUFFER" = yes; then
6202             echo "$as_me:$LINENO: result: yes" >&5
6203 echo "${ECHO_T}yes" >&6
6204           else
6205             echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6
6207           fi
6208
6209
6210           enablestring=
6211           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6212 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6213           no_cache=0
6214           # Check whether --enable-textfile or --disable-textfile was given.
6215 if test "${enable_textfile+set}" = set; then
6216   enableval="$enable_textfile"
6217
6218                           if test "$enableval" = yes; then
6219                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6220                           else
6221                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6222                           fi
6223
6224 else
6225
6226                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6227                           if test "x$LINE" != x ; then
6228                             eval "DEFAULT_$LINE"
6229                           else
6230                             no_cache=1
6231                           fi
6232
6233                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6234
6235 fi;
6236
6237           eval "$ac_cv_use_textfile"
6238           if test "$no_cache" != 1; then
6239             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6240           fi
6241
6242           if test "$wxUSE_TEXTFILE" = yes; then
6243             echo "$as_me:$LINENO: result: yes" >&5
6244 echo "${ECHO_T}yes" >&6
6245           else
6246             echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6
6248           fi
6249
6250
6251           enablestring=
6252           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6253 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6254           no_cache=0
6255           # Check whether --enable-timer or --disable-timer was given.
6256 if test "${enable_timer+set}" = set; then
6257   enableval="$enable_timer"
6258
6259                           if test "$enableval" = yes; then
6260                             ac_cv_use_timer='wxUSE_TIMER=yes'
6261                           else
6262                             ac_cv_use_timer='wxUSE_TIMER=no'
6263                           fi
6264
6265 else
6266
6267                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6268                           if test "x$LINE" != x ; then
6269                             eval "DEFAULT_$LINE"
6270                           else
6271                             no_cache=1
6272                           fi
6273
6274                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6275
6276 fi;
6277
6278           eval "$ac_cv_use_timer"
6279           if test "$no_cache" != 1; then
6280             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6281           fi
6282
6283           if test "$wxUSE_TIMER" = yes; then
6284             echo "$as_me:$LINENO: result: yes" >&5
6285 echo "${ECHO_T}yes" >&6
6286           else
6287             echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6
6289           fi
6290
6291
6292           enablestring=
6293           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6294 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6295           no_cache=0
6296           # Check whether --enable-unicode or --disable-unicode was given.
6297 if test "${enable_unicode+set}" = set; then
6298   enableval="$enable_unicode"
6299
6300                           if test "$enableval" = yes; then
6301                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
6302                           else
6303                             ac_cv_use_unicode='wxUSE_UNICODE=no'
6304                           fi
6305
6306 else
6307
6308                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6309                           if test "x$LINE" != x ; then
6310                             eval "DEFAULT_$LINE"
6311                           else
6312                             no_cache=1
6313                           fi
6314
6315                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6316
6317 fi;
6318
6319           eval "$ac_cv_use_unicode"
6320           if test "$no_cache" != 1; then
6321             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6322           fi
6323
6324           if test "$wxUSE_UNICODE" = yes; then
6325             echo "$as_me:$LINENO: result: yes" >&5
6326 echo "${ECHO_T}yes" >&6
6327           else
6328             echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6
6330           fi
6331
6332
6333           enablestring=
6334           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6335 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6336           no_cache=0
6337           # Check whether --enable-sound or --disable-sound was given.
6338 if test "${enable_sound+set}" = set; then
6339   enableval="$enable_sound"
6340
6341                           if test "$enableval" = yes; then
6342                             ac_cv_use_sound='wxUSE_SOUND=yes'
6343                           else
6344                             ac_cv_use_sound='wxUSE_SOUND=no'
6345                           fi
6346
6347 else
6348
6349                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6350                           if test "x$LINE" != x ; then
6351                             eval "DEFAULT_$LINE"
6352                           else
6353                             no_cache=1
6354                           fi
6355
6356                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6357
6358 fi;
6359
6360           eval "$ac_cv_use_sound"
6361           if test "$no_cache" != 1; then
6362             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6363           fi
6364
6365           if test "$wxUSE_SOUND" = yes; then
6366             echo "$as_me:$LINENO: result: yes" >&5
6367 echo "${ECHO_T}yes" >&6
6368           else
6369             echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6
6371           fi
6372
6373
6374           enablestring=
6375           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6376 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6377           no_cache=0
6378           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6379 if test "${enable_mediactrl+set}" = set; then
6380   enableval="$enable_mediactrl"
6381
6382                           if test "$enableval" = yes; then
6383                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6384                           else
6385                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6386                           fi
6387
6388 else
6389
6390                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6391                           if test "x$LINE" != x ; then
6392                             eval "DEFAULT_$LINE"
6393                           else
6394                             no_cache=1
6395                           fi
6396
6397                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6398
6399 fi;
6400
6401           eval "$ac_cv_use_mediactrl"
6402           if test "$no_cache" != 1; then
6403             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6404           fi
6405
6406           if test "$wxUSE_MEDIACTRL" = yes; then
6407             echo "$as_me:$LINENO: result: yes" >&5
6408 echo "${ECHO_T}yes" >&6
6409           else
6410             echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6412           fi
6413
6414
6415           enablestring=
6416           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6417 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6418           no_cache=0
6419           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6420 if test "${enable_gstreamer8+set}" = set; then
6421   enableval="$enable_gstreamer8"
6422
6423                           if test "$enableval" = yes; then
6424                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6425                           else
6426                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6427                           fi
6428
6429 else
6430
6431                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6432                           if test "x$LINE" != x ; then
6433                             eval "DEFAULT_$LINE"
6434                           else
6435                             no_cache=1
6436                           fi
6437
6438                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6439
6440 fi;
6441
6442           eval "$ac_cv_use_gstreamer8"
6443           if test "$no_cache" != 1; then
6444             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6445           fi
6446
6447           if test "$wxUSE_GSTREAMER8" = yes; then
6448             echo "$as_me:$LINENO: result: yes" >&5
6449 echo "${ECHO_T}yes" >&6
6450           else
6451             echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6
6453           fi
6454
6455
6456           enablestring=
6457           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6458 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
6459           no_cache=0
6460           # Check whether --enable-printfposparam or --disable-printfposparam was given.
6461 if test "${enable_printfposparam+set}" = set; then
6462   enableval="$enable_printfposparam"
6463
6464                           if test "$enableval" = yes; then
6465                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
6466                           else
6467                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
6468                           fi
6469
6470 else
6471
6472                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
6473                           if test "x$LINE" != x ; then
6474                             eval "DEFAULT_$LINE"
6475                           else
6476                             no_cache=1
6477                           fi
6478
6479                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
6480
6481 fi;
6482
6483           eval "$ac_cv_use_printfposparam"
6484           if test "$no_cache" != 1; then
6485             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
6486           fi
6487
6488           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
6489             echo "$as_me:$LINENO: result: yes" >&5
6490 echo "${ECHO_T}yes" >&6
6491           else
6492             echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6
6494           fi
6495
6496
6497           enablestring=
6498           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6499 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6500           no_cache=0
6501           # Check whether --enable-zipstream or --disable-zipstream was given.
6502 if test "${enable_zipstream+set}" = set; then
6503   enableval="$enable_zipstream"
6504
6505                           if test "$enableval" = yes; then
6506                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6507                           else
6508                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6509                           fi
6510
6511 else
6512
6513                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6514                           if test "x$LINE" != x ; then
6515                             eval "DEFAULT_$LINE"
6516                           else
6517                             no_cache=1
6518                           fi
6519
6520                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6521
6522 fi;
6523
6524           eval "$ac_cv_use_zipstream"
6525           if test "$no_cache" != 1; then
6526             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6527           fi
6528
6529           if test "$wxUSE_ZIPSTREAM" = yes; then
6530             echo "$as_me:$LINENO: result: yes" >&5
6531 echo "${ECHO_T}yes" >&6
6532           else
6533             echo "$as_me:$LINENO: result: no" >&5
6534 echo "${ECHO_T}no" >&6
6535           fi
6536
6537
6538
6539           enablestring=
6540           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6541 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6542           no_cache=0
6543           # Check whether --enable-url or --disable-url was given.
6544 if test "${enable_url+set}" = set; then
6545   enableval="$enable_url"
6546
6547                           if test "$enableval" = yes; then
6548                             ac_cv_use_url='wxUSE_URL=yes'
6549                           else
6550                             ac_cv_use_url='wxUSE_URL=no'
6551                           fi
6552
6553 else
6554
6555                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6556                           if test "x$LINE" != x ; then
6557                             eval "DEFAULT_$LINE"
6558                           else
6559                             no_cache=1
6560                           fi
6561
6562                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6563
6564 fi;
6565
6566           eval "$ac_cv_use_url"
6567           if test "$no_cache" != 1; then
6568             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6569           fi
6570
6571           if test "$wxUSE_URL" = yes; then
6572             echo "$as_me:$LINENO: result: yes" >&5
6573 echo "${ECHO_T}yes" >&6
6574           else
6575             echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6
6577           fi
6578
6579
6580           enablestring=
6581           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6582 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6583           no_cache=0
6584           # Check whether --enable-variant or --disable-variant was given.
6585 if test "${enable_variant+set}" = set; then
6586   enableval="$enable_variant"
6587
6588                           if test "$enableval" = yes; then
6589                             ac_cv_use_variant='wxUSE_VARIANT=yes'
6590                           else
6591                             ac_cv_use_variant='wxUSE_VARIANT=no'
6592                           fi
6593
6594 else
6595
6596                           LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6597                           if test "x$LINE" != x ; then
6598                             eval "DEFAULT_$LINE"
6599                           else
6600                             no_cache=1
6601                           fi
6602
6603                           ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6604
6605 fi;
6606
6607           eval "$ac_cv_use_variant"
6608           if test "$no_cache" != 1; then
6609             echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6610           fi
6611
6612           if test "$wxUSE_VARIANT" = yes; then
6613             echo "$as_me:$LINENO: result: yes" >&5
6614 echo "${ECHO_T}yes" >&6
6615           else
6616             echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6
6618           fi
6619
6620
6621           enablestring=
6622           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6623 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6624           no_cache=0
6625           # Check whether --enable-protocol or --disable-protocol was given.
6626 if test "${enable_protocol+set}" = set; then
6627   enableval="$enable_protocol"
6628
6629                           if test "$enableval" = yes; then
6630                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6631                           else
6632                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6633                           fi
6634
6635 else
6636
6637                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6638                           if test "x$LINE" != x ; then
6639                             eval "DEFAULT_$LINE"
6640                           else
6641                             no_cache=1
6642                           fi
6643
6644                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6645
6646 fi;
6647
6648           eval "$ac_cv_use_protocol"
6649           if test "$no_cache" != 1; then
6650             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6651           fi
6652
6653           if test "$wxUSE_PROTOCOL" = yes; then
6654             echo "$as_me:$LINENO: result: yes" >&5
6655 echo "${ECHO_T}yes" >&6
6656           else
6657             echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6
6659           fi
6660
6661
6662           enablestring=
6663           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6664 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6665           no_cache=0
6666           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6667 if test "${enable_protocol_http+set}" = set; then
6668   enableval="$enable_protocol_http"
6669
6670                           if test "$enableval" = yes; then
6671                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6672                           else
6673                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6674                           fi
6675
6676 else
6677
6678                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6679                           if test "x$LINE" != x ; then
6680                             eval "DEFAULT_$LINE"
6681                           else
6682                             no_cache=1
6683                           fi
6684
6685                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6686
6687 fi;
6688
6689           eval "$ac_cv_use_protocol_http"
6690           if test "$no_cache" != 1; then
6691             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6692           fi
6693
6694           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6695             echo "$as_me:$LINENO: result: yes" >&5
6696 echo "${ECHO_T}yes" >&6
6697           else
6698             echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6
6700           fi
6701
6702
6703           enablestring=
6704           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6705 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6706           no_cache=0
6707           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6708 if test "${enable_protocol_ftp+set}" = set; then
6709   enableval="$enable_protocol_ftp"
6710
6711                           if test "$enableval" = yes; then
6712                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6713                           else
6714                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6715                           fi
6716
6717 else
6718
6719                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6720                           if test "x$LINE" != x ; then
6721                             eval "DEFAULT_$LINE"
6722                           else
6723                             no_cache=1
6724                           fi
6725
6726                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6727
6728 fi;
6729
6730           eval "$ac_cv_use_protocol_ftp"
6731           if test "$no_cache" != 1; then
6732             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6733           fi
6734
6735           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6736             echo "$as_me:$LINENO: result: yes" >&5
6737 echo "${ECHO_T}yes" >&6
6738           else
6739             echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6
6741           fi
6742
6743
6744           enablestring=
6745           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6746 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6747           no_cache=0
6748           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6749 if test "${enable_protocol_file+set}" = set; then
6750   enableval="$enable_protocol_file"
6751
6752                           if test "$enableval" = yes; then
6753                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6754                           else
6755                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6756                           fi
6757
6758 else
6759
6760                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6761                           if test "x$LINE" != x ; then
6762                             eval "DEFAULT_$LINE"
6763                           else
6764                             no_cache=1
6765                           fi
6766
6767                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6768
6769 fi;
6770
6771           eval "$ac_cv_use_protocol_file"
6772           if test "$no_cache" != 1; then
6773             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6774           fi
6775
6776           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6777             echo "$as_me:$LINENO: result: yes" >&5
6778 echo "${ECHO_T}yes" >&6
6779           else
6780             echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6
6782           fi
6783
6784
6785
6786
6787
6788           enablestring=
6789           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6790 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6791           no_cache=0
6792           # Check whether --enable-threads or --disable-threads was given.
6793 if test "${enable_threads+set}" = set; then
6794   enableval="$enable_threads"
6795
6796                           if test "$enableval" = yes; then
6797                             ac_cv_use_threads='wxUSE_THREADS=yes'
6798                           else
6799                             ac_cv_use_threads='wxUSE_THREADS=no'
6800                           fi
6801
6802 else
6803
6804                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6805                           if test "x$LINE" != x ; then
6806                             eval "DEFAULT_$LINE"
6807                           else
6808                             no_cache=1
6809                           fi
6810
6811                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6812
6813 fi;
6814
6815           eval "$ac_cv_use_threads"
6816           if test "$no_cache" != 1; then
6817             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6818           fi
6819
6820           if test "$wxUSE_THREADS" = yes; then
6821             echo "$as_me:$LINENO: result: yes" >&5
6822 echo "${ECHO_T}yes" >&6
6823           else
6824             echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6826           fi
6827
6828
6829 if test "$wxUSE_GUI" = "yes"; then
6830
6831
6832
6833           enablestring=
6834           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6835 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6836           no_cache=0
6837           # Check whether --enable-docview or --disable-docview was given.
6838 if test "${enable_docview+set}" = set; then
6839   enableval="$enable_docview"
6840
6841                           if test "$enableval" = yes; then
6842                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6843                           else
6844                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6845                           fi
6846
6847 else
6848
6849                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6850                           if test "x$LINE" != x ; then
6851                             eval "DEFAULT_$LINE"
6852                           else
6853                             no_cache=1
6854                           fi
6855
6856                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6857
6858 fi;
6859
6860           eval "$ac_cv_use_docview"
6861           if test "$no_cache" != 1; then
6862             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6863           fi
6864
6865           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6866             echo "$as_me:$LINENO: result: yes" >&5
6867 echo "${ECHO_T}yes" >&6
6868           else
6869             echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6
6871           fi
6872
6873
6874           enablestring=
6875           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6876 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6877           no_cache=0
6878           # Check whether --enable-help or --disable-help was given.
6879 if test "${enable_help+set}" = set; then
6880   enableval="$enable_help"
6881
6882                           if test "$enableval" = yes; then
6883                             ac_cv_use_help='wxUSE_HELP=yes'
6884                           else
6885                             ac_cv_use_help='wxUSE_HELP=no'
6886                           fi
6887
6888 else
6889
6890                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6891                           if test "x$LINE" != x ; then
6892                             eval "DEFAULT_$LINE"
6893                           else
6894                             no_cache=1
6895                           fi
6896
6897                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6898
6899 fi;
6900
6901           eval "$ac_cv_use_help"
6902           if test "$no_cache" != 1; then
6903             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6904           fi
6905
6906           if test "$wxUSE_HELP" = yes; then
6907             echo "$as_me:$LINENO: result: yes" >&5
6908 echo "${ECHO_T}yes" >&6
6909           else
6910             echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6
6912           fi
6913
6914
6915           enablestring=
6916           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6917 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6918           no_cache=0
6919           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6920 if test "${enable_mshtmlhelp+set}" = set; then
6921   enableval="$enable_mshtmlhelp"
6922
6923                           if test "$enableval" = yes; then
6924                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6925                           else
6926                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6927                           fi
6928
6929 else
6930
6931                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6932                           if test "x$LINE" != x ; then
6933                             eval "DEFAULT_$LINE"
6934                           else
6935                             no_cache=1
6936                           fi
6937
6938                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6939
6940 fi;
6941
6942           eval "$ac_cv_use_mshtmlhelp"
6943           if test "$no_cache" != 1; then
6944             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6945           fi
6946
6947           if test "$wxUSE_MS_HTML_HELP" = yes; then
6948             echo "$as_me:$LINENO: result: yes" >&5
6949 echo "${ECHO_T}yes" >&6
6950           else
6951             echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6
6953           fi
6954
6955
6956           enablestring=
6957           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6958 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6959           no_cache=0
6960           # Check whether --enable-html or --disable-html was given.
6961 if test "${enable_html+set}" = set; then
6962   enableval="$enable_html"
6963
6964                           if test "$enableval" = yes; then
6965                             ac_cv_use_html='wxUSE_HTML=yes'
6966                           else
6967                             ac_cv_use_html='wxUSE_HTML=no'
6968                           fi
6969
6970 else
6971
6972                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6973                           if test "x$LINE" != x ; then
6974                             eval "DEFAULT_$LINE"
6975                           else
6976                             no_cache=1
6977                           fi
6978
6979                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6980
6981 fi;
6982
6983           eval "$ac_cv_use_html"
6984           if test "$no_cache" != 1; then
6985             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6986           fi
6987
6988           if test "$wxUSE_HTML" = yes; then
6989             echo "$as_me:$LINENO: result: yes" >&5
6990 echo "${ECHO_T}yes" >&6
6991           else
6992             echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6
6994           fi
6995
6996
6997           enablestring=
6998           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6999 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7000           no_cache=0
7001           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7002 if test "${enable_htmlhelp+set}" = set; then
7003   enableval="$enable_htmlhelp"
7004
7005                           if test "$enableval" = yes; then
7006                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7007                           else
7008                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7009                           fi
7010
7011 else
7012
7013                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7014                           if test "x$LINE" != x ; then
7015                             eval "DEFAULT_$LINE"
7016                           else
7017                             no_cache=1
7018                           fi
7019
7020                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7021
7022 fi;
7023
7024           eval "$ac_cv_use_htmlhelp"
7025           if test "$no_cache" != 1; then
7026             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7027           fi
7028
7029           if test "$wxUSE_WXHTML_HELP" = yes; then
7030             echo "$as_me:$LINENO: result: yes" >&5
7031 echo "${ECHO_T}yes" >&6
7032           else
7033             echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6
7035           fi
7036
7037
7038           enablestring=
7039           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7040 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7041           no_cache=0
7042           # Check whether --enable-xrc or --disable-xrc was given.
7043 if test "${enable_xrc+set}" = set; then
7044   enableval="$enable_xrc"
7045
7046                           if test "$enableval" = yes; then
7047                             ac_cv_use_xrc='wxUSE_XRC=yes'
7048                           else
7049                             ac_cv_use_xrc='wxUSE_XRC=no'
7050                           fi
7051
7052 else
7053
7054                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7055                           if test "x$LINE" != x ; then
7056                             eval "DEFAULT_$LINE"
7057                           else
7058                             no_cache=1
7059                           fi
7060
7061                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7062
7063 fi;
7064
7065           eval "$ac_cv_use_xrc"
7066           if test "$no_cache" != 1; then
7067             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7068           fi
7069
7070           if test "$wxUSE_XRC" = yes; then
7071             echo "$as_me:$LINENO: result: yes" >&5
7072 echo "${ECHO_T}yes" >&6
7073           else
7074             echo "$as_me:$LINENO: result: no" >&5
7075 echo "${ECHO_T}no" >&6
7076           fi
7077
7078
7079           enablestring=
7080           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7081 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7082           no_cache=0
7083           # Check whether --enable-aui or --disable-aui was given.
7084 if test "${enable_aui+set}" = set; then
7085   enableval="$enable_aui"
7086
7087                           if test "$enableval" = yes; then
7088                             ac_cv_use_aui='wxUSE_AUI=yes'
7089                           else
7090                             ac_cv_use_aui='wxUSE_AUI=no'
7091                           fi
7092
7093 else
7094
7095                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7096                           if test "x$LINE" != x ; then
7097                             eval "DEFAULT_$LINE"
7098                           else
7099                             no_cache=1
7100                           fi
7101
7102                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7103
7104 fi;
7105
7106           eval "$ac_cv_use_aui"
7107           if test "$no_cache" != 1; then
7108             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7109           fi
7110
7111           if test "$wxUSE_AUI" = yes; then
7112             echo "$as_me:$LINENO: result: yes" >&5
7113 echo "${ECHO_T}yes" >&6
7114           else
7115             echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6
7117           fi
7118
7119
7120           enablestring=
7121           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7122 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7123           no_cache=0
7124           # Check whether --enable-constraints or --disable-constraints was given.
7125 if test "${enable_constraints+set}" = set; then
7126   enableval="$enable_constraints"
7127
7128                           if test "$enableval" = yes; then
7129                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7130                           else
7131                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7132                           fi
7133
7134 else
7135
7136                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7137                           if test "x$LINE" != x ; then
7138                             eval "DEFAULT_$LINE"
7139                           else
7140                             no_cache=1
7141                           fi
7142
7143                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7144
7145 fi;
7146
7147           eval "$ac_cv_use_constraints"
7148           if test "$no_cache" != 1; then
7149             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7150           fi
7151
7152           if test "$wxUSE_CONSTRAINTS" = yes; then
7153             echo "$as_me:$LINENO: result: yes" >&5
7154 echo "${ECHO_T}yes" >&6
7155           else
7156             echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7158           fi
7159
7160
7161           enablestring=
7162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7163 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7164           no_cache=0
7165           # Check whether --enable-printarch or --disable-printarch was given.
7166 if test "${enable_printarch+set}" = set; then
7167   enableval="$enable_printarch"
7168
7169                           if test "$enableval" = yes; then
7170                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7171                           else
7172                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7173                           fi
7174
7175 else
7176
7177                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7178                           if test "x$LINE" != x ; then
7179                             eval "DEFAULT_$LINE"
7180                           else
7181                             no_cache=1
7182                           fi
7183
7184                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7185
7186 fi;
7187
7188           eval "$ac_cv_use_printarch"
7189           if test "$no_cache" != 1; then
7190             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7191           fi
7192
7193           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7194             echo "$as_me:$LINENO: result: yes" >&5
7195 echo "${ECHO_T}yes" >&6
7196           else
7197             echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6
7199           fi
7200
7201
7202           enablestring=
7203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7204 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7205           no_cache=0
7206           # Check whether --enable-mdi or --disable-mdi was given.
7207 if test "${enable_mdi+set}" = set; then
7208   enableval="$enable_mdi"
7209
7210                           if test "$enableval" = yes; then
7211                             ac_cv_use_mdi='wxUSE_MDI=yes'
7212                           else
7213                             ac_cv_use_mdi='wxUSE_MDI=no'
7214                           fi
7215
7216 else
7217
7218                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
7219                           if test "x$LINE" != x ; then
7220                             eval "DEFAULT_$LINE"
7221                           else
7222                             no_cache=1
7223                           fi
7224
7225                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7226
7227 fi;
7228
7229           eval "$ac_cv_use_mdi"
7230           if test "$no_cache" != 1; then
7231             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7232           fi
7233
7234           if test "$wxUSE_MDI" = yes; then
7235             echo "$as_me:$LINENO: result: yes" >&5
7236 echo "${ECHO_T}yes" >&6
7237           else
7238             echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6
7240           fi
7241
7242
7243           enablestring=
7244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7245 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7246           no_cache=0
7247           # Check whether --enable-mdidoc or --disable-mdidoc was given.
7248 if test "${enable_mdidoc+set}" = set; then
7249   enableval="$enable_mdidoc"
7250
7251                           if test "$enableval" = yes; then
7252                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7253                           else
7254                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7255                           fi
7256
7257 else
7258
7259                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7260                           if test "x$LINE" != x ; then
7261                             eval "DEFAULT_$LINE"
7262                           else
7263                             no_cache=1
7264                           fi
7265
7266                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7267
7268 fi;
7269
7270           eval "$ac_cv_use_mdidoc"
7271           if test "$no_cache" != 1; then
7272             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7273           fi
7274
7275           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7276             echo "$as_me:$LINENO: result: yes" >&5
7277 echo "${ECHO_T}yes" >&6
7278           else
7279             echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6
7281           fi
7282
7283
7284           enablestring=
7285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7286 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7287           no_cache=0
7288           # Check whether --enable-loggui or --disable-loggui was given.
7289 if test "${enable_loggui+set}" = set; then
7290   enableval="$enable_loggui"
7291
7292                           if test "$enableval" = yes; then
7293                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7294                           else
7295                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
7296                           fi
7297
7298 else
7299
7300                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7301                           if test "x$LINE" != x ; then
7302                             eval "DEFAULT_$LINE"
7303                           else
7304                             no_cache=1
7305                           fi
7306
7307                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7308
7309 fi;
7310
7311           eval "$ac_cv_use_loggui"
7312           if test "$no_cache" != 1; then
7313             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7314           fi
7315
7316           if test "$wxUSE_LOGGUI" = yes; then
7317             echo "$as_me:$LINENO: result: yes" >&5
7318 echo "${ECHO_T}yes" >&6
7319           else
7320             echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6
7322           fi
7323
7324
7325           enablestring=
7326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7327 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7328           no_cache=0
7329           # Check whether --enable-logwin or --disable-logwin was given.
7330 if test "${enable_logwin+set}" = set; then
7331   enableval="$enable_logwin"
7332
7333                           if test "$enableval" = yes; then
7334                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7335                           else
7336                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7337                           fi
7338
7339 else
7340
7341                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7342                           if test "x$LINE" != x ; then
7343                             eval "DEFAULT_$LINE"
7344                           else
7345                             no_cache=1
7346                           fi
7347
7348                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7349
7350 fi;
7351
7352           eval "$ac_cv_use_logwin"
7353           if test "$no_cache" != 1; then
7354             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7355           fi
7356
7357           if test "$wxUSE_LOGWINDOW" = yes; then
7358             echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7360           else
7361             echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6
7363           fi
7364
7365
7366           enablestring=
7367           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7368 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7369           no_cache=0
7370           # Check whether --enable-logdialog or --disable-logdialog was given.
7371 if test "${enable_logdialog+set}" = set; then
7372   enableval="$enable_logdialog"
7373
7374                           if test "$enableval" = yes; then
7375                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7376                           else
7377                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7378                           fi
7379
7380 else
7381
7382                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7383                           if test "x$LINE" != x ; then
7384                             eval "DEFAULT_$LINE"
7385                           else
7386                             no_cache=1
7387                           fi
7388
7389                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7390
7391 fi;
7392
7393           eval "$ac_cv_use_logdialog"
7394           if test "$no_cache" != 1; then
7395             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7396           fi
7397
7398           if test "$wxUSE_LOGDIALOG" = yes; then
7399             echo "$as_me:$LINENO: result: yes" >&5
7400 echo "${ECHO_T}yes" >&6
7401           else
7402             echo "$as_me:$LINENO: result: no" >&5
7403 echo "${ECHO_T}no" >&6
7404           fi
7405
7406
7407           enablestring=
7408           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7409 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7410           no_cache=0
7411           # Check whether --enable-webkit or --disable-webkit was given.
7412 if test "${enable_webkit+set}" = set; then
7413   enableval="$enable_webkit"
7414
7415                           if test "$enableval" = yes; then
7416                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7417                           else
7418                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
7419                           fi
7420
7421 else
7422
7423                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7424                           if test "x$LINE" != x ; then
7425                             eval "DEFAULT_$LINE"
7426                           else
7427                             no_cache=1
7428                           fi
7429
7430                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7431
7432 fi;
7433
7434           eval "$ac_cv_use_webkit"
7435           if test "$no_cache" != 1; then
7436             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7437           fi
7438
7439           if test "$wxUSE_WEBKIT" = yes; then
7440             echo "$as_me:$LINENO: result: yes" >&5
7441 echo "${ECHO_T}yes" >&6
7442           else
7443             echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6
7445           fi
7446
7447
7448           enablestring=
7449           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7450 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7451           no_cache=0
7452           # Check whether --enable-html or --disable-html was given.
7453 if test "${enable_html+set}" = set; then
7454   enableval="$enable_html"
7455
7456                           if test "$enableval" = yes; then
7457                             ac_cv_use_html='wxUSE_RICHTEXT=yes'
7458                           else
7459                             ac_cv_use_html='wxUSE_RICHTEXT=no'
7460                           fi
7461
7462 else
7463
7464                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7465                           if test "x$LINE" != x ; then
7466                             eval "DEFAULT_$LINE"
7467                           else
7468                             no_cache=1
7469                           fi
7470
7471                           ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7472
7473 fi;
7474
7475           eval "$ac_cv_use_html"
7476           if test "$no_cache" != 1; then
7477             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7478           fi
7479
7480           if test "$wxUSE_RICHTEXT" = yes; then
7481             echo "$as_me:$LINENO: result: yes" >&5
7482 echo "${ECHO_T}yes" >&6
7483           else
7484             echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6
7486           fi
7487
7488
7489           enablestring=
7490           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7491 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7492           no_cache=0
7493           # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7494 if test "${enable_graphics_ctx+set}" = set; then
7495   enableval="$enable_graphics_ctx"
7496
7497                           if test "$enableval" = yes; then
7498                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7499                           else
7500                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7501                           fi
7502
7503 else
7504
7505                           LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7506                           if test "x$LINE" != x ; then
7507                             eval "DEFAULT_$LINE"
7508                           else
7509                             no_cache=1
7510                           fi
7511
7512                           ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7513
7514 fi;
7515
7516           eval "$ac_cv_use_graphics_ctx"
7517           if test "$no_cache" != 1; then
7518             echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7519           fi
7520
7521           if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7522             echo "$as_me:$LINENO: result: yes" >&5
7523 echo "${ECHO_T}yes" >&6
7524           else
7525             echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7527           fi
7528
7529
7530
7531           enablestring=
7532           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7533 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7534           no_cache=0
7535           # Check whether --enable-postscript or --disable-postscript was given.
7536 if test "${enable_postscript+set}" = set; then
7537   enableval="$enable_postscript"
7538
7539                           if test "$enableval" = yes; then
7540                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7541                           else
7542                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7543                           fi
7544
7545 else
7546
7547                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7548                           if test "x$LINE" != x ; then
7549                             eval "DEFAULT_$LINE"
7550                           else
7551                             no_cache=1
7552                           fi
7553
7554                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7555
7556 fi;
7557
7558           eval "$ac_cv_use_postscript"
7559           if test "$no_cache" != 1; then
7560             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7561           fi
7562
7563           if test "$wxUSE_POSTSCRIPT" = yes; then
7564             echo "$as_me:$LINENO: result: yes" >&5
7565 echo "${ECHO_T}yes" >&6
7566           else
7567             echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6
7569           fi
7570
7571
7572
7573
7574
7575           enablestring=
7576           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7577 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7578           no_cache=0
7579           # Check whether --enable-prologio or --disable-prologio was given.
7580 if test "${enable_prologio+set}" = set; then
7581   enableval="$enable_prologio"
7582
7583                           if test "$enableval" = yes; then
7584                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7585                           else
7586                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7587                           fi
7588
7589 else
7590
7591                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7592                           if test "x$LINE" != x ; then
7593                             eval "DEFAULT_$LINE"
7594                           else
7595                             no_cache=1
7596                           fi
7597
7598                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7599
7600 fi;
7601
7602           eval "$ac_cv_use_prologio"
7603           if test "$no_cache" != 1; then
7604             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7605           fi
7606
7607           if test "$wxUSE_PROLOGIO" = yes; then
7608             echo "$as_me:$LINENO: result: yes" >&5
7609 echo "${ECHO_T}yes" >&6
7610           else
7611             echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6
7613           fi
7614
7615
7616           enablestring=
7617           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7618 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7619           no_cache=0
7620           # Check whether --enable-resources or --disable-resources was given.
7621 if test "${enable_resources+set}" = set; then
7622   enableval="$enable_resources"
7623
7624                           if test "$enableval" = yes; then
7625                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7626                           else
7627                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7628                           fi
7629
7630 else
7631
7632                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7633                           if test "x$LINE" != x ; then
7634                             eval "DEFAULT_$LINE"
7635                           else
7636                             no_cache=1
7637                           fi
7638
7639                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7640
7641 fi;
7642
7643           eval "$ac_cv_use_resources"
7644           if test "$no_cache" != 1; then
7645             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7646           fi
7647
7648           if test "$wxUSE_RESOURCES" = yes; then
7649             echo "$as_me:$LINENO: result: yes" >&5
7650 echo "${ECHO_T}yes" >&6
7651           else
7652             echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7654           fi
7655
7656
7657
7658
7659           enablestring=
7660           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7661 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7662           no_cache=0
7663           # Check whether --enable-clipboard or --disable-clipboard was given.
7664 if test "${enable_clipboard+set}" = set; then
7665   enableval="$enable_clipboard"
7666
7667                           if test "$enableval" = yes; then
7668                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7669                           else
7670                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7671                           fi
7672
7673 else
7674
7675                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7676                           if test "x$LINE" != x ; then
7677                             eval "DEFAULT_$LINE"
7678                           else
7679                             no_cache=1
7680                           fi
7681
7682                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7683
7684 fi;
7685
7686           eval "$ac_cv_use_clipboard"
7687           if test "$no_cache" != 1; then
7688             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7689           fi
7690
7691           if test "$wxUSE_CLIPBOARD" = yes; then
7692             echo "$as_me:$LINENO: result: yes" >&5
7693 echo "${ECHO_T}yes" >&6
7694           else
7695             echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6
7697           fi
7698
7699
7700           enablestring=
7701           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7702 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7703           no_cache=0
7704           # Check whether --enable-dnd or --disable-dnd was given.
7705 if test "${enable_dnd+set}" = set; then
7706   enableval="$enable_dnd"
7707
7708                           if test "$enableval" = yes; then
7709                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7710                           else
7711                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7712                           fi
7713
7714 else
7715
7716                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7717                           if test "x$LINE" != x ; then
7718                             eval "DEFAULT_$LINE"
7719                           else
7720                             no_cache=1
7721                           fi
7722
7723                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7724
7725 fi;
7726
7727           eval "$ac_cv_use_dnd"
7728           if test "$no_cache" != 1; then
7729             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7730           fi
7731
7732           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7733             echo "$as_me:$LINENO: result: yes" >&5
7734 echo "${ECHO_T}yes" >&6
7735           else
7736             echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6
7738           fi
7739
7740
7741           enablestring=
7742           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7743 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7744           no_cache=0
7745           # Check whether --enable-metafile or --disable-metafile was given.
7746 if test "${enable_metafile+set}" = set; then
7747   enableval="$enable_metafile"
7748
7749                           if test "$enableval" = yes; then
7750                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7751                           else
7752                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7753                           fi
7754
7755 else
7756
7757                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7758                           if test "x$LINE" != x ; then
7759                             eval "DEFAULT_$LINE"
7760                           else
7761                             no_cache=1
7762                           fi
7763
7764                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7765
7766 fi;
7767
7768           eval "$ac_cv_use_metafile"
7769           if test "$no_cache" != 1; then
7770             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7771           fi
7772
7773           if test "$wxUSE_METAFILE" = yes; then
7774             echo "$as_me:$LINENO: result: yes" >&5
7775 echo "${ECHO_T}yes" >&6
7776           else
7777             echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6
7779           fi
7780
7781
7782
7783
7784
7785           enablestring=
7786           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7787 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7788           no_cache=0
7789           # Check whether --enable-controls or --disable-controls was given.
7790 if test "${enable_controls+set}" = set; then
7791   enableval="$enable_controls"
7792
7793                           if test "$enableval" = yes; then
7794                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7795                           else
7796                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7797                           fi
7798
7799 else
7800
7801                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7802                           if test "x$LINE" != x ; then
7803                             eval "DEFAULT_$LINE"
7804                           else
7805                             no_cache=1
7806                           fi
7807
7808                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7809
7810 fi;
7811
7812           eval "$ac_cv_use_controls"
7813           if test "$no_cache" != 1; then
7814             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7815           fi
7816
7817           if test "$wxUSE_CONTROLS" = yes; then
7818             echo "$as_me:$LINENO: result: yes" >&5
7819 echo "${ECHO_T}yes" >&6
7820           else
7821             echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6
7823           fi
7824
7825
7826 if test "$wxUSE_CONTROLS" = "yes"; then
7827   DEFAULT_wxUSE_ACCEL=yes
7828   DEFAULT_wxUSE_ANIMATIONCTRL=yes
7829   DEFAULT_wxUSE_BMPBUTTON=yes
7830   DEFAULT_wxUSE_BUTTON=yes
7831   DEFAULT_wxUSE_CALCTRL=yes
7832   DEFAULT_wxUSE_CARET=yes
7833   DEFAULT_wxUSE_COMBOBOX=yes
7834   DEFAULT_wxUSE_CHECKBOX=yes
7835   DEFAULT_wxUSE_CHECKLISTBOX=yes
7836   DEFAULT_wxUSE_CHOICE=yes
7837   DEFAULT_wxUSE_CHOICEBOOK=yes
7838   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7839   DEFAULT_wxUSE_COMBOBOX=yes
7840   DEFAULT_wxUSE_DATEPICKCTRL=yes
7841   DEFAULT_wxUSE_DISPLAY=yes
7842   DEFAULT_wxUSE_DETECT_SM=yes
7843   DEFAULT_wxUSE_DIRPICKERCTRL=yes
7844   DEFAULT_wxUSE_FILEPICKERCTRL=yes
7845   DEFAULT_wxUSE_FONTPICKERCTRL=yes
7846   DEFAULT_wxUSE_GAUGE=yes
7847   DEFAULT_wxUSE_GRID=yes
7848   DEFAULT_wxUSE_HYPERLINKCTRL=yes
7849   DEFAULT_wxUSE_DATAVIEWCTRL=no
7850   DEFAULT_wxUSE_IMAGLIST=yes
7851   DEFAULT_wxUSE_LISTBOOK=yes
7852   DEFAULT_wxUSE_LISTBOX=yes
7853   DEFAULT_wxUSE_LISTCTRL=yes
7854   DEFAULT_wxUSE_NOTEBOOK=yes
7855   DEFAULT_wxUSE_RADIOBOX=yes
7856   DEFAULT_wxUSE_RADIOBTN=yes
7857   DEFAULT_wxUSE_SASH=yes
7858   DEFAULT_wxUSE_SCROLLBAR=yes
7859   DEFAULT_wxUSE_SLIDER=yes
7860   DEFAULT_wxUSE_SPINBTN=yes
7861   DEFAULT_wxUSE_SPINCTRL=yes
7862   DEFAULT_wxUSE_SPLITTER=yes
7863   DEFAULT_wxUSE_STATBMP=yes
7864   DEFAULT_wxUSE_STATBOX=yes
7865   DEFAULT_wxUSE_STATLINE=yes
7866   DEFAULT_wxUSE_STATUSBAR=yes
7867   DEFAULT_wxUSE_TAB_DIALOG=yes
7868   DEFAULT_wxUSE_TOGGLEBTN=yes
7869   DEFAULT_wxUSE_TOOLBAR=yes
7870   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7871   DEFAULT_wxUSE_TOOLTIPS=yes
7872   DEFAULT_wxUSE_TREEBOOK=yes
7873   DEFAULT_wxUSE_TOOLBOOK=yes
7874   DEFAULT_wxUSE_TREECTRL=yes
7875   DEFAULT_wxUSE_POPUPWIN=yes
7876   DEFAULT_wxUSE_TIPWINDOW=yes
7877 elif test "$wxUSE_CONTROLS" = "no"; then
7878   DEFAULT_wxUSE_ACCEL=no
7879   DEFAULT_wxUSE_ANIMATIONCTRL=no
7880   DEFAULT_wxUSE_BMPBUTTON=no
7881   DEFAULT_wxUSE_BUTTON=no
7882   DEFAULT_wxUSE_CALCTRL=no
7883   DEFAULT_wxUSE_CARET=no
7884   DEFAULT_wxUSE_COMBOBOX=no
7885   DEFAULT_wxUSE_CHECKBOX=no
7886   DEFAULT_wxUSE_CHECKLISTBOX=no
7887   DEFAULT_wxUSE_CHOICE=no
7888   DEFAULT_wxUSE_CHOICEBOOK=no
7889   DEFAULT_wxUSE_COLOURPICKERCTRL=no
7890   DEFAULT_wxUSE_COMBOBOX=no
7891   DEFAULT_wxUSE_DATEPICKCTRL=no
7892   DEFAULT_wxUSE_DISPLAY=no
7893   DEFAULT_wxUSE_DETECT_SM=no
7894   DEFAULT_wxUSE_DIRPICKERCTRL=no
7895   DEFAULT_wxUSE_FILEPICKERCTRL=no
7896   DEFAULT_wxUSE_FONTPICKERCTRL=no
7897   DEFAULT_wxUSE_GAUGE=no
7898   DEFAULT_wxUSE_GRID=no
7899   DEFAULT_wxUSE_HYPERLINKCTRL=no
7900   DEFAULT_wxUSE_DATAVIEWCTRL=no
7901   DEFAULT_wxUSE_IMAGLIST=no
7902   DEFAULT_wxUSE_LISTBOOK=no
7903   DEFAULT_wxUSE_LISTBOX=no
7904   DEFAULT_wxUSE_LISTCTRL=no
7905   DEFAULT_wxUSE_NOTEBOOK=no
7906   DEFAULT_wxUSE_RADIOBOX=no
7907   DEFAULT_wxUSE_RADIOBTN=no
7908   DEFAULT_wxUSE_SASH=no
7909   DEFAULT_wxUSE_SCROLLBAR=no
7910   DEFAULT_wxUSE_SLIDER=no
7911   DEFAULT_wxUSE_SPINBTN=no
7912   DEFAULT_wxUSE_SPINCTRL=no
7913   DEFAULT_wxUSE_SPLITTER=no
7914   DEFAULT_wxUSE_STATBMP=no
7915   DEFAULT_wxUSE_STATBOX=no
7916   DEFAULT_wxUSE_STATLINE=no
7917   DEFAULT_wxUSE_STATUSBAR=no
7918   DEFAULT_wxUSE_TAB_DIALOG=no
7919   DEFAULT_wxUSE_TOGGLEBTN=no
7920   DEFAULT_wxUSE_TOOLBAR=no
7921   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7922   DEFAULT_wxUSE_TOOLTIPS=no
7923   DEFAULT_wxUSE_TREEBOOK=no
7924   DEFAULT_wxUSE_TOOLBOOK=no
7925   DEFAULT_wxUSE_TREECTRL=no
7926   DEFAULT_wxUSE_POPUPWIN=no
7927   DEFAULT_wxUSE_TIPWINDOW=no
7928 fi
7929
7930
7931           enablestring=
7932           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7933 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7934           no_cache=0
7935           # Check whether --enable-accel or --disable-accel was given.
7936 if test "${enable_accel+set}" = set; then
7937   enableval="$enable_accel"
7938
7939                           if test "$enableval" = yes; then
7940                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7941                           else
7942                             ac_cv_use_accel='wxUSE_ACCEL=no'
7943                           fi
7944
7945 else
7946
7947                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7948                           if test "x$LINE" != x ; then
7949                             eval "DEFAULT_$LINE"
7950                           else
7951                             no_cache=1
7952                           fi
7953
7954                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7955
7956 fi;
7957
7958           eval "$ac_cv_use_accel"
7959           if test "$no_cache" != 1; then
7960             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7961           fi
7962
7963           if test "$wxUSE_ACCEL" = yes; then
7964             echo "$as_me:$LINENO: result: yes" >&5
7965 echo "${ECHO_T}yes" >&6
7966           else
7967             echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7969           fi
7970
7971
7972           enablestring=
7973           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
7974 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
7975           no_cache=0
7976           # Check whether --enable-animatectrl or --disable-animatectrl was given.
7977 if test "${enable_animatectrl+set}" = set; then
7978   enableval="$enable_animatectrl"
7979
7980                           if test "$enableval" = yes; then
7981                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
7982                           else
7983                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
7984                           fi
7985
7986 else
7987
7988                           LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
7989                           if test "x$LINE" != x ; then
7990                             eval "DEFAULT_$LINE"
7991                           else
7992                             no_cache=1
7993                           fi
7994
7995                           ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
7996
7997 fi;
7998
7999           eval "$ac_cv_use_animatectrl"
8000           if test "$no_cache" != 1; then
8001             echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8002           fi
8003
8004           if test "$wxUSE_ANIMATIONCTRL" = yes; then
8005             echo "$as_me:$LINENO: result: yes" >&5
8006 echo "${ECHO_T}yes" >&6
8007           else
8008             echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6
8010           fi
8011
8012
8013           enablestring=
8014           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8015 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8016           no_cache=0
8017           # Check whether --enable-button or --disable-button was given.
8018 if test "${enable_button+set}" = set; then
8019   enableval="$enable_button"
8020
8021                           if test "$enableval" = yes; then
8022                             ac_cv_use_button='wxUSE_BUTTON=yes'
8023                           else
8024                             ac_cv_use_button='wxUSE_BUTTON=no'
8025                           fi
8026
8027 else
8028
8029                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8030                           if test "x$LINE" != x ; then
8031                             eval "DEFAULT_$LINE"
8032                           else
8033                             no_cache=1
8034                           fi
8035
8036                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8037
8038 fi;
8039
8040           eval "$ac_cv_use_button"
8041           if test "$no_cache" != 1; then
8042             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8043           fi
8044
8045           if test "$wxUSE_BUTTON" = yes; then
8046             echo "$as_me:$LINENO: result: yes" >&5
8047 echo "${ECHO_T}yes" >&6
8048           else
8049             echo "$as_me:$LINENO: result: no" >&5
8050 echo "${ECHO_T}no" >&6
8051           fi
8052
8053
8054           enablestring=
8055           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8056 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8057           no_cache=0
8058           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8059 if test "${enable_bmpbutton+set}" = set; then
8060   enableval="$enable_bmpbutton"
8061
8062                           if test "$enableval" = yes; then
8063                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8064                           else
8065                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8066                           fi
8067
8068 else
8069
8070                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8071                           if test "x$LINE" != x ; then
8072                             eval "DEFAULT_$LINE"
8073                           else
8074                             no_cache=1
8075                           fi
8076
8077                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8078
8079 fi;
8080
8081           eval "$ac_cv_use_bmpbutton"
8082           if test "$no_cache" != 1; then
8083             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8084           fi
8085
8086           if test "$wxUSE_BMPBUTTON" = yes; then
8087             echo "$as_me:$LINENO: result: yes" >&5
8088 echo "${ECHO_T}yes" >&6
8089           else
8090             echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6
8092           fi
8093
8094
8095           enablestring=
8096           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8097 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8098           no_cache=0
8099           # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8100 if test "${enable_bmpcombobox+set}" = set; then
8101   enableval="$enable_bmpcombobox"
8102
8103                           if test "$enableval" = yes; then
8104                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8105                           else
8106                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8107                           fi
8108
8109 else
8110
8111                           LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8112                           if test "x$LINE" != x ; then
8113                             eval "DEFAULT_$LINE"
8114                           else
8115                             no_cache=1
8116                           fi
8117
8118                           ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8119
8120 fi;
8121
8122           eval "$ac_cv_use_bmpcombobox"
8123           if test "$no_cache" != 1; then
8124             echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8125           fi
8126
8127           if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8128             echo "$as_me:$LINENO: result: yes" >&5
8129 echo "${ECHO_T}yes" >&6
8130           else
8131             echo "$as_me:$LINENO: result: no" >&5
8132 echo "${ECHO_T}no" >&6
8133           fi
8134
8135
8136           enablestring=
8137           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8138 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8139           no_cache=0
8140           # Check whether --enable-calendar or --disable-calendar was given.
8141 if test "${enable_calendar+set}" = set; then
8142   enableval="$enable_calendar"
8143
8144                           if test "$enableval" = yes; then
8145                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8146                           else
8147                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
8148                           fi
8149
8150 else
8151
8152                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8153                           if test "x$LINE" != x ; then
8154                             eval "DEFAULT_$LINE"
8155                           else
8156                             no_cache=1
8157                           fi
8158
8159                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8160
8161 fi;
8162
8163           eval "$ac_cv_use_calendar"
8164           if test "$no_cache" != 1; then
8165             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8166           fi
8167
8168           if test "$wxUSE_CALCTRL" = yes; then
8169             echo "$as_me:$LINENO: result: yes" >&5
8170 echo "${ECHO_T}yes" >&6
8171           else
8172             echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6
8174           fi
8175
8176
8177           enablestring=
8178           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8179 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8180           no_cache=0
8181           # Check whether --enable-caret or --disable-caret was given.
8182 if test "${enable_caret+set}" = set; then
8183   enableval="$enable_caret"
8184
8185                           if test "$enableval" = yes; then
8186                             ac_cv_use_caret='wxUSE_CARET=yes'
8187                           else
8188                             ac_cv_use_caret='wxUSE_CARET=no'
8189                           fi
8190
8191 else
8192
8193                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8194                           if test "x$LINE" != x ; then
8195                             eval "DEFAULT_$LINE"
8196                           else
8197                             no_cache=1
8198                           fi
8199
8200                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8201
8202 fi;
8203
8204           eval "$ac_cv_use_caret"
8205           if test "$no_cache" != 1; then
8206             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8207           fi
8208
8209           if test "$wxUSE_CARET" = yes; then
8210             echo "$as_me:$LINENO: result: yes" >&5
8211 echo "${ECHO_T}yes" >&6
8212           else
8213             echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8215           fi
8216
8217
8218           enablestring=
8219           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8220 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8221           no_cache=0
8222           # Check whether --enable-checkbox or --disable-checkbox was given.
8223 if test "${enable_checkbox+set}" = set; then
8224   enableval="$enable_checkbox"
8225
8226                           if test "$enableval" = yes; then
8227                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8228                           else
8229                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8230                           fi
8231
8232 else
8233
8234                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8235                           if test "x$LINE" != x ; then
8236                             eval "DEFAULT_$LINE"
8237                           else
8238                             no_cache=1
8239                           fi
8240
8241                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8242
8243 fi;
8244
8245           eval "$ac_cv_use_checkbox"
8246           if test "$no_cache" != 1; then
8247             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8248           fi
8249
8250           if test "$wxUSE_CHECKBOX" = yes; then
8251             echo "$as_me:$LINENO: result: yes" >&5
8252 echo "${ECHO_T}yes" >&6
8253           else
8254             echo "$as_me:$LINENO: result: no" >&5
8255 echo "${ECHO_T}no" >&6
8256           fi
8257
8258
8259           enablestring=
8260           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8261 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8262           no_cache=0
8263           # Check whether --enable-checklst or --disable-checklst was given.
8264 if test "${enable_checklst+set}" = set; then
8265   enableval="$enable_checklst"
8266
8267                           if test "$enableval" = yes; then
8268                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8269                           else
8270                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
8271                           fi
8272
8273 else
8274
8275                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8276                           if test "x$LINE" != x ; then
8277                             eval "DEFAULT_$LINE"
8278                           else
8279                             no_cache=1
8280                           fi
8281
8282                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8283
8284 fi;
8285
8286           eval "$ac_cv_use_checklst"
8287           if test "$no_cache" != 1; then
8288             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8289           fi
8290
8291           if test "$wxUSE_CHECKLST" = yes; then
8292             echo "$as_me:$LINENO: result: yes" >&5
8293 echo "${ECHO_T}yes" >&6
8294           else
8295             echo "$as_me:$LINENO: result: no" >&5
8296 echo "${ECHO_T}no" >&6
8297           fi
8298
8299
8300           enablestring=
8301           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8302 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8303           no_cache=0
8304           # Check whether --enable-choice or --disable-choice was given.
8305 if test "${enable_choice+set}" = set; then
8306   enableval="$enable_choice"
8307
8308                           if test "$enableval" = yes; then
8309                             ac_cv_use_choice='wxUSE_CHOICE=yes'
8310                           else
8311                             ac_cv_use_choice='wxUSE_CHOICE=no'
8312                           fi
8313
8314 else
8315
8316                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8317                           if test "x$LINE" != x ; then
8318                             eval "DEFAULT_$LINE"
8319                           else
8320                             no_cache=1
8321                           fi
8322
8323                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8324
8325 fi;
8326
8327           eval "$ac_cv_use_choice"
8328           if test "$no_cache" != 1; then
8329             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8330           fi
8331
8332           if test "$wxUSE_CHOICE" = yes; then
8333             echo "$as_me:$LINENO: result: yes" >&5
8334 echo "${ECHO_T}yes" >&6
8335           else
8336             echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8338           fi
8339
8340
8341           enablestring=
8342           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8343 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8344           no_cache=0
8345           # Check whether --enable-choicebook or --disable-choicebook was given.
8346 if test "${enable_choicebook+set}" = set; then
8347   enableval="$enable_choicebook"
8348
8349                           if test "$enableval" = yes; then
8350                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8351                           else
8352                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8353                           fi
8354
8355 else
8356
8357                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8358                           if test "x$LINE" != x ; then
8359                             eval "DEFAULT_$LINE"
8360                           else
8361                             no_cache=1
8362                           fi
8363
8364                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8365
8366 fi;
8367
8368           eval "$ac_cv_use_choicebook"
8369           if test "$no_cache" != 1; then
8370             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8371           fi
8372
8373           if test "$wxUSE_CHOICEBOOK" = yes; then
8374             echo "$as_me:$LINENO: result: yes" >&5
8375 echo "${ECHO_T}yes" >&6
8376           else
8377             echo "$as_me:$LINENO: result: no" >&5
8378 echo "${ECHO_T}no" >&6
8379           fi
8380
8381
8382           enablestring=
8383           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8384 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8385           no_cache=0
8386           # Check whether --enable-colourpicker or --disable-colourpicker was given.
8387 if test "${enable_colourpicker+set}" = set; then
8388   enableval="$enable_colourpicker"
8389
8390                           if test "$enableval" = yes; then
8391                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8392                           else
8393                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8394                           fi
8395
8396 else
8397
8398                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8399                           if test "x$LINE" != x ; then
8400                             eval "DEFAULT_$LINE"
8401                           else
8402                             no_cache=1
8403                           fi
8404
8405                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8406
8407 fi;
8408
8409           eval "$ac_cv_use_colourpicker"
8410           if test "$no_cache" != 1; then
8411             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8412           fi
8413
8414           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8415             echo "$as_me:$LINENO: result: yes" >&5
8416 echo "${ECHO_T}yes" >&6
8417           else
8418             echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6
8420           fi
8421
8422
8423           enablestring=
8424           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8425 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8426           no_cache=0
8427           # Check whether --enable-combobox or --disable-combobox was given.
8428 if test "${enable_combobox+set}" = set; then
8429   enableval="$enable_combobox"
8430
8431                           if test "$enableval" = yes; then
8432                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8433                           else
8434                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8435                           fi
8436
8437 else
8438
8439                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8440                           if test "x$LINE" != x ; then
8441                             eval "DEFAULT_$LINE"
8442                           else
8443                             no_cache=1
8444                           fi
8445
8446                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8447
8448 fi;
8449
8450           eval "$ac_cv_use_combobox"
8451           if test "$no_cache" != 1; then
8452             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8453           fi
8454
8455           if test "$wxUSE_COMBOBOX" = yes; then
8456             echo "$as_me:$LINENO: result: yes" >&5
8457 echo "${ECHO_T}yes" >&6
8458           else
8459             echo "$as_me:$LINENO: result: no" >&5
8460 echo "${ECHO_T}no" >&6
8461           fi
8462
8463
8464           enablestring=
8465           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8466 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8467           no_cache=0
8468           # Check whether --enable-comboctrl or --disable-comboctrl was given.
8469 if test "${enable_comboctrl+set}" = set; then
8470   enableval="$enable_comboctrl"
8471
8472                           if test "$enableval" = yes; then
8473                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8474                           else
8475                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8476                           fi
8477
8478 else
8479
8480                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8481                           if test "x$LINE" != x ; then
8482                             eval "DEFAULT_$LINE"
8483                           else
8484                             no_cache=1
8485                           fi
8486
8487                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8488
8489 fi;
8490
8491           eval "$ac_cv_use_comboctrl"
8492           if test "$no_cache" != 1; then
8493             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8494           fi
8495
8496           if test "$wxUSE_COMBOCTRL" = yes; then
8497             echo "$as_me:$LINENO: result: yes" >&5
8498 echo "${ECHO_T}yes" >&6
8499           else
8500             echo "$as_me:$LINENO: result: no" >&5
8501 echo "${ECHO_T}no" >&6
8502           fi
8503
8504
8505           enablestring=
8506           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8507 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8508           no_cache=0
8509           # Check whether --enable-datepick or --disable-datepick was given.
8510 if test "${enable_datepick+set}" = set; then
8511   enableval="$enable_datepick"
8512
8513                           if test "$enableval" = yes; then
8514                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8515                           else
8516                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8517                           fi
8518
8519 else
8520
8521                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8522                           if test "x$LINE" != x ; then
8523                             eval "DEFAULT_$LINE"
8524                           else
8525                             no_cache=1
8526                           fi
8527
8528                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8529
8530 fi;
8531
8532           eval "$ac_cv_use_datepick"
8533           if test "$no_cache" != 1; then
8534             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8535           fi
8536
8537           if test "$wxUSE_DATEPICKCTRL" = yes; then
8538             echo "$as_me:$LINENO: result: yes" >&5
8539 echo "${ECHO_T}yes" >&6
8540           else
8541             echo "$as_me:$LINENO: result: no" >&5
8542 echo "${ECHO_T}no" >&6
8543           fi
8544
8545
8546           enablestring=
8547           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8548 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8549           no_cache=0
8550           # Check whether --enable-dirpicker or --disable-dirpicker was given.
8551 if test "${enable_dirpicker+set}" = set; then
8552   enableval="$enable_dirpicker"
8553
8554                           if test "$enableval" = yes; then
8555                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8556                           else
8557                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8558                           fi
8559
8560 else
8561
8562                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8563                           if test "x$LINE" != x ; then
8564                             eval "DEFAULT_$LINE"
8565                           else
8566                             no_cache=1
8567                           fi
8568
8569                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8570
8571 fi;
8572
8573           eval "$ac_cv_use_dirpicker"
8574           if test "$no_cache" != 1; then
8575             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8576           fi
8577
8578           if test "$wxUSE_DIRPICKERCTRL" = yes; then
8579             echo "$as_me:$LINENO: result: yes" >&5
8580 echo "${ECHO_T}yes" >&6
8581           else
8582             echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6
8584           fi
8585
8586
8587           enablestring=
8588           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8589 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8590           no_cache=0
8591           # Check whether --enable-display or --disable-display was given.
8592 if test "${enable_display+set}" = set; then
8593   enableval="$enable_display"
8594
8595                           if test "$enableval" = yes; then
8596                             ac_cv_use_display='wxUSE_DISPLAY=yes'
8597                           else
8598                             ac_cv_use_display='wxUSE_DISPLAY=no'
8599                           fi
8600
8601 else
8602
8603                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8604                           if test "x$LINE" != x ; then
8605                             eval "DEFAULT_$LINE"
8606                           else
8607                             no_cache=1
8608                           fi
8609
8610                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8611
8612 fi;
8613
8614           eval "$ac_cv_use_display"
8615           if test "$no_cache" != 1; then
8616             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8617           fi
8618
8619           if test "$wxUSE_DISPLAY" = yes; then
8620             echo "$as_me:$LINENO: result: yes" >&5
8621 echo "${ECHO_T}yes" >&6
8622           else
8623             echo "$as_me:$LINENO: result: no" >&5
8624 echo "${ECHO_T}no" >&6
8625           fi
8626
8627
8628           enablestring=
8629           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8630 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8631           no_cache=0
8632           # Check whether --enable-detect_sm or --disable-detect_sm was given.
8633 if test "${enable_detect_sm+set}" = set; then
8634   enableval="$enable_detect_sm"
8635
8636                           if test "$enableval" = yes; then
8637                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8638                           else
8639                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8640                           fi
8641
8642 else
8643
8644                           LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8645                           if test "x$LINE" != x ; then
8646                             eval "DEFAULT_$LINE"
8647                           else
8648                             no_cache=1
8649                           fi
8650
8651                           ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8652
8653 fi;
8654
8655           eval "$ac_cv_use_detect_sm"
8656           if test "$no_cache" != 1; then
8657             echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8658           fi
8659
8660           if test "$wxUSE_DETECT_SM" = yes; then
8661             echo "$as_me:$LINENO: result: yes" >&5
8662 echo "${ECHO_T}yes" >&6
8663           else
8664             echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6
8666           fi
8667
8668
8669           enablestring=
8670           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8671 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8672           no_cache=0
8673           # Check whether --enable-filepicker or --disable-filepicker was given.
8674 if test "${enable_filepicker+set}" = set; then
8675   enableval="$enable_filepicker"
8676
8677                           if test "$enableval" = yes; then
8678                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8679                           else
8680                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8681                           fi
8682
8683 else
8684
8685                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8686                           if test "x$LINE" != x ; then
8687                             eval "DEFAULT_$LINE"
8688                           else
8689                             no_cache=1
8690                           fi
8691
8692                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8693
8694 fi;
8695
8696           eval "$ac_cv_use_filepicker"
8697           if test "$no_cache" != 1; then
8698             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8699           fi
8700
8701           if test "$wxUSE_FILEPICKERCTRL" = yes; then
8702             echo "$as_me:$LINENO: result: yes" >&5
8703 echo "${ECHO_T}yes" >&6
8704           else
8705             echo "$as_me:$LINENO: result: no" >&5
8706 echo "${ECHO_T}no" >&6
8707           fi
8708
8709
8710           enablestring=
8711           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8712 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8713           no_cache=0
8714           # Check whether --enable-fontpicker or --disable-fontpicker was given.
8715 if test "${enable_fontpicker+set}" = set; then
8716   enableval="$enable_fontpicker"
8717
8718                           if test "$enableval" = yes; then
8719                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8720                           else
8721                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8722                           fi
8723
8724 else
8725
8726                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8727                           if test "x$LINE" != x ; then
8728                             eval "DEFAULT_$LINE"
8729                           else
8730                             no_cache=1
8731                           fi
8732
8733                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8734
8735 fi;
8736
8737           eval "$ac_cv_use_fontpicker"
8738           if test "$no_cache" != 1; then
8739             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8740           fi
8741
8742           if test "$wxUSE_FONTPICKERCTRL" = yes; then
8743             echo "$as_me:$LINENO: result: yes" >&5
8744 echo "${ECHO_T}yes" >&6
8745           else
8746             echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6
8748           fi
8749
8750
8751           enablestring=
8752           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8753 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8754           no_cache=0
8755           # Check whether --enable-gauge or --disable-gauge was given.
8756 if test "${enable_gauge+set}" = set; then
8757   enableval="$enable_gauge"
8758
8759                           if test "$enableval" = yes; then
8760                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
8761                           else
8762                             ac_cv_use_gauge='wxUSE_GAUGE=no'
8763                           fi
8764
8765 else
8766
8767                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8768                           if test "x$LINE" != x ; then
8769                             eval "DEFAULT_$LINE"
8770                           else
8771                             no_cache=1
8772                           fi
8773
8774                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8775
8776 fi;
8777
8778           eval "$ac_cv_use_gauge"
8779           if test "$no_cache" != 1; then
8780             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8781           fi
8782
8783           if test "$wxUSE_GAUGE" = yes; then
8784             echo "$as_me:$LINENO: result: yes" >&5
8785 echo "${ECHO_T}yes" >&6
8786           else
8787             echo "$as_me:$LINENO: result: no" >&5
8788 echo "${ECHO_T}no" >&6
8789           fi
8790
8791
8792           enablestring=
8793           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8794 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8795           no_cache=0
8796           # Check whether --enable-grid or --disable-grid was given.
8797 if test "${enable_grid+set}" = set; then
8798   enableval="$enable_grid"
8799
8800                           if test "$enableval" = yes; then
8801                             ac_cv_use_grid='wxUSE_GRID=yes'
8802                           else
8803                             ac_cv_use_grid='wxUSE_GRID=no'
8804                           fi
8805
8806 else
8807
8808                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8809                           if test "x$LINE" != x ; then
8810                             eval "DEFAULT_$LINE"
8811                           else
8812                             no_cache=1
8813                           fi
8814
8815                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8816
8817 fi;
8818
8819           eval "$ac_cv_use_grid"
8820           if test "$no_cache" != 1; then
8821             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8822           fi
8823
8824           if test "$wxUSE_GRID" = yes; then
8825             echo "$as_me:$LINENO: result: yes" >&5
8826 echo "${ECHO_T}yes" >&6
8827           else
8828             echo "$as_me:$LINENO: result: no" >&5
8829 echo "${ECHO_T}no" >&6
8830           fi
8831
8832
8833           enablestring=
8834           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8835 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8836           no_cache=0
8837           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8838 if test "${enable_dataviewctrl+set}" = set; then
8839   enableval="$enable_dataviewctrl"
8840
8841                           if test "$enableval" = yes; then
8842                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8843                           else
8844                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8845                           fi
8846
8847 else
8848
8849                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8850                           if test "x$LINE" != x ; then
8851                             eval "DEFAULT_$LINE"
8852                           else
8853                             no_cache=1
8854                           fi
8855
8856                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8857
8858 fi;
8859
8860           eval "$ac_cv_use_dataviewctrl"
8861           if test "$no_cache" != 1; then
8862             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8863           fi
8864
8865           if test "$wxUSE_DATAVIEWCTRL" = yes; then
8866             echo "$as_me:$LINENO: result: yes" >&5
8867 echo "${ECHO_T}yes" >&6
8868           else
8869             echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6
8871           fi
8872
8873
8874           enablestring=
8875           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8876 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8877           no_cache=0
8878           # Check whether --enable-hyperlink or --disable-hyperlink was given.
8879 if test "${enable_hyperlink+set}" = set; then
8880   enableval="$enable_hyperlink"
8881
8882                           if test "$enableval" = yes; then
8883                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8884                           else
8885                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8886                           fi
8887
8888 else
8889
8890                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8891                           if test "x$LINE" != x ; then
8892                             eval "DEFAULT_$LINE"
8893                           else
8894                             no_cache=1
8895                           fi
8896
8897                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8898
8899 fi;
8900
8901           eval "$ac_cv_use_hyperlink"
8902           if test "$no_cache" != 1; then
8903             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8904           fi
8905
8906           if test "$wxUSE_HYPERLINKCTRL" = yes; then
8907             echo "$as_me:$LINENO: result: yes" >&5
8908 echo "${ECHO_T}yes" >&6
8909           else
8910             echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6
8912           fi
8913
8914
8915           enablestring=
8916           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8917 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8918           no_cache=0
8919           # Check whether --enable-imaglist or --disable-imaglist was given.
8920 if test "${enable_imaglist+set}" = set; then
8921   enableval="$enable_imaglist"
8922
8923                           if test "$enableval" = yes; then
8924                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8925                           else
8926                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8927                           fi
8928
8929 else
8930
8931                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8932                           if test "x$LINE" != x ; then
8933                             eval "DEFAULT_$LINE"
8934                           else
8935                             no_cache=1
8936                           fi
8937
8938                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8939
8940 fi;
8941
8942           eval "$ac_cv_use_imaglist"
8943           if test "$no_cache" != 1; then
8944             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8945           fi
8946
8947           if test "$wxUSE_IMAGLIST" = yes; then
8948             echo "$as_me:$LINENO: result: yes" >&5
8949 echo "${ECHO_T}yes" >&6
8950           else
8951             echo "$as_me:$LINENO: result: no" >&5
8952 echo "${ECHO_T}no" >&6
8953           fi
8954
8955
8956           enablestring=
8957           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8958 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8959           no_cache=0
8960           # Check whether --enable-listbook or --disable-listbook was given.
8961 if test "${enable_listbook+set}" = set; then
8962   enableval="$enable_listbook"
8963
8964                           if test "$enableval" = yes; then
8965                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8966                           else
8967                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8968                           fi
8969
8970 else
8971
8972                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8973                           if test "x$LINE" != x ; then
8974                             eval "DEFAULT_$LINE"
8975                           else
8976                             no_cache=1
8977                           fi
8978
8979                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8980
8981 fi;
8982
8983           eval "$ac_cv_use_listbook"
8984           if test "$no_cache" != 1; then
8985             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8986           fi
8987
8988           if test "$wxUSE_LISTBOOK" = yes; then
8989             echo "$as_me:$LINENO: result: yes" >&5
8990 echo "${ECHO_T}yes" >&6
8991           else
8992             echo "$as_me:$LINENO: result: no" >&5
8993 echo "${ECHO_T}no" >&6
8994           fi
8995
8996
8997           enablestring=
8998           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8999 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9000           no_cache=0
9001           # Check whether --enable-listbox or --disable-listbox was given.
9002 if test "${enable_listbox+set}" = set; then
9003   enableval="$enable_listbox"
9004
9005                           if test "$enableval" = yes; then
9006                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9007                           else
9008                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
9009                           fi
9010
9011 else
9012
9013                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9014                           if test "x$LINE" != x ; then
9015                             eval "DEFAULT_$LINE"
9016                           else
9017                             no_cache=1
9018                           fi
9019
9020                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9021
9022 fi;
9023
9024           eval "$ac_cv_use_listbox"
9025           if test "$no_cache" != 1; then
9026             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9027           fi
9028
9029           if test "$wxUSE_LISTBOX" = yes; then
9030             echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6
9032           else
9033             echo "$as_me:$LINENO: result: no" >&5
9034 echo "${ECHO_T}no" >&6
9035           fi
9036
9037
9038           enablestring=
9039           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9040 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9041           no_cache=0
9042           # Check whether --enable-listctrl or --disable-listctrl was given.
9043 if test "${enable_listctrl+set}" = set; then
9044   enableval="$enable_listctrl"
9045
9046                           if test "$enableval" = yes; then
9047                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9048                           else
9049                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9050                           fi
9051
9052 else
9053
9054                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9055                           if test "x$LINE" != x ; then
9056                             eval "DEFAULT_$LINE"
9057                           else
9058                             no_cache=1
9059                           fi
9060
9061                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9062
9063 fi;
9064
9065           eval "$ac_cv_use_listctrl"
9066           if test "$no_cache" != 1; then
9067             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9068           fi
9069
9070           if test "$wxUSE_LISTCTRL" = yes; then
9071             echo "$as_me:$LINENO: result: yes" >&5
9072 echo "${ECHO_T}yes" >&6
9073           else
9074             echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9076           fi
9077
9078
9079           enablestring=
9080           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9081 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9082           no_cache=0
9083           # Check whether --enable-notebook or --disable-notebook was given.
9084 if test "${enable_notebook+set}" = set; then
9085   enableval="$enable_notebook"
9086
9087                           if test "$enableval" = yes; then
9088                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9089                           else
9090                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9091                           fi
9092
9093 else
9094
9095                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9096                           if test "x$LINE" != x ; then
9097                             eval "DEFAULT_$LINE"
9098                           else
9099                             no_cache=1
9100                           fi
9101
9102                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9103
9104 fi;
9105
9106           eval "$ac_cv_use_notebook"
9107           if test "$no_cache" != 1; then
9108             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9109           fi
9110
9111           if test "$wxUSE_NOTEBOOK" = yes; then
9112             echo "$as_me:$LINENO: result: yes" >&5
9113 echo "${ECHO_T}yes" >&6
9114           else
9115             echo "$as_me:$LINENO: result: no" >&5
9116 echo "${ECHO_T}no" >&6
9117           fi
9118
9119
9120           enablestring=
9121           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9122 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
9123           no_cache=0
9124           # Check whether --enable-odcombobox or --disable-odcombobox was given.
9125 if test "${enable_odcombobox+set}" = set; then
9126   enableval="$enable_odcombobox"
9127
9128                           if test "$enableval" = yes; then
9129                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
9130                           else
9131                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
9132                           fi
9133
9134 else
9135
9136                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
9137                           if test "x$LINE" != x ; then
9138                             eval "DEFAULT_$LINE"
9139                           else
9140                             no_cache=1
9141                           fi
9142
9143                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
9144
9145 fi;
9146
9147           eval "$ac_cv_use_odcombobox"
9148           if test "$no_cache" != 1; then
9149             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
9150           fi
9151
9152           if test "$wxUSE_ODCOMBOBOX" = yes; then
9153             echo "$as_me:$LINENO: result: yes" >&5
9154 echo "${ECHO_T}yes" >&6
9155           else
9156             echo "$as_me:$LINENO: result: no" >&5
9157 echo "${ECHO_T}no" >&6
9158           fi
9159
9160
9161           enablestring=
9162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9163 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9164           no_cache=0
9165           # Check whether --enable-radiobox or --disable-radiobox was given.
9166 if test "${enable_radiobox+set}" = set; then
9167   enableval="$enable_radiobox"
9168
9169                           if test "$enableval" = yes; then
9170                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9171                           else
9172                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9173                           fi
9174
9175 else
9176
9177                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9178                           if test "x$LINE" != x ; then
9179                             eval "DEFAULT_$LINE"
9180                           else
9181                             no_cache=1
9182                           fi
9183
9184                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9185
9186 fi;
9187
9188           eval "$ac_cv_use_radiobox"
9189           if test "$no_cache" != 1; then
9190             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9191           fi
9192
9193           if test "$wxUSE_RADIOBOX" = yes; then
9194             echo "$as_me:$LINENO: result: yes" >&5
9195 echo "${ECHO_T}yes" >&6
9196           else
9197             echo "$as_me:$LINENO: result: no" >&5
9198 echo "${ECHO_T}no" >&6
9199           fi
9200
9201
9202           enablestring=
9203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9204 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9205           no_cache=0
9206           # Check whether --enable-radiobtn or --disable-radiobtn was given.
9207 if test "${enable_radiobtn+set}" = set; then
9208   enableval="$enable_radiobtn"
9209
9210                           if test "$enableval" = yes; then
9211                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9212                           else
9213                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9214                           fi
9215
9216 else
9217
9218                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9219                           if test "x$LINE" != x ; then
9220                             eval "DEFAULT_$LINE"
9221                           else
9222                             no_cache=1
9223                           fi
9224
9225                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9226
9227 fi;
9228
9229           eval "$ac_cv_use_radiobtn"
9230           if test "$no_cache" != 1; then
9231             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9232           fi
9233
9234           if test "$wxUSE_RADIOBTN" = yes; then
9235             echo "$as_me:$LINENO: result: yes" >&5
9236 echo "${ECHO_T}yes" >&6
9237           else
9238             echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6
9240           fi
9241
9242
9243           enablestring=
9244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9245 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9246           no_cache=0
9247           # Check whether --enable-sash or --disable-sash was given.
9248 if test "${enable_sash+set}" = set; then
9249   enableval="$enable_sash"
9250
9251                           if test "$enableval" = yes; then
9252                             ac_cv_use_sash='wxUSE_SASH=yes'
9253                           else
9254                             ac_cv_use_sash='wxUSE_SASH=no'
9255                           fi
9256
9257 else
9258
9259                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9260                           if test "x$LINE" != x ; then
9261                             eval "DEFAULT_$LINE"
9262                           else
9263                             no_cache=1
9264                           fi
9265
9266                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9267
9268 fi;
9269
9270           eval "$ac_cv_use_sash"
9271           if test "$no_cache" != 1; then
9272             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9273           fi
9274
9275           if test "$wxUSE_SASH" = yes; then
9276             echo "$as_me:$LINENO: result: yes" >&5
9277 echo "${ECHO_T}yes" >&6
9278           else
9279             echo "$as_me:$LINENO: result: no" >&5
9280 echo "${ECHO_T}no" >&6
9281           fi
9282
9283
9284           enablestring=
9285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9286 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9287           no_cache=0
9288           # Check whether --enable-scrollbar or --disable-scrollbar was given.
9289 if test "${enable_scrollbar+set}" = set; then
9290   enableval="$enable_scrollbar"
9291
9292                           if test "$enableval" = yes; then
9293                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9294                           else
9295                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9296                           fi
9297
9298 else
9299
9300                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9301                           if test "x$LINE" != x ; then
9302                             eval "DEFAULT_$LINE"
9303                           else
9304                             no_cache=1
9305                           fi
9306
9307                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9308
9309 fi;
9310
9311           eval "$ac_cv_use_scrollbar"
9312           if test "$no_cache" != 1; then
9313             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9314           fi
9315
9316           if test "$wxUSE_SCROLLBAR" = yes; then
9317             echo "$as_me:$LINENO: result: yes" >&5
9318 echo "${ECHO_T}yes" >&6
9319           else
9320             echo "$as_me:$LINENO: result: no" >&5
9321 echo "${ECHO_T}no" >&6
9322           fi
9323
9324
9325           enablestring=
9326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9327 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9328           no_cache=0
9329           # Check whether --enable-slider or --disable-slider was given.
9330 if test "${enable_slider+set}" = set; then
9331   enableval="$enable_slider"
9332
9333                           if test "$enableval" = yes; then
9334                             ac_cv_use_slider='wxUSE_SLIDER=yes'
9335                           else
9336                             ac_cv_use_slider='wxUSE_SLIDER=no'
9337                           fi
9338
9339 else
9340
9341                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9342                           if test "x$LINE" != x ; then
9343                             eval "DEFAULT_$LINE"
9344                           else
9345                             no_cache=1
9346                           fi
9347
9348                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9349
9350 fi;
9351
9352           eval "$ac_cv_use_slider"
9353           if test "$no_cache" != 1; then
9354             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9355           fi
9356
9357           if test "$wxUSE_SLIDER" = yes; then
9358             echo "$as_me:$LINENO: result: yes" >&5
9359 echo "${ECHO_T}yes" >&6
9360           else
9361             echo "$as_me:$LINENO: result: no" >&5
9362 echo "${ECHO_T}no" >&6
9363           fi
9364
9365
9366           enablestring=
9367           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9368 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9369           no_cache=0
9370           # Check whether --enable-spinbtn or --disable-spinbtn was given.
9371 if test "${enable_spinbtn+set}" = set; then
9372   enableval="$enable_spinbtn"
9373
9374                           if test "$enableval" = yes; then
9375                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9376                           else
9377                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9378                           fi
9379
9380 else
9381
9382                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9383                           if test "x$LINE" != x ; then
9384                             eval "DEFAULT_$LINE"
9385                           else
9386                             no_cache=1
9387                           fi
9388
9389                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9390
9391 fi;
9392
9393           eval "$ac_cv_use_spinbtn"
9394           if test "$no_cache" != 1; then
9395             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9396           fi
9397
9398           if test "$wxUSE_SPINBTN" = yes; then
9399             echo "$as_me:$LINENO: result: yes" >&5
9400 echo "${ECHO_T}yes" >&6
9401           else
9402             echo "$as_me:$LINENO: result: no" >&5
9403 echo "${ECHO_T}no" >&6
9404           fi
9405
9406
9407           enablestring=
9408           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9409 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9410           no_cache=0
9411           # Check whether --enable-spinctrl or --disable-spinctrl was given.
9412 if test "${enable_spinctrl+set}" = set; then
9413   enableval="$enable_spinctrl"
9414
9415                           if test "$enableval" = yes; then
9416                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9417                           else
9418                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9419                           fi
9420
9421 else
9422
9423                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9424                           if test "x$LINE" != x ; then
9425                             eval "DEFAULT_$LINE"
9426                           else
9427                             no_cache=1
9428                           fi
9429
9430                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9431
9432 fi;
9433
9434           eval "$ac_cv_use_spinctrl"
9435           if test "$no_cache" != 1; then
9436             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9437           fi
9438
9439           if test "$wxUSE_SPINCTRL" = yes; then
9440             echo "$as_me:$LINENO: result: yes" >&5
9441 echo "${ECHO_T}yes" >&6
9442           else
9443             echo "$as_me:$LINENO: result: no" >&5
9444 echo "${ECHO_T}no" >&6
9445           fi
9446
9447
9448           enablestring=
9449           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9450 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9451           no_cache=0
9452           # Check whether --enable-splitter or --disable-splitter was given.
9453 if test "${enable_splitter+set}" = set; then
9454   enableval="$enable_splitter"
9455
9456                           if test "$enableval" = yes; then
9457                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9458                           else
9459                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
9460                           fi
9461
9462 else
9463
9464                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9465                           if test "x$LINE" != x ; then
9466                             eval "DEFAULT_$LINE"
9467                           else
9468                             no_cache=1
9469                           fi
9470
9471                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9472
9473 fi;
9474
9475           eval "$ac_cv_use_splitter"
9476           if test "$no_cache" != 1; then
9477             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9478           fi
9479
9480           if test "$wxUSE_SPLITTER" = yes; then
9481             echo "$as_me:$LINENO: result: yes" >&5
9482 echo "${ECHO_T}yes" >&6
9483           else
9484             echo "$as_me:$LINENO: result: no" >&5
9485 echo "${ECHO_T}no" >&6
9486           fi
9487
9488
9489           enablestring=
9490           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9491 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9492           no_cache=0
9493           # Check whether --enable-statbmp or --disable-statbmp was given.
9494 if test "${enable_statbmp+set}" = set; then
9495   enableval="$enable_statbmp"
9496
9497                           if test "$enableval" = yes; then
9498                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9499                           else
9500                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
9501                           fi
9502
9503 else
9504
9505                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9506                           if test "x$LINE" != x ; then
9507                             eval "DEFAULT_$LINE"
9508                           else
9509                             no_cache=1
9510                           fi
9511
9512                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9513
9514 fi;
9515
9516           eval "$ac_cv_use_statbmp"
9517           if test "$no_cache" != 1; then
9518             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9519           fi
9520
9521           if test "$wxUSE_STATBMP" = yes; then
9522             echo "$as_me:$LINENO: result: yes" >&5
9523 echo "${ECHO_T}yes" >&6
9524           else
9525             echo "$as_me:$LINENO: result: no" >&5
9526 echo "${ECHO_T}no" >&6
9527           fi
9528
9529
9530           enablestring=
9531           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9532 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9533           no_cache=0
9534           # Check whether --enable-statbox or --disable-statbox was given.
9535 if test "${enable_statbox+set}" = set; then
9536   enableval="$enable_statbox"
9537
9538                           if test "$enableval" = yes; then
9539                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
9540                           else
9541                             ac_cv_use_statbox='wxUSE_STATBOX=no'
9542                           fi
9543
9544 else
9545
9546                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9547                           if test "x$LINE" != x ; then
9548                             eval "DEFAULT_$LINE"
9549                           else
9550                             no_cache=1
9551                           fi
9552
9553                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9554
9555 fi;
9556
9557           eval "$ac_cv_use_statbox"
9558           if test "$no_cache" != 1; then
9559             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9560           fi
9561
9562           if test "$wxUSE_STATBOX" = yes; then
9563             echo "$as_me:$LINENO: result: yes" >&5
9564 echo "${ECHO_T}yes" >&6
9565           else
9566             echo "$as_me:$LINENO: result: no" >&5
9567 echo "${ECHO_T}no" >&6
9568           fi
9569
9570
9571           enablestring=
9572           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9573 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9574           no_cache=0
9575           # Check whether --enable-statline or --disable-statline was given.
9576 if test "${enable_statline+set}" = set; then
9577   enableval="$enable_statline"
9578
9579                           if test "$enableval" = yes; then
9580                             ac_cv_use_statline='wxUSE_STATLINE=yes'
9581                           else
9582                             ac_cv_use_statline='wxUSE_STATLINE=no'
9583                           fi
9584
9585 else
9586
9587                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9588                           if test "x$LINE" != x ; then
9589                             eval "DEFAULT_$LINE"
9590                           else
9591                             no_cache=1
9592                           fi
9593
9594                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9595
9596 fi;
9597
9598           eval "$ac_cv_use_statline"
9599           if test "$no_cache" != 1; then
9600             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9601           fi
9602
9603           if test "$wxUSE_STATLINE" = yes; then
9604             echo "$as_me:$LINENO: result: yes" >&5
9605 echo "${ECHO_T}yes" >&6
9606           else
9607             echo "$as_me:$LINENO: result: no" >&5
9608 echo "${ECHO_T}no" >&6
9609           fi
9610
9611
9612           enablestring=
9613           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9614 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9615           no_cache=0
9616           # Check whether --enable-stattext or --disable-stattext was given.
9617 if test "${enable_stattext+set}" = set; then
9618   enableval="$enable_stattext"
9619
9620                           if test "$enableval" = yes; then
9621                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9622                           else
9623                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
9624                           fi
9625
9626 else
9627
9628                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9629                           if test "x$LINE" != x ; then
9630                             eval "DEFAULT_$LINE"
9631                           else
9632                             no_cache=1
9633                           fi
9634
9635                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9636
9637 fi;
9638
9639           eval "$ac_cv_use_stattext"
9640           if test "$no_cache" != 1; then
9641             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9642           fi
9643
9644           if test "$wxUSE_STATTEXT" = yes; then
9645             echo "$as_me:$LINENO: result: yes" >&5
9646 echo "${ECHO_T}yes" >&6
9647           else
9648             echo "$as_me:$LINENO: result: no" >&5
9649 echo "${ECHO_T}no" >&6
9650           fi
9651
9652
9653           enablestring=
9654           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9655 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9656           no_cache=0
9657           # Check whether --enable-statusbar or --disable-statusbar was given.
9658 if test "${enable_statusbar+set}" = set; then
9659   enableval="$enable_statusbar"
9660
9661                           if test "$enableval" = yes; then
9662                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9663                           else
9664                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9665                           fi
9666
9667 else
9668
9669                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9670                           if test "x$LINE" != x ; then
9671                             eval "DEFAULT_$LINE"
9672                           else
9673                             no_cache=1
9674                           fi
9675
9676                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9677
9678 fi;
9679
9680           eval "$ac_cv_use_statusbar"
9681           if test "$no_cache" != 1; then
9682             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9683           fi
9684
9685           if test "$wxUSE_STATUSBAR" = yes; then
9686             echo "$as_me:$LINENO: result: yes" >&5
9687 echo "${ECHO_T}yes" >&6
9688           else
9689             echo "$as_me:$LINENO: result: no" >&5
9690 echo "${ECHO_T}no" >&6
9691           fi
9692
9693
9694           enablestring=
9695           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9696 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9697           no_cache=0
9698           # Check whether --enable-tabdialog or --disable-tabdialog was given.
9699 if test "${enable_tabdialog+set}" = set; then
9700   enableval="$enable_tabdialog"
9701
9702                           if test "$enableval" = yes; then
9703                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9704                           else
9705                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9706                           fi
9707
9708 else
9709
9710                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9711                           if test "x$LINE" != x ; then
9712                             eval "DEFAULT_$LINE"
9713                           else
9714                             no_cache=1
9715                           fi
9716
9717                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9718
9719 fi;
9720
9721           eval "$ac_cv_use_tabdialog"
9722           if test "$no_cache" != 1; then
9723             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9724           fi
9725
9726           if test "$wxUSE_TAB_DIALOG" = yes; then
9727             echo "$as_me:$LINENO: result: yes" >&5
9728 echo "${ECHO_T}yes" >&6
9729           else
9730             echo "$as_me:$LINENO: result: no" >&5
9731 echo "${ECHO_T}no" >&6
9732           fi
9733
9734
9735           enablestring=
9736           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9737 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9738           no_cache=0
9739           # Check whether --enable-textctrl or --disable-textctrl was given.
9740 if test "${enable_textctrl+set}" = set; then
9741   enableval="$enable_textctrl"
9742
9743                           if test "$enableval" = yes; then
9744                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9745                           else
9746                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9747                           fi
9748
9749 else
9750
9751                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9752                           if test "x$LINE" != x ; then
9753                             eval "DEFAULT_$LINE"
9754                           else
9755                             no_cache=1
9756                           fi
9757
9758                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9759
9760 fi;
9761
9762           eval "$ac_cv_use_textctrl"
9763           if test "$no_cache" != 1; then
9764             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9765           fi
9766
9767           if test "$wxUSE_TEXTCTRL" = yes; then
9768             echo "$as_me:$LINENO: result: yes" >&5
9769 echo "${ECHO_T}yes" >&6
9770           else
9771             echo "$as_me:$LINENO: result: no" >&5
9772 echo "${ECHO_T}no" >&6
9773           fi
9774
9775
9776           enablestring=
9777           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9778 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9779           no_cache=0
9780           # Check whether --enable-togglebtn or --disable-togglebtn was given.
9781 if test "${enable_togglebtn+set}" = set; then
9782   enableval="$enable_togglebtn"
9783
9784                           if test "$enableval" = yes; then
9785                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9786                           else
9787                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9788                           fi
9789
9790 else
9791
9792                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9793                           if test "x$LINE" != x ; then
9794                             eval "DEFAULT_$LINE"
9795                           else
9796                             no_cache=1
9797                           fi
9798
9799                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9800
9801 fi;
9802
9803           eval "$ac_cv_use_togglebtn"
9804           if test "$no_cache" != 1; then
9805             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9806           fi
9807
9808           if test "$wxUSE_TOGGLEBTN" = yes; then
9809             echo "$as_me:$LINENO: result: yes" >&5
9810 echo "${ECHO_T}yes" >&6
9811           else
9812             echo "$as_me:$LINENO: result: no" >&5
9813 echo "${ECHO_T}no" >&6
9814           fi
9815
9816
9817           enablestring=
9818           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9819 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9820           no_cache=0
9821           # Check whether --enable-toolbar or --disable-toolbar was given.
9822 if test "${enable_toolbar+set}" = set; then
9823   enableval="$enable_toolbar"
9824
9825                           if test "$enableval" = yes; then
9826                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9827                           else
9828                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9829                           fi
9830
9831 else
9832
9833                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9834                           if test "x$LINE" != x ; then
9835                             eval "DEFAULT_$LINE"
9836                           else
9837                             no_cache=1
9838                           fi
9839
9840                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9841
9842 fi;
9843
9844           eval "$ac_cv_use_toolbar"
9845           if test "$no_cache" != 1; then
9846             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9847           fi
9848
9849           if test "$wxUSE_TOOLBAR" = yes; then
9850             echo "$as_me:$LINENO: result: yes" >&5
9851 echo "${ECHO_T}yes" >&6
9852           else
9853             echo "$as_me:$LINENO: result: no" >&5
9854 echo "${ECHO_T}no" >&6
9855           fi
9856
9857
9858           enablestring=
9859           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9860 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9861           no_cache=0
9862           # Check whether --enable-tbarnative or --disable-tbarnative was given.
9863 if test "${enable_tbarnative+set}" = set; then
9864   enableval="$enable_tbarnative"
9865
9866                           if test "$enableval" = yes; then
9867                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9868                           else
9869                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9870                           fi
9871
9872 else
9873
9874                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9875                           if test "x$LINE" != x ; then
9876                             eval "DEFAULT_$LINE"
9877                           else
9878                             no_cache=1
9879                           fi
9880
9881                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9882
9883 fi;
9884
9885           eval "$ac_cv_use_tbarnative"
9886           if test "$no_cache" != 1; then
9887             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9888           fi
9889
9890           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9891             echo "$as_me:$LINENO: result: yes" >&5
9892 echo "${ECHO_T}yes" >&6
9893           else
9894             echo "$as_me:$LINENO: result: no" >&5
9895 echo "${ECHO_T}no" >&6
9896           fi
9897
9898
9899           enablestring=
9900           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9901 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9902           no_cache=0
9903           # Check whether --enable-treebook or --disable-treebook was given.
9904 if test "${enable_treebook+set}" = set; then
9905   enableval="$enable_treebook"
9906
9907                           if test "$enableval" = yes; then
9908                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9909                           else
9910                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9911                           fi
9912
9913 else
9914
9915                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9916                           if test "x$LINE" != x ; then
9917                             eval "DEFAULT_$LINE"
9918                           else
9919                             no_cache=1
9920                           fi
9921
9922                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9923
9924 fi;
9925
9926           eval "$ac_cv_use_treebook"
9927           if test "$no_cache" != 1; then
9928             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9929           fi
9930
9931           if test "$wxUSE_TREEBOOK" = yes; then
9932             echo "$as_me:$LINENO: result: yes" >&5
9933 echo "${ECHO_T}yes" >&6
9934           else
9935             echo "$as_me:$LINENO: result: no" >&5
9936 echo "${ECHO_T}no" >&6
9937           fi
9938
9939
9940           enablestring=
9941           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9942 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9943           no_cache=0
9944           # Check whether --enable-toolbook or --disable-toolbook was given.
9945 if test "${enable_toolbook+set}" = set; then
9946   enableval="$enable_toolbook"
9947
9948                           if test "$enableval" = yes; then
9949                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9950                           else
9951                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9952                           fi
9953
9954 else
9955
9956                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9957                           if test "x$LINE" != x ; then
9958                             eval "DEFAULT_$LINE"
9959                           else
9960                             no_cache=1
9961                           fi
9962
9963                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9964
9965 fi;
9966
9967           eval "$ac_cv_use_toolbook"
9968           if test "$no_cache" != 1; then
9969             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9970           fi
9971
9972           if test "$wxUSE_TOOLBOOK" = yes; then
9973             echo "$as_me:$LINENO: result: yes" >&5
9974 echo "${ECHO_T}yes" >&6
9975           else
9976             echo "$as_me:$LINENO: result: no" >&5
9977 echo "${ECHO_T}no" >&6
9978           fi
9979
9980
9981           enablestring=
9982           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9983 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9984           no_cache=0
9985           # Check whether --enable-treectrl or --disable-treectrl was given.
9986 if test "${enable_treectrl+set}" = set; then
9987   enableval="$enable_treectrl"
9988
9989                           if test "$enableval" = yes; then
9990                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9991                           else
9992                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9993                           fi
9994
9995 else
9996
9997                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9998                           if test "x$LINE" != x ; then
9999                             eval "DEFAULT_$LINE"
10000                           else
10001                             no_cache=1
10002                           fi
10003
10004                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10005
10006 fi;
10007
10008           eval "$ac_cv_use_treectrl"
10009           if test "$no_cache" != 1; then
10010             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10011           fi
10012
10013           if test "$wxUSE_TREECTRL" = yes; then
10014             echo "$as_me:$LINENO: result: yes" >&5
10015 echo "${ECHO_T}yes" >&6
10016           else
10017             echo "$as_me:$LINENO: result: no" >&5
10018 echo "${ECHO_T}no" >&6
10019           fi
10020
10021
10022           enablestring=
10023           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10024 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10025           no_cache=0
10026           # Check whether --enable-tipwindow or --disable-tipwindow was given.
10027 if test "${enable_tipwindow+set}" = set; then
10028   enableval="$enable_tipwindow"
10029
10030                           if test "$enableval" = yes; then
10031                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10032                           else
10033                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10034                           fi
10035
10036 else
10037
10038                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10039                           if test "x$LINE" != x ; then
10040                             eval "DEFAULT_$LINE"
10041                           else
10042                             no_cache=1
10043                           fi
10044
10045                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10046
10047 fi;
10048
10049           eval "$ac_cv_use_tipwindow"
10050           if test "$no_cache" != 1; then
10051             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10052           fi
10053
10054           if test "$wxUSE_TIPWINDOW" = yes; then
10055             echo "$as_me:$LINENO: result: yes" >&5
10056 echo "${ECHO_T}yes" >&6
10057           else
10058             echo "$as_me:$LINENO: result: no" >&5
10059 echo "${ECHO_T}no" >&6
10060           fi
10061
10062
10063           enablestring=
10064           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10065 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10066           no_cache=0
10067           # Check whether --enable-popupwin or --disable-popupwin was given.
10068 if test "${enable_popupwin+set}" = set; then
10069   enableval="$enable_popupwin"
10070
10071                           if test "$enableval" = yes; then
10072                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10073                           else
10074                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10075                           fi
10076
10077 else
10078
10079                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10080                           if test "x$LINE" != x ; then
10081                             eval "DEFAULT_$LINE"
10082                           else
10083                             no_cache=1
10084                           fi
10085
10086                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10087
10088 fi;
10089
10090           eval "$ac_cv_use_popupwin"
10091           if test "$no_cache" != 1; then
10092             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10093           fi
10094
10095           if test "$wxUSE_POPUPWIN" = yes; then
10096             echo "$as_me:$LINENO: result: yes" >&5
10097 echo "${ECHO_T}yes" >&6
10098           else
10099             echo "$as_me:$LINENO: result: no" >&5
10100 echo "${ECHO_T}no" >&6
10101           fi
10102
10103
10104
10105
10106           enablestring=
10107           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10108 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10109           no_cache=0
10110           # Check whether --enable-commondlg or --disable-commondlg was given.
10111 if test "${enable_commondlg+set}" = set; then
10112   enableval="$enable_commondlg"
10113
10114                           if test "$enableval" = yes; then
10115                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10116                           else
10117                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10118                           fi
10119
10120 else
10121
10122                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10123                           if test "x$LINE" != x ; then
10124                             eval "DEFAULT_$LINE"
10125                           else
10126                             no_cache=1
10127                           fi
10128
10129                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10130
10131 fi;
10132
10133           eval "$ac_cv_use_commondlg"
10134           if test "$no_cache" != 1; then
10135             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10136           fi
10137
10138           if test "$wxUSE_COMMONDLGS" = yes; then
10139             echo "$as_me:$LINENO: result: yes" >&5
10140 echo "${ECHO_T}yes" >&6
10141           else
10142             echo "$as_me:$LINENO: result: no" >&5
10143 echo "${ECHO_T}no" >&6
10144           fi
10145
10146
10147           enablestring=
10148           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10149 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10150           no_cache=0
10151           # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10152 if test "${enable_aboutdlg+set}" = set; then
10153   enableval="$enable_aboutdlg"
10154
10155                           if test "$enableval" = yes; then
10156                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10157                           else
10158                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10159                           fi
10160
10161 else
10162
10163                           LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10164                           if test "x$LINE" != x ; then
10165                             eval "DEFAULT_$LINE"
10166                           else
10167                             no_cache=1
10168                           fi
10169
10170                           ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10171
10172 fi;
10173
10174           eval "$ac_cv_use_aboutdlg"
10175           if test "$no_cache" != 1; then
10176             echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10177           fi
10178
10179           if test "$wxUSE_ABOUTDLG" = yes; then
10180             echo "$as_me:$LINENO: result: yes" >&5
10181 echo "${ECHO_T}yes" >&6
10182           else
10183             echo "$as_me:$LINENO: result: no" >&5
10184 echo "${ECHO_T}no" >&6
10185           fi
10186
10187
10188           enablestring=
10189           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10190 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10191           no_cache=0
10192           # Check whether --enable-choicedlg or --disable-choicedlg was given.
10193 if test "${enable_choicedlg+set}" = set; then
10194   enableval="$enable_choicedlg"
10195
10196                           if test "$enableval" = yes; then
10197                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10198                           else
10199                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10200                           fi
10201
10202 else
10203
10204                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10205                           if test "x$LINE" != x ; then
10206                             eval "DEFAULT_$LINE"
10207                           else
10208                             no_cache=1
10209                           fi
10210
10211                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10212
10213 fi;
10214
10215           eval "$ac_cv_use_choicedlg"
10216           if test "$no_cache" != 1; then
10217             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10218           fi
10219
10220           if test "$wxUSE_CHOICEDLG" = yes; then
10221             echo "$as_me:$LINENO: result: yes" >&5
10222 echo "${ECHO_T}yes" >&6
10223           else
10224             echo "$as_me:$LINENO: result: no" >&5
10225 echo "${ECHO_T}no" >&6
10226           fi
10227
10228
10229           enablestring=
10230           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10231 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10232           no_cache=0
10233           # Check whether --enable-coldlg or --disable-coldlg was given.
10234 if test "${enable_coldlg+set}" = set; then
10235   enableval="$enable_coldlg"
10236
10237                           if test "$enableval" = yes; then
10238                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10239                           else
10240                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10241                           fi
10242
10243 else
10244
10245                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10246                           if test "x$LINE" != x ; then
10247                             eval "DEFAULT_$LINE"
10248                           else
10249                             no_cache=1
10250                           fi
10251
10252                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10253
10254 fi;
10255
10256           eval "$ac_cv_use_coldlg"
10257           if test "$no_cache" != 1; then
10258             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10259           fi
10260
10261           if test "$wxUSE_COLOURDLG" = yes; then
10262             echo "$as_me:$LINENO: result: yes" >&5
10263 echo "${ECHO_T}yes" >&6
10264           else
10265             echo "$as_me:$LINENO: result: no" >&5
10266 echo "${ECHO_T}no" >&6
10267           fi
10268
10269
10270           enablestring=
10271           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10272 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10273           no_cache=0
10274           # Check whether --enable-filedlg or --disable-filedlg was given.
10275 if test "${enable_filedlg+set}" = set; then
10276   enableval="$enable_filedlg"
10277
10278                           if test "$enableval" = yes; then
10279                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10280                           else
10281                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10282                           fi
10283
10284 else
10285
10286                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10287                           if test "x$LINE" != x ; then
10288                             eval "DEFAULT_$LINE"
10289                           else
10290                             no_cache=1
10291                           fi
10292
10293                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10294
10295 fi;
10296
10297           eval "$ac_cv_use_filedlg"
10298           if test "$no_cache" != 1; then
10299             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10300           fi
10301
10302           if test "$wxUSE_FILEDLG" = yes; then
10303             echo "$as_me:$LINENO: result: yes" >&5
10304 echo "${ECHO_T}yes" >&6
10305           else
10306             echo "$as_me:$LINENO: result: no" >&5
10307 echo "${ECHO_T}no" >&6
10308           fi
10309
10310
10311           enablestring=
10312           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10313 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10314           no_cache=0
10315           # Check whether --enable-finddlg or --disable-finddlg was given.
10316 if test "${enable_finddlg+set}" = set; then
10317   enableval="$enable_finddlg"
10318
10319                           if test "$enableval" = yes; then
10320                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10321                           else
10322                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10323                           fi
10324
10325 else
10326
10327                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10328                           if test "x$LINE" != x ; then
10329                             eval "DEFAULT_$LINE"
10330                           else
10331                             no_cache=1
10332                           fi
10333
10334                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10335
10336 fi;
10337
10338           eval "$ac_cv_use_finddlg"
10339           if test "$no_cache" != 1; then
10340             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10341           fi
10342
10343           if test "$wxUSE_FINDREPLDLG" = yes; then
10344             echo "$as_me:$LINENO: result: yes" >&5
10345 echo "${ECHO_T}yes" >&6
10346           else
10347             echo "$as_me:$LINENO: result: no" >&5
10348 echo "${ECHO_T}no" >&6
10349           fi
10350
10351
10352           enablestring=
10353           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10354 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10355           no_cache=0
10356           # Check whether --enable-fontdlg or --disable-fontdlg was given.
10357 if test "${enable_fontdlg+set}" = set; then
10358   enableval="$enable_fontdlg"
10359
10360                           if test "$enableval" = yes; then
10361                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10362                           else
10363                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10364                           fi
10365
10366 else
10367
10368                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10369                           if test "x$LINE" != x ; then
10370                             eval "DEFAULT_$LINE"
10371                           else
10372                             no_cache=1
10373                           fi
10374
10375                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10376
10377 fi;
10378
10379           eval "$ac_cv_use_fontdlg"
10380           if test "$no_cache" != 1; then
10381             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10382           fi
10383
10384           if test "$wxUSE_FONTDLG" = yes; then
10385             echo "$as_me:$LINENO: result: yes" >&5
10386 echo "${ECHO_T}yes" >&6
10387           else
10388             echo "$as_me:$LINENO: result: no" >&5
10389 echo "${ECHO_T}no" >&6
10390           fi
10391
10392
10393           enablestring=
10394           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10395 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10396           no_cache=0
10397           # Check whether --enable-dirdlg or --disable-dirdlg was given.
10398 if test "${enable_dirdlg+set}" = set; then
10399   enableval="$enable_dirdlg"
10400
10401                           if test "$enableval" = yes; then
10402                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10403                           else
10404                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10405                           fi
10406
10407 else
10408
10409                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10410                           if test "x$LINE" != x ; then
10411                             eval "DEFAULT_$LINE"
10412                           else
10413                             no_cache=1
10414                           fi
10415
10416                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10417
10418 fi;
10419
10420           eval "$ac_cv_use_dirdlg"
10421           if test "$no_cache" != 1; then
10422             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10423           fi
10424
10425           if test "$wxUSE_DIRDLG" = yes; then
10426             echo "$as_me:$LINENO: result: yes" >&5
10427 echo "${ECHO_T}yes" >&6
10428           else
10429             echo "$as_me:$LINENO: result: no" >&5
10430 echo "${ECHO_T}no" >&6
10431           fi
10432
10433
10434           enablestring=
10435           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10436 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10437           no_cache=0
10438           # Check whether --enable-msgdlg or --disable-msgdlg was given.
10439 if test "${enable_msgdlg+set}" = set; then
10440   enableval="$enable_msgdlg"
10441
10442                           if test "$enableval" = yes; then
10443                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10444                           else
10445                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10446                           fi
10447
10448 else
10449
10450                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10451                           if test "x$LINE" != x ; then
10452                             eval "DEFAULT_$LINE"
10453                           else
10454                             no_cache=1
10455                           fi
10456
10457                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10458
10459 fi;
10460
10461           eval "$ac_cv_use_msgdlg"
10462           if test "$no_cache" != 1; then
10463             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10464           fi
10465
10466           if test "$wxUSE_MSGDLG" = yes; then
10467             echo "$as_me:$LINENO: result: yes" >&5
10468 echo "${ECHO_T}yes" >&6
10469           else
10470             echo "$as_me:$LINENO: result: no" >&5
10471 echo "${ECHO_T}no" >&6
10472           fi
10473
10474
10475           enablestring=
10476           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10477 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10478           no_cache=0
10479           # Check whether --enable-numberdlg or --disable-numberdlg was given.
10480 if test "${enable_numberdlg+set}" = set; then
10481   enableval="$enable_numberdlg"
10482
10483                           if test "$enableval" = yes; then
10484                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10485                           else
10486                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10487                           fi
10488
10489 else
10490
10491                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10492                           if test "x$LINE" != x ; then
10493                             eval "DEFAULT_$LINE"
10494                           else
10495                             no_cache=1
10496                           fi
10497
10498                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10499
10500 fi;
10501
10502           eval "$ac_cv_use_numberdlg"
10503           if test "$no_cache" != 1; then
10504             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10505           fi
10506
10507           if test "$wxUSE_NUMBERDLG" = yes; then
10508             echo "$as_me:$LINENO: result: yes" >&5
10509 echo "${ECHO_T}yes" >&6
10510           else
10511             echo "$as_me:$LINENO: result: no" >&5
10512 echo "${ECHO_T}no" >&6
10513           fi
10514
10515
10516           enablestring=
10517           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10518 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10519           no_cache=0
10520           # Check whether --enable-splash or --disable-splash was given.
10521 if test "${enable_splash+set}" = set; then
10522   enableval="$enable_splash"
10523
10524                           if test "$enableval" = yes; then
10525                             ac_cv_use_splash='wxUSE_SPLASH=yes'
10526                           else
10527                             ac_cv_use_splash='wxUSE_SPLASH=no'
10528                           fi
10529
10530 else
10531
10532                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10533                           if test "x$LINE" != x ; then
10534                             eval "DEFAULT_$LINE"
10535                           else
10536                             no_cache=1
10537                           fi
10538
10539                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10540
10541 fi;
10542
10543           eval "$ac_cv_use_splash"
10544           if test "$no_cache" != 1; then
10545             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10546           fi
10547
10548           if test "$wxUSE_SPLASH" = yes; then
10549             echo "$as_me:$LINENO: result: yes" >&5
10550 echo "${ECHO_T}yes" >&6
10551           else
10552             echo "$as_me:$LINENO: result: no" >&5
10553 echo "${ECHO_T}no" >&6
10554           fi
10555
10556
10557           enablestring=
10558           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10559 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10560           no_cache=0
10561           # Check whether --enable-textdlg or --disable-textdlg was given.
10562 if test "${enable_textdlg+set}" = set; then
10563   enableval="$enable_textdlg"
10564
10565                           if test "$enableval" = yes; then
10566                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10567                           else
10568                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10569                           fi
10570
10571 else
10572
10573                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10574                           if test "x$LINE" != x ; then
10575                             eval "DEFAULT_$LINE"
10576                           else
10577                             no_cache=1
10578                           fi
10579
10580                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10581
10582 fi;
10583
10584           eval "$ac_cv_use_textdlg"
10585           if test "$no_cache" != 1; then
10586             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10587           fi
10588
10589           if test "$wxUSE_TEXTDLG" = yes; then
10590             echo "$as_me:$LINENO: result: yes" >&5
10591 echo "${ECHO_T}yes" >&6
10592           else
10593             echo "$as_me:$LINENO: result: no" >&5
10594 echo "${ECHO_T}no" >&6
10595           fi
10596
10597
10598           enablestring=
10599           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10600 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10601           no_cache=0
10602           # Check whether --enable-tipdlg or --disable-tipdlg was given.
10603 if test "${enable_tipdlg+set}" = set; then
10604   enableval="$enable_tipdlg"
10605
10606                           if test "$enableval" = yes; then
10607                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10608                           else
10609                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10610                           fi
10611
10612 else
10613
10614                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10615                           if test "x$LINE" != x ; then
10616                             eval "DEFAULT_$LINE"
10617                           else
10618                             no_cache=1
10619                           fi
10620
10621                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10622
10623 fi;
10624
10625           eval "$ac_cv_use_tipdlg"
10626           if test "$no_cache" != 1; then
10627             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10628           fi
10629
10630           if test "$wxUSE_STARTUP_TIPS" = yes; then
10631             echo "$as_me:$LINENO: result: yes" >&5
10632 echo "${ECHO_T}yes" >&6
10633           else
10634             echo "$as_me:$LINENO: result: no" >&5
10635 echo "${ECHO_T}no" >&6
10636           fi
10637
10638
10639           enablestring=
10640           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10641 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10642           no_cache=0
10643           # Check whether --enable-progressdlg or --disable-progressdlg was given.
10644 if test "${enable_progressdlg+set}" = set; then
10645   enableval="$enable_progressdlg"
10646
10647                           if test "$enableval" = yes; then
10648                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10649                           else
10650                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10651                           fi
10652
10653 else
10654
10655                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10656                           if test "x$LINE" != x ; then
10657                             eval "DEFAULT_$LINE"
10658                           else
10659                             no_cache=1
10660                           fi
10661
10662                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10663
10664 fi;
10665
10666           eval "$ac_cv_use_progressdlg"
10667           if test "$no_cache" != 1; then
10668             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10669           fi
10670
10671           if test "$wxUSE_PROGRESSDLG" = yes; then
10672             echo "$as_me:$LINENO: result: yes" >&5
10673 echo "${ECHO_T}yes" >&6
10674           else
10675             echo "$as_me:$LINENO: result: no" >&5
10676 echo "${ECHO_T}no" >&6
10677           fi
10678
10679
10680           enablestring=
10681           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10682 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10683           no_cache=0
10684           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10685 if test "${enable_wizarddlg+set}" = set; then
10686   enableval="$enable_wizarddlg"
10687
10688                           if test "$enableval" = yes; then
10689                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10690                           else
10691                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10692                           fi
10693
10694 else
10695
10696                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10697                           if test "x$LINE" != x ; then
10698                             eval "DEFAULT_$LINE"
10699                           else
10700                             no_cache=1
10701                           fi
10702
10703                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10704
10705 fi;
10706
10707           eval "$ac_cv_use_wizarddlg"
10708           if test "$no_cache" != 1; then
10709             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10710           fi
10711
10712           if test "$wxUSE_WIZARDDLG" = yes; then
10713             echo "$as_me:$LINENO: result: yes" >&5
10714 echo "${ECHO_T}yes" >&6
10715           else
10716             echo "$as_me:$LINENO: result: no" >&5
10717 echo "${ECHO_T}no" >&6
10718           fi
10719
10720
10721
10722
10723           enablestring=
10724           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10725 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10726           no_cache=0
10727           # Check whether --enable-menus or --disable-menus was given.
10728 if test "${enable_menus+set}" = set; then
10729   enableval="$enable_menus"
10730
10731                           if test "$enableval" = yes; then
10732                             ac_cv_use_menus='wxUSE_MENUS=yes'
10733                           else
10734                             ac_cv_use_menus='wxUSE_MENUS=no'
10735                           fi
10736
10737 else
10738
10739                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10740                           if test "x$LINE" != x ; then
10741                             eval "DEFAULT_$LINE"
10742                           else
10743                             no_cache=1
10744                           fi
10745
10746                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10747
10748 fi;
10749
10750           eval "$ac_cv_use_menus"
10751           if test "$no_cache" != 1; then
10752             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10753           fi
10754
10755           if test "$wxUSE_MENUS" = yes; then
10756             echo "$as_me:$LINENO: result: yes" >&5
10757 echo "${ECHO_T}yes" >&6
10758           else
10759             echo "$as_me:$LINENO: result: no" >&5
10760 echo "${ECHO_T}no" >&6
10761           fi
10762
10763
10764           enablestring=
10765           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10766 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10767           no_cache=0
10768           # Check whether --enable-miniframe or --disable-miniframe was given.
10769 if test "${enable_miniframe+set}" = set; then
10770   enableval="$enable_miniframe"
10771
10772                           if test "$enableval" = yes; then
10773                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10774                           else
10775                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10776                           fi
10777
10778 else
10779
10780                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10781                           if test "x$LINE" != x ; then
10782                             eval "DEFAULT_$LINE"
10783                           else
10784                             no_cache=1
10785                           fi
10786
10787                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10788
10789 fi;
10790
10791           eval "$ac_cv_use_miniframe"
10792           if test "$no_cache" != 1; then
10793             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10794           fi
10795
10796           if test "$wxUSE_MINIFRAME" = yes; then
10797             echo "$as_me:$LINENO: result: yes" >&5
10798 echo "${ECHO_T}yes" >&6
10799           else
10800             echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6
10802           fi
10803
10804
10805           enablestring=
10806           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10807 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10808           no_cache=0
10809           # Check whether --enable-tooltips or --disable-tooltips was given.
10810 if test "${enable_tooltips+set}" = set; then
10811   enableval="$enable_tooltips"
10812
10813                           if test "$enableval" = yes; then
10814                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10815                           else
10816                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10817                           fi
10818
10819 else
10820
10821                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10822                           if test "x$LINE" != x ; then
10823                             eval "DEFAULT_$LINE"
10824                           else
10825                             no_cache=1
10826                           fi
10827
10828                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10829
10830 fi;
10831
10832           eval "$ac_cv_use_tooltips"
10833           if test "$no_cache" != 1; then
10834             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10835           fi
10836
10837           if test "$wxUSE_TOOLTIPS" = yes; then
10838             echo "$as_me:$LINENO: result: yes" >&5
10839 echo "${ECHO_T}yes" >&6
10840           else
10841             echo "$as_me:$LINENO: result: no" >&5
10842 echo "${ECHO_T}no" >&6
10843           fi
10844
10845
10846           enablestring=
10847           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10848 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10849           no_cache=0
10850           # Check whether --enable-splines or --disable-splines was given.
10851 if test "${enable_splines+set}" = set; then
10852   enableval="$enable_splines"
10853
10854                           if test "$enableval" = yes; then
10855                             ac_cv_use_splines='wxUSE_SPLINES=yes'
10856                           else
10857                             ac_cv_use_splines='wxUSE_SPLINES=no'
10858                           fi
10859
10860 else
10861
10862                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10863                           if test "x$LINE" != x ; then
10864                             eval "DEFAULT_$LINE"
10865                           else
10866                             no_cache=1
10867                           fi
10868
10869                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10870
10871 fi;
10872
10873           eval "$ac_cv_use_splines"
10874           if test "$no_cache" != 1; then
10875             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10876           fi
10877
10878           if test "$wxUSE_SPLINES" = yes; then
10879             echo "$as_me:$LINENO: result: yes" >&5
10880 echo "${ECHO_T}yes" >&6
10881           else
10882             echo "$as_me:$LINENO: result: no" >&5
10883 echo "${ECHO_T}no" >&6
10884           fi
10885
10886
10887           enablestring=
10888           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10889 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10890           no_cache=0
10891           # Check whether --enable-mousewheel or --disable-mousewheel was given.
10892 if test "${enable_mousewheel+set}" = set; then
10893   enableval="$enable_mousewheel"
10894
10895                           if test "$enableval" = yes; then
10896                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10897                           else
10898                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10899                           fi
10900
10901 else
10902
10903                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10904                           if test "x$LINE" != x ; then
10905                             eval "DEFAULT_$LINE"
10906                           else
10907                             no_cache=1
10908                           fi
10909
10910                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10911
10912 fi;
10913
10914           eval "$ac_cv_use_mousewheel"
10915           if test "$no_cache" != 1; then
10916             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10917           fi
10918
10919           if test "$wxUSE_MOUSEWHEEL" = yes; then
10920             echo "$as_me:$LINENO: result: yes" >&5
10921 echo "${ECHO_T}yes" >&6
10922           else
10923             echo "$as_me:$LINENO: result: no" >&5
10924 echo "${ECHO_T}no" >&6
10925           fi
10926
10927
10928           enablestring=
10929           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10930 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10931           no_cache=0
10932           # Check whether --enable-validators or --disable-validators was given.
10933 if test "${enable_validators+set}" = set; then
10934   enableval="$enable_validators"
10935
10936                           if test "$enableval" = yes; then
10937                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10938                           else
10939                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
10940                           fi
10941
10942 else
10943
10944                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10945                           if test "x$LINE" != x ; then
10946                             eval "DEFAULT_$LINE"
10947                           else
10948                             no_cache=1
10949                           fi
10950
10951                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10952
10953 fi;
10954
10955           eval "$ac_cv_use_validators"
10956           if test "$no_cache" != 1; then
10957             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10958           fi
10959
10960           if test "$wxUSE_VALIDATORS" = yes; then
10961             echo "$as_me:$LINENO: result: yes" >&5
10962 echo "${ECHO_T}yes" >&6
10963           else
10964             echo "$as_me:$LINENO: result: no" >&5
10965 echo "${ECHO_T}no" >&6
10966           fi
10967
10968
10969           enablestring=
10970           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10971 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10972           no_cache=0
10973           # Check whether --enable-busyinfo or --disable-busyinfo was given.
10974 if test "${enable_busyinfo+set}" = set; then
10975   enableval="$enable_busyinfo"
10976
10977                           if test "$enableval" = yes; then
10978                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10979                           else
10980                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10981                           fi
10982
10983 else
10984
10985                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10986                           if test "x$LINE" != x ; then
10987                             eval "DEFAULT_$LINE"
10988                           else
10989                             no_cache=1
10990                           fi
10991
10992                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10993
10994 fi;
10995
10996           eval "$ac_cv_use_busyinfo"
10997           if test "$no_cache" != 1; then
10998             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10999           fi
11000
11001           if test "$wxUSE_BUSYINFO" = yes; then
11002             echo "$as_me:$LINENO: result: yes" >&5
11003 echo "${ECHO_T}yes" >&6
11004           else
11005             echo "$as_me:$LINENO: result: no" >&5
11006 echo "${ECHO_T}no" >&6
11007           fi
11008
11009
11010           enablestring=
11011           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11012 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11013           no_cache=0
11014           # Check whether --enable-joystick or --disable-joystick was given.
11015 if test "${enable_joystick+set}" = set; then
11016   enableval="$enable_joystick"
11017
11018                           if test "$enableval" = yes; then
11019                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11020                           else
11021                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11022                           fi
11023
11024 else
11025
11026                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11027                           if test "x$LINE" != x ; then
11028                             eval "DEFAULT_$LINE"
11029                           else
11030                             no_cache=1
11031                           fi
11032
11033                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11034
11035 fi;
11036
11037           eval "$ac_cv_use_joystick"
11038           if test "$no_cache" != 1; then
11039             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11040           fi
11041
11042           if test "$wxUSE_JOYSTICK" = yes; then
11043             echo "$as_me:$LINENO: result: yes" >&5
11044 echo "${ECHO_T}yes" >&6
11045           else
11046             echo "$as_me:$LINENO: result: no" >&5
11047 echo "${ECHO_T}no" >&6
11048           fi
11049
11050
11051           enablestring=
11052           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11053 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11054           no_cache=0
11055           # Check whether --enable-metafile or --disable-metafile was given.
11056 if test "${enable_metafile+set}" = set; then
11057   enableval="$enable_metafile"
11058
11059                           if test "$enableval" = yes; then
11060                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
11061                           else
11062                             ac_cv_use_metafile='wxUSE_METAFILE=no'
11063                           fi
11064
11065 else
11066
11067                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11068                           if test "x$LINE" != x ; then
11069                             eval "DEFAULT_$LINE"
11070                           else
11071                             no_cache=1
11072                           fi
11073
11074                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11075
11076 fi;
11077
11078           eval "$ac_cv_use_metafile"
11079           if test "$no_cache" != 1; then
11080             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11081           fi
11082
11083           if test "$wxUSE_METAFILE" = yes; then
11084             echo "$as_me:$LINENO: result: yes" >&5
11085 echo "${ECHO_T}yes" >&6
11086           else
11087             echo "$as_me:$LINENO: result: no" >&5
11088 echo "${ECHO_T}no" >&6
11089           fi
11090
11091
11092           enablestring=
11093           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11094 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11095           no_cache=0
11096           # Check whether --enable-dragimage or --disable-dragimage was given.
11097 if test "${enable_dragimage+set}" = set; then
11098   enableval="$enable_dragimage"
11099
11100                           if test "$enableval" = yes; then
11101                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11102                           else
11103                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11104                           fi
11105
11106 else
11107
11108                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11109                           if test "x$LINE" != x ; then
11110                             eval "DEFAULT_$LINE"
11111                           else
11112                             no_cache=1
11113                           fi
11114
11115                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11116
11117 fi;
11118
11119           eval "$ac_cv_use_dragimage"
11120           if test "$no_cache" != 1; then
11121             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11122           fi
11123
11124           if test "$wxUSE_DRAGIMAGE" = yes; then
11125             echo "$as_me:$LINENO: result: yes" >&5
11126 echo "${ECHO_T}yes" >&6
11127           else
11128             echo "$as_me:$LINENO: result: no" >&5
11129 echo "${ECHO_T}no" >&6
11130           fi
11131
11132
11133           enablestring=
11134           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11135 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11136           no_cache=0
11137           # Check whether --enable-accessibility or --disable-accessibility was given.
11138 if test "${enable_accessibility+set}" = set; then
11139   enableval="$enable_accessibility"
11140
11141                           if test "$enableval" = yes; then
11142                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11143                           else
11144                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11145                           fi
11146
11147 else
11148
11149                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11150                           if test "x$LINE" != x ; then
11151                             eval "DEFAULT_$LINE"
11152                           else
11153                             no_cache=1
11154                           fi
11155
11156                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11157
11158 fi;
11159
11160           eval "$ac_cv_use_accessibility"
11161           if test "$no_cache" != 1; then
11162             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11163           fi
11164
11165           if test "$wxUSE_ACCESSIBILITY" = yes; then
11166             echo "$as_me:$LINENO: result: yes" >&5
11167 echo "${ECHO_T}yes" >&6
11168           else
11169             echo "$as_me:$LINENO: result: no" >&5
11170 echo "${ECHO_T}no" >&6
11171           fi
11172
11173
11174 if test "$wxUSE_MSW" = "1"; then
11175
11176           enablestring=
11177           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11178 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11179           no_cache=0
11180           # Check whether --enable-dccache or --disable-dccache was given.
11181 if test "${enable_dccache+set}" = set; then
11182   enableval="$enable_dccache"
11183
11184                           if test "$enableval" = yes; then
11185                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11186                           else
11187                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11188                           fi
11189
11190 else
11191
11192                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11193                           if test "x$LINE" != x ; then
11194                             eval "DEFAULT_$LINE"
11195                           else
11196                             no_cache=1
11197                           fi
11198
11199                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11200
11201 fi;
11202
11203           eval "$ac_cv_use_dccache"
11204           if test "$no_cache" != 1; then
11205             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11206           fi
11207
11208           if test "$wxUSE_DC_CACHEING" = yes; then
11209             echo "$as_me:$LINENO: result: yes" >&5
11210 echo "${ECHO_T}yes" >&6
11211           else
11212             echo "$as_me:$LINENO: result: no" >&5
11213 echo "${ECHO_T}no" >&6
11214           fi
11215
11216 fi
11217
11218
11219
11220           enablestring=
11221           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11222 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11223           no_cache=0
11224           # Check whether --enable-palette or --disable-palette was given.
11225 if test "${enable_palette+set}" = set; then
11226   enableval="$enable_palette"
11227
11228                           if test "$enableval" = yes; then
11229                             ac_cv_use_palette='wxUSE_PALETTE=yes'
11230                           else
11231                             ac_cv_use_palette='wxUSE_PALETTE=no'
11232                           fi
11233
11234 else
11235
11236                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11237                           if test "x$LINE" != x ; then
11238                             eval "DEFAULT_$LINE"
11239                           else
11240                             no_cache=1
11241                           fi
11242
11243                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11244
11245 fi;
11246
11247           eval "$ac_cv_use_palette"
11248           if test "$no_cache" != 1; then
11249             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11250           fi
11251
11252           if test "$wxUSE_PALETTE" = yes; then
11253             echo "$as_me:$LINENO: result: yes" >&5
11254 echo "${ECHO_T}yes" >&6
11255           else
11256             echo "$as_me:$LINENO: result: no" >&5
11257 echo "${ECHO_T}no" >&6
11258           fi
11259
11260
11261           enablestring=
11262           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11263 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11264           no_cache=0
11265           # Check whether --enable-image or --disable-image was given.
11266 if test "${enable_image+set}" = set; then
11267   enableval="$enable_image"
11268
11269                           if test "$enableval" = yes; then
11270                             ac_cv_use_image='wxUSE_IMAGE=yes'
11271                           else
11272                             ac_cv_use_image='wxUSE_IMAGE=no'
11273                           fi
11274
11275 else
11276
11277                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11278                           if test "x$LINE" != x ; then
11279                             eval "DEFAULT_$LINE"
11280                           else
11281                             no_cache=1
11282                           fi
11283
11284                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11285
11286 fi;
11287
11288           eval "$ac_cv_use_image"
11289           if test "$no_cache" != 1; then
11290             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11291           fi
11292
11293           if test "$wxUSE_IMAGE" = yes; then
11294             echo "$as_me:$LINENO: result: yes" >&5
11295 echo "${ECHO_T}yes" >&6
11296           else
11297             echo "$as_me:$LINENO: result: no" >&5
11298 echo "${ECHO_T}no" >&6
11299           fi
11300
11301
11302           enablestring=
11303           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11304 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11305           no_cache=0
11306           # Check whether --enable-gif or --disable-gif was given.
11307 if test "${enable_gif+set}" = set; then
11308   enableval="$enable_gif"
11309
11310                           if test "$enableval" = yes; then
11311                             ac_cv_use_gif='wxUSE_GIF=yes'
11312                           else
11313                             ac_cv_use_gif='wxUSE_GIF=no'
11314                           fi
11315
11316 else
11317
11318                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11319                           if test "x$LINE" != x ; then
11320                             eval "DEFAULT_$LINE"
11321                           else
11322                             no_cache=1
11323                           fi
11324
11325                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11326
11327 fi;
11328
11329           eval "$ac_cv_use_gif"
11330           if test "$no_cache" != 1; then
11331             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11332           fi
11333
11334           if test "$wxUSE_GIF" = yes; then
11335             echo "$as_me:$LINENO: result: yes" >&5
11336 echo "${ECHO_T}yes" >&6
11337           else
11338             echo "$as_me:$LINENO: result: no" >&5
11339 echo "${ECHO_T}no" >&6
11340           fi
11341
11342
11343           enablestring=
11344           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11345 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11346           no_cache=0
11347           # Check whether --enable-pcx or --disable-pcx was given.
11348 if test "${enable_pcx+set}" = set; then
11349   enableval="$enable_pcx"
11350
11351                           if test "$enableval" = yes; then
11352                             ac_cv_use_pcx='wxUSE_PCX=yes'
11353                           else
11354                             ac_cv_use_pcx='wxUSE_PCX=no'
11355                           fi
11356
11357 else
11358
11359                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11360                           if test "x$LINE" != x ; then
11361                             eval "DEFAULT_$LINE"
11362                           else
11363                             no_cache=1
11364                           fi
11365
11366                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11367
11368 fi;
11369
11370           eval "$ac_cv_use_pcx"
11371           if test "$no_cache" != 1; then
11372             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11373           fi
11374
11375           if test "$wxUSE_PCX" = yes; then
11376             echo "$as_me:$LINENO: result: yes" >&5
11377 echo "${ECHO_T}yes" >&6
11378           else
11379             echo "$as_me:$LINENO: result: no" >&5
11380 echo "${ECHO_T}no" >&6
11381           fi
11382
11383
11384           enablestring=
11385           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11386 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11387           no_cache=0
11388           # Check whether --enable-iff or --disable-iff was given.
11389 if test "${enable_iff+set}" = set; then
11390   enableval="$enable_iff"
11391
11392                           if test "$enableval" = yes; then
11393                             ac_cv_use_iff='wxUSE_IFF=yes'
11394                           else
11395                             ac_cv_use_iff='wxUSE_IFF=no'
11396                           fi
11397
11398 else
11399
11400                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11401                           if test "x$LINE" != x ; then
11402                             eval "DEFAULT_$LINE"
11403                           else
11404                             no_cache=1
11405                           fi
11406
11407                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11408
11409 fi;
11410
11411           eval "$ac_cv_use_iff"
11412           if test "$no_cache" != 1; then
11413             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11414           fi
11415
11416           if test "$wxUSE_IFF" = yes; then
11417             echo "$as_me:$LINENO: result: yes" >&5
11418 echo "${ECHO_T}yes" >&6
11419           else
11420             echo "$as_me:$LINENO: result: no" >&5
11421 echo "${ECHO_T}no" >&6
11422           fi
11423
11424
11425           enablestring=
11426           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11427 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11428           no_cache=0
11429           # Check whether --enable-pnm or --disable-pnm was given.
11430 if test "${enable_pnm+set}" = set; then
11431   enableval="$enable_pnm"
11432
11433                           if test "$enableval" = yes; then
11434                             ac_cv_use_pnm='wxUSE_PNM=yes'
11435                           else
11436                             ac_cv_use_pnm='wxUSE_PNM=no'
11437                           fi
11438
11439 else
11440
11441                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11442                           if test "x$LINE" != x ; then
11443                             eval "DEFAULT_$LINE"
11444                           else
11445                             no_cache=1
11446                           fi
11447
11448                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11449
11450 fi;
11451
11452           eval "$ac_cv_use_pnm"
11453           if test "$no_cache" != 1; then
11454             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11455           fi
11456
11457           if test "$wxUSE_PNM" = yes; then
11458             echo "$as_me:$LINENO: result: yes" >&5
11459 echo "${ECHO_T}yes" >&6
11460           else
11461             echo "$as_me:$LINENO: result: no" >&5
11462 echo "${ECHO_T}no" >&6
11463           fi
11464
11465
11466           enablestring=
11467           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11468 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11469           no_cache=0
11470           # Check whether --enable-xpm or --disable-xpm was given.
11471 if test "${enable_xpm+set}" = set; then
11472   enableval="$enable_xpm"
11473
11474                           if test "$enableval" = yes; then
11475                             ac_cv_use_xpm='wxUSE_XPM=yes'
11476                           else
11477                             ac_cv_use_xpm='wxUSE_XPM=no'
11478                           fi
11479
11480 else
11481
11482                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11483                           if test "x$LINE" != x ; then
11484                             eval "DEFAULT_$LINE"
11485                           else
11486                             no_cache=1
11487                           fi
11488
11489                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11490
11491 fi;
11492
11493           eval "$ac_cv_use_xpm"
11494           if test "$no_cache" != 1; then
11495             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11496           fi
11497
11498           if test "$wxUSE_XPM" = yes; then
11499             echo "$as_me:$LINENO: result: yes" >&5
11500 echo "${ECHO_T}yes" >&6
11501           else
11502             echo "$as_me:$LINENO: result: no" >&5
11503 echo "${ECHO_T}no" >&6
11504           fi
11505
11506
11507           enablestring=
11508           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11509 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11510           no_cache=0
11511           # Check whether --enable-ico_cur or --disable-ico_cur was given.
11512 if test "${enable_ico_cur+set}" = set; then
11513   enableval="$enable_ico_cur"
11514
11515                           if test "$enableval" = yes; then
11516                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11517                           else
11518                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11519                           fi
11520
11521 else
11522
11523                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11524                           if test "x$LINE" != x ; then
11525                             eval "DEFAULT_$LINE"
11526                           else
11527                             no_cache=1
11528                           fi
11529
11530                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11531
11532 fi;
11533
11534           eval "$ac_cv_use_ico_cur"
11535           if test "$no_cache" != 1; then
11536             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11537           fi
11538
11539           if test "$wxUSE_ICO_CUR" = yes; then
11540             echo "$as_me:$LINENO: result: yes" >&5
11541 echo "${ECHO_T}yes" >&6
11542           else
11543             echo "$as_me:$LINENO: result: no" >&5
11544 echo "${ECHO_T}no" >&6
11545           fi
11546
11547
11548 fi
11549
11550
11551
11552 # Check whether --with-flavour or --without-flavour was given.
11553 if test "${with_flavour+set}" = set; then
11554   withval="$with_flavour"
11555   WX_FLAVOUR="$withval"
11556 fi;
11557
11558
11559
11560           enablestring=
11561           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11562 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11563           no_cache=0
11564           # Check whether --enable-official_build or --disable-official_build was given.
11565 if test "${enable_official_build+set}" = set; then
11566   enableval="$enable_official_build"
11567
11568                           if test "$enableval" = yes; then
11569                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11570                           else
11571                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11572                           fi
11573
11574 else
11575
11576                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11577                           if test "x$LINE" != x ; then
11578                             eval "DEFAULT_$LINE"
11579                           else
11580                             no_cache=1
11581                           fi
11582
11583                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11584
11585 fi;
11586
11587           eval "$ac_cv_use_official_build"
11588           if test "$no_cache" != 1; then
11589             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11590           fi
11591
11592           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11593             echo "$as_me:$LINENO: result: yes" >&5
11594 echo "${ECHO_T}yes" >&6
11595           else
11596             echo "$as_me:$LINENO: result: no" >&5
11597 echo "${ECHO_T}no" >&6
11598           fi
11599
11600 # Check whether --enable-vendor or --disable-vendor was given.
11601 if test "${enable_vendor+set}" = set; then
11602   enableval="$enable_vendor"
11603   VENDOR="$enableval"
11604 fi;
11605 if test "x$VENDOR" = "x"; then
11606     VENDOR="custom"
11607 fi
11608
11609
11610
11611
11612           echo "saving argument cache $wx_arg_cache_file"
11613           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11614
11615
11616
11617 echo "$as_me:$LINENO: checking for toolkit" >&5
11618 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11619
11620 # In Wine, we need to default to MSW, not GTK or MOTIF
11621 if test "$wxUSE_WINE" = "yes"; then
11622     DEFAULT_DEFAULT_wxUSE_GTK=0
11623     DEFAULT_DEFAULT_wxUSE_MOTIF=0
11624     DEFAULT_DEFAULT_wxUSE_MSW=1
11625     wxUSE_SHARED=no
11626 fi
11627
11628
11629 if test "$wxUSE_GUI" = "yes"; then
11630
11631     if test "$USE_BEOS" = 1; then
11632         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11633 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11634    { (exit 1); exit 1; }; }
11635     fi
11636
11637     if test "$TOOLKIT_GIVEN" = 1; then
11638             for toolkit in `echo $ALL_TOOLKITS`; do
11639         var=wxUSE_$toolkit
11640         eval "value=\$${var}"
11641         if test "x$value" = "xno"; then
11642           eval "$var=0"
11643         elif test "x$value" != "x"; then
11644           eval "$var=1"
11645         fi
11646
11647         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11648           eval "wx${toolkit}_VERSION=$value"
11649         fi
11650       done
11651     else
11652             for toolkit in `echo $ALL_TOOLKITS`; do
11653         if test "$has_toolkit_in_cache" != 1; then
11654           var=DEFAULT_DEFAULT_wxUSE_$toolkit
11655         else
11656           var=DEFAULT_wxUSE_$toolkit
11657
11658           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11659           if test "x$version" != "x"; then
11660             eval "wx${toolkit}_VERSION=$version"
11661           fi
11662         fi
11663         eval "wxUSE_$toolkit=\$${var}"
11664       done
11665     fi
11666
11667             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11668                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
11669                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11670
11671         case "${host}" in
11672       *-pc-os2_emx | *-pc-os2-emx )
11673         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11674     esac
11675
11676     case "$NUM_TOOLKITS" in
11677       1)
11678       ;;
11679       0)
11680         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11681 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11682    { (exit 1); exit 1; }; }
11683       ;;
11684       *)
11685         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11686 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11687    { (exit 1); exit 1; }; }
11688     esac
11689
11690     # to be removed when --disable-gtk2 isn't needed
11691     if test "x$wxUSE_GTK2" = "xyes"; then
11692         wxGTK_VERSION=2
11693     elif test "x$wxUSE_GTK2" = "xno"; then
11694         wxGTK_VERSION=1
11695     fi
11696
11697         for toolkit in `echo $ALL_TOOLKITS`; do
11698       var=wxUSE_$toolkit
11699       eval "value=\$${var}"
11700       if test "x$value" != x; then
11701         cache_var=CACHE_$toolkit
11702         eval "cache=\$${cache_var}"
11703         if test "$cache" = 1; then
11704           echo "$var=$value" >> ${wx_arg_cache_file}
11705           eval "version=\$wx${toolkit}_VERSION"
11706           if test "x$version" != "x"; then
11707             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11708           fi
11709         fi
11710         if test "$value" = 1; then
11711           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11712           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11713 echo "${ECHO_T}$toolkit_echo" >&6
11714         fi
11715       fi
11716     done
11717 else
11718     if test "x$host_alias" != "x"; then
11719         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11720 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11721     else
11722         echo "$as_me:$LINENO: result: base only" >&5
11723 echo "${ECHO_T}base only" >&6
11724     fi
11725 fi
11726
11727 wants_win32=0
11728 doesnt_want_win32=0
11729 case "${host}" in
11730   *-*-cygwin*)
11731       if test "$wxUSE_MSW" = 1 ; then
11732         wants_win32=1
11733         BAKEFILE_FORCE_PLATFORM=win32
11734       else
11735         doesnt_want_win32=1
11736       fi
11737   ;;
11738   *-*-mingw*)
11739       wants_win32=1
11740   ;;
11741 esac
11742
11743 if test "$wxUSE_WINE" = "yes"; then
11744     wants_win32=1
11745         CC=winegcc
11746     CXX=wineg++
11747     LDFLAGS_GUI="-mwindows"
11748 fi
11749
11750 if test "$wants_win32" = 1 ; then
11751     USE_UNIX=0
11752     USE_WIN32=1
11753     cat >>confdefs.h <<\_ACEOF
11754 #define __WIN32__ 1
11755 _ACEOF
11756
11757     cat >>confdefs.h <<\_ACEOF
11758 #define __WIN95__ 1
11759 _ACEOF
11760
11761     cat >>confdefs.h <<\_ACEOF
11762 #define __WINDOWS__ 1
11763 _ACEOF
11764
11765     cat >>confdefs.h <<\_ACEOF
11766 #define __GNUWIN32__ 1
11767 _ACEOF
11768
11769     cat >>confdefs.h <<\_ACEOF
11770 #define STRICT 1
11771 _ACEOF
11772
11773     cat >>confdefs.h <<\_ACEOF
11774 #define WINVER 0x0400
11775 _ACEOF
11776
11777 fi
11778 if test "$doesnt_want_win32" = 1 ; then
11779     USE_UNIX=1
11780     USE_WIN32=0
11781 fi
11782
11783 if test "$USE_UNIX" = 1 ; then
11784     wxUSE_UNIX=yes
11785     cat >>confdefs.h <<\_ACEOF
11786 #define __UNIX__ 1
11787 _ACEOF
11788
11789 fi
11790
11791
11792 cat >confcache <<\_ACEOF
11793 # This file is a shell script that caches the results of configure
11794 # tests run on this system so they can be shared between configure
11795 # scripts and configure runs, see configure's option --config-cache.
11796 # It is not useful on other systems.  If it contains results you don't
11797 # want to keep, you may remove or edit it.
11798 #
11799 # config.status only pays attention to the cache file if you give it
11800 # the --recheck option to rerun configure.
11801 #
11802 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11803 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11804 # following values.
11805
11806 _ACEOF
11807
11808 # The following way of writing the cache mishandles newlines in values,
11809 # but we know of no workaround that is simple, portable, and efficient.
11810 # So, don't put newlines in cache variables' values.
11811 # Ultrix sh set writes to stderr and can't be redirected directly,
11812 # and sets the high bit in the cache file unless we assign to the vars.
11813 {
11814   (set) 2>&1 |
11815     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11816     *ac_space=\ *)
11817       # `set' does not quote correctly, so add quotes (double-quote
11818       # substitution turns \\\\ into \\, and sed turns \\ into \).
11819       sed -n \
11820         "s/'/'\\\\''/g;
11821           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11822       ;;
11823     *)
11824       # `set' quotes correctly as required by POSIX, so do not add quotes.
11825       sed -n \
11826         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11827       ;;
11828     esac;
11829 } |
11830   sed '
11831      t clear
11832      : clear
11833      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11834      t end
11835      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11836      : end' >>confcache
11837 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11838   if test -w $cache_file; then
11839     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11840     cat confcache >$cache_file
11841   else
11842     echo "not updating unwritable cache $cache_file"
11843   fi
11844 fi
11845 rm -f confcache
11846
11847 CFLAGS=${CFLAGS:=}
11848
11849
11850
11851     ac_ext=c
11852 ac_cpp='$CPP $CPPFLAGS'
11853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11856 if test -n "$ac_tool_prefix"; then
11857   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11858 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11859 echo "$as_me:$LINENO: checking for $ac_word" >&5
11860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11861 if test "${ac_cv_prog_CC+set}" = set; then
11862   echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864   if test -n "$CC"; then
11865   ac_cv_prog_CC="$CC" # Let the user override the test.
11866 else
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11869 do
11870   IFS=$as_save_IFS
11871   test -z "$as_dir" && as_dir=.
11872   for ac_exec_ext in '' $ac_executable_extensions; do
11873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11876     break 2
11877   fi
11878 done
11879 done
11880
11881 fi
11882 fi
11883 CC=$ac_cv_prog_CC
11884 if test -n "$CC"; then
11885   echo "$as_me:$LINENO: result: $CC" >&5
11886 echo "${ECHO_T}$CC" >&6
11887 else
11888   echo "$as_me:$LINENO: result: no" >&5
11889 echo "${ECHO_T}no" >&6
11890 fi
11891
11892 fi
11893 if test -z "$ac_cv_prog_CC"; then
11894   ac_ct_CC=$CC
11895   # Extract the first word of "gcc", so it can be a program name with args.
11896 set dummy gcc; ac_word=$2
11897 echo "$as_me:$LINENO: checking for $ac_word" >&5
11898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11900   echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902   if test -n "$ac_ct_CC"; then
11903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11904 else
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910   for ac_exec_ext in '' $ac_executable_extensions; do
11911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912     ac_cv_prog_ac_ct_CC="gcc"
11913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11914     break 2
11915   fi
11916 done
11917 done
11918
11919 fi
11920 fi
11921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11922 if test -n "$ac_ct_CC"; then
11923   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11924 echo "${ECHO_T}$ac_ct_CC" >&6
11925 else
11926   echo "$as_me:$LINENO: result: no" >&5
11927 echo "${ECHO_T}no" >&6
11928 fi
11929
11930   CC=$ac_ct_CC
11931 else
11932   CC="$ac_cv_prog_CC"
11933 fi
11934
11935 if test -z "$CC"; then
11936   if test -n "$ac_tool_prefix"; then
11937   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11938 set dummy ${ac_tool_prefix}cc; ac_word=$2
11939 echo "$as_me:$LINENO: checking for $ac_word" >&5
11940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11941 if test "${ac_cv_prog_CC+set}" = set; then
11942   echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944   if test -n "$CC"; then
11945   ac_cv_prog_CC="$CC" # Let the user override the test.
11946 else
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11949 do
11950   IFS=$as_save_IFS
11951   test -z "$as_dir" && as_dir=.
11952   for ac_exec_ext in '' $ac_executable_extensions; do
11953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954     ac_cv_prog_CC="${ac_tool_prefix}cc"
11955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11956     break 2
11957   fi
11958 done
11959 done
11960
11961 fi
11962 fi
11963 CC=$ac_cv_prog_CC
11964 if test -n "$CC"; then
11965   echo "$as_me:$LINENO: result: $CC" >&5
11966 echo "${ECHO_T}$CC" >&6
11967 else
11968   echo "$as_me:$LINENO: result: no" >&5
11969 echo "${ECHO_T}no" >&6
11970 fi
11971
11972 fi
11973 if test -z "$ac_cv_prog_CC"; then
11974   ac_ct_CC=$CC
11975   # Extract the first word of "cc", so it can be a program name with args.
11976 set dummy cc; ac_word=$2
11977 echo "$as_me:$LINENO: checking for $ac_word" >&5
11978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11980   echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982   if test -n "$ac_ct_CC"; then
11983   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11984 else
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $PATH
11987 do
11988   IFS=$as_save_IFS
11989   test -z "$as_dir" && as_dir=.
11990   for ac_exec_ext in '' $ac_executable_extensions; do
11991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992     ac_cv_prog_ac_ct_CC="cc"
11993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11994     break 2
11995   fi
11996 done
11997 done
11998
11999 fi
12000 fi
12001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12002 if test -n "$ac_ct_CC"; then
12003   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12004 echo "${ECHO_T}$ac_ct_CC" >&6
12005 else
12006   echo "$as_me:$LINENO: result: no" >&5
12007 echo "${ECHO_T}no" >&6
12008 fi
12009
12010   CC=$ac_ct_CC
12011 else
12012   CC="$ac_cv_prog_CC"
12013 fi
12014
12015 fi
12016 if test -z "$CC"; then
12017   # Extract the first word of "cc", so it can be a program name with args.
12018 set dummy cc; ac_word=$2
12019 echo "$as_me:$LINENO: checking for $ac_word" >&5
12020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12021 if test "${ac_cv_prog_CC+set}" = set; then
12022   echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024   if test -n "$CC"; then
12025   ac_cv_prog_CC="$CC" # Let the user override the test.
12026 else
12027   ac_prog_rejected=no
12028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029 for as_dir in $PATH
12030 do
12031   IFS=$as_save_IFS
12032   test -z "$as_dir" && as_dir=.
12033   for ac_exec_ext in '' $ac_executable_extensions; do
12034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12035     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12036        ac_prog_rejected=yes
12037        continue
12038      fi
12039     ac_cv_prog_CC="cc"
12040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12041     break 2
12042   fi
12043 done
12044 done
12045
12046 if test $ac_prog_rejected = yes; then
12047   # We found a bogon in the path, so make sure we never use it.
12048   set dummy $ac_cv_prog_CC
12049   shift
12050   if test $# != 0; then
12051     # We chose a different compiler from the bogus one.
12052     # However, it has the same basename, so the bogon will be chosen
12053     # first if we set CC to just the basename; use the full file name.
12054     shift
12055     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12056   fi
12057 fi
12058 fi
12059 fi
12060 CC=$ac_cv_prog_CC
12061 if test -n "$CC"; then
12062   echo "$as_me:$LINENO: result: $CC" >&5
12063 echo "${ECHO_T}$CC" >&6
12064 else
12065   echo "$as_me:$LINENO: result: no" >&5
12066 echo "${ECHO_T}no" >&6
12067 fi
12068
12069 fi
12070 if test -z "$CC"; then
12071   if test -n "$ac_tool_prefix"; then
12072   for ac_prog in cl
12073   do
12074     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12076 echo "$as_me:$LINENO: checking for $ac_word" >&5
12077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12078 if test "${ac_cv_prog_CC+set}" = set; then
12079   echo $ECHO_N "(cached) $ECHO_C" >&6
12080 else
12081   if test -n "$CC"; then
12082   ac_cv_prog_CC="$CC" # Let the user override the test.
12083 else
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12086 do
12087   IFS=$as_save_IFS
12088   test -z "$as_dir" && as_dir=.
12089   for ac_exec_ext in '' $ac_executable_extensions; do
12090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12093     break 2
12094   fi
12095 done
12096 done
12097
12098 fi
12099 fi
12100 CC=$ac_cv_prog_CC
12101 if test -n "$CC"; then
12102   echo "$as_me:$LINENO: result: $CC" >&5
12103 echo "${ECHO_T}$CC" >&6
12104 else
12105   echo "$as_me:$LINENO: result: no" >&5
12106 echo "${ECHO_T}no" >&6
12107 fi
12108
12109     test -n "$CC" && break
12110   done
12111 fi
12112 if test -z "$CC"; then
12113   ac_ct_CC=$CC
12114   for ac_prog in cl
12115 do
12116   # Extract the first word of "$ac_prog", so it can be a program name with args.
12117 set dummy $ac_prog; ac_word=$2
12118 echo "$as_me:$LINENO: checking for $ac_word" >&5
12119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12121   echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123   if test -n "$ac_ct_CC"; then
12124   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12125 else
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12128 do
12129   IFS=$as_save_IFS
12130   test -z "$as_dir" && as_dir=.
12131   for ac_exec_ext in '' $ac_executable_extensions; do
12132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133     ac_cv_prog_ac_ct_CC="$ac_prog"
12134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12135     break 2
12136   fi
12137 done
12138 done
12139
12140 fi
12141 fi
12142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12143 if test -n "$ac_ct_CC"; then
12144   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12145 echo "${ECHO_T}$ac_ct_CC" >&6
12146 else
12147   echo "$as_me:$LINENO: result: no" >&5
12148 echo "${ECHO_T}no" >&6
12149 fi
12150
12151   test -n "$ac_ct_CC" && break
12152 done
12153
12154   CC=$ac_ct_CC
12155 fi
12156
12157 fi
12158
12159
12160 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12161 See \`config.log' for more details." >&5
12162 echo "$as_me: error: no acceptable C compiler found in \$PATH
12163 See \`config.log' for more details." >&2;}
12164    { (exit 1); exit 1; }; }
12165
12166 # Provide some information about the compiler.
12167 echo "$as_me:$LINENO:" \
12168      "checking for C compiler version" >&5
12169 ac_compiler=`set X $ac_compile; echo $2`
12170 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12171   (eval $ac_compiler --version </dev/null >&5) 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }
12175 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12176   (eval $ac_compiler -v </dev/null >&5) 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }
12180 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12181   (eval $ac_compiler -V </dev/null >&5) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }
12185
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h.  */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h.  */
12192
12193 int
12194 main ()
12195 {
12196
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 ac_clean_files_save=$ac_clean_files
12202 ac_clean_files="$ac_clean_files a.out a.exe b.out"
12203 # Try to create an executable without -o first, disregard a.out.
12204 # It will help us diagnose broken compilers, and finding out an intuition
12205 # of exeext.
12206 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12207 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12208 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12209 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12210   (eval $ac_link_default) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; then
12214   # Find the output, starting from the most likely.  This scheme is
12215 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
12216 # resort.
12217
12218 # Be careful to initialize this variable, since it used to be cached.
12219 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12220 ac_cv_exeext=
12221 # b.out is created by i960 compilers.
12222 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12223 do
12224   test -f "$ac_file" || continue
12225   case $ac_file in
12226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12227         ;;
12228     conftest.$ac_ext )
12229         # This is the source file.
12230         ;;
12231     [ab].out )
12232         # We found the default executable, but exeext='' is most
12233         # certainly right.
12234         break;;
12235     *.* )
12236         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12237         # FIXME: I believe we export ac_cv_exeext for Libtool,
12238         # but it would be cool to find out if it's true.  Does anybody
12239         # maintain Libtool? --akim.
12240         export ac_cv_exeext
12241         break;;
12242     * )
12243         break;;
12244   esac
12245 done
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
12251 See \`config.log' for more details." >&5
12252 echo "$as_me: error: C compiler cannot create executables
12253 See \`config.log' for more details." >&2;}
12254    { (exit 77); exit 77; }; }
12255 fi
12256
12257 ac_exeext=$ac_cv_exeext
12258 echo "$as_me:$LINENO: result: $ac_file" >&5
12259 echo "${ECHO_T}$ac_file" >&6
12260
12261 # Check the compiler produces executables we can run.  If not, either
12262 # the compiler is broken, or we cross compile.
12263 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12264 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12266 # If not cross compiling, check that we can run a simple program.
12267 if test "$cross_compiling" != yes; then
12268   if { ac_try='./$ac_file'
12269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270   (eval $ac_try) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }; }; then
12274     cross_compiling=no
12275   else
12276     if test "$cross_compiling" = maybe; then
12277         cross_compiling=yes
12278     else
12279         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12280 If you meant to cross compile, use \`--host'.
12281 See \`config.log' for more details." >&5
12282 echo "$as_me: error: cannot run C compiled programs.
12283 If you meant to cross compile, use \`--host'.
12284 See \`config.log' for more details." >&2;}
12285    { (exit 1); exit 1; }; }
12286     fi
12287   fi
12288 fi
12289 echo "$as_me:$LINENO: result: yes" >&5
12290 echo "${ECHO_T}yes" >&6
12291
12292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
12293 ac_clean_files=$ac_clean_files_save
12294 # Check the compiler produces executables we can run.  If not, either
12295 # the compiler is broken, or we cross compile.
12296 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12297 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12298 echo "$as_me:$LINENO: result: $cross_compiling" >&5
12299 echo "${ECHO_T}$cross_compiling" >&6
12300
12301 echo "$as_me:$LINENO: checking for suffix of executables" >&5
12302 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12304   (eval $ac_link) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; then
12308   # If both `conftest.exe' and `conftest' are `present' (well, observable)
12309 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12310 # work properly (i.e., refer to `conftest.exe'), while it won't with
12311 # `rm'.
12312 for ac_file in conftest.exe conftest conftest.*; do
12313   test -f "$ac_file" || continue
12314   case $ac_file in
12315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12316     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12317           export ac_cv_exeext
12318           break;;
12319     * ) break;;
12320   esac
12321 done
12322 else
12323   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12324 See \`config.log' for more details." >&5
12325 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12326 See \`config.log' for more details." >&2;}
12327    { (exit 1); exit 1; }; }
12328 fi
12329
12330 rm -f conftest$ac_cv_exeext
12331 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12332 echo "${ECHO_T}$ac_cv_exeext" >&6
12333
12334 rm -f conftest.$ac_ext
12335 EXEEXT=$ac_cv_exeext
12336 ac_exeext=$EXEEXT
12337 echo "$as_me:$LINENO: checking for suffix of object files" >&5
12338 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12339 if test "${ac_cv_objext+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h.  */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h.  */
12348
12349 int
12350 main ()
12351 {
12352
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.o conftest.obj
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359   (eval $ac_compile) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; then
12363   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12364   case $ac_file in
12365     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12366     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12367        break;;
12368   esac
12369 done
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12375 See \`config.log' for more details." >&5
12376 echo "$as_me: error: cannot compute suffix of object files: cannot compile
12377 See \`config.log' for more details." >&2;}
12378    { (exit 1); exit 1; }; }
12379 fi
12380
12381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
12382 fi
12383 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12384 echo "${ECHO_T}$ac_cv_objext" >&6
12385 OBJEXT=$ac_cv_objext
12386 ac_objext=$OBJEXT
12387 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12388 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12389 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398
12399 int
12400 main ()
12401 {
12402 #ifndef __GNUC__
12403        choke me
12404 #endif
12405
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12412   (eval $ac_compile) 2>conftest.er1
12413   ac_status=$?
12414   grep -v '^ *+' conftest.er1 >conftest.err
12415   rm -f conftest.er1
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; } &&
12425          { ac_try='test -s conftest.$ac_objext'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; }; then
12431   ac_compiler_gnu=yes
12432 else
12433   echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12435
12436 ac_compiler_gnu=no
12437 fi
12438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12440
12441 fi
12442 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12443 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12444 GCC=`test $ac_compiler_gnu = yes && echo yes`
12445 ac_test_CFLAGS=${CFLAGS+set}
12446 ac_save_CFLAGS=$CFLAGS
12447 CFLAGS="-g"
12448 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12449 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12450 if test "${ac_cv_prog_cc_g+set}" = set; then
12451   echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453   cat >conftest.$ac_ext <<_ACEOF
12454 /* confdefs.h.  */
12455 _ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h.  */
12459
12460 int
12461 main ()
12462 {
12463
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 rm -f conftest.$ac_objext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470   (eval $ac_compile) 2>conftest.er1
12471   ac_status=$?
12472   grep -v '^ *+' conftest.er1 >conftest.err
12473   rm -f conftest.er1
12474   cat conftest.err >&5
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } &&
12477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479   (eval $ac_try) 2>&5
12480   ac_status=$?
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); }; } &&
12483          { ac_try='test -s conftest.$ac_objext'
12484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485   (eval $ac_try) 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); }; }; then
12489   ac_cv_prog_cc_g=yes
12490 else
12491   echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12493
12494 ac_cv_prog_cc_g=no
12495 fi
12496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12497 fi
12498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12500 if test "$ac_test_CFLAGS" = set; then
12501   CFLAGS=$ac_save_CFLAGS
12502 elif test $ac_cv_prog_cc_g = yes; then
12503   if test "$GCC" = yes; then
12504     CFLAGS="-g -O2"
12505   else
12506     CFLAGS="-g"
12507   fi
12508 else
12509   if test "$GCC" = yes; then
12510     CFLAGS="-O2"
12511   else
12512     CFLAGS=
12513   fi
12514 fi
12515 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12516 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12517 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12518   echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520   ac_cv_prog_cc_stdc=no
12521 ac_save_CC=$CC
12522 cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528 #include <stdarg.h>
12529 #include <stdio.h>
12530 #include <sys/types.h>
12531 #include <sys/stat.h>
12532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12533 struct buf { int x; };
12534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12535 static char *e (p, i)
12536      char **p;
12537      int i;
12538 {
12539   return p[i];
12540 }
12541 static char *f (char * (*g) (char **, int), char **p, ...)
12542 {
12543   char *s;
12544   va_list v;
12545   va_start (v,p);
12546   s = g (p, va_arg (v,int));
12547   va_end (v);
12548   return s;
12549 }
12550
12551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12552    function prototypes and stuff, but not '\xHH' hex character constants.
12553    These don't provoke an error unfortunately, instead are silently treated
12554    as 'x'.  The following induces an error, until -std1 is added to get
12555    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12556    array size at least.  It's necessary to write '\x00'==0 to get something
12557    that's true only with -std1.  */
12558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12559
12560 int test (int i, double x);
12561 struct s1 {int (*f) (int a);};
12562 struct s2 {int (*f) (double a);};
12563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12564 int argc;
12565 char **argv;
12566 int
12567 main ()
12568 {
12569 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12570   ;
12571   return 0;
12572 }
12573 _ACEOF
12574 # Don't try gcc -ansi; that turns off useful extensions and
12575 # breaks some systems' header files.
12576 # AIX                   -qlanglvl=ansi
12577 # Ultrix and OSF/1      -std1
12578 # HP-UX 10.20 and later -Ae
12579 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12580 # SVR4                  -Xc -D__EXTENSIONS__
12581 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12582 do
12583   CC="$ac_save_CC $ac_arg"
12584   rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586   (eval $ac_compile) 2>conftest.er1
12587   ac_status=$?
12588   grep -v '^ *+' conftest.er1 >conftest.err
12589   rm -f conftest.er1
12590   cat conftest.err >&5
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); } &&
12593          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; } &&
12599          { ac_try='test -s conftest.$ac_objext'
12600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601   (eval $ac_try) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; }; then
12605   ac_cv_prog_cc_stdc=$ac_arg
12606 break
12607 else
12608   echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 fi
12612 rm -f conftest.err conftest.$ac_objext
12613 done
12614 rm -f conftest.$ac_ext conftest.$ac_objext
12615 CC=$ac_save_CC
12616
12617 fi
12618
12619 case "x$ac_cv_prog_cc_stdc" in
12620   x|xno)
12621     echo "$as_me:$LINENO: result: none needed" >&5
12622 echo "${ECHO_T}none needed" >&6 ;;
12623   *)
12624     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12625 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12626     CC="$CC $ac_cv_prog_cc_stdc" ;;
12627 esac
12628
12629 # Some people use a C++ compiler to compile C.  Since we use `exit',
12630 # in C++ we need to declare it.  In case someone uses the same compiler
12631 # for both compiling C and C++ we need to have the C++ compiler decide
12632 # the declaration of exit, since it's the most demanding environment.
12633 cat >conftest.$ac_ext <<_ACEOF
12634 #ifndef __cplusplus
12635   choke me
12636 #endif
12637 _ACEOF
12638 rm -f conftest.$ac_objext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640   (eval $ac_compile) 2>conftest.er1
12641   ac_status=$?
12642   grep -v '^ *+' conftest.er1 >conftest.err
12643   rm -f conftest.er1
12644   cat conftest.err >&5
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); } &&
12647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649   (eval $ac_try) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; } &&
12653          { ac_try='test -s conftest.$ac_objext'
12654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655   (eval $ac_try) 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   for ac_declaration in \
12660    '' \
12661    'extern "C" void std::exit (int) throw (); using std::exit;' \
12662    'extern "C" void std::exit (int); using std::exit;' \
12663    'extern "C" void exit (int) throw ();' \
12664    'extern "C" void exit (int);' \
12665    'void exit (int);'
12666 do
12667   cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673 $ac_declaration
12674 #include <stdlib.h>
12675 int
12676 main ()
12677 {
12678 exit (42);
12679   ;
12680   return 0;
12681 }
12682 _ACEOF
12683 rm -f conftest.$ac_objext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685   (eval $ac_compile) 2>conftest.er1
12686   ac_status=$?
12687   grep -v '^ *+' conftest.er1 >conftest.err
12688   rm -f conftest.er1
12689   cat conftest.err >&5
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } &&
12692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; } &&
12698          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12704   :
12705 else
12706   echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12708
12709 continue
12710 fi
12711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12712   cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718 $ac_declaration
12719 int
12720 main ()
12721 {
12722 exit (42);
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729   (eval $ac_compile) 2>conftest.er1
12730   ac_status=$?
12731   grep -v '^ *+' conftest.er1 >conftest.err
12732   rm -f conftest.er1
12733   cat conftest.err >&5
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738   (eval $ac_try) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; } &&
12742          { ac_try='test -s conftest.$ac_objext'
12743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744   (eval $ac_try) 2>&5
12745   ac_status=$?
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); }; }; then
12748   break
12749 else
12750   echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12752
12753 fi
12754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12755 done
12756 rm -f conftest*
12757 if test -n "$ac_declaration"; then
12758   echo '#ifdef __cplusplus' >>confdefs.h
12759   echo $ac_declaration      >>confdefs.h
12760   echo '#endif'             >>confdefs.h
12761 fi
12762
12763 else
12764   echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 fi
12768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12769 ac_ext=c
12770 ac_cpp='$CPP $CPPFLAGS'
12771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12774
12775
12776
12777     ac_ext=c
12778 ac_cpp='$CPP $CPPFLAGS'
12779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12782
12783     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12784 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12785 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12786   echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788   cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794
12795 int
12796 main ()
12797 {
12798
12799              #ifndef __INTEL_COMPILER
12800                 choke me
12801              #endif
12802
12803   ;
12804   return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12809   (eval $ac_compile) 2>conftest.er1
12810   ac_status=$?
12811   grep -v '^ *+' conftest.er1 >conftest.err
12812   rm -f conftest.er1
12813   cat conftest.err >&5
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); } &&
12816          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818   (eval $ac_try) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; } &&
12822          { ac_try='test -s conftest.$ac_objext'
12823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824   (eval $ac_try) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; }; then
12828   bakefile_cv_c_compiler___INTEL_COMPILER=yes
12829 else
12830   echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12832
12833 bakefile_cv_c_compiler___INTEL_COMPILER=no
12834
12835 fi
12836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12837
12838
12839 fi
12840 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12841 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12842     ac_ext=c
12843 ac_cpp='$CPP $CPPFLAGS'
12844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12847
12848     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12849         :; INTELCC=yes
12850     else
12851         :;
12852     fi
12853
12854
12855         if test "x$GCC" != "xyes"; then
12856         if test "xCC" = "xC"; then
12857             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
12858 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
12859 if test "${bakefile_cv_c_exto+set}" = set; then
12860   echo $ECHO_N "(cached) $ECHO_C" >&6
12861 else
12862   cat >conftest.$ac_ext <<_ACEOF
12863 /* confdefs.h.  */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h.  */
12868
12869 int
12870 main ()
12871 {
12872
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest.$ac_ext.o
12878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12879   (eval $ac_compile) 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); }; then
12883   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12884     case $ac_file in
12885         conftest.$ac_ext.o)
12886             bakefile_cv_c_exto="-ext o"
12887             ;;
12888         *)
12889             ;;
12890     esac
12891 done
12892 else
12893   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12894 See \`config.log' for more details." >&5
12895 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12896 See \`config.log' for more details." >&2;}
12897    { (exit 1); exit 1; }; }
12898
12899 fi
12900
12901 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12902
12903 fi
12904 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12905 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12906 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12907     if test "c" = "c"; then
12908         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
12909     fi
12910     if test "c" = "cxx"; then
12911         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
12912     fi
12913 fi
12914
12915             if test "x$bakefile_cv_c_exto" '!=' "x"; then
12916                 unset ac_cv_prog_cc_g
12917                 ac_test_CFLAGS=${CFLAGS+set}
12918 ac_save_CFLAGS=$CFLAGS
12919 CFLAGS="-g"
12920 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12921 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12922 if test "${ac_cv_prog_cc_g+set}" = set; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925   cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h.  */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h.  */
12931
12932 int
12933 main ()
12934 {
12935
12936   ;
12937   return 0;
12938 }
12939 _ACEOF
12940 rm -f conftest.$ac_objext
12941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12942   (eval $ac_compile) 2>conftest.er1
12943   ac_status=$?
12944   grep -v '^ *+' conftest.er1 >conftest.err
12945   rm -f conftest.er1
12946   cat conftest.err >&5
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); } &&
12949          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951   (eval $ac_try) 2>&5
12952   ac_status=$?
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); }; } &&
12955          { ac_try='test -s conftest.$ac_objext'
12956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957   (eval $ac_try) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); }; }; then
12961   ac_cv_prog_cc_g=yes
12962 else
12963   echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966 ac_cv_prog_cc_g=no
12967 fi
12968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12969 fi
12970 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12971 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12972 if test "$ac_test_CFLAGS" = set; then
12973   CFLAGS=$ac_save_CFLAGS
12974 elif test $ac_cv_prog_cc_g = yes; then
12975   if test "$GCC" = yes; then
12976     CFLAGS="-g -O2"
12977   else
12978     CFLAGS="-g"
12979   fi
12980 else
12981   if test "$GCC" = yes; then
12982     CFLAGS="-O2"
12983   else
12984     CFLAGS=
12985   fi
12986 fi
12987             fi
12988         fi
12989
12990                         case `uname -s` in
12991             AIX*)
12992                 ac_ext=c
12993 ac_cpp='$CPP $CPPFLAGS'
12994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12997
12998 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12999 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13000 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
13001   echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003   cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h.  */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h.  */
13009
13010 int
13011 main ()
13012 {
13013 #ifndef __xlC__
13014        choke me
13015 #endif
13016
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023   (eval $ac_compile) 2>conftest.er1
13024   ac_status=$?
13025   grep -v '^ *+' conftest.er1 >conftest.err
13026   rm -f conftest.er1
13027   cat conftest.err >&5
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } &&
13030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032   (eval $ac_try) 2>&5
13033   ac_status=$?
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); }; } &&
13036          { ac_try='test -s conftest.$ac_objext'
13037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038   (eval $ac_try) 2>&5
13039   ac_status=$?
13040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041   (exit $ac_status); }; }; then
13042   bakefile_compiler_xlc=yes
13043 else
13044   echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13046
13047 bakefile_compiler_xlc=no
13048 fi
13049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13050     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
13051
13052 fi
13053 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13054 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
13055
13056 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
13057 ac_ext=c
13058 ac_cpp='$CPP $CPPFLAGS'
13059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13062
13063
13064                 ;;
13065
13066             Darwin)
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 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13074 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13075 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13076   echo $ECHO_N "(cached) $ECHO_C" >&6
13077 else
13078   cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084
13085 int
13086 main ()
13087 {
13088 #ifndef __MWERKS__
13089        choke me
13090 #endif
13091
13092   ;
13093   return 0;
13094 }
13095 _ACEOF
13096 rm -f conftest.$ac_objext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098   (eval $ac_compile) 2>conftest.er1
13099   ac_status=$?
13100   grep -v '^ *+' conftest.er1 >conftest.err
13101   rm -f conftest.er1
13102   cat conftest.err >&5
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); } &&
13105          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; } &&
13111          { ac_try='test -s conftest.$ac_objext'
13112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113   (eval $ac_try) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; }; then
13117   bakefile_compiler_mwerks=yes
13118 else
13119   echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 bakefile_compiler_mwerks=no
13123 fi
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13125     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13126
13127 fi
13128 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13129 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13130
13131 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
13132 ac_ext=c
13133 ac_cpp='$CPP $CPPFLAGS'
13134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13137
13138
13139                 ac_ext=c
13140 ac_cpp='$CPP $CPPFLAGS'
13141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13144
13145 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13146 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13147 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150   cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156
13157 int
13158 main ()
13159 {
13160 #ifndef __xlC__
13161        choke me
13162 #endif
13163
13164   ;
13165   return 0;
13166 }
13167 _ACEOF
13168 rm -f conftest.$ac_objext
13169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13170   (eval $ac_compile) 2>conftest.er1
13171   ac_status=$?
13172   grep -v '^ *+' conftest.er1 >conftest.err
13173   rm -f conftest.er1
13174   cat conftest.err >&5
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); } &&
13177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; } &&
13183          { ac_try='test -s conftest.$ac_objext'
13184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185   (eval $ac_try) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; }; then
13189   bakefile_compiler_xlc=yes
13190 else
13191   echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 bakefile_compiler_xlc=no
13195 fi
13196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13197     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
13198
13199 fi
13200 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13201 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
13202
13203 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
13204 ac_ext=c
13205 ac_cpp='$CPP $CPPFLAGS'
13206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13209
13210
13211                 ;;
13212
13213             IRIX*)
13214
13215
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     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13223 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13224 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13225   echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227   cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233
13234 int
13235 main ()
13236 {
13237
13238              #ifndef _SGI_COMPILER_VERSION
13239                 choke me
13240              #endif
13241
13242   ;
13243   return 0;
13244 }
13245 _ACEOF
13246 rm -f conftest.$ac_objext
13247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13248   (eval $ac_compile) 2>conftest.er1
13249   ac_status=$?
13250   grep -v '^ *+' conftest.er1 >conftest.err
13251   rm -f conftest.er1
13252   cat conftest.err >&5
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } &&
13255          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; } &&
13261          { ac_try='test -s conftest.$ac_objext'
13262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263   (eval $ac_try) 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13273
13274 fi
13275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13276
13277
13278 fi
13279 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13280 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13281     ac_ext=c
13282 ac_cpp='$CPP $CPPFLAGS'
13283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13286
13287     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13288         :; SGICC=yes
13289     else
13290         :;
13291     fi
13292
13293
13294                 ;;
13295
13296             HP-UX*)
13297
13298
13299     ac_ext=c
13300 ac_cpp='$CPP $CPPFLAGS'
13301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13304
13305     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13306 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13307 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
13308   echo $ECHO_N "(cached) $ECHO_C" >&6
13309 else
13310   cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316
13317 int
13318 main ()
13319 {
13320
13321              #ifndef __HP_cc
13322                 choke me
13323              #endif
13324
13325   ;
13326   return 0;
13327 }
13328 _ACEOF
13329 rm -f conftest.$ac_objext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331   (eval $ac_compile) 2>conftest.er1
13332   ac_status=$?
13333   grep -v '^ *+' conftest.er1 >conftest.err
13334   rm -f conftest.er1
13335   cat conftest.err >&5
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); } &&
13338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340   (eval $ac_try) 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; } &&
13344          { ac_try='test -s conftest.$ac_objext'
13345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346   (eval $ac_try) 2>&5
13347   ac_status=$?
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); }; }; then
13350   bakefile_cv_c_compiler___HP_cc=yes
13351 else
13352   echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13354
13355 bakefile_cv_c_compiler___HP_cc=no
13356
13357 fi
13358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13359
13360
13361 fi
13362 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13363 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
13364     ac_ext=c
13365 ac_cpp='$CPP $CPPFLAGS'
13366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13369
13370     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13371         :; HPCC=yes
13372     else
13373         :;
13374     fi
13375
13376
13377                 ;;
13378
13379             OSF1)
13380
13381
13382     ac_ext=c
13383 ac_cpp='$CPP $CPPFLAGS'
13384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13387
13388     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13389 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13390 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
13391   echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393   cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399
13400 int
13401 main ()
13402 {
13403
13404              #ifndef __DECC
13405                 choke me
13406              #endif
13407
13408   ;
13409   return 0;
13410 }
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414   (eval $ac_compile) 2>conftest.er1
13415   ac_status=$?
13416   grep -v '^ *+' conftest.er1 >conftest.err
13417   rm -f conftest.er1
13418   cat conftest.err >&5
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } &&
13421          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423   (eval $ac_try) 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; } &&
13427          { ac_try='test -s conftest.$ac_objext'
13428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429   (eval $ac_try) 2>&5
13430   ac_status=$?
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); }; }; then
13433   bakefile_cv_c_compiler___DECC=yes
13434 else
13435   echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13437
13438 bakefile_cv_c_compiler___DECC=no
13439
13440 fi
13441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442
13443
13444 fi
13445 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13446 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
13447     ac_ext=c
13448 ac_cpp='$CPP $CPPFLAGS'
13449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13452
13453     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13454         :; COMPAQCC=yes
13455     else
13456         :;
13457     fi
13458
13459
13460                 ;;
13461
13462             SunOS)
13463
13464
13465     ac_ext=c
13466 ac_cpp='$CPP $CPPFLAGS'
13467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13470
13471     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13472 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13473 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13474   echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476   cat >conftest.$ac_ext <<_ACEOF
13477 /* confdefs.h.  */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h.  */
13482
13483 int
13484 main ()
13485 {
13486
13487              #ifndef __SUNPRO_C
13488                 choke me
13489              #endif
13490
13491   ;
13492   return 0;
13493 }
13494 _ACEOF
13495 rm -f conftest.$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497   (eval $ac_compile) 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } &&
13504          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506   (eval $ac_try) 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); }; } &&
13510          { ac_try='test -s conftest.$ac_objext'
13511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512   (eval $ac_try) 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; }; then
13516   bakefile_cv_c_compiler___SUNPRO_C=yes
13517 else
13518   echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 bakefile_cv_c_compiler___SUNPRO_C=no
13522
13523 fi
13524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13525
13526
13527 fi
13528 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13529 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13530     ac_ext=c
13531 ac_cpp='$CPP $CPPFLAGS'
13532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13535
13536     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13537         :; SUNCC=yes
13538     else
13539         :;
13540     fi
13541
13542
13543                 ;;
13544         esac
13545     fi
13546
13547
13548
13549 ac_ext=c
13550 ac_cpp='$CPP $CPPFLAGS'
13551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13554 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13555 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13556 # On Suns, sometimes $CPP names a directory.
13557 if test -n "$CPP" && test -d "$CPP"; then
13558   CPP=
13559 fi
13560 if test -z "$CPP"; then
13561   if test "${ac_cv_prog_CPP+set}" = set; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564       # Double quotes because CPP needs to be expanded
13565     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13566     do
13567       ac_preproc_ok=false
13568 for ac_c_preproc_warn_flag in '' yes
13569 do
13570   # Use a header file that comes with gcc, so configuring glibc
13571   # with a fresh cross-compiler works.
13572   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13573   # <limits.h> exists even on freestanding compilers.
13574   # On the NeXT, cc -E runs the code through the compiler's parser,
13575   # not just through cpp. "Syntax error" is here to catch this case.
13576   cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582 #ifdef __STDC__
13583 # include <limits.h>
13584 #else
13585 # include <assert.h>
13586 #endif
13587                      Syntax error
13588 _ACEOF
13589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13591   ac_status=$?
13592   grep -v '^ *+' conftest.er1 >conftest.err
13593   rm -f conftest.er1
13594   cat conftest.err >&5
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); } >/dev/null; then
13597   if test -s conftest.err; then
13598     ac_cpp_err=$ac_c_preproc_warn_flag
13599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13600   else
13601     ac_cpp_err=
13602   fi
13603 else
13604   ac_cpp_err=yes
13605 fi
13606 if test -z "$ac_cpp_err"; then
13607   :
13608 else
13609   echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13611
13612   # Broken: fails on valid input.
13613 continue
13614 fi
13615 rm -f conftest.err conftest.$ac_ext
13616
13617   # OK, works on sane cases.  Now check whether non-existent headers
13618   # can be detected and how.
13619   cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625 #include <ac_nonexistent.h>
13626 _ACEOF
13627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13629   ac_status=$?
13630   grep -v '^ *+' conftest.er1 >conftest.err
13631   rm -f conftest.er1
13632   cat conftest.err >&5
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); } >/dev/null; then
13635   if test -s conftest.err; then
13636     ac_cpp_err=$ac_c_preproc_warn_flag
13637     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13638   else
13639     ac_cpp_err=
13640   fi
13641 else
13642   ac_cpp_err=yes
13643 fi
13644 if test -z "$ac_cpp_err"; then
13645   # Broken: success on invalid input.
13646 continue
13647 else
13648   echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651   # Passes both tests.
13652 ac_preproc_ok=:
13653 break
13654 fi
13655 rm -f conftest.err conftest.$ac_ext
13656
13657 done
13658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13659 rm -f conftest.err conftest.$ac_ext
13660 if $ac_preproc_ok; then
13661   break
13662 fi
13663
13664     done
13665     ac_cv_prog_CPP=$CPP
13666
13667 fi
13668   CPP=$ac_cv_prog_CPP
13669 else
13670   ac_cv_prog_CPP=$CPP
13671 fi
13672 echo "$as_me:$LINENO: result: $CPP" >&5
13673 echo "${ECHO_T}$CPP" >&6
13674 ac_preproc_ok=false
13675 for ac_c_preproc_warn_flag in '' yes
13676 do
13677   # Use a header file that comes with gcc, so configuring glibc
13678   # with a fresh cross-compiler works.
13679   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13680   # <limits.h> exists even on freestanding compilers.
13681   # On the NeXT, cc -E runs the code through the compiler's parser,
13682   # not just through cpp. "Syntax error" is here to catch this case.
13683   cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h.  */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h.  */
13689 #ifdef __STDC__
13690 # include <limits.h>
13691 #else
13692 # include <assert.h>
13693 #endif
13694                      Syntax error
13695 _ACEOF
13696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13698   ac_status=$?
13699   grep -v '^ *+' conftest.er1 >conftest.err
13700   rm -f conftest.er1
13701   cat conftest.err >&5
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); } >/dev/null; then
13704   if test -s conftest.err; then
13705     ac_cpp_err=$ac_c_preproc_warn_flag
13706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13707   else
13708     ac_cpp_err=
13709   fi
13710 else
13711   ac_cpp_err=yes
13712 fi
13713 if test -z "$ac_cpp_err"; then
13714   :
13715 else
13716   echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13718
13719   # Broken: fails on valid input.
13720 continue
13721 fi
13722 rm -f conftest.err conftest.$ac_ext
13723
13724   # OK, works on sane cases.  Now check whether non-existent headers
13725   # can be detected and how.
13726   cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732 #include <ac_nonexistent.h>
13733 _ACEOF
13734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13736   ac_status=$?
13737   grep -v '^ *+' conftest.er1 >conftest.err
13738   rm -f conftest.er1
13739   cat conftest.err >&5
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } >/dev/null; then
13742   if test -s conftest.err; then
13743     ac_cpp_err=$ac_c_preproc_warn_flag
13744     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13745   else
13746     ac_cpp_err=
13747   fi
13748 else
13749   ac_cpp_err=yes
13750 fi
13751 if test -z "$ac_cpp_err"; then
13752   # Broken: success on invalid input.
13753 continue
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758   # Passes both tests.
13759 ac_preproc_ok=:
13760 break
13761 fi
13762 rm -f conftest.err conftest.$ac_ext
13763
13764 done
13765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13766 rm -f conftest.err conftest.$ac_ext
13767 if $ac_preproc_ok; then
13768   :
13769 else
13770   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13771 See \`config.log' for more details." >&5
13772 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13773 See \`config.log' for more details." >&2;}
13774    { (exit 1); exit 1; }; }
13775 fi
13776
13777 ac_ext=c
13778 ac_cpp='$CPP $CPPFLAGS'
13779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13782
13783
13784 echo "$as_me:$LINENO: checking for egrep" >&5
13785 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13786 if test "${ac_cv_prog_egrep+set}" = set; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13790     then ac_cv_prog_egrep='grep -E'
13791     else ac_cv_prog_egrep='egrep'
13792     fi
13793 fi
13794 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13795 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13796  EGREP=$ac_cv_prog_egrep
13797
13798
13799 if test $ac_cv_c_compiler_gnu = yes; then
13800     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13801 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13802 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805     ac_pattern="Autoconf.*'x'"
13806   cat >conftest.$ac_ext <<_ACEOF
13807 /* confdefs.h.  */
13808 _ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h.  */
13812 #include <sgtty.h>
13813 Autoconf TIOCGETP
13814 _ACEOF
13815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13816   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13817   ac_cv_prog_gcc_traditional=yes
13818 else
13819   ac_cv_prog_gcc_traditional=no
13820 fi
13821 rm -f conftest*
13822
13823
13824   if test $ac_cv_prog_gcc_traditional = no; then
13825     cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h.  */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h.  */
13831 #include <termio.h>
13832 Autoconf TCGETA
13833 _ACEOF
13834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13835   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13836   ac_cv_prog_gcc_traditional=yes
13837 fi
13838 rm -f conftest*
13839
13840   fi
13841 fi
13842 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13843 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13844   if test $ac_cv_prog_gcc_traditional = yes; then
13845     CC="$CC -traditional"
13846   fi
13847 fi
13848
13849
13850 ac_ext=cc
13851 ac_cpp='$CXXCPP $CPPFLAGS'
13852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13855
13856
13857 CXXFLAGS=${CXXFLAGS:=}
13858
13859
13860
13861     ac_ext=cc
13862 ac_cpp='$CXXCPP $CPPFLAGS'
13863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13866 if test -n "$ac_tool_prefix"; then
13867   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13868   do
13869     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13871 echo "$as_me:$LINENO: checking for $ac_word" >&5
13872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13873 if test "${ac_cv_prog_CXX+set}" = set; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   if test -n "$CXX"; then
13877   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13878 else
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13881 do
13882   IFS=$as_save_IFS
13883   test -z "$as_dir" && as_dir=.
13884   for ac_exec_ext in '' $ac_executable_extensions; do
13885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13886     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13888     break 2
13889   fi
13890 done
13891 done
13892
13893 fi
13894 fi
13895 CXX=$ac_cv_prog_CXX
13896 if test -n "$CXX"; then
13897   echo "$as_me:$LINENO: result: $CXX" >&5
13898 echo "${ECHO_T}$CXX" >&6
13899 else
13900   echo "$as_me:$LINENO: result: no" >&5
13901 echo "${ECHO_T}no" >&6
13902 fi
13903
13904     test -n "$CXX" && break
13905   done
13906 fi
13907 if test -z "$CXX"; then
13908   ac_ct_CXX=$CXX
13909   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13910 do
13911   # Extract the first word of "$ac_prog", so it can be a program name with args.
13912 set dummy $ac_prog; ac_word=$2
13913 echo "$as_me:$LINENO: checking for $ac_word" >&5
13914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13915 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13916   echo $ECHO_N "(cached) $ECHO_C" >&6
13917 else
13918   if test -n "$ac_ct_CXX"; then
13919   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13920 else
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13923 do
13924   IFS=$as_save_IFS
13925   test -z "$as_dir" && as_dir=.
13926   for ac_exec_ext in '' $ac_executable_extensions; do
13927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13928     ac_cv_prog_ac_ct_CXX="$ac_prog"
13929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13930     break 2
13931   fi
13932 done
13933 done
13934
13935 fi
13936 fi
13937 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13938 if test -n "$ac_ct_CXX"; then
13939   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13940 echo "${ECHO_T}$ac_ct_CXX" >&6
13941 else
13942   echo "$as_me:$LINENO: result: no" >&5
13943 echo "${ECHO_T}no" >&6
13944 fi
13945
13946   test -n "$ac_ct_CXX" && break
13947 done
13948 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13949
13950   CXX=$ac_ct_CXX
13951 fi
13952
13953
13954 # Provide some information about the compiler.
13955 echo "$as_me:$LINENO:" \
13956      "checking for C++ compiler version" >&5
13957 ac_compiler=`set X $ac_compile; echo $2`
13958 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13959   (eval $ac_compiler --version </dev/null >&5) 2>&5
13960   ac_status=$?
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); }
13963 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13964   (eval $ac_compiler -v </dev/null >&5) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }
13968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13969   (eval $ac_compiler -V </dev/null >&5) 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); }
13973
13974 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13975 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13976 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13977   echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979   cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h.  */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h.  */
13985
13986 int
13987 main ()
13988 {
13989 #ifndef __GNUC__
13990        choke me
13991 #endif
13992
13993   ;
13994   return 0;
13995 }
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999   (eval $ac_compile) 2>conftest.er1
14000   ac_status=$?
14001   grep -v '^ *+' conftest.er1 >conftest.err
14002   rm -f conftest.er1
14003   cat conftest.err >&5
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); } &&
14006          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008   (eval $ac_try) 2>&5
14009   ac_status=$?
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); }; } &&
14012          { ac_try='test -s conftest.$ac_objext'
14013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014   (eval $ac_try) 2>&5
14015   ac_status=$?
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); }; }; then
14018   ac_compiler_gnu=yes
14019 else
14020   echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14022
14023 ac_compiler_gnu=no
14024 fi
14025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14026 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14027
14028 fi
14029 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14030 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14031 GXX=`test $ac_compiler_gnu = yes && echo yes`
14032 ac_test_CXXFLAGS=${CXXFLAGS+set}
14033 ac_save_CXXFLAGS=$CXXFLAGS
14034 CXXFLAGS="-g"
14035 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14036 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14037 if test "${ac_cv_prog_cxx_g+set}" = set; then
14038   echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040   cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046
14047 int
14048 main ()
14049 {
14050
14051   ;
14052   return 0;
14053 }
14054 _ACEOF
14055 rm -f conftest.$ac_objext
14056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14057   (eval $ac_compile) 2>conftest.er1
14058   ac_status=$?
14059   grep -v '^ *+' conftest.er1 >conftest.err
14060   rm -f conftest.er1
14061   cat conftest.err >&5
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } &&
14064          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066   (eval $ac_try) 2>&5
14067   ac_status=$?
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); }; } &&
14070          { ac_try='test -s conftest.$ac_objext'
14071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072   (eval $ac_try) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; }; then
14076   ac_cv_prog_cxx_g=yes
14077 else
14078   echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081 ac_cv_prog_cxx_g=no
14082 fi
14083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14084 fi
14085 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14086 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14087 if test "$ac_test_CXXFLAGS" = set; then
14088   CXXFLAGS=$ac_save_CXXFLAGS
14089 elif test $ac_cv_prog_cxx_g = yes; then
14090   if test "$GXX" = yes; then
14091     CXXFLAGS="-g -O2"
14092   else
14093     CXXFLAGS="-g"
14094   fi
14095 else
14096   if test "$GXX" = yes; then
14097     CXXFLAGS="-O2"
14098   else
14099     CXXFLAGS=
14100   fi
14101 fi
14102 for ac_declaration in \
14103    '' \
14104    'extern "C" void std::exit (int) throw (); using std::exit;' \
14105    'extern "C" void std::exit (int); using std::exit;' \
14106    'extern "C" void exit (int) throw ();' \
14107    'extern "C" void exit (int);' \
14108    'void exit (int);'
14109 do
14110   cat >conftest.$ac_ext <<_ACEOF
14111 /* confdefs.h.  */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h.  */
14116 $ac_declaration
14117 #include <stdlib.h>
14118 int
14119 main ()
14120 {
14121 exit (42);
14122   ;
14123   return 0;
14124 }
14125 _ACEOF
14126 rm -f conftest.$ac_objext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14128   (eval $ac_compile) 2>conftest.er1
14129   ac_status=$?
14130   grep -v '^ *+' conftest.er1 >conftest.err
14131   rm -f conftest.er1
14132   cat conftest.err >&5
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); } &&
14135          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137   (eval $ac_try) 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; } &&
14141          { ac_try='test -s conftest.$ac_objext'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; }; then
14147   :
14148 else
14149   echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14151
14152 continue
14153 fi
14154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14155   cat >conftest.$ac_ext <<_ACEOF
14156 /* confdefs.h.  */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h.  */
14161 $ac_declaration
14162 int
14163 main ()
14164 {
14165 exit (42);
14166   ;
14167   return 0;
14168 }
14169 _ACEOF
14170 rm -f conftest.$ac_objext
14171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14172   (eval $ac_compile) 2>conftest.er1
14173   ac_status=$?
14174   grep -v '^ *+' conftest.er1 >conftest.err
14175   rm -f conftest.er1
14176   cat conftest.err >&5
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); } &&
14179          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181   (eval $ac_try) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest.$ac_objext'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; }; then
14191   break
14192 else
14193   echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196 fi
14197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14198 done
14199 rm -f conftest*
14200 if test -n "$ac_declaration"; then
14201   echo '#ifdef __cplusplus' >>confdefs.h
14202   echo $ac_declaration      >>confdefs.h
14203   echo '#endif'             >>confdefs.h
14204 fi
14205
14206 ac_ext=cc
14207 ac_cpp='$CXXCPP $CPPFLAGS'
14208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14211
14212
14213
14214     ac_ext=cc
14215 ac_cpp='$CXXCPP $CPPFLAGS'
14216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14219
14220     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14221 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14222 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   cat >conftest.$ac_ext <<_ACEOF
14226 /* confdefs.h.  */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h.  */
14231
14232 int
14233 main ()
14234 {
14235
14236              #ifndef __INTEL_COMPILER
14237                 choke me
14238              #endif
14239
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246   (eval $ac_compile) 2>conftest.er1
14247   ac_status=$?
14248   grep -v '^ *+' conftest.er1 >conftest.err
14249   rm -f conftest.er1
14250   cat conftest.err >&5
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); } &&
14253          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255   (eval $ac_try) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; } &&
14259          { ac_try='test -s conftest.$ac_objext'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; }; then
14265   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14266 else
14267   echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14269
14270 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14271
14272 fi
14273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14274
14275
14276 fi
14277 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14278 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14279     ac_ext=cc
14280 ac_cpp='$CXXCPP $CPPFLAGS'
14281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14284
14285     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14286         :; INTELCXX=yes
14287     else
14288         :;
14289     fi
14290
14291
14292         if test "x$GCXX" != "xyes"; then
14293         if test "xCXX" = "xC"; then
14294             echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
14295 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
14296 if test "${bakefile_cv_cxx_exto+set}" = set; then
14297   echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299   cat >conftest.$ac_ext <<_ACEOF
14300 /* confdefs.h.  */
14301 _ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h.  */
14305
14306 int
14307 main ()
14308 {
14309
14310   ;
14311   return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext conftest.$ac_ext.o
14315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14316   (eval $ac_compile) 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; then
14320   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14321     case $ac_file in
14322         conftest.$ac_ext.o)
14323             bakefile_cv_cxx_exto="-ext o"
14324             ;;
14325         *)
14326             ;;
14327     esac
14328 done
14329 else
14330   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14331 See \`config.log' for more details." >&5
14332 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14333 See \`config.log' for more details." >&2;}
14334    { (exit 1); exit 1; }; }
14335
14336 fi
14337
14338 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14339
14340 fi
14341 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14342 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14343 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
14344     if test "cxx" = "c"; then
14345         CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
14346     fi
14347     if test "cxx" = "cxx"; then
14348         CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
14349     fi
14350 fi
14351
14352             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14353                 unset ac_cv_prog_cc_g
14354                 ac_test_CFLAGS=${CFLAGS+set}
14355 ac_save_CFLAGS=$CFLAGS
14356 CFLAGS="-g"
14357 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14358 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14359 if test "${ac_cv_prog_cc_g+set}" = set; then
14360   echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362   cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368
14369 int
14370 main ()
14371 {
14372
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379   (eval $ac_compile) 2>conftest.er1
14380   ac_status=$?
14381   grep -v '^ *+' conftest.er1 >conftest.err
14382   rm -f conftest.er1
14383   cat conftest.err >&5
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } &&
14386          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_cv_prog_cc_g=yes
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 ac_cv_prog_cc_g=no
14404 fi
14405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14406 fi
14407 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14408 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14409 if test "$ac_test_CFLAGS" = set; then
14410   CFLAGS=$ac_save_CFLAGS
14411 elif test $ac_cv_prog_cc_g = yes; then
14412   if test "$GCC" = yes; then
14413     CFLAGS="-g -O2"
14414   else
14415     CFLAGS="-g"
14416   fi
14417 else
14418   if test "$GCC" = yes; then
14419     CFLAGS="-O2"
14420   else
14421     CFLAGS=
14422   fi
14423 fi
14424             fi
14425         fi
14426
14427                         case `uname -s` in
14428             AIX*)
14429                 ac_ext=cc
14430 ac_cpp='$CXXCPP $CPPFLAGS'
14431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14434
14435 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14436 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14437 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14438   echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440   cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h.  */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h.  */
14446
14447 int
14448 main ()
14449 {
14450 #ifndef __xlC__
14451        choke me
14452 #endif
14453
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 rm -f conftest.$ac_objext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14460   (eval $ac_compile) 2>conftest.er1
14461   ac_status=$?
14462   grep -v '^ *+' conftest.er1 >conftest.err
14463   rm -f conftest.er1
14464   cat conftest.err >&5
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } &&
14467          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469   (eval $ac_try) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; } &&
14473          { ac_try='test -s conftest.$ac_objext'
14474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475   (eval $ac_try) 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; }; then
14479   bakefile_compiler_xlc=yes
14480 else
14481   echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484 bakefile_compiler_xlc=no
14485 fi
14486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14487     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14488
14489 fi
14490 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14491 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14492
14493 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14494 ac_ext=cc
14495 ac_cpp='$CXXCPP $CPPFLAGS'
14496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14499
14500
14501                 ;;
14502
14503             Darwin)
14504                 ac_ext=cc
14505 ac_cpp='$CXXCPP $CPPFLAGS'
14506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14509
14510 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14511 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14512 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14513   echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515   cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521
14522 int
14523 main ()
14524 {
14525 #ifndef __MWERKS__
14526        choke me
14527 #endif
14528
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14535   (eval $ac_compile) 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544   (eval $ac_try) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); }; } &&
14548          { ac_try='test -s conftest.$ac_objext'
14549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550   (eval $ac_try) 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554   bakefile_compiler_mwerks=yes
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 bakefile_compiler_mwerks=no
14560 fi
14561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14562     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14563
14564 fi
14565 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14566 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14567
14568 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
14569 ac_ext=cc
14570 ac_cpp='$CXXCPP $CPPFLAGS'
14571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14574
14575
14576                 ac_ext=cc
14577 ac_cpp='$CXXCPP $CPPFLAGS'
14578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14581
14582 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14583 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14584 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14585   echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587   cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593
14594 int
14595 main ()
14596 {
14597 #ifndef __xlC__
14598        choke me
14599 #endif
14600
14601   ;
14602   return 0;
14603 }
14604 _ACEOF
14605 rm -f conftest.$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607   (eval $ac_compile) 2>conftest.er1
14608   ac_status=$?
14609   grep -v '^ *+' conftest.er1 >conftest.err
14610   rm -f conftest.er1
14611   cat conftest.err >&5
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); } &&
14614          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616   (eval $ac_try) 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; } &&
14620          { ac_try='test -s conftest.$ac_objext'
14621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622   (eval $ac_try) 2>&5
14623   ac_status=$?
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); }; }; then
14626   bakefile_compiler_xlc=yes
14627 else
14628   echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631 bakefile_compiler_xlc=no
14632 fi
14633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14634     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14635
14636 fi
14637 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14638 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14639
14640 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14641 ac_ext=cc
14642 ac_cpp='$CXXCPP $CPPFLAGS'
14643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14646
14647
14648                 ;;
14649
14650             IRIX*)
14651
14652
14653     ac_ext=cc
14654 ac_cpp='$CXXCPP $CPPFLAGS'
14655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14658
14659     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14660 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14661 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670
14671 int
14672 main ()
14673 {
14674
14675              #ifndef _SGI_COMPILER_VERSION
14676                 choke me
14677              #endif
14678
14679   ;
14680   return 0;
14681 }
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14685   (eval $ac_compile) 2>conftest.er1
14686   ac_status=$?
14687   grep -v '^ *+' conftest.er1 >conftest.err
14688   rm -f conftest.er1
14689   cat conftest.err >&5
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } &&
14692          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694   (eval $ac_try) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; } &&
14698          { ac_try='test -s conftest.$ac_objext'
14699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700   (eval $ac_try) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14710
14711 fi
14712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14713
14714
14715 fi
14716 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14717 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14718     ac_ext=cc
14719 ac_cpp='$CXXCPP $CPPFLAGS'
14720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14723
14724     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14725         :; SGICXX=yes
14726     else
14727         :;
14728     fi
14729
14730
14731                 ;;
14732
14733             HP-UX*)
14734
14735
14736     ac_ext=cc
14737 ac_cpp='$CXXCPP $CPPFLAGS'
14738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14741
14742     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14743 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14744 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753
14754 int
14755 main ()
14756 {
14757
14758              #ifndef __HP_aCC
14759                 choke me
14760              #endif
14761
14762   ;
14763   return 0;
14764 }
14765 _ACEOF
14766 rm -f conftest.$ac_objext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768   (eval $ac_compile) 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; } &&
14781          { ac_try='test -s conftest.$ac_objext'
14782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783   (eval $ac_try) 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); }; }; then
14787   bakefile_cv_cxx_compiler___HP_aCC=yes
14788 else
14789   echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14791
14792 bakefile_cv_cxx_compiler___HP_aCC=no
14793
14794 fi
14795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796
14797
14798 fi
14799 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14800 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14801     ac_ext=cc
14802 ac_cpp='$CXXCPP $CPPFLAGS'
14803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14806
14807     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14808         :; HPCXX=yes
14809     else
14810         :;
14811     fi
14812
14813
14814                 ;;
14815
14816             OSF1)
14817
14818
14819     ac_ext=cc
14820 ac_cpp='$CXXCPP $CPPFLAGS'
14821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14824
14825     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14826 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14827 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14828   echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830   cat >conftest.$ac_ext <<_ACEOF
14831 /* confdefs.h.  */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h.  */
14836
14837 int
14838 main ()
14839 {
14840
14841              #ifndef __DECCXX
14842                 choke me
14843              #endif
14844
14845   ;
14846   return 0;
14847 }
14848 _ACEOF
14849 rm -f conftest.$ac_objext
14850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14851   (eval $ac_compile) 2>conftest.er1
14852   ac_status=$?
14853   grep -v '^ *+' conftest.er1 >conftest.err
14854   rm -f conftest.er1
14855   cat conftest.err >&5
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); } &&
14858          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860   (eval $ac_try) 2>&5
14861   ac_status=$?
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); }; } &&
14864          { ac_try='test -s conftest.$ac_objext'
14865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866   (eval $ac_try) 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); }; }; then
14870   bakefile_cv_cxx_compiler___DECCXX=yes
14871 else
14872   echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875 bakefile_cv_cxx_compiler___DECCXX=no
14876
14877 fi
14878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14879
14880
14881 fi
14882 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14883 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
14884     ac_ext=cc
14885 ac_cpp='$CXXCPP $CPPFLAGS'
14886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14889
14890     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14891         :; COMPAQCXX=yes
14892     else
14893         :;
14894     fi
14895
14896
14897                 ;;
14898
14899             SunOS)
14900
14901
14902     ac_ext=cc
14903 ac_cpp='$CXXCPP $CPPFLAGS'
14904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14907
14908     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14909 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14910 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14911   echo $ECHO_N "(cached) $ECHO_C" >&6
14912 else
14913   cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h.  */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h.  */
14919
14920 int
14921 main ()
14922 {
14923
14924              #ifndef __SUNPRO_CC
14925                 choke me
14926              #endif
14927
14928   ;
14929   return 0;
14930 }
14931 _ACEOF
14932 rm -f conftest.$ac_objext
14933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14934   (eval $ac_compile) 2>conftest.er1
14935   ac_status=$?
14936   grep -v '^ *+' conftest.er1 >conftest.err
14937   rm -f conftest.er1
14938   cat conftest.err >&5
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); } &&
14941          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943   (eval $ac_try) 2>&5
14944   ac_status=$?
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); }; } &&
14947          { ac_try='test -s conftest.$ac_objext'
14948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949   (eval $ac_try) 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); }; }; then
14953   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14954 else
14955   echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14957
14958 bakefile_cv_cxx_compiler___SUNPRO_CC=no
14959
14960 fi
14961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14962
14963
14964 fi
14965 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14966 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14967     ac_ext=cc
14968 ac_cpp='$CXXCPP $CPPFLAGS'
14969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14972
14973     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14974         :; SUNCXX=yes
14975     else
14976         :;
14977     fi
14978
14979
14980                 ;;
14981         esac
14982     fi
14983
14984
14985
14986 if test -n "$ac_tool_prefix"; then
14987   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14989 echo "$as_me:$LINENO: checking for $ac_word" >&5
14990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14991 if test "${ac_cv_prog_RANLIB+set}" = set; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   if test -n "$RANLIB"; then
14995   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14996 else
14997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998 for as_dir in $PATH
14999 do
15000   IFS=$as_save_IFS
15001   test -z "$as_dir" && as_dir=.
15002   for ac_exec_ext in '' $ac_executable_extensions; do
15003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15004     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15006     break 2
15007   fi
15008 done
15009 done
15010
15011 fi
15012 fi
15013 RANLIB=$ac_cv_prog_RANLIB
15014 if test -n "$RANLIB"; then
15015   echo "$as_me:$LINENO: result: $RANLIB" >&5
15016 echo "${ECHO_T}$RANLIB" >&6
15017 else
15018   echo "$as_me:$LINENO: result: no" >&5
15019 echo "${ECHO_T}no" >&6
15020 fi
15021
15022 fi
15023 if test -z "$ac_cv_prog_RANLIB"; then
15024   ac_ct_RANLIB=$RANLIB
15025   # Extract the first word of "ranlib", so it can be a program name with args.
15026 set dummy ranlib; ac_word=$2
15027 echo "$as_me:$LINENO: checking for $ac_word" >&5
15028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15030   echo $ECHO_N "(cached) $ECHO_C" >&6
15031 else
15032   if test -n "$ac_ct_RANLIB"; then
15033   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15034 else
15035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036 for as_dir in $PATH
15037 do
15038   IFS=$as_save_IFS
15039   test -z "$as_dir" && as_dir=.
15040   for ac_exec_ext in '' $ac_executable_extensions; do
15041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15042     ac_cv_prog_ac_ct_RANLIB="ranlib"
15043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15044     break 2
15045   fi
15046 done
15047 done
15048
15049   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15050 fi
15051 fi
15052 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15053 if test -n "$ac_ct_RANLIB"; then
15054   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15055 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15056 else
15057   echo "$as_me:$LINENO: result: no" >&5
15058 echo "${ECHO_T}no" >&6
15059 fi
15060
15061   RANLIB=$ac_ct_RANLIB
15062 else
15063   RANLIB="$ac_cv_prog_RANLIB"
15064 fi
15065
15066
15067 if test -n "$ac_tool_prefix"; then
15068   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15069 set dummy ${ac_tool_prefix}ar; ac_word=$2
15070 echo "$as_me:$LINENO: checking for $ac_word" >&5
15071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15072 if test "${ac_cv_prog_AR+set}" = set; then
15073   echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075   if test -n "$AR"; then
15076   ac_cv_prog_AR="$AR" # Let the user override the test.
15077 else
15078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15079 for as_dir in $PATH
15080 do
15081   IFS=$as_save_IFS
15082   test -z "$as_dir" && as_dir=.
15083   for ac_exec_ext in '' $ac_executable_extensions; do
15084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15085     ac_cv_prog_AR="${ac_tool_prefix}ar"
15086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15087     break 2
15088   fi
15089 done
15090 done
15091
15092 fi
15093 fi
15094 AR=$ac_cv_prog_AR
15095 if test -n "$AR"; then
15096   echo "$as_me:$LINENO: result: $AR" >&5
15097 echo "${ECHO_T}$AR" >&6
15098 else
15099   echo "$as_me:$LINENO: result: no" >&5
15100 echo "${ECHO_T}no" >&6
15101 fi
15102
15103 fi
15104 if test -z "$ac_cv_prog_AR"; then
15105   ac_ct_AR=$AR
15106   # Extract the first word of "ar", so it can be a program name with args.
15107 set dummy ar; ac_word=$2
15108 echo "$as_me:$LINENO: checking for $ac_word" >&5
15109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15110 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15111   echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113   if test -n "$ac_ct_AR"; then
15114   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15115 else
15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15118 do
15119   IFS=$as_save_IFS
15120   test -z "$as_dir" && as_dir=.
15121   for ac_exec_ext in '' $ac_executable_extensions; do
15122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15123     ac_cv_prog_ac_ct_AR="ar"
15124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15125     break 2
15126   fi
15127 done
15128 done
15129
15130 fi
15131 fi
15132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15133 if test -n "$ac_ct_AR"; then
15134   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15135 echo "${ECHO_T}$ac_ct_AR" >&6
15136 else
15137   echo "$as_me:$LINENO: result: no" >&5
15138 echo "${ECHO_T}no" >&6
15139 fi
15140
15141   AR=$ac_ct_AR
15142 else
15143   AR="$ac_cv_prog_AR"
15144 fi
15145
15146 if test "x$AR" = "x" ; then
15147     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15148 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
15149    { (exit 1); exit 1; }; }
15150 fi
15151
15152 # Find a good install program.  We prefer a C program (faster),
15153 # so one script is as good as another.  But avoid the broken or
15154 # incompatible versions:
15155 # SysV /etc/install, /usr/sbin/install
15156 # SunOS /usr/etc/install
15157 # IRIX /sbin/install
15158 # AIX /bin/install
15159 # AmigaOS /C/install, which installs bootblocks on floppy discs
15160 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15161 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15162 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15163 # OS/2's system install, which has a completely different semantic
15164 # ./install, which can be erroneously created by make from ./install.sh.
15165 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15166 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15167 if test -z "$INSTALL"; then
15168 if test "${ac_cv_path_install+set}" = set; then
15169   echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15173 do
15174   IFS=$as_save_IFS
15175   test -z "$as_dir" && as_dir=.
15176   # Account for people who put trailing slashes in PATH elements.
15177 case $as_dir/ in
15178   ./ | .// | /cC/* | \
15179   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15180   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
15181   /usr/ucb/* ) ;;
15182   *)
15183     # OSF1 and SCO ODT 3.0 have their own names for install.
15184     # Don't use installbsd from OSF since it installs stuff as root
15185     # by default.
15186     for ac_prog in ginstall scoinst install; do
15187       for ac_exec_ext in '' $ac_executable_extensions; do
15188         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15189           if test $ac_prog = install &&
15190             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15191             # AIX install.  It has an incompatible calling convention.
15192             :
15193           elif test $ac_prog = install &&
15194             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15195             # program-specific install script used by HP pwplus--don't use.
15196             :
15197           else
15198             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15199             break 3
15200           fi
15201         fi
15202       done
15203     done
15204     ;;
15205 esac
15206 done
15207
15208
15209 fi
15210   if test "${ac_cv_path_install+set}" = set; then
15211     INSTALL=$ac_cv_path_install
15212   else
15213     # As a last resort, use the slow shell script.  We don't cache a
15214     # path for INSTALL within a source directory, because that will
15215     # break other packages using the cache if that directory is
15216     # removed, or if the path is relative.
15217     INSTALL=$ac_install_sh
15218   fi
15219 fi
15220 echo "$as_me:$LINENO: result: $INSTALL" >&5
15221 echo "${ECHO_T}$INSTALL" >&6
15222
15223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15224 # It thinks the first close brace ends the variable substitution.
15225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15226
15227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15228
15229 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15230
15231
15232 case ${INSTALL} in
15233   /* ) # Absolute
15234      ;;
15235   ?:* ) # Drive letter, considered as absolute.
15236      ;;
15237   *)
15238      INSTALL=`pwd`/${INSTALL} ;;
15239 esac
15240
15241
15242 case "${host}" in
15243
15244                 *-*-darwin* )
15245         INSTALL_PROGRAM="cp -fp"
15246         INSTALL_DATA="cp -fp"
15247         ;;
15248     *)
15249         ;;
15250 esac
15251
15252 if test -n "$ac_tool_prefix"; then
15253   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15254 set dummy ${ac_tool_prefix}strip; ac_word=$2
15255 echo "$as_me:$LINENO: checking for $ac_word" >&5
15256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15257 if test "${ac_cv_prog_STRIP+set}" = set; then
15258   echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260   if test -n "$STRIP"; then
15261   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15262 else
15263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15264 for as_dir in $PATH
15265 do
15266   IFS=$as_save_IFS
15267   test -z "$as_dir" && as_dir=.
15268   for ac_exec_ext in '' $ac_executable_extensions; do
15269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15270     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15272     break 2
15273   fi
15274 done
15275 done
15276
15277 fi
15278 fi
15279 STRIP=$ac_cv_prog_STRIP
15280 if test -n "$STRIP"; then
15281   echo "$as_me:$LINENO: result: $STRIP" >&5
15282 echo "${ECHO_T}$STRIP" >&6
15283 else
15284   echo "$as_me:$LINENO: result: no" >&5
15285 echo "${ECHO_T}no" >&6
15286 fi
15287
15288 fi
15289 if test -z "$ac_cv_prog_STRIP"; then
15290   ac_ct_STRIP=$STRIP
15291   # Extract the first word of "strip", so it can be a program name with args.
15292 set dummy strip; ac_word=$2
15293 echo "$as_me:$LINENO: checking for $ac_word" >&5
15294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15295 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15296   echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298   if test -n "$ac_ct_STRIP"; then
15299   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15300 else
15301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15302 for as_dir in $PATH
15303 do
15304   IFS=$as_save_IFS
15305   test -z "$as_dir" && as_dir=.
15306   for ac_exec_ext in '' $ac_executable_extensions; do
15307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15308     ac_cv_prog_ac_ct_STRIP="strip"
15309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15310     break 2
15311   fi
15312 done
15313 done
15314
15315   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15316 fi
15317 fi
15318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15319 if test -n "$ac_ct_STRIP"; then
15320   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15321 echo "${ECHO_T}$ac_ct_STRIP" >&6
15322 else
15323   echo "$as_me:$LINENO: result: no" >&5
15324 echo "${ECHO_T}no" >&6
15325 fi
15326
15327   STRIP=$ac_ct_STRIP
15328 else
15329   STRIP="$ac_cv_prog_STRIP"
15330 fi
15331
15332
15333 if test "$wxUSE_WINE" = "yes"; then
15334     if test -n "$ac_tool_prefix"; then
15335   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15336 set dummy ${ac_tool_prefix}wrc; ac_word=$2
15337 echo "$as_me:$LINENO: checking for $ac_word" >&5
15338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15339 if test "${ac_cv_prog_WINDRES+set}" = set; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342   if test -n "$WINDRES"; then
15343   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15344 else
15345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346 for as_dir in $PATH
15347 do
15348   IFS=$as_save_IFS
15349   test -z "$as_dir" && as_dir=.
15350   for ac_exec_ext in '' $ac_executable_extensions; do
15351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15352     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
15353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15354     break 2
15355   fi
15356 done
15357 done
15358
15359 fi
15360 fi
15361 WINDRES=$ac_cv_prog_WINDRES
15362 if test -n "$WINDRES"; then
15363   echo "$as_me:$LINENO: result: $WINDRES" >&5
15364 echo "${ECHO_T}$WINDRES" >&6
15365 else
15366   echo "$as_me:$LINENO: result: no" >&5
15367 echo "${ECHO_T}no" >&6
15368 fi
15369
15370 fi
15371 if test -z "$ac_cv_prog_WINDRES"; then
15372   ac_ct_WINDRES=$WINDRES
15373   # Extract the first word of "wrc", so it can be a program name with args.
15374 set dummy wrc; ac_word=$2
15375 echo "$as_me:$LINENO: checking for $ac_word" >&5
15376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15377 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15378   echo $ECHO_N "(cached) $ECHO_C" >&6
15379 else
15380   if test -n "$ac_ct_WINDRES"; then
15381   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15382 else
15383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15384 for as_dir in $PATH
15385 do
15386   IFS=$as_save_IFS
15387   test -z "$as_dir" && as_dir=.
15388   for ac_exec_ext in '' $ac_executable_extensions; do
15389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15390     ac_cv_prog_ac_ct_WINDRES="wrc"
15391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15392     break 2
15393   fi
15394 done
15395 done
15396
15397 fi
15398 fi
15399 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15400 if test -n "$ac_ct_WINDRES"; then
15401   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15402 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15403 else
15404   echo "$as_me:$LINENO: result: no" >&5
15405 echo "${ECHO_T}no" >&6
15406 fi
15407
15408   WINDRES=$ac_ct_WINDRES
15409 else
15410   WINDRES="$ac_cv_prog_WINDRES"
15411 fi
15412
15413     RESCOMP="$WINDRES"
15414 else
15415     case "${host}" in
15416     *-*-cygwin* | *-*-mingw32* )
15417                                 if test -n "$ac_tool_prefix"; then
15418   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15419 set dummy ${ac_tool_prefix}windres; ac_word=$2
15420 echo "$as_me:$LINENO: checking for $ac_word" >&5
15421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15422 if test "${ac_cv_prog_WINDRES+set}" = set; then
15423   echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425   if test -n "$WINDRES"; then
15426   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15427 else
15428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15429 for as_dir in $PATH
15430 do
15431   IFS=$as_save_IFS
15432   test -z "$as_dir" && as_dir=.
15433   for ac_exec_ext in '' $ac_executable_extensions; do
15434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15435     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15437     break 2
15438   fi
15439 done
15440 done
15441
15442 fi
15443 fi
15444 WINDRES=$ac_cv_prog_WINDRES
15445 if test -n "$WINDRES"; then
15446   echo "$as_me:$LINENO: result: $WINDRES" >&5
15447 echo "${ECHO_T}$WINDRES" >&6
15448 else
15449   echo "$as_me:$LINENO: result: no" >&5
15450 echo "${ECHO_T}no" >&6
15451 fi
15452
15453 fi
15454 if test -z "$ac_cv_prog_WINDRES"; then
15455   ac_ct_WINDRES=$WINDRES
15456   # Extract the first word of "windres", so it can be a program name with args.
15457 set dummy windres; ac_word=$2
15458 echo "$as_me:$LINENO: checking for $ac_word" >&5
15459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15460 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15461   echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463   if test -n "$ac_ct_WINDRES"; then
15464   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15465 else
15466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467 for as_dir in $PATH
15468 do
15469   IFS=$as_save_IFS
15470   test -z "$as_dir" && as_dir=.
15471   for ac_exec_ext in '' $ac_executable_extensions; do
15472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15473     ac_cv_prog_ac_ct_WINDRES="windres"
15474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15475     break 2
15476   fi
15477 done
15478 done
15479
15480 fi
15481 fi
15482 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15483 if test -n "$ac_ct_WINDRES"; then
15484   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15485 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15486 else
15487   echo "$as_me:$LINENO: result: no" >&5
15488 echo "${ECHO_T}no" >&6
15489 fi
15490
15491   WINDRES=$ac_ct_WINDRES
15492 else
15493   WINDRES="$ac_cv_prog_WINDRES"
15494 fi
15495
15496         RESCOMP="$WINDRES"
15497         if test -n "$ac_tool_prefix"; then
15498   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15499 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15500 echo "$as_me:$LINENO: checking for $ac_word" >&5
15501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15502 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15503   echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505   if test -n "$DLLTOOL"; then
15506   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15507 else
15508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15509 for as_dir in $PATH
15510 do
15511   IFS=$as_save_IFS
15512   test -z "$as_dir" && as_dir=.
15513   for ac_exec_ext in '' $ac_executable_extensions; do
15514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15515     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15517     break 2
15518   fi
15519 done
15520 done
15521
15522 fi
15523 fi
15524 DLLTOOL=$ac_cv_prog_DLLTOOL
15525 if test -n "$DLLTOOL"; then
15526   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15527 echo "${ECHO_T}$DLLTOOL" >&6
15528 else
15529   echo "$as_me:$LINENO: result: no" >&5
15530 echo "${ECHO_T}no" >&6
15531 fi
15532
15533 fi
15534 if test -z "$ac_cv_prog_DLLTOOL"; then
15535   ac_ct_DLLTOOL=$DLLTOOL
15536   # Extract the first word of "dlltool", so it can be a program name with args.
15537 set dummy dlltool; ac_word=$2
15538 echo "$as_me:$LINENO: checking for $ac_word" >&5
15539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15540 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15541   echo $ECHO_N "(cached) $ECHO_C" >&6
15542 else
15543   if test -n "$ac_ct_DLLTOOL"; then
15544   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15545 else
15546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15547 for as_dir in $PATH
15548 do
15549   IFS=$as_save_IFS
15550   test -z "$as_dir" && as_dir=.
15551   for ac_exec_ext in '' $ac_executable_extensions; do
15552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15553     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15555     break 2
15556   fi
15557 done
15558 done
15559
15560 fi
15561 fi
15562 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15563 if test -n "$ac_ct_DLLTOOL"; then
15564   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15565 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15566 else
15567   echo "$as_me:$LINENO: result: no" >&5
15568 echo "${ECHO_T}no" >&6
15569 fi
15570
15571   DLLTOOL=$ac_ct_DLLTOOL
15572 else
15573   DLLTOOL="$ac_cv_prog_DLLTOOL"
15574 fi
15575
15576         ;;
15577     esac
15578 fi
15579
15580 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15581 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15582 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15583   echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585
15586     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15587             egrep -s GNU > /dev/null); then
15588         wx_cv_prog_makeisgnu="yes"
15589     else
15590         wx_cv_prog_makeisgnu="no"
15591     fi
15592
15593 fi
15594 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15595 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15596
15597 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15598     IF_GNU_MAKE=""
15599 else
15600     IF_GNU_MAKE="#"
15601 fi
15602
15603
15604
15605 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15606 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15607 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15608 if test "${wx_cv_prog_makevpath+set}" = set; then
15609   echo $ECHO_N "(cached) $ECHO_C" >&6
15610 else
15611
15612 cat - << EOF > confMake
15613 check : file
15614         cp \$? \$@
15615         cp \$? final_file
15616 EOF
15617
15618 if test ! -d sub ; then
15619   mkdir sub
15620 fi
15621 echo dummy > sub/file
15622 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15623 RESULT=$?
15624 rm -f sub/file check final_file confMake
15625 rmdir sub
15626 if test "$RESULT" = 0; then
15627   wx_cv_prog_makevpath="yes"
15628 else
15629   wx_cv_prog_makevpath="no"
15630 fi
15631
15632 fi
15633 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15634 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15635
15636 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15637 { { echo "$as_me:$LINENO: error:
15638 You need a make-utility that is able to use the variable
15639 VPATH correctly.
15640 If your version of make does not support VPATH correctly,
15641 please install GNU-make (possibly as gmake), and start
15642 configure with the following command:
15643 export MAKE=gmake; ./configure  for sh-type shells
15644 setenv MAKE gmake; ./configure  for csh-type shells
15645 Also please do remember to use gmake in this case every time
15646 you are trying to compile.
15647 " >&5
15648 echo "$as_me: error:
15649 You need a make-utility that is able to use the variable
15650 VPATH correctly.
15651 If your version of make does not support VPATH correctly,
15652 please install GNU-make (possibly as gmake), and start
15653 configure with the following command:
15654 export MAKE=gmake; ./configure  for sh-type shells
15655 setenv MAKE gmake; ./configure  for csh-type shells
15656 Also please do remember to use gmake in this case every time
15657 you are trying to compile.
15658 " >&2;}
15659    { (exit 1); exit 1; }; }
15660 fi fi
15661 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15663 LN_S=$as_ln_s
15664 if test "$LN_S" = "ln -s"; then
15665   echo "$as_me:$LINENO: result: yes" >&5
15666 echo "${ECHO_T}yes" >&6
15667 else
15668   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15669 echo "${ECHO_T}no, using $LN_S" >&6
15670 fi
15671
15672
15673
15674
15675 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15676     CXXFLAGS="-qunique $CXXFLAGS"
15677 fi
15678
15679 case "${host}" in
15680   powerpc-*-darwin* )
15681     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15682 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15683     cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689
15690 int
15691 main ()
15692 {
15693 #ifndef __POWERPC__
15694         choke me for lack of PowerPC
15695 #endif
15696
15697   ;
15698   return 0;
15699 }
15700 _ACEOF
15701 rm -f conftest.$ac_objext
15702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703   (eval $ac_compile) 2>conftest.er1
15704   ac_status=$?
15705   grep -v '^ *+' conftest.er1 >conftest.err
15706   rm -f conftest.er1
15707   cat conftest.err >&5
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); } &&
15710          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712   (eval $ac_try) 2>&5
15713   ac_status=$?
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); }; } &&
15716          { ac_try='test -s conftest.$ac_objext'
15717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718   (eval $ac_try) 2>&5
15719   ac_status=$?
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); }; }; then
15722   echo "$as_me:$LINENO: result: yes" >&5
15723 echo "${ECHO_T}yes" >&6
15724 else
15725   echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15727
15728 echo "$as_me:$LINENO: result: no" >&5
15729 echo "${ECHO_T}no" >&6
15730         cat >>confdefs.h <<\_ACEOF
15731 #define __POWERPC__ 1
15732 _ACEOF
15733
15734
15735 fi
15736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15737   ;;
15738 esac
15739
15740 case "${host}" in
15741   *-*-darwin* )
15742     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15743 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15744     cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h.  */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h.  */
15750 #include <CoreFoundation/CFBase.h>
15751
15752 int
15753 main ()
15754 {
15755
15756   ;
15757   return 0;
15758 }
15759 _ACEOF
15760 rm -f conftest.$ac_objext
15761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15762   (eval $ac_compile) 2>conftest.er1
15763   ac_status=$?
15764   grep -v '^ *+' conftest.er1 >conftest.err
15765   rm -f conftest.er1
15766   cat conftest.err >&5
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); } &&
15769          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771   (eval $ac_try) 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); }; } &&
15775          { ac_try='test -s conftest.$ac_objext'
15776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777   (eval $ac_try) 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); }; }; then
15781   echo "$as_me:$LINENO: result: yes" >&5
15782 echo "${ECHO_T}yes" >&6
15783 else
15784   echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15786
15787 echo "$as_me:$LINENO: result: no" >&5
15788 echo "${ECHO_T}no" >&6
15789         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15790 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15791         cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797 #define __CF_USE_FRAMEWORK_INCLUDES__
15798 #include <CoreFoundation/CFBase.h>
15799
15800 int
15801 main ()
15802 {
15803
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 rm -f conftest.$ac_objext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15810   (eval $ac_compile) 2>conftest.er1
15811   ac_status=$?
15812   grep -v '^ *+' conftest.er1 >conftest.err
15813   rm -f conftest.er1
15814   cat conftest.err >&5
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); } &&
15817          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819   (eval $ac_try) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); }; } &&
15823          { ac_try='test -s conftest.$ac_objext'
15824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825   (eval $ac_try) 2>&5
15826   ac_status=$?
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); }; }; then
15829   echo "$as_me:$LINENO: result: yes" >&5
15830 echo "${ECHO_T}yes" >&6
15831                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15832 else
15833   echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15835
15836 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
15837 See \`config.log' for more details." >&5
15838 echo "$as_me: error: no.  CoreFoundation not available.
15839 See \`config.log' for more details." >&2;}
15840    { (exit 1); exit 1; }; }
15841
15842 fi
15843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15844
15845
15846 fi
15847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15848   ;;
15849 esac
15850
15851 case "${host}" in
15852   *-pc-os2_emx | *-pc-os2-emx )
15853                                                       ac_ext=c
15854 ac_cpp='$CPP $CPPFLAGS'
15855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15858
15859       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15860                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15861 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15862 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15863   echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865   ac_check_lib_save_LIBS=$LIBS
15866 LIBS="-lcExt  $LIBS"
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873
15874 /* Override any gcc2 internal prototype to avoid an error.  */
15875 #ifdef __cplusplus
15876 extern "C"
15877 #endif
15878 /* We use char because int might match the return type of a gcc2
15879    builtin and then its argument prototype would still apply.  */
15880 char drand48 ();
15881 int
15882 main ()
15883 {
15884 drand48 ();
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 rm -f conftest.$ac_objext conftest$ac_exeext
15890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15891   (eval $ac_link) 2>conftest.er1
15892   ac_status=$?
15893   grep -v '^ *+' conftest.er1 >conftest.err
15894   rm -f conftest.er1
15895   cat conftest.err >&5
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } &&
15898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900   (eval $ac_try) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; } &&
15904          { ac_try='test -s conftest$ac_exeext'
15905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906   (eval $ac_try) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; }; then
15910   ac_cv_lib_cExt_drand48=yes
15911 else
15912   echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15914
15915 ac_cv_lib_cExt_drand48=no
15916 fi
15917 rm -f conftest.err conftest.$ac_objext \
15918       conftest$ac_exeext conftest.$ac_ext
15919 LIBS=$ac_check_lib_save_LIBS
15920 fi
15921 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15922 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15923 if test $ac_cv_lib_cExt_drand48 = yes; then
15924   LIBS="$LIBS -lcExt"
15925 fi
15926
15927       else
15928                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15929       fi
15930                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15931 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
15932 if test "${wx_cv_gccversion+set}" = set; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935
15936           if test "$cross_compiling" = yes; then
15937                 wx_cv_gccversion="EMX2"
15938
15939 else
15940   cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946
15947                   #include <stdio.h>
15948
15949                   int main()
15950                   {
15951                       FILE *f=fopen("conftestval", "w");
15952                       if (!f) exit(1);
15953                       fprintf(f,
15954                   #if (__GNUC__ < 3)
15955                               "EMX2"
15956                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15957                               "EMX3"
15958                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15959                               "Innotek5"
15960                   #else
15961                               "Innotek6"
15962                   #endif
15963                       );
15964                       exit(0);
15965                   }
15966
15967 _ACEOF
15968 rm -f conftest$ac_exeext
15969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15970   (eval $ac_link) 2>&5
15971   ac_status=$?
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975   (eval $ac_try) 2>&5
15976   ac_status=$?
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); }; }; then
15979   wx_cv_gccversion=`cat conftestval`
15980 else
15981   echo "$as_me: program exited with status $ac_status" >&5
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 ( exit $ac_status )
15986 wx_cv_gccversion="EMX2"
15987 fi
15988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15989 fi
15990
15991 fi
15992 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15993 echo "${ECHO_T}$wx_cv_gccversion" >&6
15994       ac_ext=cc
15995 ac_cpp='$CXXCPP $CPPFLAGS'
15996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15999
16000       if test "$wx_cv_gccversion" = "EMX2"; then
16001           LIBS="$LIBS -lstdcpp"
16002           LDFLAGS="$LDFLAGS -Zsysv-signals"
16003       else
16004           if test "$wx_cv_gccversion" = "EMX3"; then
16005               LIBS="$LIBS -lstdcxx -lgcc"
16006               LDFLAGS="$LDFLAGS -Zsysv-signals"
16007           else
16008               LIBS="$LIBS -lstdc++"
16009           fi
16010       fi
16011       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16012         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16013 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16014         wxUSE_OMF=yes
16015         enable_omf=yes
16016       fi
16017         ;;
16018   *)
16019
16020       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
16021 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16022 if test "${ac_cv_string_strcasecmp+set}" = set; then
16023   echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025
16026           cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032
16033               #include <string.h>
16034
16035 int
16036 main ()
16037 {
16038
16039                   strcasecmp("foo", "bar");
16040
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16047   (eval $ac_link) 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } &&
16054          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16056   (eval $ac_try) 2>&5
16057   ac_status=$?
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); }; } &&
16060          { ac_try='test -s conftest$ac_exeext'
16061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062   (eval $ac_try) 2>&5
16063   ac_status=$?
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); }; }; then
16066   ac_cv_string_strcasecmp=yes
16067 else
16068   echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071 ac_cv_string_strcasecmp=no
16072
16073 fi
16074 rm -f conftest.err conftest.$ac_objext \
16075       conftest$ac_exeext conftest.$ac_ext
16076
16077 fi
16078 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16079 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16080
16081       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16082           cat >>confdefs.h <<\_ACEOF
16083 #define HAVE_STRCASECMP_IN_STRING_H 1
16084 _ACEOF
16085
16086       else
16087           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16088 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16089 if test "${ac_cv_strings_strcasecmp+set}" = set; then
16090   echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092
16093               cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h.  */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h.  */
16099
16100                   #include <strings.h>
16101
16102 int
16103 main ()
16104 {
16105
16106                       strcasecmp("foo", "bar");
16107
16108   ;
16109   return 0;
16110 }
16111 _ACEOF
16112 rm -f conftest.$ac_objext conftest$ac_exeext
16113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16114   (eval $ac_link) 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; } &&
16127          { ac_try='test -s conftest$ac_exeext'
16128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129   (eval $ac_try) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); }; }; then
16133   ac_cv_strings_strcasecmp=yes
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138 ac_cv_strings_strcasecmp=no
16139
16140 fi
16141 rm -f conftest.err conftest.$ac_objext \
16142       conftest$ac_exeext conftest.$ac_ext
16143
16144 fi
16145 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16146 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16147
16148           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
16149               cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_STRCASECMP_IN_STRINGS_H 1
16151 _ACEOF
16152
16153           else
16154               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16155 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16156    { (exit 1); exit 1; }; }
16157           fi
16158       fi
16159
16160         ;;
16161 esac
16162
16163
16164 ac_ext=cc
16165 ac_cpp='$CXXCPP $CPPFLAGS'
16166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16169 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16170 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16171 if test -z "$CXXCPP"; then
16172   if test "${ac_cv_prog_CXXCPP+set}" = set; then
16173   echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175       # Double quotes because CXXCPP needs to be expanded
16176     for CXXCPP in "$CXX -E" "/lib/cpp"
16177     do
16178       ac_preproc_ok=false
16179 for ac_cxx_preproc_warn_flag in '' yes
16180 do
16181   # Use a header file that comes with gcc, so configuring glibc
16182   # with a fresh cross-compiler works.
16183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16184   # <limits.h> exists even on freestanding compilers.
16185   # On the NeXT, cc -E runs the code through the compiler's parser,
16186   # not just through cpp. "Syntax error" is here to catch this case.
16187   cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h.  */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h.  */
16193 #ifdef __STDC__
16194 # include <limits.h>
16195 #else
16196 # include <assert.h>
16197 #endif
16198                      Syntax error
16199 _ACEOF
16200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16202   ac_status=$?
16203   grep -v '^ *+' conftest.er1 >conftest.err
16204   rm -f conftest.er1
16205   cat conftest.err >&5
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); } >/dev/null; then
16208   if test -s conftest.err; then
16209     ac_cpp_err=$ac_cxx_preproc_warn_flag
16210     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16211   else
16212     ac_cpp_err=
16213   fi
16214 else
16215   ac_cpp_err=yes
16216 fi
16217 if test -z "$ac_cpp_err"; then
16218   :
16219 else
16220   echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16222
16223   # Broken: fails on valid input.
16224 continue
16225 fi
16226 rm -f conftest.err conftest.$ac_ext
16227
16228   # OK, works on sane cases.  Now check whether non-existent headers
16229   # can be detected and how.
16230   cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236 #include <ac_nonexistent.h>
16237 _ACEOF
16238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16240   ac_status=$?
16241   grep -v '^ *+' conftest.er1 >conftest.err
16242   rm -f conftest.er1
16243   cat conftest.err >&5
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); } >/dev/null; then
16246   if test -s conftest.err; then
16247     ac_cpp_err=$ac_cxx_preproc_warn_flag
16248     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16249   else
16250     ac_cpp_err=
16251   fi
16252 else
16253   ac_cpp_err=yes
16254 fi
16255 if test -z "$ac_cpp_err"; then
16256   # Broken: success on invalid input.
16257 continue
16258 else
16259   echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262   # Passes both tests.
16263 ac_preproc_ok=:
16264 break
16265 fi
16266 rm -f conftest.err conftest.$ac_ext
16267
16268 done
16269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16270 rm -f conftest.err conftest.$ac_ext
16271 if $ac_preproc_ok; then
16272   break
16273 fi
16274
16275     done
16276     ac_cv_prog_CXXCPP=$CXXCPP
16277
16278 fi
16279   CXXCPP=$ac_cv_prog_CXXCPP
16280 else
16281   ac_cv_prog_CXXCPP=$CXXCPP
16282 fi
16283 echo "$as_me:$LINENO: result: $CXXCPP" >&5
16284 echo "${ECHO_T}$CXXCPP" >&6
16285 ac_preproc_ok=false
16286 for ac_cxx_preproc_warn_flag in '' yes
16287 do
16288   # Use a header file that comes with gcc, so configuring glibc
16289   # with a fresh cross-compiler works.
16290   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16291   # <limits.h> exists even on freestanding compilers.
16292   # On the NeXT, cc -E runs the code through the compiler's parser,
16293   # not just through cpp. "Syntax error" is here to catch this case.
16294   cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300 #ifdef __STDC__
16301 # include <limits.h>
16302 #else
16303 # include <assert.h>
16304 #endif
16305                      Syntax error
16306 _ACEOF
16307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16309   ac_status=$?
16310   grep -v '^ *+' conftest.er1 >conftest.err
16311   rm -f conftest.er1
16312   cat conftest.err >&5
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); } >/dev/null; then
16315   if test -s conftest.err; then
16316     ac_cpp_err=$ac_cxx_preproc_warn_flag
16317     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16318   else
16319     ac_cpp_err=
16320   fi
16321 else
16322   ac_cpp_err=yes
16323 fi
16324 if test -z "$ac_cpp_err"; then
16325   :
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330   # Broken: fails on valid input.
16331 continue
16332 fi
16333 rm -f conftest.err conftest.$ac_ext
16334
16335   # OK, works on sane cases.  Now check whether non-existent headers
16336   # can be detected and how.
16337   cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h.  */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h.  */
16343 #include <ac_nonexistent.h>
16344 _ACEOF
16345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16347   ac_status=$?
16348   grep -v '^ *+' conftest.er1 >conftest.err
16349   rm -f conftest.er1
16350   cat conftest.err >&5
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); } >/dev/null; then
16353   if test -s conftest.err; then
16354     ac_cpp_err=$ac_cxx_preproc_warn_flag
16355     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16356   else
16357     ac_cpp_err=
16358   fi
16359 else
16360   ac_cpp_err=yes
16361 fi
16362 if test -z "$ac_cpp_err"; then
16363   # Broken: success on invalid input.
16364 continue
16365 else
16366   echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16368
16369   # Passes both tests.
16370 ac_preproc_ok=:
16371 break
16372 fi
16373 rm -f conftest.err conftest.$ac_ext
16374
16375 done
16376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16377 rm -f conftest.err conftest.$ac_ext
16378 if $ac_preproc_ok; then
16379   :
16380 else
16381   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16382 See \`config.log' for more details." >&5
16383 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16384 See \`config.log' for more details." >&2;}
16385    { (exit 1); exit 1; }; }
16386 fi
16387
16388 ac_ext=cc
16389 ac_cpp='$CXXCPP $CPPFLAGS'
16390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16393
16394
16395 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16396 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16397 if test "${ac_cv_header_stdc+set}" = set; then
16398   echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400   cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h.  */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h.  */
16406 #include <stdlib.h>
16407 #include <stdarg.h>
16408 #include <string.h>
16409 #include <float.h>
16410
16411 int
16412 main ()
16413 {
16414
16415   ;
16416   return 0;
16417 }
16418 _ACEOF
16419 rm -f conftest.$ac_objext
16420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16421   (eval $ac_compile) 2>conftest.er1
16422   ac_status=$?
16423   grep -v '^ *+' conftest.er1 >conftest.err
16424   rm -f conftest.er1
16425   cat conftest.err >&5
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); } &&
16428          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430   (eval $ac_try) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; } &&
16434          { ac_try='test -s conftest.$ac_objext'
16435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436   (eval $ac_try) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); }; }; then
16440   ac_cv_header_stdc=yes
16441 else
16442   echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 ac_cv_header_stdc=no
16446 fi
16447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16448
16449 if test $ac_cv_header_stdc = yes; then
16450   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16451   cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h.  */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h.  */
16457 #include <string.h>
16458
16459 _ACEOF
16460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16461   $EGREP "memchr" >/dev/null 2>&1; then
16462   :
16463 else
16464   ac_cv_header_stdc=no
16465 fi
16466 rm -f conftest*
16467
16468 fi
16469
16470 if test $ac_cv_header_stdc = yes; then
16471   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16472   cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h.  */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h.  */
16478 #include <stdlib.h>
16479
16480 _ACEOF
16481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16482   $EGREP "free" >/dev/null 2>&1; then
16483   :
16484 else
16485   ac_cv_header_stdc=no
16486 fi
16487 rm -f conftest*
16488
16489 fi
16490
16491 if test $ac_cv_header_stdc = yes; then
16492   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16493   if test "$cross_compiling" = yes; then
16494   :
16495 else
16496   cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h.  */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h.  */
16502 #include <ctype.h>
16503 #if ((' ' & 0x0FF) == 0x020)
16504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16506 #else
16507 # define ISLOWER(c) \
16508                    (('a' <= (c) && (c) <= 'i') \
16509                      || ('j' <= (c) && (c) <= 'r') \
16510                      || ('s' <= (c) && (c) <= 'z'))
16511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16512 #endif
16513
16514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16515 int
16516 main ()
16517 {
16518   int i;
16519   for (i = 0; i < 256; i++)
16520     if (XOR (islower (i), ISLOWER (i))
16521         || toupper (i) != TOUPPER (i))
16522       exit(2);
16523   exit (0);
16524 }
16525 _ACEOF
16526 rm -f conftest$ac_exeext
16527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16528   (eval $ac_link) 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533   (eval $ac_try) 2>&5
16534   ac_status=$?
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); }; }; then
16537   :
16538 else
16539   echo "$as_me: program exited with status $ac_status" >&5
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16542
16543 ( exit $ac_status )
16544 ac_cv_header_stdc=no
16545 fi
16546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16547 fi
16548 fi
16549 fi
16550 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16551 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16552 if test $ac_cv_header_stdc = yes; then
16553
16554 cat >>confdefs.h <<\_ACEOF
16555 #define STDC_HEADERS 1
16556 _ACEOF
16557
16558 fi
16559
16560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16571                   inttypes.h stdint.h unistd.h
16572 do
16573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16574 echo "$as_me:$LINENO: checking for $ac_header" >&5
16575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16577   echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579   cat >conftest.$ac_ext <<_ACEOF
16580 /* confdefs.h.  */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h.  */
16585 $ac_includes_default
16586
16587 #include <$ac_header>
16588 _ACEOF
16589 rm -f conftest.$ac_objext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591   (eval $ac_compile) 2>conftest.er1
16592   ac_status=$?
16593   grep -v '^ *+' conftest.er1 >conftest.err
16594   rm -f conftest.er1
16595   cat conftest.err >&5
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); } &&
16598          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600   (eval $ac_try) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); }; } &&
16604          { ac_try='test -s conftest.$ac_objext'
16605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606   (eval $ac_try) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   eval "$as_ac_Header=yes"
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 eval "$as_ac_Header=no"
16616 fi
16617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16618 fi
16619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16622   cat >>confdefs.h <<_ACEOF
16623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16624 _ACEOF
16625
16626 fi
16627
16628 done
16629
16630
16631
16632 for ac_header in stdlib.h
16633 do
16634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16636   echo "$as_me:$LINENO: checking for $ac_header" >&5
16637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 fi
16641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16643 else
16644   # Is the header compilable?
16645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16647 cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h.  */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h.  */
16653 $ac_includes_default
16654 #include <$ac_header>
16655 _ACEOF
16656 rm -f conftest.$ac_objext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16658   (eval $ac_compile) 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667   (eval $ac_try) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; } &&
16671          { ac_try='test -s conftest.$ac_objext'
16672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673   (eval $ac_try) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; }; then
16677   ac_header_compiler=yes
16678 else
16679   echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16681
16682 ac_header_compiler=no
16683 fi
16684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16686 echo "${ECHO_T}$ac_header_compiler" >&6
16687
16688 # Is the header present?
16689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697 #include <$ac_header>
16698 _ACEOF
16699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16701   ac_status=$?
16702   grep -v '^ *+' conftest.er1 >conftest.err
16703   rm -f conftest.er1
16704   cat conftest.err >&5
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); } >/dev/null; then
16707   if test -s conftest.err; then
16708     ac_cpp_err=$ac_cxx_preproc_warn_flag
16709     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16710   else
16711     ac_cpp_err=
16712   fi
16713 else
16714   ac_cpp_err=yes
16715 fi
16716 if test -z "$ac_cpp_err"; then
16717   ac_header_preproc=yes
16718 else
16719   echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16721
16722   ac_header_preproc=no
16723 fi
16724 rm -f conftest.err conftest.$ac_ext
16725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16726 echo "${ECHO_T}$ac_header_preproc" >&6
16727
16728 # So?  What about this header?
16729 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16730   yes:no: )
16731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16735     ac_header_preproc=yes
16736     ;;
16737   no:yes:* )
16738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16750     (
16751       cat <<\_ASBOX
16752 ## ----------------------------------------- ##
16753 ## Report this to wx-dev@lists.wxwidgets.org ##
16754 ## ----------------------------------------- ##
16755 _ASBOX
16756     ) |
16757       sed "s/^/$as_me: WARNING:     /" >&2
16758     ;;
16759 esac
16760 echo "$as_me:$LINENO: checking for $ac_header" >&5
16761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16763   echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765   eval "$as_ac_Header=\$ac_header_preproc"
16766 fi
16767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16769
16770 fi
16771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16772   cat >>confdefs.h <<_ACEOF
16773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16774 _ACEOF
16775
16776 fi
16777
16778 done
16779
16780
16781 for ac_header in malloc.h
16782 do
16783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16785   echo "$as_me:$LINENO: checking for $ac_header" >&5
16786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16788   echo $ECHO_N "(cached) $ECHO_C" >&6
16789 fi
16790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16792 else
16793   # Is the header compilable?
16794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16796 cat >conftest.$ac_ext <<_ACEOF
16797 /* confdefs.h.  */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h.  */
16802 $ac_includes_default
16803 #include <$ac_header>
16804 _ACEOF
16805 rm -f conftest.$ac_objext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16807   (eval $ac_compile) 2>conftest.er1
16808   ac_status=$?
16809   grep -v '^ *+' conftest.er1 >conftest.err
16810   rm -f conftest.er1
16811   cat conftest.err >&5
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); } &&
16814          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816   (eval $ac_try) 2>&5
16817   ac_status=$?
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); }; } &&
16820          { ac_try='test -s conftest.$ac_objext'
16821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822   (eval $ac_try) 2>&5
16823   ac_status=$?
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); }; }; then
16826   ac_header_compiler=yes
16827 else
16828   echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16830
16831 ac_header_compiler=no
16832 fi
16833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16835 echo "${ECHO_T}$ac_header_compiler" >&6
16836
16837 # Is the header present?
16838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16840 cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h.  */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h.  */
16846 #include <$ac_header>
16847 _ACEOF
16848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16850   ac_status=$?
16851   grep -v '^ *+' conftest.er1 >conftest.err
16852   rm -f conftest.er1
16853   cat conftest.err >&5
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } >/dev/null; then
16856   if test -s conftest.err; then
16857     ac_cpp_err=$ac_cxx_preproc_warn_flag
16858     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16859   else
16860     ac_cpp_err=
16861   fi
16862 else
16863   ac_cpp_err=yes
16864 fi
16865 if test -z "$ac_cpp_err"; then
16866   ac_header_preproc=yes
16867 else
16868   echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16870
16871   ac_header_preproc=no
16872 fi
16873 rm -f conftest.err conftest.$ac_ext
16874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16875 echo "${ECHO_T}$ac_header_preproc" >&6
16876
16877 # So?  What about this header?
16878 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16879   yes:no: )
16880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16884     ac_header_preproc=yes
16885     ;;
16886   no:yes:* )
16887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16899     (
16900       cat <<\_ASBOX
16901 ## ----------------------------------------- ##
16902 ## Report this to wx-dev@lists.wxwidgets.org ##
16903 ## ----------------------------------------- ##
16904 _ASBOX
16905     ) |
16906       sed "s/^/$as_me: WARNING:     /" >&2
16907     ;;
16908 esac
16909 echo "$as_me:$LINENO: checking for $ac_header" >&5
16910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16912   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914   eval "$as_ac_Header=\$ac_header_preproc"
16915 fi
16916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16918
16919 fi
16920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16921   cat >>confdefs.h <<_ACEOF
16922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16923 _ACEOF
16924
16925 fi
16926
16927 done
16928
16929
16930 for ac_header in unistd.h
16931 do
16932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16934   echo "$as_me:$LINENO: checking for $ac_header" >&5
16935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16937   echo $ECHO_N "(cached) $ECHO_C" >&6
16938 fi
16939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16941 else
16942   # Is the header compilable?
16943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16945 cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h.  */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h.  */
16951 $ac_includes_default
16952 #include <$ac_header>
16953 _ACEOF
16954 rm -f conftest.$ac_objext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956   (eval $ac_compile) 2>conftest.er1
16957   ac_status=$?
16958   grep -v '^ *+' conftest.er1 >conftest.err
16959   rm -f conftest.er1
16960   cat conftest.err >&5
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } &&
16963          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965   (eval $ac_try) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }; } &&
16969          { ac_try='test -s conftest.$ac_objext'
16970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971   (eval $ac_try) 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; }; then
16975   ac_header_compiler=yes
16976 else
16977   echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16979
16980 ac_header_compiler=no
16981 fi
16982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16984 echo "${ECHO_T}$ac_header_compiler" >&6
16985
16986 # Is the header present?
16987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h.  */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h.  */
16995 #include <$ac_header>
16996 _ACEOF
16997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16999   ac_status=$?
17000   grep -v '^ *+' conftest.er1 >conftest.err
17001   rm -f conftest.er1
17002   cat conftest.err >&5
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); } >/dev/null; then
17005   if test -s conftest.err; then
17006     ac_cpp_err=$ac_cxx_preproc_warn_flag
17007     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17008   else
17009     ac_cpp_err=
17010   fi
17011 else
17012   ac_cpp_err=yes
17013 fi
17014 if test -z "$ac_cpp_err"; then
17015   ac_header_preproc=yes
17016 else
17017   echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17019
17020   ac_header_preproc=no
17021 fi
17022 rm -f conftest.err conftest.$ac_ext
17023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17024 echo "${ECHO_T}$ac_header_preproc" >&6
17025
17026 # So?  What about this header?
17027 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17028   yes:no: )
17029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17033     ac_header_preproc=yes
17034     ;;
17035   no:yes:* )
17036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17048     (
17049       cat <<\_ASBOX
17050 ## ----------------------------------------- ##
17051 ## Report this to wx-dev@lists.wxwidgets.org ##
17052 ## ----------------------------------------- ##
17053 _ASBOX
17054     ) |
17055       sed "s/^/$as_me: WARNING:     /" >&2
17056     ;;
17057 esac
17058 echo "$as_me:$LINENO: checking for $ac_header" >&5
17059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17061   echo $ECHO_N "(cached) $ECHO_C" >&6
17062 else
17063   eval "$as_ac_Header=\$ac_header_preproc"
17064 fi
17065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17067
17068 fi
17069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17070   cat >>confdefs.h <<_ACEOF
17071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17072 _ACEOF
17073
17074 fi
17075
17076 done
17077
17078
17079 for ac_header in wchar.h
17080 do
17081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17083   echo "$as_me:$LINENO: checking for $ac_header" >&5
17084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 fi
17088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17090 else
17091   # Is the header compilable?
17092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h.  */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h.  */
17100 $ac_includes_default
17101 #include <$ac_header>
17102 _ACEOF
17103 rm -f conftest.$ac_objext
17104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17105   (eval $ac_compile) 2>conftest.er1
17106   ac_status=$?
17107   grep -v '^ *+' conftest.er1 >conftest.err
17108   rm -f conftest.er1
17109   cat conftest.err >&5
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); } &&
17112          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114   (eval $ac_try) 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); }; } &&
17118          { ac_try='test -s conftest.$ac_objext'
17119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120   (eval $ac_try) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; }; then
17124   ac_header_compiler=yes
17125 else
17126   echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17128
17129 ac_header_compiler=no
17130 fi
17131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17133 echo "${ECHO_T}$ac_header_compiler" >&6
17134
17135 # Is the header present?
17136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17138 cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h.  */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h.  */
17144 #include <$ac_header>
17145 _ACEOF
17146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17148   ac_status=$?
17149   grep -v '^ *+' conftest.er1 >conftest.err
17150   rm -f conftest.er1
17151   cat conftest.err >&5
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); } >/dev/null; then
17154   if test -s conftest.err; then
17155     ac_cpp_err=$ac_cxx_preproc_warn_flag
17156     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17157   else
17158     ac_cpp_err=
17159   fi
17160 else
17161   ac_cpp_err=yes
17162 fi
17163 if test -z "$ac_cpp_err"; then
17164   ac_header_preproc=yes
17165 else
17166   echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17168
17169   ac_header_preproc=no
17170 fi
17171 rm -f conftest.err conftest.$ac_ext
17172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17173 echo "${ECHO_T}$ac_header_preproc" >&6
17174
17175 # So?  What about this header?
17176 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17177   yes:no: )
17178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17182     ac_header_preproc=yes
17183     ;;
17184   no:yes:* )
17185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17197     (
17198       cat <<\_ASBOX
17199 ## ----------------------------------------- ##
17200 ## Report this to wx-dev@lists.wxwidgets.org ##
17201 ## ----------------------------------------- ##
17202 _ASBOX
17203     ) |
17204       sed "s/^/$as_me: WARNING:     /" >&2
17205     ;;
17206 esac
17207 echo "$as_me:$LINENO: checking for $ac_header" >&5
17208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17210   echo $ECHO_N "(cached) $ECHO_C" >&6
17211 else
17212   eval "$as_ac_Header=\$ac_header_preproc"
17213 fi
17214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17216
17217 fi
17218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17219   cat >>confdefs.h <<_ACEOF
17220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17221 _ACEOF
17222
17223 fi
17224
17225 done
17226
17227
17228 if test "$ac_cv_header_wchar_h" != "yes"; then
17229
17230 for ac_header in wcstr.h
17231 do
17232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17234   echo "$as_me:$LINENO: checking for $ac_header" >&5
17235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17237   echo $ECHO_N "(cached) $ECHO_C" >&6
17238 fi
17239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17241 else
17242   # Is the header compilable?
17243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17245 cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h.  */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h.  */
17251 $ac_includes_default
17252 #include <$ac_header>
17253 _ACEOF
17254 rm -f conftest.$ac_objext
17255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17256   (eval $ac_compile) 2>conftest.er1
17257   ac_status=$?
17258   grep -v '^ *+' conftest.er1 >conftest.err
17259   rm -f conftest.er1
17260   cat conftest.err >&5
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); } &&
17263          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265   (eval $ac_try) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; } &&
17269          { ac_try='test -s conftest.$ac_objext'
17270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271   (eval $ac_try) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; }; then
17275   ac_header_compiler=yes
17276 else
17277   echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280 ac_header_compiler=no
17281 fi
17282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17284 echo "${ECHO_T}$ac_header_compiler" >&6
17285
17286 # Is the header present?
17287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h.  */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h.  */
17295 #include <$ac_header>
17296 _ACEOF
17297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17299   ac_status=$?
17300   grep -v '^ *+' conftest.er1 >conftest.err
17301   rm -f conftest.er1
17302   cat conftest.err >&5
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } >/dev/null; then
17305   if test -s conftest.err; then
17306     ac_cpp_err=$ac_cxx_preproc_warn_flag
17307     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17308   else
17309     ac_cpp_err=
17310   fi
17311 else
17312   ac_cpp_err=yes
17313 fi
17314 if test -z "$ac_cpp_err"; then
17315   ac_header_preproc=yes
17316 else
17317   echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320   ac_header_preproc=no
17321 fi
17322 rm -f conftest.err conftest.$ac_ext
17323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17324 echo "${ECHO_T}$ac_header_preproc" >&6
17325
17326 # So?  What about this header?
17327 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17328   yes:no: )
17329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17333     ac_header_preproc=yes
17334     ;;
17335   no:yes:* )
17336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17338     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17339 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17340     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17342     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17343 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17346     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17348     (
17349       cat <<\_ASBOX
17350 ## ----------------------------------------- ##
17351 ## Report this to wx-dev@lists.wxwidgets.org ##
17352 ## ----------------------------------------- ##
17353 _ASBOX
17354     ) |
17355       sed "s/^/$as_me: WARNING:     /" >&2
17356     ;;
17357 esac
17358 echo "$as_me:$LINENO: checking for $ac_header" >&5
17359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17361   echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363   eval "$as_ac_Header=\$ac_header_preproc"
17364 fi
17365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17367
17368 fi
17369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17370   cat >>confdefs.h <<_ACEOF
17371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17372 _ACEOF
17373
17374 fi
17375
17376 done
17377
17378 fi
17379
17380
17381 for ac_header in fnmatch.h
17382 do
17383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17385   echo "$as_me:$LINENO: checking for $ac_header" >&5
17386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17388   echo $ECHO_N "(cached) $ECHO_C" >&6
17389 fi
17390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17392 else
17393   # Is the header compilable?
17394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17396 cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h.  */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h.  */
17402 $ac_includes_default
17403 #include <$ac_header>
17404 _ACEOF
17405 rm -f conftest.$ac_objext
17406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17407   (eval $ac_compile) 2>conftest.er1
17408   ac_status=$?
17409   grep -v '^ *+' conftest.er1 >conftest.err
17410   rm -f conftest.er1
17411   cat conftest.err >&5
17412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); } &&
17414          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416   (eval $ac_try) 2>&5
17417   ac_status=$?
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); }; } &&
17420          { ac_try='test -s conftest.$ac_objext'
17421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422   (eval $ac_try) 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); }; }; then
17426   ac_header_compiler=yes
17427 else
17428   echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431 ac_header_compiler=no
17432 fi
17433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17435 echo "${ECHO_T}$ac_header_compiler" >&6
17436
17437 # Is the header present?
17438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17440 cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h.  */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h.  */
17446 #include <$ac_header>
17447 _ACEOF
17448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17449   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
17456   if test -s conftest.err; then
17457     ac_cpp_err=$ac_cxx_preproc_warn_flag
17458     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17459   else
17460     ac_cpp_err=
17461   fi
17462 else
17463   ac_cpp_err=yes
17464 fi
17465 if test -z "$ac_cpp_err"; then
17466   ac_header_preproc=yes
17467 else
17468   echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471   ac_header_preproc=no
17472 fi
17473 rm -f conftest.err conftest.$ac_ext
17474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17475 echo "${ECHO_T}$ac_header_preproc" >&6
17476
17477 # So?  What about this header?
17478 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17479   yes:no: )
17480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17484     ac_header_preproc=yes
17485     ;;
17486   no:yes:* )
17487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17499     (
17500       cat <<\_ASBOX
17501 ## ----------------------------------------- ##
17502 ## Report this to wx-dev@lists.wxwidgets.org ##
17503 ## ----------------------------------------- ##
17504 _ASBOX
17505     ) |
17506       sed "s/^/$as_me: WARNING:     /" >&2
17507     ;;
17508 esac
17509 echo "$as_me:$LINENO: checking for $ac_header" >&5
17510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17512   echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514   eval "$as_ac_Header=\$ac_header_preproc"
17515 fi
17516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17518
17519 fi
17520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17521   cat >>confdefs.h <<_ACEOF
17522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17523 _ACEOF
17524
17525 fi
17526
17527 done
17528
17529
17530
17531 for ac_header in langinfo.h
17532 do
17533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17535   echo "$as_me:$LINENO: checking for $ac_header" >&5
17536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 fi
17540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17542 else
17543   # Is the header compilable?
17544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17546 cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h.  */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h.  */
17552 $ac_includes_default
17553 #include <$ac_header>
17554 _ACEOF
17555 rm -f conftest.$ac_objext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17557   (eval $ac_compile) 2>conftest.er1
17558   ac_status=$?
17559   grep -v '^ *+' conftest.er1 >conftest.err
17560   rm -f conftest.er1
17561   cat conftest.err >&5
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } &&
17564          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest.$ac_objext'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; }; then
17576   ac_header_compiler=yes
17577 else
17578   echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 ac_header_compiler=no
17582 fi
17583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17585 echo "${ECHO_T}$ac_header_compiler" >&6
17586
17587 # Is the header present?
17588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17590 cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h.  */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h.  */
17596 #include <$ac_header>
17597 _ACEOF
17598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17600   ac_status=$?
17601   grep -v '^ *+' conftest.er1 >conftest.err
17602   rm -f conftest.er1
17603   cat conftest.err >&5
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } >/dev/null; then
17606   if test -s conftest.err; then
17607     ac_cpp_err=$ac_cxx_preproc_warn_flag
17608     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17609   else
17610     ac_cpp_err=
17611   fi
17612 else
17613   ac_cpp_err=yes
17614 fi
17615 if test -z "$ac_cpp_err"; then
17616   ac_header_preproc=yes
17617 else
17618   echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621   ac_header_preproc=no
17622 fi
17623 rm -f conftest.err conftest.$ac_ext
17624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17625 echo "${ECHO_T}$ac_header_preproc" >&6
17626
17627 # So?  What about this header?
17628 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17629   yes:no: )
17630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17634     ac_header_preproc=yes
17635     ;;
17636   no:yes:* )
17637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17649     (
17650       cat <<\_ASBOX
17651 ## ----------------------------------------- ##
17652 ## Report this to wx-dev@lists.wxwidgets.org ##
17653 ## ----------------------------------------- ##
17654 _ASBOX
17655     ) |
17656       sed "s/^/$as_me: WARNING:     /" >&2
17657     ;;
17658 esac
17659 echo "$as_me:$LINENO: checking for $ac_header" >&5
17660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17662   echo $ECHO_N "(cached) $ECHO_C" >&6
17663 else
17664   eval "$as_ac_Header=\$ac_header_preproc"
17665 fi
17666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17668
17669 fi
17670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17671   cat >>confdefs.h <<_ACEOF
17672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17673 _ACEOF
17674
17675 fi
17676
17677 done
17678
17679
17680 case "${host}" in
17681   *-pc-os2_emx | *-pc-os2-emx )
17682                   if test $ac_cv_header_langinfo_h = "yes" \
17683                 -a \(   "$wx_cv_gccversion" = "EMX2" \
17684                      -o "$wx_cv_gccversion" = "EMX3" \
17685                      -o "$wx_cv_gccversion" = "Innotek5" \); then
17686           LIBS="$LIBS -lintl"
17687       fi
17688   ;;
17689 esac
17690
17691 if test "$USE_UNIX" = 1 ; then
17692
17693 for ac_header in sys/select.h
17694 do
17695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17697   echo "$as_me:$LINENO: checking for $ac_header" >&5
17698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17700   echo $ECHO_N "(cached) $ECHO_C" >&6
17701 fi
17702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17704 else
17705   # Is the header compilable?
17706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h.  */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h.  */
17714 $ac_includes_default
17715 #include <$ac_header>
17716 _ACEOF
17717 rm -f conftest.$ac_objext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17719   (eval $ac_compile) 2>conftest.er1
17720   ac_status=$?
17721   grep -v '^ *+' conftest.er1 >conftest.err
17722   rm -f conftest.er1
17723   cat conftest.err >&5
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); } &&
17726          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728   (eval $ac_try) 2>&5
17729   ac_status=$?
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); }; } &&
17732          { ac_try='test -s conftest.$ac_objext'
17733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734   (eval $ac_try) 2>&5
17735   ac_status=$?
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); }; }; then
17738   ac_header_compiler=yes
17739 else
17740   echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17742
17743 ac_header_compiler=no
17744 fi
17745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17747 echo "${ECHO_T}$ac_header_compiler" >&6
17748
17749 # Is the header present?
17750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17751 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
17759 _ACEOF
17760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } >/dev/null; then
17768   if test -s conftest.err; then
17769     ac_cpp_err=$ac_cxx_preproc_warn_flag
17770     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17771   else
17772     ac_cpp_err=
17773   fi
17774 else
17775   ac_cpp_err=yes
17776 fi
17777 if test -z "$ac_cpp_err"; then
17778   ac_header_preproc=yes
17779 else
17780   echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17782
17783   ac_header_preproc=no
17784 fi
17785 rm -f conftest.err conftest.$ac_ext
17786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17787 echo "${ECHO_T}$ac_header_preproc" >&6
17788
17789 # So?  What about this header?
17790 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17791   yes:no: )
17792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17796     ac_header_preproc=yes
17797     ;;
17798   no:yes:* )
17799     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17801     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17802 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17803     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17805     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17806 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17809     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17811     (
17812       cat <<\_ASBOX
17813 ## ----------------------------------------- ##
17814 ## Report this to wx-dev@lists.wxwidgets.org ##
17815 ## ----------------------------------------- ##
17816 _ASBOX
17817     ) |
17818       sed "s/^/$as_me: WARNING:     /" >&2
17819     ;;
17820 esac
17821 echo "$as_me:$LINENO: checking for $ac_header" >&5
17822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17824   echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826   eval "$as_ac_Header=\$ac_header_preproc"
17827 fi
17828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17830
17831 fi
17832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17833   cat >>confdefs.h <<_ACEOF
17834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17835 _ACEOF
17836
17837 fi
17838
17839 done
17840
17841 fi
17842
17843
17844 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17845 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17846 if test "${ac_cv_c_const+set}" = set; then
17847   echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849   cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855
17856 int
17857 main ()
17858 {
17859 /* FIXME: Include the comments suggested by Paul. */
17860 #ifndef __cplusplus
17861   /* Ultrix mips cc rejects this.  */
17862   typedef int charset[2];
17863   const charset x;
17864   /* SunOS 4.1.1 cc rejects this.  */
17865   char const *const *ccp;
17866   char **p;
17867   /* NEC SVR4.0.2 mips cc rejects this.  */
17868   struct point {int x, y;};
17869   static struct point const zero = {0,0};
17870   /* AIX XL C 1.02.0.0 rejects this.
17871      It does not let you subtract one const X* pointer from another in
17872      an arm of an if-expression whose if-part is not a constant
17873      expression */
17874   const char *g = "string";
17875   ccp = &g + (g ? g-g : 0);
17876   /* HPUX 7.0 cc rejects these. */
17877   ++ccp;
17878   p = (char**) ccp;
17879   ccp = (char const *const *) p;
17880   { /* SCO 3.2v4 cc rejects this.  */
17881     char *t;
17882     char const *s = 0 ? (char *) 0 : (char const *) 0;
17883
17884     *t++ = 0;
17885   }
17886   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17887     int x[] = {25, 17};
17888     const int *foo = &x[0];
17889     ++foo;
17890   }
17891   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17892     typedef const int *iptr;
17893     iptr p = 0;
17894     ++p;
17895   }
17896   { /* AIX XL C 1.02.0.0 rejects this saying
17897        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17898     struct s { int j; const int *ap[3]; };
17899     struct s *b; b->j = 5;
17900   }
17901   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17902     const int foo = 10;
17903   }
17904 #endif
17905
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17912   (eval $ac_compile) 2>conftest.er1
17913   ac_status=$?
17914   grep -v '^ *+' conftest.er1 >conftest.err
17915   rm -f conftest.er1
17916   cat conftest.err >&5
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); } &&
17919          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921   (eval $ac_try) 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; } &&
17925          { ac_try='test -s conftest.$ac_objext'
17926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927   (eval $ac_try) 2>&5
17928   ac_status=$?
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); }; }; then
17931   ac_cv_c_const=yes
17932 else
17933   echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17935
17936 ac_cv_c_const=no
17937 fi
17938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17939 fi
17940 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17941 echo "${ECHO_T}$ac_cv_c_const" >&6
17942 if test $ac_cv_c_const = no; then
17943
17944 cat >>confdefs.h <<\_ACEOF
17945 #define const
17946 _ACEOF
17947
17948 fi
17949
17950 echo "$as_me:$LINENO: checking for inline" >&5
17951 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17952 if test "${ac_cv_c_inline+set}" = set; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955   ac_cv_c_inline=no
17956 for ac_kw in inline __inline__ __inline; do
17957   cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h.  */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h.  */
17963 #ifndef __cplusplus
17964 typedef int foo_t;
17965 static $ac_kw foo_t static_foo () {return 0; }
17966 $ac_kw foo_t foo () {return 0; }
17967 #endif
17968
17969 _ACEOF
17970 rm -f conftest.$ac_objext
17971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17972   (eval $ac_compile) 2>conftest.er1
17973   ac_status=$?
17974   grep -v '^ *+' conftest.er1 >conftest.err
17975   rm -f conftest.er1
17976   cat conftest.err >&5
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); } &&
17979          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; } &&
17985          { ac_try='test -s conftest.$ac_objext'
17986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987   (eval $ac_try) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; }; then
17991   ac_cv_c_inline=$ac_kw; break
17992 else
17993   echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996 fi
17997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17998 done
17999
18000 fi
18001 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18002 echo "${ECHO_T}$ac_cv_c_inline" >&6
18003
18004
18005 case $ac_cv_c_inline in
18006   inline | yes) ;;
18007   *)
18008     case $ac_cv_c_inline in
18009       no) ac_val=;;
18010       *) ac_val=$ac_cv_c_inline;;
18011     esac
18012     cat >>confdefs.h <<_ACEOF
18013 #ifndef __cplusplus
18014 #define inline $ac_val
18015 #endif
18016 _ACEOF
18017     ;;
18018 esac
18019
18020
18021 echo "$as_me:$LINENO: checking for char" >&5
18022 echo $ECHO_N "checking for char... $ECHO_C" >&6
18023 if test "${ac_cv_type_char+set}" = set; then
18024   echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026   cat >conftest.$ac_ext <<_ACEOF
18027 /* confdefs.h.  */
18028 _ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h.  */
18032 $ac_includes_default
18033 int
18034 main ()
18035 {
18036 if ((char *) 0)
18037   return 0;
18038 if (sizeof (char))
18039   return 0;
18040   ;
18041   return 0;
18042 }
18043 _ACEOF
18044 rm -f conftest.$ac_objext
18045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18046   (eval $ac_compile) 2>conftest.er1
18047   ac_status=$?
18048   grep -v '^ *+' conftest.er1 >conftest.err
18049   rm -f conftest.er1
18050   cat conftest.err >&5
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); } &&
18053          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055   (eval $ac_try) 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); }; } &&
18059          { ac_try='test -s conftest.$ac_objext'
18060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061   (eval $ac_try) 2>&5
18062   ac_status=$?
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); }; }; then
18065   ac_cv_type_char=yes
18066 else
18067   echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 ac_cv_type_char=no
18071 fi
18072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18073 fi
18074 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18075 echo "${ECHO_T}$ac_cv_type_char" >&6
18076
18077 echo "$as_me:$LINENO: checking size of char" >&5
18078 echo $ECHO_N "checking size of char... $ECHO_C" >&6
18079 if test "${ac_cv_sizeof_char+set}" = set; then
18080   echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082   if test "$ac_cv_type_char" = yes; then
18083   # The cast to unsigned long works around a bug in the HP C Compiler
18084   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18085   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18086   # This bug is HP SR number 8606223364.
18087   if test "$cross_compiling" = yes; then
18088   # Depending upon the size, compute the lo and hi bounds.
18089 cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h.  */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h.  */
18095 $ac_includes_default
18096 int
18097 main ()
18098 {
18099 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18100 test_array [0] = 0
18101
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 rm -f conftest.$ac_objext
18107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18108   (eval $ac_compile) 2>conftest.er1
18109   ac_status=$?
18110   grep -v '^ *+' conftest.er1 >conftest.err
18111   rm -f conftest.er1
18112   cat conftest.err >&5
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); } &&
18115          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; } &&
18121          { ac_try='test -s conftest.$ac_objext'
18122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123   (eval $ac_try) 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; }; then
18127   ac_lo=0 ac_mid=0
18128   while :; do
18129     cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135 $ac_includes_default
18136 int
18137 main ()
18138 {
18139 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18140 test_array [0] = 0
18141
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18148   (eval $ac_compile) 2>conftest.er1
18149   ac_status=$?
18150   grep -v '^ *+' conftest.er1 >conftest.err
18151   rm -f conftest.er1
18152   cat conftest.err >&5
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); } &&
18155          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157   (eval $ac_try) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; } &&
18161          { ac_try='test -s conftest.$ac_objext'
18162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163   (eval $ac_try) 2>&5
18164   ac_status=$?
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); }; }; then
18167   ac_hi=$ac_mid; break
18168 else
18169   echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18171
18172 ac_lo=`expr $ac_mid + 1`
18173                     if test $ac_lo -le $ac_mid; then
18174                       ac_lo= ac_hi=
18175                       break
18176                     fi
18177                     ac_mid=`expr 2 '*' $ac_mid + 1`
18178 fi
18179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18180   done
18181 else
18182   echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h.  */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h.  */
18191 $ac_includes_default
18192 int
18193 main ()
18194 {
18195 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18196 test_array [0] = 0
18197
18198   ;
18199   return 0;
18200 }
18201 _ACEOF
18202 rm -f conftest.$ac_objext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18204   (eval $ac_compile) 2>conftest.er1
18205   ac_status=$?
18206   grep -v '^ *+' conftest.er1 >conftest.err
18207   rm -f conftest.er1
18208   cat conftest.err >&5
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } &&
18211          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
18217          { ac_try='test -s conftest.$ac_objext'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; }; then
18223   ac_hi=-1 ac_mid=-1
18224   while :; do
18225     cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h.  */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h.  */
18231 $ac_includes_default
18232 int
18233 main ()
18234 {
18235 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18236 test_array [0] = 0
18237
18238   ;
18239   return 0;
18240 }
18241 _ACEOF
18242 rm -f conftest.$ac_objext
18243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18244   (eval $ac_compile) 2>conftest.er1
18245   ac_status=$?
18246   grep -v '^ *+' conftest.er1 >conftest.err
18247   rm -f conftest.er1
18248   cat conftest.err >&5
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); } &&
18251          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253   (eval $ac_try) 2>&5
18254   ac_status=$?
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); }; } &&
18257          { ac_try='test -s conftest.$ac_objext'
18258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259   (eval $ac_try) 2>&5
18260   ac_status=$?
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); }; }; then
18263   ac_lo=$ac_mid; break
18264 else
18265   echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18267
18268 ac_hi=`expr '(' $ac_mid ')' - 1`
18269                        if test $ac_mid -le $ac_hi; then
18270                          ac_lo= ac_hi=
18271                          break
18272                        fi
18273                        ac_mid=`expr 2 '*' $ac_mid`
18274 fi
18275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18276   done
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281 ac_lo= ac_hi=
18282 fi
18283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18284 fi
18285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18286 # Binary search between lo and hi bounds.
18287 while test "x$ac_lo" != "x$ac_hi"; do
18288   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18289   cat >conftest.$ac_ext <<_ACEOF
18290 /* confdefs.h.  */
18291 _ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h.  */
18295 $ac_includes_default
18296 int
18297 main ()
18298 {
18299 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18300 test_array [0] = 0
18301
18302   ;
18303   return 0;
18304 }
18305 _ACEOF
18306 rm -f conftest.$ac_objext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18308   (eval $ac_compile) 2>conftest.er1
18309   ac_status=$?
18310   grep -v '^ *+' conftest.er1 >conftest.err
18311   rm -f conftest.er1
18312   cat conftest.err >&5
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); } &&
18315          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317   (eval $ac_try) 2>&5
18318   ac_status=$?
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); }; } &&
18321          { ac_try='test -s conftest.$ac_objext'
18322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323   (eval $ac_try) 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); }; }; then
18327   ac_hi=$ac_mid
18328 else
18329   echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18331
18332 ac_lo=`expr '(' $ac_mid ')' + 1`
18333 fi
18334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18335 done
18336 case $ac_lo in
18337 ?*) ac_cv_sizeof_char=$ac_lo;;
18338 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18339 See \`config.log' for more details." >&5
18340 echo "$as_me: error: cannot compute sizeof (char), 77
18341 See \`config.log' for more details." >&2;}
18342    { (exit 1); exit 1; }; } ;;
18343 esac
18344 else
18345   if test "$cross_compiling" = yes; then
18346   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18347 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18348    { (exit 1); exit 1; }; }
18349 else
18350   cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356 $ac_includes_default
18357 long longval () { return (long) (sizeof (char)); }
18358 unsigned long ulongval () { return (long) (sizeof (char)); }
18359 #include <stdio.h>
18360 #include <stdlib.h>
18361 int
18362 main ()
18363 {
18364
18365   FILE *f = fopen ("conftest.val", "w");
18366   if (! f)
18367     exit (1);
18368   if (((long) (sizeof (char))) < 0)
18369     {
18370       long i = longval ();
18371       if (i != ((long) (sizeof (char))))
18372         exit (1);
18373       fprintf (f, "%ld\n", i);
18374     }
18375   else
18376     {
18377       unsigned long i = ulongval ();
18378       if (i != ((long) (sizeof (char))))
18379         exit (1);
18380       fprintf (f, "%lu\n", i);
18381     }
18382   exit (ferror (f) || fclose (f) != 0);
18383
18384   ;
18385   return 0;
18386 }
18387 _ACEOF
18388 rm -f conftest$ac_exeext
18389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18390   (eval $ac_link) 2>&5
18391   ac_status=$?
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395   (eval $ac_try) 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); }; }; then
18399   ac_cv_sizeof_char=`cat conftest.val`
18400 else
18401   echo "$as_me: program exited with status $ac_status" >&5
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18404
18405 ( exit $ac_status )
18406 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18407 See \`config.log' for more details." >&5
18408 echo "$as_me: error: cannot compute sizeof (char), 77
18409 See \`config.log' for more details." >&2;}
18410    { (exit 1); exit 1; }; }
18411 fi
18412 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18413 fi
18414 fi
18415 rm -f conftest.val
18416 else
18417   ac_cv_sizeof_char=0
18418 fi
18419 fi
18420 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18421 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18422 cat >>confdefs.h <<_ACEOF
18423 #define SIZEOF_CHAR $ac_cv_sizeof_char
18424 _ACEOF
18425
18426
18427 echo "$as_me:$LINENO: checking for short" >&5
18428 echo $ECHO_N "checking for short... $ECHO_C" >&6
18429 if test "${ac_cv_type_short+set}" = set; then
18430   echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432   cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h.  */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h.  */
18438 $ac_includes_default
18439 int
18440 main ()
18441 {
18442 if ((short *) 0)
18443   return 0;
18444 if (sizeof (short))
18445   return 0;
18446   ;
18447   return 0;
18448 }
18449 _ACEOF
18450 rm -f conftest.$ac_objext
18451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18452   (eval $ac_compile) 2>conftest.er1
18453   ac_status=$?
18454   grep -v '^ *+' conftest.er1 >conftest.err
18455   rm -f conftest.er1
18456   cat conftest.err >&5
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); } &&
18459          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461   (eval $ac_try) 2>&5
18462   ac_status=$?
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); }; } &&
18465          { ac_try='test -s conftest.$ac_objext'
18466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467   (eval $ac_try) 2>&5
18468   ac_status=$?
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); }; }; then
18471   ac_cv_type_short=yes
18472 else
18473   echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18475
18476 ac_cv_type_short=no
18477 fi
18478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18479 fi
18480 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18481 echo "${ECHO_T}$ac_cv_type_short" >&6
18482
18483 echo "$as_me:$LINENO: checking size of short" >&5
18484 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18485 if test "${ac_cv_sizeof_short+set}" = set; then
18486   echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488   if test "$ac_cv_type_short" = yes; then
18489   # The cast to unsigned long works around a bug in the HP C Compiler
18490   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18491   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18492   # This bug is HP SR number 8606223364.
18493   if test "$cross_compiling" = yes; then
18494   # Depending upon the size, compute the lo and hi bounds.
18495 cat >conftest.$ac_ext <<_ACEOF
18496 /* confdefs.h.  */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h.  */
18501 $ac_includes_default
18502 int
18503 main ()
18504 {
18505 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18506 test_array [0] = 0
18507
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext
18513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18514   (eval $ac_compile) 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } &&
18521          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
18527          { ac_try='test -s conftest.$ac_objext'
18528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529   (eval $ac_try) 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; }; then
18533   ac_lo=0 ac_mid=0
18534   while :; do
18535     cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h.  */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h.  */
18541 $ac_includes_default
18542 int
18543 main ()
18544 {
18545 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18546 test_array [0] = 0
18547
18548   ;
18549   return 0;
18550 }
18551 _ACEOF
18552 rm -f conftest.$ac_objext
18553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18554   (eval $ac_compile) 2>conftest.er1
18555   ac_status=$?
18556   grep -v '^ *+' conftest.er1 >conftest.err
18557   rm -f conftest.er1
18558   cat conftest.err >&5
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); } &&
18561          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563   (eval $ac_try) 2>&5
18564   ac_status=$?
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); }; } &&
18567          { ac_try='test -s conftest.$ac_objext'
18568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569   (eval $ac_try) 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; }; then
18573   ac_hi=$ac_mid; break
18574 else
18575   echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578 ac_lo=`expr $ac_mid + 1`
18579                     if test $ac_lo -le $ac_mid; then
18580                       ac_lo= ac_hi=
18581                       break
18582                     fi
18583                     ac_mid=`expr 2 '*' $ac_mid + 1`
18584 fi
18585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18586   done
18587 else
18588   echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591 cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597 $ac_includes_default
18598 int
18599 main ()
18600 {
18601 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18602 test_array [0] = 0
18603
18604   ;
18605   return 0;
18606 }
18607 _ACEOF
18608 rm -f conftest.$ac_objext
18609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18610   (eval $ac_compile) 2>conftest.er1
18611   ac_status=$?
18612   grep -v '^ *+' conftest.er1 >conftest.err
18613   rm -f conftest.er1
18614   cat conftest.err >&5
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); } &&
18617          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619   (eval $ac_try) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; } &&
18623          { ac_try='test -s conftest.$ac_objext'
18624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625   (eval $ac_try) 2>&5
18626   ac_status=$?
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); }; }; then
18629   ac_hi=-1 ac_mid=-1
18630   while :; do
18631     cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h.  */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h.  */
18637 $ac_includes_default
18638 int
18639 main ()
18640 {
18641 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18642 test_array [0] = 0
18643
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 rm -f conftest.$ac_objext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18650   (eval $ac_compile) 2>conftest.er1
18651   ac_status=$?
18652   grep -v '^ *+' conftest.er1 >conftest.err
18653   rm -f conftest.er1
18654   cat conftest.err >&5
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); } &&
18657          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659   (eval $ac_try) 2>&5
18660   ac_status=$?
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); }; } &&
18663          { ac_try='test -s conftest.$ac_objext'
18664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665   (eval $ac_try) 2>&5
18666   ac_status=$?
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); }; }; then
18669   ac_lo=$ac_mid; break
18670 else
18671   echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18673
18674 ac_hi=`expr '(' $ac_mid ')' - 1`
18675                        if test $ac_mid -le $ac_hi; then
18676                          ac_lo= ac_hi=
18677                          break
18678                        fi
18679                        ac_mid=`expr 2 '*' $ac_mid`
18680 fi
18681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18682   done
18683 else
18684   echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687 ac_lo= ac_hi=
18688 fi
18689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690 fi
18691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18692 # Binary search between lo and hi bounds.
18693 while test "x$ac_lo" != "x$ac_hi"; do
18694   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18695   cat >conftest.$ac_ext <<_ACEOF
18696 /* confdefs.h.  */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h.  */
18701 $ac_includes_default
18702 int
18703 main ()
18704 {
18705 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18706 test_array [0] = 0
18707
18708   ;
18709   return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest.$ac_objext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18714   (eval $ac_compile) 2>conftest.er1
18715   ac_status=$?
18716   grep -v '^ *+' conftest.er1 >conftest.err
18717   rm -f conftest.er1
18718   cat conftest.err >&5
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); } &&
18721          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723   (eval $ac_try) 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); }; } &&
18727          { ac_try='test -s conftest.$ac_objext'
18728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729   (eval $ac_try) 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); }; }; then
18733   ac_hi=$ac_mid
18734 else
18735   echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18737
18738 ac_lo=`expr '(' $ac_mid ')' + 1`
18739 fi
18740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18741 done
18742 case $ac_lo in
18743 ?*) ac_cv_sizeof_short=$ac_lo;;
18744 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18745 See \`config.log' for more details." >&5
18746 echo "$as_me: error: cannot compute sizeof (short), 77
18747 See \`config.log' for more details." >&2;}
18748    { (exit 1); exit 1; }; } ;;
18749 esac
18750 else
18751   if test "$cross_compiling" = yes; then
18752   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18753 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18754    { (exit 1); exit 1; }; }
18755 else
18756   cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h.  */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h.  */
18762 $ac_includes_default
18763 long longval () { return (long) (sizeof (short)); }
18764 unsigned long ulongval () { return (long) (sizeof (short)); }
18765 #include <stdio.h>
18766 #include <stdlib.h>
18767 int
18768 main ()
18769 {
18770
18771   FILE *f = fopen ("conftest.val", "w");
18772   if (! f)
18773     exit (1);
18774   if (((long) (sizeof (short))) < 0)
18775     {
18776       long i = longval ();
18777       if (i != ((long) (sizeof (short))))
18778         exit (1);
18779       fprintf (f, "%ld\n", i);
18780     }
18781   else
18782     {
18783       unsigned long i = ulongval ();
18784       if (i != ((long) (sizeof (short))))
18785         exit (1);
18786       fprintf (f, "%lu\n", i);
18787     }
18788   exit (ferror (f) || fclose (f) != 0);
18789
18790   ;
18791   return 0;
18792 }
18793 _ACEOF
18794 rm -f conftest$ac_exeext
18795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18796   (eval $ac_link) 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801   (eval $ac_try) 2>&5
18802   ac_status=$?
18803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804   (exit $ac_status); }; }; then
18805   ac_cv_sizeof_short=`cat conftest.val`
18806 else
18807   echo "$as_me: program exited with status $ac_status" >&5
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 ( exit $ac_status )
18812 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18813 See \`config.log' for more details." >&5
18814 echo "$as_me: error: cannot compute sizeof (short), 77
18815 See \`config.log' for more details." >&2;}
18816    { (exit 1); exit 1; }; }
18817 fi
18818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18819 fi
18820 fi
18821 rm -f conftest.val
18822 else
18823   ac_cv_sizeof_short=0
18824 fi
18825 fi
18826 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18827 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18828 cat >>confdefs.h <<_ACEOF
18829 #define SIZEOF_SHORT $ac_cv_sizeof_short
18830 _ACEOF
18831
18832
18833 echo "$as_me:$LINENO: checking for void *" >&5
18834 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18835 if test "${ac_cv_type_void_p+set}" = set; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844 $ac_includes_default
18845 int
18846 main ()
18847 {
18848 if ((void * *) 0)
18849   return 0;
18850 if (sizeof (void *))
18851   return 0;
18852   ;
18853   return 0;
18854 }
18855 _ACEOF
18856 rm -f conftest.$ac_objext
18857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18858   (eval $ac_compile) 2>conftest.er1
18859   ac_status=$?
18860   grep -v '^ *+' conftest.er1 >conftest.err
18861   rm -f conftest.er1
18862   cat conftest.err >&5
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); } &&
18865          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867   (eval $ac_try) 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; } &&
18871          { ac_try='test -s conftest.$ac_objext'
18872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873   (eval $ac_try) 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; }; then
18877   ac_cv_type_void_p=yes
18878 else
18879   echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18881
18882 ac_cv_type_void_p=no
18883 fi
18884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18885 fi
18886 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18887 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18888
18889 echo "$as_me:$LINENO: checking size of void *" >&5
18890 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18891 if test "${ac_cv_sizeof_void_p+set}" = set; then
18892   echo $ECHO_N "(cached) $ECHO_C" >&6
18893 else
18894   if test "$ac_cv_type_void_p" = yes; then
18895   # The cast to unsigned long works around a bug in the HP C Compiler
18896   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18897   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18898   # This bug is HP SR number 8606223364.
18899   if test "$cross_compiling" = yes; then
18900   # Depending upon the size, compute the lo and hi bounds.
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 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18912 test_array [0] = 0
18913
18914   ;
18915   return 0;
18916 }
18917 _ACEOF
18918 rm -f conftest.$ac_objext
18919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18920   (eval $ac_compile) 2>conftest.er1
18921   ac_status=$?
18922   grep -v '^ *+' conftest.er1 >conftest.err
18923   rm -f conftest.er1
18924   cat conftest.err >&5
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); } &&
18927          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929   (eval $ac_try) 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); }; } &&
18933          { ac_try='test -s conftest.$ac_objext'
18934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935   (eval $ac_try) 2>&5
18936   ac_status=$?
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; }; then
18939   ac_lo=0 ac_mid=0
18940   while :; do
18941     cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h.  */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h.  */
18947 $ac_includes_default
18948 int
18949 main ()
18950 {
18951 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18952 test_array [0] = 0
18953
18954   ;
18955   return 0;
18956 }
18957 _ACEOF
18958 rm -f conftest.$ac_objext
18959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18960   (eval $ac_compile) 2>conftest.er1
18961   ac_status=$?
18962   grep -v '^ *+' conftest.er1 >conftest.err
18963   rm -f conftest.er1
18964   cat conftest.err >&5
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); } &&
18967          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969   (eval $ac_try) 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; } &&
18973          { ac_try='test -s conftest.$ac_objext'
18974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975   (eval $ac_try) 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; }; then
18979   ac_hi=$ac_mid; break
18980 else
18981   echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18983
18984 ac_lo=`expr $ac_mid + 1`
18985                     if test $ac_lo -le $ac_mid; then
18986                       ac_lo= ac_hi=
18987                       break
18988                     fi
18989                     ac_mid=`expr 2 '*' $ac_mid + 1`
18990 fi
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992   done
18993 else
18994   echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18996
18997 cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h.  */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h.  */
19003 $ac_includes_default
19004 int
19005 main ()
19006 {
19007 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19008 test_array [0] = 0
19009
19010   ;
19011   return 0;
19012 }
19013 _ACEOF
19014 rm -f conftest.$ac_objext
19015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19016   (eval $ac_compile) 2>conftest.er1
19017   ac_status=$?
19018   grep -v '^ *+' conftest.er1 >conftest.err
19019   rm -f conftest.er1
19020   cat conftest.err >&5
19021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022   (exit $ac_status); } &&
19023          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025   (eval $ac_try) 2>&5
19026   ac_status=$?
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); }; } &&
19029          { ac_try='test -s conftest.$ac_objext'
19030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031   (eval $ac_try) 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; }; then
19035   ac_hi=-1 ac_mid=-1
19036   while :; do
19037     cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h.  */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h.  */
19043 $ac_includes_default
19044 int
19045 main ()
19046 {
19047 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19048 test_array [0] = 0
19049
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056   (eval $ac_compile) 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } &&
19063          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065   (eval $ac_try) 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; } &&
19069          { ac_try='test -s conftest.$ac_objext'
19070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071   (eval $ac_try) 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); }; }; then
19075   ac_lo=$ac_mid; break
19076 else
19077   echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 ac_hi=`expr '(' $ac_mid ')' - 1`
19081                        if test $ac_mid -le $ac_hi; then
19082                          ac_lo= ac_hi=
19083                          break
19084                        fi
19085                        ac_mid=`expr 2 '*' $ac_mid`
19086 fi
19087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19088   done
19089 else
19090   echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19092
19093 ac_lo= ac_hi=
19094 fi
19095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19096 fi
19097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19098 # Binary search between lo and hi bounds.
19099 while test "x$ac_lo" != "x$ac_hi"; do
19100   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19101   cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h.  */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h.  */
19107 $ac_includes_default
19108 int
19109 main ()
19110 {
19111 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19112 test_array [0] = 0
19113
19114   ;
19115   return 0;
19116 }
19117 _ACEOF
19118 rm -f conftest.$ac_objext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120   (eval $ac_compile) 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } &&
19127          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129   (eval $ac_try) 2>&5
19130   ac_status=$?
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); }; } &&
19133          { ac_try='test -s conftest.$ac_objext'
19134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135   (eval $ac_try) 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); }; }; then
19139   ac_hi=$ac_mid
19140 else
19141   echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19143
19144 ac_lo=`expr '(' $ac_mid ')' + 1`
19145 fi
19146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19147 done
19148 case $ac_lo in
19149 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19150 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19151 See \`config.log' for more details." >&5
19152 echo "$as_me: error: cannot compute sizeof (void *), 77
19153 See \`config.log' for more details." >&2;}
19154    { (exit 1); exit 1; }; } ;;
19155 esac
19156 else
19157   if test "$cross_compiling" = yes; then
19158   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19159 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19160    { (exit 1); exit 1; }; }
19161 else
19162   cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168 $ac_includes_default
19169 long longval () { return (long) (sizeof (void *)); }
19170 unsigned long ulongval () { return (long) (sizeof (void *)); }
19171 #include <stdio.h>
19172 #include <stdlib.h>
19173 int
19174 main ()
19175 {
19176
19177   FILE *f = fopen ("conftest.val", "w");
19178   if (! f)
19179     exit (1);
19180   if (((long) (sizeof (void *))) < 0)
19181     {
19182       long i = longval ();
19183       if (i != ((long) (sizeof (void *))))
19184         exit (1);
19185       fprintf (f, "%ld\n", i);
19186     }
19187   else
19188     {
19189       unsigned long i = ulongval ();
19190       if (i != ((long) (sizeof (void *))))
19191         exit (1);
19192       fprintf (f, "%lu\n", i);
19193     }
19194   exit (ferror (f) || fclose (f) != 0);
19195
19196   ;
19197   return 0;
19198 }
19199 _ACEOF
19200 rm -f conftest$ac_exeext
19201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19202   (eval $ac_link) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207   (eval $ac_try) 2>&5
19208   ac_status=$?
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); }; }; then
19211   ac_cv_sizeof_void_p=`cat conftest.val`
19212 else
19213   echo "$as_me: program exited with status $ac_status" >&5
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217 ( exit $ac_status )
19218 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19219 See \`config.log' for more details." >&5
19220 echo "$as_me: error: cannot compute sizeof (void *), 77
19221 See \`config.log' for more details." >&2;}
19222    { (exit 1); exit 1; }; }
19223 fi
19224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19225 fi
19226 fi
19227 rm -f conftest.val
19228 else
19229   ac_cv_sizeof_void_p=0
19230 fi
19231 fi
19232 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19233 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19234 cat >>confdefs.h <<_ACEOF
19235 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19236 _ACEOF
19237
19238
19239 echo "$as_me:$LINENO: checking for int" >&5
19240 echo $ECHO_N "checking for int... $ECHO_C" >&6
19241 if test "${ac_cv_type_int+set}" = set; then
19242   echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244   cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h.  */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h.  */
19250 $ac_includes_default
19251 int
19252 main ()
19253 {
19254 if ((int *) 0)
19255   return 0;
19256 if (sizeof (int))
19257   return 0;
19258   ;
19259   return 0;
19260 }
19261 _ACEOF
19262 rm -f conftest.$ac_objext
19263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19264   (eval $ac_compile) 2>conftest.er1
19265   ac_status=$?
19266   grep -v '^ *+' conftest.er1 >conftest.err
19267   rm -f conftest.er1
19268   cat conftest.err >&5
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); } &&
19271          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273   (eval $ac_try) 2>&5
19274   ac_status=$?
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); }; } &&
19277          { ac_try='test -s conftest.$ac_objext'
19278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279   (eval $ac_try) 2>&5
19280   ac_status=$?
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); }; }; then
19283   ac_cv_type_int=yes
19284 else
19285   echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19287
19288 ac_cv_type_int=no
19289 fi
19290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19291 fi
19292 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19293 echo "${ECHO_T}$ac_cv_type_int" >&6
19294
19295 echo "$as_me:$LINENO: checking size of int" >&5
19296 echo $ECHO_N "checking size of int... $ECHO_C" >&6
19297 if test "${ac_cv_sizeof_int+set}" = set; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   if test "$ac_cv_type_int" = yes; then
19301   # The cast to unsigned long works around a bug in the HP C Compiler
19302   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19303   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19304   # This bug is HP SR number 8606223364.
19305   if test "$cross_compiling" = yes; then
19306   # Depending upon the size, compute the lo and hi bounds.
19307 cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h.  */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h.  */
19313 $ac_includes_default
19314 int
19315 main ()
19316 {
19317 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19318 test_array [0] = 0
19319
19320   ;
19321   return 0;
19322 }
19323 _ACEOF
19324 rm -f conftest.$ac_objext
19325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326   (eval $ac_compile) 2>conftest.er1
19327   ac_status=$?
19328   grep -v '^ *+' conftest.er1 >conftest.err
19329   rm -f conftest.er1
19330   cat conftest.err >&5
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); } &&
19333          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335   (eval $ac_try) 2>&5
19336   ac_status=$?
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); }; } &&
19339          { ac_try='test -s conftest.$ac_objext'
19340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341   (eval $ac_try) 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); }; }; then
19345   ac_lo=0 ac_mid=0
19346   while :; do
19347     cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353 $ac_includes_default
19354 int
19355 main ()
19356 {
19357 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19358 test_array [0] = 0
19359
19360   ;
19361   return 0;
19362 }
19363 _ACEOF
19364 rm -f conftest.$ac_objext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366   (eval $ac_compile) 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } &&
19373          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; } &&
19379          { ac_try='test -s conftest.$ac_objext'
19380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381   (eval $ac_try) 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }; }; then
19385   ac_hi=$ac_mid; break
19386 else
19387   echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390 ac_lo=`expr $ac_mid + 1`
19391                     if test $ac_lo -le $ac_mid; then
19392                       ac_lo= ac_hi=
19393                       break
19394                     fi
19395                     ac_mid=`expr 2 '*' $ac_mid + 1`
19396 fi
19397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19398   done
19399 else
19400   echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 cat >conftest.$ac_ext <<_ACEOF
19404 /* confdefs.h.  */
19405 _ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h.  */
19409 $ac_includes_default
19410 int
19411 main ()
19412 {
19413 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19414 test_array [0] = 0
19415
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19422   (eval $ac_compile) 2>conftest.er1
19423   ac_status=$?
19424   grep -v '^ *+' conftest.er1 >conftest.err
19425   rm -f conftest.er1
19426   cat conftest.err >&5
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); } &&
19429          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431   (eval $ac_try) 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; } &&
19435          { ac_try='test -s conftest.$ac_objext'
19436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437   (eval $ac_try) 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; }; then
19441   ac_hi=-1 ac_mid=-1
19442   while :; do
19443     cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449 $ac_includes_default
19450 int
19451 main ()
19452 {
19453 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19454 test_array [0] = 0
19455
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462   (eval $ac_compile) 2>conftest.er1
19463   ac_status=$?
19464   grep -v '^ *+' conftest.er1 >conftest.err
19465   rm -f conftest.er1
19466   cat conftest.err >&5
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); } &&
19469          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471   (eval $ac_try) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; } &&
19475          { ac_try='test -s conftest.$ac_objext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_lo=$ac_mid; break
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_hi=`expr '(' $ac_mid ')' - 1`
19487                        if test $ac_mid -le $ac_hi; then
19488                          ac_lo= ac_hi=
19489                          break
19490                        fi
19491                        ac_mid=`expr 2 '*' $ac_mid`
19492 fi
19493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19494   done
19495 else
19496   echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 ac_lo= ac_hi=
19500 fi
19501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19502 fi
19503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19504 # Binary search between lo and hi bounds.
19505 while test "x$ac_lo" != "x$ac_hi"; do
19506   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19507   cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513 $ac_includes_default
19514 int
19515 main ()
19516 {
19517 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19518 test_array [0] = 0
19519
19520   ;
19521   return 0;
19522 }
19523 _ACEOF
19524 rm -f conftest.$ac_objext
19525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19526   (eval $ac_compile) 2>conftest.er1
19527   ac_status=$?
19528   grep -v '^ *+' conftest.er1 >conftest.err
19529   rm -f conftest.er1
19530   cat conftest.err >&5
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); } &&
19533          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535   (eval $ac_try) 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; } &&
19539          { ac_try='test -s conftest.$ac_objext'
19540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541   (eval $ac_try) 2>&5
19542   ac_status=$?
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); }; }; then
19545   ac_hi=$ac_mid
19546 else
19547   echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19549
19550 ac_lo=`expr '(' $ac_mid ')' + 1`
19551 fi
19552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19553 done
19554 case $ac_lo in
19555 ?*) ac_cv_sizeof_int=$ac_lo;;
19556 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19557 See \`config.log' for more details." >&5
19558 echo "$as_me: error: cannot compute sizeof (int), 77
19559 See \`config.log' for more details." >&2;}
19560    { (exit 1); exit 1; }; } ;;
19561 esac
19562 else
19563   if test "$cross_compiling" = yes; then
19564   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19565 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19566    { (exit 1); exit 1; }; }
19567 else
19568   cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h.  */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h.  */
19574 $ac_includes_default
19575 long longval () { return (long) (sizeof (int)); }
19576 unsigned long ulongval () { return (long) (sizeof (int)); }
19577 #include <stdio.h>
19578 #include <stdlib.h>
19579 int
19580 main ()
19581 {
19582
19583   FILE *f = fopen ("conftest.val", "w");
19584   if (! f)
19585     exit (1);
19586   if (((long) (sizeof (int))) < 0)
19587     {
19588       long i = longval ();
19589       if (i != ((long) (sizeof (int))))
19590         exit (1);
19591       fprintf (f, "%ld\n", i);
19592     }
19593   else
19594     {
19595       unsigned long i = ulongval ();
19596       if (i != ((long) (sizeof (int))))
19597         exit (1);
19598       fprintf (f, "%lu\n", i);
19599     }
19600   exit (ferror (f) || fclose (f) != 0);
19601
19602   ;
19603   return 0;
19604 }
19605 _ACEOF
19606 rm -f conftest$ac_exeext
19607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19608   (eval $ac_link) 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613   (eval $ac_try) 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); }; }; then
19617   ac_cv_sizeof_int=`cat conftest.val`
19618 else
19619   echo "$as_me: program exited with status $ac_status" >&5
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ( exit $ac_status )
19624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19625 See \`config.log' for more details." >&5
19626 echo "$as_me: error: cannot compute sizeof (int), 77
19627 See \`config.log' for more details." >&2;}
19628    { (exit 1); exit 1; }; }
19629 fi
19630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19631 fi
19632 fi
19633 rm -f conftest.val
19634 else
19635   ac_cv_sizeof_int=0
19636 fi
19637 fi
19638 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19639 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19640 cat >>confdefs.h <<_ACEOF
19641 #define SIZEOF_INT $ac_cv_sizeof_int
19642 _ACEOF
19643
19644
19645 echo "$as_me:$LINENO: checking for long" >&5
19646 echo $ECHO_N "checking for long... $ECHO_C" >&6
19647 if test "${ac_cv_type_long+set}" = set; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650   cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656 $ac_includes_default
19657 int
19658 main ()
19659 {
19660 if ((long *) 0)
19661   return 0;
19662 if (sizeof (long))
19663   return 0;
19664   ;
19665   return 0;
19666 }
19667 _ACEOF
19668 rm -f conftest.$ac_objext
19669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19670   (eval $ac_compile) 2>conftest.er1
19671   ac_status=$?
19672   grep -v '^ *+' conftest.er1 >conftest.err
19673   rm -f conftest.er1
19674   cat conftest.err >&5
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); } &&
19677          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679   (eval $ac_try) 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); }; } &&
19683          { ac_try='test -s conftest.$ac_objext'
19684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685   (eval $ac_try) 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; }; then
19689   ac_cv_type_long=yes
19690 else
19691   echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694 ac_cv_type_long=no
19695 fi
19696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19697 fi
19698 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19699 echo "${ECHO_T}$ac_cv_type_long" >&6
19700
19701 echo "$as_me:$LINENO: checking size of long" >&5
19702 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19703 if test "${ac_cv_sizeof_long+set}" = set; then
19704   echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706   if test "$ac_cv_type_long" = yes; then
19707   # The cast to unsigned long works around a bug in the HP C Compiler
19708   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19709   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19710   # This bug is HP SR number 8606223364.
19711   if test "$cross_compiling" = yes; then
19712   # Depending upon the size, compute the lo and hi bounds.
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h.  */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h.  */
19719 $ac_includes_default
19720 int
19721 main ()
19722 {
19723 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19724 test_array [0] = 0
19725
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732   (eval $ac_compile) 2>conftest.er1
19733   ac_status=$?
19734   grep -v '^ *+' conftest.er1 >conftest.err
19735   rm -f conftest.er1
19736   cat conftest.err >&5
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); } &&
19739          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741   (eval $ac_try) 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; } &&
19745          { ac_try='test -s conftest.$ac_objext'
19746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747   (eval $ac_try) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; }; then
19751   ac_lo=0 ac_mid=0
19752   while :; do
19753     cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759 $ac_includes_default
19760 int
19761 main ()
19762 {
19763 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19764 test_array [0] = 0
19765
19766   ;
19767   return 0;
19768 }
19769 _ACEOF
19770 rm -f conftest.$ac_objext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772   (eval $ac_compile) 2>conftest.er1
19773   ac_status=$?
19774   grep -v '^ *+' conftest.er1 >conftest.err
19775   rm -f conftest.er1
19776   cat conftest.err >&5
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } &&
19779          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781   (eval $ac_try) 2>&5
19782   ac_status=$?
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); }; } &&
19785          { ac_try='test -s conftest.$ac_objext'
19786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787   (eval $ac_try) 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; }; then
19791   ac_hi=$ac_mid; break
19792 else
19793   echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19795
19796 ac_lo=`expr $ac_mid + 1`
19797                     if test $ac_lo -le $ac_mid; then
19798                       ac_lo= ac_hi=
19799                       break
19800                     fi
19801                     ac_mid=`expr 2 '*' $ac_mid + 1`
19802 fi
19803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19804   done
19805 else
19806   echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809 cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h.  */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h.  */
19815 $ac_includes_default
19816 int
19817 main ()
19818 {
19819 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19820 test_array [0] = 0
19821
19822   ;
19823   return 0;
19824 }
19825 _ACEOF
19826 rm -f conftest.$ac_objext
19827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19828   (eval $ac_compile) 2>conftest.er1
19829   ac_status=$?
19830   grep -v '^ *+' conftest.er1 >conftest.err
19831   rm -f conftest.er1
19832   cat conftest.err >&5
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); } &&
19835          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837   (eval $ac_try) 2>&5
19838   ac_status=$?
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); }; } &&
19841          { ac_try='test -s conftest.$ac_objext'
19842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843   (eval $ac_try) 2>&5
19844   ac_status=$?
19845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846   (exit $ac_status); }; }; then
19847   ac_hi=-1 ac_mid=-1
19848   while :; do
19849     cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h.  */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h.  */
19855 $ac_includes_default
19856 int
19857 main ()
19858 {
19859 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19860 test_array [0] = 0
19861
19862   ;
19863   return 0;
19864 }
19865 _ACEOF
19866 rm -f conftest.$ac_objext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868   (eval $ac_compile) 2>conftest.er1
19869   ac_status=$?
19870   grep -v '^ *+' conftest.er1 >conftest.err
19871   rm -f conftest.er1
19872   cat conftest.err >&5
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } &&
19875          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877   (eval $ac_try) 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); }; } &&
19881          { ac_try='test -s conftest.$ac_objext'
19882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883   (eval $ac_try) 2>&5
19884   ac_status=$?
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); }; }; then
19887   ac_lo=$ac_mid; break
19888 else
19889   echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 ac_hi=`expr '(' $ac_mid ')' - 1`
19893                        if test $ac_mid -le $ac_hi; then
19894                          ac_lo= ac_hi=
19895                          break
19896                        fi
19897                        ac_mid=`expr 2 '*' $ac_mid`
19898 fi
19899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19900   done
19901 else
19902   echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905 ac_lo= ac_hi=
19906 fi
19907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19908 fi
19909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19910 # Binary search between lo and hi bounds.
19911 while test "x$ac_lo" != "x$ac_hi"; do
19912   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19913   cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h.  */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h.  */
19919 $ac_includes_default
19920 int
19921 main ()
19922 {
19923 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19924 test_array [0] = 0
19925
19926   ;
19927   return 0;
19928 }
19929 _ACEOF
19930 rm -f conftest.$ac_objext
19931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19932   (eval $ac_compile) 2>conftest.er1
19933   ac_status=$?
19934   grep -v '^ *+' conftest.er1 >conftest.err
19935   rm -f conftest.er1
19936   cat conftest.err >&5
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } &&
19939          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941   (eval $ac_try) 2>&5
19942   ac_status=$?
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); }; } &&
19945          { ac_try='test -s conftest.$ac_objext'
19946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947   (eval $ac_try) 2>&5
19948   ac_status=$?
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); }; }; then
19951   ac_hi=$ac_mid
19952 else
19953   echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956 ac_lo=`expr '(' $ac_mid ')' + 1`
19957 fi
19958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19959 done
19960 case $ac_lo in
19961 ?*) ac_cv_sizeof_long=$ac_lo;;
19962 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19963 See \`config.log' for more details." >&5
19964 echo "$as_me: error: cannot compute sizeof (long), 77
19965 See \`config.log' for more details." >&2;}
19966    { (exit 1); exit 1; }; } ;;
19967 esac
19968 else
19969   if test "$cross_compiling" = yes; then
19970   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19971 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19972    { (exit 1); exit 1; }; }
19973 else
19974   cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h.  */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h.  */
19980 $ac_includes_default
19981 long longval () { return (long) (sizeof (long)); }
19982 unsigned long ulongval () { return (long) (sizeof (long)); }
19983 #include <stdio.h>
19984 #include <stdlib.h>
19985 int
19986 main ()
19987 {
19988
19989   FILE *f = fopen ("conftest.val", "w");
19990   if (! f)
19991     exit (1);
19992   if (((long) (sizeof (long))) < 0)
19993     {
19994       long i = longval ();
19995       if (i != ((long) (sizeof (long))))
19996         exit (1);
19997       fprintf (f, "%ld\n", i);
19998     }
19999   else
20000     {
20001       unsigned long i = ulongval ();
20002       if (i != ((long) (sizeof (long))))
20003         exit (1);
20004       fprintf (f, "%lu\n", i);
20005     }
20006   exit (ferror (f) || fclose (f) != 0);
20007
20008   ;
20009   return 0;
20010 }
20011 _ACEOF
20012 rm -f conftest$ac_exeext
20013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20014   (eval $ac_link) 2>&5
20015   ac_status=$?
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019   (eval $ac_try) 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); }; }; then
20023   ac_cv_sizeof_long=`cat conftest.val`
20024 else
20025   echo "$as_me: program exited with status $ac_status" >&5
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20028
20029 ( exit $ac_status )
20030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20031 See \`config.log' for more details." >&5
20032 echo "$as_me: error: cannot compute sizeof (long), 77
20033 See \`config.log' for more details." >&2;}
20034    { (exit 1); exit 1; }; }
20035 fi
20036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20037 fi
20038 fi
20039 rm -f conftest.val
20040 else
20041   ac_cv_sizeof_long=0
20042 fi
20043 fi
20044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20045 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20046 cat >>confdefs.h <<_ACEOF
20047 #define SIZEOF_LONG $ac_cv_sizeof_long
20048 _ACEOF
20049
20050
20051 echo "$as_me:$LINENO: checking for size_t" >&5
20052 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20053 if test "${ac_cv_type_size_t+set}" = set; then
20054   echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056   cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062 $ac_includes_default
20063 int
20064 main ()
20065 {
20066 if ((size_t *) 0)
20067   return 0;
20068 if (sizeof (size_t))
20069   return 0;
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20076   (eval $ac_compile) 2>conftest.er1
20077   ac_status=$?
20078   grep -v '^ *+' conftest.er1 >conftest.err
20079   rm -f conftest.er1
20080   cat conftest.err >&5
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); } &&
20083          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085   (eval $ac_try) 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); }; } &&
20089          { ac_try='test -s conftest.$ac_objext'
20090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091   (eval $ac_try) 2>&5
20092   ac_status=$?
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); }; }; then
20095   ac_cv_type_size_t=yes
20096 else
20097   echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20099
20100 ac_cv_type_size_t=no
20101 fi
20102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20103 fi
20104 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20105 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20106
20107 echo "$as_me:$LINENO: checking size of size_t" >&5
20108 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20109 if test "${ac_cv_sizeof_size_t+set}" = set; then
20110   echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112   if test "$ac_cv_type_size_t" = yes; then
20113   # The cast to unsigned long works around a bug in the HP C Compiler
20114   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20115   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20116   # This bug is HP SR number 8606223364.
20117   if test "$cross_compiling" = yes; then
20118   # Depending upon the size, compute the lo and hi bounds.
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125 $ac_includes_default
20126 int
20127 main ()
20128 {
20129 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20130 test_array [0] = 0
20131
20132   ;
20133   return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138   (eval $ac_compile) 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } &&
20145          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; } &&
20151          { ac_try='test -s conftest.$ac_objext'
20152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153   (eval $ac_try) 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; }; then
20157   ac_lo=0 ac_mid=0
20158   while :; do
20159     cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h.  */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h.  */
20165 $ac_includes_default
20166 int
20167 main ()
20168 {
20169 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20170 test_array [0] = 0
20171
20172   ;
20173   return 0;
20174 }
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20178   (eval $ac_compile) 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } &&
20185          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187   (eval $ac_try) 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; } &&
20191          { ac_try='test -s conftest.$ac_objext'
20192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193   (eval $ac_try) 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); }; }; then
20197   ac_hi=$ac_mid; break
20198 else
20199   echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 ac_lo=`expr $ac_mid + 1`
20203                     if test $ac_lo -le $ac_mid; then
20204                       ac_lo= ac_hi=
20205                       break
20206                     fi
20207                     ac_mid=`expr 2 '*' $ac_mid + 1`
20208 fi
20209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20210   done
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h.  */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h.  */
20221 $ac_includes_default
20222 int
20223 main ()
20224 {
20225 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20226 test_array [0] = 0
20227
20228   ;
20229   return 0;
20230 }
20231 _ACEOF
20232 rm -f conftest.$ac_objext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20234   (eval $ac_compile) 2>conftest.er1
20235   ac_status=$?
20236   grep -v '^ *+' conftest.er1 >conftest.err
20237   rm -f conftest.er1
20238   cat conftest.err >&5
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } &&
20241          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243   (eval $ac_try) 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); }; } &&
20247          { ac_try='test -s conftest.$ac_objext'
20248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249   (eval $ac_try) 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; }; then
20253   ac_hi=-1 ac_mid=-1
20254   while :; do
20255     cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261 $ac_includes_default
20262 int
20263 main ()
20264 {
20265 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20266 test_array [0] = 0
20267
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274   (eval $ac_compile) 2>conftest.er1
20275   ac_status=$?
20276   grep -v '^ *+' conftest.er1 >conftest.err
20277   rm -f conftest.er1
20278   cat conftest.err >&5
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); } &&
20281          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
20287          { ac_try='test -s conftest.$ac_objext'
20288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289   (eval $ac_try) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; }; then
20293   ac_lo=$ac_mid; break
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 ac_hi=`expr '(' $ac_mid ')' - 1`
20299                        if test $ac_mid -le $ac_hi; then
20300                          ac_lo= ac_hi=
20301                          break
20302                        fi
20303                        ac_mid=`expr 2 '*' $ac_mid`
20304 fi
20305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20306   done
20307 else
20308   echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 ac_lo= ac_hi=
20312 fi
20313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20314 fi
20315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20316 # Binary search between lo and hi bounds.
20317 while test "x$ac_lo" != "x$ac_hi"; do
20318   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20319   cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h.  */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h.  */
20325 $ac_includes_default
20326 int
20327 main ()
20328 {
20329 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20330 test_array [0] = 0
20331
20332   ;
20333   return 0;
20334 }
20335 _ACEOF
20336 rm -f conftest.$ac_objext
20337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20338   (eval $ac_compile) 2>conftest.er1
20339   ac_status=$?
20340   grep -v '^ *+' conftest.er1 >conftest.err
20341   rm -f conftest.er1
20342   cat conftest.err >&5
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); } &&
20345          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347   (eval $ac_try) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; } &&
20351          { ac_try='test -s conftest.$ac_objext'
20352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353   (eval $ac_try) 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; }; then
20357   ac_hi=$ac_mid
20358 else
20359   echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 ac_lo=`expr '(' $ac_mid ')' + 1`
20363 fi
20364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20365 done
20366 case $ac_lo in
20367 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20368 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20369 See \`config.log' for more details." >&5
20370 echo "$as_me: error: cannot compute sizeof (size_t), 77
20371 See \`config.log' for more details." >&2;}
20372    { (exit 1); exit 1; }; } ;;
20373 esac
20374 else
20375   if test "$cross_compiling" = yes; then
20376   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20377 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20378    { (exit 1); exit 1; }; }
20379 else
20380   cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386 $ac_includes_default
20387 long longval () { return (long) (sizeof (size_t)); }
20388 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20389 #include <stdio.h>
20390 #include <stdlib.h>
20391 int
20392 main ()
20393 {
20394
20395   FILE *f = fopen ("conftest.val", "w");
20396   if (! f)
20397     exit (1);
20398   if (((long) (sizeof (size_t))) < 0)
20399     {
20400       long i = longval ();
20401       if (i != ((long) (sizeof (size_t))))
20402         exit (1);
20403       fprintf (f, "%ld\n", i);
20404     }
20405   else
20406     {
20407       unsigned long i = ulongval ();
20408       if (i != ((long) (sizeof (size_t))))
20409         exit (1);
20410       fprintf (f, "%lu\n", i);
20411     }
20412   exit (ferror (f) || fclose (f) != 0);
20413
20414   ;
20415   return 0;
20416 }
20417 _ACEOF
20418 rm -f conftest$ac_exeext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20420   (eval $ac_link) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425   (eval $ac_try) 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; }; then
20429   ac_cv_sizeof_size_t=`cat conftest.val`
20430 else
20431   echo "$as_me: program exited with status $ac_status" >&5
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ( exit $ac_status )
20436 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20437 See \`config.log' for more details." >&5
20438 echo "$as_me: error: cannot compute sizeof (size_t), 77
20439 See \`config.log' for more details." >&2;}
20440    { (exit 1); exit 1; }; }
20441 fi
20442 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20443 fi
20444 fi
20445 rm -f conftest.val
20446 else
20447   ac_cv_sizeof_size_t=0
20448 fi
20449 fi
20450 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20451 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20452 cat >>confdefs.h <<_ACEOF
20453 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20454 _ACEOF
20455
20456
20457
20458 case "${host}" in
20459     arm-*-linux* )
20460         echo "$as_me:$LINENO: checking for long long" >&5
20461 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20462 if test "${ac_cv_type_long_long+set}" = set; then
20463   echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465   cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471 $ac_includes_default
20472 int
20473 main ()
20474 {
20475 if ((long long *) 0)
20476   return 0;
20477 if (sizeof (long long))
20478   return 0;
20479   ;
20480   return 0;
20481 }
20482 _ACEOF
20483 rm -f conftest.$ac_objext
20484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485   (eval $ac_compile) 2>conftest.er1
20486   ac_status=$?
20487   grep -v '^ *+' conftest.er1 >conftest.err
20488   rm -f conftest.er1
20489   cat conftest.err >&5
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); } &&
20492          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494   (eval $ac_try) 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); }; } &&
20498          { ac_try='test -s conftest.$ac_objext'
20499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500   (eval $ac_try) 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); }; }; then
20504   ac_cv_type_long_long=yes
20505 else
20506   echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509 ac_cv_type_long_long=no
20510 fi
20511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20512 fi
20513 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20514 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20515
20516 echo "$as_me:$LINENO: checking size of long long" >&5
20517 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20518 if test "${ac_cv_sizeof_long_long+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   if test "$ac_cv_type_long_long" = yes; then
20522   # The cast to unsigned long works around a bug in the HP C Compiler
20523   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20524   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20525   # This bug is HP SR number 8606223364.
20526   if test "$cross_compiling" = yes; then
20527   # Depending upon the size, compute the lo and hi bounds.
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534 $ac_includes_default
20535 int
20536 main ()
20537 {
20538 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20539 test_array [0] = 0
20540
20541   ;
20542   return 0;
20543 }
20544 _ACEOF
20545 rm -f conftest.$ac_objext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20547   (eval $ac_compile) 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } &&
20554          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556   (eval $ac_try) 2>&5
20557   ac_status=$?
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); }; } &&
20560          { ac_try='test -s conftest.$ac_objext'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; }; then
20566   ac_lo=0 ac_mid=0
20567   while :; do
20568     cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h.  */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h.  */
20574 $ac_includes_default
20575 int
20576 main ()
20577 {
20578 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20579 test_array [0] = 0
20580
20581   ;
20582   return 0;
20583 }
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587   (eval $ac_compile) 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } &&
20594          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
20600          { ac_try='test -s conftest.$ac_objext'
20601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602   (eval $ac_try) 2>&5
20603   ac_status=$?
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); }; }; then
20606   ac_hi=$ac_mid; break
20607 else
20608   echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20610
20611 ac_lo=`expr $ac_mid + 1`
20612                     if test $ac_lo -le $ac_mid; then
20613                       ac_lo= ac_hi=
20614                       break
20615                     fi
20616                     ac_mid=`expr 2 '*' $ac_mid + 1`
20617 fi
20618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20619   done
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
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"                         || test ! -s conftest.err'
20651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652   (eval $ac_try) 2>&5
20653   ac_status=$?
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); }; } &&
20656          { ac_try='test -s conftest.$ac_objext'
20657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658   (eval $ac_try) 2>&5
20659   ac_status=$?
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); }; }; then
20662   ac_hi=-1 ac_mid=-1
20663   while :; do
20664     cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670 $ac_includes_default
20671 int
20672 main ()
20673 {
20674 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20675 test_array [0] = 0
20676
20677   ;
20678   return 0;
20679 }
20680 _ACEOF
20681 rm -f conftest.$ac_objext
20682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20683   (eval $ac_compile) 2>conftest.er1
20684   ac_status=$?
20685   grep -v '^ *+' conftest.er1 >conftest.err
20686   rm -f conftest.er1
20687   cat conftest.err >&5
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); } &&
20690          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692   (eval $ac_try) 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; } &&
20696          { ac_try='test -s conftest.$ac_objext'
20697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698   (eval $ac_try) 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); }; }; then
20702   ac_lo=$ac_mid; break
20703 else
20704   echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707 ac_hi=`expr '(' $ac_mid ')' - 1`
20708                        if test $ac_mid -le $ac_hi; then
20709                          ac_lo= ac_hi=
20710                          break
20711                        fi
20712                        ac_mid=`expr 2 '*' $ac_mid`
20713 fi
20714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20715   done
20716 else
20717   echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 ac_lo= ac_hi=
20721 fi
20722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20723 fi
20724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20725 # Binary search between lo and hi bounds.
20726 while test "x$ac_lo" != "x$ac_hi"; do
20727   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20728   cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 $ac_includes_default
20735 int
20736 main ()
20737 {
20738 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20739 test_array [0] = 0
20740
20741   ;
20742   return 0;
20743 }
20744 _ACEOF
20745 rm -f conftest.$ac_objext
20746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20747   (eval $ac_compile) 2>conftest.er1
20748   ac_status=$?
20749   grep -v '^ *+' conftest.er1 >conftest.err
20750   rm -f conftest.er1
20751   cat conftest.err >&5
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); } &&
20754          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756   (eval $ac_try) 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); }; } &&
20760          { ac_try='test -s conftest.$ac_objext'
20761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762   (eval $ac_try) 2>&5
20763   ac_status=$?
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); }; }; then
20766   ac_hi=$ac_mid
20767 else
20768   echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20770
20771 ac_lo=`expr '(' $ac_mid ')' + 1`
20772 fi
20773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20774 done
20775 case $ac_lo in
20776 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20777 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20778 See \`config.log' for more details." >&5
20779 echo "$as_me: error: cannot compute sizeof (long long), 77
20780 See \`config.log' for more details." >&2;}
20781    { (exit 1); exit 1; }; } ;;
20782 esac
20783 else
20784   if test "$cross_compiling" = yes; then
20785   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20786 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20787    { (exit 1); exit 1; }; }
20788 else
20789   cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795 $ac_includes_default
20796 long longval () { return (long) (sizeof (long long)); }
20797 unsigned long ulongval () { return (long) (sizeof (long long)); }
20798 #include <stdio.h>
20799 #include <stdlib.h>
20800 int
20801 main ()
20802 {
20803
20804   FILE *f = fopen ("conftest.val", "w");
20805   if (! f)
20806     exit (1);
20807   if (((long) (sizeof (long long))) < 0)
20808     {
20809       long i = longval ();
20810       if (i != ((long) (sizeof (long long))))
20811         exit (1);
20812       fprintf (f, "%ld\n", i);
20813     }
20814   else
20815     {
20816       unsigned long i = ulongval ();
20817       if (i != ((long) (sizeof (long long))))
20818         exit (1);
20819       fprintf (f, "%lu\n", i);
20820     }
20821   exit (ferror (f) || fclose (f) != 0);
20822
20823   ;
20824   return 0;
20825 }
20826 _ACEOF
20827 rm -f conftest$ac_exeext
20828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20829   (eval $ac_link) 2>&5
20830   ac_status=$?
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834   (eval $ac_try) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; }; then
20838   ac_cv_sizeof_long_long=`cat conftest.val`
20839 else
20840   echo "$as_me: program exited with status $ac_status" >&5
20841 echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20843
20844 ( exit $ac_status )
20845 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20846 See \`config.log' for more details." >&5
20847 echo "$as_me: error: cannot compute sizeof (long long), 77
20848 See \`config.log' for more details." >&2;}
20849    { (exit 1); exit 1; }; }
20850 fi
20851 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20852 fi
20853 fi
20854 rm -f conftest.val
20855 else
20856   ac_cv_sizeof_long_long=0
20857 fi
20858 fi
20859 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20860 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20861 cat >>confdefs.h <<_ACEOF
20862 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20863 _ACEOF
20864
20865
20866     ;;
20867     *-hp-hpux* )
20868         echo "$as_me:$LINENO: checking for long long" >&5
20869 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20870 if test "${ac_cv_type_long_long+set}" = set; then
20871   echo $ECHO_N "(cached) $ECHO_C" >&6
20872 else
20873   cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 $ac_includes_default
20880 int
20881 main ()
20882 {
20883 if ((long long *) 0)
20884   return 0;
20885 if (sizeof (long long))
20886   return 0;
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest.$ac_objext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20893   (eval $ac_compile) 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } &&
20900          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902   (eval $ac_try) 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; } &&
20906          { ac_try='test -s conftest.$ac_objext'
20907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908   (eval $ac_try) 2>&5
20909   ac_status=$?
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); }; }; then
20912   ac_cv_type_long_long=yes
20913 else
20914   echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20916
20917 ac_cv_type_long_long=no
20918 fi
20919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20920 fi
20921 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20922 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20923
20924 echo "$as_me:$LINENO: checking size of long long" >&5
20925 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20926 if test "${ac_cv_sizeof_long_long+set}" = set; then
20927   echo $ECHO_N "(cached) $ECHO_C" >&6
20928 else
20929   if test "$ac_cv_type_long_long" = yes; then
20930   # The cast to unsigned long works around a bug in the HP C Compiler
20931   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20932   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20933   # This bug is HP SR number 8606223364.
20934   if test "$cross_compiling" = yes; then
20935   # Depending upon the size, compute the lo and hi bounds.
20936 cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h.  */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h.  */
20942 $ac_includes_default
20943 int
20944 main ()
20945 {
20946 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20947 test_array [0] = 0
20948
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 rm -f conftest.$ac_objext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20955   (eval $ac_compile) 2>conftest.er1
20956   ac_status=$?
20957   grep -v '^ *+' conftest.er1 >conftest.err
20958   rm -f conftest.er1
20959   cat conftest.err >&5
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); } &&
20962          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964   (eval $ac_try) 2>&5
20965   ac_status=$?
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); }; } &&
20968          { ac_try='test -s conftest.$ac_objext'
20969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970   (eval $ac_try) 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); }; }; then
20974   ac_lo=0 ac_mid=0
20975   while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20987 test_array [0] = 0
20988
20989   ;
20990   return 0;
20991 }
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20995   (eval $ac_compile) 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } &&
21002          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004   (eval $ac_try) 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; } &&
21008          { ac_try='test -s conftest.$ac_objext'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; }; then
21014   ac_hi=$ac_mid; break
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 ac_lo=`expr $ac_mid + 1`
21020                     if test $ac_lo -le $ac_mid; then
21021                       ac_lo= ac_hi=
21022                       break
21023                     fi
21024                     ac_mid=`expr 2 '*' $ac_mid + 1`
21025 fi
21026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027   done
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h.  */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h.  */
21038 $ac_includes_default
21039 int
21040 main ()
21041 {
21042 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21043 test_array [0] = 0
21044
21045   ;
21046   return 0;
21047 }
21048 _ACEOF
21049 rm -f conftest.$ac_objext
21050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21051   (eval $ac_compile) 2>conftest.er1
21052   ac_status=$?
21053   grep -v '^ *+' conftest.er1 >conftest.err
21054   rm -f conftest.er1
21055   cat conftest.err >&5
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); } &&
21058          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060   (eval $ac_try) 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; } &&
21064          { ac_try='test -s conftest.$ac_objext'
21065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066   (eval $ac_try) 2>&5
21067   ac_status=$?
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); }; }; then
21070   ac_hi=-1 ac_mid=-1
21071   while :; do
21072     cat >conftest.$ac_ext <<_ACEOF
21073 /* confdefs.h.  */
21074 _ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h.  */
21078 $ac_includes_default
21079 int
21080 main ()
21081 {
21082 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21083 test_array [0] = 0
21084
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091   (eval $ac_compile) 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } &&
21098          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100   (eval $ac_try) 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); }; } &&
21104          { ac_try='test -s conftest.$ac_objext'
21105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106   (eval $ac_try) 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; }; then
21110   ac_lo=$ac_mid; break
21111 else
21112   echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115 ac_hi=`expr '(' $ac_mid ')' - 1`
21116                        if test $ac_mid -le $ac_hi; then
21117                          ac_lo= ac_hi=
21118                          break
21119                        fi
21120                        ac_mid=`expr 2 '*' $ac_mid`
21121 fi
21122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21123   done
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_lo= ac_hi=
21129 fi
21130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21131 fi
21132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133 # Binary search between lo and hi bounds.
21134 while test "x$ac_lo" != "x$ac_hi"; do
21135   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21136   cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h.  */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h.  */
21142 $ac_includes_default
21143 int
21144 main ()
21145 {
21146 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21147 test_array [0] = 0
21148
21149   ;
21150   return 0;
21151 }
21152 _ACEOF
21153 rm -f conftest.$ac_objext
21154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21155   (eval $ac_compile) 2>conftest.er1
21156   ac_status=$?
21157   grep -v '^ *+' conftest.er1 >conftest.err
21158   rm -f conftest.er1
21159   cat conftest.err >&5
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); } &&
21162          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164   (eval $ac_try) 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); }; } &&
21168          { ac_try='test -s conftest.$ac_objext'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; }; then
21174   ac_hi=$ac_mid
21175 else
21176   echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179 ac_lo=`expr '(' $ac_mid ')' + 1`
21180 fi
21181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21182 done
21183 case $ac_lo in
21184 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21185 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21186 See \`config.log' for more details." >&5
21187 echo "$as_me: error: cannot compute sizeof (long long), 77
21188 See \`config.log' for more details." >&2;}
21189    { (exit 1); exit 1; }; } ;;
21190 esac
21191 else
21192   if test "$cross_compiling" = yes; then
21193   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21194 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21195    { (exit 1); exit 1; }; }
21196 else
21197   cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 $ac_includes_default
21204 long longval () { return (long) (sizeof (long long)); }
21205 unsigned long ulongval () { return (long) (sizeof (long long)); }
21206 #include <stdio.h>
21207 #include <stdlib.h>
21208 int
21209 main ()
21210 {
21211
21212   FILE *f = fopen ("conftest.val", "w");
21213   if (! f)
21214     exit (1);
21215   if (((long) (sizeof (long long))) < 0)
21216     {
21217       long i = longval ();
21218       if (i != ((long) (sizeof (long long))))
21219         exit (1);
21220       fprintf (f, "%ld\n", i);
21221     }
21222   else
21223     {
21224       unsigned long i = ulongval ();
21225       if (i != ((long) (sizeof (long long))))
21226         exit (1);
21227       fprintf (f, "%lu\n", i);
21228     }
21229   exit (ferror (f) || fclose (f) != 0);
21230
21231   ;
21232   return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest$ac_exeext
21236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21237   (eval $ac_link) 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242   (eval $ac_try) 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; }; then
21246   ac_cv_sizeof_long_long=`cat conftest.val`
21247 else
21248   echo "$as_me: program exited with status $ac_status" >&5
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21251
21252 ( exit $ac_status )
21253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21254 See \`config.log' for more details." >&5
21255 echo "$as_me: error: cannot compute sizeof (long long), 77
21256 See \`config.log' for more details." >&2;}
21257    { (exit 1); exit 1; }; }
21258 fi
21259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21260 fi
21261 fi
21262 rm -f conftest.val
21263 else
21264   ac_cv_sizeof_long_long=0
21265 fi
21266 fi
21267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21268 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21269 cat >>confdefs.h <<_ACEOF
21270 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21271 _ACEOF
21272
21273
21274         if test "$ac_cv_sizeof_long_long" != "0"; then
21275                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
21276         fi
21277     ;;
21278     * )
21279         echo "$as_me:$LINENO: checking for long long" >&5
21280 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21281 if test "${ac_cv_type_long_long+set}" = set; then
21282   echo $ECHO_N "(cached) $ECHO_C" >&6
21283 else
21284   cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290 $ac_includes_default
21291 int
21292 main ()
21293 {
21294 if ((long long *) 0)
21295   return 0;
21296 if (sizeof (long long))
21297   return 0;
21298   ;
21299   return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21304   (eval $ac_compile) 2>conftest.er1
21305   ac_status=$?
21306   grep -v '^ *+' conftest.er1 >conftest.err
21307   rm -f conftest.er1
21308   cat conftest.err >&5
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); } &&
21311          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313   (eval $ac_try) 2>&5
21314   ac_status=$?
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); }; } &&
21317          { ac_try='test -s conftest.$ac_objext'
21318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319   (eval $ac_try) 2>&5
21320   ac_status=$?
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); }; }; then
21323   ac_cv_type_long_long=yes
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328 ac_cv_type_long_long=no
21329 fi
21330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21331 fi
21332 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21333 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21334
21335 echo "$as_me:$LINENO: checking size of long long" >&5
21336 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21337 if test "${ac_cv_sizeof_long_long+set}" = set; then
21338   echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340   if test "$ac_cv_type_long_long" = yes; then
21341   # The cast to unsigned long works around a bug in the HP C Compiler
21342   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21343   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21344   # This bug is HP SR number 8606223364.
21345   if test "$cross_compiling" = yes; then
21346   # Depending upon the size, compute the lo and hi bounds.
21347 cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h.  */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h.  */
21353 $ac_includes_default
21354 int
21355 main ()
21356 {
21357 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21358 test_array [0] = 0
21359
21360   ;
21361   return 0;
21362 }
21363 _ACEOF
21364 rm -f conftest.$ac_objext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21366   (eval $ac_compile) 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } &&
21373          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375   (eval $ac_try) 2>&5
21376   ac_status=$?
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); }; } &&
21379          { ac_try='test -s conftest.$ac_objext'
21380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381   (eval $ac_try) 2>&5
21382   ac_status=$?
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); }; }; then
21385   ac_lo=0 ac_mid=0
21386   while :; do
21387     cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393 $ac_includes_default
21394 int
21395 main ()
21396 {
21397 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21398 test_array [0] = 0
21399
21400   ;
21401   return 0;
21402 }
21403 _ACEOF
21404 rm -f conftest.$ac_objext
21405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21406   (eval $ac_compile) 2>conftest.er1
21407   ac_status=$?
21408   grep -v '^ *+' conftest.er1 >conftest.err
21409   rm -f conftest.er1
21410   cat conftest.err >&5
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } &&
21413          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415   (eval $ac_try) 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); }; } &&
21419          { ac_try='test -s conftest.$ac_objext'
21420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421   (eval $ac_try) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; }; then
21425   ac_hi=$ac_mid; break
21426 else
21427   echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21429
21430 ac_lo=`expr $ac_mid + 1`
21431                     if test $ac_lo -le $ac_mid; then
21432                       ac_lo= ac_hi=
21433                       break
21434                     fi
21435                     ac_mid=`expr 2 '*' $ac_mid + 1`
21436 fi
21437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21438   done
21439 else
21440   echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21442
21443 cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449 $ac_includes_default
21450 int
21451 main ()
21452 {
21453 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21454 test_array [0] = 0
21455
21456   ;
21457   return 0;
21458 }
21459 _ACEOF
21460 rm -f conftest.$ac_objext
21461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21462   (eval $ac_compile) 2>conftest.er1
21463   ac_status=$?
21464   grep -v '^ *+' conftest.er1 >conftest.err
21465   rm -f conftest.er1
21466   cat conftest.err >&5
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); } &&
21469          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471   (eval $ac_try) 2>&5
21472   ac_status=$?
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); }; } &&
21475          { ac_try='test -s conftest.$ac_objext'
21476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477   (eval $ac_try) 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; }; then
21481   ac_hi=-1 ac_mid=-1
21482   while :; do
21483     cat >conftest.$ac_ext <<_ACEOF
21484 /* confdefs.h.  */
21485 _ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h.  */
21489 $ac_includes_default
21490 int
21491 main ()
21492 {
21493 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21494 test_array [0] = 0
21495
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest.$ac_objext
21501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21502   (eval $ac_compile) 2>conftest.er1
21503   ac_status=$?
21504   grep -v '^ *+' conftest.er1 >conftest.err
21505   rm -f conftest.er1
21506   cat conftest.err >&5
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); } &&
21509          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511   (eval $ac_try) 2>&5
21512   ac_status=$?
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); }; } &&
21515          { ac_try='test -s conftest.$ac_objext'
21516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517   (eval $ac_try) 2>&5
21518   ac_status=$?
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); }; }; then
21521   ac_lo=$ac_mid; break
21522 else
21523   echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526 ac_hi=`expr '(' $ac_mid ')' - 1`
21527                        if test $ac_mid -le $ac_hi; then
21528                          ac_lo= ac_hi=
21529                          break
21530                        fi
21531                        ac_mid=`expr 2 '*' $ac_mid`
21532 fi
21533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21534   done
21535 else
21536   echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21538
21539 ac_lo= ac_hi=
21540 fi
21541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21542 fi
21543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21544 # Binary search between lo and hi bounds.
21545 while test "x$ac_lo" != "x$ac_hi"; do
21546   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21547   cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 $ac_includes_default
21554 int
21555 main ()
21556 {
21557 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21558 test_array [0] = 0
21559
21560   ;
21561   return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext
21565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21566   (eval $ac_compile) 2>conftest.er1
21567   ac_status=$?
21568   grep -v '^ *+' conftest.er1 >conftest.err
21569   rm -f conftest.er1
21570   cat conftest.err >&5
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } &&
21573          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575   (eval $ac_try) 2>&5
21576   ac_status=$?
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); }; } &&
21579          { ac_try='test -s conftest.$ac_objext'
21580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581   (eval $ac_try) 2>&5
21582   ac_status=$?
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); }; }; then
21585   ac_hi=$ac_mid
21586 else
21587   echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21589
21590 ac_lo=`expr '(' $ac_mid ')' + 1`
21591 fi
21592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21593 done
21594 case $ac_lo in
21595 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21597 See \`config.log' for more details." >&5
21598 echo "$as_me: error: cannot compute sizeof (long long), 77
21599 See \`config.log' for more details." >&2;}
21600    { (exit 1); exit 1; }; } ;;
21601 esac
21602 else
21603   if test "$cross_compiling" = yes; then
21604   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21605 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21606    { (exit 1); exit 1; }; }
21607 else
21608   cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614 $ac_includes_default
21615 long longval () { return (long) (sizeof (long long)); }
21616 unsigned long ulongval () { return (long) (sizeof (long long)); }
21617 #include <stdio.h>
21618 #include <stdlib.h>
21619 int
21620 main ()
21621 {
21622
21623   FILE *f = fopen ("conftest.val", "w");
21624   if (! f)
21625     exit (1);
21626   if (((long) (sizeof (long long))) < 0)
21627     {
21628       long i = longval ();
21629       if (i != ((long) (sizeof (long long))))
21630         exit (1);
21631       fprintf (f, "%ld\n", i);
21632     }
21633   else
21634     {
21635       unsigned long i = ulongval ();
21636       if (i != ((long) (sizeof (long long))))
21637         exit (1);
21638       fprintf (f, "%lu\n", i);
21639     }
21640   exit (ferror (f) || fclose (f) != 0);
21641
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648   (eval $ac_link) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; }; then
21657   ac_cv_sizeof_long_long=`cat conftest.val`
21658 else
21659   echo "$as_me: program exited with status $ac_status" >&5
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 ( exit $ac_status )
21664 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21665 See \`config.log' for more details." >&5
21666 echo "$as_me: error: cannot compute sizeof (long long), 77
21667 See \`config.log' for more details." >&2;}
21668    { (exit 1); exit 1; }; }
21669 fi
21670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21671 fi
21672 fi
21673 rm -f conftest.val
21674 else
21675   ac_cv_sizeof_long_long=0
21676 fi
21677 fi
21678 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21679 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21680 cat >>confdefs.h <<_ACEOF
21681 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21682 _ACEOF
21683
21684
21685 esac
21686
21687 echo "$as_me:$LINENO: checking for wchar_t" >&5
21688 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21689 if test "${ac_cv_type_wchar_t+set}" = set; then
21690   echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692   cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698
21699         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21700         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21701         #  error "fake wchar_t"
21702         #endif
21703         #ifdef HAVE_WCHAR_H
21704         #  ifdef __CYGWIN__
21705         #    include <stddef.h>
21706         #  endif
21707         #  include <wchar.h>
21708         #endif
21709         #ifdef HAVE_STDLIB_H
21710         #  include <stdlib.h>
21711         #endif
21712         #include <stdio.h>
21713
21714
21715
21716 int
21717 main ()
21718 {
21719 if ((wchar_t *) 0)
21720   return 0;
21721 if (sizeof (wchar_t))
21722   return 0;
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729   (eval $ac_compile) 2>conftest.er1
21730   ac_status=$?
21731   grep -v '^ *+' conftest.er1 >conftest.err
21732   rm -f conftest.er1
21733   cat conftest.err >&5
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); } &&
21736          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738   (eval $ac_try) 2>&5
21739   ac_status=$?
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); }; } &&
21742          { ac_try='test -s conftest.$ac_objext'
21743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744   (eval $ac_try) 2>&5
21745   ac_status=$?
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); }; }; then
21748   ac_cv_type_wchar_t=yes
21749 else
21750   echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21752
21753 ac_cv_type_wchar_t=no
21754 fi
21755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21756 fi
21757 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21758 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21759
21760 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21761 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21762 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21763   echo $ECHO_N "(cached) $ECHO_C" >&6
21764 else
21765   if test "$ac_cv_type_wchar_t" = yes; then
21766   # The cast to unsigned long works around a bug in the HP C Compiler
21767   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21768   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21769   # This bug is HP SR number 8606223364.
21770   if test "$cross_compiling" = yes; then
21771   # Depending upon the size, compute the lo and hi bounds.
21772 cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778
21779         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21780         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21781         #  error "fake wchar_t"
21782         #endif
21783         #ifdef HAVE_WCHAR_H
21784         #  ifdef __CYGWIN__
21785         #    include <stddef.h>
21786         #  endif
21787         #  include <wchar.h>
21788         #endif
21789         #ifdef HAVE_STDLIB_H
21790         #  include <stdlib.h>
21791         #endif
21792         #include <stdio.h>
21793
21794
21795
21796 int
21797 main ()
21798 {
21799 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21800 test_array [0] = 0
21801
21802   ;
21803   return 0;
21804 }
21805 _ACEOF
21806 rm -f conftest.$ac_objext
21807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21808   (eval $ac_compile) 2>conftest.er1
21809   ac_status=$?
21810   grep -v '^ *+' conftest.er1 >conftest.err
21811   rm -f conftest.er1
21812   cat conftest.err >&5
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); } &&
21815          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817   (eval $ac_try) 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); }; } &&
21821          { ac_try='test -s conftest.$ac_objext'
21822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823   (eval $ac_try) 2>&5
21824   ac_status=$?
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); }; }; then
21827   ac_lo=0 ac_mid=0
21828   while :; do
21829     cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h.  */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h.  */
21835
21836         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21837         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21838         #  error "fake wchar_t"
21839         #endif
21840         #ifdef HAVE_WCHAR_H
21841         #  ifdef __CYGWIN__
21842         #    include <stddef.h>
21843         #  endif
21844         #  include <wchar.h>
21845         #endif
21846         #ifdef HAVE_STDLIB_H
21847         #  include <stdlib.h>
21848         #endif
21849         #include <stdio.h>
21850
21851
21852
21853 int
21854 main ()
21855 {
21856 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21857 test_array [0] = 0
21858
21859   ;
21860   return 0;
21861 }
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21865   (eval $ac_compile) 2>conftest.er1
21866   ac_status=$?
21867   grep -v '^ *+' conftest.er1 >conftest.err
21868   rm -f conftest.er1
21869   cat conftest.err >&5
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } &&
21872          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874   (eval $ac_try) 2>&5
21875   ac_status=$?
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); }; } &&
21878          { ac_try='test -s conftest.$ac_objext'
21879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880   (eval $ac_try) 2>&5
21881   ac_status=$?
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); }; }; then
21884   ac_hi=$ac_mid; break
21885 else
21886   echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21888
21889 ac_lo=`expr $ac_mid + 1`
21890                     if test $ac_lo -le $ac_mid; then
21891                       ac_lo= ac_hi=
21892                       break
21893                     fi
21894                     ac_mid=`expr 2 '*' $ac_mid + 1`
21895 fi
21896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21897   done
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902 cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h.  */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h.  */
21908
21909         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21910         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21911         #  error "fake wchar_t"
21912         #endif
21913         #ifdef HAVE_WCHAR_H
21914         #  ifdef __CYGWIN__
21915         #    include <stddef.h>
21916         #  endif
21917         #  include <wchar.h>
21918         #endif
21919         #ifdef HAVE_STDLIB_H
21920         #  include <stdlib.h>
21921         #endif
21922         #include <stdio.h>
21923
21924
21925
21926 int
21927 main ()
21928 {
21929 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21930 test_array [0] = 0
21931
21932   ;
21933   return 0;
21934 }
21935 _ACEOF
21936 rm -f conftest.$ac_objext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21938   (eval $ac_compile) 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } &&
21945          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947   (eval $ac_try) 2>&5
21948   ac_status=$?
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); }; } &&
21951          { ac_try='test -s conftest.$ac_objext'
21952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21953   (eval $ac_try) 2>&5
21954   ac_status=$?
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); }; }; then
21957   ac_hi=-1 ac_mid=-1
21958   while :; do
21959     cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h.  */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h.  */
21965
21966         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21967         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21968         #  error "fake wchar_t"
21969         #endif
21970         #ifdef HAVE_WCHAR_H
21971         #  ifdef __CYGWIN__
21972         #    include <stddef.h>
21973         #  endif
21974         #  include <wchar.h>
21975         #endif
21976         #ifdef HAVE_STDLIB_H
21977         #  include <stdlib.h>
21978         #endif
21979         #include <stdio.h>
21980
21981
21982
21983 int
21984 main ()
21985 {
21986 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21987 test_array [0] = 0
21988
21989   ;
21990   return 0;
21991 }
21992 _ACEOF
21993 rm -f conftest.$ac_objext
21994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21995   (eval $ac_compile) 2>conftest.er1
21996   ac_status=$?
21997   grep -v '^ *+' conftest.er1 >conftest.err
21998   rm -f conftest.er1
21999   cat conftest.err >&5
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); } &&
22002          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004   (eval $ac_try) 2>&5
22005   ac_status=$?
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); }; } &&
22008          { ac_try='test -s conftest.$ac_objext'
22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010   (eval $ac_try) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; }; then
22014   ac_lo=$ac_mid; break
22015 else
22016   echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_hi=`expr '(' $ac_mid ')' - 1`
22020                        if test $ac_mid -le $ac_hi; then
22021                          ac_lo= ac_hi=
22022                          break
22023                        fi
22024                        ac_mid=`expr 2 '*' $ac_mid`
22025 fi
22026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22027   done
22028 else
22029   echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22031
22032 ac_lo= ac_hi=
22033 fi
22034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22035 fi
22036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22037 # Binary search between lo and hi bounds.
22038 while test "x$ac_lo" != "x$ac_hi"; do
22039   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22040   cat >conftest.$ac_ext <<_ACEOF
22041 /* confdefs.h.  */
22042 _ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h.  */
22046
22047         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22048         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22049         #  error "fake wchar_t"
22050         #endif
22051         #ifdef HAVE_WCHAR_H
22052         #  ifdef __CYGWIN__
22053         #    include <stddef.h>
22054         #  endif
22055         #  include <wchar.h>
22056         #endif
22057         #ifdef HAVE_STDLIB_H
22058         #  include <stdlib.h>
22059         #endif
22060         #include <stdio.h>
22061
22062
22063
22064 int
22065 main ()
22066 {
22067 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22068 test_array [0] = 0
22069
22070   ;
22071   return 0;
22072 }
22073 _ACEOF
22074 rm -f conftest.$ac_objext
22075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22076   (eval $ac_compile) 2>conftest.er1
22077   ac_status=$?
22078   grep -v '^ *+' conftest.er1 >conftest.err
22079   rm -f conftest.er1
22080   cat conftest.err >&5
22081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082   (exit $ac_status); } &&
22083          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085   (eval $ac_try) 2>&5
22086   ac_status=$?
22087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088   (exit $ac_status); }; } &&
22089          { ac_try='test -s conftest.$ac_objext'
22090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091   (eval $ac_try) 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); }; }; then
22095   ac_hi=$ac_mid
22096 else
22097   echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22099
22100 ac_lo=`expr '(' $ac_mid ')' + 1`
22101 fi
22102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22103 done
22104 case $ac_lo in
22105 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22107 See \`config.log' for more details." >&5
22108 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22109 See \`config.log' for more details." >&2;}
22110    { (exit 1); exit 1; }; } ;;
22111 esac
22112 else
22113   if test "$cross_compiling" = yes; then
22114   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22115 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22116    { (exit 1); exit 1; }; }
22117 else
22118   cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h.  */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h.  */
22124
22125         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22126         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22127         #  error "fake wchar_t"
22128         #endif
22129         #ifdef HAVE_WCHAR_H
22130         #  ifdef __CYGWIN__
22131         #    include <stddef.h>
22132         #  endif
22133         #  include <wchar.h>
22134         #endif
22135         #ifdef HAVE_STDLIB_H
22136         #  include <stdlib.h>
22137         #endif
22138         #include <stdio.h>
22139
22140
22141
22142 long longval () { return (long) (sizeof (wchar_t)); }
22143 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22144 #include <stdio.h>
22145 #include <stdlib.h>
22146 int
22147 main ()
22148 {
22149
22150   FILE *f = fopen ("conftest.val", "w");
22151   if (! f)
22152     exit (1);
22153   if (((long) (sizeof (wchar_t))) < 0)
22154     {
22155       long i = longval ();
22156       if (i != ((long) (sizeof (wchar_t))))
22157         exit (1);
22158       fprintf (f, "%ld\n", i);
22159     }
22160   else
22161     {
22162       unsigned long i = ulongval ();
22163       if (i != ((long) (sizeof (wchar_t))))
22164         exit (1);
22165       fprintf (f, "%lu\n", i);
22166     }
22167   exit (ferror (f) || fclose (f) != 0);
22168
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest$ac_exeext
22174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22175   (eval $ac_link) 2>&5
22176   ac_status=$?
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180   (eval $ac_try) 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; }; then
22184   ac_cv_sizeof_wchar_t=`cat conftest.val`
22185 else
22186   echo "$as_me: program exited with status $ac_status" >&5
22187 echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189
22190 ( exit $ac_status )
22191 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22192 See \`config.log' for more details." >&5
22193 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22194 See \`config.log' for more details." >&2;}
22195    { (exit 1); exit 1; }; }
22196 fi
22197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22198 fi
22199 fi
22200 rm -f conftest.val
22201 else
22202   ac_cv_sizeof_wchar_t=0
22203 fi
22204 fi
22205 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22206 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
22207 cat >>confdefs.h <<_ACEOF
22208 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22209 _ACEOF
22210
22211
22212 if test "$ac_cv_sizeof_wchar_t" != "0"; then
22213     wxUSE_WCHAR_T=yes
22214 else
22215     wxUSE_WCHAR_T=no
22216 fi
22217
22218 echo "$as_me:$LINENO: checking for va_copy" >&5
22219 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22220 if test "${wx_cv_func_va_copy+set}" = set; then
22221   echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223
22224         cat >conftest.$ac_ext <<_ACEOF
22225
22226             #include <stdarg.h>
22227             void foo(char *f, ...)
22228             {
22229                 va_list ap1, ap2;
22230                 va_start(ap1, f);
22231                 va_copy(ap2, ap1);
22232                 va_end(ap2);
22233                 va_end(ap1);
22234             }
22235             int main()
22236             {
22237                 foo("hi", 17);
22238                 return 0;
22239             }
22240 _ACEOF
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22243   (eval $ac_link) 2>conftest.er1
22244   ac_status=$?
22245   grep -v '^ *+' conftest.er1 >conftest.err
22246   rm -f conftest.er1
22247   cat conftest.err >&5
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); } &&
22250          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252   (eval $ac_try) 2>&5
22253   ac_status=$?
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); }; } &&
22256          { ac_try='test -s conftest$ac_exeext'
22257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258   (eval $ac_try) 2>&5
22259   ac_status=$?
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); }; }; then
22262   wx_cv_func_va_copy=yes
22263 else
22264   echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22266
22267 wx_cv_func_va_copy=no
22268
22269 fi
22270 rm -f conftest.err conftest.$ac_objext \
22271       conftest$ac_exeext conftest.$ac_ext
22272
22273
22274 fi
22275 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22276 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22277
22278 if test $wx_cv_func_va_copy = "yes"; then
22279     cat >>confdefs.h <<\_ACEOF
22280 #define HAVE_VA_COPY 1
22281 _ACEOF
22282
22283 else
22284         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22285 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22286 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22287   echo $ECHO_N "(cached) $ECHO_C" >&6
22288 else
22289
22290             if test "$cross_compiling" = yes; then
22291                   wx_cv_type_va_list_lvalue=yes
22292
22293 else
22294   cat >conftest.$ac_ext <<_ACEOF
22295
22296                 #include <stdarg.h>
22297                 int foo(char *f, ...)
22298                 {
22299                     va_list ap1, ap2;
22300                     va_start(ap1, f);
22301                     ap2 = ap1;
22302                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22303                         return 1;
22304                     va_end(ap2);
22305                     va_end(ap1);
22306                     return 0;
22307                 }
22308                 int main()
22309                 {
22310                     return foo("hi", 17);
22311                 }
22312 _ACEOF
22313 rm -f conftest$ac_exeext
22314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22315   (eval $ac_link) 2>&5
22316   ac_status=$?
22317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320   (eval $ac_try) 2>&5
22321   ac_status=$?
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); }; }; then
22324   wx_cv_type_va_list_lvalue=yes
22325 else
22326   echo "$as_me: program exited with status $ac_status" >&5
22327 echo "$as_me: failed program was:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22329
22330 ( exit $ac_status )
22331 wx_cv_type_va_list_lvalue=no
22332 fi
22333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22334 fi
22335
22336
22337 fi
22338 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22339 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22340
22341     if test $wx_cv_type_va_list_lvalue != "yes"; then
22342                         cat >>confdefs.h <<\_ACEOF
22343 #define VA_LIST_IS_ARRAY 1
22344 _ACEOF
22345
22346     fi
22347 fi
22348
22349 echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22350 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22351 if test "${wx_cv_have_variadic_macros+set}" = set; then
22352   echo $ECHO_N "(cached) $ECHO_C" >&6
22353 else
22354
22355         cat >conftest.$ac_ext <<_ACEOF
22356 /* confdefs.h.  */
22357 _ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h.  */
22361
22362                     #include <stdio.h>
22363                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22364
22365 int
22366 main ()
22367 {
22368
22369                     test("%s %d %p", "test", 1, 0);
22370
22371
22372   ;
22373   return 0;
22374 }
22375 _ACEOF
22376 rm -f conftest.$ac_objext
22377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22378   (eval $ac_compile) 2>conftest.er1
22379   ac_status=$?
22380   grep -v '^ *+' conftest.er1 >conftest.err
22381   rm -f conftest.er1
22382   cat conftest.err >&5
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); } &&
22385          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387   (eval $ac_try) 2>&5
22388   ac_status=$?
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); }; } &&
22391          { ac_try='test -s conftest.$ac_objext'
22392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393   (eval $ac_try) 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); }; }; then
22397   wx_cv_have_variadic_macros=yes
22398 else
22399   echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22401
22402 wx_cv_have_variadic_macros=no
22403
22404 fi
22405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22406
22407
22408 fi
22409 echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22410 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22411
22412 if test $wx_cv_have_variadic_macros = "yes"; then
22413     cat >>confdefs.h <<\_ACEOF
22414 #define HAVE_VARIADIC_MACROS 1
22415 _ACEOF
22416
22417 fi
22418
22419 # Check whether --enable-largefile or --disable-largefile was given.
22420 if test "${enable_largefile+set}" = set; then
22421   enableval="$enable_largefile"
22422
22423 fi;
22424 if test "$enable_largefile" != no; then
22425             wx_largefile=no
22426
22427     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22428 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22429 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22430   echo $ECHO_N "(cached) $ECHO_C" >&6
22431 else
22432
22433           cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h.  */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h.  */
22439 #define _FILE_OFFSET_BITS 64
22440                           #include <sys/types.h>
22441 int
22442 main ()
22443 {
22444 typedef struct {
22445     unsigned int field: sizeof(off_t) == 8;
22446 } wxlf;
22447
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22454   (eval $ac_compile) 2>conftest.er1
22455   ac_status=$?
22456   grep -v '^ *+' conftest.er1 >conftest.err
22457   rm -f conftest.er1
22458   cat conftest.err >&5
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); } &&
22461          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463   (eval $ac_try) 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); }; } &&
22467          { ac_try='test -s conftest.$ac_objext'
22468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469   (eval $ac_try) 2>&5
22470   ac_status=$?
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); }; }; then
22473   ac_cv_sys_file_offset_bits=64
22474 else
22475   echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478 ac_cv_sys_file_offset_bits=no
22479 fi
22480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22481
22482
22483 fi
22484 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22485 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22486
22487     if test "$ac_cv_sys_file_offset_bits" != no; then
22488         wx_largefile=yes
22489         cat >>confdefs.h <<_ACEOF
22490 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22491 _ACEOF
22492
22493     fi
22494
22495     if test "x$wx_largefile" != "xyes"; then
22496
22497     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22498 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22499 if test "${ac_cv_sys_large_files+set}" = set; then
22500   echo $ECHO_N "(cached) $ECHO_C" >&6
22501 else
22502
22503           cat >conftest.$ac_ext <<_ACEOF
22504 /* confdefs.h.  */
22505 _ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h.  */
22509 #define _LARGE_FILES 1
22510                           #include <sys/types.h>
22511 int
22512 main ()
22513 {
22514 typedef struct {
22515     unsigned int field: sizeof(off_t) == 8;
22516 } wxlf;
22517
22518   ;
22519   return 0;
22520 }
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524   (eval $ac_compile) 2>conftest.er1
22525   ac_status=$?
22526   grep -v '^ *+' conftest.er1 >conftest.err
22527   rm -f conftest.er1
22528   cat conftest.err >&5
22529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); } &&
22531          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533   (eval $ac_try) 2>&5
22534   ac_status=$?
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); }; } &&
22537          { ac_try='test -s conftest.$ac_objext'
22538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539   (eval $ac_try) 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); }; }; then
22543   ac_cv_sys_large_files=1
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 ac_cv_sys_large_files=no
22549 fi
22550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551
22552
22553 fi
22554 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22555 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22556
22557     if test "$ac_cv_sys_large_files" != no; then
22558         wx_largefile=yes
22559         cat >>confdefs.h <<_ACEOF
22560 #define _LARGE_FILES $ac_cv_sys_large_files
22561 _ACEOF
22562
22563     fi
22564
22565     fi
22566
22567     echo "$as_me:$LINENO: checking if large file support is available" >&5
22568 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22569     if test "x$wx_largefile" = "xyes"; then
22570         cat >>confdefs.h <<\_ACEOF
22571 #define HAVE_LARGEFILE_SUPPORT 1
22572 _ACEOF
22573
22574     fi
22575     echo "$as_me:$LINENO: result: $wx_largefile" >&5
22576 echo "${ECHO_T}$wx_largefile" >&6
22577 fi
22578
22579
22580 if test "x$wx_largefile" = "xyes"; then
22581     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
22582         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
22583
22584                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22585             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22586 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22587 if test "${wx_cv_STDC_EXT_required+set}" = set; then
22588   echo $ECHO_N "(cached) $ECHO_C" >&6
22589 else
22590
22591                     cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h.  */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h.  */
22597
22598 int
22599 main ()
22600 {
22601
22602                             #ifndef __STDC_EXT__
22603                                 choke me
22604                             #endif
22605
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22612   (eval $ac_compile) 2>conftest.er1
22613   ac_status=$?
22614   grep -v '^ *+' conftest.er1 >conftest.err
22615   rm -f conftest.er1
22616   cat conftest.err >&5
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); } &&
22619          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22621   (eval $ac_try) 2>&5
22622   ac_status=$?
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); }; } &&
22625          { ac_try='test -s conftest.$ac_objext'
22626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627   (eval $ac_try) 2>&5
22628   ac_status=$?
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); }; }; then
22631   wx_cv_STDC_EXT_required=no
22632 else
22633   echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636 wx_cv_STDC_EXT_required=yes
22637
22638 fi
22639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22640
22641
22642 fi
22643 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22644 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22645             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22646                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22647             fi
22648         fi
22649     else
22650         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22651     fi
22652         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22653 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22654 if test "${ac_cv_sys_largefile_source+set}" = set; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657   while :; do
22658   ac_cv_sys_largefile_source=no
22659   cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h.  */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h.  */
22665 #include <stdio.h>
22666 int
22667 main ()
22668 {
22669 return !fseeko;
22670   ;
22671   return 0;
22672 }
22673 _ACEOF
22674 rm -f conftest.$ac_objext
22675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22676   (eval $ac_compile) 2>conftest.er1
22677   ac_status=$?
22678   grep -v '^ *+' conftest.er1 >conftest.err
22679   rm -f conftest.er1
22680   cat conftest.err >&5
22681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); } &&
22683          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685   (eval $ac_try) 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); }; } &&
22689          { ac_try='test -s conftest.$ac_objext'
22690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691   (eval $ac_try) 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; }; then
22695   break
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700 fi
22701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22702   cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h.  */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h.  */
22708 #define _LARGEFILE_SOURCE 1
22709 #include <stdio.h>
22710 int
22711 main ()
22712 {
22713 return !fseeko;
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 rm -f conftest.$ac_objext
22719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22720   (eval $ac_compile) 2>conftest.er1
22721   ac_status=$?
22722   grep -v '^ *+' conftest.er1 >conftest.err
22723   rm -f conftest.er1
22724   cat conftest.err >&5
22725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726   (exit $ac_status); } &&
22727          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729   (eval $ac_try) 2>&5
22730   ac_status=$?
22731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732   (exit $ac_status); }; } &&
22733          { ac_try='test -s conftest.$ac_objext'
22734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735   (eval $ac_try) 2>&5
22736   ac_status=$?
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); }; }; then
22739   ac_cv_sys_largefile_source=1; break
22740 else
22741   echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22743
22744 fi
22745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22746   break
22747 done
22748 fi
22749 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22750 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22751 if test "$ac_cv_sys_largefile_source" != no; then
22752
22753 cat >>confdefs.h <<_ACEOF
22754 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22755 _ACEOF
22756
22757 fi
22758 rm -f conftest*
22759
22760 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22761 # in glibc 2.1.3, but that breaks too many other things.
22762 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22763 echo "$as_me:$LINENO: checking for fseeko" >&5
22764 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22765 if test "${ac_cv_func_fseeko+set}" = set; then
22766   echo $ECHO_N "(cached) $ECHO_C" >&6
22767 else
22768   cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h.  */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h.  */
22774 #include <stdio.h>
22775 int
22776 main ()
22777 {
22778 return fseeko && fseeko (stdin, 0, 0);
22779   ;
22780   return 0;
22781 }
22782 _ACEOF
22783 rm -f conftest.$ac_objext conftest$ac_exeext
22784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22785   (eval $ac_link) 2>conftest.er1
22786   ac_status=$?
22787   grep -v '^ *+' conftest.er1 >conftest.err
22788   rm -f conftest.er1
22789   cat conftest.err >&5
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); } &&
22792          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794   (eval $ac_try) 2>&5
22795   ac_status=$?
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); }; } &&
22798          { ac_try='test -s conftest$ac_exeext'
22799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22800   (eval $ac_try) 2>&5
22801   ac_status=$?
22802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803   (exit $ac_status); }; }; then
22804   ac_cv_func_fseeko=yes
22805 else
22806   echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22808
22809 ac_cv_func_fseeko=no
22810 fi
22811 rm -f conftest.err conftest.$ac_objext \
22812       conftest$ac_exeext conftest.$ac_ext
22813 fi
22814 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22815 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22816 if test $ac_cv_func_fseeko = yes; then
22817
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_FSEEKO 1
22820 _ACEOF
22821
22822 fi
22823
22824     if test "$ac_cv_sys_largefile_source" != no; then
22825         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22826     fi
22827 fi
22828
22829 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22830 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22831 if test "${ac_cv_c_bigendian+set}" = set; then
22832   echo $ECHO_N "(cached) $ECHO_C" >&6
22833 else
22834   ac_cv_c_bigendian=unknown
22835 # See if sys/param.h defines the BYTE_ORDER macro.
22836 cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h.  */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h.  */
22842 #include <sys/types.h>
22843 #include <sys/param.h>
22844 int
22845 main ()
22846 {
22847
22848 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22849  bogus endian macros
22850 #endif
22851   ;
22852   return 0;
22853 }
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22857   (eval $ac_compile) 2>conftest.er1
22858   ac_status=$?
22859   grep -v '^ *+' conftest.er1 >conftest.err
22860   rm -f conftest.er1
22861   cat conftest.err >&5
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); } &&
22864          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866   (eval $ac_try) 2>&5
22867   ac_status=$?
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); }; } &&
22870          { ac_try='test -s conftest.$ac_objext'
22871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872   (eval $ac_try) 2>&5
22873   ac_status=$?
22874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875   (exit $ac_status); }; }; then
22876   # It does; now see whether it defined to BIG_ENDIAN or not.
22877 cat >conftest.$ac_ext <<_ACEOF
22878 /* confdefs.h.  */
22879 _ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h.  */
22883 #include <sys/types.h>
22884 #include <sys/param.h>
22885 int
22886 main ()
22887 {
22888
22889 #if BYTE_ORDER != BIG_ENDIAN
22890  not big endian
22891 #endif
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22898   (eval $ac_compile) 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } &&
22905          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907   (eval $ac_try) 2>&5
22908   ac_status=$?
22909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910   (exit $ac_status); }; } &&
22911          { ac_try='test -s conftest.$ac_objext'
22912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913   (eval $ac_try) 2>&5
22914   ac_status=$?
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); }; }; then
22917   ac_cv_c_bigendian=yes
22918 else
22919   echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22921
22922 ac_cv_c_bigendian=no
22923 fi
22924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22925 else
22926   echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22928
22929 fi
22930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22931 if test $ac_cv_c_bigendian = unknown; then
22932 if test "$cross_compiling" = yes; then
22933   ac_cv_c_bigendian=unknown
22934 else
22935   cat >conftest.$ac_ext <<_ACEOF
22936 /* confdefs.h.  */
22937 _ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h.  */
22941 main () {
22942   /* Are we little or big endian?  From Harbison&Steele.  */
22943   union
22944   {
22945     long l;
22946     char c[sizeof (long)];
22947   } u;
22948   u.l = 1;
22949   exit (u.c[sizeof (long) - 1] == 1);
22950 }
22951 _ACEOF
22952 rm -f conftest$ac_exeext
22953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22954   (eval $ac_link) 2>&5
22955   ac_status=$?
22956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22959   (eval $ac_try) 2>&5
22960   ac_status=$?
22961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962   (exit $ac_status); }; }; then
22963   ac_cv_c_bigendian=no
22964 else
22965   echo "$as_me: program exited with status $ac_status" >&5
22966 echo "$as_me: failed program was:" >&5
22967 sed 's/^/| /' conftest.$ac_ext >&5
22968
22969 ( exit $ac_status )
22970 ac_cv_c_bigendian=yes
22971 fi
22972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22973 fi
22974 fi
22975 fi
22976 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22977 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22978 if test $ac_cv_c_bigendian = unknown; then
22979   { 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
22980 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;}
22981 fi
22982 if test $ac_cv_c_bigendian = yes; then
22983   cat >>confdefs.h <<\_ACEOF
22984 #define WORDS_BIGENDIAN 1
22985 _ACEOF
22986
22987 fi
22988
22989
22990
22991
22992
22993     ac_ext=cc
22994 ac_cpp='$CXXCPP $CPPFLAGS'
22995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22998
22999
23000
23001 for ac_header in iostream
23002 do
23003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23005   echo "$as_me:$LINENO: checking for $ac_header" >&5
23006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23008   echo $ECHO_N "(cached) $ECHO_C" >&6
23009 fi
23010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23012 else
23013   # Is the header compilable?
23014 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23016 cat >conftest.$ac_ext <<_ACEOF
23017 /* confdefs.h.  */
23018 _ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h.  */
23022 $ac_includes_default
23023 #include <$ac_header>
23024 _ACEOF
23025 rm -f conftest.$ac_objext
23026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23027   (eval $ac_compile) 2>conftest.er1
23028   ac_status=$?
23029   grep -v '^ *+' conftest.er1 >conftest.err
23030   rm -f conftest.er1
23031   cat conftest.err >&5
23032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033   (exit $ac_status); } &&
23034          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036   (eval $ac_try) 2>&5
23037   ac_status=$?
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); }; } &&
23040          { ac_try='test -s conftest.$ac_objext'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; }; then
23046   ac_header_compiler=yes
23047 else
23048   echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23050
23051 ac_header_compiler=no
23052 fi
23053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23055 echo "${ECHO_T}$ac_header_compiler" >&6
23056
23057 # Is the header present?
23058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23060 cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h.  */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h.  */
23066 #include <$ac_header>
23067 _ACEOF
23068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23070   ac_status=$?
23071   grep -v '^ *+' conftest.er1 >conftest.err
23072   rm -f conftest.er1
23073   cat conftest.err >&5
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); } >/dev/null; then
23076   if test -s conftest.err; then
23077     ac_cpp_err=$ac_cxx_preproc_warn_flag
23078     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23079   else
23080     ac_cpp_err=
23081   fi
23082 else
23083   ac_cpp_err=yes
23084 fi
23085 if test -z "$ac_cpp_err"; then
23086   ac_header_preproc=yes
23087 else
23088   echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091   ac_header_preproc=no
23092 fi
23093 rm -f conftest.err conftest.$ac_ext
23094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23095 echo "${ECHO_T}$ac_header_preproc" >&6
23096
23097 # So?  What about this header?
23098 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23099   yes:no: )
23100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23104     ac_header_preproc=yes
23105     ;;
23106   no:yes:* )
23107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23119     (
23120       cat <<\_ASBOX
23121 ## ----------------------------------------- ##
23122 ## Report this to wx-dev@lists.wxwidgets.org ##
23123 ## ----------------------------------------- ##
23124 _ASBOX
23125     ) |
23126       sed "s/^/$as_me: WARNING:     /" >&2
23127     ;;
23128 esac
23129 echo "$as_me:$LINENO: checking for $ac_header" >&5
23130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23132   echo $ECHO_N "(cached) $ECHO_C" >&6
23133 else
23134   eval "$as_ac_Header=\$ac_header_preproc"
23135 fi
23136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23138
23139 fi
23140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23141   cat >>confdefs.h <<_ACEOF
23142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23143 _ACEOF
23144
23145 fi
23146
23147 done
23148
23149
23150     if test "$ac_cv_header_iostream" = "yes" ; then
23151       :
23152     else
23153       cat >>confdefs.h <<\_ACEOF
23154 #define wxUSE_IOSTREAMH 1
23155 _ACEOF
23156
23157     fi
23158
23159     ac_ext=cc
23160 ac_cpp='$CXXCPP $CPPFLAGS'
23161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23164
23165
23166
23167
23168   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23169 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23170 if test "${wx_cv_cpp_bool+set}" = set; then
23171   echo $ECHO_N "(cached) $ECHO_C" >&6
23172 else
23173
23174
23175
23176     ac_ext=cc
23177 ac_cpp='$CXXCPP $CPPFLAGS'
23178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23181
23182
23183     cat >conftest.$ac_ext <<_ACEOF
23184 /* confdefs.h.  */
23185 _ACEOF
23186 cat confdefs.h >>conftest.$ac_ext
23187 cat >>conftest.$ac_ext <<_ACEOF
23188 /* end confdefs.h.  */
23189
23190
23191 int
23192 main ()
23193 {
23194
23195         bool b = true;
23196
23197         return 0;
23198
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext
23204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23205   (eval $ac_compile) 2>conftest.er1
23206   ac_status=$?
23207   grep -v '^ *+' conftest.er1 >conftest.err
23208   rm -f conftest.er1
23209   cat conftest.err >&5
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); } &&
23212          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214   (eval $ac_try) 2>&5
23215   ac_status=$?
23216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217   (exit $ac_status); }; } &&
23218          { ac_try='test -s conftest.$ac_objext'
23219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220   (eval $ac_try) 2>&5
23221   ac_status=$?
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); }; }; then
23224
23225         wx_cv_cpp_bool=yes
23226
23227 else
23228   echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.$ac_ext >&5
23230
23231
23232         wx_cv_cpp_bool=no
23233
23234
23235 fi
23236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23237
23238     ac_ext=cc
23239 ac_cpp='$CXXCPP $CPPFLAGS'
23240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23243
23244
23245 fi
23246 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23247 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23248
23249   if test "$wx_cv_cpp_bool" = "yes"; then
23250     cat >>confdefs.h <<\_ACEOF
23251 #define HAVE_BOOL 1
23252 _ACEOF
23253
23254   fi
23255
23256
23257
23258   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23259 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23260 if test "${wx_cv_explicit+set}" = set; then
23261   echo $ECHO_N "(cached) $ECHO_C" >&6
23262 else
23263
23264
23265
23266     ac_ext=cc
23267 ac_cpp='$CXXCPP $CPPFLAGS'
23268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23271
23272
23273             cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279
23280         class Foo { public: explicit Foo(int) {} };
23281
23282 int
23283 main ()
23284 {
23285
23286         return 0;
23287
23288   ;
23289   return 0;
23290 }
23291 _ACEOF
23292 rm -f conftest.$ac_objext
23293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23294   (eval $ac_compile) 2>conftest.er1
23295   ac_status=$?
23296   grep -v '^ *+' conftest.er1 >conftest.err
23297   rm -f conftest.er1
23298   cat conftest.err >&5
23299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300   (exit $ac_status); } &&
23301          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23303   (eval $ac_try) 2>&5
23304   ac_status=$?
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); }; } &&
23307          { ac_try='test -s conftest.$ac_objext'
23308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309   (eval $ac_try) 2>&5
23310   ac_status=$?
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); }; }; then
23313
23314         cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h.  */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h.  */
23320
23321                 class Foo { public: explicit Foo(int) {} };
23322                 static void TakeFoo(const Foo& foo) { }
23323
23324 int
23325 main ()
23326 {
23327
23328                 TakeFoo(17);
23329                 return 0;
23330
23331   ;
23332   return 0;
23333 }
23334 _ACEOF
23335 rm -f conftest.$ac_objext
23336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23337   (eval $ac_compile) 2>conftest.er1
23338   ac_status=$?
23339   grep -v '^ *+' conftest.er1 >conftest.err
23340   rm -f conftest.er1
23341   cat conftest.err >&5
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); } &&
23344          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346   (eval $ac_try) 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; } &&
23350          { ac_try='test -s conftest.$ac_objext'
23351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352   (eval $ac_try) 2>&5
23353   ac_status=$?
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); }; }; then
23356   wx_cv_explicit=no
23357 else
23358   echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23360
23361 wx_cv_explicit=yes
23362
23363 fi
23364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23365
23366 else
23367   echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23369
23370 wx_cv_explicit=no
23371
23372 fi
23373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23374
23375     ac_ext=cc
23376 ac_cpp='$CXXCPP $CPPFLAGS'
23377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23380
23381
23382 fi
23383 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23384 echo "${ECHO_T}$wx_cv_explicit" >&6
23385
23386   if test "$wx_cv_explicit" = "yes"; then
23387     cat >>confdefs.h <<\_ACEOF
23388 #define HAVE_EXPLICIT 1
23389 _ACEOF
23390
23391   fi
23392
23393
23394 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23395 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23396 if test "${ac_cv_cxx_const_cast+set}" = set; then
23397   echo $ECHO_N "(cached) $ECHO_C" >&6
23398 else
23399
23400
23401  ac_ext=cc
23402 ac_cpp='$CXXCPP $CPPFLAGS'
23403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23406
23407  cat >conftest.$ac_ext <<_ACEOF
23408 /* confdefs.h.  */
23409 _ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h.  */
23413
23414 int
23415 main ()
23416 {
23417 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23418   ;
23419   return 0;
23420 }
23421 _ACEOF
23422 rm -f conftest.$ac_objext
23423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23424   (eval $ac_compile) 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } &&
23431          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433   (eval $ac_try) 2>&5
23434   ac_status=$?
23435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436   (exit $ac_status); }; } &&
23437          { ac_try='test -s conftest.$ac_objext'
23438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439   (eval $ac_try) 2>&5
23440   ac_status=$?
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); }; }; then
23443   ac_cv_cxx_const_cast=yes
23444 else
23445   echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23447
23448 ac_cv_cxx_const_cast=no
23449 fi
23450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23451  ac_ext=cc
23452 ac_cpp='$CXXCPP $CPPFLAGS'
23453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23456
23457
23458 fi
23459 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23460 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23461 if test "$ac_cv_cxx_const_cast" = yes; then
23462
23463 cat >>confdefs.h <<\_ACEOF
23464 #define HAVE_CONST_CAST
23465 _ACEOF
23466
23467 fi
23468
23469 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23470 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23471 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23472   echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474
23475
23476  ac_ext=cc
23477 ac_cpp='$CXXCPP $CPPFLAGS'
23478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23481
23482  cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h.  */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h.  */
23488 #include <typeinfo>
23489 class Base { public : Base () {} virtual void f () = 0;};
23490 class Derived : public Base { public : Derived () {} virtual void f () {} };
23491 class Unrelated { public : Unrelated () {} };
23492 int g (Unrelated&) { return 0; }
23493 int
23494 main ()
23495 {
23496
23497 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23498   ;
23499   return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest.$ac_objext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23504   (eval $ac_compile) 2>conftest.er1
23505   ac_status=$?
23506   grep -v '^ *+' conftest.er1 >conftest.err
23507   rm -f conftest.er1
23508   cat conftest.err >&5
23509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); } &&
23511          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513   (eval $ac_try) 2>&5
23514   ac_status=$?
23515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516   (exit $ac_status); }; } &&
23517          { ac_try='test -s conftest.$ac_objext'
23518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519   (eval $ac_try) 2>&5
23520   ac_status=$?
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); }; }; then
23523   ac_cv_cxx_reinterpret_cast=yes
23524 else
23525   echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23527
23528 ac_cv_cxx_reinterpret_cast=no
23529 fi
23530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23531  ac_ext=cc
23532 ac_cpp='$CXXCPP $CPPFLAGS'
23533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23536
23537
23538 fi
23539 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23540 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23541 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23542
23543 cat >>confdefs.h <<\_ACEOF
23544 #define HAVE_REINTERPRET_CAST
23545 _ACEOF
23546
23547 fi
23548
23549 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23550 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23551 if test "${ac_cv_cxx_static_cast+set}" = set; then
23552   echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554
23555
23556  ac_ext=cc
23557 ac_cpp='$CXXCPP $CPPFLAGS'
23558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23561
23562  cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h.  */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h.  */
23568 #include <typeinfo>
23569 class Base { public : Base () {} virtual void f () = 0; };
23570 class Derived : public Base { public : Derived () {} virtual void f () {} };
23571 int g (Derived&) { return 0; }
23572 int
23573 main ()
23574 {
23575
23576 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23577   ;
23578   return 0;
23579 }
23580 _ACEOF
23581 rm -f conftest.$ac_objext
23582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23583   (eval $ac_compile) 2>conftest.er1
23584   ac_status=$?
23585   grep -v '^ *+' conftest.er1 >conftest.err
23586   rm -f conftest.er1
23587   cat conftest.err >&5
23588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); } &&
23590          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592   (eval $ac_try) 2>&5
23593   ac_status=$?
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); }; } &&
23596          { ac_try='test -s conftest.$ac_objext'
23597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598   (eval $ac_try) 2>&5
23599   ac_status=$?
23600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601   (exit $ac_status); }; }; then
23602   ac_cv_cxx_static_cast=yes
23603 else
23604   echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23606
23607 ac_cv_cxx_static_cast=no
23608 fi
23609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23610  ac_ext=cc
23611 ac_cpp='$CXXCPP $CPPFLAGS'
23612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23615
23616
23617 fi
23618 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23619 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23620 if test "$ac_cv_cxx_static_cast" = yes; then
23621
23622 cat >>confdefs.h <<\_ACEOF
23623 #define HAVE_STATIC_CAST
23624 _ACEOF
23625
23626 fi
23627
23628
23629 if test "x$SUNCXX" = xyes; then
23630     CXXFLAGS="-features=tmplife $CXXFLAGS"
23631 fi
23632
23633 if test "x$SUNCC" = xyes; then
23634     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23635 fi
23636
23637 if test "x$SGICC" = "xyes"; then
23638     CFLAGS="-woff 3970 $CFLAGS"
23639 fi
23640 if test "x$SGICXX" = "xyes"; then
23641     CXXFLAGS="-woff 3970 $CXXFLAGS"
23642 fi
23643
23644 if test "x$HPCC" = "xyes"; then
23645                     CFLAGS="+W 2011,2450 $CFLAGS"
23646 fi
23647 if test "x$HPCXX" = "xyes"; then
23648             CXXFLAGS="+W 2340 $CXXFLAGS"
23649 fi
23650
23651 if test "x$COMPAQCXX" = "xyes"; then
23652                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23653 fi
23654
23655 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23656     if test "$wxUSE_UNICODE" = "yes"; then
23657         std_string="std::wstring"
23658         char_type="wchar_t"
23659     else
23660         std_string="std::string"
23661         char_type="char"
23662     fi
23663
23664         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23665 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23666     cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h.  */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h.  */
23672 #include <string>
23673 int
23674 main ()
23675 {
23676 $std_string foo;
23677   ;
23678   return 0;
23679 }
23680 _ACEOF
23681 rm -f conftest.$ac_objext
23682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23683   (eval $ac_compile) 2>conftest.er1
23684   ac_status=$?
23685   grep -v '^ *+' conftest.er1 >conftest.err
23686   rm -f conftest.er1
23687   cat conftest.err >&5
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); } &&
23690          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692   (eval $ac_try) 2>&5
23693   ac_status=$?
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); }; } &&
23696          { ac_try='test -s conftest.$ac_objext'
23697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698   (eval $ac_try) 2>&5
23699   ac_status=$?
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); }; }; then
23702   echo "$as_me:$LINENO: result: yes" >&5
23703 echo "${ECHO_T}yes" >&6
23704                     cat >>confdefs.h <<\_ACEOF
23705 #define HAVE_STD_WSTRING 1
23706 _ACEOF
23707
23708 else
23709   echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23711
23712 echo "$as_me:$LINENO: result: no" >&5
23713 echo "${ECHO_T}no" >&6
23714                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23715 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23716                     cat >conftest.$ac_ext <<_ACEOF
23717 /* confdefs.h.  */
23718 _ACEOF
23719 cat confdefs.h >>conftest.$ac_ext
23720 cat >>conftest.$ac_ext <<_ACEOF
23721 /* end confdefs.h.  */
23722
23723                         #ifdef HAVE_WCHAR_H
23724                         #  ifdef __CYGWIN__
23725                         #    include <stddef.h>
23726                         #  endif
23727                         #  include <wchar.h>
23728                         #endif
23729                         #ifdef HAVE_STDLIB_H
23730                         #  include <stdlib.h>
23731                         #endif
23732                         #include <stdio.h>
23733                         #include <string>
23734
23735 int
23736 main ()
23737 {
23738 std::basic_string<$char_type> foo;
23739                          const $char_type* dummy = foo.c_str();
23740   ;
23741   return 0;
23742 }
23743 _ACEOF
23744 rm -f conftest.$ac_objext
23745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23746   (eval $ac_compile) 2>conftest.er1
23747   ac_status=$?
23748   grep -v '^ *+' conftest.er1 >conftest.err
23749   rm -f conftest.er1
23750   cat conftest.err >&5
23751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); } &&
23753          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755   (eval $ac_try) 2>&5
23756   ac_status=$?
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); }; } &&
23759          { ac_try='test -s conftest.$ac_objext'
23760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23761   (eval $ac_try) 2>&5
23762   ac_status=$?
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); }; }; then
23765   echo "$as_me:$LINENO: result: yes" >&5
23766 echo "${ECHO_T}yes" >&6
23767 else
23768   echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23770
23771 echo "$as_me:$LINENO: result: no" >&5
23772 echo "${ECHO_T}no" >&6
23773                          if test "$wxUSE_STL" = "yes"; then
23774                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23775 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23776    { (exit 1); exit 1; }; }
23777                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23778                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23779 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23780    { (exit 1); exit 1; }; }
23781                          else
23782                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23783 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23784                              wxUSE_STD_STRING=no
23785                          fi
23786
23787
23788 fi
23789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23790
23791 fi
23792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23793 fi
23794
23795 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23796     echo "$as_me:$LINENO: checking for std::istream" >&5
23797 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23798 if test "${ac_cv_type_std__istream+set}" = set; then
23799   echo $ECHO_N "(cached) $ECHO_C" >&6
23800 else
23801   cat >conftest.$ac_ext <<_ACEOF
23802 /* confdefs.h.  */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h.  */
23807 #include <iostream>
23808
23809 int
23810 main ()
23811 {
23812 if ((std::istream *) 0)
23813   return 0;
23814 if (sizeof (std::istream))
23815   return 0;
23816   ;
23817   return 0;
23818 }
23819 _ACEOF
23820 rm -f conftest.$ac_objext
23821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23822   (eval $ac_compile) 2>conftest.er1
23823   ac_status=$?
23824   grep -v '^ *+' conftest.er1 >conftest.err
23825   rm -f conftest.er1
23826   cat conftest.err >&5
23827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); } &&
23829          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831   (eval $ac_try) 2>&5
23832   ac_status=$?
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); }; } &&
23835          { ac_try='test -s conftest.$ac_objext'
23836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837   (eval $ac_try) 2>&5
23838   ac_status=$?
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); }; }; then
23841   ac_cv_type_std__istream=yes
23842 else
23843   echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23845
23846 ac_cv_type_std__istream=no
23847 fi
23848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23849 fi
23850 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23851 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23852 if test $ac_cv_type_std__istream = yes; then
23853
23854 cat >>confdefs.h <<_ACEOF
23855 #define HAVE_STD__ISTREAM 1
23856 _ACEOF
23857
23858
23859 else
23860   wxUSE_STD_IOSTREAM=no
23861 fi
23862 echo "$as_me:$LINENO: checking for std::ostream" >&5
23863 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23864 if test "${ac_cv_type_std__ostream+set}" = set; then
23865   echo $ECHO_N "(cached) $ECHO_C" >&6
23866 else
23867   cat >conftest.$ac_ext <<_ACEOF
23868 /* confdefs.h.  */
23869 _ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h.  */
23873 #include <iostream>
23874
23875 int
23876 main ()
23877 {
23878 if ((std::ostream *) 0)
23879   return 0;
23880 if (sizeof (std::ostream))
23881   return 0;
23882   ;
23883   return 0;
23884 }
23885 _ACEOF
23886 rm -f conftest.$ac_objext
23887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23888   (eval $ac_compile) 2>conftest.er1
23889   ac_status=$?
23890   grep -v '^ *+' conftest.er1 >conftest.err
23891   rm -f conftest.er1
23892   cat conftest.err >&5
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); } &&
23895          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23897   (eval $ac_try) 2>&5
23898   ac_status=$?
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); }; } &&
23901          { ac_try='test -s conftest.$ac_objext'
23902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903   (eval $ac_try) 2>&5
23904   ac_status=$?
23905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906   (exit $ac_status); }; }; then
23907   ac_cv_type_std__ostream=yes
23908 else
23909   echo "$as_me: failed program was:" >&5
23910 sed 's/^/| /' conftest.$ac_ext >&5
23911
23912 ac_cv_type_std__ostream=no
23913 fi
23914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23915 fi
23916 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23917 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23918 if test $ac_cv_type_std__ostream = yes; then
23919
23920 cat >>confdefs.h <<_ACEOF
23921 #define HAVE_STD__OSTREAM 1
23922 _ACEOF
23923
23924
23925 else
23926   wxUSE_STD_IOSTREAM=no
23927 fi
23928
23929
23930     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
23931         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23932             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23933 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23934    { (exit 1); exit 1; }; }
23935         else
23936             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
23937 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
23938         fi
23939     fi
23940 fi
23941
23942 if test "$wxUSE_STL" = "yes"; then
23943         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23944 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
23945     cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h.  */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h.  */
23951 #include <string>
23952                     #include <functional>
23953                     #include <algorithm>
23954                     #include <vector>
23955                     #include <list>
23956 int
23957 main ()
23958 {
23959 std::vector<int> moo;
23960                      std::list<int> foo;
23961                      std::vector<int>::iterator it =
23962                          std::find_if(moo.begin(), moo.end(),
23963                                       std::bind2nd(std::less<int>(), 3));
23964   ;
23965   return 0;
23966 }
23967 _ACEOF
23968 rm -f conftest.$ac_objext
23969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23970   (eval $ac_compile) 2>conftest.er1
23971   ac_status=$?
23972   grep -v '^ *+' conftest.er1 >conftest.err
23973   rm -f conftest.er1
23974   cat conftest.err >&5
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); } &&
23977          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23979   (eval $ac_try) 2>&5
23980   ac_status=$?
23981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); }; } &&
23983          { ac_try='test -s conftest.$ac_objext'
23984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23985   (eval $ac_try) 2>&5
23986   ac_status=$?
23987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988   (exit $ac_status); }; }; then
23989   echo "$as_me:$LINENO: result: yes" >&5
23990 echo "${ECHO_T}yes" >&6
23991 else
23992   echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23994
23995 echo "$as_me:$LINENO: result: no" >&5
23996 echo "${ECHO_T}no" >&6
23997                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23998 echo "$as_me: error: Basic STL functionality missing" >&2;}
23999    { (exit 1); exit 1; }; }
24000 fi
24001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24002
24003         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24004 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24005     cat >conftest.$ac_ext <<_ACEOF
24006 /* confdefs.h.  */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h.  */
24011 #include <string>
24012 int
24013 main ()
24014 {
24015 std::string foo, bar;
24016                     foo.compare(bar);
24017                     foo.compare(1, 1, bar);
24018                     foo.compare(1, 1, bar, 1, 1);
24019                     foo.compare("");
24020                     foo.compare(1, 1, "");
24021                     foo.compare(1, 1, "", 2);
24022   ;
24023   return 0;
24024 }
24025 _ACEOF
24026 rm -f conftest.$ac_objext
24027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24028   (eval $ac_compile) 2>conftest.er1
24029   ac_status=$?
24030   grep -v '^ *+' conftest.er1 >conftest.err
24031   rm -f conftest.er1
24032   cat conftest.err >&5
24033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034   (exit $ac_status); } &&
24035          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24037   (eval $ac_try) 2>&5
24038   ac_status=$?
24039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040   (exit $ac_status); }; } &&
24041          { ac_try='test -s conftest.$ac_objext'
24042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24043   (eval $ac_try) 2>&5
24044   ac_status=$?
24045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046   (exit $ac_status); }; }; then
24047   echo "$as_me:$LINENO: result: yes" >&5
24048 echo "${ECHO_T}yes" >&6
24049                     cat >>confdefs.h <<\_ACEOF
24050 #define HAVE_STD_STRING_COMPARE 1
24051 _ACEOF
24052
24053 else
24054   echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24056
24057 echo "$as_me:$LINENO: result: no" >&5
24058 echo "${ECHO_T}no" >&6
24059 fi
24060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24061
24062         if test "${ac_cv_header_hash_map+set}" = set; then
24063   echo "$as_me:$LINENO: checking for hash_map" >&5
24064 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24065 if test "${ac_cv_header_hash_map+set}" = set; then
24066   echo $ECHO_N "(cached) $ECHO_C" >&6
24067 fi
24068 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24069 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24070 else
24071   # Is the header compilable?
24072 echo "$as_me:$LINENO: checking hash_map usability" >&5
24073 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24074 cat >conftest.$ac_ext <<_ACEOF
24075 /* confdefs.h.  */
24076 _ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h.  */
24080 $ac_includes_default
24081 #include <hash_map>
24082 _ACEOF
24083 rm -f conftest.$ac_objext
24084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24085   (eval $ac_compile) 2>conftest.er1
24086   ac_status=$?
24087   grep -v '^ *+' conftest.er1 >conftest.err
24088   rm -f conftest.er1
24089   cat conftest.err >&5
24090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); } &&
24092          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094   (eval $ac_try) 2>&5
24095   ac_status=$?
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); }; } &&
24098          { ac_try='test -s conftest.$ac_objext'
24099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100   (eval $ac_try) 2>&5
24101   ac_status=$?
24102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); }; }; then
24104   ac_header_compiler=yes
24105 else
24106   echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24108
24109 ac_header_compiler=no
24110 fi
24111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24113 echo "${ECHO_T}$ac_header_compiler" >&6
24114
24115 # Is the header present?
24116 echo "$as_me:$LINENO: checking hash_map presence" >&5
24117 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24118 cat >conftest.$ac_ext <<_ACEOF
24119 /* confdefs.h.  */
24120 _ACEOF
24121 cat confdefs.h >>conftest.$ac_ext
24122 cat >>conftest.$ac_ext <<_ACEOF
24123 /* end confdefs.h.  */
24124 #include <hash_map>
24125 _ACEOF
24126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24128   ac_status=$?
24129   grep -v '^ *+' conftest.er1 >conftest.err
24130   rm -f conftest.er1
24131   cat conftest.err >&5
24132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133   (exit $ac_status); } >/dev/null; then
24134   if test -s conftest.err; then
24135     ac_cpp_err=$ac_cxx_preproc_warn_flag
24136     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24137   else
24138     ac_cpp_err=
24139   fi
24140 else
24141   ac_cpp_err=yes
24142 fi
24143 if test -z "$ac_cpp_err"; then
24144   ac_header_preproc=yes
24145 else
24146   echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.$ac_ext >&5
24148
24149   ac_header_preproc=no
24150 fi
24151 rm -f conftest.err conftest.$ac_ext
24152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24153 echo "${ECHO_T}$ac_header_preproc" >&6
24154
24155 # So?  What about this header?
24156 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24157   yes:no: )
24158     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24159 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
24160     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24161 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24162     ac_header_preproc=yes
24163     ;;
24164   no:yes:* )
24165     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24166 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
24167     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
24168 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
24169     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24170 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24171     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
24172 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
24173     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24174 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
24175     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24176 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
24177     (
24178       cat <<\_ASBOX
24179 ## ----------------------------------------- ##
24180 ## Report this to wx-dev@lists.wxwidgets.org ##
24181 ## ----------------------------------------- ##
24182 _ASBOX
24183     ) |
24184       sed "s/^/$as_me: WARNING:     /" >&2
24185     ;;
24186 esac
24187 echo "$as_me:$LINENO: checking for hash_map" >&5
24188 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24189 if test "${ac_cv_header_hash_map+set}" = set; then
24190   echo $ECHO_N "(cached) $ECHO_C" >&6
24191 else
24192   ac_cv_header_hash_map=$ac_header_preproc
24193 fi
24194 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24195 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24196
24197 fi
24198 if test $ac_cv_header_hash_map = yes; then
24199   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24200 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24201                      cat >conftest.$ac_ext <<_ACEOF
24202 /* confdefs.h.  */
24203 _ACEOF
24204 cat confdefs.h >>conftest.$ac_ext
24205 cat >>conftest.$ac_ext <<_ACEOF
24206 /* end confdefs.h.  */
24207 #include <hash_map>
24208                                      #include <hash_set>
24209 int
24210 main ()
24211 {
24212 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24213                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24214   ;
24215   return 0;
24216 }
24217 _ACEOF
24218 rm -f conftest.$ac_objext
24219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24220   (eval $ac_compile) 2>conftest.er1
24221   ac_status=$?
24222   grep -v '^ *+' conftest.er1 >conftest.err
24223   rm -f conftest.er1
24224   cat conftest.err >&5
24225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226   (exit $ac_status); } &&
24227          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229   (eval $ac_try) 2>&5
24230   ac_status=$?
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); }; } &&
24233          { ac_try='test -s conftest.$ac_objext'
24234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24235   (eval $ac_try) 2>&5
24236   ac_status=$?
24237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238   (exit $ac_status); }; }; then
24239   echo "$as_me:$LINENO: result: yes" >&5
24240 echo "${ECHO_T}yes" >&6
24241                                      cat >>confdefs.h <<\_ACEOF
24242 #define HAVE_HASH_MAP 1
24243 _ACEOF
24244
24245                                      cat >>confdefs.h <<\_ACEOF
24246 #define HAVE_STD_HASH_MAP 1
24247 _ACEOF
24248
24249 else
24250   echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253 echo "$as_me:$LINENO: result: no" >&5
24254 echo "${ECHO_T}no" >&6
24255 fi
24256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24257
24258 fi
24259
24260
24261
24262     if test "${ac_cv_header_ext_hash_map+set}" = set; then
24263   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24264 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24265 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24266   echo $ECHO_N "(cached) $ECHO_C" >&6
24267 fi
24268 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24269 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24270 else
24271   # Is the header compilable?
24272 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24273 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24274 cat >conftest.$ac_ext <<_ACEOF
24275 /* confdefs.h.  */
24276 _ACEOF
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h.  */
24280 $ac_includes_default
24281 #include <ext/hash_map>
24282 _ACEOF
24283 rm -f conftest.$ac_objext
24284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24285   (eval $ac_compile) 2>conftest.er1
24286   ac_status=$?
24287   grep -v '^ *+' conftest.er1 >conftest.err
24288   rm -f conftest.er1
24289   cat conftest.err >&5
24290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291   (exit $ac_status); } &&
24292          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294   (eval $ac_try) 2>&5
24295   ac_status=$?
24296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297   (exit $ac_status); }; } &&
24298          { ac_try='test -s conftest.$ac_objext'
24299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300   (eval $ac_try) 2>&5
24301   ac_status=$?
24302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303   (exit $ac_status); }; }; then
24304   ac_header_compiler=yes
24305 else
24306   echo "$as_me: failed program was:" >&5
24307 sed 's/^/| /' conftest.$ac_ext >&5
24308
24309 ac_header_compiler=no
24310 fi
24311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24313 echo "${ECHO_T}$ac_header_compiler" >&6
24314
24315 # Is the header present?
24316 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24317 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24318 cat >conftest.$ac_ext <<_ACEOF
24319 /* confdefs.h.  */
24320 _ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h.  */
24324 #include <ext/hash_map>
24325 _ACEOF
24326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24328   ac_status=$?
24329   grep -v '^ *+' conftest.er1 >conftest.err
24330   rm -f conftest.er1
24331   cat conftest.err >&5
24332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333   (exit $ac_status); } >/dev/null; then
24334   if test -s conftest.err; then
24335     ac_cpp_err=$ac_cxx_preproc_warn_flag
24336     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24337   else
24338     ac_cpp_err=
24339   fi
24340 else
24341   ac_cpp_err=yes
24342 fi
24343 if test -z "$ac_cpp_err"; then
24344   ac_header_preproc=yes
24345 else
24346   echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24348
24349   ac_header_preproc=no
24350 fi
24351 rm -f conftest.err conftest.$ac_ext
24352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24353 echo "${ECHO_T}$ac_header_preproc" >&6
24354
24355 # So?  What about this header?
24356 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24357   yes:no: )
24358     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24359 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
24360     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24361 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24362     ac_header_preproc=yes
24363     ;;
24364   no:yes:* )
24365     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24366 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
24367     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
24368 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
24369     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24370 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24371     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
24372 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
24373     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24374 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
24375     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24376 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
24377     (
24378       cat <<\_ASBOX
24379 ## ----------------------------------------- ##
24380 ## Report this to wx-dev@lists.wxwidgets.org ##
24381 ## ----------------------------------------- ##
24382 _ASBOX
24383     ) |
24384       sed "s/^/$as_me: WARNING:     /" >&2
24385     ;;
24386 esac
24387 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24388 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24389 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24390   echo $ECHO_N "(cached) $ECHO_C" >&6
24391 else
24392   ac_cv_header_ext_hash_map=$ac_header_preproc
24393 fi
24394 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24395 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24396
24397 fi
24398 if test $ac_cv_header_ext_hash_map = yes; then
24399   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24400 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24401                      cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h.  */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h.  */
24407 #include <ext/hash_map>
24408                                      #include <ext/hash_set>
24409 int
24410 main ()
24411 {
24412 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24413                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24414   ;
24415   return 0;
24416 }
24417 _ACEOF
24418 rm -f conftest.$ac_objext
24419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24420   (eval $ac_compile) 2>conftest.er1
24421   ac_status=$?
24422   grep -v '^ *+' conftest.er1 >conftest.err
24423   rm -f conftest.er1
24424   cat conftest.err >&5
24425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426   (exit $ac_status); } &&
24427          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24429   (eval $ac_try) 2>&5
24430   ac_status=$?
24431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432   (exit $ac_status); }; } &&
24433          { ac_try='test -s conftest.$ac_objext'
24434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24435   (eval $ac_try) 2>&5
24436   ac_status=$?
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); }; }; then
24439   echo "$as_me:$LINENO: result: yes" >&5
24440 echo "${ECHO_T}yes" >&6
24441                                      cat >>confdefs.h <<\_ACEOF
24442 #define HAVE_EXT_HASH_MAP 1
24443 _ACEOF
24444
24445                                      cat >>confdefs.h <<\_ACEOF
24446 #define HAVE_GNU_CXX_HASH_MAP 1
24447 _ACEOF
24448
24449 else
24450   echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24452
24453 echo "$as_me:$LINENO: result: no" >&5
24454 echo "${ECHO_T}no" >&6
24455 fi
24456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24457
24458 fi
24459
24460
24461 fi
24462
24463
24464 SEARCH_INCLUDE="\
24465     /usr/local/include        \
24466                               \
24467     /usr/Motif-2.1/include    \
24468     /usr/Motif-1.2/include    \
24469     /usr/include/Motif1.2     \
24470                               \
24471     /usr/dt/include           \
24472     /usr/openwin/include      \
24473                               \
24474     /usr/include/Xm           \
24475                               \
24476     /usr/X11R6/include        \
24477     /usr/X11R6.4/include      \
24478     /usr/X11R5/include        \
24479     /usr/X11R4/include        \
24480                               \
24481     /usr/include/X11R6        \
24482     /usr/include/X11R5        \
24483     /usr/include/X11R4        \
24484                               \
24485     /usr/local/X11R6/include  \
24486     /usr/local/X11R5/include  \
24487     /usr/local/X11R4/include  \
24488                               \
24489     /usr/local/include/X11R6  \
24490     /usr/local/include/X11R5  \
24491     /usr/local/include/X11R4  \
24492                               \
24493     /usr/X11/include          \
24494     /usr/include/X11          \
24495     /usr/local/X11/include    \
24496     /usr/local/include/X11    \
24497                               \
24498     /usr/XFree86/include/X11  \
24499     /usr/pkg/include          \
24500                               \
24501     /usr/openwin/share/include"
24502
24503 echo "$as_me:$LINENO: checking for libraries directory" >&5
24504 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
24505
24506 case "${host}" in
24507     *-*-irix6* )
24508         if test "${wx_cv_std_libpath+set}" = set; then
24509   echo $ECHO_N "(cached) $ECHO_C" >&6
24510 else
24511
24512                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24513                     for e in a so sl dylib dll.a; do
24514                         libc="$d/libc.$e"
24515                         if test -f $libc; then
24516                             save_LIBS="$LIBS"
24517                             LIBS="$libc"
24518                             cat >conftest.$ac_ext <<_ACEOF
24519 int main() { return 0; }
24520 _ACEOF
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24523   (eval $ac_link) 2>conftest.er1
24524   ac_status=$?
24525   grep -v '^ *+' conftest.er1 >conftest.err
24526   rm -f conftest.er1
24527   cat conftest.err >&5
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); } &&
24530          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532   (eval $ac_try) 2>&5
24533   ac_status=$?
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); }; } &&
24536          { ac_try='test -s conftest$ac_exeext'
24537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538   (eval $ac_try) 2>&5
24539   ac_status=$?
24540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541   (exit $ac_status); }; }; then
24542   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24543 else
24544   echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24546
24547 fi
24548 rm -f conftest.err conftest.$ac_objext \
24549       conftest$ac_exeext conftest.$ac_ext
24550                             LIBS="$save_LIBS"
24551                             if test "x$wx_cv_std_libpath" != "x"; then
24552                                 break 2
24553                             fi
24554                         fi
24555                     done
24556                 done
24557                 if test "x$wx_cv_std_libpath" = "x"; then
24558                     wx_cv_std_libpath="lib"
24559                 fi
24560
24561
24562 fi
24563
24564         ;;
24565
24566     *-*-solaris2* )
24567                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24568             wx_cv_std_libpath="lib/64"
24569         else
24570             wx_cv_std_libpath="lib"
24571         fi
24572         ;;
24573
24574     *-*-linux* )
24575                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24576                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24577             wx_cv_std_libpath="lib64"
24578         else
24579             wx_cv_std_libpath="lib"
24580         fi
24581         ;;
24582
24583     *)
24584         wx_cv_std_libpath="lib";
24585         ;;
24586 esac
24587
24588 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24589 echo "${ECHO_T}$wx_cv_std_libpath" >&6
24590
24591 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24592
24593 if test "$build" != "$host" -a "$GCC" = yes; then
24594                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24595         cross_root=`dirname $cross_root`
24596         cross_root=`dirname $cross_root`
24597
24598                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24599         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24600         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24601
24602                 if test -z "$PKG_CONFIG_PATH"; then
24603             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24604             export PKG_CONFIG_PATH
24605         fi
24606
24607                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24608
24609 ac_find_includes=
24610 for ac_dir in $SEARCH_INCLUDE /usr/include;
24611   do
24612     if test -f "$ac_dir/X11/Intrinsic.h"; then
24613       ac_find_includes=$ac_dir
24614       break
24615     fi
24616   done
24617
24618             x_includes=$ac_find_includes
24619         fi
24620         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24621
24622   ac_find_libraries=
24623   for ac_dir in $SEARCH_LIB;
24624   do
24625     for ac_extension in a so sl dylib dll.a; do
24626       if test -f "$ac_dir/libXt.$ac_extension"; then
24627         ac_find_libraries=$ac_dir
24628         break 2
24629       fi
24630     done
24631   done
24632
24633             x_libraries=$ac_find_libraries
24634         fi
24635     fi
24636 fi
24637
24638
24639 cat >confcache <<\_ACEOF
24640 # This file is a shell script that caches the results of configure
24641 # tests run on this system so they can be shared between configure
24642 # scripts and configure runs, see configure's option --config-cache.
24643 # It is not useful on other systems.  If it contains results you don't
24644 # want to keep, you may remove or edit it.
24645 #
24646 # config.status only pays attention to the cache file if you give it
24647 # the --recheck option to rerun configure.
24648 #
24649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24651 # following values.
24652
24653 _ACEOF
24654
24655 # The following way of writing the cache mishandles newlines in values,
24656 # but we know of no workaround that is simple, portable, and efficient.
24657 # So, don't put newlines in cache variables' values.
24658 # Ultrix sh set writes to stderr and can't be redirected directly,
24659 # and sets the high bit in the cache file unless we assign to the vars.
24660 {
24661   (set) 2>&1 |
24662     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24663     *ac_space=\ *)
24664       # `set' does not quote correctly, so add quotes (double-quote
24665       # substitution turns \\\\ into \\, and sed turns \\ into \).
24666       sed -n \
24667         "s/'/'\\\\''/g;
24668           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24669       ;;
24670     *)
24671       # `set' quotes correctly as required by POSIX, so do not add quotes.
24672       sed -n \
24673         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24674       ;;
24675     esac;
24676 } |
24677   sed '
24678      t clear
24679      : clear
24680      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24681      t end
24682      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24683      : end' >>confcache
24684 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24685   if test -w $cache_file; then
24686     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24687     cat confcache >$cache_file
24688   else
24689     echo "not updating unwritable cache $cache_file"
24690   fi
24691 fi
24692 rm -f confcache
24693
24694 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24695     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24696 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24697 if test "${wx_cv_lib_glibc21+set}" = set; then
24698   echo $ECHO_N "(cached) $ECHO_C" >&6
24699 else
24700
24701         cat >conftest.$ac_ext <<_ACEOF
24702 /* confdefs.h.  */
24703 _ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h.  */
24707 #include <features.h>
24708 int
24709 main ()
24710 {
24711
24712                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24713                 not glibc 2.1
24714                 #endif
24715
24716   ;
24717   return 0;
24718 }
24719 _ACEOF
24720 rm -f conftest.$ac_objext
24721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24722   (eval $ac_compile) 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } &&
24729          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731   (eval $ac_try) 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); }; } &&
24735          { ac_try='test -s conftest.$ac_objext'
24736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737   (eval $ac_try) 2>&5
24738   ac_status=$?
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); }; }; then
24741
24742                 wx_cv_lib_glibc21=yes
24743
24744 else
24745   echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24747
24748
24749                 wx_cv_lib_glibc21=no
24750
24751
24752 fi
24753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24754
24755 fi
24756 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24757 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24758     if test "$wx_cv_lib_glibc21" = "yes"; then
24759         cat >>confdefs.h <<\_ACEOF
24760 #define wxHAVE_GLIBC2 1
24761 _ACEOF
24762
24763     fi
24764 fi
24765
24766 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24767     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24768         cat >>confdefs.h <<\_ACEOF
24769 #define _GNU_SOURCE 1
24770 _ACEOF
24771
24772     fi
24773 fi
24774
24775 have_cos=0
24776 have_floor=0
24777
24778 for ac_func in cos
24779 do
24780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24781 echo "$as_me:$LINENO: checking for $ac_func" >&5
24782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24783 if eval "test \"\${$as_ac_var+set}\" = set"; then
24784   echo $ECHO_N "(cached) $ECHO_C" >&6
24785 else
24786   cat >conftest.$ac_ext <<_ACEOF
24787 /* confdefs.h.  */
24788 _ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h.  */
24792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24794 #define $ac_func innocuous_$ac_func
24795
24796 /* System header to define __stub macros and hopefully few prototypes,
24797     which can conflict with char $ac_func (); below.
24798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24799     <limits.h> exists even on freestanding compilers.  */
24800
24801 #ifdef __STDC__
24802 # include <limits.h>
24803 #else
24804 # include <assert.h>
24805 #endif
24806
24807 #undef $ac_func
24808
24809 /* Override any gcc2 internal prototype to avoid an error.  */
24810 #ifdef __cplusplus
24811 extern "C"
24812 {
24813 #endif
24814 /* We use char because int might match the return type of a gcc2
24815    builtin and then its argument prototype would still apply.  */
24816 char $ac_func ();
24817 /* The GNU C library defines this for functions which it implements
24818     to always fail with ENOSYS.  Some functions are actually named
24819     something starting with __ and the normal name is an alias.  */
24820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24821 choke me
24822 #else
24823 char (*f) () = $ac_func;
24824 #endif
24825 #ifdef __cplusplus
24826 }
24827 #endif
24828
24829 int
24830 main ()
24831 {
24832 return f != $ac_func;
24833   ;
24834   return 0;
24835 }
24836 _ACEOF
24837 rm -f conftest.$ac_objext conftest$ac_exeext
24838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24839   (eval $ac_link) 2>conftest.er1
24840   ac_status=$?
24841   grep -v '^ *+' conftest.er1 >conftest.err
24842   rm -f conftest.er1
24843   cat conftest.err >&5
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); } &&
24846          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848   (eval $ac_try) 2>&5
24849   ac_status=$?
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); }; } &&
24852          { ac_try='test -s conftest$ac_exeext'
24853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24854   (eval $ac_try) 2>&5
24855   ac_status=$?
24856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857   (exit $ac_status); }; }; then
24858   eval "$as_ac_var=yes"
24859 else
24860   echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24862
24863 eval "$as_ac_var=no"
24864 fi
24865 rm -f conftest.err conftest.$ac_objext \
24866       conftest$ac_exeext conftest.$ac_ext
24867 fi
24868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24870 if test `eval echo '${'$as_ac_var'}'` = yes; then
24871   cat >>confdefs.h <<_ACEOF
24872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24873 _ACEOF
24874  have_cos=1
24875 fi
24876 done
24877
24878
24879 for ac_func in floor
24880 do
24881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24882 echo "$as_me:$LINENO: checking for $ac_func" >&5
24883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24884 if eval "test \"\${$as_ac_var+set}\" = set"; then
24885   echo $ECHO_N "(cached) $ECHO_C" >&6
24886 else
24887   cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h.  */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h.  */
24893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24895 #define $ac_func innocuous_$ac_func
24896
24897 /* System header to define __stub macros and hopefully few prototypes,
24898     which can conflict with char $ac_func (); below.
24899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24900     <limits.h> exists even on freestanding compilers.  */
24901
24902 #ifdef __STDC__
24903 # include <limits.h>
24904 #else
24905 # include <assert.h>
24906 #endif
24907
24908 #undef $ac_func
24909
24910 /* Override any gcc2 internal prototype to avoid an error.  */
24911 #ifdef __cplusplus
24912 extern "C"
24913 {
24914 #endif
24915 /* We use char because int might match the return type of a gcc2
24916    builtin and then its argument prototype would still apply.  */
24917 char $ac_func ();
24918 /* The GNU C library defines this for functions which it implements
24919     to always fail with ENOSYS.  Some functions are actually named
24920     something starting with __ and the normal name is an alias.  */
24921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24922 choke me
24923 #else
24924 char (*f) () = $ac_func;
24925 #endif
24926 #ifdef __cplusplus
24927 }
24928 #endif
24929
24930 int
24931 main ()
24932 {
24933 return f != $ac_func;
24934   ;
24935   return 0;
24936 }
24937 _ACEOF
24938 rm -f conftest.$ac_objext conftest$ac_exeext
24939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24940   (eval $ac_link) 2>conftest.er1
24941   ac_status=$?
24942   grep -v '^ *+' conftest.er1 >conftest.err
24943   rm -f conftest.er1
24944   cat conftest.err >&5
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); } &&
24947          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24949   (eval $ac_try) 2>&5
24950   ac_status=$?
24951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); }; } &&
24953          { ac_try='test -s conftest$ac_exeext'
24954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955   (eval $ac_try) 2>&5
24956   ac_status=$?
24957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958   (exit $ac_status); }; }; then
24959   eval "$as_ac_var=yes"
24960 else
24961   echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.$ac_ext >&5
24963
24964 eval "$as_ac_var=no"
24965 fi
24966 rm -f conftest.err conftest.$ac_objext \
24967       conftest$ac_exeext conftest.$ac_ext
24968 fi
24969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24971 if test `eval echo '${'$as_ac_var'}'` = yes; then
24972   cat >>confdefs.h <<_ACEOF
24973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24974 _ACEOF
24975  have_floor=1
24976 fi
24977 done
24978
24979 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24980 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24981 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24982     echo "$as_me:$LINENO: result: yes" >&5
24983 echo "${ECHO_T}yes" >&6
24984 else
24985     echo "$as_me:$LINENO: result: no" >&5
24986 echo "${ECHO_T}no" >&6
24987     LIBS="$LIBS -lm"
24988     # use different functions to avoid configure caching
24989     have_sin=0
24990     have_ceil=0
24991
24992 for ac_func in sin
24993 do
24994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24995 echo "$as_me:$LINENO: checking for $ac_func" >&5
24996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24997 if eval "test \"\${$as_ac_var+set}\" = set"; then
24998   echo $ECHO_N "(cached) $ECHO_C" >&6
24999 else
25000   cat >conftest.$ac_ext <<_ACEOF
25001 /* confdefs.h.  */
25002 _ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h.  */
25006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25008 #define $ac_func innocuous_$ac_func
25009
25010 /* System header to define __stub macros and hopefully few prototypes,
25011     which can conflict with char $ac_func (); below.
25012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25013     <limits.h> exists even on freestanding compilers.  */
25014
25015 #ifdef __STDC__
25016 # include <limits.h>
25017 #else
25018 # include <assert.h>
25019 #endif
25020
25021 #undef $ac_func
25022
25023 /* Override any gcc2 internal prototype to avoid an error.  */
25024 #ifdef __cplusplus
25025 extern "C"
25026 {
25027 #endif
25028 /* We use char because int might match the return type of a gcc2
25029    builtin and then its argument prototype would still apply.  */
25030 char $ac_func ();
25031 /* The GNU C library defines this for functions which it implements
25032     to always fail with ENOSYS.  Some functions are actually named
25033     something starting with __ and the normal name is an alias.  */
25034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25035 choke me
25036 #else
25037 char (*f) () = $ac_func;
25038 #endif
25039 #ifdef __cplusplus
25040 }
25041 #endif
25042
25043 int
25044 main ()
25045 {
25046 return f != $ac_func;
25047   ;
25048   return 0;
25049 }
25050 _ACEOF
25051 rm -f conftest.$ac_objext conftest$ac_exeext
25052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25053   (eval $ac_link) 2>conftest.er1
25054   ac_status=$?
25055   grep -v '^ *+' conftest.er1 >conftest.err
25056   rm -f conftest.er1
25057   cat conftest.err >&5
25058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059   (exit $ac_status); } &&
25060          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25062   (eval $ac_try) 2>&5
25063   ac_status=$?
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); }; } &&
25066          { ac_try='test -s conftest$ac_exeext'
25067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068   (eval $ac_try) 2>&5
25069   ac_status=$?
25070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071   (exit $ac_status); }; }; then
25072   eval "$as_ac_var=yes"
25073 else
25074   echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25076
25077 eval "$as_ac_var=no"
25078 fi
25079 rm -f conftest.err conftest.$ac_objext \
25080       conftest$ac_exeext conftest.$ac_ext
25081 fi
25082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25084 if test `eval echo '${'$as_ac_var'}'` = yes; then
25085   cat >>confdefs.h <<_ACEOF
25086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25087 _ACEOF
25088  have_sin=1
25089 fi
25090 done
25091
25092
25093 for ac_func in ceil
25094 do
25095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25096 echo "$as_me:$LINENO: checking for $ac_func" >&5
25097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25098 if eval "test \"\${$as_ac_var+set}\" = set"; then
25099   echo $ECHO_N "(cached) $ECHO_C" >&6
25100 else
25101   cat >conftest.$ac_ext <<_ACEOF
25102 /* confdefs.h.  */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h.  */
25107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25109 #define $ac_func innocuous_$ac_func
25110
25111 /* System header to define __stub macros and hopefully few prototypes,
25112     which can conflict with char $ac_func (); below.
25113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25114     <limits.h> exists even on freestanding compilers.  */
25115
25116 #ifdef __STDC__
25117 # include <limits.h>
25118 #else
25119 # include <assert.h>
25120 #endif
25121
25122 #undef $ac_func
25123
25124 /* Override any gcc2 internal prototype to avoid an error.  */
25125 #ifdef __cplusplus
25126 extern "C"
25127 {
25128 #endif
25129 /* We use char because int might match the return type of a gcc2
25130    builtin and then its argument prototype would still apply.  */
25131 char $ac_func ();
25132 /* The GNU C library defines this for functions which it implements
25133     to always fail with ENOSYS.  Some functions are actually named
25134     something starting with __ and the normal name is an alias.  */
25135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25136 choke me
25137 #else
25138 char (*f) () = $ac_func;
25139 #endif
25140 #ifdef __cplusplus
25141 }
25142 #endif
25143
25144 int
25145 main ()
25146 {
25147 return f != $ac_func;
25148   ;
25149   return 0;
25150 }
25151 _ACEOF
25152 rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25154   (eval $ac_link) 2>conftest.er1
25155   ac_status=$?
25156   grep -v '^ *+' conftest.er1 >conftest.err
25157   rm -f conftest.er1
25158   cat conftest.err >&5
25159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160   (exit $ac_status); } &&
25161          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163   (eval $ac_try) 2>&5
25164   ac_status=$?
25165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166   (exit $ac_status); }; } &&
25167          { ac_try='test -s conftest$ac_exeext'
25168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169   (eval $ac_try) 2>&5
25170   ac_status=$?
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); }; }; then
25173   eval "$as_ac_var=yes"
25174 else
25175   echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25177
25178 eval "$as_ac_var=no"
25179 fi
25180 rm -f conftest.err conftest.$ac_objext \
25181       conftest$ac_exeext conftest.$ac_ext
25182 fi
25183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25185 if test `eval echo '${'$as_ac_var'}'` = yes; then
25186   cat >>confdefs.h <<_ACEOF
25187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25188 _ACEOF
25189  have_ceil=1
25190 fi
25191 done
25192
25193     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25194 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25195     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25196         echo "$as_me:$LINENO: result: yes" >&5
25197 echo "${ECHO_T}yes" >&6
25198     else
25199         echo "$as_me:$LINENO: result: no" >&5
25200 echo "${ECHO_T}no" >&6
25201         # not sure we should warn the user, crash, etc.
25202     fi
25203 fi
25204
25205
25206
25207 if test "$wxUSE_REGEX" != "no"; then
25208     cat >>confdefs.h <<\_ACEOF
25209 #define wxUSE_REGEX 1
25210 _ACEOF
25211
25212
25213     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25214         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25215 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25216         wxUSE_REGEX=builtin
25217     fi
25218
25219     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25220                         if test "${ac_cv_header_regex_h+set}" = set; then
25221   echo "$as_me:$LINENO: checking for regex.h" >&5
25222 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25223 if test "${ac_cv_header_regex_h+set}" = set; then
25224   echo $ECHO_N "(cached) $ECHO_C" >&6
25225 fi
25226 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25227 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25228 else
25229   # Is the header compilable?
25230 echo "$as_me:$LINENO: checking regex.h usability" >&5
25231 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25232 cat >conftest.$ac_ext <<_ACEOF
25233 /* confdefs.h.  */
25234 _ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h.  */
25238 $ac_includes_default
25239 #include <regex.h>
25240 _ACEOF
25241 rm -f conftest.$ac_objext
25242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25243   (eval $ac_compile) 2>conftest.er1
25244   ac_status=$?
25245   grep -v '^ *+' conftest.er1 >conftest.err
25246   rm -f conftest.er1
25247   cat conftest.err >&5
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); } &&
25250          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252   (eval $ac_try) 2>&5
25253   ac_status=$?
25254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255   (exit $ac_status); }; } &&
25256          { ac_try='test -s conftest.$ac_objext'
25257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258   (eval $ac_try) 2>&5
25259   ac_status=$?
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); }; }; then
25262   ac_header_compiler=yes
25263 else
25264   echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25266
25267 ac_header_compiler=no
25268 fi
25269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25271 echo "${ECHO_T}$ac_header_compiler" >&6
25272
25273 # Is the header present?
25274 echo "$as_me:$LINENO: checking regex.h presence" >&5
25275 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25276 cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h.  */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h.  */
25282 #include <regex.h>
25283 _ACEOF
25284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25286   ac_status=$?
25287   grep -v '^ *+' conftest.er1 >conftest.err
25288   rm -f conftest.er1
25289   cat conftest.err >&5
25290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291   (exit $ac_status); } >/dev/null; then
25292   if test -s conftest.err; then
25293     ac_cpp_err=$ac_cxx_preproc_warn_flag
25294     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25295   else
25296     ac_cpp_err=
25297   fi
25298 else
25299   ac_cpp_err=yes
25300 fi
25301 if test -z "$ac_cpp_err"; then
25302   ac_header_preproc=yes
25303 else
25304   echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25306
25307   ac_header_preproc=no
25308 fi
25309 rm -f conftest.err conftest.$ac_ext
25310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25311 echo "${ECHO_T}$ac_header_preproc" >&6
25312
25313 # So?  What about this header?
25314 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25315   yes:no: )
25316     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25317 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25318     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25319 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25320     ac_header_preproc=yes
25321     ;;
25322   no:yes:* )
25323     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25324 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25325     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
25326 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
25327     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25328 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25329     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
25330 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25331     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25332 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25333     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25334 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25335     (
25336       cat <<\_ASBOX
25337 ## ----------------------------------------- ##
25338 ## Report this to wx-dev@lists.wxwidgets.org ##
25339 ## ----------------------------------------- ##
25340 _ASBOX
25341     ) |
25342       sed "s/^/$as_me: WARNING:     /" >&2
25343     ;;
25344 esac
25345 echo "$as_me:$LINENO: checking for regex.h" >&5
25346 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25347 if test "${ac_cv_header_regex_h+set}" = set; then
25348   echo $ECHO_N "(cached) $ECHO_C" >&6
25349 else
25350   ac_cv_header_regex_h=$ac_header_preproc
25351 fi
25352 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25353 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25354
25355 fi
25356 if test $ac_cv_header_regex_h = yes; then
25357
25358
25359 for ac_func in regcomp re_search
25360 do
25361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25362 echo "$as_me:$LINENO: checking for $ac_func" >&5
25363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25364 if eval "test \"\${$as_ac_var+set}\" = set"; then
25365   echo $ECHO_N "(cached) $ECHO_C" >&6
25366 else
25367   cat >conftest.$ac_ext <<_ACEOF
25368 /* confdefs.h.  */
25369 _ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h.  */
25373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25375 #define $ac_func innocuous_$ac_func
25376
25377 /* System header to define __stub macros and hopefully few prototypes,
25378     which can conflict with char $ac_func (); below.
25379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25380     <limits.h> exists even on freestanding compilers.  */
25381
25382 #ifdef __STDC__
25383 # include <limits.h>
25384 #else
25385 # include <assert.h>
25386 #endif
25387
25388 #undef $ac_func
25389
25390 /* Override any gcc2 internal prototype to avoid an error.  */
25391 #ifdef __cplusplus
25392 extern "C"
25393 {
25394 #endif
25395 /* We use char because int might match the return type of a gcc2
25396    builtin and then its argument prototype would still apply.  */
25397 char $ac_func ();
25398 /* The GNU C library defines this for functions which it implements
25399     to always fail with ENOSYS.  Some functions are actually named
25400     something starting with __ and the normal name is an alias.  */
25401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25402 choke me
25403 #else
25404 char (*f) () = $ac_func;
25405 #endif
25406 #ifdef __cplusplus
25407 }
25408 #endif
25409
25410 int
25411 main ()
25412 {
25413 return f != $ac_func;
25414   ;
25415   return 0;
25416 }
25417 _ACEOF
25418 rm -f conftest.$ac_objext conftest$ac_exeext
25419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25420   (eval $ac_link) 2>conftest.er1
25421   ac_status=$?
25422   grep -v '^ *+' conftest.er1 >conftest.err
25423   rm -f conftest.er1
25424   cat conftest.err >&5
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); } &&
25427          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429   (eval $ac_try) 2>&5
25430   ac_status=$?
25431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); }; } &&
25433          { ac_try='test -s conftest$ac_exeext'
25434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435   (eval $ac_try) 2>&5
25436   ac_status=$?
25437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438   (exit $ac_status); }; }; then
25439   eval "$as_ac_var=yes"
25440 else
25441   echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25443
25444 eval "$as_ac_var=no"
25445 fi
25446 rm -f conftest.err conftest.$ac_objext \
25447       conftest$ac_exeext conftest.$ac_ext
25448 fi
25449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25451 if test `eval echo '${'$as_ac_var'}'` = yes; then
25452   cat >>confdefs.h <<_ACEOF
25453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25454 _ACEOF
25455
25456 fi
25457 done
25458
25459 fi
25460
25461
25462
25463         if test "x$ac_cv_func_regcomp" != "xyes"; then
25464             if test "$wxUSE_REGEX" = "sys" ; then
25465                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25466 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25467    { (exit 1); exit 1; }; }
25468             else
25469                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25470 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25471                 wxUSE_REGEX=builtin
25472             fi
25473         else
25474                         wxUSE_REGEX=sys
25475                         cat >>confdefs.h <<\_ACEOF
25476 #define WX_NO_REGEX_ADVANCED 1
25477 _ACEOF
25478
25479         fi
25480     fi
25481 fi
25482
25483
25484 ZLIB_LINK=
25485 if test "$wxUSE_ZLIB" != "no" ; then
25486     cat >>confdefs.h <<\_ACEOF
25487 #define wxUSE_ZLIB 1
25488 _ACEOF
25489
25490
25491     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25492                                                 if test "$USE_DARWIN" = 1; then
25493             system_zlib_h_ok="yes"
25494         else
25495                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25496 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25497 if test "${ac_cv_header_zlib_h+set}" = set; then
25498   echo $ECHO_N "(cached) $ECHO_C" >&6
25499 else
25500   if test "$cross_compiling" = yes; then
25501                       unset ac_cv_header_zlib_h
25502
25503 else
25504   cat >conftest.$ac_ext <<_ACEOF
25505 /* confdefs.h.  */
25506 _ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h.  */
25510
25511                         #include <zlib.h>
25512                         #include <stdio.h>
25513
25514                         int main()
25515                         {
25516                             FILE *f=fopen("conftestval", "w");
25517                             if (!f) exit(1);
25518                             fprintf(f, "%s",
25519                                     ZLIB_VERSION[0] == '1' &&
25520                                     (ZLIB_VERSION[2] > '1' ||
25521                                     (ZLIB_VERSION[2] == '1' &&
25522                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25523                             exit(0);
25524                         }
25525
25526 _ACEOF
25527 rm -f conftest$ac_exeext
25528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25529   (eval $ac_link) 2>&5
25530   ac_status=$?
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534   (eval $ac_try) 2>&5
25535   ac_status=$?
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); }; }; then
25538   ac_cv_header_zlib_h=`cat conftestval`
25539 else
25540   echo "$as_me: program exited with status $ac_status" >&5
25541 echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25543
25544 ( exit $ac_status )
25545 ac_cv_header_zlib_h=no
25546 fi
25547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25548 fi
25549
25550 fi
25551 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25552 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25553                                     if test "${ac_cv_header_zlib_h+set}" = set; then
25554   echo "$as_me:$LINENO: checking for zlib.h" >&5
25555 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25556 if test "${ac_cv_header_zlib_h+set}" = set; then
25557   echo $ECHO_N "(cached) $ECHO_C" >&6
25558 fi
25559 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25560 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25561 else
25562   # Is the header compilable?
25563 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25564 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25565 cat >conftest.$ac_ext <<_ACEOF
25566 /* confdefs.h.  */
25567 _ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h.  */
25571 $ac_includes_default
25572 #include <zlib.h>
25573 _ACEOF
25574 rm -f conftest.$ac_objext
25575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25576   (eval $ac_compile) 2>conftest.er1
25577   ac_status=$?
25578   grep -v '^ *+' conftest.er1 >conftest.err
25579   rm -f conftest.er1
25580   cat conftest.err >&5
25581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582   (exit $ac_status); } &&
25583          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585   (eval $ac_try) 2>&5
25586   ac_status=$?
25587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588   (exit $ac_status); }; } &&
25589          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25595   ac_header_compiler=yes
25596 else
25597   echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25599
25600 ac_header_compiler=no
25601 fi
25602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25604 echo "${ECHO_T}$ac_header_compiler" >&6
25605
25606 # Is the header present?
25607 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25608 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25609 cat >conftest.$ac_ext <<_ACEOF
25610 /* confdefs.h.  */
25611 _ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h.  */
25615 #include <zlib.h>
25616 _ACEOF
25617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25619   ac_status=$?
25620   grep -v '^ *+' conftest.er1 >conftest.err
25621   rm -f conftest.er1
25622   cat conftest.err >&5
25623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624   (exit $ac_status); } >/dev/null; then
25625   if test -s conftest.err; then
25626     ac_cpp_err=$ac_cxx_preproc_warn_flag
25627     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25628   else
25629     ac_cpp_err=
25630   fi
25631 else
25632   ac_cpp_err=yes
25633 fi
25634 if test -z "$ac_cpp_err"; then
25635   ac_header_preproc=yes
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640   ac_header_preproc=no
25641 fi
25642 rm -f conftest.err conftest.$ac_ext
25643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25644 echo "${ECHO_T}$ac_header_preproc" >&6
25645
25646 # So?  What about this header?
25647 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25648   yes:no: )
25649     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25650 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25651     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25652 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25653     ac_header_preproc=yes
25654     ;;
25655   no:yes:* )
25656     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25657 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25658     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25659 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25660     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25661 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25662     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25663 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25664     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25665 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25666     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25667 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25668     (
25669       cat <<\_ASBOX
25670 ## ----------------------------------------- ##
25671 ## Report this to wx-dev@lists.wxwidgets.org ##
25672 ## ----------------------------------------- ##
25673 _ASBOX
25674     ) |
25675       sed "s/^/$as_me: WARNING:     /" >&2
25676     ;;
25677 esac
25678 echo "$as_me:$LINENO: checking for zlib.h" >&5
25679 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25680 if test "${ac_cv_header_zlib_h+set}" = set; then
25681   echo $ECHO_N "(cached) $ECHO_C" >&6
25682 else
25683   ac_cv_header_zlib_h=$ac_header_preproc
25684 fi
25685 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25686 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25687
25688 fi
25689
25690
25691
25692             system_zlib_h_ok=$ac_cv_header_zlib_h
25693         fi
25694
25695         if test "$system_zlib_h_ok" = "yes"; then
25696             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25697 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25698 if test "${ac_cv_lib_z_deflate+set}" = set; then
25699   echo $ECHO_N "(cached) $ECHO_C" >&6
25700 else
25701   ac_check_lib_save_LIBS=$LIBS
25702 LIBS="-lz  $LIBS"
25703 cat >conftest.$ac_ext <<_ACEOF
25704 /* confdefs.h.  */
25705 _ACEOF
25706 cat confdefs.h >>conftest.$ac_ext
25707 cat >>conftest.$ac_ext <<_ACEOF
25708 /* end confdefs.h.  */
25709
25710 /* Override any gcc2 internal prototype to avoid an error.  */
25711 #ifdef __cplusplus
25712 extern "C"
25713 #endif
25714 /* We use char because int might match the return type of a gcc2
25715    builtin and then its argument prototype would still apply.  */
25716 char deflate ();
25717 int
25718 main ()
25719 {
25720 deflate ();
25721   ;
25722   return 0;
25723 }
25724 _ACEOF
25725 rm -f conftest.$ac_objext conftest$ac_exeext
25726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25727   (eval $ac_link) 2>conftest.er1
25728   ac_status=$?
25729   grep -v '^ *+' conftest.er1 >conftest.err
25730   rm -f conftest.er1
25731   cat conftest.err >&5
25732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733   (exit $ac_status); } &&
25734          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736   (eval $ac_try) 2>&5
25737   ac_status=$?
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); }; } &&
25740          { ac_try='test -s conftest$ac_exeext'
25741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742   (eval $ac_try) 2>&5
25743   ac_status=$?
25744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745   (exit $ac_status); }; }; then
25746   ac_cv_lib_z_deflate=yes
25747 else
25748   echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751 ac_cv_lib_z_deflate=no
25752 fi
25753 rm -f conftest.err conftest.$ac_objext \
25754       conftest$ac_exeext conftest.$ac_ext
25755 LIBS=$ac_check_lib_save_LIBS
25756 fi
25757 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25758 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25759 if test $ac_cv_lib_z_deflate = yes; then
25760   ZLIB_LINK=" -lz"
25761 fi
25762
25763         fi
25764
25765         if test "x$ZLIB_LINK" = "x" ; then
25766             if test "$wxUSE_ZLIB" = "sys" ; then
25767                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25768 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25769    { (exit 1); exit 1; }; }
25770             else
25771                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25772 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25773                 wxUSE_ZLIB=builtin
25774             fi
25775         else
25776                         wxUSE_ZLIB=sys
25777         fi
25778     fi
25779 fi
25780
25781
25782 PNG_LINK=
25783 if test "$wxUSE_LIBPNG" != "no" ; then
25784     cat >>confdefs.h <<\_ACEOF
25785 #define wxUSE_LIBPNG 1
25786 _ACEOF
25787
25788
25789     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25790         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25791 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25792         wxUSE_LIBPNG=sys
25793     fi
25794
25795                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25796         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25797 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25798         wxUSE_LIBPNG=builtin
25799     fi
25800
25801     if test "$wxUSE_MGL" != 1 ; then
25802                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25803                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25804 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25805 if test "${ac_cv_header_png_h+set}" = set; then
25806   echo $ECHO_N "(cached) $ECHO_C" >&6
25807 else
25808   if test "$cross_compiling" = yes; then
25809                       unset ac_cv_header_png_h
25810
25811 else
25812   cat >conftest.$ac_ext <<_ACEOF
25813 /* confdefs.h.  */
25814 _ACEOF
25815 cat confdefs.h >>conftest.$ac_ext
25816 cat >>conftest.$ac_ext <<_ACEOF
25817 /* end confdefs.h.  */
25818
25819                         #include <png.h>
25820                         #include <stdio.h>
25821
25822                         int main()
25823                         {
25824                             FILE *f=fopen("conftestval", "w");
25825                             if (!f) exit(1);
25826                             fprintf(f, "%s",
25827                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25828                             exit(0);
25829                         }
25830
25831 _ACEOF
25832 rm -f conftest$ac_exeext
25833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25834   (eval $ac_link) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839   (eval $ac_try) 2>&5
25840   ac_status=$?
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); }; }; then
25843   ac_cv_header_png_h=`cat conftestval`
25844 else
25845   echo "$as_me: program exited with status $ac_status" >&5
25846 echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25848
25849 ( exit $ac_status )
25850 ac_cv_header_png_h=no
25851 fi
25852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25853 fi
25854
25855 fi
25856 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25857 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25858             if test "${ac_cv_header_png_h+set}" = set; then
25859   echo "$as_me:$LINENO: checking for png.h" >&5
25860 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25861 if test "${ac_cv_header_png_h+set}" = set; then
25862   echo $ECHO_N "(cached) $ECHO_C" >&6
25863 fi
25864 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25865 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25866 else
25867   # Is the header compilable?
25868 echo "$as_me:$LINENO: checking png.h usability" >&5
25869 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25870 cat >conftest.$ac_ext <<_ACEOF
25871 /* confdefs.h.  */
25872 _ACEOF
25873 cat confdefs.h >>conftest.$ac_ext
25874 cat >>conftest.$ac_ext <<_ACEOF
25875 /* end confdefs.h.  */
25876 $ac_includes_default
25877 #include <png.h>
25878 _ACEOF
25879 rm -f conftest.$ac_objext
25880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25881   (eval $ac_compile) 2>conftest.er1
25882   ac_status=$?
25883   grep -v '^ *+' conftest.er1 >conftest.err
25884   rm -f conftest.er1
25885   cat conftest.err >&5
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); } &&
25888          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890   (eval $ac_try) 2>&5
25891   ac_status=$?
25892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893   (exit $ac_status); }; } &&
25894          { ac_try='test -s conftest.$ac_objext'
25895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896   (eval $ac_try) 2>&5
25897   ac_status=$?
25898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899   (exit $ac_status); }; }; then
25900   ac_header_compiler=yes
25901 else
25902   echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25904
25905 ac_header_compiler=no
25906 fi
25907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25909 echo "${ECHO_T}$ac_header_compiler" >&6
25910
25911 # Is the header present?
25912 echo "$as_me:$LINENO: checking png.h presence" >&5
25913 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25914 cat >conftest.$ac_ext <<_ACEOF
25915 /* confdefs.h.  */
25916 _ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h.  */
25920 #include <png.h>
25921 _ACEOF
25922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25924   ac_status=$?
25925   grep -v '^ *+' conftest.er1 >conftest.err
25926   rm -f conftest.er1
25927   cat conftest.err >&5
25928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929   (exit $ac_status); } >/dev/null; then
25930   if test -s conftest.err; then
25931     ac_cpp_err=$ac_cxx_preproc_warn_flag
25932     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25933   else
25934     ac_cpp_err=
25935   fi
25936 else
25937   ac_cpp_err=yes
25938 fi
25939 if test -z "$ac_cpp_err"; then
25940   ac_header_preproc=yes
25941 else
25942   echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25944
25945   ac_header_preproc=no
25946 fi
25947 rm -f conftest.err conftest.$ac_ext
25948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25949 echo "${ECHO_T}$ac_header_preproc" >&6
25950
25951 # So?  What about this header?
25952 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25953   yes:no: )
25954     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25955 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25956     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25957 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25958     ac_header_preproc=yes
25959     ;;
25960   no:yes:* )
25961     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25962 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25963     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
25964 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
25965     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25966 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25967     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
25968 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25969     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25970 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25971     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25972 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25973     (
25974       cat <<\_ASBOX
25975 ## ----------------------------------------- ##
25976 ## Report this to wx-dev@lists.wxwidgets.org ##
25977 ## ----------------------------------------- ##
25978 _ASBOX
25979     ) |
25980       sed "s/^/$as_me: WARNING:     /" >&2
25981     ;;
25982 esac
25983 echo "$as_me:$LINENO: checking for png.h" >&5
25984 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25985 if test "${ac_cv_header_png_h+set}" = set; then
25986   echo $ECHO_N "(cached) $ECHO_C" >&6
25987 else
25988   ac_cv_header_png_h=$ac_header_preproc
25989 fi
25990 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25991 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25992
25993 fi
25994
25995
25996
25997             if test "$ac_cv_header_png_h" = "yes"; then
25998                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25999 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
26000 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26001   echo $ECHO_N "(cached) $ECHO_C" >&6
26002 else
26003   ac_check_lib_save_LIBS=$LIBS
26004 LIBS="-lpng -lz -lm $LIBS"
26005 cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h.  */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h.  */
26011
26012 /* Override any gcc2 internal prototype to avoid an error.  */
26013 #ifdef __cplusplus
26014 extern "C"
26015 #endif
26016 /* We use char because int might match the return type of a gcc2
26017    builtin and then its argument prototype would still apply.  */
26018 char png_check_sig ();
26019 int
26020 main ()
26021 {
26022 png_check_sig ();
26023   ;
26024   return 0;
26025 }
26026 _ACEOF
26027 rm -f conftest.$ac_objext conftest$ac_exeext
26028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26029   (eval $ac_link) 2>conftest.er1
26030   ac_status=$?
26031   grep -v '^ *+' conftest.er1 >conftest.err
26032   rm -f conftest.er1
26033   cat conftest.err >&5
26034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035   (exit $ac_status); } &&
26036          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038   (eval $ac_try) 2>&5
26039   ac_status=$?
26040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); }; } &&
26042          { ac_try='test -s conftest$ac_exeext'
26043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044   (eval $ac_try) 2>&5
26045   ac_status=$?
26046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); }; }; then
26048   ac_cv_lib_png_png_check_sig=yes
26049 else
26050   echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053 ac_cv_lib_png_png_check_sig=no
26054 fi
26055 rm -f conftest.err conftest.$ac_objext \
26056       conftest$ac_exeext conftest.$ac_ext
26057 LIBS=$ac_check_lib_save_LIBS
26058 fi
26059 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26060 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26061 if test $ac_cv_lib_png_png_check_sig = yes; then
26062   PNG_LINK=" -lpng -lz"
26063 fi
26064
26065             fi
26066
26067             if test "x$PNG_LINK" = "x" ; then
26068                 if test "$wxUSE_LIBPNG" = "sys" ; then
26069                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26070 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26071    { (exit 1); exit 1; }; }
26072                 else
26073                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26074 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26075                     wxUSE_LIBPNG=builtin
26076                 fi
26077             else
26078                                 wxUSE_LIBPNG=sys
26079             fi
26080         fi
26081     fi
26082
26083     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26084 fi
26085
26086
26087 JPEG_LINK=
26088 if test "$wxUSE_LIBJPEG" != "no" ; then
26089     cat >>confdefs.h <<\_ACEOF
26090 #define wxUSE_LIBJPEG 1
26091 _ACEOF
26092
26093
26094     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26095         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26096 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26097         wxUSE_LIBJPEG=sys
26098     fi
26099
26100     if test "$wxUSE_MGL" != 1 ; then
26101                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26102                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26103 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26104             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26105   echo $ECHO_N "(cached) $ECHO_C" >&6
26106 else
26107   cat >conftest.$ac_ext <<_ACEOF
26108 /* confdefs.h.  */
26109 _ACEOF
26110 cat confdefs.h >>conftest.$ac_ext
26111 cat >>conftest.$ac_ext <<_ACEOF
26112 /* end confdefs.h.  */
26113
26114                         #undef HAVE_STDLIB_H
26115                         #include <stdio.h>
26116                         #include <jpeglib.h>
26117
26118 int
26119 main ()
26120 {
26121
26122
26123   ;
26124   return 0;
26125 }
26126 _ACEOF
26127 rm -f conftest.$ac_objext
26128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26129   (eval $ac_compile) 2>conftest.er1
26130   ac_status=$?
26131   grep -v '^ *+' conftest.er1 >conftest.err
26132   rm -f conftest.er1
26133   cat conftest.err >&5
26134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135   (exit $ac_status); } &&
26136          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138   (eval $ac_try) 2>&5
26139   ac_status=$?
26140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141   (exit $ac_status); }; } &&
26142          { ac_try='test -s conftest.$ac_objext'
26143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144   (eval $ac_try) 2>&5
26145   ac_status=$?
26146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147   (exit $ac_status); }; }; then
26148   ac_cv_header_jpeglib_h=yes
26149 else
26150   echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26152
26153 ac_cv_header_jpeglib_h=no
26154
26155 fi
26156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26157
26158 fi
26159
26160             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26161 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26162
26163             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26164                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26165 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26166 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26167   echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169   ac_check_lib_save_LIBS=$LIBS
26170 LIBS="-ljpeg  $LIBS"
26171 cat >conftest.$ac_ext <<_ACEOF
26172 /* confdefs.h.  */
26173 _ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h.  */
26177
26178 /* Override any gcc2 internal prototype to avoid an error.  */
26179 #ifdef __cplusplus
26180 extern "C"
26181 #endif
26182 /* We use char because int might match the return type of a gcc2
26183    builtin and then its argument prototype would still apply.  */
26184 char jpeg_read_header ();
26185 int
26186 main ()
26187 {
26188 jpeg_read_header ();
26189   ;
26190   return 0;
26191 }
26192 _ACEOF
26193 rm -f conftest.$ac_objext conftest$ac_exeext
26194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26195   (eval $ac_link) 2>conftest.er1
26196   ac_status=$?
26197   grep -v '^ *+' conftest.er1 >conftest.err
26198   rm -f conftest.er1
26199   cat conftest.err >&5
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); } &&
26202          { ac_try='test -z "$ac_cxx_werror_flag"                         || 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_jpeg_jpeg_read_header=yes
26215 else
26216   echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26218
26219 ac_cv_lib_jpeg_jpeg_read_header=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_jpeg_jpeg_read_header" >&5
26226 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26227 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26228   JPEG_LINK=" -ljpeg"
26229 fi
26230
26231             fi
26232
26233             if test "x$JPEG_LINK" = "x" ; then
26234                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26235                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26236 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26237    { (exit 1); exit 1; }; }
26238                 else
26239                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26240 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26241                     wxUSE_LIBJPEG=builtin
26242                 fi
26243             else
26244                                 wxUSE_LIBJPEG=sys
26245             fi
26246         fi
26247     fi
26248 fi
26249
26250
26251 TIFF_LINK=
26252 TIFF_PREREQ_LINKS=-lm
26253 if test "$wxUSE_LIBTIFF" != "no" ; then
26254     cat >>confdefs.h <<\_ACEOF
26255 #define wxUSE_LIBTIFF 1
26256 _ACEOF
26257
26258
26259     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26260                         if test "$wxUSE_LIBJPEG" = "sys"; then
26261             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26262         fi
26263         if test "$wxUSE_ZLIB" = "sys"; then
26264             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26265         fi
26266         if test "${ac_cv_header_tiffio_h+set}" = set; then
26267   echo "$as_me:$LINENO: checking for tiffio.h" >&5
26268 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26269 if test "${ac_cv_header_tiffio_h+set}" = set; then
26270   echo $ECHO_N "(cached) $ECHO_C" >&6
26271 fi
26272 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26273 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26274 else
26275   # Is the header compilable?
26276 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26277 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26278 cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284 $ac_includes_default
26285 #include <tiffio.h>
26286 _ACEOF
26287 rm -f conftest.$ac_objext
26288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26289   (eval $ac_compile) 2>conftest.er1
26290   ac_status=$?
26291   grep -v '^ *+' conftest.er1 >conftest.err
26292   rm -f conftest.er1
26293   cat conftest.err >&5
26294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295   (exit $ac_status); } &&
26296          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298   (eval $ac_try) 2>&5
26299   ac_status=$?
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); }; } &&
26302          { ac_try='test -s conftest.$ac_objext'
26303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304   (eval $ac_try) 2>&5
26305   ac_status=$?
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); }; }; then
26308   ac_header_compiler=yes
26309 else
26310   echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26312
26313 ac_header_compiler=no
26314 fi
26315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26317 echo "${ECHO_T}$ac_header_compiler" >&6
26318
26319 # Is the header present?
26320 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26321 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26322 cat >conftest.$ac_ext <<_ACEOF
26323 /* confdefs.h.  */
26324 _ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h.  */
26328 #include <tiffio.h>
26329 _ACEOF
26330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26332   ac_status=$?
26333   grep -v '^ *+' conftest.er1 >conftest.err
26334   rm -f conftest.er1
26335   cat conftest.err >&5
26336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337   (exit $ac_status); } >/dev/null; then
26338   if test -s conftest.err; then
26339     ac_cpp_err=$ac_cxx_preproc_warn_flag
26340     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26341   else
26342     ac_cpp_err=
26343   fi
26344 else
26345   ac_cpp_err=yes
26346 fi
26347 if test -z "$ac_cpp_err"; then
26348   ac_header_preproc=yes
26349 else
26350   echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26352
26353   ac_header_preproc=no
26354 fi
26355 rm -f conftest.err conftest.$ac_ext
26356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26357 echo "${ECHO_T}$ac_header_preproc" >&6
26358
26359 # So?  What about this header?
26360 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26361   yes:no: )
26362     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26363 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26364     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26365 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26366     ac_header_preproc=yes
26367     ;;
26368   no:yes:* )
26369     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26370 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
26371     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
26372 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
26373     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26374 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26375     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
26376 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26377     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26378 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
26379     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26380 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
26381     (
26382       cat <<\_ASBOX
26383 ## ----------------------------------------- ##
26384 ## Report this to wx-dev@lists.wxwidgets.org ##
26385 ## ----------------------------------------- ##
26386 _ASBOX
26387     ) |
26388       sed "s/^/$as_me: WARNING:     /" >&2
26389     ;;
26390 esac
26391 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26392 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26393 if test "${ac_cv_header_tiffio_h+set}" = set; then
26394   echo $ECHO_N "(cached) $ECHO_C" >&6
26395 else
26396   ac_cv_header_tiffio_h=$ac_header_preproc
26397 fi
26398 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26399 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26400
26401 fi
26402 if test $ac_cv_header_tiffio_h = yes; then
26403
26404                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26405 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26406 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26407   echo $ECHO_N "(cached) $ECHO_C" >&6
26408 else
26409   ac_check_lib_save_LIBS=$LIBS
26410 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26411 cat >conftest.$ac_ext <<_ACEOF
26412 /* confdefs.h.  */
26413 _ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h.  */
26417
26418 /* Override any gcc2 internal prototype to avoid an error.  */
26419 #ifdef __cplusplus
26420 extern "C"
26421 #endif
26422 /* We use char because int might match the return type of a gcc2
26423    builtin and then its argument prototype would still apply.  */
26424 char TIFFError ();
26425 int
26426 main ()
26427 {
26428 TIFFError ();
26429   ;
26430   return 0;
26431 }
26432 _ACEOF
26433 rm -f conftest.$ac_objext conftest$ac_exeext
26434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26435   (eval $ac_link) 2>conftest.er1
26436   ac_status=$?
26437   grep -v '^ *+' conftest.er1 >conftest.err
26438   rm -f conftest.er1
26439   cat conftest.err >&5
26440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441   (exit $ac_status); } &&
26442          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26444   (eval $ac_try) 2>&5
26445   ac_status=$?
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); }; } &&
26448          { ac_try='test -s conftest$ac_exeext'
26449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450   (eval $ac_try) 2>&5
26451   ac_status=$?
26452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453   (exit $ac_status); }; }; then
26454   ac_cv_lib_tiff_TIFFError=yes
26455 else
26456   echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26458
26459 ac_cv_lib_tiff_TIFFError=no
26460 fi
26461 rm -f conftest.err conftest.$ac_objext \
26462       conftest$ac_exeext conftest.$ac_ext
26463 LIBS=$ac_check_lib_save_LIBS
26464 fi
26465 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26466 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26467 if test $ac_cv_lib_tiff_TIFFError = yes; then
26468   TIFF_LINK=" -ltiff"
26469 fi
26470
26471
26472
26473 fi
26474
26475
26476
26477         if test "x$TIFF_LINK" = "x" ; then
26478             if test "$wxUSE_LIBTIFF" = "sys" ; then
26479                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26480 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26481    { (exit 1); exit 1; }; }
26482             else
26483                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26484 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26485                 wxUSE_LIBTIFF=builtin
26486             fi
26487         else
26488                         wxUSE_LIBTIFF=sys
26489         fi
26490     fi
26491 fi
26492
26493
26494 if test "$wxUSE_WCHAR_T" != "yes"; then
26495     if test "$wxUSE_EXPAT" != "no"; then
26496         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26497 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26498         wxUSE_EXPAT=no
26499     fi
26500     if test "$wxUSE_XML" != "no"; then
26501         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26502 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26503         wxUSE_XML=no
26504     fi
26505 fi
26506
26507 if test "$wxUSE_EXPAT" != "no"; then
26508     wxUSE_XML=yes
26509     cat >>confdefs.h <<\_ACEOF
26510 #define wxUSE_EXPAT 1
26511 _ACEOF
26512
26513     cat >>confdefs.h <<\_ACEOF
26514 #define wxUSE_XML 1
26515 _ACEOF
26516
26517
26518     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26519         if test "${ac_cv_header_expat_h+set}" = set; then
26520   echo "$as_me:$LINENO: checking for expat.h" >&5
26521 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26522 if test "${ac_cv_header_expat_h+set}" = set; then
26523   echo $ECHO_N "(cached) $ECHO_C" >&6
26524 fi
26525 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26526 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26527 else
26528   # Is the header compilable?
26529 echo "$as_me:$LINENO: checking expat.h usability" >&5
26530 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26531 cat >conftest.$ac_ext <<_ACEOF
26532 /* confdefs.h.  */
26533 _ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h.  */
26537 $ac_includes_default
26538 #include <expat.h>
26539 _ACEOF
26540 rm -f conftest.$ac_objext
26541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26542   (eval $ac_compile) 2>conftest.er1
26543   ac_status=$?
26544   grep -v '^ *+' conftest.er1 >conftest.err
26545   rm -f conftest.er1
26546   cat conftest.err >&5
26547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548   (exit $ac_status); } &&
26549          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26551   (eval $ac_try) 2>&5
26552   ac_status=$?
26553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554   (exit $ac_status); }; } &&
26555          { ac_try='test -s conftest.$ac_objext'
26556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26557   (eval $ac_try) 2>&5
26558   ac_status=$?
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); }; }; then
26561   ac_header_compiler=yes
26562 else
26563   echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26565
26566 ac_header_compiler=no
26567 fi
26568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26570 echo "${ECHO_T}$ac_header_compiler" >&6
26571
26572 # Is the header present?
26573 echo "$as_me:$LINENO: checking expat.h presence" >&5
26574 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26575 cat >conftest.$ac_ext <<_ACEOF
26576 /* confdefs.h.  */
26577 _ACEOF
26578 cat confdefs.h >>conftest.$ac_ext
26579 cat >>conftest.$ac_ext <<_ACEOF
26580 /* end confdefs.h.  */
26581 #include <expat.h>
26582 _ACEOF
26583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26585   ac_status=$?
26586   grep -v '^ *+' conftest.er1 >conftest.err
26587   rm -f conftest.er1
26588   cat conftest.err >&5
26589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590   (exit $ac_status); } >/dev/null; then
26591   if test -s conftest.err; then
26592     ac_cpp_err=$ac_cxx_preproc_warn_flag
26593     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26594   else
26595     ac_cpp_err=
26596   fi
26597 else
26598   ac_cpp_err=yes
26599 fi
26600 if test -z "$ac_cpp_err"; then
26601   ac_header_preproc=yes
26602 else
26603   echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26605
26606   ac_header_preproc=no
26607 fi
26608 rm -f conftest.err conftest.$ac_ext
26609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26610 echo "${ECHO_T}$ac_header_preproc" >&6
26611
26612 # So?  What about this header?
26613 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26614   yes:no: )
26615     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26616 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26617     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26618 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26619     ac_header_preproc=yes
26620     ;;
26621   no:yes:* )
26622     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26623 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
26624     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
26625 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
26626     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26627 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26628     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
26629 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26630     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26631 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
26632     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26633 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
26634     (
26635       cat <<\_ASBOX
26636 ## ----------------------------------------- ##
26637 ## Report this to wx-dev@lists.wxwidgets.org ##
26638 ## ----------------------------------------- ##
26639 _ASBOX
26640     ) |
26641       sed "s/^/$as_me: WARNING:     /" >&2
26642     ;;
26643 esac
26644 echo "$as_me:$LINENO: checking for expat.h" >&5
26645 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26646 if test "${ac_cv_header_expat_h+set}" = set; then
26647   echo $ECHO_N "(cached) $ECHO_C" >&6
26648 else
26649   ac_cv_header_expat_h=$ac_header_preproc
26650 fi
26651 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26652 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26653
26654 fi
26655 if test $ac_cv_header_expat_h = yes; then
26656   found_expat_h=1
26657 fi
26658
26659
26660         if test "x$found_expat_h" = "x1"; then
26661                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26662 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26663 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26664   echo $ECHO_N "(cached) $ECHO_C" >&6
26665 else
26666
26667                 cat >conftest.$ac_ext <<_ACEOF
26668 /* confdefs.h.  */
26669 _ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h.  */
26673 #include <expat.h>
26674 int
26675 main ()
26676 {
26677
26678   ;
26679   return 0;
26680 }
26681 _ACEOF
26682 rm -f conftest.$ac_objext
26683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26684   (eval $ac_compile) 2>conftest.er1
26685   ac_status=$?
26686   grep -v '^ *+' conftest.er1 >conftest.err
26687   rm -f conftest.er1
26688   cat conftest.err >&5
26689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690   (exit $ac_status); } &&
26691          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693   (eval $ac_try) 2>&5
26694   ac_status=$?
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); }; } &&
26697          { ac_try='test -s conftest.$ac_objext'
26698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699   (eval $ac_try) 2>&5
26700   ac_status=$?
26701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702   (exit $ac_status); }; }; then
26703   wx_cv_expat_is_not_broken=yes
26704 else
26705   echo "$as_me: failed program was:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26707
26708 wx_cv_expat_is_not_broken=no
26709
26710 fi
26711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26712
26713
26714 fi
26715 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26716 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26717             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26718                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26719 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26720 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26721   echo $ECHO_N "(cached) $ECHO_C" >&6
26722 else
26723   ac_check_lib_save_LIBS=$LIBS
26724 LIBS="-lexpat  $LIBS"
26725 cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731
26732 /* Override any gcc2 internal prototype to avoid an error.  */
26733 #ifdef __cplusplus
26734 extern "C"
26735 #endif
26736 /* We use char because int might match the return type of a gcc2
26737    builtin and then its argument prototype would still apply.  */
26738 char XML_ParserCreate ();
26739 int
26740 main ()
26741 {
26742 XML_ParserCreate ();
26743   ;
26744   return 0;
26745 }
26746 _ACEOF
26747 rm -f conftest.$ac_objext conftest$ac_exeext
26748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26749   (eval $ac_link) 2>conftest.er1
26750   ac_status=$?
26751   grep -v '^ *+' conftest.er1 >conftest.err
26752   rm -f conftest.er1
26753   cat conftest.err >&5
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); } &&
26756          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758   (eval $ac_try) 2>&5
26759   ac_status=$?
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); }; } &&
26762          { ac_try='test -s conftest$ac_exeext'
26763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764   (eval $ac_try) 2>&5
26765   ac_status=$?
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); }; }; then
26768   ac_cv_lib_expat_XML_ParserCreate=yes
26769 else
26770   echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26772
26773 ac_cv_lib_expat_XML_ParserCreate=no
26774 fi
26775 rm -f conftest.err conftest.$ac_objext \
26776       conftest$ac_exeext conftest.$ac_ext
26777 LIBS=$ac_check_lib_save_LIBS
26778 fi
26779 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26780 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26781 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26782   EXPAT_LINK=" -lexpat"
26783 fi
26784
26785             fi
26786         fi
26787         if test "x$EXPAT_LINK" = "x" ; then
26788             if test "$wxUSE_EXPAT" = "sys" ; then
26789                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26790 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26791    { (exit 1); exit 1; }; }
26792             else
26793                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26794 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26795                 wxUSE_EXPAT=builtin
26796             fi
26797         else
26798                         wxUSE_EXPAT=sys
26799         fi
26800     fi
26801     if test "$wxUSE_EXPAT" = "builtin" ; then
26802
26803
26804 subdirs="$subdirs src/expat"
26805
26806     fi
26807 fi
26808
26809
26810
26811 if test "$wxUSE_LIBMSPACK" != "no"; then
26812     if test "${ac_cv_header_mspack_h+set}" = set; then
26813   echo "$as_me:$LINENO: checking for mspack.h" >&5
26814 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26815 if test "${ac_cv_header_mspack_h+set}" = set; then
26816   echo $ECHO_N "(cached) $ECHO_C" >&6
26817 fi
26818 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26819 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26820 else
26821   # Is the header compilable?
26822 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26823 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26824 cat >conftest.$ac_ext <<_ACEOF
26825 /* confdefs.h.  */
26826 _ACEOF
26827 cat confdefs.h >>conftest.$ac_ext
26828 cat >>conftest.$ac_ext <<_ACEOF
26829 /* end confdefs.h.  */
26830 $ac_includes_default
26831 #include <mspack.h>
26832 _ACEOF
26833 rm -f conftest.$ac_objext
26834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26835   (eval $ac_compile) 2>conftest.er1
26836   ac_status=$?
26837   grep -v '^ *+' conftest.er1 >conftest.err
26838   rm -f conftest.er1
26839   cat conftest.err >&5
26840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841   (exit $ac_status); } &&
26842          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26844   (eval $ac_try) 2>&5
26845   ac_status=$?
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); }; } &&
26848          { ac_try='test -s conftest.$ac_objext'
26849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850   (eval $ac_try) 2>&5
26851   ac_status=$?
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); }; }; then
26854   ac_header_compiler=yes
26855 else
26856   echo "$as_me: failed program was:" >&5
26857 sed 's/^/| /' conftest.$ac_ext >&5
26858
26859 ac_header_compiler=no
26860 fi
26861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26863 echo "${ECHO_T}$ac_header_compiler" >&6
26864
26865 # Is the header present?
26866 echo "$as_me:$LINENO: checking mspack.h presence" >&5
26867 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26868 cat >conftest.$ac_ext <<_ACEOF
26869 /* confdefs.h.  */
26870 _ACEOF
26871 cat confdefs.h >>conftest.$ac_ext
26872 cat >>conftest.$ac_ext <<_ACEOF
26873 /* end confdefs.h.  */
26874 #include <mspack.h>
26875 _ACEOF
26876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26878   ac_status=$?
26879   grep -v '^ *+' conftest.er1 >conftest.err
26880   rm -f conftest.er1
26881   cat conftest.err >&5
26882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883   (exit $ac_status); } >/dev/null; then
26884   if test -s conftest.err; then
26885     ac_cpp_err=$ac_cxx_preproc_warn_flag
26886     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26887   else
26888     ac_cpp_err=
26889   fi
26890 else
26891   ac_cpp_err=yes
26892 fi
26893 if test -z "$ac_cpp_err"; then
26894   ac_header_preproc=yes
26895 else
26896   echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26898
26899   ac_header_preproc=no
26900 fi
26901 rm -f conftest.err conftest.$ac_ext
26902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26903 echo "${ECHO_T}$ac_header_preproc" >&6
26904
26905 # So?  What about this header?
26906 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26907   yes:no: )
26908     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26909 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26910     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26911 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26912     ac_header_preproc=yes
26913     ;;
26914   no:yes:* )
26915     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26916 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
26917     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
26918 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
26919     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26920 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26921     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
26922 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26923     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26924 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
26925     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26926 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
26927     (
26928       cat <<\_ASBOX
26929 ## ----------------------------------------- ##
26930 ## Report this to wx-dev@lists.wxwidgets.org ##
26931 ## ----------------------------------------- ##
26932 _ASBOX
26933     ) |
26934       sed "s/^/$as_me: WARNING:     /" >&2
26935     ;;
26936 esac
26937 echo "$as_me:$LINENO: checking for mspack.h" >&5
26938 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26939 if test "${ac_cv_header_mspack_h+set}" = set; then
26940   echo $ECHO_N "(cached) $ECHO_C" >&6
26941 else
26942   ac_cv_header_mspack_h=$ac_header_preproc
26943 fi
26944 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26945 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26946
26947 fi
26948 if test $ac_cv_header_mspack_h = yes; then
26949   found_mspack_h=1
26950 fi
26951
26952
26953     if test "x$found_mspack_h" = "x1"; then
26954         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26955 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26956 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26957   echo $ECHO_N "(cached) $ECHO_C" >&6
26958 else
26959   ac_check_lib_save_LIBS=$LIBS
26960 LIBS="-lmspack  $LIBS"
26961 cat >conftest.$ac_ext <<_ACEOF
26962 /* confdefs.h.  */
26963 _ACEOF
26964 cat confdefs.h >>conftest.$ac_ext
26965 cat >>conftest.$ac_ext <<_ACEOF
26966 /* end confdefs.h.  */
26967
26968 /* Override any gcc2 internal prototype to avoid an error.  */
26969 #ifdef __cplusplus
26970 extern "C"
26971 #endif
26972 /* We use char because int might match the return type of a gcc2
26973    builtin and then its argument prototype would still apply.  */
26974 char mspack_create_chm_decompressor ();
26975 int
26976 main ()
26977 {
26978 mspack_create_chm_decompressor ();
26979   ;
26980   return 0;
26981 }
26982 _ACEOF
26983 rm -f conftest.$ac_objext conftest$ac_exeext
26984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26985   (eval $ac_link) 2>conftest.er1
26986   ac_status=$?
26987   grep -v '^ *+' conftest.er1 >conftest.err
26988   rm -f conftest.er1
26989   cat conftest.err >&5
26990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991   (exit $ac_status); } &&
26992          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26994   (eval $ac_try) 2>&5
26995   ac_status=$?
26996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); }; } &&
26998          { ac_try='test -s conftest$ac_exeext'
26999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27000   (eval $ac_try) 2>&5
27001   ac_status=$?
27002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); }; }; then
27004   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27005 else
27006   echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27008
27009 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27010 fi
27011 rm -f conftest.err conftest.$ac_objext \
27012       conftest$ac_exeext conftest.$ac_ext
27013 LIBS=$ac_check_lib_save_LIBS
27014 fi
27015 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27016 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27017 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27018   MSPACK_LINK=" -lmspack"
27019 fi
27020
27021     fi
27022     if test "x$MSPACK_LINK" = "x" ; then
27023         wxUSE_LIBMSPACK=no
27024     fi
27025 fi
27026
27027 if test "$wxUSE_LIBMSPACK" != "no"; then
27028     cat >>confdefs.h <<\_ACEOF
27029 #define wxUSE_LIBMSPACK 1
27030 _ACEOF
27031
27032 fi
27033
27034
27035
27036 AFMINSTALL=
27037 WIN32INSTALL=
27038
27039 TOOLKIT=
27040 TOOLKIT_INCLUDE=
27041 WIDGET_SET=
27042
27043 if test "$USE_WIN32" = 1 ; then
27044
27045 for ac_header in w32api.h
27046 do
27047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27049   echo "$as_me:$LINENO: checking for $ac_header" >&5
27050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27052   echo $ECHO_N "(cached) $ECHO_C" >&6
27053 fi
27054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27056 else
27057   # Is the header compilable?
27058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27060 cat >conftest.$ac_ext <<_ACEOF
27061 /* confdefs.h.  */
27062 _ACEOF
27063 cat confdefs.h >>conftest.$ac_ext
27064 cat >>conftest.$ac_ext <<_ACEOF
27065 /* end confdefs.h.  */
27066 $ac_includes_default
27067 #include <$ac_header>
27068 _ACEOF
27069 rm -f conftest.$ac_objext
27070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27071   (eval $ac_compile) 2>conftest.er1
27072   ac_status=$?
27073   grep -v '^ *+' conftest.er1 >conftest.err
27074   rm -f conftest.er1
27075   cat conftest.err >&5
27076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077   (exit $ac_status); } &&
27078          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27080   (eval $ac_try) 2>&5
27081   ac_status=$?
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); }; } &&
27084          { ac_try='test -s conftest.$ac_objext'
27085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086   (eval $ac_try) 2>&5
27087   ac_status=$?
27088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089   (exit $ac_status); }; }; then
27090   ac_header_compiler=yes
27091 else
27092   echo "$as_me: failed program was:" >&5
27093 sed 's/^/| /' conftest.$ac_ext >&5
27094
27095 ac_header_compiler=no
27096 fi
27097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27099 echo "${ECHO_T}$ac_header_compiler" >&6
27100
27101 # Is the header present?
27102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27104 cat >conftest.$ac_ext <<_ACEOF
27105 /* confdefs.h.  */
27106 _ACEOF
27107 cat confdefs.h >>conftest.$ac_ext
27108 cat >>conftest.$ac_ext <<_ACEOF
27109 /* end confdefs.h.  */
27110 #include <$ac_header>
27111 _ACEOF
27112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27114   ac_status=$?
27115   grep -v '^ *+' conftest.er1 >conftest.err
27116   rm -f conftest.er1
27117   cat conftest.err >&5
27118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119   (exit $ac_status); } >/dev/null; then
27120   if test -s conftest.err; then
27121     ac_cpp_err=$ac_cxx_preproc_warn_flag
27122     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27123   else
27124     ac_cpp_err=
27125   fi
27126 else
27127   ac_cpp_err=yes
27128 fi
27129 if test -z "$ac_cpp_err"; then
27130   ac_header_preproc=yes
27131 else
27132   echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27134
27135   ac_header_preproc=no
27136 fi
27137 rm -f conftest.err conftest.$ac_ext
27138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27139 echo "${ECHO_T}$ac_header_preproc" >&6
27140
27141 # So?  What about this header?
27142 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27143   yes:no: )
27144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27148     ac_header_preproc=yes
27149     ;;
27150   no:yes:* )
27151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27163     (
27164       cat <<\_ASBOX
27165 ## ----------------------------------------- ##
27166 ## Report this to wx-dev@lists.wxwidgets.org ##
27167 ## ----------------------------------------- ##
27168 _ASBOX
27169     ) |
27170       sed "s/^/$as_me: WARNING:     /" >&2
27171     ;;
27172 esac
27173 echo "$as_me:$LINENO: checking for $ac_header" >&5
27174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27176   echo $ECHO_N "(cached) $ECHO_C" >&6
27177 else
27178   eval "$as_ac_Header=\$ac_header_preproc"
27179 fi
27180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27182
27183 fi
27184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27185   cat >>confdefs.h <<_ACEOF
27186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27187 _ACEOF
27188
27189 fi
27190
27191 done
27192
27193     if test "${ac_cv_header_windows_h+set}" = set; then
27194   echo "$as_me:$LINENO: checking for windows.h" >&5
27195 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27196 if test "${ac_cv_header_windows_h+set}" = set; then
27197   echo $ECHO_N "(cached) $ECHO_C" >&6
27198 fi
27199 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27200 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27201 else
27202   # Is the header compilable?
27203 echo "$as_me:$LINENO: checking windows.h usability" >&5
27204 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27205 cat >conftest.$ac_ext <<_ACEOF
27206 /* confdefs.h.  */
27207 _ACEOF
27208 cat confdefs.h >>conftest.$ac_ext
27209 cat >>conftest.$ac_ext <<_ACEOF
27210 /* end confdefs.h.  */
27211 $ac_includes_default
27212 #include <windows.h>
27213 _ACEOF
27214 rm -f conftest.$ac_objext
27215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27216   (eval $ac_compile) 2>conftest.er1
27217   ac_status=$?
27218   grep -v '^ *+' conftest.er1 >conftest.err
27219   rm -f conftest.er1
27220   cat conftest.err >&5
27221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222   (exit $ac_status); } &&
27223          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27225   (eval $ac_try) 2>&5
27226   ac_status=$?
27227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228   (exit $ac_status); }; } &&
27229          { ac_try='test -s conftest.$ac_objext'
27230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231   (eval $ac_try) 2>&5
27232   ac_status=$?
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); }; }; then
27235   ac_header_compiler=yes
27236 else
27237   echo "$as_me: failed program was:" >&5
27238 sed 's/^/| /' conftest.$ac_ext >&5
27239
27240 ac_header_compiler=no
27241 fi
27242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27244 echo "${ECHO_T}$ac_header_compiler" >&6
27245
27246 # Is the header present?
27247 echo "$as_me:$LINENO: checking windows.h presence" >&5
27248 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27249 cat >conftest.$ac_ext <<_ACEOF
27250 /* confdefs.h.  */
27251 _ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h.  */
27255 #include <windows.h>
27256 _ACEOF
27257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27259   ac_status=$?
27260   grep -v '^ *+' conftest.er1 >conftest.err
27261   rm -f conftest.er1
27262   cat conftest.err >&5
27263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); } >/dev/null; then
27265   if test -s conftest.err; then
27266     ac_cpp_err=$ac_cxx_preproc_warn_flag
27267     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27268   else
27269     ac_cpp_err=
27270   fi
27271 else
27272   ac_cpp_err=yes
27273 fi
27274 if test -z "$ac_cpp_err"; then
27275   ac_header_preproc=yes
27276 else
27277   echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27279
27280   ac_header_preproc=no
27281 fi
27282 rm -f conftest.err conftest.$ac_ext
27283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27284 echo "${ECHO_T}$ac_header_preproc" >&6
27285
27286 # So?  What about this header?
27287 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27288   yes:no: )
27289     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27290 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27291     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27292 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27293     ac_header_preproc=yes
27294     ;;
27295   no:yes:* )
27296     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27297 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
27298     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
27299 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
27300     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27301 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27302     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
27303 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27304     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27305 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
27306     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27307 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
27308     (
27309       cat <<\_ASBOX
27310 ## ----------------------------------------- ##
27311 ## Report this to wx-dev@lists.wxwidgets.org ##
27312 ## ----------------------------------------- ##
27313 _ASBOX
27314     ) |
27315       sed "s/^/$as_me: WARNING:     /" >&2
27316     ;;
27317 esac
27318 echo "$as_me:$LINENO: checking for windows.h" >&5
27319 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27320 if test "${ac_cv_header_windows_h+set}" = set; then
27321   echo $ECHO_N "(cached) $ECHO_C" >&6
27322 else
27323   ac_cv_header_windows_h=$ac_header_preproc
27324 fi
27325 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27326 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27327
27328 fi
27329 if test $ac_cv_header_windows_h = yes; then
27330   :
27331 else
27332
27333         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27334 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27335    { (exit 1); exit 1; }; }
27336
27337 fi
27338
27339
27340
27341             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27342
27343     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27344         LIBS="$LIBS -loleacc"
27345     fi
27346
27347     case "${host}" in
27348         *-*-cygwin* )
27349                         LIBS="$LIBS -lkernel32 -luser32"
27350     esac
27351
27352         if test "$wxUSE_ODBC" = "sys" ; then
27353         wxUSE_ODBC = "yes"
27354     fi
27355     if test "$wxUSE_ODBC" = "yes" ; then
27356         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27357         cat >>confdefs.h <<\_ACEOF
27358 #define wxUSE_ODBC 1
27359 _ACEOF
27360
27361     fi
27362
27363         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27364     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27365
27366                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27367
27368         WIN32INSTALL=win32install
27369
27370                     echo "$as_me:$LINENO: checking for boolean" >&5
27371 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27372 if test "${ac_cv_type_boolean+set}" = set; then
27373   echo $ECHO_N "(cached) $ECHO_C" >&6
27374 else
27375   cat >conftest.$ac_ext <<_ACEOF
27376 /* confdefs.h.  */
27377 _ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h.  */
27381 #include <windows.h>
27382
27383 int
27384 main ()
27385 {
27386 if ((boolean *) 0)
27387   return 0;
27388 if (sizeof (boolean))
27389   return 0;
27390   ;
27391   return 0;
27392 }
27393 _ACEOF
27394 rm -f conftest.$ac_objext
27395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27396   (eval $ac_compile) 2>conftest.er1
27397   ac_status=$?
27398   grep -v '^ *+' conftest.er1 >conftest.err
27399   rm -f conftest.er1
27400   cat conftest.err >&5
27401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); } &&
27403          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405   (eval $ac_try) 2>&5
27406   ac_status=$?
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); }; } &&
27409          { ac_try='test -s conftest.$ac_objext'
27410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411   (eval $ac_try) 2>&5
27412   ac_status=$?
27413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414   (exit $ac_status); }; }; then
27415   ac_cv_type_boolean=yes
27416 else
27417   echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420 ac_cv_type_boolean=no
27421 fi
27422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27423 fi
27424 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27425 echo "${ECHO_T}$ac_cv_type_boolean" >&6
27426 if test $ac_cv_type_boolean = yes; then
27427
27428 cat >>confdefs.h <<_ACEOF
27429 #define HAVE_BOOLEAN 1
27430 _ACEOF
27431
27432
27433 fi
27434
27435
27436
27437 for ac_header in pbt.h
27438 do
27439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27441   echo "$as_me:$LINENO: checking for $ac_header" >&5
27442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27444   echo $ECHO_N "(cached) $ECHO_C" >&6
27445 fi
27446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27448 else
27449   # Is the header compilable?
27450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27452 cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h.  */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h.  */
27458 $ac_includes_default
27459 #include <$ac_header>
27460 _ACEOF
27461 rm -f conftest.$ac_objext
27462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27463   (eval $ac_compile) 2>conftest.er1
27464   ac_status=$?
27465   grep -v '^ *+' conftest.er1 >conftest.err
27466   rm -f conftest.er1
27467   cat conftest.err >&5
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); } &&
27470          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
27471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472   (eval $ac_try) 2>&5
27473   ac_status=$?
27474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475   (exit $ac_status); }; } &&
27476          { ac_try='test -s conftest.$ac_objext'
27477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27478   (eval $ac_try) 2>&5
27479   ac_status=$?
27480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481   (exit $ac_status); }; }; then
27482   ac_header_compiler=yes
27483 else
27484   echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27486
27487 ac_header_compiler=no
27488 fi
27489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27491 echo "${ECHO_T}$ac_header_compiler" >&6
27492
27493 # Is the header present?
27494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27496 cat >conftest.$ac_ext <<_ACEOF
27497 /* confdefs.h.  */
27498 _ACEOF
27499 cat confdefs.h >>conftest.$ac_ext
27500 cat >>conftest.$ac_ext <<_ACEOF
27501 /* end confdefs.h.  */
27502 #include <$ac_header>
27503 _ACEOF
27504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27506   ac_status=$?
27507   grep -v '^ *+' conftest.er1 >conftest.err
27508   rm -f conftest.er1
27509   cat conftest.err >&5
27510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); } >/dev/null; then
27512   if test -s conftest.err; then
27513     ac_cpp_err=$ac_cxx_preproc_warn_flag
27514     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27515   else
27516     ac_cpp_err=
27517   fi
27518 else
27519   ac_cpp_err=yes
27520 fi
27521 if test -z "$ac_cpp_err"; then
27522   ac_header_preproc=yes
27523 else
27524   echo "$as_me: failed program was:" >&5
27525 sed 's/^/| /' conftest.$ac_ext >&5
27526
27527   ac_header_preproc=no
27528 fi
27529 rm -f conftest.err conftest.$ac_ext
27530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27531 echo "${ECHO_T}$ac_header_preproc" >&6
27532
27533 # So?  What about this header?
27534 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27535   yes:no: )
27536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27540     ac_header_preproc=yes
27541     ;;
27542   no:yes:* )
27543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27545     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27546 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27547     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27549     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27550 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27553     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27555     (
27556       cat <<\_ASBOX
27557 ## ----------------------------------------- ##
27558 ## Report this to wx-dev@lists.wxwidgets.org ##
27559 ## ----------------------------------------- ##
27560 _ASBOX
27561     ) |
27562       sed "s/^/$as_me: WARNING:     /" >&2
27563     ;;
27564 esac
27565 echo "$as_me:$LINENO: checking for $ac_header" >&5
27566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27568   echo $ECHO_N "(cached) $ECHO_C" >&6
27569 else
27570   eval "$as_ac_Header=\$ac_header_preproc"
27571 fi
27572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27574
27575 fi
27576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27577   cat >>confdefs.h <<_ACEOF
27578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27579 _ACEOF
27580
27581 else
27582   cat >>confdefs.h <<\_ACEOF
27583 #define NEED_PBT_H 1
27584 _ACEOF
27585
27586 fi
27587
27588 done
27589
27590 fi
27591
27592 if test "$wxUSE_GUI" = "yes"; then
27593     USE_GUI=1
27594
27595     GUI_TK_LIBRARY=
27596
27597     WXGTK12=
27598     WXGTK127=
27599     WXGTK20=
27600     WXGPE=
27601
27602     if test "$wxUSE_COCOA" = 1 ; then
27603         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27604             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27605 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27606             wxUSE_PRINTING_ARCHITECTURE=no
27607         fi
27608         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27609             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27610 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27611             wxUSE_DRAG_AND_DROP=no
27612         fi
27613         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27614             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27615 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27616             wxUSE_DRAGIMAGE=no
27617         fi
27618     fi
27619
27620     if test "$wxUSE_MSW" = 1 ; then
27621         TOOLKIT=MSW
27622         GUIDIST=MSW_DIST
27623
27624                 case "${host}" in
27625             *-*-mingw32* )
27626                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27627         esac
27628     fi
27629
27630     if test "$wxUSE_GTK" = 1; then
27631                 ac_ext=c
27632 ac_cpp='$CPP $CPPFLAGS'
27633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27636
27637
27638         echo "$as_me:$LINENO: checking for GTK+ version" >&5
27639 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27640
27641         gtk_version_cached=1
27642         if test "${wx_cv_lib_gtk+set}" = set; then
27643   echo $ECHO_N "(cached) $ECHO_C" >&6
27644 else
27645
27646                                                 gtk_version_cached=0
27647                 echo "$as_me:$LINENO: result: " >&5
27648 echo "${ECHO_T}" >&6
27649
27650                                                 GTK_MODULES=
27651                 if test "$wxUSE_THREADS" = "yes"; then
27652                     GTK_MODULES=gthread
27653                 fi
27654
27655                                 wx_cv_lib_gtk=
27656                 if test "x$wxGTK_VERSION" != "x1"
27657                 then
27658                                                                                 case "${host}" in
27659                         *-*-solaris2* )
27660                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27661                             enable_gtktest=no
27662                             fi
27663                     esac
27664
27665                     # Check whether --enable-gtktest or --disable-gtktest was given.
27666 if test "${enable_gtktest+set}" = set; then
27667   enableval="$enable_gtktest"
27668
27669 else
27670   enable_gtktest=yes
27671 fi;
27672
27673   pkg_config_args=gtk+-2.0
27674   for module in . $GTK_MODULES
27675   do
27676       case "$module" in
27677          gthread)
27678              pkg_config_args="$pkg_config_args gthread-2.0"
27679          ;;
27680       esac
27681   done
27682
27683   no_gtk=""
27684
27685   # Extract the first word of "pkg-config", so it can be a program name with args.
27686 set dummy pkg-config; ac_word=$2
27687 echo "$as_me:$LINENO: checking for $ac_word" >&5
27688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27689 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27690   echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692   case $PKG_CONFIG in
27693   [\\/]* | ?:[\\/]*)
27694   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27695   ;;
27696   *)
27697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27698 for as_dir in $PATH
27699 do
27700   IFS=$as_save_IFS
27701   test -z "$as_dir" && as_dir=.
27702   for ac_exec_ext in '' $ac_executable_extensions; do
27703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27704     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27706     break 2
27707   fi
27708 done
27709 done
27710
27711   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27712   ;;
27713 esac
27714 fi
27715 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27716
27717 if test -n "$PKG_CONFIG"; then
27718   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27719 echo "${ECHO_T}$PKG_CONFIG" >&6
27720 else
27721   echo "$as_me:$LINENO: result: no" >&5
27722 echo "${ECHO_T}no" >&6
27723 fi
27724
27725
27726   if test x$PKG_CONFIG != xno ; then
27727     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27728       :
27729     else
27730       echo "*** pkg-config too old; version 0.7 or better required."
27731       no_gtk=yes
27732       PKG_CONFIG=no
27733     fi
27734   else
27735     no_gtk=yes
27736   fi
27737
27738   min_gtk_version=2.0.0
27739   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27740 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27741
27742   if test x$PKG_CONFIG != xno ; then
27743     ## don't try to run the test against uninstalled libtool libs
27744     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27745           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27746           enable_gtktest=no
27747     fi
27748
27749     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27750           :
27751     else
27752           no_gtk=yes
27753     fi
27754   fi
27755
27756   if test x"$no_gtk" = x ; then
27757     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27758     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27759     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27760            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27761     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27762            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27763     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27764            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27765     if test "x$enable_gtktest" = "xyes" ; then
27766       ac_save_CFLAGS="$CFLAGS"
27767       ac_save_LIBS="$LIBS"
27768       CFLAGS="$CFLAGS $GTK_CFLAGS"
27769       LIBS="$GTK_LIBS $LIBS"
27770       rm -f conf.gtktest
27771       if test "$cross_compiling" = yes; then
27772   echo $ac_n "cross compiling; assumed OK... $ac_c"
27773 else
27774   cat >conftest.$ac_ext <<_ACEOF
27775 /* confdefs.h.  */
27776 _ACEOF
27777 cat confdefs.h >>conftest.$ac_ext
27778 cat >>conftest.$ac_ext <<_ACEOF
27779 /* end confdefs.h.  */
27780
27781 #include <gtk/gtk.h>
27782 #include <stdio.h>
27783 #include <stdlib.h>
27784
27785 int
27786 main ()
27787 {
27788   int major, minor, micro;
27789   char *tmp_version;
27790
27791   system ("touch conf.gtktest");
27792
27793   /* HP/UX 9 (%@#!) writes to sscanf strings */
27794   tmp_version = g_strdup("$min_gtk_version");
27795   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27796      printf("%s, bad version string\n", "$min_gtk_version");
27797      exit(1);
27798    }
27799
27800   if ((gtk_major_version != $gtk_config_major_version) ||
27801       (gtk_minor_version != $gtk_config_minor_version) ||
27802       (gtk_micro_version != $gtk_config_micro_version))
27803     {
27804       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27805              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27806              gtk_major_version, gtk_minor_version, gtk_micro_version);
27807       printf ("*** was found! If pkg-config was correct, then it is best\n");
27808       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27809       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27810       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27811       printf("*** required on your system.\n");
27812       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27813       printf("*** to point to the correct configuration files\n");
27814     }
27815   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27816            (gtk_minor_version != GTK_MINOR_VERSION) ||
27817            (gtk_micro_version != GTK_MICRO_VERSION))
27818     {
27819       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27820              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27821       printf("*** library (version %d.%d.%d)\n",
27822              gtk_major_version, gtk_minor_version, gtk_micro_version);
27823     }
27824   else
27825     {
27826       if ((gtk_major_version > major) ||
27827         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27828         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27829       {
27830         return 0;
27831        }
27832      else
27833       {
27834         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27835                gtk_major_version, gtk_minor_version, gtk_micro_version);
27836         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27837                major, minor, micro);
27838         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27839         printf("***\n");
27840         printf("*** If you have already installed a sufficiently new version, this error\n");
27841         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27842         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27843         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27844         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27845         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27846         printf("*** so that the correct libraries are found at run-time))\n");
27847       }
27848     }
27849   return 1;
27850 }
27851
27852 _ACEOF
27853 rm -f conftest$ac_exeext
27854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27855   (eval $ac_link) 2>&5
27856   ac_status=$?
27857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860   (eval $ac_try) 2>&5
27861   ac_status=$?
27862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); }; }; then
27864   :
27865 else
27866   echo "$as_me: program exited with status $ac_status" >&5
27867 echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870 ( exit $ac_status )
27871 no_gtk=yes
27872 fi
27873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27874 fi
27875        CFLAGS="$ac_save_CFLAGS"
27876        LIBS="$ac_save_LIBS"
27877      fi
27878   fi
27879   if test "x$no_gtk" = x ; then
27880      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27881 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27882      wx_cv_lib_gtk=2.0
27883   else
27884      echo "$as_me:$LINENO: result: no" >&5
27885 echo "${ECHO_T}no" >&6
27886      if test "$PKG_CONFIG" = "no" ; then
27887        echo "*** A new enough version of pkg-config was not found."
27888        echo "*** See http://pkgconfig.sourceforge.net"
27889      else
27890        if test -f conf.gtktest ; then
27891         :
27892        else
27893           echo "*** Could not run GTK+ test program, checking why..."
27894           ac_save_CFLAGS="$CFLAGS"
27895           ac_save_LIBS="$LIBS"
27896           CFLAGS="$CFLAGS $GTK_CFLAGS"
27897           LIBS="$LIBS $GTK_LIBS"
27898           cat >conftest.$ac_ext <<_ACEOF
27899 /* confdefs.h.  */
27900 _ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h.  */
27904
27905 #include <gtk/gtk.h>
27906 #include <stdio.h>
27907
27908 int
27909 main ()
27910 {
27911  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27912   ;
27913   return 0;
27914 }
27915 _ACEOF
27916 rm -f conftest.$ac_objext conftest$ac_exeext
27917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27918   (eval $ac_link) 2>conftest.er1
27919   ac_status=$?
27920   grep -v '^ *+' conftest.er1 >conftest.err
27921   rm -f conftest.er1
27922   cat conftest.err >&5
27923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924   (exit $ac_status); } &&
27925          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927   (eval $ac_try) 2>&5
27928   ac_status=$?
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); }; } &&
27931          { ac_try='test -s conftest$ac_exeext'
27932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933   (eval $ac_try) 2>&5
27934   ac_status=$?
27935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936   (exit $ac_status); }; }; then
27937    echo "*** The test program compiled, but did not run. This usually means"
27938           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27939           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27940           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27941           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27942           echo "*** is required on your system"
27943           echo "***"
27944           echo "*** If you have an old version installed, it is best to remove it, although"
27945           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27946 else
27947   echo "$as_me: failed program was:" >&5
27948 sed 's/^/| /' conftest.$ac_ext >&5
27949
27950  echo "*** The test program failed to compile or link. See the file config.log for the"
27951           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27952 fi
27953 rm -f conftest.err conftest.$ac_objext \
27954       conftest$ac_exeext conftest.$ac_ext
27955           CFLAGS="$ac_save_CFLAGS"
27956           LIBS="$ac_save_LIBS"
27957        fi
27958      fi
27959      GTK_CFLAGS=""
27960      GTK_LIBS=""
27961      :
27962   fi
27963
27964
27965   rm -f conf.gtktest
27966
27967
27968                                         case "${host}" in
27969                         *-*-solaris2* )
27970                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27971                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27972                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27973                             fi
27974                                                         if test "$wxUSE_SHARED" != "yes"; then
27975                                 GTK_LIBS="$GTK_LIBS -lX11"
27976                             fi
27977                     esac
27978                 fi
27979
27980                                 if test -z "$wx_cv_lib_gtk"; then
27981                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
27982
27983 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27984 if test "${with_gtk_prefix+set}" = set; then
27985   withval="$with_gtk_prefix"
27986   gtk_config_prefix="$withval"
27987 else
27988   gtk_config_prefix=""
27989 fi;
27990
27991 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27992 if test "${with_gtk_exec_prefix+set}" = set; then
27993   withval="$with_gtk_exec_prefix"
27994   gtk_config_exec_prefix="$withval"
27995 else
27996   gtk_config_exec_prefix=""
27997 fi;
27998 # Check whether --enable-gtktest or --disable-gtktest was given.
27999 if test "${enable_gtktest+set}" = set; then
28000   enableval="$enable_gtktest"
28001
28002 else
28003   enable_gtktest=yes
28004 fi;
28005
28006   for module in . $GTK_MODULES
28007   do
28008       case "$module" in
28009          gthread)
28010              gtk_config_args="$gtk_config_args gthread"
28011          ;;
28012       esac
28013   done
28014
28015   if test x$gtk_config_exec_prefix != x ; then
28016      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28017      if test x${GTK_CONFIG+set} != xset ; then
28018         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28019      fi
28020   fi
28021   if test x$gtk_config_prefix != x ; then
28022      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28023      if test x${GTK_CONFIG+set} != xset ; then
28024         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28025      fi
28026   fi
28027
28028   # Extract the first word of "gtk-config", so it can be a program name with args.
28029 set dummy gtk-config; ac_word=$2
28030 echo "$as_me:$LINENO: checking for $ac_word" >&5
28031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28032 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28033   echo $ECHO_N "(cached) $ECHO_C" >&6
28034 else
28035   case $GTK_CONFIG in
28036   [\\/]* | ?:[\\/]*)
28037   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28038   ;;
28039   *)
28040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28041 for as_dir in $PATH
28042 do
28043   IFS=$as_save_IFS
28044   test -z "$as_dir" && as_dir=.
28045   for ac_exec_ext in '' $ac_executable_extensions; do
28046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28047     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28049     break 2
28050   fi
28051 done
28052 done
28053
28054   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28055   ;;
28056 esac
28057 fi
28058 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28059
28060 if test -n "$GTK_CONFIG"; then
28061   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28062 echo "${ECHO_T}$GTK_CONFIG" >&6
28063 else
28064   echo "$as_me:$LINENO: result: no" >&5
28065 echo "${ECHO_T}no" >&6
28066 fi
28067
28068   min_gtk_version=1.2.7
28069   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28070 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28071   no_gtk=""
28072   if test "$GTK_CONFIG" = "no" ; then
28073     no_gtk=yes
28074   else
28075     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28076     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28077     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28078            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28079     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28080            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28081     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28082            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28083     if test "x$enable_gtktest" = "xyes" ; then
28084       ac_save_CFLAGS="$CFLAGS"
28085       ac_save_LIBS="$LIBS"
28086       CFLAGS="$CFLAGS $GTK_CFLAGS"
28087       LIBS="$GTK_LIBS $LIBS"
28088       rm -f conf.gtktest
28089       if test "$cross_compiling" = yes; then
28090   echo $ac_n "cross compiling; assumed OK... $ac_c"
28091 else
28092   cat >conftest.$ac_ext <<_ACEOF
28093 /* confdefs.h.  */
28094 _ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h.  */
28098
28099 #include <gtk/gtk.h>
28100 #include <stdio.h>
28101 #include <stdlib.h>
28102
28103 int
28104 main ()
28105 {
28106   int major, minor, micro;
28107   char *tmp_version;
28108
28109   system ("touch conf.gtktest");
28110
28111   /* HP/UX 9 (%@#!) writes to sscanf strings */
28112   tmp_version = g_strdup("$min_gtk_version");
28113   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28114      printf("%s, bad version string\n", "$min_gtk_version");
28115      exit(1);
28116    }
28117
28118   if ((gtk_major_version != $gtk_config_major_version) ||
28119       (gtk_minor_version != $gtk_config_minor_version) ||
28120       (gtk_micro_version != $gtk_config_micro_version))
28121     {
28122       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28123              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28124              gtk_major_version, gtk_minor_version, gtk_micro_version);
28125       printf ("*** was found! If gtk-config was correct, then it is best\n");
28126       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28127       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28128       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28129       printf("*** required on your system.\n");
28130       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28131       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28132       printf("*** before re-running configure\n");
28133     }
28134 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28135   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28136            (gtk_minor_version != GTK_MINOR_VERSION) ||
28137            (gtk_micro_version != GTK_MICRO_VERSION))
28138     {
28139       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28140              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28141       printf("*** library (version %d.%d.%d)\n",
28142              gtk_major_version, gtk_minor_version, gtk_micro_version);
28143     }
28144 #endif /* defined (GTK_MAJOR_VERSION) ... */
28145   else
28146     {
28147       if ((gtk_major_version > major) ||
28148         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28149         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28150       {
28151         return 0;
28152        }
28153      else
28154       {
28155         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28156                gtk_major_version, gtk_minor_version, gtk_micro_version);
28157         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28158                major, minor, micro);
28159         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28160         printf("***\n");
28161         printf("*** If you have already installed a sufficiently new version, this error\n");
28162         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28163         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28164         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28165         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28166         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28167         printf("*** so that the correct libraries are found at run-time))\n");
28168       }
28169     }
28170   return 1;
28171 }
28172
28173 _ACEOF
28174 rm -f conftest$ac_exeext
28175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28176   (eval $ac_link) 2>&5
28177   ac_status=$?
28178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28181   (eval $ac_try) 2>&5
28182   ac_status=$?
28183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184   (exit $ac_status); }; }; then
28185   :
28186 else
28187   echo "$as_me: program exited with status $ac_status" >&5
28188 echo "$as_me: failed program was:" >&5
28189 sed 's/^/| /' conftest.$ac_ext >&5
28190
28191 ( exit $ac_status )
28192 no_gtk=yes
28193 fi
28194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28195 fi
28196        CFLAGS="$ac_save_CFLAGS"
28197        LIBS="$ac_save_LIBS"
28198      fi
28199   fi
28200   if test "x$no_gtk" = x ; then
28201      echo "$as_me:$LINENO: result: yes" >&5
28202 echo "${ECHO_T}yes" >&6
28203      wx_cv_lib_gtk=1.2.7
28204   else
28205      echo "$as_me:$LINENO: result: no" >&5
28206 echo "${ECHO_T}no" >&6
28207      if test "$GTK_CONFIG" = "no" ; then
28208        echo "*** The gtk-config script installed by GTK could not be found"
28209        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28210        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28211        echo "*** full path to gtk-config."
28212      else
28213        if test -f conf.gtktest ; then
28214         :
28215        else
28216           echo "*** Could not run GTK test program, checking why..."
28217           CFLAGS="$CFLAGS $GTK_CFLAGS"
28218           LIBS="$LIBS $GTK_LIBS"
28219           cat >conftest.$ac_ext <<_ACEOF
28220 /* confdefs.h.  */
28221 _ACEOF
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h.  */
28225
28226 #include <gtk/gtk.h>
28227 #include <stdio.h>
28228
28229 int
28230 main ()
28231 {
28232  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28233   ;
28234   return 0;
28235 }
28236 _ACEOF
28237 rm -f conftest.$ac_objext conftest$ac_exeext
28238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28239   (eval $ac_link) 2>conftest.er1
28240   ac_status=$?
28241   grep -v '^ *+' conftest.er1 >conftest.err
28242   rm -f conftest.er1
28243   cat conftest.err >&5
28244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245   (exit $ac_status); } &&
28246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28248   (eval $ac_try) 2>&5
28249   ac_status=$?
28250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251   (exit $ac_status); }; } &&
28252          { ac_try='test -s conftest$ac_exeext'
28253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28254   (eval $ac_try) 2>&5
28255   ac_status=$?
28256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257   (exit $ac_status); }; }; then
28258    echo "*** The test program compiled, but did not run. This usually means"
28259           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28260           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28261           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28262           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28263           echo "*** is required on your system"
28264           echo "***"
28265           echo "*** If you have an old version installed, it is best to remove it, although"
28266           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28267           echo "***"
28268           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28269           echo "*** came with the system with the command"
28270           echo "***"
28271           echo "***    rpm --erase --nodeps gtk gtk-devel"
28272 else
28273   echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28275
28276  echo "*** The test program failed to compile or link. See the file config.log for the"
28277           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28278           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28279           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28280 fi
28281 rm -f conftest.err conftest.$ac_objext \
28282       conftest$ac_exeext conftest.$ac_ext
28283           CFLAGS="$ac_save_CFLAGS"
28284           LIBS="$ac_save_LIBS"
28285        fi
28286      fi
28287      GTK_CFLAGS=""
28288      GTK_LIBS=""
28289      :
28290   fi
28291
28292
28293   rm -f conf.gtktest
28294
28295
28296                         if test -z "$wx_cv_lib_gtk"; then
28297
28298 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28299 if test "${with_gtk_prefix+set}" = set; then
28300   withval="$with_gtk_prefix"
28301   gtk_config_prefix="$withval"
28302 else
28303   gtk_config_prefix=""
28304 fi;
28305
28306 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28307 if test "${with_gtk_exec_prefix+set}" = set; then
28308   withval="$with_gtk_exec_prefix"
28309   gtk_config_exec_prefix="$withval"
28310 else
28311   gtk_config_exec_prefix=""
28312 fi;
28313 # Check whether --enable-gtktest or --disable-gtktest was given.
28314 if test "${enable_gtktest+set}" = set; then
28315   enableval="$enable_gtktest"
28316
28317 else
28318   enable_gtktest=yes
28319 fi;
28320
28321   for module in . $GTK_MODULES
28322   do
28323       case "$module" in
28324          gthread)
28325              gtk_config_args="$gtk_config_args gthread"
28326          ;;
28327       esac
28328   done
28329
28330   if test x$gtk_config_exec_prefix != x ; then
28331      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28332      if test x${GTK_CONFIG+set} != xset ; then
28333         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28334      fi
28335   fi
28336   if test x$gtk_config_prefix != x ; then
28337      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28338      if test x${GTK_CONFIG+set} != xset ; then
28339         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28340      fi
28341   fi
28342
28343   # Extract the first word of "gtk-config", so it can be a program name with args.
28344 set dummy gtk-config; ac_word=$2
28345 echo "$as_me:$LINENO: checking for $ac_word" >&5
28346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28347 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28348   echo $ECHO_N "(cached) $ECHO_C" >&6
28349 else
28350   case $GTK_CONFIG in
28351   [\\/]* | ?:[\\/]*)
28352   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28353   ;;
28354   *)
28355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28356 for as_dir in $PATH
28357 do
28358   IFS=$as_save_IFS
28359   test -z "$as_dir" && as_dir=.
28360   for ac_exec_ext in '' $ac_executable_extensions; do
28361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28362     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28364     break 2
28365   fi
28366 done
28367 done
28368
28369   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28370   ;;
28371 esac
28372 fi
28373 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28374
28375 if test -n "$GTK_CONFIG"; then
28376   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28377 echo "${ECHO_T}$GTK_CONFIG" >&6
28378 else
28379   echo "$as_me:$LINENO: result: no" >&5
28380 echo "${ECHO_T}no" >&6
28381 fi
28382
28383   min_gtk_version=1.2.3
28384   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28385 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28386   no_gtk=""
28387   if test "$GTK_CONFIG" = "no" ; then
28388     no_gtk=yes
28389   else
28390     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28391     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28392     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28393            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28394     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28395            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28396     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28397            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28398     if test "x$enable_gtktest" = "xyes" ; then
28399       ac_save_CFLAGS="$CFLAGS"
28400       ac_save_LIBS="$LIBS"
28401       CFLAGS="$CFLAGS $GTK_CFLAGS"
28402       LIBS="$GTK_LIBS $LIBS"
28403       rm -f conf.gtktest
28404       if test "$cross_compiling" = yes; then
28405   echo $ac_n "cross compiling; assumed OK... $ac_c"
28406 else
28407   cat >conftest.$ac_ext <<_ACEOF
28408 /* confdefs.h.  */
28409 _ACEOF
28410 cat confdefs.h >>conftest.$ac_ext
28411 cat >>conftest.$ac_ext <<_ACEOF
28412 /* end confdefs.h.  */
28413
28414 #include <gtk/gtk.h>
28415 #include <stdio.h>
28416 #include <stdlib.h>
28417
28418 int
28419 main ()
28420 {
28421   int major, minor, micro;
28422   char *tmp_version;
28423
28424   system ("touch conf.gtktest");
28425
28426   /* HP/UX 9 (%@#!) writes to sscanf strings */
28427   tmp_version = g_strdup("$min_gtk_version");
28428   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28429      printf("%s, bad version string\n", "$min_gtk_version");
28430      exit(1);
28431    }
28432
28433   if ((gtk_major_version != $gtk_config_major_version) ||
28434       (gtk_minor_version != $gtk_config_minor_version) ||
28435       (gtk_micro_version != $gtk_config_micro_version))
28436     {
28437       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28438              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28439              gtk_major_version, gtk_minor_version, gtk_micro_version);
28440       printf ("*** was found! If gtk-config was correct, then it is best\n");
28441       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28442       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28443       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28444       printf("*** required on your system.\n");
28445       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28446       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28447       printf("*** before re-running configure\n");
28448     }
28449 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28450   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28451            (gtk_minor_version != GTK_MINOR_VERSION) ||
28452            (gtk_micro_version != GTK_MICRO_VERSION))
28453     {
28454       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28455              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28456       printf("*** library (version %d.%d.%d)\n",
28457              gtk_major_version, gtk_minor_version, gtk_micro_version);
28458     }
28459 #endif /* defined (GTK_MAJOR_VERSION) ... */
28460   else
28461     {
28462       if ((gtk_major_version > major) ||
28463         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28464         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28465       {
28466         return 0;
28467        }
28468      else
28469       {
28470         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28471                gtk_major_version, gtk_minor_version, gtk_micro_version);
28472         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28473                major, minor, micro);
28474         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28475         printf("***\n");
28476         printf("*** If you have already installed a sufficiently new version, this error\n");
28477         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28478         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28479         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28480         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28481         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28482         printf("*** so that the correct libraries are found at run-time))\n");
28483       }
28484     }
28485   return 1;
28486 }
28487
28488 _ACEOF
28489 rm -f conftest$ac_exeext
28490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28491   (eval $ac_link) 2>&5
28492   ac_status=$?
28493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28496   (eval $ac_try) 2>&5
28497   ac_status=$?
28498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499   (exit $ac_status); }; }; then
28500   :
28501 else
28502   echo "$as_me: program exited with status $ac_status" >&5
28503 echo "$as_me: failed program was:" >&5
28504 sed 's/^/| /' conftest.$ac_ext >&5
28505
28506 ( exit $ac_status )
28507 no_gtk=yes
28508 fi
28509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28510 fi
28511        CFLAGS="$ac_save_CFLAGS"
28512        LIBS="$ac_save_LIBS"
28513      fi
28514   fi
28515   if test "x$no_gtk" = x ; then
28516      echo "$as_me:$LINENO: result: yes" >&5
28517 echo "${ECHO_T}yes" >&6
28518      wx_cv_lib_gtk=1.2.3
28519   else
28520      echo "$as_me:$LINENO: result: no" >&5
28521 echo "${ECHO_T}no" >&6
28522      if test "$GTK_CONFIG" = "no" ; then
28523        echo "*** The gtk-config script installed by GTK could not be found"
28524        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28525        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28526        echo "*** full path to gtk-config."
28527      else
28528        if test -f conf.gtktest ; then
28529         :
28530        else
28531           echo "*** Could not run GTK test program, checking why..."
28532           CFLAGS="$CFLAGS $GTK_CFLAGS"
28533           LIBS="$LIBS $GTK_LIBS"
28534           cat >conftest.$ac_ext <<_ACEOF
28535 /* confdefs.h.  */
28536 _ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h.  */
28540
28541 #include <gtk/gtk.h>
28542 #include <stdio.h>
28543
28544 int
28545 main ()
28546 {
28547  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28548   ;
28549   return 0;
28550 }
28551 _ACEOF
28552 rm -f conftest.$ac_objext conftest$ac_exeext
28553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28554   (eval $ac_link) 2>conftest.er1
28555   ac_status=$?
28556   grep -v '^ *+' conftest.er1 >conftest.err
28557   rm -f conftest.er1
28558   cat conftest.err >&5
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); } &&
28561          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563   (eval $ac_try) 2>&5
28564   ac_status=$?
28565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566   (exit $ac_status); }; } &&
28567          { ac_try='test -s conftest$ac_exeext'
28568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569   (eval $ac_try) 2>&5
28570   ac_status=$?
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); }; }; then
28573    echo "*** The test program compiled, but did not run. This usually means"
28574           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28575           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28576           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28577           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28578           echo "*** is required on your system"
28579           echo "***"
28580           echo "*** If you have an old version installed, it is best to remove it, although"
28581           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28582           echo "***"
28583           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28584           echo "*** came with the system with the command"
28585           echo "***"
28586           echo "***    rpm --erase --nodeps gtk gtk-devel"
28587 else
28588   echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28590
28591  echo "*** The test program failed to compile or link. See the file config.log for the"
28592           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28593           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28594           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28595 fi
28596 rm -f conftest.err conftest.$ac_objext \
28597       conftest$ac_exeext conftest.$ac_ext
28598           CFLAGS="$ac_save_CFLAGS"
28599           LIBS="$ac_save_LIBS"
28600        fi
28601      fi
28602      GTK_CFLAGS=""
28603      GTK_LIBS=""
28604      :
28605   fi
28606
28607
28608   rm -f conf.gtktest
28609
28610                         fi
28611                     fi
28612                 fi
28613
28614                 if test -z "$wx_cv_lib_gtk"; then
28615                                         wx_cv_lib_gtk=none
28616                 else
28617                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28618                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28619                 fi
28620
28621
28622 fi
28623
28624
28625                         if test "$gtk_version_cached" = 1; then
28626             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28627 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28628         fi
28629
28630         case "$wx_cv_lib_gtk" in
28631             2.0)    WXGTK20=1
28632                     TOOLKIT_VERSION=2
28633                     ;;
28634             1.2.7)  WXGTK127=1
28635                     WXGTK12=1
28636                     ;;
28637             1.2.3)  WXGTK12=1
28638                     ;;
28639             *)      { { echo "$as_me:$LINENO: error:
28640 The development files for GTK+ were not found. For GTK+ 2, please
28641 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28642 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28643 and that the version is 1.2.3 or above. Also check that the
28644 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28645 --libs' are in the LD_LIBRARY_PATH or equivalent.
28646                             " >&5
28647 echo "$as_me: error:
28648 The development files for GTK+ were not found. For GTK+ 2, please
28649 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28650 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28651 and that the version is 1.2.3 or above. Also check that the
28652 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28653 --libs' are in the LD_LIBRARY_PATH or equivalent.
28654                             " >&2;}
28655    { (exit 1); exit 1; }; }
28656                     ;;
28657         esac
28658
28659         if test "$WXGTK20" = 1; then
28660             save_CFLAGS="$CFLAGS"
28661             save_LIBS="$LIBS"
28662             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28663             LIBS="$LIBS $wx_cv_libs_gtk"
28664
28665                                                             echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28666 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28667 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28668   echo $ECHO_N "(cached) $ECHO_C" >&6
28669 else
28670   cat >conftest.$ac_ext <<_ACEOF
28671 /* confdefs.h.  */
28672 _ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h.  */
28676 #include <gtk/gtk.h>
28677
28678 int
28679 main ()
28680 {
28681 #ifndef gtk_icon_size_lookup
28682   char *p = (char *) gtk_icon_size_lookup;
28683 #endif
28684
28685   ;
28686   return 0;
28687 }
28688 _ACEOF
28689 rm -f conftest.$ac_objext
28690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28691   (eval $ac_compile) 2>conftest.er1
28692   ac_status=$?
28693   grep -v '^ *+' conftest.er1 >conftest.err
28694   rm -f conftest.er1
28695   cat conftest.err >&5
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); } &&
28698          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700   (eval $ac_try) 2>&5
28701   ac_status=$?
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); }; } &&
28704          { ac_try='test -s conftest.$ac_objext'
28705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28706   (eval $ac_try) 2>&5
28707   ac_status=$?
28708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709   (exit $ac_status); }; }; then
28710   ac_cv_have_decl_gtk_icon_size_lookup=yes
28711 else
28712   echo "$as_me: failed program was:" >&5
28713 sed 's/^/| /' conftest.$ac_ext >&5
28714
28715 ac_cv_have_decl_gtk_icon_size_lookup=no
28716 fi
28717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28718 fi
28719 echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28720 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28721 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
28722
28723 cat >>confdefs.h <<_ACEOF
28724 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
28725 _ACEOF
28726
28727
28728 else
28729   cat >>confdefs.h <<_ACEOF
28730 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28731 _ACEOF
28732
28733 cat >>confdefs.h <<\_ACEOF
28734 #define NEED_GTK_ICON_SIZE_LOOKUP 1
28735 _ACEOF
28736
28737 fi
28738
28739
28740
28741                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28742 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28743             cat >conftest.$ac_ext <<_ACEOF
28744 /* confdefs.h.  */
28745 _ACEOF
28746 cat confdefs.h >>conftest.$ac_ext
28747 cat >>conftest.$ac_ext <<_ACEOF
28748 /* end confdefs.h.  */
28749
28750                             #include <gtk/gtk.h>
28751
28752 int
28753 main ()
28754 {
28755
28756                             #if !GTK_CHECK_VERSION(2,6,0)
28757                             Not GTK+ 2.6
28758                             #endif
28759
28760   ;
28761   return 0;
28762 }
28763 _ACEOF
28764 rm -f conftest.$ac_objext
28765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28766   (eval $ac_compile) 2>conftest.er1
28767   ac_status=$?
28768   grep -v '^ *+' conftest.er1 >conftest.err
28769   rm -f conftest.er1
28770   cat conftest.err >&5
28771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772   (exit $ac_status); } &&
28773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775   (eval $ac_try) 2>&5
28776   ac_status=$?
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); }; } &&
28779          { ac_try='test -s conftest.$ac_objext'
28780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781   (eval $ac_try) 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; }; then
28785
28786                             cat >>confdefs.h <<\_ACEOF
28787 #define __WXGTK26__ 1
28788 _ACEOF
28789
28790                             cat >>confdefs.h <<\_ACEOF
28791 #define __WXGTK24__ 1
28792 _ACEOF
28793
28794                             echo "$as_me:$LINENO: result: yes" >&5
28795 echo "${ECHO_T}yes" >&6
28796                             ac_wxgtk26=1
28797
28798 else
28799   echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28801
28802
28803                             echo "$as_me:$LINENO: result: no" >&5
28804 echo "${ECHO_T}no" >&6
28805                             ac_wxgtk26=0
28806
28807 fi
28808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28809
28810             if test "$ac_wxgtk26" = 0; then
28811                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28812 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28813             cat >conftest.$ac_ext <<_ACEOF
28814 /* confdefs.h.  */
28815 _ACEOF
28816 cat confdefs.h >>conftest.$ac_ext
28817 cat >>conftest.$ac_ext <<_ACEOF
28818 /* end confdefs.h.  */
28819
28820                             #include <gtk/gtk.h>
28821
28822 int
28823 main ()
28824 {
28825
28826                             #if !GTK_CHECK_VERSION(2,4,0)
28827                             Not GTK+ 2.4
28828                             #endif
28829
28830   ;
28831   return 0;
28832 }
28833 _ACEOF
28834 rm -f conftest.$ac_objext
28835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28836   (eval $ac_compile) 2>conftest.er1
28837   ac_status=$?
28838   grep -v '^ *+' conftest.er1 >conftest.err
28839   rm -f conftest.er1
28840   cat conftest.err >&5
28841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); } &&
28843          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28845   (eval $ac_try) 2>&5
28846   ac_status=$?
28847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848   (exit $ac_status); }; } &&
28849          { ac_try='test -s conftest.$ac_objext'
28850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28851   (eval $ac_try) 2>&5
28852   ac_status=$?
28853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); }; }; then
28855
28856                             cat >>confdefs.h <<\_ACEOF
28857 #define __WXGTK24__ 1
28858 _ACEOF
28859
28860                             echo "$as_me:$LINENO: result: yes" >&5
28861 echo "${ECHO_T}yes" >&6
28862
28863 else
28864   echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28866
28867
28868                             echo "$as_me:$LINENO: result: no" >&5
28869 echo "${ECHO_T}no" >&6
28870
28871 fi
28872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28873             fi
28874
28875             CFLAGS="$save_CFLAGS"
28876             LIBS="$save_LIBS"
28877         else
28878             if test "$wxUSE_UNICODE" = "yes"; then
28879                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28880 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28881                 wxUSE_UNICODE=no
28882             fi
28883
28884                         echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28885 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28886 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28887   echo $ECHO_N "(cached) $ECHO_C" >&6
28888 else
28889   ac_check_lib_save_LIBS=$LIBS
28890 LIBS="-lgdk  $LIBS"
28891 cat >conftest.$ac_ext <<_ACEOF
28892 /* confdefs.h.  */
28893 _ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h.  */
28897
28898 /* Override any gcc2 internal prototype to avoid an error.  */
28899 #ifdef __cplusplus
28900 extern "C"
28901 #endif
28902 /* We use char because int might match the return type of a gcc2
28903    builtin and then its argument prototype would still apply.  */
28904 char gdk_im_open ();
28905 int
28906 main ()
28907 {
28908 gdk_im_open ();
28909   ;
28910   return 0;
28911 }
28912 _ACEOF
28913 rm -f conftest.$ac_objext conftest$ac_exeext
28914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28915   (eval $ac_link) 2>conftest.er1
28916   ac_status=$?
28917   grep -v '^ *+' conftest.er1 >conftest.err
28918   rm -f conftest.er1
28919   cat conftest.err >&5
28920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921   (exit $ac_status); } &&
28922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924   (eval $ac_try) 2>&5
28925   ac_status=$?
28926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927   (exit $ac_status); }; } &&
28928          { ac_try='test -s conftest$ac_exeext'
28929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28930   (eval $ac_try) 2>&5
28931   ac_status=$?
28932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933   (exit $ac_status); }; }; then
28934   ac_cv_lib_gdk_gdk_im_open=yes
28935 else
28936   echo "$as_me: failed program was:" >&5
28937 sed 's/^/| /' conftest.$ac_ext >&5
28938
28939 ac_cv_lib_gdk_gdk_im_open=no
28940 fi
28941 rm -f conftest.err conftest.$ac_objext \
28942       conftest$ac_exeext conftest.$ac_ext
28943 LIBS=$ac_check_lib_save_LIBS
28944 fi
28945 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28946 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28947 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28948   cat >>confdefs.h <<\_ACEOF
28949 #define HAVE_XIM 1
28950 _ACEOF
28951
28952 fi
28953
28954         fi
28955
28956         ac_ext=cc
28957 ac_cpp='$CXXCPP $CPPFLAGS'
28958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28961
28962
28963                         if test "$USE_DARWIN" != 1; then
28964
28965 for ac_func in poll
28966 do
28967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28968 echo "$as_me:$LINENO: checking for $ac_func" >&5
28969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28970 if eval "test \"\${$as_ac_var+set}\" = set"; then
28971   echo $ECHO_N "(cached) $ECHO_C" >&6
28972 else
28973   cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h.  */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h.  */
28979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28981 #define $ac_func innocuous_$ac_func
28982
28983 /* System header to define __stub macros and hopefully few prototypes,
28984     which can conflict with char $ac_func (); below.
28985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28986     <limits.h> exists even on freestanding compilers.  */
28987
28988 #ifdef __STDC__
28989 # include <limits.h>
28990 #else
28991 # include <assert.h>
28992 #endif
28993
28994 #undef $ac_func
28995
28996 /* Override any gcc2 internal prototype to avoid an error.  */
28997 #ifdef __cplusplus
28998 extern "C"
28999 {
29000 #endif
29001 /* We use char because int might match the return type of a gcc2
29002    builtin and then its argument prototype would still apply.  */
29003 char $ac_func ();
29004 /* The GNU C library defines this for functions which it implements
29005     to always fail with ENOSYS.  Some functions are actually named
29006     something starting with __ and the normal name is an alias.  */
29007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29008 choke me
29009 #else
29010 char (*f) () = $ac_func;
29011 #endif
29012 #ifdef __cplusplus
29013 }
29014 #endif
29015
29016 int
29017 main ()
29018 {
29019 return f != $ac_func;
29020   ;
29021   return 0;
29022 }
29023 _ACEOF
29024 rm -f conftest.$ac_objext conftest$ac_exeext
29025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29026   (eval $ac_link) 2>conftest.er1
29027   ac_status=$?
29028   grep -v '^ *+' conftest.er1 >conftest.err
29029   rm -f conftest.er1
29030   cat conftest.err >&5
29031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032   (exit $ac_status); } &&
29033          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29035   (eval $ac_try) 2>&5
29036   ac_status=$?
29037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038   (exit $ac_status); }; } &&
29039          { ac_try='test -s conftest$ac_exeext'
29040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29041   (eval $ac_try) 2>&5
29042   ac_status=$?
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); }; }; then
29045   eval "$as_ac_var=yes"
29046 else
29047   echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29049
29050 eval "$as_ac_var=no"
29051 fi
29052 rm -f conftest.err conftest.$ac_objext \
29053       conftest$ac_exeext conftest.$ac_ext
29054 fi
29055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29057 if test `eval echo '${'$as_ac_var'}'` = yes; then
29058   cat >>confdefs.h <<_ACEOF
29059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29060 _ACEOF
29061
29062 fi
29063 done
29064
29065         fi
29066
29067         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29068         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29069
29070         AFMINSTALL=afminstall
29071         TOOLKIT=GTK
29072         GUIDIST=GTK_DIST
29073
29074                 if test "$wxUSE_GPE" = "yes"; then
29075             echo "$as_me:$LINENO: checking for gpewidget library" >&5
29076 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29077
29078   ac_find_libraries=
29079   for ac_dir in $SEARCH_LIB;
29080   do
29081     for ac_extension in a so sl dylib dll.a; do
29082       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29083         ac_find_libraries=$ac_dir
29084         break 2
29085       fi
29086     done
29087   done
29088
29089             if test "$ac_find_libraries" != "" ; then
29090
29091     if test "$ac_find_libraries" = "default location"; then
29092     ac_path_to_link=""
29093   else
29094     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29095     result=$?
29096     if test $result = 0; then
29097       ac_path_to_link=""
29098     else
29099       ac_path_to_link=" -L$ac_find_libraries"
29100     fi
29101   fi
29102
29103                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29104                 WXGPE=1
29105                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29106 echo "${ECHO_T}found in $ac_find_libraries" >&6
29107             else
29108                 echo "$as_me:$LINENO: result: not found" >&5
29109 echo "${ECHO_T}not found" >&6
29110             fi
29111
29112                                                                                                                     fi
29113     fi
29114
29115     if test "$wxUSE_MGL" = 1; then
29116        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29117 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29118         if test "x$MGL_ROOT" = x ; then
29119             echo "$as_me:$LINENO: result: not found" >&5
29120 echo "${ECHO_T}not found" >&6
29121             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29122 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29123    { (exit 1); exit 1; }; }
29124         else
29125             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29126 echo "${ECHO_T}$MGL_ROOT" >&6
29127         fi
29128
29129         echo "$as_me:$LINENO: checking for libmgl location" >&5
29130 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29131                                 case "${host}" in
29132             *-*-linux* )
29133                                           if test "x$wxUSE_SHARED" = xyes ; then
29134                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29135               else
29136                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29137               fi
29138               ;;
29139             *-pc-msdosdjgpp )
29140               mgl_os_candidates="dos32/dj2"
29141               ;;
29142             *)
29143               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29144 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29145    { (exit 1); exit 1; }; }
29146         esac
29147
29148         mgl_lib_type=""
29149         mgl_os=""
29150
29151         for mgl_os_i in $mgl_os_candidates ; do
29152             if test "x$mgl_os" = x ; then
29153                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29154                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29155                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29156                         mgl_lib_type=debug
29157                         mgl_os=$mgl_os_i
29158                     fi
29159                 fi
29160                 if test "x$mgl_lib_type" = x ; then
29161                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29162                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29163                         mgl_lib_type=release
29164                         mgl_os=$mgl_os_i
29165                     fi
29166                 fi
29167             fi
29168         done
29169
29170         if test "x$mgl_os" = x ; then
29171             echo "$as_me:$LINENO: result: not found" >&5
29172 echo "${ECHO_T}not found" >&6
29173             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29174 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29175    { (exit 1); exit 1; }; }
29176         fi
29177         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29178 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29179
29180         wxUSE_UNIVERSAL="yes"
29181
29182         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29183         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29184
29185         AFMINSTALL=afminstall
29186         TOOLKIT=MGL
29187         GUIDIST=MGL_DIST
29188     fi
29189
29190     if test "$wxUSE_DFB" = 1; then
29191
29192
29193 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29194         if test -n "$ac_tool_prefix"; then
29195   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29196 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29197 echo "$as_me:$LINENO: checking for $ac_word" >&5
29198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29199 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29200   echo $ECHO_N "(cached) $ECHO_C" >&6
29201 else
29202   case $PKG_CONFIG in
29203   [\\/]* | ?:[\\/]*)
29204   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29205   ;;
29206   *)
29207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29208 for as_dir in $PATH
29209 do
29210   IFS=$as_save_IFS
29211   test -z "$as_dir" && as_dir=.
29212   for ac_exec_ext in '' $ac_executable_extensions; do
29213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29214     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29216     break 2
29217   fi
29218 done
29219 done
29220
29221   ;;
29222 esac
29223 fi
29224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29225
29226 if test -n "$PKG_CONFIG"; then
29227   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29228 echo "${ECHO_T}$PKG_CONFIG" >&6
29229 else
29230   echo "$as_me:$LINENO: result: no" >&5
29231 echo "${ECHO_T}no" >&6
29232 fi
29233
29234 fi
29235 if test -z "$ac_cv_path_PKG_CONFIG"; then
29236   ac_pt_PKG_CONFIG=$PKG_CONFIG
29237   # Extract the first word of "pkg-config", so it can be a program name with args.
29238 set dummy pkg-config; ac_word=$2
29239 echo "$as_me:$LINENO: checking for $ac_word" >&5
29240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29241 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29242   echo $ECHO_N "(cached) $ECHO_C" >&6
29243 else
29244   case $ac_pt_PKG_CONFIG in
29245   [\\/]* | ?:[\\/]*)
29246   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29247   ;;
29248   *)
29249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29250 for as_dir in $PATH
29251 do
29252   IFS=$as_save_IFS
29253   test -z "$as_dir" && as_dir=.
29254   for ac_exec_ext in '' $ac_executable_extensions; do
29255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29256     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29258     break 2
29259   fi
29260 done
29261 done
29262
29263   ;;
29264 esac
29265 fi
29266 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29267
29268 if test -n "$ac_pt_PKG_CONFIG"; then
29269   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29270 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29271 else
29272   echo "$as_me:$LINENO: result: no" >&5
29273 echo "${ECHO_T}no" >&6
29274 fi
29275
29276   PKG_CONFIG=$ac_pt_PKG_CONFIG
29277 else
29278   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29279 fi
29280
29281 fi
29282 if test -n "$PKG_CONFIG"; then
29283         _pkg_min_version=0.9.0
29284         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29285 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29286         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29287                 echo "$as_me:$LINENO: result: yes" >&5
29288 echo "${ECHO_T}yes" >&6
29289         else
29290                 echo "$as_me:$LINENO: result: no" >&5
29291 echo "${ECHO_T}no" >&6
29292                 PKG_CONFIG=""
29293         fi
29294
29295 fi
29296
29297
29298 pkg_failed=no
29299 echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29300 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29301
29302 if test -n "$PKG_CONFIG"; then
29303     if test -n "$DIRECTFB_CFLAGS"; then
29304         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29305     else
29306         if test -n "$PKG_CONFIG" && \
29307     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29308   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
29309   ac_status=$?
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); }; then
29312   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
29313 else
29314   pkg_failed=yes
29315 fi
29316     fi
29317 else
29318         pkg_failed=untried
29319 fi
29320 if test -n "$PKG_CONFIG"; then
29321     if test -n "$DIRECTFB_LIBS"; then
29322         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29323     else
29324         if test -n "$PKG_CONFIG" && \
29325     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29326   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
29327   ac_status=$?
29328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329   (exit $ac_status); }; then
29330   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
29331 else
29332   pkg_failed=yes
29333 fi
29334     fi
29335 else
29336         pkg_failed=untried
29337 fi
29338
29339
29340
29341 if test $pkg_failed = yes; then
29342
29343 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29344         _pkg_short_errors_supported=yes
29345 else
29346         _pkg_short_errors_supported=no
29347 fi
29348         if test $_pkg_short_errors_supported = yes; then
29349                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
29350         else
29351                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
29352         fi
29353         # Put the nasty error message in config.log where it belongs
29354         echo "$DIRECTFB_PKG_ERRORS" >&5
29355
29356
29357                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29358 echo "$as_me: error: DirectFB not found." >&2;}
29359    { (exit 1); exit 1; }; }
29360
29361
29362 elif test $pkg_failed = untried; then
29363
29364                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29365 echo "$as_me: error: DirectFB not found." >&2;}
29366    { (exit 1); exit 1; }; }
29367
29368
29369 else
29370         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29371         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29372         echo "$as_me:$LINENO: result: yes" >&5
29373 echo "${ECHO_T}yes" >&6
29374
29375                            wxUSE_UNIVERSAL="yes"
29376                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29377                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29378                            TOOLKIT=DFB
29379                            GUIDIST=DFB_DIST
29380
29381 fi
29382     fi
29383
29384     if test "$wxUSE_MICROWIN" = 1; then
29385         echo "$as_me:$LINENO: checking for MicroWindows" >&5
29386 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29387         if test "x$MICROWINDOWS" = x ; then
29388             echo "$as_me:$LINENO: result: not found" >&5
29389 echo "${ECHO_T}not found" >&6
29390             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29391 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29392    { (exit 1); exit 1; }; }
29393         else
29394             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29395 echo "${ECHO_T}$MICROWINDOWS" >&6
29396         fi
29397
29398         if test -f $MICROWINDOWS/lib/libmwin.a; then
29399             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29400 echo "${ECHO_T}MicroWindows' libraries found." >&6
29401         else
29402             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29403 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29404    { (exit 1); exit 1; }; }
29405         fi
29406
29407         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29408         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29409
29410         wxUSE_UNIVERSAL="yes"
29411
29412         AFMINSTALL=afminstall
29413         TOOLKIT=MICROWIN
29414         GUIDIST=MICROWIN_DIST
29415
29416         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29417     fi
29418
29419         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29420
29421 if test "x$ac_path_x_has_been_run" != xyes; then
29422   echo "$as_me:$LINENO: checking for X" >&5
29423 echo $ECHO_N "checking for X... $ECHO_C" >&6
29424
29425 ac_path_x_has_been_run=yes
29426
29427 # Check whether --with-x or --without-x was given.
29428 if test "${with_x+set}" = set; then
29429   withval="$with_x"
29430
29431 fi;
29432 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29433 if test "x$with_x" = xno; then
29434   # The user explicitly disabled X.
29435   have_x=disabled
29436 else
29437   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29438     # Both variables are already set.
29439     have_x=yes
29440   else
29441     if test "${ac_cv_have_x+set}" = set; then
29442   echo $ECHO_N "(cached) $ECHO_C" >&6
29443 else
29444   # One or both of the vars are not set, and there is no cached value.
29445 ac_x_includes=no ac_x_libraries=no
29446 rm -fr conftest.dir
29447 if mkdir conftest.dir; then
29448   cd conftest.dir
29449   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29450   cat >Imakefile <<'_ACEOF'
29451 acfindx:
29452         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29453 _ACEOF
29454   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29455     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29456     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29457     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29458     for ac_extension in a so sl; do
29459       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29460          test -f $ac_im_libdir/libX11.$ac_extension; then
29461         ac_im_usrlibdir=$ac_im_libdir; break
29462       fi
29463     done
29464     # Screen out bogus values from the imake configuration.  They are
29465     # bogus both because they are the default anyway, and because
29466     # using them would break gcc on systems where it needs fixed includes.
29467     case $ac_im_incroot in
29468         /usr/include) ;;
29469         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29470     esac
29471     case $ac_im_usrlibdir in
29472         /usr/lib | /lib) ;;
29473         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29474     esac
29475   fi
29476   cd ..
29477   rm -fr conftest.dir
29478 fi
29479
29480 # Standard set of common directories for X headers.
29481 # Check X11 before X11Rn because it is often a symlink to the current release.
29482 ac_x_header_dirs='
29483 /usr/X11/include
29484 /usr/X11R6/include
29485 /usr/X11R5/include
29486 /usr/X11R4/include
29487
29488 /usr/include/X11
29489 /usr/include/X11R6
29490 /usr/include/X11R5
29491 /usr/include/X11R4
29492
29493 /usr/local/X11/include
29494 /usr/local/X11R6/include
29495 /usr/local/X11R5/include
29496 /usr/local/X11R4/include
29497
29498 /usr/local/include/X11
29499 /usr/local/include/X11R6
29500 /usr/local/include/X11R5
29501 /usr/local/include/X11R4
29502
29503 /usr/X386/include
29504 /usr/x386/include
29505 /usr/XFree86/include/X11
29506
29507 /usr/include
29508 /usr/local/include
29509 /usr/unsupported/include
29510 /usr/athena/include
29511 /usr/local/x11r5/include
29512 /usr/lpp/Xamples/include
29513
29514 /usr/openwin/include
29515 /usr/openwin/share/include'
29516
29517 if test "$ac_x_includes" = no; then
29518   # Guess where to find include files, by looking for a specified header file.
29519   # First, try using that file with no special directory specified.
29520   cat >conftest.$ac_ext <<_ACEOF
29521 /* confdefs.h.  */
29522 _ACEOF
29523 cat confdefs.h >>conftest.$ac_ext
29524 cat >>conftest.$ac_ext <<_ACEOF
29525 /* end confdefs.h.  */
29526 #include <X11/Xlib.h>
29527 _ACEOF
29528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29530   ac_status=$?
29531   grep -v '^ *+' conftest.er1 >conftest.err
29532   rm -f conftest.er1
29533   cat conftest.err >&5
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); } >/dev/null; then
29536   if test -s conftest.err; then
29537     ac_cpp_err=$ac_cxx_preproc_warn_flag
29538     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29539   else
29540     ac_cpp_err=
29541   fi
29542 else
29543   ac_cpp_err=yes
29544 fi
29545 if test -z "$ac_cpp_err"; then
29546   # We can compile using X headers with no special include directory.
29547 ac_x_includes=
29548 else
29549   echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29551
29552   for ac_dir in $ac_x_header_dirs; do
29553   if test -r "$ac_dir/X11/Xlib.h"; then
29554     ac_x_includes=$ac_dir
29555     break
29556   fi
29557 done
29558 fi
29559 rm -f conftest.err conftest.$ac_ext
29560 fi # $ac_x_includes = no
29561
29562 if test "$ac_x_libraries" = no; then
29563   # Check for the libraries.
29564   # See if we find them without any special options.
29565   # Don't add to $LIBS permanently.
29566   ac_save_LIBS=$LIBS
29567   LIBS="-lX11 $LIBS"
29568   cat >conftest.$ac_ext <<_ACEOF
29569 /* confdefs.h.  */
29570 _ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h.  */
29574 #include <X11/Xlib.h>
29575 int
29576 main ()
29577 {
29578 XrmInitialize ()
29579   ;
29580   return 0;
29581 }
29582 _ACEOF
29583 rm -f conftest.$ac_objext conftest$ac_exeext
29584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29585   (eval $ac_link) 2>conftest.er1
29586   ac_status=$?
29587   grep -v '^ *+' conftest.er1 >conftest.err
29588   rm -f conftest.er1
29589   cat conftest.err >&5
29590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591   (exit $ac_status); } &&
29592          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594   (eval $ac_try) 2>&5
29595   ac_status=$?
29596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597   (exit $ac_status); }; } &&
29598          { ac_try='test -s conftest$ac_exeext'
29599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29600   (eval $ac_try) 2>&5
29601   ac_status=$?
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); }; }; then
29604   LIBS=$ac_save_LIBS
29605 # We can link X programs with no special library path.
29606 ac_x_libraries=
29607 else
29608   echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29610
29611 LIBS=$ac_save_LIBS
29612 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29613 do
29614   # Don't even attempt the hair of trying to link an X program!
29615   for ac_extension in a so sl; do
29616     if test -r $ac_dir/libX11.$ac_extension; then
29617       ac_x_libraries=$ac_dir
29618       break 2
29619     fi
29620   done
29621 done
29622 fi
29623 rm -f conftest.err conftest.$ac_objext \
29624       conftest$ac_exeext conftest.$ac_ext
29625 fi # $ac_x_libraries = no
29626
29627 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29628   # Didn't find X anywhere.  Cache the known absence of X.
29629   ac_cv_have_x="have_x=no"
29630 else
29631   # Record where we found X for the cache.
29632   ac_cv_have_x="have_x=yes \
29633                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29634 fi
29635 fi
29636
29637   fi
29638   eval "$ac_cv_have_x"
29639 fi # $with_x != no
29640
29641 if test "$have_x" != yes; then
29642   echo "$as_me:$LINENO: result: $have_x" >&5
29643 echo "${ECHO_T}$have_x" >&6
29644   no_x=yes
29645 else
29646   # If each of the values was on the command line, it overrides each guess.
29647   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29648   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29649   # Update the cache value to reflect the command line values.
29650   ac_cv_have_x="have_x=yes \
29651                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29652   # It might be that x_includes is empty (headers are found in the
29653   # standard search path. Then output the corresponding message
29654   ac_out_x_includes=$x_includes
29655   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29656   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29657 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
29658 fi
29659
29660 fi
29661 if test "$no_x" = yes; then
29662   # Not all programs may use this symbol, but it does not hurt to define it.
29663
29664 cat >>confdefs.h <<\_ACEOF
29665 #define X_DISPLAY_MISSING 1
29666 _ACEOF
29667
29668   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29669 else
29670   if test -n "$x_includes"; then
29671     X_CFLAGS="$X_CFLAGS -I$x_includes"
29672   fi
29673
29674   # It would also be nice to do this for all -L options, not just this one.
29675   if test -n "$x_libraries"; then
29676     X_LIBS="$X_LIBS -L$x_libraries"
29677     # For Solaris; some versions of Sun CC require a space after -R and
29678     # others require no space.  Words are not sufficient . . . .
29679     case `(uname -sr) 2>/dev/null` in
29680     "SunOS 5"*)
29681       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29682 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29683       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29684       cat >conftest.$ac_ext <<_ACEOF
29685 /* confdefs.h.  */
29686 _ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h.  */
29690
29691 int
29692 main ()
29693 {
29694
29695   ;
29696   return 0;
29697 }
29698 _ACEOF
29699 rm -f conftest.$ac_objext conftest$ac_exeext
29700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29701   (eval $ac_link) 2>conftest.er1
29702   ac_status=$?
29703   grep -v '^ *+' conftest.er1 >conftest.err
29704   rm -f conftest.er1
29705   cat conftest.err >&5
29706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707   (exit $ac_status); } &&
29708          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29710   (eval $ac_try) 2>&5
29711   ac_status=$?
29712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713   (exit $ac_status); }; } &&
29714          { ac_try='test -s conftest$ac_exeext'
29715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29716   (eval $ac_try) 2>&5
29717   ac_status=$?
29718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719   (exit $ac_status); }; }; then
29720   ac_R_nospace=yes
29721 else
29722   echo "$as_me: failed program was:" >&5
29723 sed 's/^/| /' conftest.$ac_ext >&5
29724
29725 ac_R_nospace=no
29726 fi
29727 rm -f conftest.err conftest.$ac_objext \
29728       conftest$ac_exeext conftest.$ac_ext
29729       if test $ac_R_nospace = yes; then
29730         echo "$as_me:$LINENO: result: no" >&5
29731 echo "${ECHO_T}no" >&6
29732         X_LIBS="$X_LIBS -R$x_libraries"
29733       else
29734         LIBS="$ac_xsave_LIBS -R $x_libraries"
29735         cat >conftest.$ac_ext <<_ACEOF
29736 /* confdefs.h.  */
29737 _ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h.  */
29741
29742 int
29743 main ()
29744 {
29745
29746   ;
29747   return 0;
29748 }
29749 _ACEOF
29750 rm -f conftest.$ac_objext conftest$ac_exeext
29751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29752   (eval $ac_link) 2>conftest.er1
29753   ac_status=$?
29754   grep -v '^ *+' conftest.er1 >conftest.err
29755   rm -f conftest.er1
29756   cat conftest.err >&5
29757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758   (exit $ac_status); } &&
29759          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29761   (eval $ac_try) 2>&5
29762   ac_status=$?
29763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764   (exit $ac_status); }; } &&
29765          { ac_try='test -s conftest$ac_exeext'
29766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29767   (eval $ac_try) 2>&5
29768   ac_status=$?
29769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770   (exit $ac_status); }; }; then
29771   ac_R_space=yes
29772 else
29773   echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29775
29776 ac_R_space=no
29777 fi
29778 rm -f conftest.err conftest.$ac_objext \
29779       conftest$ac_exeext conftest.$ac_ext
29780         if test $ac_R_space = yes; then
29781           echo "$as_me:$LINENO: result: yes" >&5
29782 echo "${ECHO_T}yes" >&6
29783           X_LIBS="$X_LIBS -R $x_libraries"
29784         else
29785           echo "$as_me:$LINENO: result: neither works" >&5
29786 echo "${ECHO_T}neither works" >&6
29787         fi
29788       fi
29789       LIBS=$ac_xsave_LIBS
29790     esac
29791   fi
29792
29793   # Check for system-dependent libraries X programs must link with.
29794   # Do this before checking for the system-independent R6 libraries
29795   # (-lICE), since we may need -lsocket or whatever for X linking.
29796
29797   if test "$ISC" = yes; then
29798     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29799   else
29800     # Martyn Johnson says this is needed for Ultrix, if the X
29801     # libraries were built with DECnet support.  And Karl Berry says
29802     # the Alpha needs dnet_stub (dnet does not exist).
29803     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29804     cat >conftest.$ac_ext <<_ACEOF
29805 /* confdefs.h.  */
29806 _ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h.  */
29810
29811 /* Override any gcc2 internal prototype to avoid an error.  */
29812 #ifdef __cplusplus
29813 extern "C"
29814 #endif
29815 /* We use char because int might match the return type of a gcc2
29816    builtin and then its argument prototype would still apply.  */
29817 char XOpenDisplay ();
29818 int
29819 main ()
29820 {
29821 XOpenDisplay ();
29822   ;
29823   return 0;
29824 }
29825 _ACEOF
29826 rm -f conftest.$ac_objext conftest$ac_exeext
29827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29828   (eval $ac_link) 2>conftest.er1
29829   ac_status=$?
29830   grep -v '^ *+' conftest.er1 >conftest.err
29831   rm -f conftest.er1
29832   cat conftest.err >&5
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); } &&
29835          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837   (eval $ac_try) 2>&5
29838   ac_status=$?
29839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840   (exit $ac_status); }; } &&
29841          { ac_try='test -s conftest$ac_exeext'
29842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843   (eval $ac_try) 2>&5
29844   ac_status=$?
29845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846   (exit $ac_status); }; }; then
29847   :
29848 else
29849   echo "$as_me: failed program was:" >&5
29850 sed 's/^/| /' conftest.$ac_ext >&5
29851
29852 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29853 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29854 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29855   echo $ECHO_N "(cached) $ECHO_C" >&6
29856 else
29857   ac_check_lib_save_LIBS=$LIBS
29858 LIBS="-ldnet  $LIBS"
29859 cat >conftest.$ac_ext <<_ACEOF
29860 /* confdefs.h.  */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h.  */
29865
29866 /* Override any gcc2 internal prototype to avoid an error.  */
29867 #ifdef __cplusplus
29868 extern "C"
29869 #endif
29870 /* We use char because int might match the return type of a gcc2
29871    builtin and then its argument prototype would still apply.  */
29872 char dnet_ntoa ();
29873 int
29874 main ()
29875 {
29876 dnet_ntoa ();
29877   ;
29878   return 0;
29879 }
29880 _ACEOF
29881 rm -f conftest.$ac_objext conftest$ac_exeext
29882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29883   (eval $ac_link) 2>conftest.er1
29884   ac_status=$?
29885   grep -v '^ *+' conftest.er1 >conftest.err
29886   rm -f conftest.er1
29887   cat conftest.err >&5
29888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889   (exit $ac_status); } &&
29890          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29892   (eval $ac_try) 2>&5
29893   ac_status=$?
29894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); }; } &&
29896          { ac_try='test -s conftest$ac_exeext'
29897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898   (eval $ac_try) 2>&5
29899   ac_status=$?
29900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901   (exit $ac_status); }; }; then
29902   ac_cv_lib_dnet_dnet_ntoa=yes
29903 else
29904   echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29906
29907 ac_cv_lib_dnet_dnet_ntoa=no
29908 fi
29909 rm -f conftest.err conftest.$ac_objext \
29910       conftest$ac_exeext conftest.$ac_ext
29911 LIBS=$ac_check_lib_save_LIBS
29912 fi
29913 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29914 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29915 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29916   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29917 fi
29918
29919     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29920       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29921 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29922 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29923   echo $ECHO_N "(cached) $ECHO_C" >&6
29924 else
29925   ac_check_lib_save_LIBS=$LIBS
29926 LIBS="-ldnet_stub  $LIBS"
29927 cat >conftest.$ac_ext <<_ACEOF
29928 /* confdefs.h.  */
29929 _ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h.  */
29933
29934 /* Override any gcc2 internal prototype to avoid an error.  */
29935 #ifdef __cplusplus
29936 extern "C"
29937 #endif
29938 /* We use char because int might match the return type of a gcc2
29939    builtin and then its argument prototype would still apply.  */
29940 char dnet_ntoa ();
29941 int
29942 main ()
29943 {
29944 dnet_ntoa ();
29945   ;
29946   return 0;
29947 }
29948 _ACEOF
29949 rm -f conftest.$ac_objext conftest$ac_exeext
29950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29951   (eval $ac_link) 2>conftest.er1
29952   ac_status=$?
29953   grep -v '^ *+' conftest.er1 >conftest.err
29954   rm -f conftest.er1
29955   cat conftest.err >&5
29956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957   (exit $ac_status); } &&
29958          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29960   (eval $ac_try) 2>&5
29961   ac_status=$?
29962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); }; } &&
29964          { ac_try='test -s conftest$ac_exeext'
29965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966   (eval $ac_try) 2>&5
29967   ac_status=$?
29968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969   (exit $ac_status); }; }; then
29970   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29971 else
29972   echo "$as_me: failed program was:" >&5
29973 sed 's/^/| /' conftest.$ac_ext >&5
29974
29975 ac_cv_lib_dnet_stub_dnet_ntoa=no
29976 fi
29977 rm -f conftest.err conftest.$ac_objext \
29978       conftest$ac_exeext conftest.$ac_ext
29979 LIBS=$ac_check_lib_save_LIBS
29980 fi
29981 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29982 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29983 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29984   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29985 fi
29986
29987     fi
29988 fi
29989 rm -f conftest.err conftest.$ac_objext \
29990       conftest$ac_exeext conftest.$ac_ext
29991     LIBS="$ac_xsave_LIBS"
29992
29993     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29994     # to get the SysV transport functions.
29995     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29996     # needs -lnsl.
29997     # The nsl library prevents programs from opening the X display
29998     # on Irix 5.2, according to T.E. Dickey.
29999     # The functions gethostbyname, getservbyname, and inet_addr are
30000     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30001     echo "$as_me:$LINENO: checking for gethostbyname" >&5
30002 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30003 if test "${ac_cv_func_gethostbyname+set}" = set; then
30004   echo $ECHO_N "(cached) $ECHO_C" >&6
30005 else
30006   cat >conftest.$ac_ext <<_ACEOF
30007 /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30014 #define gethostbyname innocuous_gethostbyname
30015
30016 /* System header to define __stub macros and hopefully few prototypes,
30017     which can conflict with char gethostbyname (); below.
30018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30019     <limits.h> exists even on freestanding compilers.  */
30020
30021 #ifdef __STDC__
30022 # include <limits.h>
30023 #else
30024 # include <assert.h>
30025 #endif
30026
30027 #undef gethostbyname
30028
30029 /* Override any gcc2 internal prototype to avoid an error.  */
30030 #ifdef __cplusplus
30031 extern "C"
30032 {
30033 #endif
30034 /* We use char because int might match the return type of a gcc2
30035    builtin and then its argument prototype would still apply.  */
30036 char gethostbyname ();
30037 /* The GNU C library defines this for functions which it implements
30038     to always fail with ENOSYS.  Some functions are actually named
30039     something starting with __ and the normal name is an alias.  */
30040 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30041 choke me
30042 #else
30043 char (*f) () = gethostbyname;
30044 #endif
30045 #ifdef __cplusplus
30046 }
30047 #endif
30048
30049 int
30050 main ()
30051 {
30052 return f != gethostbyname;
30053   ;
30054   return 0;
30055 }
30056 _ACEOF
30057 rm -f conftest.$ac_objext conftest$ac_exeext
30058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30059   (eval $ac_link) 2>conftest.er1
30060   ac_status=$?
30061   grep -v '^ *+' conftest.er1 >conftest.err
30062   rm -f conftest.er1
30063   cat conftest.err >&5
30064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065   (exit $ac_status); } &&
30066          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068   (eval $ac_try) 2>&5
30069   ac_status=$?
30070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071   (exit $ac_status); }; } &&
30072          { ac_try='test -s conftest$ac_exeext'
30073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30074   (eval $ac_try) 2>&5
30075   ac_status=$?
30076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077   (exit $ac_status); }; }; then
30078   ac_cv_func_gethostbyname=yes
30079 else
30080   echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30082
30083 ac_cv_func_gethostbyname=no
30084 fi
30085 rm -f conftest.err conftest.$ac_objext \
30086       conftest$ac_exeext conftest.$ac_ext
30087 fi
30088 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30089 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30090
30091     if test $ac_cv_func_gethostbyname = no; then
30092       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30093 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30094 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30095   echo $ECHO_N "(cached) $ECHO_C" >&6
30096 else
30097   ac_check_lib_save_LIBS=$LIBS
30098 LIBS="-lnsl  $LIBS"
30099 cat >conftest.$ac_ext <<_ACEOF
30100 /* confdefs.h.  */
30101 _ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h.  */
30105
30106 /* Override any gcc2 internal prototype to avoid an error.  */
30107 #ifdef __cplusplus
30108 extern "C"
30109 #endif
30110 /* We use char because int might match the return type of a gcc2
30111    builtin and then its argument prototype would still apply.  */
30112 char gethostbyname ();
30113 int
30114 main ()
30115 {
30116 gethostbyname ();
30117   ;
30118   return 0;
30119 }
30120 _ACEOF
30121 rm -f conftest.$ac_objext conftest$ac_exeext
30122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30123   (eval $ac_link) 2>conftest.er1
30124   ac_status=$?
30125   grep -v '^ *+' conftest.er1 >conftest.err
30126   rm -f conftest.er1
30127   cat conftest.err >&5
30128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129   (exit $ac_status); } &&
30130          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30132   (eval $ac_try) 2>&5
30133   ac_status=$?
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); }; } &&
30136          { ac_try='test -s conftest$ac_exeext'
30137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30138   (eval $ac_try) 2>&5
30139   ac_status=$?
30140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141   (exit $ac_status); }; }; then
30142   ac_cv_lib_nsl_gethostbyname=yes
30143 else
30144   echo "$as_me: failed program was:" >&5
30145 sed 's/^/| /' conftest.$ac_ext >&5
30146
30147 ac_cv_lib_nsl_gethostbyname=no
30148 fi
30149 rm -f conftest.err conftest.$ac_objext \
30150       conftest$ac_exeext conftest.$ac_ext
30151 LIBS=$ac_check_lib_save_LIBS
30152 fi
30153 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30154 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30155 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30156   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30157 fi
30158
30159       if test $ac_cv_lib_nsl_gethostbyname = no; then
30160         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30161 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30162 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30163   echo $ECHO_N "(cached) $ECHO_C" >&6
30164 else
30165   ac_check_lib_save_LIBS=$LIBS
30166 LIBS="-lbsd  $LIBS"
30167 cat >conftest.$ac_ext <<_ACEOF
30168 /* confdefs.h.  */
30169 _ACEOF
30170 cat confdefs.h >>conftest.$ac_ext
30171 cat >>conftest.$ac_ext <<_ACEOF
30172 /* end confdefs.h.  */
30173
30174 /* Override any gcc2 internal prototype to avoid an error.  */
30175 #ifdef __cplusplus
30176 extern "C"
30177 #endif
30178 /* We use char because int might match the return type of a gcc2
30179    builtin and then its argument prototype would still apply.  */
30180 char gethostbyname ();
30181 int
30182 main ()
30183 {
30184 gethostbyname ();
30185   ;
30186   return 0;
30187 }
30188 _ACEOF
30189 rm -f conftest.$ac_objext conftest$ac_exeext
30190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30191   (eval $ac_link) 2>conftest.er1
30192   ac_status=$?
30193   grep -v '^ *+' conftest.er1 >conftest.err
30194   rm -f conftest.er1
30195   cat conftest.err >&5
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); } &&
30198          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30200   (eval $ac_try) 2>&5
30201   ac_status=$?
30202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203   (exit $ac_status); }; } &&
30204          { ac_try='test -s conftest$ac_exeext'
30205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206   (eval $ac_try) 2>&5
30207   ac_status=$?
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); }; }; then
30210   ac_cv_lib_bsd_gethostbyname=yes
30211 else
30212   echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215 ac_cv_lib_bsd_gethostbyname=no
30216 fi
30217 rm -f conftest.err conftest.$ac_objext \
30218       conftest$ac_exeext conftest.$ac_ext
30219 LIBS=$ac_check_lib_save_LIBS
30220 fi
30221 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30222 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30223 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30224   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30225 fi
30226
30227       fi
30228     fi
30229
30230     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30231     # socket/setsockopt and other routines are undefined under SCO ODT
30232     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30233     # on later versions), says Simon Leinen: it contains gethostby*
30234     # variants that don't use the name server (or something).  -lsocket
30235     # must be given before -lnsl if both are needed.  We assume that
30236     # if connect needs -lnsl, so does gethostbyname.
30237     echo "$as_me:$LINENO: checking for connect" >&5
30238 echo $ECHO_N "checking for connect... $ECHO_C" >&6
30239 if test "${ac_cv_func_connect+set}" = set; then
30240   echo $ECHO_N "(cached) $ECHO_C" >&6
30241 else
30242   cat >conftest.$ac_ext <<_ACEOF
30243 /* confdefs.h.  */
30244 _ACEOF
30245 cat confdefs.h >>conftest.$ac_ext
30246 cat >>conftest.$ac_ext <<_ACEOF
30247 /* end confdefs.h.  */
30248 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30250 #define connect innocuous_connect
30251
30252 /* System header to define __stub macros and hopefully few prototypes,
30253     which can conflict with char connect (); below.
30254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30255     <limits.h> exists even on freestanding compilers.  */
30256
30257 #ifdef __STDC__
30258 # include <limits.h>
30259 #else
30260 # include <assert.h>
30261 #endif
30262
30263 #undef connect
30264
30265 /* Override any gcc2 internal prototype to avoid an error.  */
30266 #ifdef __cplusplus
30267 extern "C"
30268 {
30269 #endif
30270 /* We use char because int might match the return type of a gcc2
30271    builtin and then its argument prototype would still apply.  */
30272 char connect ();
30273 /* The GNU C library defines this for functions which it implements
30274     to always fail with ENOSYS.  Some functions are actually named
30275     something starting with __ and the normal name is an alias.  */
30276 #if defined (__stub_connect) || defined (__stub___connect)
30277 choke me
30278 #else
30279 char (*f) () = connect;
30280 #endif
30281 #ifdef __cplusplus
30282 }
30283 #endif
30284
30285 int
30286 main ()
30287 {
30288 return f != connect;
30289   ;
30290   return 0;
30291 }
30292 _ACEOF
30293 rm -f conftest.$ac_objext conftest$ac_exeext
30294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30295   (eval $ac_link) 2>conftest.er1
30296   ac_status=$?
30297   grep -v '^ *+' conftest.er1 >conftest.err
30298   rm -f conftest.er1
30299   cat conftest.err >&5
30300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301   (exit $ac_status); } &&
30302          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30304   (eval $ac_try) 2>&5
30305   ac_status=$?
30306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307   (exit $ac_status); }; } &&
30308          { ac_try='test -s conftest$ac_exeext'
30309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30310   (eval $ac_try) 2>&5
30311   ac_status=$?
30312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313   (exit $ac_status); }; }; then
30314   ac_cv_func_connect=yes
30315 else
30316   echo "$as_me: failed program was:" >&5
30317 sed 's/^/| /' conftest.$ac_ext >&5
30318
30319 ac_cv_func_connect=no
30320 fi
30321 rm -f conftest.err conftest.$ac_objext \
30322       conftest$ac_exeext conftest.$ac_ext
30323 fi
30324 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30325 echo "${ECHO_T}$ac_cv_func_connect" >&6
30326
30327     if test $ac_cv_func_connect = no; then
30328       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30329 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30330 if test "${ac_cv_lib_socket_connect+set}" = set; then
30331   echo $ECHO_N "(cached) $ECHO_C" >&6
30332 else
30333   ac_check_lib_save_LIBS=$LIBS
30334 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30335 cat >conftest.$ac_ext <<_ACEOF
30336 /* confdefs.h.  */
30337 _ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h.  */
30341
30342 /* Override any gcc2 internal prototype to avoid an error.  */
30343 #ifdef __cplusplus
30344 extern "C"
30345 #endif
30346 /* We use char because int might match the return type of a gcc2
30347    builtin and then its argument prototype would still apply.  */
30348 char connect ();
30349 int
30350 main ()
30351 {
30352 connect ();
30353   ;
30354   return 0;
30355 }
30356 _ACEOF
30357 rm -f conftest.$ac_objext conftest$ac_exeext
30358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30359   (eval $ac_link) 2>conftest.er1
30360   ac_status=$?
30361   grep -v '^ *+' conftest.er1 >conftest.err
30362   rm -f conftest.er1
30363   cat conftest.err >&5
30364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365   (exit $ac_status); } &&
30366          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368   (eval $ac_try) 2>&5
30369   ac_status=$?
30370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); }; } &&
30372          { ac_try='test -s conftest$ac_exeext'
30373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374   (eval $ac_try) 2>&5
30375   ac_status=$?
30376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377   (exit $ac_status); }; }; then
30378   ac_cv_lib_socket_connect=yes
30379 else
30380   echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30382
30383 ac_cv_lib_socket_connect=no
30384 fi
30385 rm -f conftest.err conftest.$ac_objext \
30386       conftest$ac_exeext conftest.$ac_ext
30387 LIBS=$ac_check_lib_save_LIBS
30388 fi
30389 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30390 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30391 if test $ac_cv_lib_socket_connect = yes; then
30392   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30393 fi
30394
30395     fi
30396
30397     # Guillermo Gomez says -lposix is necessary on A/UX.
30398     echo "$as_me:$LINENO: checking for remove" >&5
30399 echo $ECHO_N "checking for remove... $ECHO_C" >&6
30400 if test "${ac_cv_func_remove+set}" = set; then
30401   echo $ECHO_N "(cached) $ECHO_C" >&6
30402 else
30403   cat >conftest.$ac_ext <<_ACEOF
30404 /* confdefs.h.  */
30405 _ACEOF
30406 cat confdefs.h >>conftest.$ac_ext
30407 cat >>conftest.$ac_ext <<_ACEOF
30408 /* end confdefs.h.  */
30409 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30411 #define remove innocuous_remove
30412
30413 /* System header to define __stub macros and hopefully few prototypes,
30414     which can conflict with char remove (); below.
30415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30416     <limits.h> exists even on freestanding compilers.  */
30417
30418 #ifdef __STDC__
30419 # include <limits.h>
30420 #else
30421 # include <assert.h>
30422 #endif
30423
30424 #undef remove
30425
30426 /* Override any gcc2 internal prototype to avoid an error.  */
30427 #ifdef __cplusplus
30428 extern "C"
30429 {
30430 #endif
30431 /* We use char because int might match the return type of a gcc2
30432    builtin and then its argument prototype would still apply.  */
30433 char remove ();
30434 /* The GNU C library defines this for functions which it implements
30435     to always fail with ENOSYS.  Some functions are actually named
30436     something starting with __ and the normal name is an alias.  */
30437 #if defined (__stub_remove) || defined (__stub___remove)
30438 choke me
30439 #else
30440 char (*f) () = remove;
30441 #endif
30442 #ifdef __cplusplus
30443 }
30444 #endif
30445
30446 int
30447 main ()
30448 {
30449 return f != remove;
30450   ;
30451   return 0;
30452 }
30453 _ACEOF
30454 rm -f conftest.$ac_objext conftest$ac_exeext
30455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30456   (eval $ac_link) 2>conftest.er1
30457   ac_status=$?
30458   grep -v '^ *+' conftest.er1 >conftest.err
30459   rm -f conftest.er1
30460   cat conftest.err >&5
30461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462   (exit $ac_status); } &&
30463          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30465   (eval $ac_try) 2>&5
30466   ac_status=$?
30467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468   (exit $ac_status); }; } &&
30469          { ac_try='test -s conftest$ac_exeext'
30470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471   (eval $ac_try) 2>&5
30472   ac_status=$?
30473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474   (exit $ac_status); }; }; then
30475   ac_cv_func_remove=yes
30476 else
30477   echo "$as_me: failed program was:" >&5
30478 sed 's/^/| /' conftest.$ac_ext >&5
30479
30480 ac_cv_func_remove=no
30481 fi
30482 rm -f conftest.err conftest.$ac_objext \
30483       conftest$ac_exeext conftest.$ac_ext
30484 fi
30485 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30486 echo "${ECHO_T}$ac_cv_func_remove" >&6
30487
30488     if test $ac_cv_func_remove = no; then
30489       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30490 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30491 if test "${ac_cv_lib_posix_remove+set}" = set; then
30492   echo $ECHO_N "(cached) $ECHO_C" >&6
30493 else
30494   ac_check_lib_save_LIBS=$LIBS
30495 LIBS="-lposix  $LIBS"
30496 cat >conftest.$ac_ext <<_ACEOF
30497 /* confdefs.h.  */
30498 _ACEOF
30499 cat confdefs.h >>conftest.$ac_ext
30500 cat >>conftest.$ac_ext <<_ACEOF
30501 /* end confdefs.h.  */
30502
30503 /* Override any gcc2 internal prototype to avoid an error.  */
30504 #ifdef __cplusplus
30505 extern "C"
30506 #endif
30507 /* We use char because int might match the return type of a gcc2
30508    builtin and then its argument prototype would still apply.  */
30509 char remove ();
30510 int
30511 main ()
30512 {
30513 remove ();
30514   ;
30515   return 0;
30516 }
30517 _ACEOF
30518 rm -f conftest.$ac_objext conftest$ac_exeext
30519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30520   (eval $ac_link) 2>conftest.er1
30521   ac_status=$?
30522   grep -v '^ *+' conftest.er1 >conftest.err
30523   rm -f conftest.er1
30524   cat conftest.err >&5
30525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526   (exit $ac_status); } &&
30527          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30529   (eval $ac_try) 2>&5
30530   ac_status=$?
30531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); }; } &&
30533          { ac_try='test -s conftest$ac_exeext'
30534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30535   (eval $ac_try) 2>&5
30536   ac_status=$?
30537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538   (exit $ac_status); }; }; then
30539   ac_cv_lib_posix_remove=yes
30540 else
30541   echo "$as_me: failed program was:" >&5
30542 sed 's/^/| /' conftest.$ac_ext >&5
30543
30544 ac_cv_lib_posix_remove=no
30545 fi
30546 rm -f conftest.err conftest.$ac_objext \
30547       conftest$ac_exeext conftest.$ac_ext
30548 LIBS=$ac_check_lib_save_LIBS
30549 fi
30550 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30551 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30552 if test $ac_cv_lib_posix_remove = yes; then
30553   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30554 fi
30555
30556     fi
30557
30558     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30559     echo "$as_me:$LINENO: checking for shmat" >&5
30560 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30561 if test "${ac_cv_func_shmat+set}" = set; then
30562   echo $ECHO_N "(cached) $ECHO_C" >&6
30563 else
30564   cat >conftest.$ac_ext <<_ACEOF
30565 /* confdefs.h.  */
30566 _ACEOF
30567 cat confdefs.h >>conftest.$ac_ext
30568 cat >>conftest.$ac_ext <<_ACEOF
30569 /* end confdefs.h.  */
30570 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30572 #define shmat innocuous_shmat
30573
30574 /* System header to define __stub macros and hopefully few prototypes,
30575     which can conflict with char shmat (); below.
30576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30577     <limits.h> exists even on freestanding compilers.  */
30578
30579 #ifdef __STDC__
30580 # include <limits.h>
30581 #else
30582 # include <assert.h>
30583 #endif
30584
30585 #undef shmat
30586
30587 /* Override any gcc2 internal prototype to avoid an error.  */
30588 #ifdef __cplusplus
30589 extern "C"
30590 {
30591 #endif
30592 /* We use char because int might match the return type of a gcc2
30593    builtin and then its argument prototype would still apply.  */
30594 char shmat ();
30595 /* The GNU C library defines this for functions which it implements
30596     to always fail with ENOSYS.  Some functions are actually named
30597     something starting with __ and the normal name is an alias.  */
30598 #if defined (__stub_shmat) || defined (__stub___shmat)
30599 choke me
30600 #else
30601 char (*f) () = shmat;
30602 #endif
30603 #ifdef __cplusplus
30604 }
30605 #endif
30606
30607 int
30608 main ()
30609 {
30610 return f != shmat;
30611   ;
30612   return 0;
30613 }
30614 _ACEOF
30615 rm -f conftest.$ac_objext conftest$ac_exeext
30616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30617   (eval $ac_link) 2>conftest.er1
30618   ac_status=$?
30619   grep -v '^ *+' conftest.er1 >conftest.err
30620   rm -f conftest.er1
30621   cat conftest.err >&5
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); } &&
30624          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626   (eval $ac_try) 2>&5
30627   ac_status=$?
30628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); }; } &&
30630          { ac_try='test -s conftest$ac_exeext'
30631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632   (eval $ac_try) 2>&5
30633   ac_status=$?
30634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635   (exit $ac_status); }; }; then
30636   ac_cv_func_shmat=yes
30637 else
30638   echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30640
30641 ac_cv_func_shmat=no
30642 fi
30643 rm -f conftest.err conftest.$ac_objext \
30644       conftest$ac_exeext conftest.$ac_ext
30645 fi
30646 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30647 echo "${ECHO_T}$ac_cv_func_shmat" >&6
30648
30649     if test $ac_cv_func_shmat = no; then
30650       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30651 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30652 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30653   echo $ECHO_N "(cached) $ECHO_C" >&6
30654 else
30655   ac_check_lib_save_LIBS=$LIBS
30656 LIBS="-lipc  $LIBS"
30657 cat >conftest.$ac_ext <<_ACEOF
30658 /* confdefs.h.  */
30659 _ACEOF
30660 cat confdefs.h >>conftest.$ac_ext
30661 cat >>conftest.$ac_ext <<_ACEOF
30662 /* end confdefs.h.  */
30663
30664 /* Override any gcc2 internal prototype to avoid an error.  */
30665 #ifdef __cplusplus
30666 extern "C"
30667 #endif
30668 /* We use char because int might match the return type of a gcc2
30669    builtin and then its argument prototype would still apply.  */
30670 char shmat ();
30671 int
30672 main ()
30673 {
30674 shmat ();
30675   ;
30676   return 0;
30677 }
30678 _ACEOF
30679 rm -f conftest.$ac_objext conftest$ac_exeext
30680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30681   (eval $ac_link) 2>conftest.er1
30682   ac_status=$?
30683   grep -v '^ *+' conftest.er1 >conftest.err
30684   rm -f conftest.er1
30685   cat conftest.err >&5
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); } &&
30688          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30690   (eval $ac_try) 2>&5
30691   ac_status=$?
30692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693   (exit $ac_status); }; } &&
30694          { ac_try='test -s conftest$ac_exeext'
30695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696   (eval $ac_try) 2>&5
30697   ac_status=$?
30698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699   (exit $ac_status); }; }; then
30700   ac_cv_lib_ipc_shmat=yes
30701 else
30702   echo "$as_me: failed program was:" >&5
30703 sed 's/^/| /' conftest.$ac_ext >&5
30704
30705 ac_cv_lib_ipc_shmat=no
30706 fi
30707 rm -f conftest.err conftest.$ac_objext \
30708       conftest$ac_exeext conftest.$ac_ext
30709 LIBS=$ac_check_lib_save_LIBS
30710 fi
30711 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30712 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30713 if test $ac_cv_lib_ipc_shmat = yes; then
30714   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30715 fi
30716
30717     fi
30718   fi
30719
30720   # Check for libraries that X11R6 Xt/Xaw programs need.
30721   ac_save_LDFLAGS=$LDFLAGS
30722   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30723   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30724   # check for ICE first), but we must link in the order -lSM -lICE or
30725   # we get undefined symbols.  So assume we have SM if we have ICE.
30726   # These have to be linked with before -lX11, unlike the other
30727   # libraries we check for below, so use a different variable.
30728   # John Interrante, Karl Berry
30729   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30730 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30731 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30732   echo $ECHO_N "(cached) $ECHO_C" >&6
30733 else
30734   ac_check_lib_save_LIBS=$LIBS
30735 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30736 cat >conftest.$ac_ext <<_ACEOF
30737 /* confdefs.h.  */
30738 _ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h.  */
30742
30743 /* Override any gcc2 internal prototype to avoid an error.  */
30744 #ifdef __cplusplus
30745 extern "C"
30746 #endif
30747 /* We use char because int might match the return type of a gcc2
30748    builtin and then its argument prototype would still apply.  */
30749 char IceConnectionNumber ();
30750 int
30751 main ()
30752 {
30753 IceConnectionNumber ();
30754   ;
30755   return 0;
30756 }
30757 _ACEOF
30758 rm -f conftest.$ac_objext conftest$ac_exeext
30759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30760   (eval $ac_link) 2>conftest.er1
30761   ac_status=$?
30762   grep -v '^ *+' conftest.er1 >conftest.err
30763   rm -f conftest.er1
30764   cat conftest.err >&5
30765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766   (exit $ac_status); } &&
30767          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769   (eval $ac_try) 2>&5
30770   ac_status=$?
30771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772   (exit $ac_status); }; } &&
30773          { ac_try='test -s conftest$ac_exeext'
30774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775   (eval $ac_try) 2>&5
30776   ac_status=$?
30777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778   (exit $ac_status); }; }; then
30779   ac_cv_lib_ICE_IceConnectionNumber=yes
30780 else
30781   echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30783
30784 ac_cv_lib_ICE_IceConnectionNumber=no
30785 fi
30786 rm -f conftest.err conftest.$ac_objext \
30787       conftest$ac_exeext conftest.$ac_ext
30788 LIBS=$ac_check_lib_save_LIBS
30789 fi
30790 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30791 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30792 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30793   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30794 fi
30795
30796   LDFLAGS=$ac_save_LDFLAGS
30797
30798 fi
30799
30800
30801         if test "$no_x" = "yes"; then
30802           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30803 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30804    { (exit 1); exit 1; }; }
30805         fi
30806
30807                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30808         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30809         AFMINSTALL=afminstall
30810         COMPILED_X_PROGRAM=0
30811
30812     fi
30813
30814     if test "$wxUSE_X11" = 1; then
30815         if test "$wxUSE_NANOX" = "yes"; then
30816             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30817 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30818             if test "x$MICROWIN" = x ; then
30819                 echo "$as_me:$LINENO: result: not found" >&5
30820 echo "${ECHO_T}not found" >&6
30821                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30822 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30823    { (exit 1); exit 1; }; }
30824             else
30825                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30826 echo "${ECHO_T}$MICROWIN" >&6
30827                 cat >>confdefs.h <<\_ACEOF
30828 #define wxUSE_NANOX 1
30829 _ACEOF
30830
30831             fi
30832         fi
30833
30834         if test "$wxUSE_UNICODE" = "yes"; then
30835
30836
30837 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30838         if test -n "$ac_tool_prefix"; then
30839   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30840 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30841 echo "$as_me:$LINENO: checking for $ac_word" >&5
30842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30843 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30844   echo $ECHO_N "(cached) $ECHO_C" >&6
30845 else
30846   case $PKG_CONFIG in
30847   [\\/]* | ?:[\\/]*)
30848   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30849   ;;
30850   *)
30851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30852 for as_dir in $PATH
30853 do
30854   IFS=$as_save_IFS
30855   test -z "$as_dir" && as_dir=.
30856   for ac_exec_ext in '' $ac_executable_extensions; do
30857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30858     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30860     break 2
30861   fi
30862 done
30863 done
30864
30865   ;;
30866 esac
30867 fi
30868 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30869
30870 if test -n "$PKG_CONFIG"; then
30871   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30872 echo "${ECHO_T}$PKG_CONFIG" >&6
30873 else
30874   echo "$as_me:$LINENO: result: no" >&5
30875 echo "${ECHO_T}no" >&6
30876 fi
30877
30878 fi
30879 if test -z "$ac_cv_path_PKG_CONFIG"; then
30880   ac_pt_PKG_CONFIG=$PKG_CONFIG
30881   # Extract the first word of "pkg-config", so it can be a program name with args.
30882 set dummy pkg-config; ac_word=$2
30883 echo "$as_me:$LINENO: checking for $ac_word" >&5
30884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30885 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30886   echo $ECHO_N "(cached) $ECHO_C" >&6
30887 else
30888   case $ac_pt_PKG_CONFIG in
30889   [\\/]* | ?:[\\/]*)
30890   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30891   ;;
30892   *)
30893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30894 for as_dir in $PATH
30895 do
30896   IFS=$as_save_IFS
30897   test -z "$as_dir" && as_dir=.
30898   for ac_exec_ext in '' $ac_executable_extensions; do
30899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30900     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30902     break 2
30903   fi
30904 done
30905 done
30906
30907   ;;
30908 esac
30909 fi
30910 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30911
30912 if test -n "$ac_pt_PKG_CONFIG"; then
30913   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30914 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
30915 else
30916   echo "$as_me:$LINENO: result: no" >&5
30917 echo "${ECHO_T}no" >&6
30918 fi
30919
30920   PKG_CONFIG=$ac_pt_PKG_CONFIG
30921 else
30922   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30923 fi
30924
30925 fi
30926 if test -n "$PKG_CONFIG"; then
30927         _pkg_min_version=0.9.0
30928         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30929 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30930         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30931                 echo "$as_me:$LINENO: result: yes" >&5
30932 echo "${ECHO_T}yes" >&6
30933         else
30934                 echo "$as_me:$LINENO: result: no" >&5
30935 echo "${ECHO_T}no" >&6
30936                 PKG_CONFIG=""
30937         fi
30938
30939 fi
30940
30941
30942 pkg_failed=no
30943 echo "$as_me:$LINENO: checking for PANGOX" >&5
30944 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
30945
30946 if test -n "$PKG_CONFIG"; then
30947     if test -n "$PANGOX_CFLAGS"; then
30948         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30949     else
30950         if test -n "$PKG_CONFIG" && \
30951     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30952   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30953   ac_status=$?
30954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955   (exit $ac_status); }; then
30956   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30957 else
30958   pkg_failed=yes
30959 fi
30960     fi
30961 else
30962         pkg_failed=untried
30963 fi
30964 if test -n "$PKG_CONFIG"; then
30965     if test -n "$PANGOX_LIBS"; then
30966         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30967     else
30968         if test -n "$PKG_CONFIG" && \
30969     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30970   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30971   ac_status=$?
30972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973   (exit $ac_status); }; then
30974   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30975 else
30976   pkg_failed=yes
30977 fi
30978     fi
30979 else
30980         pkg_failed=untried
30981 fi
30982
30983
30984
30985 if test $pkg_failed = yes; then
30986
30987 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30988         _pkg_short_errors_supported=yes
30989 else
30990         _pkg_short_errors_supported=no
30991 fi
30992         if test $_pkg_short_errors_supported = yes; then
30993                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30994         else
30995                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30996         fi
30997         # Put the nasty error message in config.log where it belongs
30998         echo "$PANGOX_PKG_ERRORS" >&5
30999
31000
31001                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31002 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31003    { (exit 1); exit 1; }; }
31004
31005
31006 elif test $pkg_failed = untried; then
31007
31008                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31009 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31010    { (exit 1); exit 1; }; }
31011
31012
31013 else
31014         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31015         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31016         echo "$as_me:$LINENO: result: yes" >&5
31017 echo "${ECHO_T}yes" >&6
31018
31019                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31020                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31021
31022 fi
31023
31024 pkg_failed=no
31025 echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31026 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31027
31028 if test -n "$PKG_CONFIG"; then
31029     if test -n "$PANGOFT2_CFLAGS"; then
31030         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31031     else
31032         if test -n "$PKG_CONFIG" && \
31033     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31034   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31035   ac_status=$?
31036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037   (exit $ac_status); }; then
31038   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31039 else
31040   pkg_failed=yes
31041 fi
31042     fi
31043 else
31044         pkg_failed=untried
31045 fi
31046 if test -n "$PKG_CONFIG"; then
31047     if test -n "$PANGOFT2_LIBS"; then
31048         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31049     else
31050         if test -n "$PKG_CONFIG" && \
31051     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31052   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31053   ac_status=$?
31054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31055   (exit $ac_status); }; then
31056   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31057 else
31058   pkg_failed=yes
31059 fi
31060     fi
31061 else
31062         pkg_failed=untried
31063 fi
31064
31065
31066
31067 if test $pkg_failed = yes; then
31068
31069 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31070         _pkg_short_errors_supported=yes
31071 else
31072         _pkg_short_errors_supported=no
31073 fi
31074         if test $_pkg_short_errors_supported = yes; then
31075                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31076         else
31077                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31078         fi
31079         # Put the nasty error message in config.log where it belongs
31080         echo "$PANGOFT2_PKG_ERRORS" >&5
31081
31082
31083                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31084 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31085                     wxUSE_PRINTING_ARCHITECTURE="no"
31086
31087
31088 elif test $pkg_failed = untried; then
31089
31090                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31091 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31092                     wxUSE_PRINTING_ARCHITECTURE="no"
31093
31094
31095 else
31096         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31097         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31098         echo "$as_me:$LINENO: result: yes" >&5
31099 echo "${ECHO_T}yes" >&6
31100
31101                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31102                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31103
31104 fi
31105
31106 pkg_failed=no
31107 echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31108 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
31109
31110 if test -n "$PKG_CONFIG"; then
31111     if test -n "$PANGOXFT_CFLAGS"; then
31112         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31113     else
31114         if test -n "$PKG_CONFIG" && \
31115     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31116   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31117   ac_status=$?
31118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119   (exit $ac_status); }; then
31120   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31121 else
31122   pkg_failed=yes
31123 fi
31124     fi
31125 else
31126         pkg_failed=untried
31127 fi
31128 if test -n "$PKG_CONFIG"; then
31129     if test -n "$PANGOXFT_LIBS"; then
31130         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31131     else
31132         if test -n "$PKG_CONFIG" && \
31133     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31134   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31135   ac_status=$?
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); }; then
31138   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31139 else
31140   pkg_failed=yes
31141 fi
31142     fi
31143 else
31144         pkg_failed=untried
31145 fi
31146
31147
31148
31149 if test $pkg_failed = yes; then
31150
31151 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31152         _pkg_short_errors_supported=yes
31153 else
31154         _pkg_short_errors_supported=no
31155 fi
31156         if test $_pkg_short_errors_supported = yes; then
31157                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31158         else
31159                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31160         fi
31161         # Put the nasty error message in config.log where it belongs
31162         echo "$PANGOXFT_PKG_ERRORS" >&5
31163
31164
31165                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31166 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31167
31168
31169 elif test $pkg_failed = untried; then
31170
31171                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31172 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31173
31174
31175 else
31176         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31177         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31178         echo "$as_me:$LINENO: result: yes" >&5
31179 echo "${ECHO_T}yes" >&6
31180
31181                     cat >>confdefs.h <<\_ACEOF
31182 #define HAVE_PANGO_XFT 1
31183 _ACEOF
31184
31185                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31186                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31187
31188 fi
31189             save_CXXFLAGS="$CXXFLAGS"
31190             save_LIBS="$LIBS"
31191             CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31192             LIBS="$LIBS $PANGOX_LIBS"
31193
31194 for ac_func in pango_font_family_is_monospace
31195 do
31196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31197 echo "$as_me:$LINENO: checking for $ac_func" >&5
31198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31199 if eval "test \"\${$as_ac_var+set}\" = set"; then
31200   echo $ECHO_N "(cached) $ECHO_C" >&6
31201 else
31202   cat >conftest.$ac_ext <<_ACEOF
31203 /* confdefs.h.  */
31204 _ACEOF
31205 cat confdefs.h >>conftest.$ac_ext
31206 cat >>conftest.$ac_ext <<_ACEOF
31207 /* end confdefs.h.  */
31208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31210 #define $ac_func innocuous_$ac_func
31211
31212 /* System header to define __stub macros and hopefully few prototypes,
31213     which can conflict with char $ac_func (); below.
31214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31215     <limits.h> exists even on freestanding compilers.  */
31216
31217 #ifdef __STDC__
31218 # include <limits.h>
31219 #else
31220 # include <assert.h>
31221 #endif
31222
31223 #undef $ac_func
31224
31225 /* Override any gcc2 internal prototype to avoid an error.  */
31226 #ifdef __cplusplus
31227 extern "C"
31228 {
31229 #endif
31230 /* We use char because int might match the return type of a gcc2
31231    builtin and then its argument prototype would still apply.  */
31232 char $ac_func ();
31233 /* The GNU C library defines this for functions which it implements
31234     to always fail with ENOSYS.  Some functions are actually named
31235     something starting with __ and the normal name is an alias.  */
31236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31237 choke me
31238 #else
31239 char (*f) () = $ac_func;
31240 #endif
31241 #ifdef __cplusplus
31242 }
31243 #endif
31244
31245 int
31246 main ()
31247 {
31248 return f != $ac_func;
31249   ;
31250   return 0;
31251 }
31252 _ACEOF
31253 rm -f conftest.$ac_objext conftest$ac_exeext
31254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31255   (eval $ac_link) 2>conftest.er1
31256   ac_status=$?
31257   grep -v '^ *+' conftest.er1 >conftest.err
31258   rm -f conftest.er1
31259   cat conftest.err >&5
31260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261   (exit $ac_status); } &&
31262          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31264   (eval $ac_try) 2>&5
31265   ac_status=$?
31266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267   (exit $ac_status); }; } &&
31268          { ac_try='test -s conftest$ac_exeext'
31269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31270   (eval $ac_try) 2>&5
31271   ac_status=$?
31272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273   (exit $ac_status); }; }; then
31274   eval "$as_ac_var=yes"
31275 else
31276   echo "$as_me: failed program was:" >&5
31277 sed 's/^/| /' conftest.$ac_ext >&5
31278
31279 eval "$as_ac_var=no"
31280 fi
31281 rm -f conftest.err conftest.$ac_objext \
31282       conftest$ac_exeext conftest.$ac_ext
31283 fi
31284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31286 if test `eval echo '${'$as_ac_var'}'` = yes; then
31287   cat >>confdefs.h <<_ACEOF
31288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31289 _ACEOF
31290
31291 fi
31292 done
31293
31294             CXXFLAGS="$save_CXXFLAGS"
31295             LIBS="$save_LIBS"
31296         fi
31297
31298         wxUSE_UNIVERSAL="yes"
31299
31300         if test "$wxUSE_NANOX" = "yes"; then
31301             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31302             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"
31303             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31304         else
31305             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31306         fi
31307
31308         TOOLKIT=X11
31309         GUIDIST=X11_DIST
31310     fi
31311
31312     if test "$wxUSE_MOTIF" = 1; then
31313         if test "$wxUSE_UNICODE" = "yes"; then
31314             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31315 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31316    { (exit 1); exit 1; }; }
31317         fi
31318
31319         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31320 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
31321
31322 ac_find_includes=
31323 for ac_dir in $SEARCH_INCLUDE /usr/include;
31324   do
31325     if test -f "$ac_dir/Xm/Xm.h"; then
31326       ac_find_includes=$ac_dir
31327       break
31328     fi
31329   done
31330
31331         if test "$ac_find_includes" != "" ; then
31332             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31333 echo "${ECHO_T}found in $ac_find_includes" >&6
31334
31335     if test "x$ac_find_includes" = "x/usr/include"; then
31336     ac_path_to_include=""
31337   else
31338     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31339     result=$?
31340     if test $result = 0; then
31341       ac_path_to_include=""
31342     else
31343       ac_path_to_include=" -I$ac_find_includes"
31344     fi
31345   fi
31346
31347             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31348         else
31349             save_CXXFLAGS=$CXXFLAGS
31350             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31351
31352             cat >conftest.$ac_ext <<_ACEOF
31353 /* confdefs.h.  */
31354 _ACEOF
31355 cat confdefs.h >>conftest.$ac_ext
31356 cat >>conftest.$ac_ext <<_ACEOF
31357 /* end confdefs.h.  */
31358
31359                     #include <Xm/Xm.h>
31360
31361 int
31362 main ()
31363 {
31364
31365                     int version;
31366                     version = xmUseVersion;
31367
31368   ;
31369   return 0;
31370 }
31371 _ACEOF
31372 rm -f conftest.$ac_objext
31373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31374   (eval $ac_compile) 2>conftest.er1
31375   ac_status=$?
31376   grep -v '^ *+' conftest.er1 >conftest.err
31377   rm -f conftest.er1
31378   cat conftest.err >&5
31379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380   (exit $ac_status); } &&
31381          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31383   (eval $ac_try) 2>&5
31384   ac_status=$?
31385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386   (exit $ac_status); }; } &&
31387          { ac_try='test -s conftest.$ac_objext'
31388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31389   (eval $ac_try) 2>&5
31390   ac_status=$?
31391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392   (exit $ac_status); }; }; then
31393
31394                     echo "$as_me:$LINENO: result: found in default search path" >&5
31395 echo "${ECHO_T}found in default search path" >&6
31396                     COMPILED_X_PROGRAM=1
31397
31398 else
31399   echo "$as_me: failed program was:" >&5
31400 sed 's/^/| /' conftest.$ac_ext >&5
31401
31402
31403                     echo "$as_me:$LINENO: result: no" >&5
31404 echo "${ECHO_T}no" >&6
31405                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31406 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31407    { (exit 1); exit 1; }; }
31408
31409
31410 fi
31411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31412
31413             CXXFLAGS=$save_CXXFLAGS
31414         fi
31415
31416
31417         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31418 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31419
31420   ac_find_libraries=
31421   for ac_dir in $SEARCH_LIB;
31422   do
31423     for ac_extension in a so sl dylib dll.a; do
31424       if test -f "$ac_dir/libXm.$ac_extension"; then
31425         ac_find_libraries=$ac_dir
31426         break 2
31427       fi
31428     done
31429   done
31430
31431
31432         if test "x$ac_find_libraries" != "x" ; then
31433             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31434 echo "${ECHO_T}found in $ac_find_libraries" >&6
31435
31436
31437     if test "$ac_find_libraries" = "default location"; then
31438     ac_path_to_link=""
31439   else
31440     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31441     result=$?
31442     if test $result = 0; then
31443       ac_path_to_link=""
31444     else
31445       ac_path_to_link=" -L$ac_find_libraries"
31446     fi
31447   fi
31448
31449             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31450         else
31451                                                 save_CXXFLAGS=$CXXFLAGS
31452             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31453             save_LIBS="$LIBS"
31454             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31455
31456             cat >conftest.$ac_ext <<_ACEOF
31457 /* confdefs.h.  */
31458 _ACEOF
31459 cat confdefs.h >>conftest.$ac_ext
31460 cat >>conftest.$ac_ext <<_ACEOF
31461 /* end confdefs.h.  */
31462
31463                     #include <Xm/Xm.h>
31464
31465 int
31466 main ()
31467 {
31468
31469                     int version;
31470                     version = xmUseVersion;
31471
31472   ;
31473   return 0;
31474 }
31475 _ACEOF
31476 rm -f conftest.$ac_objext conftest$ac_exeext
31477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31478   (eval $ac_link) 2>conftest.er1
31479   ac_status=$?
31480   grep -v '^ *+' conftest.er1 >conftest.err
31481   rm -f conftest.er1
31482   cat conftest.err >&5
31483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484   (exit $ac_status); } &&
31485          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31487   (eval $ac_try) 2>&5
31488   ac_status=$?
31489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490   (exit $ac_status); }; } &&
31491          { ac_try='test -s conftest$ac_exeext'
31492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493   (eval $ac_try) 2>&5
31494   ac_status=$?
31495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496   (exit $ac_status); }; }; then
31497
31498                     echo "$as_me:$LINENO: result: found in default search path" >&5
31499 echo "${ECHO_T}found in default search path" >&6
31500                     COMPILED_X_PROGRAM=1
31501
31502 else
31503   echo "$as_me: failed program was:" >&5
31504 sed 's/^/| /' conftest.$ac_ext >&5
31505
31506
31507                     echo "$as_me:$LINENO: result: no" >&5
31508 echo "${ECHO_T}no" >&6
31509                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31510 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31511    { (exit 1); exit 1; }; }
31512
31513
31514 fi
31515 rm -f conftest.err conftest.$ac_objext \
31516       conftest$ac_exeext conftest.$ac_ext
31517
31518             CXXFLAGS=$save_CXXFLAGS
31519             LIBS="$save_LIBS"
31520         fi
31521
31522         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31523 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31524         libp_link=""
31525         libsm_ice_link=""
31526         libs_found=0
31527         for libp in "" " -lXp"; do
31528             if test "$libs_found" = "0"; then
31529                 for libsm_ice in "" " -lSM -lICE"; do
31530                     if test "$libs_found" = "0"; then
31531                         save_LIBS="$LIBS"
31532                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31533                         save_CXXFLAGS=$CXXFLAGS
31534                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31535
31536                         cat >conftest.$ac_ext <<_ACEOF
31537 /* confdefs.h.  */
31538 _ACEOF
31539 cat confdefs.h >>conftest.$ac_ext
31540 cat >>conftest.$ac_ext <<_ACEOF
31541 /* end confdefs.h.  */
31542
31543                                 #include <Xm/Xm.h>
31544                                 #include <Xm/List.h>
31545
31546 int
31547 main ()
31548 {
31549
31550                                 XmString string = NULL;
31551                                 Widget w = NULL;
31552                                 int position = 0;
31553                                 XmListAddItem(w, string, position);
31554
31555   ;
31556   return 0;
31557 }
31558 _ACEOF
31559 rm -f conftest.$ac_objext conftest$ac_exeext
31560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31561   (eval $ac_link) 2>conftest.er1
31562   ac_status=$?
31563   grep -v '^ *+' conftest.er1 >conftest.err
31564   rm -f conftest.er1
31565   cat conftest.err >&5
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); } &&
31568          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31570   (eval $ac_try) 2>&5
31571   ac_status=$?
31572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573   (exit $ac_status); }; } &&
31574          { ac_try='test -s conftest$ac_exeext'
31575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31576   (eval $ac_try) 2>&5
31577   ac_status=$?
31578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579   (exit $ac_status); }; }; then
31580
31581                                 libp_link="$libp"
31582                                 libsm_ice_link="$libsm_ice"
31583                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31584 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31585                                 libs_found=1
31586
31587 else
31588   echo "$as_me: failed program was:" >&5
31589 sed 's/^/| /' conftest.$ac_ext >&5
31590
31591
31592
31593 fi
31594 rm -f conftest.err conftest.$ac_objext \
31595       conftest$ac_exeext conftest.$ac_ext
31596
31597                         LIBS="$save_LIBS"
31598                         CXXFLAGS=$save_CXXFLAGS
31599                     fi
31600                 done
31601             fi
31602         done
31603
31604         if test "$libs_found" = "0"; then
31605             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31606 echo "${ECHO_T}can't find the right libraries" >&6
31607             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31608 echo "$as_me: error: can't link a simple motif program" >&2;}
31609    { (exit 1); exit 1; }; }
31610         fi
31611
31612                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31613 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31614 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31615   echo $ECHO_N "(cached) $ECHO_C" >&6
31616 else
31617   ac_check_lib_save_LIBS=$LIBS
31618 LIBS="-lSgm  $LIBS"
31619 cat >conftest.$ac_ext <<_ACEOF
31620 /* confdefs.h.  */
31621 _ACEOF
31622 cat confdefs.h >>conftest.$ac_ext
31623 cat >>conftest.$ac_ext <<_ACEOF
31624 /* end confdefs.h.  */
31625
31626 /* Override any gcc2 internal prototype to avoid an error.  */
31627 #ifdef __cplusplus
31628 extern "C"
31629 #endif
31630 /* We use char because int might match the return type of a gcc2
31631    builtin and then its argument prototype would still apply.  */
31632 char SgCreateList ();
31633 int
31634 main ()
31635 {
31636 SgCreateList ();
31637   ;
31638   return 0;
31639 }
31640 _ACEOF
31641 rm -f conftest.$ac_objext conftest$ac_exeext
31642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31643   (eval $ac_link) 2>conftest.er1
31644   ac_status=$?
31645   grep -v '^ *+' conftest.er1 >conftest.err
31646   rm -f conftest.er1
31647   cat conftest.err >&5
31648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649   (exit $ac_status); } &&
31650          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31652   (eval $ac_try) 2>&5
31653   ac_status=$?
31654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655   (exit $ac_status); }; } &&
31656          { ac_try='test -s conftest$ac_exeext'
31657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31658   (eval $ac_try) 2>&5
31659   ac_status=$?
31660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661   (exit $ac_status); }; }; then
31662   ac_cv_lib_Sgm_SgCreateList=yes
31663 else
31664   echo "$as_me: failed program was:" >&5
31665 sed 's/^/| /' conftest.$ac_ext >&5
31666
31667 ac_cv_lib_Sgm_SgCreateList=no
31668 fi
31669 rm -f conftest.err conftest.$ac_objext \
31670       conftest$ac_exeext conftest.$ac_ext
31671 LIBS=$ac_check_lib_save_LIBS
31672 fi
31673 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31674 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31675 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31676   libsgm_link=" -lSgm"
31677 fi
31678
31679
31680         save_CXXFLAGS=$CXXFLAGS
31681         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31682
31683         echo "$as_me:$LINENO: checking for Motif 2" >&5
31684 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
31685 if test "${wx_cv_lib_motif2+set}" = set; then
31686   echo $ECHO_N "(cached) $ECHO_C" >&6
31687 else
31688   cat >conftest.$ac_ext <<_ACEOF
31689 /* confdefs.h.  */
31690 _ACEOF
31691 cat confdefs.h >>conftest.$ac_ext
31692 cat >>conftest.$ac_ext <<_ACEOF
31693 /* end confdefs.h.  */
31694
31695                             #include <Xm/Xm.h>
31696
31697 int
31698 main ()
31699 {
31700
31701                             #if XmVersion < 2000
31702                             Not Motif 2
31703                             #endif
31704
31705   ;
31706   return 0;
31707 }
31708 _ACEOF
31709 rm -f conftest.$ac_objext
31710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31711   (eval $ac_compile) 2>conftest.er1
31712   ac_status=$?
31713   grep -v '^ *+' conftest.er1 >conftest.err
31714   rm -f conftest.er1
31715   cat conftest.err >&5
31716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717   (exit $ac_status); } &&
31718          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31720   (eval $ac_try) 2>&5
31721   ac_status=$?
31722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723   (exit $ac_status); }; } &&
31724          { ac_try='test -s conftest.$ac_objext'
31725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31726   (eval $ac_try) 2>&5
31727   ac_status=$?
31728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729   (exit $ac_status); }; }; then
31730   wx_cv_lib_motif2="yes"
31731 else
31732   echo "$as_me: failed program was:" >&5
31733 sed 's/^/| /' conftest.$ac_ext >&5
31734
31735 wx_cv_lib_motif2="no"
31736 fi
31737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31738 fi
31739 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31740 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31741         if test "$wx_cv_lib_motif2" = "yes"; then
31742             cat >>confdefs.h <<\_ACEOF
31743 #define __WXMOTIF20__ 1
31744 _ACEOF
31745
31746         else
31747             cat >>confdefs.h <<\_ACEOF
31748 #define __WXMOTIF20__ 0
31749 _ACEOF
31750
31751         fi
31752
31753         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31754 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
31755 if test "${wx_cv_lib_lesstif+set}" = set; then
31756   echo $ECHO_N "(cached) $ECHO_C" >&6
31757 else
31758   cat >conftest.$ac_ext <<_ACEOF
31759 /* confdefs.h.  */
31760 _ACEOF
31761 cat confdefs.h >>conftest.$ac_ext
31762 cat >>conftest.$ac_ext <<_ACEOF
31763 /* end confdefs.h.  */
31764
31765                             #include <Xm/Xm.h>
31766
31767 int
31768 main ()
31769 {
31770
31771                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31772                             Not Lesstif
31773                             #endif
31774
31775   ;
31776   return 0;
31777 }
31778 _ACEOF
31779 rm -f conftest.$ac_objext
31780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31781   (eval $ac_compile) 2>conftest.er1
31782   ac_status=$?
31783   grep -v '^ *+' conftest.er1 >conftest.err
31784   rm -f conftest.er1
31785   cat conftest.err >&5
31786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787   (exit $ac_status); } &&
31788          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31790   (eval $ac_try) 2>&5
31791   ac_status=$?
31792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793   (exit $ac_status); }; } &&
31794          { ac_try='test -s conftest.$ac_objext'
31795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31796   (eval $ac_try) 2>&5
31797   ac_status=$?
31798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799   (exit $ac_status); }; }; then
31800   wx_cv_lib_lesstif="yes"
31801 else
31802   echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31804
31805 wx_cv_lib_lesstif="no"
31806 fi
31807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31808
31809 fi
31810 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31811 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31812         if test "$wx_cv_lib_lesstif" = "yes"; then
31813             cat >>confdefs.h <<\_ACEOF
31814 #define __WXLESSTIF__ 1
31815 _ACEOF
31816
31817         else
31818             cat >>confdefs.h <<\_ACEOF
31819 #define __WXLESSTIF__ 0
31820 _ACEOF
31821
31822         fi
31823
31824         CXXFLAGS=$save_CXXFLAGS
31825
31826         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31827         TOOLKIT=MOTIF
31828         GUIDIST=MOTIF_DIST
31829     fi
31830
31831         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31832                 if test "$wxUSE_LIBXPM" = "sys"; then
31833             echo "$as_me:$LINENO: checking for Xpm library" >&5
31834 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31835
31836   ac_find_libraries=
31837   for ac_dir in $SEARCH_LIB;
31838   do
31839     for ac_extension in a so sl dylib dll.a; do
31840       if test -f "$ac_dir/libXpm.$ac_extension"; then
31841         ac_find_libraries=$ac_dir
31842         break 2
31843       fi
31844     done
31845   done
31846
31847             if test "$ac_find_libraries" != "" ; then
31848
31849     if test "$ac_find_libraries" = "default location"; then
31850     ac_path_to_link=""
31851   else
31852     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31853     result=$?
31854     if test $result = 0; then
31855       ac_path_to_link=""
31856     else
31857       ac_path_to_link=" -L$ac_find_libraries"
31858     fi
31859   fi
31860
31861                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31862                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31863 echo "${ECHO_T}found in $ac_find_libraries" >&6
31864
31865                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31866 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31867 if test "${wx_cv_x11_xpm_h+set}" = set; then
31868   echo $ECHO_N "(cached) $ECHO_C" >&6
31869 else
31870
31871                         save_CXXFLAGS=$CXXFLAGS
31872                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31873
31874                         cat >conftest.$ac_ext <<_ACEOF
31875 /* confdefs.h.  */
31876 _ACEOF
31877 cat confdefs.h >>conftest.$ac_ext
31878 cat >>conftest.$ac_ext <<_ACEOF
31879 /* end confdefs.h.  */
31880
31881                                 #include <X11/xpm.h>
31882
31883 int
31884 main ()
31885 {
31886
31887                                 int version;
31888                                 version = XpmLibraryVersion();
31889
31890   ;
31891   return 0;
31892 }
31893 _ACEOF
31894 rm -f conftest.$ac_objext
31895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31896   (eval $ac_compile) 2>conftest.er1
31897   ac_status=$?
31898   grep -v '^ *+' conftest.er1 >conftest.err
31899   rm -f conftest.er1
31900   cat conftest.err >&5
31901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902   (exit $ac_status); } &&
31903          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31905   (eval $ac_try) 2>&5
31906   ac_status=$?
31907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908   (exit $ac_status); }; } &&
31909          { ac_try='test -s conftest.$ac_objext'
31910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31911   (eval $ac_try) 2>&5
31912   ac_status=$?
31913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914   (exit $ac_status); }; }; then
31915   wx_cv_x11_xpm_h=yes
31916 else
31917   echo "$as_me: failed program was:" >&5
31918 sed 's/^/| /' conftest.$ac_ext >&5
31919
31920 wx_cv_x11_xpm_h=no
31921
31922 fi
31923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31924
31925                         CXXFLAGS=$save_CXXFLAGS
31926
31927
31928 fi
31929 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31930 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31931
31932                 if test $wx_cv_x11_xpm_h = "yes"; then
31933                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31934                     cat >>confdefs.h <<\_ACEOF
31935 #define wxHAVE_LIB_XPM 1
31936 _ACEOF
31937
31938                 else
31939                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31940 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31941                 fi
31942             fi
31943
31944         fi
31945
31946                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31947 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31948 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31949   echo $ECHO_N "(cached) $ECHO_C" >&6
31950 else
31951   ac_check_lib_save_LIBS=$LIBS
31952 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31953 cat >conftest.$ac_ext <<_ACEOF
31954 /* confdefs.h.  */
31955 _ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h.  */
31959
31960 /* Override any gcc2 internal prototype to avoid an error.  */
31961 #ifdef __cplusplus
31962 extern "C"
31963 #endif
31964 /* We use char because int might match the return type of a gcc2
31965    builtin and then its argument prototype would still apply.  */
31966 char XShapeQueryExtension ();
31967 int
31968 main ()
31969 {
31970 XShapeQueryExtension ();
31971   ;
31972   return 0;
31973 }
31974 _ACEOF
31975 rm -f conftest.$ac_objext conftest$ac_exeext
31976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31977   (eval $ac_link) 2>conftest.er1
31978   ac_status=$?
31979   grep -v '^ *+' conftest.er1 >conftest.err
31980   rm -f conftest.er1
31981   cat conftest.err >&5
31982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983   (exit $ac_status); } &&
31984          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31986   (eval $ac_try) 2>&5
31987   ac_status=$?
31988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989   (exit $ac_status); }; } &&
31990          { ac_try='test -s conftest$ac_exeext'
31991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31992   (eval $ac_try) 2>&5
31993   ac_status=$?
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); }; }; then
31996   ac_cv_lib_Xext_XShapeQueryExtension=yes
31997 else
31998   echo "$as_me: failed program was:" >&5
31999 sed 's/^/| /' conftest.$ac_ext >&5
32000
32001 ac_cv_lib_Xext_XShapeQueryExtension=no
32002 fi
32003 rm -f conftest.err conftest.$ac_objext \
32004       conftest$ac_exeext conftest.$ac_ext
32005 LIBS=$ac_check_lib_save_LIBS
32006 fi
32007 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32008 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32009 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32010
32011                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32012                       wxHAVE_XEXT_LIB=1
32013
32014 fi
32015
32016
32017         if test "$wxHAVE_XEXT_LIB" = 1; then
32018             save_CXXFLAGS="$CXXFLAGS"
32019             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
32020
32021             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32022 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32023             cat >conftest.$ac_ext <<_ACEOF
32024 /* confdefs.h.  */
32025 _ACEOF
32026 cat confdefs.h >>conftest.$ac_ext
32027 cat >>conftest.$ac_ext <<_ACEOF
32028 /* end confdefs.h.  */
32029
32030                             #include <X11/Xlib.h>
32031                             #include <X11/extensions/shape.h>
32032
32033 int
32034 main ()
32035 {
32036
32037                             int dummy1, dummy2;
32038                             XShapeQueryExtension((Display*)NULL,
32039                                                  (int*)NULL, (int*)NULL);
32040
32041   ;
32042   return 0;
32043 }
32044 _ACEOF
32045 rm -f conftest.$ac_objext
32046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32047   (eval $ac_compile) 2>conftest.er1
32048   ac_status=$?
32049   grep -v '^ *+' conftest.er1 >conftest.err
32050   rm -f conftest.er1
32051   cat conftest.err >&5
32052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053   (exit $ac_status); } &&
32054          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32056   (eval $ac_try) 2>&5
32057   ac_status=$?
32058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059   (exit $ac_status); }; } &&
32060          { ac_try='test -s conftest.$ac_objext'
32061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32062   (eval $ac_try) 2>&5
32063   ac_status=$?
32064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065   (exit $ac_status); }; }; then
32066
32067                             cat >>confdefs.h <<\_ACEOF
32068 #define HAVE_XSHAPE 1
32069 _ACEOF
32070
32071                             echo "$as_me:$LINENO: result: found" >&5
32072 echo "${ECHO_T}found" >&6
32073
32074 else
32075   echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32077
32078
32079                             echo "$as_me:$LINENO: result: not found" >&5
32080 echo "${ECHO_T}not found" >&6
32081
32082 fi
32083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32084             CXXFLAGS="$save_CXXFLAGS"
32085
32086         fi
32087     fi
32088
32089     if test "$wxUSE_MAC" = 1; then
32090         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32091 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32092         if test "$GCC" = yes; then
32093             echo "$as_me:$LINENO: result: gcc" >&5
32094 echo "${ECHO_T}gcc" >&6
32095             CPPFLAGS_PASCAL="-fpascal-strings"
32096         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32097             echo "$as_me:$LINENO: result: xlc" >&5
32098 echo "${ECHO_T}xlc" >&6
32099             CPPFLAGS_PASCAL="-qmacpstr"
32100         else
32101             echo "$as_me:$LINENO: result: none" >&5
32102 echo "${ECHO_T}none" >&6
32103         fi
32104
32105         if test "x$wxUSE_UNIX" = "xyes"; then
32106             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32107         else
32108                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32109         fi
32110
32111         TOOLKIT=MAC
32112                 GUIDIST=MACX_DIST
32113                         WXBASEPORT="_carbon"
32114     fi
32115
32116     if test "$wxUSE_COCOA" = 1; then
32117         TOOLKIT=COCOA
32118         GUIDIST=COCOA_DIST
32119     fi
32120
32121     if test "$wxUSE_PM" = 1; then
32122         TOOLKIT=PM
32123         GUIDIST=PM_DIST
32124         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32125 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32126 if test "${wx_cv_spbcdata+set}" = set; then
32127   echo $ECHO_N "(cached) $ECHO_C" >&6
32128 else
32129
32130                 cat >conftest.$ac_ext <<_ACEOF
32131 /* confdefs.h.  */
32132 _ACEOF
32133 cat confdefs.h >>conftest.$ac_ext
32134 cat >>conftest.$ac_ext <<_ACEOF
32135 /* end confdefs.h.  */
32136
32137                         #define INCL_PM
32138                         #include <os2.h>
32139
32140 int
32141 main ()
32142 {
32143
32144                         SPBCDATA test;
32145
32146   ;
32147   return 0;
32148 }
32149 _ACEOF
32150 rm -f conftest.$ac_objext
32151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32152   (eval $ac_compile) 2>conftest.er1
32153   ac_status=$?
32154   grep -v '^ *+' conftest.er1 >conftest.err
32155   rm -f conftest.er1
32156   cat conftest.err >&5
32157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32158   (exit $ac_status); } &&
32159          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32161   (eval $ac_try) 2>&5
32162   ac_status=$?
32163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164   (exit $ac_status); }; } &&
32165          { ac_try='test -s conftest.$ac_objext'
32166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32167   (eval $ac_try) 2>&5
32168   ac_status=$?
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); }; }; then
32171   wx_cv_spbcdata=yes
32172 else
32173   echo "$as_me: failed program was:" >&5
32174 sed 's/^/| /' conftest.$ac_ext >&5
32175
32176 wx_cv_spbcdata=no
32177
32178 fi
32179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32180
32181
32182 fi
32183 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32184 echo "${ECHO_T}$wx_cv_spbcdata" >&6
32185
32186         if test $wx_cv_spbcdata = "yes"; then
32187             cat >>confdefs.h <<\_ACEOF
32188 #define HAVE_SPBCDATA 1
32189 _ACEOF
32190
32191         fi
32192     fi
32193
32194         if test "$TOOLKIT" = "PM" ; then
32195         TOOLKIT_DIR="os2"
32196     else
32197         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32198     fi
32199
32200     if test "$wxUSE_UNIVERSAL" = "yes"; then
32201         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32202         WIDGET_SET=univ
32203     fi
32204
32205         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32206     DISTDIR="wx\$(TOOLKIT)"
32207 else
32208     USE_GUI=0
32209
32210             TOOLKIT_DIR="base"
32211
32212         if test "$USE_WIN32" = 1 ; then
32213                         TOOLKIT="MSW"
32214     fi
32215
32216         GUIDIST="BASE_DIST"
32217     DISTDIR="wxBase"
32218 fi
32219
32220
32221 if test "$wxUSE_GUI" = "yes"; then
32222     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32223
32224 for ac_header in X11/Xlib.h
32225 do
32226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32228   echo "$as_me:$LINENO: checking for $ac_header" >&5
32229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32231   echo $ECHO_N "(cached) $ECHO_C" >&6
32232 fi
32233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32235 else
32236   # Is the header compilable?
32237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32239 cat >conftest.$ac_ext <<_ACEOF
32240 /* confdefs.h.  */
32241 _ACEOF
32242 cat confdefs.h >>conftest.$ac_ext
32243 cat >>conftest.$ac_ext <<_ACEOF
32244 /* end confdefs.h.  */
32245 $ac_includes_default
32246 #include <$ac_header>
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"                         || test ! -s conftest.err'
32258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32259   (eval $ac_try) 2>&5
32260   ac_status=$?
32261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262   (exit $ac_status); }; } &&
32263          { ac_try='test -s conftest.$ac_objext'
32264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32265   (eval $ac_try) 2>&5
32266   ac_status=$?
32267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268   (exit $ac_status); }; }; then
32269   ac_header_compiler=yes
32270 else
32271   echo "$as_me: failed program was:" >&5
32272 sed 's/^/| /' conftest.$ac_ext >&5
32273
32274 ac_header_compiler=no
32275 fi
32276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32278 echo "${ECHO_T}$ac_header_compiler" >&6
32279
32280 # Is the header present?
32281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32283 cat >conftest.$ac_ext <<_ACEOF
32284 /* confdefs.h.  */
32285 _ACEOF
32286 cat confdefs.h >>conftest.$ac_ext
32287 cat >>conftest.$ac_ext <<_ACEOF
32288 /* end confdefs.h.  */
32289 #include <$ac_header>
32290 _ACEOF
32291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32293   ac_status=$?
32294   grep -v '^ *+' conftest.er1 >conftest.err
32295   rm -f conftest.er1
32296   cat conftest.err >&5
32297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298   (exit $ac_status); } >/dev/null; then
32299   if test -s conftest.err; then
32300     ac_cpp_err=$ac_cxx_preproc_warn_flag
32301     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32302   else
32303     ac_cpp_err=
32304   fi
32305 else
32306   ac_cpp_err=yes
32307 fi
32308 if test -z "$ac_cpp_err"; then
32309   ac_header_preproc=yes
32310 else
32311   echo "$as_me: failed program was:" >&5
32312 sed 's/^/| /' conftest.$ac_ext >&5
32313
32314   ac_header_preproc=no
32315 fi
32316 rm -f conftest.err conftest.$ac_ext
32317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32318 echo "${ECHO_T}$ac_header_preproc" >&6
32319
32320 # So?  What about this header?
32321 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32322   yes:no: )
32323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32327     ac_header_preproc=yes
32328     ;;
32329   no:yes:* )
32330     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32332     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32333 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32334     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32336     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32337 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32340     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32342     (
32343       cat <<\_ASBOX
32344 ## ----------------------------------------- ##
32345 ## Report this to wx-dev@lists.wxwidgets.org ##
32346 ## ----------------------------------------- ##
32347 _ASBOX
32348     ) |
32349       sed "s/^/$as_me: WARNING:     /" >&2
32350     ;;
32351 esac
32352 echo "$as_me:$LINENO: checking for $ac_header" >&5
32353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32355   echo $ECHO_N "(cached) $ECHO_C" >&6
32356 else
32357   eval "$as_ac_Header=\$ac_header_preproc"
32358 fi
32359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32361
32362 fi
32363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32364   cat >>confdefs.h <<_ACEOF
32365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32366 _ACEOF
32367
32368 fi
32369
32370 done
32371
32372
32373 for ac_header in X11/XKBlib.h
32374 do
32375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32376 echo "$as_me:$LINENO: checking for $ac_header" >&5
32377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32379   echo $ECHO_N "(cached) $ECHO_C" >&6
32380 else
32381   cat >conftest.$ac_ext <<_ACEOF
32382 /* confdefs.h.  */
32383 _ACEOF
32384 cat confdefs.h >>conftest.$ac_ext
32385 cat >>conftest.$ac_ext <<_ACEOF
32386 /* end confdefs.h.  */
32387
32388                           #if HAVE_X11_XLIB_H
32389                             #include <X11/Xlib.h>
32390                           #endif
32391
32392
32393 #include <$ac_header>
32394 _ACEOF
32395 rm -f conftest.$ac_objext
32396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32397   (eval $ac_compile) 2>conftest.er1
32398   ac_status=$?
32399   grep -v '^ *+' conftest.er1 >conftest.err
32400   rm -f conftest.er1
32401   cat conftest.err >&5
32402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403   (exit $ac_status); } &&
32404          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32406   (eval $ac_try) 2>&5
32407   ac_status=$?
32408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409   (exit $ac_status); }; } &&
32410          { ac_try='test -s conftest.$ac_objext'
32411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32412   (eval $ac_try) 2>&5
32413   ac_status=$?
32414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415   (exit $ac_status); }; }; then
32416   eval "$as_ac_Header=yes"
32417 else
32418   echo "$as_me: failed program was:" >&5
32419 sed 's/^/| /' conftest.$ac_ext >&5
32420
32421 eval "$as_ac_Header=no"
32422 fi
32423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32424 fi
32425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32428   cat >>confdefs.h <<_ACEOF
32429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32430 _ACEOF
32431
32432 fi
32433
32434 done
32435
32436     fi
32437 fi
32438
32439
32440
32441 IODBC_C_SRC=""
32442
32443
32444 if test "$TOOLKIT" != "MSW" ; then
32445
32446     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32447
32448         if test "${ac_cv_header_sql_h+set}" = set; then
32449   echo "$as_me:$LINENO: checking for sql.h" >&5
32450 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32451 if test "${ac_cv_header_sql_h+set}" = set; then
32452   echo $ECHO_N "(cached) $ECHO_C" >&6
32453 fi
32454 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32455 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32456 else
32457   # Is the header compilable?
32458 echo "$as_me:$LINENO: checking sql.h usability" >&5
32459 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32460 cat >conftest.$ac_ext <<_ACEOF
32461 /* confdefs.h.  */
32462 _ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h.  */
32466 $ac_includes_default
32467 #include <sql.h>
32468 _ACEOF
32469 rm -f conftest.$ac_objext
32470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32471   (eval $ac_compile) 2>conftest.er1
32472   ac_status=$?
32473   grep -v '^ *+' conftest.er1 >conftest.err
32474   rm -f conftest.er1
32475   cat conftest.err >&5
32476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477   (exit $ac_status); } &&
32478          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32480   (eval $ac_try) 2>&5
32481   ac_status=$?
32482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483   (exit $ac_status); }; } &&
32484          { ac_try='test -s conftest.$ac_objext'
32485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486   (eval $ac_try) 2>&5
32487   ac_status=$?
32488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489   (exit $ac_status); }; }; then
32490   ac_header_compiler=yes
32491 else
32492   echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32494
32495 ac_header_compiler=no
32496 fi
32497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32499 echo "${ECHO_T}$ac_header_compiler" >&6
32500
32501 # Is the header present?
32502 echo "$as_me:$LINENO: checking sql.h presence" >&5
32503 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32504 cat >conftest.$ac_ext <<_ACEOF
32505 /* confdefs.h.  */
32506 _ACEOF
32507 cat confdefs.h >>conftest.$ac_ext
32508 cat >>conftest.$ac_ext <<_ACEOF
32509 /* end confdefs.h.  */
32510 #include <sql.h>
32511 _ACEOF
32512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32514   ac_status=$?
32515   grep -v '^ *+' conftest.er1 >conftest.err
32516   rm -f conftest.er1
32517   cat conftest.err >&5
32518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519   (exit $ac_status); } >/dev/null; then
32520   if test -s conftest.err; then
32521     ac_cpp_err=$ac_cxx_preproc_warn_flag
32522     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32523   else
32524     ac_cpp_err=
32525   fi
32526 else
32527   ac_cpp_err=yes
32528 fi
32529 if test -z "$ac_cpp_err"; then
32530   ac_header_preproc=yes
32531 else
32532   echo "$as_me: failed program was:" >&5
32533 sed 's/^/| /' conftest.$ac_ext >&5
32534
32535   ac_header_preproc=no
32536 fi
32537 rm -f conftest.err conftest.$ac_ext
32538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32539 echo "${ECHO_T}$ac_header_preproc" >&6
32540
32541 # So?  What about this header?
32542 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32543   yes:no: )
32544     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32545 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32546     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32547 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32548     ac_header_preproc=yes
32549     ;;
32550   no:yes:* )
32551     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32552 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
32553     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
32554 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
32555     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32556 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32557     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
32558 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32559     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32560 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
32561     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32562 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
32563     (
32564       cat <<\_ASBOX
32565 ## ----------------------------------------- ##
32566 ## Report this to wx-dev@lists.wxwidgets.org ##
32567 ## ----------------------------------------- ##
32568 _ASBOX
32569     ) |
32570       sed "s/^/$as_me: WARNING:     /" >&2
32571     ;;
32572 esac
32573 echo "$as_me:$LINENO: checking for sql.h" >&5
32574 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32575 if test "${ac_cv_header_sql_h+set}" = set; then
32576   echo $ECHO_N "(cached) $ECHO_C" >&6
32577 else
32578   ac_cv_header_sql_h=$ac_header_preproc
32579 fi
32580 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32581 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32582
32583 fi
32584 if test $ac_cv_header_sql_h = yes; then
32585   found_sql_h=1
32586 fi
32587
32588
32589         if test "x$found_sql_h" = "x1" ; then
32590             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32591 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32592 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32593   echo $ECHO_N "(cached) $ECHO_C" >&6
32594 else
32595   ac_check_lib_save_LIBS=$LIBS
32596 LIBS="-liodbc  $LIBS"
32597 cat >conftest.$ac_ext <<_ACEOF
32598 /* confdefs.h.  */
32599 _ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h.  */
32603
32604 /* Override any gcc2 internal prototype to avoid an error.  */
32605 #ifdef __cplusplus
32606 extern "C"
32607 #endif
32608 /* We use char because int might match the return type of a gcc2
32609    builtin and then its argument prototype would still apply.  */
32610 char SQLAllocEnv ();
32611 int
32612 main ()
32613 {
32614 SQLAllocEnv ();
32615   ;
32616   return 0;
32617 }
32618 _ACEOF
32619 rm -f conftest.$ac_objext conftest$ac_exeext
32620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32621   (eval $ac_link) 2>conftest.er1
32622   ac_status=$?
32623   grep -v '^ *+' conftest.er1 >conftest.err
32624   rm -f conftest.er1
32625   cat conftest.err >&5
32626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627   (exit $ac_status); } &&
32628          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32630   (eval $ac_try) 2>&5
32631   ac_status=$?
32632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633   (exit $ac_status); }; } &&
32634          { ac_try='test -s conftest$ac_exeext'
32635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32636   (eval $ac_try) 2>&5
32637   ac_status=$?
32638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639   (exit $ac_status); }; }; then
32640   ac_cv_lib_iodbc_SQLAllocEnv=yes
32641 else
32642   echo "$as_me: failed program was:" >&5
32643 sed 's/^/| /' conftest.$ac_ext >&5
32644
32645 ac_cv_lib_iodbc_SQLAllocEnv=no
32646 fi
32647 rm -f conftest.err conftest.$ac_objext \
32648       conftest$ac_exeext conftest.$ac_ext
32649 LIBS=$ac_check_lib_save_LIBS
32650 fi
32651 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32652 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32653 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32654   ODBC_LINK=" -liodbc"
32655 else
32656
32657                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32658 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32659 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32660   echo $ECHO_N "(cached) $ECHO_C" >&6
32661 else
32662   ac_check_lib_save_LIBS=$LIBS
32663 LIBS="-lunixodbc  $LIBS"
32664 cat >conftest.$ac_ext <<_ACEOF
32665 /* confdefs.h.  */
32666 _ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h.  */
32670
32671 /* Override any gcc2 internal prototype to avoid an error.  */
32672 #ifdef __cplusplus
32673 extern "C"
32674 #endif
32675 /* We use char because int might match the return type of a gcc2
32676    builtin and then its argument prototype would still apply.  */
32677 char SQLAllocEnv ();
32678 int
32679 main ()
32680 {
32681 SQLAllocEnv ();
32682   ;
32683   return 0;
32684 }
32685 _ACEOF
32686 rm -f conftest.$ac_objext conftest$ac_exeext
32687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32688   (eval $ac_link) 2>conftest.er1
32689   ac_status=$?
32690   grep -v '^ *+' conftest.er1 >conftest.err
32691   rm -f conftest.er1
32692   cat conftest.err >&5
32693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694   (exit $ac_status); } &&
32695          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32697   (eval $ac_try) 2>&5
32698   ac_status=$?
32699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700   (exit $ac_status); }; } &&
32701          { ac_try='test -s conftest$ac_exeext'
32702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32703   (eval $ac_try) 2>&5
32704   ac_status=$?
32705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706   (exit $ac_status); }; }; then
32707   ac_cv_lib_unixodbc_SQLAllocEnv=yes
32708 else
32709   echo "$as_me: failed program was:" >&5
32710 sed 's/^/| /' conftest.$ac_ext >&5
32711
32712 ac_cv_lib_unixodbc_SQLAllocEnv=no
32713 fi
32714 rm -f conftest.err conftest.$ac_objext \
32715       conftest$ac_exeext conftest.$ac_ext
32716 LIBS=$ac_check_lib_save_LIBS
32717 fi
32718 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32719 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32720 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32721   ODBC_LINK=" -lunixodbc"
32722 else
32723
32724                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32725 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32726 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32727   echo $ECHO_N "(cached) $ECHO_C" >&6
32728 else
32729   ac_check_lib_save_LIBS=$LIBS
32730 LIBS="-lodbc  $LIBS"
32731 cat >conftest.$ac_ext <<_ACEOF
32732 /* confdefs.h.  */
32733 _ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h.  */
32737
32738 /* Override any gcc2 internal prototype to avoid an error.  */
32739 #ifdef __cplusplus
32740 extern "C"
32741 #endif
32742 /* We use char because int might match the return type of a gcc2
32743    builtin and then its argument prototype would still apply.  */
32744 char SQLAllocEnv ();
32745 int
32746 main ()
32747 {
32748 SQLAllocEnv ();
32749   ;
32750   return 0;
32751 }
32752 _ACEOF
32753 rm -f conftest.$ac_objext conftest$ac_exeext
32754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32755   (eval $ac_link) 2>conftest.er1
32756   ac_status=$?
32757   grep -v '^ *+' conftest.er1 >conftest.err
32758   rm -f conftest.er1
32759   cat conftest.err >&5
32760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761   (exit $ac_status); } &&
32762          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32764   (eval $ac_try) 2>&5
32765   ac_status=$?
32766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767   (exit $ac_status); }; } &&
32768          { ac_try='test -s conftest$ac_exeext'
32769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32770   (eval $ac_try) 2>&5
32771   ac_status=$?
32772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773   (exit $ac_status); }; }; then
32774   ac_cv_lib_odbc_SQLAllocEnv=yes
32775 else
32776   echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32778
32779 ac_cv_lib_odbc_SQLAllocEnv=no
32780 fi
32781 rm -f conftest.err conftest.$ac_objext \
32782       conftest$ac_exeext conftest.$ac_ext
32783 LIBS=$ac_check_lib_save_LIBS
32784 fi
32785 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32786 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32787 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32788   ODBC_LINK=" -lodbc"
32789 fi
32790
32791
32792 fi
32793
32794
32795 fi
32796
32797         fi
32798         if test "x$ODBC_LINK" = "x" ; then
32799             if test "$wxUSE_ODBC" = "sys" ; then
32800                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32801 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32802    { (exit 1); exit 1; }; }
32803             else
32804                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32805 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32806                 wxUSE_ODBC=builtin
32807             fi
32808         else
32809                         wxUSE_ODBC=sys
32810         fi
32811     fi
32812
32813     if test "$wxUSE_ODBC" = "builtin" ; then
32814         cat >>confdefs.h <<\_ACEOF
32815 #define wxUSE_BUILTIN_IODBC 1
32816 _ACEOF
32817
32818     fi
32819 fi
32820
32821 if test "$wxUSE_ODBC" != "no" ; then
32822     cat >>confdefs.h <<\_ACEOF
32823 #define wxUSE_ODBC 1
32824 _ACEOF
32825
32826     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32827
32828         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
32829 fi
32830
32831
32832 if test "$wxUSE_DISPLAY" = "yes"; then
32833     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32834         echo "$as_me:$LINENO: checking for Xinerama" >&5
32835 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32836
32837   ac_find_libraries=
32838   for ac_dir in $SEARCH_LIB;
32839   do
32840     for ac_extension in a so sl dylib dll.a; do
32841       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32842         ac_find_libraries=$ac_dir
32843         break 2
32844       fi
32845     done
32846   done
32847
32848         if test "$ac_find_libraries" != "" ; then
32849
32850     if test "$ac_find_libraries" = "default location"; then
32851     ac_path_to_link=""
32852   else
32853     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32854     result=$?
32855     if test $result = 0; then
32856       ac_path_to_link=""
32857     else
32858       ac_path_to_link=" -L$ac_find_libraries"
32859     fi
32860   fi
32861
32862             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32863                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32864             fi
32865             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32866             echo "$as_me:$LINENO: result: yes" >&5
32867 echo "${ECHO_T}yes" >&6
32868
32869             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32870 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32871
32872   ac_find_libraries=
32873   for ac_dir in $SEARCH_LIB;
32874   do
32875     for ac_extension in a so sl dylib dll.a; do
32876       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32877         ac_find_libraries=$ac_dir
32878         break 2
32879       fi
32880     done
32881   done
32882
32883             if test "$ac_find_libraries" != "" ; then
32884                 echo "$as_me:$LINENO: result: yes" >&5
32885 echo "${ECHO_T}yes" >&6
32886
32887 for ac_header in X11/extensions/xf86vmode.h
32888 do
32889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32890 echo "$as_me:$LINENO: checking for $ac_header" >&5
32891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32893   echo $ECHO_N "(cached) $ECHO_C" >&6
32894 else
32895   cat >conftest.$ac_ext <<_ACEOF
32896 /* confdefs.h.  */
32897 _ACEOF
32898 cat confdefs.h >>conftest.$ac_ext
32899 cat >>conftest.$ac_ext <<_ACEOF
32900 /* end confdefs.h.  */
32901
32902                                       #if HAVE_X11_XLIB_H
32903                                         #include <X11/Xlib.h>
32904                                       #endif
32905
32906
32907 #include <$ac_header>
32908 _ACEOF
32909 rm -f conftest.$ac_objext
32910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32911   (eval $ac_compile) 2>conftest.er1
32912   ac_status=$?
32913   grep -v '^ *+' conftest.er1 >conftest.err
32914   rm -f conftest.er1
32915   cat conftest.err >&5
32916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917   (exit $ac_status); } &&
32918          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32920   (eval $ac_try) 2>&5
32921   ac_status=$?
32922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32923   (exit $ac_status); }; } &&
32924          { ac_try='test -s conftest.$ac_objext'
32925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32926   (eval $ac_try) 2>&5
32927   ac_status=$?
32928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929   (exit $ac_status); }; }; then
32930   eval "$as_ac_Header=yes"
32931 else
32932   echo "$as_me: failed program was:" >&5
32933 sed 's/^/| /' conftest.$ac_ext >&5
32934
32935 eval "$as_ac_Header=no"
32936 fi
32937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32938 fi
32939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32942   cat >>confdefs.h <<_ACEOF
32943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32944 _ACEOF
32945
32946                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32947
32948 fi
32949
32950 done
32951
32952             else
32953                 echo "$as_me:$LINENO: result: no" >&5
32954 echo "${ECHO_T}no" >&6
32955             fi
32956
32957         else
32958             echo "$as_me:$LINENO: result: no" >&5
32959 echo "${ECHO_T}no" >&6
32960             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32961 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32962             wxUSE_DISPLAY="no"
32963         fi
32964     elif test "$wxUSE_MSW" = 1; then
32965
32966 for ac_header in ddraw.h
32967 do
32968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32969 echo "$as_me:$LINENO: checking for $ac_header" >&5
32970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32972   echo $ECHO_N "(cached) $ECHO_C" >&6
32973 else
32974   cat >conftest.$ac_ext <<_ACEOF
32975 /* confdefs.h.  */
32976 _ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h.  */
32980 #include <windows.h>
32981
32982 #include <$ac_header>
32983 _ACEOF
32984 rm -f conftest.$ac_objext
32985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32986   (eval $ac_compile) 2>conftest.er1
32987   ac_status=$?
32988   grep -v '^ *+' conftest.er1 >conftest.err
32989   rm -f conftest.er1
32990   cat conftest.err >&5
32991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992   (exit $ac_status); } &&
32993          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32995   (eval $ac_try) 2>&5
32996   ac_status=$?
32997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998   (exit $ac_status); }; } &&
32999          { ac_try='test -s conftest.$ac_objext'
33000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33001   (eval $ac_try) 2>&5
33002   ac_status=$?
33003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004   (exit $ac_status); }; }; then
33005   eval "$as_ac_Header=yes"
33006 else
33007   echo "$as_me: failed program was:" >&5
33008 sed 's/^/| /' conftest.$ac_ext >&5
33009
33010 eval "$as_ac_Header=no"
33011 fi
33012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33013 fi
33014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33017   cat >>confdefs.h <<_ACEOF
33018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33019 _ACEOF
33020
33021 fi
33022
33023 done
33024
33025     fi
33026 fi
33027
33028 if test "$wxUSE_DETECT_SM" = "yes"; then
33029     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33030         echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33031 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33032
33033   ac_find_libraries=
33034   for ac_dir in $SEARCH_LIB;
33035   do
33036     for ac_extension in a so sl dylib dll.a; do
33037       if test -f "$ac_dir/libSM.$ac_extension"; then
33038         ac_find_libraries=$ac_dir
33039         break 2
33040       fi
33041     done
33042   done
33043
33044         if test "$ac_find_libraries" != "" ; then
33045
33046     if test "$ac_find_libraries" = "default location"; then
33047     ac_path_to_link=""
33048   else
33049     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33050     result=$?
33051     if test $result = 0; then
33052       ac_path_to_link=""
33053     else
33054       ac_path_to_link=" -L$ac_find_libraries"
33055     fi
33056   fi
33057
33058             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33059                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33060             fi
33061             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33062             echo "$as_me:$LINENO: result: yes" >&5
33063 echo "${ECHO_T}yes" >&6
33064         else
33065             echo "$as_me:$LINENO: result: no" >&5
33066 echo "${ECHO_T}no" >&6
33067             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33068 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33069             wxUSE_DETECT_SM="no"
33070         fi
33071     else
33072         wxUSE_DETECT_SM="no"
33073     fi
33074 fi
33075
33076
33077
33078 USE_OPENGL=0
33079 if test "$wxUSE_OPENGL" = "yes"; then
33080     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
33081         OPENGL_LIBS="-framework OpenGL -framework AGL"
33082     elif test "$wxUSE_MSW" = 1; then
33083         OPENGL_LIBS="-lopengl32 -lglu32"
33084     else
33085
33086
33087 ac_find_includes=
33088 for ac_dir in $SEARCH_INCLUDE /usr/include;
33089   do
33090     if test -f "$ac_dir/GL/gl.h"; then
33091       ac_find_includes=$ac_dir
33092       break
33093     fi
33094   done
33095
33096         if test "$ac_find_includes" != "" ; then
33097             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33098 echo "${ECHO_T}found in $ac_find_includes" >&6
33099
33100     if test "x$ac_find_includes" = "x/usr/include"; then
33101     ac_path_to_include=""
33102   else
33103     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33104     result=$?
33105     if test $result = 0; then
33106       ac_path_to_include=""
33107     else
33108       ac_path_to_include=" -I$ac_find_includes"
33109     fi
33110   fi
33111
33112             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33113         fi
33114
33115         if test "${ac_cv_header_GL_gl_h+set}" = set; then
33116   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33117 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33118 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33119   echo $ECHO_N "(cached) $ECHO_C" >&6
33120 fi
33121 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33122 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33123 else
33124   # Is the header compilable?
33125 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33126 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33127 cat >conftest.$ac_ext <<_ACEOF
33128 /* confdefs.h.  */
33129 _ACEOF
33130 cat confdefs.h >>conftest.$ac_ext
33131 cat >>conftest.$ac_ext <<_ACEOF
33132 /* end confdefs.h.  */
33133 $ac_includes_default
33134 #include <GL/gl.h>
33135 _ACEOF
33136 rm -f conftest.$ac_objext
33137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33138   (eval $ac_compile) 2>conftest.er1
33139   ac_status=$?
33140   grep -v '^ *+' conftest.er1 >conftest.err
33141   rm -f conftest.er1
33142   cat conftest.err >&5
33143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); } &&
33145          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33147   (eval $ac_try) 2>&5
33148   ac_status=$?
33149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150   (exit $ac_status); }; } &&
33151          { ac_try='test -s conftest.$ac_objext'
33152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33153   (eval $ac_try) 2>&5
33154   ac_status=$?
33155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156   (exit $ac_status); }; }; then
33157   ac_header_compiler=yes
33158 else
33159   echo "$as_me: failed program was:" >&5
33160 sed 's/^/| /' conftest.$ac_ext >&5
33161
33162 ac_header_compiler=no
33163 fi
33164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33166 echo "${ECHO_T}$ac_header_compiler" >&6
33167
33168 # Is the header present?
33169 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33170 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33171 cat >conftest.$ac_ext <<_ACEOF
33172 /* confdefs.h.  */
33173 _ACEOF
33174 cat confdefs.h >>conftest.$ac_ext
33175 cat >>conftest.$ac_ext <<_ACEOF
33176 /* end confdefs.h.  */
33177 #include <GL/gl.h>
33178 _ACEOF
33179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33181   ac_status=$?
33182   grep -v '^ *+' conftest.er1 >conftest.err
33183   rm -f conftest.er1
33184   cat conftest.err >&5
33185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186   (exit $ac_status); } >/dev/null; then
33187   if test -s conftest.err; then
33188     ac_cpp_err=$ac_cxx_preproc_warn_flag
33189     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
33190   else
33191     ac_cpp_err=
33192   fi
33193 else
33194   ac_cpp_err=yes
33195 fi
33196 if test -z "$ac_cpp_err"; then
33197   ac_header_preproc=yes
33198 else
33199   echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.$ac_ext >&5
33201
33202   ac_header_preproc=no
33203 fi
33204 rm -f conftest.err conftest.$ac_ext
33205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33206 echo "${ECHO_T}$ac_header_preproc" >&6
33207
33208 # So?  What about this header?
33209 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
33210   yes:no: )
33211     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33212 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33213     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33214 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33215     ac_header_preproc=yes
33216     ;;
33217   no:yes:* )
33218     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33219 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
33220     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
33221 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
33222     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33223 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33224     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
33225 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33226     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33227 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
33228     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33229 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
33230     (
33231       cat <<\_ASBOX
33232 ## ----------------------------------------- ##
33233 ## Report this to wx-dev@lists.wxwidgets.org ##
33234 ## ----------------------------------------- ##
33235 _ASBOX
33236     ) |
33237       sed "s/^/$as_me: WARNING:     /" >&2
33238     ;;
33239 esac
33240 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33241 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33242 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33243   echo $ECHO_N "(cached) $ECHO_C" >&6
33244 else
33245   ac_cv_header_GL_gl_h=$ac_header_preproc
33246 fi
33247 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33248 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33249
33250 fi
33251 if test $ac_cv_header_GL_gl_h = yes; then
33252
33253                 found_gl=0
33254
33255                 echo "$as_me:$LINENO: checking for -lGL" >&5
33256 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33257
33258   ac_find_libraries=
33259   for ac_dir in $SEARCH_LIB;
33260   do
33261     for ac_extension in a so sl dylib dll.a; do
33262       if test -f "$ac_dir/libGL.$ac_extension"; then
33263         ac_find_libraries=$ac_dir
33264         break 2
33265       fi
33266     done
33267   done
33268
33269                 if test "$ac_find_libraries" != "" ; then
33270                     echo "$as_me:$LINENO: result: yes" >&5
33271 echo "${ECHO_T}yes" >&6
33272
33273
33274     if test "$ac_find_libraries" = "default location"; then
33275     ac_path_to_link=""
33276   else
33277     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33278     result=$?
33279     if test $result = 0; then
33280       ac_path_to_link=""
33281     else
33282       ac_path_to_link=" -L$ac_find_libraries"
33283     fi
33284   fi
33285
33286                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33287                         LDFLAGS_GL="$ac_path_to_link"
33288                     fi
33289
33290                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
33291 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
33292
33293   ac_find_libraries=
33294   for ac_dir in $SEARCH_LIB;
33295   do
33296     for ac_extension in a so sl dylib dll.a; do
33297       if test -f "$ac_dir/libGLU.$ac_extension"; then
33298         ac_find_libraries=$ac_dir
33299         break 2
33300       fi
33301     done
33302   done
33303
33304                     if test "$ac_find_libraries" != "" ; then
33305
33306     if test "$ac_find_libraries" = "default location"; then
33307     ac_path_to_link=""
33308   else
33309     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33310     result=$?
33311     if test $result = 0; then
33312       ac_path_to_link=""
33313     else
33314       ac_path_to_link=" -L$ac_find_libraries"
33315     fi
33316   fi
33317
33318                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33319                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33320                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33321                         fi
33322
33323                         found_gl=1
33324                         OPENGL_LIBS="-lGL -lGLU"
33325                         echo "$as_me:$LINENO: result: yes" >&5
33326 echo "${ECHO_T}yes" >&6
33327                     else
33328                         echo "$as_me:$LINENO: result: no" >&5
33329 echo "${ECHO_T}no" >&6
33330                     fi
33331                 else
33332                     echo "$as_me:$LINENO: result: no" >&5
33333 echo "${ECHO_T}no" >&6
33334                 fi
33335
33336                 if test "$found_gl" != 1; then
33337                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33338 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33339
33340   ac_find_libraries=
33341   for ac_dir in $SEARCH_LIB;
33342   do
33343     for ac_extension in a so sl dylib dll.a; do
33344       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33345         ac_find_libraries=$ac_dir
33346         break 2
33347       fi
33348     done
33349   done
33350
33351                     if test "$ac_find_libraries" != "" ; then
33352
33353     if test "$ac_find_libraries" = "default location"; then
33354     ac_path_to_link=""
33355   else
33356     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33357     result=$?
33358     if test $result = 0; then
33359       ac_path_to_link=""
33360     else
33361       ac_path_to_link=" -L$ac_find_libraries"
33362     fi
33363   fi
33364
33365                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33366                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33367                         echo "$as_me:$LINENO: result: yes" >&5
33368 echo "${ECHO_T}yes" >&6
33369                     else
33370                         echo "$as_me:$LINENO: result: no" >&5
33371 echo "${ECHO_T}no" >&6
33372                     fi
33373                 fi
33374
33375 fi
33376
33377
33378
33379         if test "x$OPENGL_LIBS" = "x"; then
33380                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33381 echo "$as_me: error: OpenGL libraries not available" >&2;}
33382    { (exit 1); exit 1; }; }
33383         fi
33384     fi
33385
33386     if test "$wxUSE_OPENGL" = "yes"; then
33387         USE_OPENGL=1
33388         cat >>confdefs.h <<\_ACEOF
33389 #define wxUSE_OPENGL 1
33390 _ACEOF
33391
33392         cat >>confdefs.h <<\_ACEOF
33393 #define wxUSE_GLCANVAS 1
33394 _ACEOF
33395
33396         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33397     fi
33398 fi
33399
33400
33401 if test -n "$TOOLKIT" ; then
33402     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33403 fi
33404
33405
33406
33407 if test "$wxUSE_SHARED" = "yes"; then
33408     case "${host}" in
33409       *-pc-msdosdjgpp )
33410                 wxUSE_SHARED=no
33411         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33412 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33413       ;;
33414     esac
33415 fi
33416
33417 if test "$wxUSE_SHARED" = "yes"; then
33418
33419
33420   found_versioning=no
33421
33422
33423     if test $found_versioning = no ; then
33424       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33425 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33426 if test "${wx_cv_version_script+set}" = set; then
33427   echo $ECHO_N "(cached) $ECHO_C" >&6
33428 else
33429
33430         echo "VER_1 { *; };" >conftest.sym
33431         echo "int main() { return 0; }" >conftest.cpp
33432
33433         if { ac_try='
33434                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33435                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437   (eval $ac_try) 2>&5
33438   ac_status=$?
33439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440   (exit $ac_status); }; } ; then
33441           if test -s conftest.stderr ; then
33442               wx_cv_version_script=no
33443           else
33444               wx_cv_version_script=yes
33445           fi
33446         else
33447           wx_cv_version_script=no
33448         fi
33449
33450                                                                                                 if test $wx_cv_version_script = yes
33451         then
33452           echo "struct B { virtual ~B() { } }; \
33453                 struct D : public B { }; \
33454                 void F() { D d; }" > conftest.cpp
33455
33456           if { ac_try='
33457                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33458                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33460   (eval $ac_try) 2>&5
33461   ac_status=$?
33462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463   (exit $ac_status); }; } &&
33464              { ac_try='
33465                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33466                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33468   (eval $ac_try) 2>&5
33469   ac_status=$?
33470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471   (exit $ac_status); }; }
33472           then
33473             if { ac_try='
33474                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33475                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33477   (eval $ac_try) 2>&5
33478   ac_status=$?
33479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480   (exit $ac_status); }; }
33481             then
33482               wx_cv_version_script=yes
33483             else
33484               wx_cv_version_script=no
33485             fi
33486           fi
33487         fi
33488
33489         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33490         rm -f conftest1.output conftest2.output conftest3.output
33491
33492 fi
33493 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33494 echo "${ECHO_T}$wx_cv_version_script" >&6
33495       if test $wx_cv_version_script = yes ; then
33496         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33497       fi
33498   fi
33499
33500
33501     case "${host}" in
33502       *-*-linux* | *-*-gnu* )
33503         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
33504         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33505         ;;
33506
33507       *-*-solaris2* )
33508         if test "$GCC" = yes ; then
33509                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33510
33511                                     saveLdflags="$LDFLAGS"
33512             LDFLAGS="$saveLdflags -Wl,-rpath,/"
33513             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33514 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33515             cat >conftest.$ac_ext <<_ACEOF
33516 /* confdefs.h.  */
33517 _ACEOF
33518 cat confdefs.h >>conftest.$ac_ext
33519 cat >>conftest.$ac_ext <<_ACEOF
33520 /* end confdefs.h.  */
33521
33522 int
33523 main ()
33524 {
33525
33526   ;
33527   return 0;
33528 }
33529 _ACEOF
33530 rm -f conftest.$ac_objext conftest$ac_exeext
33531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33532   (eval $ac_link) 2>conftest.er1
33533   ac_status=$?
33534   grep -v '^ *+' conftest.er1 >conftest.err
33535   rm -f conftest.er1
33536   cat conftest.err >&5
33537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538   (exit $ac_status); } &&
33539          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33541   (eval $ac_try) 2>&5
33542   ac_status=$?
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); }; } &&
33545          { ac_try='test -s conftest$ac_exeext'
33546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33547   (eval $ac_try) 2>&5
33548   ac_status=$?
33549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550   (exit $ac_status); }; }; then
33551
33552                     echo "$as_me:$LINENO: result: yes" >&5
33553 echo "${ECHO_T}yes" >&6
33554                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
33555                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33556
33557 else
33558   echo "$as_me: failed program was:" >&5
33559 sed 's/^/| /' conftest.$ac_ext >&5
33560
33561
33562                     echo "$as_me:$LINENO: result: no" >&5
33563 echo "${ECHO_T}no" >&6
33564                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33565 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33566                     LDFLAGS="$saveLdflags -Wl,-R,/"
33567                     cat >conftest.$ac_ext <<_ACEOF
33568 /* confdefs.h.  */
33569 _ACEOF
33570 cat confdefs.h >>conftest.$ac_ext
33571 cat >>conftest.$ac_ext <<_ACEOF
33572 /* end confdefs.h.  */
33573
33574 int
33575 main ()
33576 {
33577
33578   ;
33579   return 0;
33580 }
33581 _ACEOF
33582 rm -f conftest.$ac_objext conftest$ac_exeext
33583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33584   (eval $ac_link) 2>conftest.er1
33585   ac_status=$?
33586   grep -v '^ *+' conftest.er1 >conftest.err
33587   rm -f conftest.er1
33588   cat conftest.err >&5
33589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590   (exit $ac_status); } &&
33591          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593   (eval $ac_try) 2>&5
33594   ac_status=$?
33595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596   (exit $ac_status); }; } &&
33597          { ac_try='test -s conftest$ac_exeext'
33598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33599   (eval $ac_try) 2>&5
33600   ac_status=$?
33601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602   (exit $ac_status); }; }; then
33603
33604                             echo "$as_me:$LINENO: result: yes" >&5
33605 echo "${ECHO_T}yes" >&6
33606                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33607                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
33608
33609 else
33610   echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33612
33613
33614                             echo "$as_me:$LINENO: result: no" >&5
33615 echo "${ECHO_T}no" >&6
33616
33617 fi
33618 rm -f conftest.err conftest.$ac_objext \
33619       conftest$ac_exeext conftest.$ac_ext
33620
33621 fi
33622 rm -f conftest.err conftest.$ac_objext \
33623       conftest$ac_exeext conftest.$ac_ext
33624             LDFLAGS="$saveLdflags"
33625         else
33626             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
33627             WXCONFIG_RPATH="-R\$libdir"
33628         fi
33629       ;;
33630
33631       *-*-darwin* )
33632         install_name_tool=`which install_name_tool`
33633         if test "$install_name_tool" -a -x "$install_name_tool"; then
33634             SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33635             cat <<EOF >change-install-names
33636 #!/bin/sh
33637 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33638 inst_cmd="install_name_tool "
33639 for i in \${libnames} ; do
33640     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33641 done
33642 \${inst_cmd} \${3}
33643 EOF
33644             chmod +x change-install-names
33645         fi
33646       ;;
33647
33648       *-*-cygwin* | *-*-mingw32* )
33649                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33650         ;;
33651
33652       *-*-hpux* )
33653         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33654         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33655         ;;
33656
33657     esac
33658
33659     if test $wxUSE_RPATH = "no"; then
33660         SAMPLES_RPATH_FLAG=''
33661         SAMPLES_RPATH_POSTLINK=''
33662         WXCONFIG_RPATH=''
33663     fi
33664
33665     SHARED=1
33666
33667 else
33668
33669     config_linkage_component="-static"
33670     SHARED=0
33671
33672 fi
33673
33674
33675 UNICODE=0
33676 lib_unicode_suffix=
33677 WX_CHARTYPE="ansi"
33678 if test "$wxUSE_UNICODE" = "yes"; then
33679     lib_unicode_suffix=u
33680     WX_CHARTYPE="unicode"
33681     UNICODE=1
33682 fi
33683
33684 lib_debug_suffix=
33685 WX_DEBUGTYPE="release"
33686 DEBUG_FLAG=0
33687 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33688     lib_debug_suffix=d
33689     WX_DEBUGTYPE="debug"
33690     DEBUG_FLAG=1
33691 fi
33692
33693 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33694 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33695
33696 DEBUG_INFO=0
33697 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33698     DEBUG_INFO=1
33699 fi
33700
33701 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
33702
33703 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33704
33705 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33706
33707 if test "$cross_compiling" = "yes"; then
33708     HOST_SUFFIX="-$host_alias"
33709     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33710     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33711 fi
33712
33713 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33714 if test "${TOOLKIT_DIR}" = "os2"; then
33715     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33716 else
33717     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33718 fi
33719
33720
33721
33722 if test "$wxUSE_COCOA" = 1; then
33723
33724
33725     ac_ext=c
33726 ac_cpp='$CPP $CPPFLAGS'
33727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33730
33731 ac_ext=m
33732
33733     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33734 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33735     cat >conftest.$ac_ext <<_ACEOF
33736 /* confdefs.h.  */
33737 _ACEOF
33738 cat confdefs.h >>conftest.$ac_ext
33739 cat >>conftest.$ac_ext <<_ACEOF
33740 /* end confdefs.h.  */
33741 #include <AppKit/NSEvent.h>
33742 #include <CoreFoundation/CoreFoundation.h>
33743
33744 int
33745 main ()
33746 {
33747
33748   ;
33749   return 0;
33750 }
33751 _ACEOF
33752 rm -f conftest.$ac_objext
33753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33754   (eval $ac_compile) 2>conftest.er1
33755   ac_status=$?
33756   grep -v '^ *+' conftest.er1 >conftest.err
33757   rm -f conftest.er1
33758   cat conftest.err >&5
33759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760   (exit $ac_status); } &&
33761          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33763   (eval $ac_try) 2>&5
33764   ac_status=$?
33765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766   (exit $ac_status); }; } &&
33767          { ac_try='test -s conftest.$ac_objext'
33768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33769   (eval $ac_try) 2>&5
33770   ac_status=$?
33771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772   (exit $ac_status); }; }; then
33773   echo "$as_me:$LINENO: result: no" >&5
33774 echo "${ECHO_T}no" >&6
33775 else
33776   echo "$as_me: failed program was:" >&5
33777 sed 's/^/| /' conftest.$ac_ext >&5
33778
33779 echo "$as_me:$LINENO: result: yes" >&5
33780 echo "${ECHO_T}yes" >&6
33781         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33782 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33783         cat >conftest.$ac_ext <<_ACEOF
33784 /* confdefs.h.  */
33785 _ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h.  */
33789 #define __Point__ 1
33790 #include <AppKit/NSEvent.h>
33791 #include <CoreFoundation/CoreFoundation.h>
33792
33793 int
33794 main ()
33795 {
33796
33797   ;
33798   return 0;
33799 }
33800 _ACEOF
33801 rm -f conftest.$ac_objext
33802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33803   (eval $ac_compile) 2>conftest.er1
33804   ac_status=$?
33805   grep -v '^ *+' conftest.er1 >conftest.err
33806   rm -f conftest.er1
33807   cat conftest.err >&5
33808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809   (exit $ac_status); } &&
33810          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33812   (eval $ac_try) 2>&5
33813   ac_status=$?
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); }; } &&
33816          { ac_try='test -s conftest.$ac_objext'
33817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33818   (eval $ac_try) 2>&5
33819   ac_status=$?
33820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821   (exit $ac_status); }; }; then
33822   echo "$as_me:$LINENO: result: yes" >&5
33823 echo "${ECHO_T}yes" >&6
33824             cat >>confdefs.h <<\_ACEOF
33825 #define __Point__ 1
33826 _ACEOF
33827
33828
33829 else
33830   echo "$as_me: failed program was:" >&5
33831 sed 's/^/| /' conftest.$ac_ext >&5
33832
33833 { { echo "$as_me:$LINENO: error: no
33834 See \`config.log' for more details." >&5
33835 echo "$as_me: error: no
33836 See \`config.log' for more details." >&2;}
33837    { (exit 1); exit 1; }; }
33838
33839 fi
33840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33841
33842 fi
33843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33844     ac_ext=cc
33845 ac_cpp='$CXXCPP $CPPFLAGS'
33846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33849
33850 fi
33851
33852 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
33853             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33854     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
33855
33856         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
33857
33858     # Extract the first word of "Rez", so it can be a program name with args.
33859 set dummy Rez; ac_word=$2
33860 echo "$as_me:$LINENO: checking for $ac_word" >&5
33861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33862 if test "${ac_cv_prog_REZ+set}" = set; then
33863   echo $ECHO_N "(cached) $ECHO_C" >&6
33864 else
33865   if test -n "$REZ"; then
33866   ac_cv_prog_REZ="$REZ" # Let the user override the test.
33867 else
33868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33869 for as_dir in $PATH
33870 do
33871   IFS=$as_save_IFS
33872   test -z "$as_dir" && as_dir=.
33873   for ac_exec_ext in '' $ac_executable_extensions; do
33874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33875     ac_cv_prog_REZ="Rez"
33876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33877     break 2
33878   fi
33879 done
33880 done
33881
33882   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
33883 fi
33884 fi
33885 REZ=$ac_cv_prog_REZ
33886 if test -n "$REZ"; then
33887   echo "$as_me:$LINENO: result: $REZ" >&5
33888 echo "${ECHO_T}$REZ" >&6
33889 else
33890   echo "$as_me:$LINENO: result: no" >&5
33891 echo "${ECHO_T}no" >&6
33892 fi
33893
33894     # Extract the first word of "DeRez", so it can be a program name with args.
33895 set dummy DeRez; ac_word=$2
33896 echo "$as_me:$LINENO: checking for $ac_word" >&5
33897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33898 if test "${ac_cv_prog_DEREZ+set}" = set; then
33899   echo $ECHO_N "(cached) $ECHO_C" >&6
33900 else
33901   if test -n "$DEREZ"; then
33902   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33903 else
33904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33905 for as_dir in $PATH
33906 do
33907   IFS=$as_save_IFS
33908   test -z "$as_dir" && as_dir=.
33909   for ac_exec_ext in '' $ac_executable_extensions; do
33910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33911     ac_cv_prog_DEREZ="DeRez"
33912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33913     break 2
33914   fi
33915 done
33916 done
33917
33918   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33919 fi
33920 fi
33921 DEREZ=$ac_cv_prog_DEREZ
33922 if test -n "$DEREZ"; then
33923   echo "$as_me:$LINENO: result: $DEREZ" >&5
33924 echo "${ECHO_T}$DEREZ" >&6
33925 else
33926   echo "$as_me:$LINENO: result: no" >&5
33927 echo "${ECHO_T}no" >&6
33928 fi
33929
33930     # Extract the first word of "SetFile", so it can be a program name with args.
33931 set dummy SetFile; ac_word=$2
33932 echo "$as_me:$LINENO: checking for $ac_word" >&5
33933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33934 if test "${ac_cv_prog_SETFILE+set}" = set; then
33935   echo $ECHO_N "(cached) $ECHO_C" >&6
33936 else
33937   if test -n "$SETFILE"; then
33938   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33939 else
33940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33941 for as_dir in $PATH
33942 do
33943   IFS=$as_save_IFS
33944   test -z "$as_dir" && as_dir=.
33945   for ac_exec_ext in '' $ac_executable_extensions; do
33946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33947     ac_cv_prog_SETFILE="SetFile"
33948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33949     break 2
33950   fi
33951 done
33952 done
33953
33954   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33955 fi
33956 fi
33957 SETFILE=$ac_cv_prog_SETFILE
33958 if test -n "$SETFILE"; then
33959   echo "$as_me:$LINENO: result: $SETFILE" >&5
33960 echo "${ECHO_T}$SETFILE" >&6
33961 else
33962   echo "$as_me:$LINENO: result: no" >&5
33963 echo "${ECHO_T}no" >&6
33964 fi
33965
33966
33967     MACSETFILE="\$(SETFILE)"
33968
33969             if test "$wxUSE_MAC" = 1; then
33970         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
33971         RESCOMP="$REZ"
33972         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
33973     else
33974         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33975         RESCOMP="echo -n \| $REZ"
33976         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
33977     fi
33978
33979 else
33980         MACSETFILE="@true"
33981
33982     if test "$wxUSE_PM" = 1; then
33983         RESCOMP="emxbind"
33984         WXCONFIG_RESFLAGS="-ep"
33985
33986                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
33987     else
33988         POSTLINK_COMMAND="@true"
33989     fi
33990
33991 fi
33992
33993
33994
33995 echo "$as_me:$LINENO: checking for mode_t" >&5
33996 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33997 if test "${ac_cv_type_mode_t+set}" = set; then
33998   echo $ECHO_N "(cached) $ECHO_C" >&6
33999 else
34000   cat >conftest.$ac_ext <<_ACEOF
34001 /* confdefs.h.  */
34002 _ACEOF
34003 cat confdefs.h >>conftest.$ac_ext
34004 cat >>conftest.$ac_ext <<_ACEOF
34005 /* end confdefs.h.  */
34006 $ac_includes_default
34007 int
34008 main ()
34009 {
34010 if ((mode_t *) 0)
34011   return 0;
34012 if (sizeof (mode_t))
34013   return 0;
34014   ;
34015   return 0;
34016 }
34017 _ACEOF
34018 rm -f conftest.$ac_objext
34019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34020   (eval $ac_compile) 2>conftest.er1
34021   ac_status=$?
34022   grep -v '^ *+' conftest.er1 >conftest.err
34023   rm -f conftest.er1
34024   cat conftest.err >&5
34025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); } &&
34027          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029   (eval $ac_try) 2>&5
34030   ac_status=$?
34031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032   (exit $ac_status); }; } &&
34033          { ac_try='test -s conftest.$ac_objext'
34034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035   (eval $ac_try) 2>&5
34036   ac_status=$?
34037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038   (exit $ac_status); }; }; then
34039   ac_cv_type_mode_t=yes
34040 else
34041   echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34043
34044 ac_cv_type_mode_t=no
34045 fi
34046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34047 fi
34048 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34049 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34050 if test $ac_cv_type_mode_t = yes; then
34051   :
34052 else
34053
34054 cat >>confdefs.h <<_ACEOF
34055 #define mode_t int
34056 _ACEOF
34057
34058 fi
34059
34060 echo "$as_me:$LINENO: checking for off_t" >&5
34061 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34062 if test "${ac_cv_type_off_t+set}" = set; then
34063   echo $ECHO_N "(cached) $ECHO_C" >&6
34064 else
34065   cat >conftest.$ac_ext <<_ACEOF
34066 /* confdefs.h.  */
34067 _ACEOF
34068 cat confdefs.h >>conftest.$ac_ext
34069 cat >>conftest.$ac_ext <<_ACEOF
34070 /* end confdefs.h.  */
34071 $ac_includes_default
34072 int
34073 main ()
34074 {
34075 if ((off_t *) 0)
34076   return 0;
34077 if (sizeof (off_t))
34078   return 0;
34079   ;
34080   return 0;
34081 }
34082 _ACEOF
34083 rm -f conftest.$ac_objext
34084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34085   (eval $ac_compile) 2>conftest.er1
34086   ac_status=$?
34087   grep -v '^ *+' conftest.er1 >conftest.err
34088   rm -f conftest.er1
34089   cat conftest.err >&5
34090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091   (exit $ac_status); } &&
34092          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34094   (eval $ac_try) 2>&5
34095   ac_status=$?
34096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097   (exit $ac_status); }; } &&
34098          { ac_try='test -s conftest.$ac_objext'
34099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34100   (eval $ac_try) 2>&5
34101   ac_status=$?
34102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103   (exit $ac_status); }; }; then
34104   ac_cv_type_off_t=yes
34105 else
34106   echo "$as_me: failed program was:" >&5
34107 sed 's/^/| /' conftest.$ac_ext >&5
34108
34109 ac_cv_type_off_t=no
34110 fi
34111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34112 fi
34113 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34114 echo "${ECHO_T}$ac_cv_type_off_t" >&6
34115 if test $ac_cv_type_off_t = yes; then
34116   :
34117 else
34118
34119 cat >>confdefs.h <<_ACEOF
34120 #define off_t long
34121 _ACEOF
34122
34123 fi
34124
34125 echo "$as_me:$LINENO: checking for pid_t" >&5
34126 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34127 if test "${ac_cv_type_pid_t+set}" = set; then
34128   echo $ECHO_N "(cached) $ECHO_C" >&6
34129 else
34130   cat >conftest.$ac_ext <<_ACEOF
34131 /* confdefs.h.  */
34132 _ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h.  */
34136 $ac_includes_default
34137 int
34138 main ()
34139 {
34140 if ((pid_t *) 0)
34141   return 0;
34142 if (sizeof (pid_t))
34143   return 0;
34144   ;
34145   return 0;
34146 }
34147 _ACEOF
34148 rm -f conftest.$ac_objext
34149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34150   (eval $ac_compile) 2>conftest.er1
34151   ac_status=$?
34152   grep -v '^ *+' conftest.er1 >conftest.err
34153   rm -f conftest.er1
34154   cat conftest.err >&5
34155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156   (exit $ac_status); } &&
34157          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159   (eval $ac_try) 2>&5
34160   ac_status=$?
34161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162   (exit $ac_status); }; } &&
34163          { ac_try='test -s conftest.$ac_objext'
34164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34165   (eval $ac_try) 2>&5
34166   ac_status=$?
34167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168   (exit $ac_status); }; }; then
34169   ac_cv_type_pid_t=yes
34170 else
34171   echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34173
34174 ac_cv_type_pid_t=no
34175 fi
34176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34177 fi
34178 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34179 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34180 if test $ac_cv_type_pid_t = yes; then
34181   :
34182 else
34183
34184 cat >>confdefs.h <<_ACEOF
34185 #define pid_t int
34186 _ACEOF
34187
34188 fi
34189
34190 echo "$as_me:$LINENO: checking for size_t" >&5
34191 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34192 if test "${ac_cv_type_size_t+set}" = set; then
34193   echo $ECHO_N "(cached) $ECHO_C" >&6
34194 else
34195   cat >conftest.$ac_ext <<_ACEOF
34196 /* confdefs.h.  */
34197 _ACEOF
34198 cat confdefs.h >>conftest.$ac_ext
34199 cat >>conftest.$ac_ext <<_ACEOF
34200 /* end confdefs.h.  */
34201 $ac_includes_default
34202 int
34203 main ()
34204 {
34205 if ((size_t *) 0)
34206   return 0;
34207 if (sizeof (size_t))
34208   return 0;
34209   ;
34210   return 0;
34211 }
34212 _ACEOF
34213 rm -f conftest.$ac_objext
34214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34215   (eval $ac_compile) 2>conftest.er1
34216   ac_status=$?
34217   grep -v '^ *+' conftest.er1 >conftest.err
34218   rm -f conftest.er1
34219   cat conftest.err >&5
34220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221   (exit $ac_status); } &&
34222          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34224   (eval $ac_try) 2>&5
34225   ac_status=$?
34226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227   (exit $ac_status); }; } &&
34228          { ac_try='test -s conftest.$ac_objext'
34229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34230   (eval $ac_try) 2>&5
34231   ac_status=$?
34232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34233   (exit $ac_status); }; }; then
34234   ac_cv_type_size_t=yes
34235 else
34236   echo "$as_me: failed program was:" >&5
34237 sed 's/^/| /' conftest.$ac_ext >&5
34238
34239 ac_cv_type_size_t=no
34240 fi
34241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34242 fi
34243 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34244 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34245 if test $ac_cv_type_size_t = yes; then
34246   :
34247 else
34248
34249 cat >>confdefs.h <<_ACEOF
34250 #define size_t unsigned
34251 _ACEOF
34252
34253 fi
34254
34255 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34256 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34257 if test "${ac_cv_type_uid_t+set}" = set; then
34258   echo $ECHO_N "(cached) $ECHO_C" >&6
34259 else
34260   cat >conftest.$ac_ext <<_ACEOF
34261 /* confdefs.h.  */
34262 _ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h.  */
34266 #include <sys/types.h>
34267
34268 _ACEOF
34269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34270   $EGREP "uid_t" >/dev/null 2>&1; then
34271   ac_cv_type_uid_t=yes
34272 else
34273   ac_cv_type_uid_t=no
34274 fi
34275 rm -f conftest*
34276
34277 fi
34278 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34279 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34280 if test $ac_cv_type_uid_t = no; then
34281
34282 cat >>confdefs.h <<\_ACEOF
34283 #define uid_t int
34284 _ACEOF
34285
34286
34287 cat >>confdefs.h <<\_ACEOF
34288 #define gid_t int
34289 _ACEOF
34290
34291 fi
34292
34293
34294 echo "$as_me:$LINENO: checking for ssize_t" >&5
34295 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34296 if test "${ac_cv_type_ssize_t+set}" = set; then
34297   echo $ECHO_N "(cached) $ECHO_C" >&6
34298 else
34299   cat >conftest.$ac_ext <<_ACEOF
34300 /* confdefs.h.  */
34301 _ACEOF
34302 cat confdefs.h >>conftest.$ac_ext
34303 cat >>conftest.$ac_ext <<_ACEOF
34304 /* end confdefs.h.  */
34305 $ac_includes_default
34306 int
34307 main ()
34308 {
34309 if ((ssize_t *) 0)
34310   return 0;
34311 if (sizeof (ssize_t))
34312   return 0;
34313   ;
34314   return 0;
34315 }
34316 _ACEOF
34317 rm -f conftest.$ac_objext
34318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34319   (eval $ac_compile) 2>conftest.er1
34320   ac_status=$?
34321   grep -v '^ *+' conftest.er1 >conftest.err
34322   rm -f conftest.er1
34323   cat conftest.err >&5
34324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325   (exit $ac_status); } &&
34326          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328   (eval $ac_try) 2>&5
34329   ac_status=$?
34330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331   (exit $ac_status); }; } &&
34332          { ac_try='test -s conftest.$ac_objext'
34333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334   (eval $ac_try) 2>&5
34335   ac_status=$?
34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337   (exit $ac_status); }; }; then
34338   ac_cv_type_ssize_t=yes
34339 else
34340   echo "$as_me: failed program was:" >&5
34341 sed 's/^/| /' conftest.$ac_ext >&5
34342
34343 ac_cv_type_ssize_t=no
34344 fi
34345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34346 fi
34347 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34348 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34349 if test $ac_cv_type_ssize_t = yes; then
34350
34351 cat >>confdefs.h <<_ACEOF
34352 #define HAVE_SSIZE_T 1
34353 _ACEOF
34354
34355
34356 fi
34357
34358
34359 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34360 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34361 if test "${wx_cv_size_t_is_uint+set}" = set; then
34362   echo $ECHO_N "(cached) $ECHO_C" >&6
34363 else
34364
34365                             cat >conftest.$ac_ext <<_ACEOF
34366 /* confdefs.h.  */
34367 _ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h.  */
34371 #include <stddef.h>
34372 int
34373 main ()
34374 {
34375
34376             return 0; }
34377
34378             struct Foo { void foo(size_t); void foo(unsigned int); };
34379
34380             int bar() {
34381
34382   ;
34383   return 0;
34384 }
34385 _ACEOF
34386 rm -f conftest.$ac_objext
34387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34388   (eval $ac_compile) 2>conftest.er1
34389   ac_status=$?
34390   grep -v '^ *+' conftest.er1 >conftest.err
34391   rm -f conftest.er1
34392   cat conftest.err >&5
34393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394   (exit $ac_status); } &&
34395          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34397   (eval $ac_try) 2>&5
34398   ac_status=$?
34399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400   (exit $ac_status); }; } &&
34401          { ac_try='test -s conftest.$ac_objext'
34402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34403   (eval $ac_try) 2>&5
34404   ac_status=$?
34405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406   (exit $ac_status); }; }; then
34407   wx_cv_size_t_is_uint=no
34408 else
34409   echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34411
34412 wx_cv_size_t_is_uint=yes
34413
34414 fi
34415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34416
34417
34418 fi
34419 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34420 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34421
34422 if test "$wx_cv_size_t_is_uint" = "yes"; then
34423     cat >>confdefs.h <<\_ACEOF
34424 #define wxSIZE_T_IS_UINT 1
34425 _ACEOF
34426
34427 else
34428     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34429 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34430 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34431   echo $ECHO_N "(cached) $ECHO_C" >&6
34432 else
34433   cat >conftest.$ac_ext <<_ACEOF
34434 /* confdefs.h.  */
34435 _ACEOF
34436 cat confdefs.h >>conftest.$ac_ext
34437 cat >>conftest.$ac_ext <<_ACEOF
34438 /* end confdefs.h.  */
34439 #include <stddef.h>
34440 int
34441 main ()
34442 {
34443
34444                 return 0; }
34445
34446                 struct Foo { void foo(size_t); void foo(unsigned long); };
34447
34448                 int bar() {
34449
34450   ;
34451   return 0;
34452 }
34453 _ACEOF
34454 rm -f conftest.$ac_objext
34455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34456   (eval $ac_compile) 2>conftest.er1
34457   ac_status=$?
34458   grep -v '^ *+' conftest.er1 >conftest.err
34459   rm -f conftest.er1
34460   cat conftest.err >&5
34461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462   (exit $ac_status); } &&
34463          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34465   (eval $ac_try) 2>&5
34466   ac_status=$?
34467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468   (exit $ac_status); }; } &&
34469          { ac_try='test -s conftest.$ac_objext'
34470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34471   (eval $ac_try) 2>&5
34472   ac_status=$?
34473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474   (exit $ac_status); }; }; then
34475   wx_cv_size_t_is_ulong=no
34476 else
34477   echo "$as_me: failed program was:" >&5
34478 sed 's/^/| /' conftest.$ac_ext >&5
34479
34480 wx_cv_size_t_is_ulong=yes
34481
34482 fi
34483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34484
34485 fi
34486 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34487 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34488
34489     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34490         cat >>confdefs.h <<\_ACEOF
34491 #define wxSIZE_T_IS_ULONG 1
34492 _ACEOF
34493
34494     fi
34495 fi
34496
34497
34498 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34499 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34500 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34501   echo $ECHO_N "(cached) $ECHO_C" >&6
34502 else
34503
34504         cat >conftest.$ac_ext <<_ACEOF
34505 /* confdefs.h.  */
34506 _ACEOF
34507 cat confdefs.h >>conftest.$ac_ext
34508 cat >>conftest.$ac_ext <<_ACEOF
34509 /* end confdefs.h.  */
34510 #include <pwd.h>
34511 int
34512 main ()
34513 {
34514
34515                 char *p;
34516                 struct passwd *pw;
34517                 p = pw->pw_gecos;
34518
34519   ;
34520   return 0;
34521 }
34522 _ACEOF
34523 rm -f conftest.$ac_objext
34524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34525   (eval $ac_compile) 2>conftest.er1
34526   ac_status=$?
34527   grep -v '^ *+' conftest.er1 >conftest.err
34528   rm -f conftest.er1
34529   cat conftest.err >&5
34530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531   (exit $ac_status); } &&
34532          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534   (eval $ac_try) 2>&5
34535   ac_status=$?
34536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537   (exit $ac_status); }; } &&
34538          { ac_try='test -s conftest.$ac_objext'
34539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540   (eval $ac_try) 2>&5
34541   ac_status=$?
34542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543   (exit $ac_status); }; }; then
34544
34545                 wx_cv_struct_pw_gecos=yes
34546
34547 else
34548   echo "$as_me: failed program was:" >&5
34549 sed 's/^/| /' conftest.$ac_ext >&5
34550
34551
34552                 wx_cv_struct_pw_gecos=no
34553
34554
34555 fi
34556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34557
34558
34559 fi
34560 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34561 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34562
34563 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34564     cat >>confdefs.h <<\_ACEOF
34565 #define HAVE_PW_GECOS 1
34566 _ACEOF
34567
34568 fi
34569
34570
34571 if test "$wxUSE_WCHAR_T" = "yes"; then
34572     cat >>confdefs.h <<\_ACEOF
34573 #define wxUSE_WCHAR_T 1
34574 _ACEOF
34575
34576
34577         WCSLEN_FOUND=0
34578     WCHAR_LINK=
34579
34580 for ac_func in wcslen
34581 do
34582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34583 echo "$as_me:$LINENO: checking for $ac_func" >&5
34584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34585 if eval "test \"\${$as_ac_var+set}\" = set"; then
34586   echo $ECHO_N "(cached) $ECHO_C" >&6
34587 else
34588   cat >conftest.$ac_ext <<_ACEOF
34589 /* confdefs.h.  */
34590 _ACEOF
34591 cat confdefs.h >>conftest.$ac_ext
34592 cat >>conftest.$ac_ext <<_ACEOF
34593 /* end confdefs.h.  */
34594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34596 #define $ac_func innocuous_$ac_func
34597
34598 /* System header to define __stub macros and hopefully few prototypes,
34599     which can conflict with char $ac_func (); below.
34600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34601     <limits.h> exists even on freestanding compilers.  */
34602
34603 #ifdef __STDC__
34604 # include <limits.h>
34605 #else
34606 # include <assert.h>
34607 #endif
34608
34609 #undef $ac_func
34610
34611 /* Override any gcc2 internal prototype to avoid an error.  */
34612 #ifdef __cplusplus
34613 extern "C"
34614 {
34615 #endif
34616 /* We use char because int might match the return type of a gcc2
34617    builtin and then its argument prototype would still apply.  */
34618 char $ac_func ();
34619 /* The GNU C library defines this for functions which it implements
34620     to always fail with ENOSYS.  Some functions are actually named
34621     something starting with __ and the normal name is an alias.  */
34622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34623 choke me
34624 #else
34625 char (*f) () = $ac_func;
34626 #endif
34627 #ifdef __cplusplus
34628 }
34629 #endif
34630
34631 int
34632 main ()
34633 {
34634 return f != $ac_func;
34635   ;
34636   return 0;
34637 }
34638 _ACEOF
34639 rm -f conftest.$ac_objext conftest$ac_exeext
34640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34641   (eval $ac_link) 2>conftest.er1
34642   ac_status=$?
34643   grep -v '^ *+' conftest.er1 >conftest.err
34644   rm -f conftest.er1
34645   cat conftest.err >&5
34646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647   (exit $ac_status); } &&
34648          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34650   (eval $ac_try) 2>&5
34651   ac_status=$?
34652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653   (exit $ac_status); }; } &&
34654          { ac_try='test -s conftest$ac_exeext'
34655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34656   (eval $ac_try) 2>&5
34657   ac_status=$?
34658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659   (exit $ac_status); }; }; then
34660   eval "$as_ac_var=yes"
34661 else
34662   echo "$as_me: failed program was:" >&5
34663 sed 's/^/| /' conftest.$ac_ext >&5
34664
34665 eval "$as_ac_var=no"
34666 fi
34667 rm -f conftest.err conftest.$ac_objext \
34668       conftest$ac_exeext conftest.$ac_ext
34669 fi
34670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34672 if test `eval echo '${'$as_ac_var'}'` = yes; then
34673   cat >>confdefs.h <<_ACEOF
34674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34675 _ACEOF
34676  WCSLEN_FOUND=1
34677 fi
34678 done
34679
34680
34681     if test "$WCSLEN_FOUND" = 0; then
34682         if test "$TOOLKIT" = "MSW"; then
34683             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34684 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34685 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34686   echo $ECHO_N "(cached) $ECHO_C" >&6
34687 else
34688   ac_check_lib_save_LIBS=$LIBS
34689 LIBS="-lmsvcrt  $LIBS"
34690 cat >conftest.$ac_ext <<_ACEOF
34691 /* confdefs.h.  */
34692 _ACEOF
34693 cat confdefs.h >>conftest.$ac_ext
34694 cat >>conftest.$ac_ext <<_ACEOF
34695 /* end confdefs.h.  */
34696
34697 /* Override any gcc2 internal prototype to avoid an error.  */
34698 #ifdef __cplusplus
34699 extern "C"
34700 #endif
34701 /* We use char because int might match the return type of a gcc2
34702    builtin and then its argument prototype would still apply.  */
34703 char wcslen ();
34704 int
34705 main ()
34706 {
34707 wcslen ();
34708   ;
34709   return 0;
34710 }
34711 _ACEOF
34712 rm -f conftest.$ac_objext conftest$ac_exeext
34713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34714   (eval $ac_link) 2>conftest.er1
34715   ac_status=$?
34716   grep -v '^ *+' conftest.er1 >conftest.err
34717   rm -f conftest.er1
34718   cat conftest.err >&5
34719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720   (exit $ac_status); } &&
34721          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34723   (eval $ac_try) 2>&5
34724   ac_status=$?
34725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726   (exit $ac_status); }; } &&
34727          { ac_try='test -s conftest$ac_exeext'
34728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34729   (eval $ac_try) 2>&5
34730   ac_status=$?
34731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732   (exit $ac_status); }; }; then
34733   ac_cv_lib_msvcrt_wcslen=yes
34734 else
34735   echo "$as_me: failed program was:" >&5
34736 sed 's/^/| /' conftest.$ac_ext >&5
34737
34738 ac_cv_lib_msvcrt_wcslen=no
34739 fi
34740 rm -f conftest.err conftest.$ac_objext \
34741       conftest$ac_exeext conftest.$ac_ext
34742 LIBS=$ac_check_lib_save_LIBS
34743 fi
34744 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34745 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34746 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34747   WCHAR_OK=1
34748 fi
34749
34750         else
34751             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34752 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34753 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34754   echo $ECHO_N "(cached) $ECHO_C" >&6
34755 else
34756   ac_check_lib_save_LIBS=$LIBS
34757 LIBS="-lw  $LIBS"
34758 cat >conftest.$ac_ext <<_ACEOF
34759 /* confdefs.h.  */
34760 _ACEOF
34761 cat confdefs.h >>conftest.$ac_ext
34762 cat >>conftest.$ac_ext <<_ACEOF
34763 /* end confdefs.h.  */
34764
34765 /* Override any gcc2 internal prototype to avoid an error.  */
34766 #ifdef __cplusplus
34767 extern "C"
34768 #endif
34769 /* We use char because int might match the return type of a gcc2
34770    builtin and then its argument prototype would still apply.  */
34771 char wcslen ();
34772 int
34773 main ()
34774 {
34775 wcslen ();
34776   ;
34777   return 0;
34778 }
34779 _ACEOF
34780 rm -f conftest.$ac_objext conftest$ac_exeext
34781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34782   (eval $ac_link) 2>conftest.er1
34783   ac_status=$?
34784   grep -v '^ *+' conftest.er1 >conftest.err
34785   rm -f conftest.er1
34786   cat conftest.err >&5
34787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788   (exit $ac_status); } &&
34789          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34791   (eval $ac_try) 2>&5
34792   ac_status=$?
34793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794   (exit $ac_status); }; } &&
34795          { ac_try='test -s conftest$ac_exeext'
34796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34797   (eval $ac_try) 2>&5
34798   ac_status=$?
34799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34800   (exit $ac_status); }; }; then
34801   ac_cv_lib_w_wcslen=yes
34802 else
34803   echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34805
34806 ac_cv_lib_w_wcslen=no
34807 fi
34808 rm -f conftest.err conftest.$ac_objext \
34809       conftest$ac_exeext conftest.$ac_ext
34810 LIBS=$ac_check_lib_save_LIBS
34811 fi
34812 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34813 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34814 if test $ac_cv_lib_w_wcslen = yes; then
34815
34816                             WCHAR_LINK=" -lw"
34817                             WCSLEN_FOUND=1
34818
34819 fi
34820
34821         fi
34822     fi
34823
34824     if test "$WCSLEN_FOUND" = 1; then
34825         cat >>confdefs.h <<\_ACEOF
34826 #define HAVE_WCSLEN 1
34827 _ACEOF
34828
34829     fi
34830
34831                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34832         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34833     fi
34834
34835                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34836 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34837 if test "${ac_cv_type_mbstate_t+set}" = set; then
34838   echo $ECHO_N "(cached) $ECHO_C" >&6
34839 else
34840   cat >conftest.$ac_ext <<_ACEOF
34841 /* confdefs.h.  */
34842 _ACEOF
34843 cat confdefs.h >>conftest.$ac_ext
34844 cat >>conftest.$ac_ext <<_ACEOF
34845 /* end confdefs.h.  */
34846 #include <wchar.h>
34847
34848 int
34849 main ()
34850 {
34851 if ((mbstate_t *) 0)
34852   return 0;
34853 if (sizeof (mbstate_t))
34854   return 0;
34855   ;
34856   return 0;
34857 }
34858 _ACEOF
34859 rm -f conftest.$ac_objext
34860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34861   (eval $ac_compile) 2>conftest.er1
34862   ac_status=$?
34863   grep -v '^ *+' conftest.er1 >conftest.err
34864   rm -f conftest.er1
34865   cat conftest.err >&5
34866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867   (exit $ac_status); } &&
34868          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34870   (eval $ac_try) 2>&5
34871   ac_status=$?
34872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873   (exit $ac_status); }; } &&
34874          { ac_try='test -s conftest.$ac_objext'
34875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876   (eval $ac_try) 2>&5
34877   ac_status=$?
34878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879   (exit $ac_status); }; }; then
34880   ac_cv_type_mbstate_t=yes
34881 else
34882   echo "$as_me: failed program was:" >&5
34883 sed 's/^/| /' conftest.$ac_ext >&5
34884
34885 ac_cv_type_mbstate_t=no
34886 fi
34887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34888 fi
34889 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34890 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34891 if test $ac_cv_type_mbstate_t = yes; then
34892
34893 cat >>confdefs.h <<_ACEOF
34894 #define HAVE_MBSTATE_T 1
34895 _ACEOF
34896
34897
34898 for ac_func in wcsrtombs
34899 do
34900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34901 echo "$as_me:$LINENO: checking for $ac_func" >&5
34902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34903 if eval "test \"\${$as_ac_var+set}\" = set"; then
34904   echo $ECHO_N "(cached) $ECHO_C" >&6
34905 else
34906   cat >conftest.$ac_ext <<_ACEOF
34907 /* confdefs.h.  */
34908 _ACEOF
34909 cat confdefs.h >>conftest.$ac_ext
34910 cat >>conftest.$ac_ext <<_ACEOF
34911 /* end confdefs.h.  */
34912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34914 #define $ac_func innocuous_$ac_func
34915
34916 /* System header to define __stub macros and hopefully few prototypes,
34917     which can conflict with char $ac_func (); below.
34918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34919     <limits.h> exists even on freestanding compilers.  */
34920
34921 #ifdef __STDC__
34922 # include <limits.h>
34923 #else
34924 # include <assert.h>
34925 #endif
34926
34927 #undef $ac_func
34928
34929 /* Override any gcc2 internal prototype to avoid an error.  */
34930 #ifdef __cplusplus
34931 extern "C"
34932 {
34933 #endif
34934 /* We use char because int might match the return type of a gcc2
34935    builtin and then its argument prototype would still apply.  */
34936 char $ac_func ();
34937 /* The GNU C library defines this for functions which it implements
34938     to always fail with ENOSYS.  Some functions are actually named
34939     something starting with __ and the normal name is an alias.  */
34940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34941 choke me
34942 #else
34943 char (*f) () = $ac_func;
34944 #endif
34945 #ifdef __cplusplus
34946 }
34947 #endif
34948
34949 int
34950 main ()
34951 {
34952 return f != $ac_func;
34953   ;
34954   return 0;
34955 }
34956 _ACEOF
34957 rm -f conftest.$ac_objext conftest$ac_exeext
34958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34959   (eval $ac_link) 2>conftest.er1
34960   ac_status=$?
34961   grep -v '^ *+' conftest.er1 >conftest.err
34962   rm -f conftest.er1
34963   cat conftest.err >&5
34964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965   (exit $ac_status); } &&
34966          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34968   (eval $ac_try) 2>&5
34969   ac_status=$?
34970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971   (exit $ac_status); }; } &&
34972          { ac_try='test -s conftest$ac_exeext'
34973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34974   (eval $ac_try) 2>&5
34975   ac_status=$?
34976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977   (exit $ac_status); }; }; then
34978   eval "$as_ac_var=yes"
34979 else
34980   echo "$as_me: failed program was:" >&5
34981 sed 's/^/| /' conftest.$ac_ext >&5
34982
34983 eval "$as_ac_var=no"
34984 fi
34985 rm -f conftest.err conftest.$ac_objext \
34986       conftest$ac_exeext conftest.$ac_ext
34987 fi
34988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34990 if test `eval echo '${'$as_ac_var'}'` = yes; then
34991   cat >>confdefs.h <<_ACEOF
34992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34993 _ACEOF
34994
34995 fi
34996 done
34997
34998 fi
34999
35000 else
35001     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35002 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35003 fi
35004
35005
35006
35007 for ac_func in snprintf vsnprintf
35008 do
35009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35010 echo "$as_me:$LINENO: checking for $ac_func" >&5
35011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35012 if eval "test \"\${$as_ac_var+set}\" = set"; then
35013   echo $ECHO_N "(cached) $ECHO_C" >&6
35014 else
35015   cat >conftest.$ac_ext <<_ACEOF
35016 /* confdefs.h.  */
35017 _ACEOF
35018 cat confdefs.h >>conftest.$ac_ext
35019 cat >>conftest.$ac_ext <<_ACEOF
35020 /* end confdefs.h.  */
35021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35023 #define $ac_func innocuous_$ac_func
35024
35025 /* System header to define __stub macros and hopefully few prototypes,
35026     which can conflict with char $ac_func (); below.
35027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35028     <limits.h> exists even on freestanding compilers.  */
35029
35030 #ifdef __STDC__
35031 # include <limits.h>
35032 #else
35033 # include <assert.h>
35034 #endif
35035
35036 #undef $ac_func
35037
35038 /* Override any gcc2 internal prototype to avoid an error.  */
35039 #ifdef __cplusplus
35040 extern "C"
35041 {
35042 #endif
35043 /* We use char because int might match the return type of a gcc2
35044    builtin and then its argument prototype would still apply.  */
35045 char $ac_func ();
35046 /* The GNU C library defines this for functions which it implements
35047     to always fail with ENOSYS.  Some functions are actually named
35048     something starting with __ and the normal name is an alias.  */
35049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35050 choke me
35051 #else
35052 char (*f) () = $ac_func;
35053 #endif
35054 #ifdef __cplusplus
35055 }
35056 #endif
35057
35058 int
35059 main ()
35060 {
35061 return f != $ac_func;
35062   ;
35063   return 0;
35064 }
35065 _ACEOF
35066 rm -f conftest.$ac_objext conftest$ac_exeext
35067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35068   (eval $ac_link) 2>conftest.er1
35069   ac_status=$?
35070   grep -v '^ *+' conftest.er1 >conftest.err
35071   rm -f conftest.er1
35072   cat conftest.err >&5
35073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074   (exit $ac_status); } &&
35075          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35077   (eval $ac_try) 2>&5
35078   ac_status=$?
35079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080   (exit $ac_status); }; } &&
35081          { ac_try='test -s conftest$ac_exeext'
35082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35083   (eval $ac_try) 2>&5
35084   ac_status=$?
35085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086   (exit $ac_status); }; }; then
35087   eval "$as_ac_var=yes"
35088 else
35089   echo "$as_me: failed program was:" >&5
35090 sed 's/^/| /' conftest.$ac_ext >&5
35091
35092 eval "$as_ac_var=no"
35093 fi
35094 rm -f conftest.err conftest.$ac_objext \
35095       conftest$ac_exeext conftest.$ac_ext
35096 fi
35097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35099 if test `eval echo '${'$as_ac_var'}'` = yes; then
35100   cat >>confdefs.h <<_ACEOF
35101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35102 _ACEOF
35103
35104 fi
35105 done
35106
35107
35108 if test "$ac_cv_func_vsnprintf" = "yes"; then
35109         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35110 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35111 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35112   echo $ECHO_N "(cached) $ECHO_C" >&6
35113 else
35114
35115                                                             cat >conftest.$ac_ext <<_ACEOF
35116 /* confdefs.h.  */
35117 _ACEOF
35118 cat confdefs.h >>conftest.$ac_ext
35119 cat >>conftest.$ac_ext <<_ACEOF
35120 /* end confdefs.h.  */
35121
35122                     #include <stdio.h>
35123                     #include <stdarg.h>
35124                     #ifdef __MSL__
35125                     #if __MSL__ >= 0x6000
35126                     namespace std {}
35127                     using namespace std;
35128                     #endif
35129                     #endif
35130
35131 int
35132 main ()
35133 {
35134
35135                     char *buf;
35136                     va_list ap;
35137                     vsnprintf(buf, 10u, "%s", ap);
35138
35139   ;
35140   return 0;
35141 }
35142 _ACEOF
35143 rm -f conftest.$ac_objext
35144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35145   (eval $ac_compile) 2>conftest.er1
35146   ac_status=$?
35147   grep -v '^ *+' conftest.er1 >conftest.err
35148   rm -f conftest.er1
35149   cat conftest.err >&5
35150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151   (exit $ac_status); } &&
35152          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154   (eval $ac_try) 2>&5
35155   ac_status=$?
35156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157   (exit $ac_status); }; } &&
35158          { ac_try='test -s conftest.$ac_objext'
35159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35160   (eval $ac_try) 2>&5
35161   ac_status=$?
35162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163   (exit $ac_status); }; }; then
35164   wx_cv_func_vsnprintf_decl=yes
35165 else
35166   echo "$as_me: failed program was:" >&5
35167 sed 's/^/| /' conftest.$ac_ext >&5
35168
35169 wx_cv_func_vsnprintf_decl=no
35170
35171 fi
35172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35173
35174
35175 fi
35176 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35177 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35178
35179     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35180         cat >>confdefs.h <<\_ACEOF
35181 #define HAVE_VSNPRINTF_DECL 1
35182 _ACEOF
35183
35184
35185                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35186 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35187 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35188   echo $ECHO_N "(cached) $ECHO_C" >&6
35189 else
35190
35191                 cat >conftest.$ac_ext <<_ACEOF
35192 /* confdefs.h.  */
35193 _ACEOF
35194 cat confdefs.h >>conftest.$ac_ext
35195 cat >>conftest.$ac_ext <<_ACEOF
35196 /* end confdefs.h.  */
35197
35198                         #include <stdio.h>
35199                         #include <stdarg.h>
35200                         #ifdef __MSL__
35201                         #if __MSL__ >= 0x6000
35202                         namespace std {}
35203                         using namespace std;
35204                         #endif
35205                         #endif
35206
35207 int
35208 main ()
35209 {
35210
35211                         char *buf;
35212                         va_list ap;
35213                         const char *fmt = "%s";
35214                         vsnprintf(buf, 10u, fmt, ap);
35215
35216   ;
35217   return 0;
35218 }
35219 _ACEOF
35220 rm -f conftest.$ac_objext
35221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35222   (eval $ac_compile) 2>conftest.er1
35223   ac_status=$?
35224   grep -v '^ *+' conftest.er1 >conftest.err
35225   rm -f conftest.er1
35226   cat conftest.err >&5
35227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228   (exit $ac_status); } &&
35229          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35231   (eval $ac_try) 2>&5
35232   ac_status=$?
35233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234   (exit $ac_status); }; } &&
35235          { ac_try='test -s conftest.$ac_objext'
35236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35237   (eval $ac_try) 2>&5
35238   ac_status=$?
35239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240   (exit $ac_status); }; }; then
35241   wx_cv_func_broken_vsnprintf_decl=no
35242 else
35243   echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35245
35246 wx_cv_func_broken_vsnprintf_decl=yes
35247
35248 fi
35249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35250
35251
35252 fi
35253 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35254 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35255
35256         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35257             cat >>confdefs.h <<\_ACEOF
35258 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35259 _ACEOF
35260
35261         fi
35262     fi
35263 fi
35264
35265 if test "$ac_cv_func_snprintf" = "yes"; then
35266     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35267 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35268 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35269   echo $ECHO_N "(cached) $ECHO_C" >&6
35270 else
35271
35272             cat >conftest.$ac_ext <<_ACEOF
35273 /* confdefs.h.  */
35274 _ACEOF
35275 cat confdefs.h >>conftest.$ac_ext
35276 cat >>conftest.$ac_ext <<_ACEOF
35277 /* end confdefs.h.  */
35278
35279                     #include <stdio.h>
35280                     #include <stdarg.h>
35281                     #ifdef __MSL__
35282                     #if __MSL__ >= 0x6000
35283                     namespace std {}
35284                     using namespace std;
35285                     #endif
35286                     #endif
35287
35288 int
35289 main ()
35290 {
35291
35292                     char *buf;
35293                     snprintf(buf, 10u, "%s", "wx");
35294
35295   ;
35296   return 0;
35297 }
35298 _ACEOF
35299 rm -f conftest.$ac_objext
35300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35301   (eval $ac_compile) 2>conftest.er1
35302   ac_status=$?
35303   grep -v '^ *+' conftest.er1 >conftest.err
35304   rm -f conftest.er1
35305   cat conftest.err >&5
35306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307   (exit $ac_status); } &&
35308          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35310   (eval $ac_try) 2>&5
35311   ac_status=$?
35312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313   (exit $ac_status); }; } &&
35314          { ac_try='test -s conftest.$ac_objext'
35315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35316   (eval $ac_try) 2>&5
35317   ac_status=$?
35318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319   (exit $ac_status); }; }; then
35320   wx_cv_func_snprintf_decl=yes
35321 else
35322   echo "$as_me: failed program was:" >&5
35323 sed 's/^/| /' conftest.$ac_ext >&5
35324
35325 wx_cv_func_snprintf_decl=no
35326
35327 fi
35328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35329
35330
35331 fi
35332 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35333 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35334
35335     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35336         cat >>confdefs.h <<\_ACEOF
35337 #define HAVE_SNPRINTF_DECL 1
35338 _ACEOF
35339
35340
35341                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35342 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35343 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35344   echo $ECHO_N "(cached) $ECHO_C" >&6
35345 else
35346
35347                 cat >conftest.$ac_ext <<_ACEOF
35348 /* confdefs.h.  */
35349 _ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h.  */
35353
35354                         #include <stdio.h>
35355                         #include <stdarg.h>
35356                         #ifdef __MSL__
35357                         #if __MSL__ >= 0x6000
35358                         namespace std {}
35359                         using namespace std;
35360                         #endif
35361                         #endif
35362
35363 int
35364 main ()
35365 {
35366
35367                         char *buf;
35368                         const char *fmt = "%s";
35369                         snprintf(buf, 10u, fmt, "wx");
35370
35371   ;
35372   return 0;
35373 }
35374 _ACEOF
35375 rm -f conftest.$ac_objext
35376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35377   (eval $ac_compile) 2>conftest.er1
35378   ac_status=$?
35379   grep -v '^ *+' conftest.er1 >conftest.err
35380   rm -f conftest.er1
35381   cat conftest.err >&5
35382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383   (exit $ac_status); } &&
35384          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35386   (eval $ac_try) 2>&5
35387   ac_status=$?
35388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389   (exit $ac_status); }; } &&
35390          { ac_try='test -s conftest.$ac_objext'
35391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392   (eval $ac_try) 2>&5
35393   ac_status=$?
35394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395   (exit $ac_status); }; }; then
35396   wx_cv_func_broken_snprintf_decl=no
35397 else
35398   echo "$as_me: failed program was:" >&5
35399 sed 's/^/| /' conftest.$ac_ext >&5
35400
35401 wx_cv_func_broken_snprintf_decl=yes
35402
35403 fi
35404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35405
35406
35407 fi
35408 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35409 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35410
35411         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35412             cat >>confdefs.h <<\_ACEOF
35413 #define HAVE_BROKEN_SNPRINTF_DECL 1
35414 _ACEOF
35415
35416         fi
35417     fi
35418
35419     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35420
35421                                         echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35422 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35423 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35424   echo $ECHO_N "(cached) $ECHO_C" >&6
35425 else
35426
35427                 if test "$cross_compiling" = yes; then
35428
35429                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35430 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35431 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35432 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35433                         wx_cv_func_snprintf_pos_params=no
35434
35435
35436 else
35437   cat >conftest.$ac_ext <<_ACEOF
35438 /* confdefs.h.  */
35439 _ACEOF
35440 cat confdefs.h >>conftest.$ac_ext
35441 cat >>conftest.$ac_ext <<_ACEOF
35442 /* end confdefs.h.  */
35443
35444                         #include <stdio.h>
35445
35446                         int main (void)
35447                         {
35448                             char buffer[128];
35449                             snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35450                             if (strcmp ("2 3 1", buffer) == 0)
35451                                 exit (0);
35452                             exit (1);
35453                         }
35454
35455 _ACEOF
35456 rm -f conftest$ac_exeext
35457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35458   (eval $ac_link) 2>&5
35459   ac_status=$?
35460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35463   (eval $ac_try) 2>&5
35464   ac_status=$?
35465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35466   (exit $ac_status); }; }; then
35467   wx_cv_func_snprintf_pos_params=no
35468 else
35469   echo "$as_me: program exited with status $ac_status" >&5
35470 echo "$as_me: failed program was:" >&5
35471 sed 's/^/| /' conftest.$ac_ext >&5
35472
35473 ( exit $ac_status )
35474 wx_cv_func_snprintf_pos_params=yes
35475 fi
35476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35477 fi
35478
35479
35480 fi
35481 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35482 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35483
35484         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35485             cat >>confdefs.h <<\_ACEOF
35486 #define HAVE_UNIX98_PRINTF 1
35487 _ACEOF
35488
35489         fi
35490     fi
35491 fi
35492
35493 if test "$wxUSE_UNICODE" = yes; then
35494
35495
35496 for ac_func in swprintf
35497 do
35498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35499 echo "$as_me:$LINENO: checking for $ac_func" >&5
35500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35501 if eval "test \"\${$as_ac_var+set}\" = set"; then
35502   echo $ECHO_N "(cached) $ECHO_C" >&6
35503 else
35504   cat >conftest.$ac_ext <<_ACEOF
35505 /* confdefs.h.  */
35506 _ACEOF
35507 cat confdefs.h >>conftest.$ac_ext
35508 cat >>conftest.$ac_ext <<_ACEOF
35509 /* end confdefs.h.  */
35510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35512 #define $ac_func innocuous_$ac_func
35513
35514 /* System header to define __stub macros and hopefully few prototypes,
35515     which can conflict with char $ac_func (); below.
35516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35517     <limits.h> exists even on freestanding compilers.  */
35518
35519 #ifdef __STDC__
35520 # include <limits.h>
35521 #else
35522 # include <assert.h>
35523 #endif
35524
35525 #undef $ac_func
35526
35527 /* Override any gcc2 internal prototype to avoid an error.  */
35528 #ifdef __cplusplus
35529 extern "C"
35530 {
35531 #endif
35532 /* We use char because int might match the return type of a gcc2
35533    builtin and then its argument prototype would still apply.  */
35534 char $ac_func ();
35535 /* The GNU C library defines this for functions which it implements
35536     to always fail with ENOSYS.  Some functions are actually named
35537     something starting with __ and the normal name is an alias.  */
35538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35539 choke me
35540 #else
35541 char (*f) () = $ac_func;
35542 #endif
35543 #ifdef __cplusplus
35544 }
35545 #endif
35546
35547 int
35548 main ()
35549 {
35550 return f != $ac_func;
35551   ;
35552   return 0;
35553 }
35554 _ACEOF
35555 rm -f conftest.$ac_objext conftest$ac_exeext
35556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35557   (eval $ac_link) 2>conftest.er1
35558   ac_status=$?
35559   grep -v '^ *+' conftest.er1 >conftest.err
35560   rm -f conftest.er1
35561   cat conftest.err >&5
35562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563   (exit $ac_status); } &&
35564          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35566   (eval $ac_try) 2>&5
35567   ac_status=$?
35568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569   (exit $ac_status); }; } &&
35570          { ac_try='test -s conftest$ac_exeext'
35571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35572   (eval $ac_try) 2>&5
35573   ac_status=$?
35574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575   (exit $ac_status); }; }; then
35576   eval "$as_ac_var=yes"
35577 else
35578   echo "$as_me: failed program was:" >&5
35579 sed 's/^/| /' conftest.$ac_ext >&5
35580
35581 eval "$as_ac_var=no"
35582 fi
35583 rm -f conftest.err conftest.$ac_objext \
35584       conftest$ac_exeext conftest.$ac_ext
35585 fi
35586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35588 if test `eval echo '${'$as_ac_var'}'` = yes; then
35589   cat >>confdefs.h <<_ACEOF
35590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35591 _ACEOF
35592
35593 fi
35594 done
35595
35596
35597     if test "$ac_cv_func_swprintf" = "yes"; then
35598         echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35599 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35600 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35601   echo $ECHO_N "(cached) $ECHO_C" >&6
35602 else
35603
35604                 cat >conftest.$ac_ext <<_ACEOF
35605 /* confdefs.h.  */
35606 _ACEOF
35607 cat confdefs.h >>conftest.$ac_ext
35608 cat >>conftest.$ac_ext <<_ACEOF
35609 /* end confdefs.h.  */
35610
35611                         #include <stdio.h>
35612                         #include <stdarg.h>
35613                         #include <wchar.h>
35614
35615 int
35616 main ()
35617 {
35618
35619                         wchar_t *buf;
35620                         const wchar_t *fmt = L"test";
35621                         swprintf(buf, 10u, fmt);
35622
35623   ;
35624   return 0;
35625 }
35626 _ACEOF
35627 rm -f conftest.$ac_objext
35628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35629   (eval $ac_compile) 2>conftest.er1
35630   ac_status=$?
35631   grep -v '^ *+' conftest.er1 >conftest.err
35632   rm -f conftest.er1
35633   cat conftest.err >&5
35634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635   (exit $ac_status); } &&
35636          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35638   (eval $ac_try) 2>&5
35639   ac_status=$?
35640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641   (exit $ac_status); }; } &&
35642          { ac_try='test -s conftest.$ac_objext'
35643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35644   (eval $ac_try) 2>&5
35645   ac_status=$?
35646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647   (exit $ac_status); }; }; then
35648   wx_cv_func_broken_swprintf_decl=no
35649 else
35650   echo "$as_me: failed program was:" >&5
35651 sed 's/^/| /' conftest.$ac_ext >&5
35652
35653 wx_cv_func_broken_swprintf_decl=yes
35654
35655 fi
35656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35657
35658
35659 fi
35660 echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35661 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35662
35663         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35664             cat >>confdefs.h <<\_ACEOF
35665 #define HAVE_BROKEN_SWPRINTF_DECL 1
35666 _ACEOF
35667
35668         fi
35669     fi
35670
35671
35672
35673
35674
35675
35676
35677 for ac_func in wputc wputchar putws fputws wprintf vswprintf
35678 do
35679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35680 echo "$as_me:$LINENO: checking for $ac_func" >&5
35681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35682 if eval "test \"\${$as_ac_var+set}\" = set"; then
35683   echo $ECHO_N "(cached) $ECHO_C" >&6
35684 else
35685   cat >conftest.$ac_ext <<_ACEOF
35686 /* confdefs.h.  */
35687 _ACEOF
35688 cat confdefs.h >>conftest.$ac_ext
35689 cat >>conftest.$ac_ext <<_ACEOF
35690 /* end confdefs.h.  */
35691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35693 #define $ac_func innocuous_$ac_func
35694
35695 /* System header to define __stub macros and hopefully few prototypes,
35696     which can conflict with char $ac_func (); below.
35697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35698     <limits.h> exists even on freestanding compilers.  */
35699
35700 #ifdef __STDC__
35701 # include <limits.h>
35702 #else
35703 # include <assert.h>
35704 #endif
35705
35706 #undef $ac_func
35707
35708 /* Override any gcc2 internal prototype to avoid an error.  */
35709 #ifdef __cplusplus
35710 extern "C"
35711 {
35712 #endif
35713 /* We use char because int might match the return type of a gcc2
35714    builtin and then its argument prototype would still apply.  */
35715 char $ac_func ();
35716 /* The GNU C library defines this for functions which it implements
35717     to always fail with ENOSYS.  Some functions are actually named
35718     something starting with __ and the normal name is an alias.  */
35719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35720 choke me
35721 #else
35722 char (*f) () = $ac_func;
35723 #endif
35724 #ifdef __cplusplus
35725 }
35726 #endif
35727
35728 int
35729 main ()
35730 {
35731 return f != $ac_func;
35732   ;
35733   return 0;
35734 }
35735 _ACEOF
35736 rm -f conftest.$ac_objext conftest$ac_exeext
35737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35738   (eval $ac_link) 2>conftest.er1
35739   ac_status=$?
35740   grep -v '^ *+' conftest.er1 >conftest.err
35741   rm -f conftest.er1
35742   cat conftest.err >&5
35743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744   (exit $ac_status); } &&
35745          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35747   (eval $ac_try) 2>&5
35748   ac_status=$?
35749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35750   (exit $ac_status); }; } &&
35751          { ac_try='test -s conftest$ac_exeext'
35752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35753   (eval $ac_try) 2>&5
35754   ac_status=$?
35755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); }; }; then
35757   eval "$as_ac_var=yes"
35758 else
35759   echo "$as_me: failed program was:" >&5
35760 sed 's/^/| /' conftest.$ac_ext >&5
35761
35762 eval "$as_ac_var=no"
35763 fi
35764 rm -f conftest.err conftest.$ac_objext \
35765       conftest$ac_exeext conftest.$ac_ext
35766 fi
35767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35769 if test `eval echo '${'$as_ac_var'}'` = yes; then
35770   cat >>confdefs.h <<_ACEOF
35771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35772 _ACEOF
35773
35774 fi
35775 done
35776
35777
35778                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35779 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35780     cat >conftest.$ac_ext <<_ACEOF
35781 /* confdefs.h.  */
35782 _ACEOF
35783 cat confdefs.h >>conftest.$ac_ext
35784 cat >>conftest.$ac_ext <<_ACEOF
35785 /* end confdefs.h.  */
35786 #include <wchar.h>
35787 int
35788 main ()
35789 {
35790 &_vsnwprintf;
35791   ;
35792   return 0;
35793 }
35794 _ACEOF
35795 rm -f conftest.$ac_objext
35796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35797   (eval $ac_compile) 2>conftest.er1
35798   ac_status=$?
35799   grep -v '^ *+' conftest.er1 >conftest.err
35800   rm -f conftest.er1
35801   cat conftest.err >&5
35802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803   (exit $ac_status); } &&
35804          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806   (eval $ac_try) 2>&5
35807   ac_status=$?
35808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809   (exit $ac_status); }; } &&
35810          { ac_try='test -s conftest.$ac_objext'
35811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35812   (eval $ac_try) 2>&5
35813   ac_status=$?
35814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815   (exit $ac_status); }; }; then
35816   echo "$as_me:$LINENO: result: yes" >&5
35817 echo "${ECHO_T}yes" >&6
35818                     cat >>confdefs.h <<\_ACEOF
35819 #define HAVE__VSNWPRINTF 1
35820 _ACEOF
35821
35822 else
35823   echo "$as_me: failed program was:" >&5
35824 sed 's/^/| /' conftest.$ac_ext >&5
35825
35826 echo "$as_me:$LINENO: result: no" >&5
35827 echo "${ECHO_T}no" >&6
35828 fi
35829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
35830 fi
35831
35832 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35833
35834 for ac_func in fnmatch
35835 do
35836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35837 echo "$as_me:$LINENO: checking for $ac_func" >&5
35838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35839 if eval "test \"\${$as_ac_var+set}\" = set"; then
35840   echo $ECHO_N "(cached) $ECHO_C" >&6
35841 else
35842   cat >conftest.$ac_ext <<_ACEOF
35843 /* confdefs.h.  */
35844 _ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h.  */
35848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35850 #define $ac_func innocuous_$ac_func
35851
35852 /* System header to define __stub macros and hopefully few prototypes,
35853     which can conflict with char $ac_func (); below.
35854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35855     <limits.h> exists even on freestanding compilers.  */
35856
35857 #ifdef __STDC__
35858 # include <limits.h>
35859 #else
35860 # include <assert.h>
35861 #endif
35862
35863 #undef $ac_func
35864
35865 /* Override any gcc2 internal prototype to avoid an error.  */
35866 #ifdef __cplusplus
35867 extern "C"
35868 {
35869 #endif
35870 /* We use char because int might match the return type of a gcc2
35871    builtin and then its argument prototype would still apply.  */
35872 char $ac_func ();
35873 /* The GNU C library defines this for functions which it implements
35874     to always fail with ENOSYS.  Some functions are actually named
35875     something starting with __ and the normal name is an alias.  */
35876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35877 choke me
35878 #else
35879 char (*f) () = $ac_func;
35880 #endif
35881 #ifdef __cplusplus
35882 }
35883 #endif
35884
35885 int
35886 main ()
35887 {
35888 return f != $ac_func;
35889   ;
35890   return 0;
35891 }
35892 _ACEOF
35893 rm -f conftest.$ac_objext conftest$ac_exeext
35894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35895   (eval $ac_link) 2>conftest.er1
35896   ac_status=$?
35897   grep -v '^ *+' conftest.er1 >conftest.err
35898   rm -f conftest.er1
35899   cat conftest.err >&5
35900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901   (exit $ac_status); } &&
35902          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35904   (eval $ac_try) 2>&5
35905   ac_status=$?
35906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907   (exit $ac_status); }; } &&
35908          { ac_try='test -s conftest$ac_exeext'
35909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35910   (eval $ac_try) 2>&5
35911   ac_status=$?
35912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913   (exit $ac_status); }; }; then
35914   eval "$as_ac_var=yes"
35915 else
35916   echo "$as_me: failed program was:" >&5
35917 sed 's/^/| /' conftest.$ac_ext >&5
35918
35919 eval "$as_ac_var=no"
35920 fi
35921 rm -f conftest.err conftest.$ac_objext \
35922       conftest$ac_exeext conftest.$ac_ext
35923 fi
35924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35926 if test `eval echo '${'$as_ac_var'}'` = yes; then
35927   cat >>confdefs.h <<_ACEOF
35928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35929 _ACEOF
35930
35931 fi
35932 done
35933
35934 fi
35935
35936 if test "$wxUSE_FILE" = "yes"; then
35937
35938 for ac_func in fsync
35939 do
35940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35941 echo "$as_me:$LINENO: checking for $ac_func" >&5
35942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35943 if eval "test \"\${$as_ac_var+set}\" = set"; then
35944   echo $ECHO_N "(cached) $ECHO_C" >&6
35945 else
35946   cat >conftest.$ac_ext <<_ACEOF
35947 /* confdefs.h.  */
35948 _ACEOF
35949 cat confdefs.h >>conftest.$ac_ext
35950 cat >>conftest.$ac_ext <<_ACEOF
35951 /* end confdefs.h.  */
35952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35954 #define $ac_func innocuous_$ac_func
35955
35956 /* System header to define __stub macros and hopefully few prototypes,
35957     which can conflict with char $ac_func (); below.
35958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35959     <limits.h> exists even on freestanding compilers.  */
35960
35961 #ifdef __STDC__
35962 # include <limits.h>
35963 #else
35964 # include <assert.h>
35965 #endif
35966
35967 #undef $ac_func
35968
35969 /* Override any gcc2 internal prototype to avoid an error.  */
35970 #ifdef __cplusplus
35971 extern "C"
35972 {
35973 #endif
35974 /* We use char because int might match the return type of a gcc2
35975    builtin and then its argument prototype would still apply.  */
35976 char $ac_func ();
35977 /* The GNU C library defines this for functions which it implements
35978     to always fail with ENOSYS.  Some functions are actually named
35979     something starting with __ and the normal name is an alias.  */
35980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35981 choke me
35982 #else
35983 char (*f) () = $ac_func;
35984 #endif
35985 #ifdef __cplusplus
35986 }
35987 #endif
35988
35989 int
35990 main ()
35991 {
35992 return f != $ac_func;
35993   ;
35994   return 0;
35995 }
35996 _ACEOF
35997 rm -f conftest.$ac_objext conftest$ac_exeext
35998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35999   (eval $ac_link) 2>conftest.er1
36000   ac_status=$?
36001   grep -v '^ *+' conftest.er1 >conftest.err
36002   rm -f conftest.er1
36003   cat conftest.err >&5
36004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005   (exit $ac_status); } &&
36006          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36008   (eval $ac_try) 2>&5
36009   ac_status=$?
36010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011   (exit $ac_status); }; } &&
36012          { ac_try='test -s conftest$ac_exeext'
36013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36014   (eval $ac_try) 2>&5
36015   ac_status=$?
36016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017   (exit $ac_status); }; }; then
36018   eval "$as_ac_var=yes"
36019 else
36020   echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36022
36023 eval "$as_ac_var=no"
36024 fi
36025 rm -f conftest.err conftest.$ac_objext \
36026       conftest$ac_exeext conftest.$ac_ext
36027 fi
36028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36030 if test `eval echo '${'$as_ac_var'}'` = yes; then
36031   cat >>confdefs.h <<_ACEOF
36032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36033 _ACEOF
36034
36035 fi
36036 done
36037
36038 fi
36039
36040
36041 for ac_func in round
36042 do
36043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36044 echo "$as_me:$LINENO: checking for $ac_func" >&5
36045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36046 if eval "test \"\${$as_ac_var+set}\" = set"; then
36047   echo $ECHO_N "(cached) $ECHO_C" >&6
36048 else
36049   cat >conftest.$ac_ext <<_ACEOF
36050 /* confdefs.h.  */
36051 _ACEOF
36052 cat confdefs.h >>conftest.$ac_ext
36053 cat >>conftest.$ac_ext <<_ACEOF
36054 /* end confdefs.h.  */
36055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36057 #define $ac_func innocuous_$ac_func
36058
36059 /* System header to define __stub macros and hopefully few prototypes,
36060     which can conflict with char $ac_func (); below.
36061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36062     <limits.h> exists even on freestanding compilers.  */
36063
36064 #ifdef __STDC__
36065 # include <limits.h>
36066 #else
36067 # include <assert.h>
36068 #endif
36069
36070 #undef $ac_func
36071
36072 /* Override any gcc2 internal prototype to avoid an error.  */
36073 #ifdef __cplusplus
36074 extern "C"
36075 {
36076 #endif
36077 /* We use char because int might match the return type of a gcc2
36078    builtin and then its argument prototype would still apply.  */
36079 char $ac_func ();
36080 /* The GNU C library defines this for functions which it implements
36081     to always fail with ENOSYS.  Some functions are actually named
36082     something starting with __ and the normal name is an alias.  */
36083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36084 choke me
36085 #else
36086 char (*f) () = $ac_func;
36087 #endif
36088 #ifdef __cplusplus
36089 }
36090 #endif
36091
36092 int
36093 main ()
36094 {
36095 return f != $ac_func;
36096   ;
36097   return 0;
36098 }
36099 _ACEOF
36100 rm -f conftest.$ac_objext conftest$ac_exeext
36101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36102   (eval $ac_link) 2>conftest.er1
36103   ac_status=$?
36104   grep -v '^ *+' conftest.er1 >conftest.err
36105   rm -f conftest.er1
36106   cat conftest.err >&5
36107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36108   (exit $ac_status); } &&
36109          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36111   (eval $ac_try) 2>&5
36112   ac_status=$?
36113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36114   (exit $ac_status); }; } &&
36115          { ac_try='test -s conftest$ac_exeext'
36116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36117   (eval $ac_try) 2>&5
36118   ac_status=$?
36119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36120   (exit $ac_status); }; }; then
36121   eval "$as_ac_var=yes"
36122 else
36123   echo "$as_me: failed program was:" >&5
36124 sed 's/^/| /' conftest.$ac_ext >&5
36125
36126 eval "$as_ac_var=no"
36127 fi
36128 rm -f conftest.err conftest.$ac_objext \
36129       conftest$ac_exeext conftest.$ac_ext
36130 fi
36131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36133 if test `eval echo '${'$as_ac_var'}'` = yes; then
36134   cat >>confdefs.h <<_ACEOF
36135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36136 _ACEOF
36137
36138 fi
36139 done
36140
36141 if test "$ac_cv_func_round" = yes; then
36142     echo "$as_me:$LINENO: checking whether round is declared" >&5
36143 echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
36144 if test "${ac_cv_have_decl_round+set}" = set; then
36145   echo $ECHO_N "(cached) $ECHO_C" >&6
36146 else
36147   cat >conftest.$ac_ext <<_ACEOF
36148 /* confdefs.h.  */
36149 _ACEOF
36150 cat confdefs.h >>conftest.$ac_ext
36151 cat >>conftest.$ac_ext <<_ACEOF
36152 /* end confdefs.h.  */
36153 #include <math.h>
36154
36155 int
36156 main ()
36157 {
36158 #ifndef round
36159   char *p = (char *) round;
36160 #endif
36161
36162   ;
36163   return 0;
36164 }
36165 _ACEOF
36166 rm -f conftest.$ac_objext
36167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36168   (eval $ac_compile) 2>conftest.er1
36169   ac_status=$?
36170   grep -v '^ *+' conftest.er1 >conftest.err
36171   rm -f conftest.er1
36172   cat conftest.err >&5
36173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36174   (exit $ac_status); } &&
36175          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36177   (eval $ac_try) 2>&5
36178   ac_status=$?
36179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180   (exit $ac_status); }; } &&
36181          { ac_try='test -s conftest.$ac_objext'
36182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36183   (eval $ac_try) 2>&5
36184   ac_status=$?
36185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186   (exit $ac_status); }; }; then
36187   ac_cv_have_decl_round=yes
36188 else
36189   echo "$as_me: failed program was:" >&5
36190 sed 's/^/| /' conftest.$ac_ext >&5
36191
36192 ac_cv_have_decl_round=no
36193 fi
36194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36195 fi
36196 echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
36197 echo "${ECHO_T}$ac_cv_have_decl_round" >&6
36198 if test $ac_cv_have_decl_round = yes; then
36199
36200 cat >>confdefs.h <<_ACEOF
36201 #define HAVE_DECL_ROUND 1
36202 _ACEOF
36203
36204
36205 else
36206   cat >>confdefs.h <<_ACEOF
36207 #define HAVE_DECL_ROUND 0
36208 _ACEOF
36209
36210
36211 fi
36212
36213
36214 fi
36215
36216
36217 if test "$TOOLKIT" != "MSW"; then
36218
36219
36220
36221
36222
36223 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36224 if test "${with_libiconv_prefix+set}" = set; then
36225   withval="$with_libiconv_prefix"
36226
36227     for dir in `echo "$withval" | tr : ' '`; do
36228       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36229       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36230     done
36231
36232 fi;
36233
36234   echo "$as_me:$LINENO: checking for iconv" >&5
36235 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36236 if test "${am_cv_func_iconv+set}" = set; then
36237   echo $ECHO_N "(cached) $ECHO_C" >&6
36238 else
36239
36240     am_cv_func_iconv="no, consider installing GNU libiconv"
36241     am_cv_lib_iconv=no
36242     cat >conftest.$ac_ext <<_ACEOF
36243 /* confdefs.h.  */
36244 _ACEOF
36245 cat confdefs.h >>conftest.$ac_ext
36246 cat >>conftest.$ac_ext <<_ACEOF
36247 /* end confdefs.h.  */
36248 #include <stdlib.h>
36249 #include <iconv.h>
36250 int
36251 main ()
36252 {
36253 iconv_t cd = iconv_open("","");
36254        iconv(cd,NULL,NULL,NULL,NULL);
36255        iconv_close(cd);
36256   ;
36257   return 0;
36258 }
36259 _ACEOF
36260 rm -f conftest.$ac_objext conftest$ac_exeext
36261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36262   (eval $ac_link) 2>conftest.er1
36263   ac_status=$?
36264   grep -v '^ *+' conftest.er1 >conftest.err
36265   rm -f conftest.er1
36266   cat conftest.err >&5
36267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36268   (exit $ac_status); } &&
36269          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36271   (eval $ac_try) 2>&5
36272   ac_status=$?
36273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36274   (exit $ac_status); }; } &&
36275          { ac_try='test -s conftest$ac_exeext'
36276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36277   (eval $ac_try) 2>&5
36278   ac_status=$?
36279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280   (exit $ac_status); }; }; then
36281   am_cv_func_iconv=yes
36282 else
36283   echo "$as_me: failed program was:" >&5
36284 sed 's/^/| /' conftest.$ac_ext >&5
36285
36286 fi
36287 rm -f conftest.err conftest.$ac_objext \
36288       conftest$ac_exeext conftest.$ac_ext
36289     if test "$am_cv_func_iconv" != yes; then
36290       am_save_LIBS="$LIBS"
36291       LIBS="$LIBS -liconv"
36292       cat >conftest.$ac_ext <<_ACEOF
36293 /* confdefs.h.  */
36294 _ACEOF
36295 cat confdefs.h >>conftest.$ac_ext
36296 cat >>conftest.$ac_ext <<_ACEOF
36297 /* end confdefs.h.  */
36298 #include <stdlib.h>
36299 #include <iconv.h>
36300 int
36301 main ()
36302 {
36303 iconv_t cd = iconv_open("","");
36304          iconv(cd,NULL,NULL,NULL,NULL);
36305          iconv_close(cd);
36306   ;
36307   return 0;
36308 }
36309 _ACEOF
36310 rm -f conftest.$ac_objext conftest$ac_exeext
36311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36312   (eval $ac_link) 2>conftest.er1
36313   ac_status=$?
36314   grep -v '^ *+' conftest.er1 >conftest.err
36315   rm -f conftest.er1
36316   cat conftest.err >&5
36317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318   (exit $ac_status); } &&
36319          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
36325          { ac_try='test -s conftest$ac_exeext'
36326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36327   (eval $ac_try) 2>&5
36328   ac_status=$?
36329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330   (exit $ac_status); }; }; then
36331   am_cv_lib_iconv=yes
36332         am_cv_func_iconv=yes
36333 else
36334   echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36336
36337 fi
36338 rm -f conftest.err conftest.$ac_objext \
36339       conftest$ac_exeext conftest.$ac_ext
36340       LIBS="$am_save_LIBS"
36341     fi
36342
36343 fi
36344 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36345 echo "${ECHO_T}$am_cv_func_iconv" >&6
36346   if test "$am_cv_func_iconv" = yes; then
36347
36348 cat >>confdefs.h <<\_ACEOF
36349 #define HAVE_ICONV 1
36350 _ACEOF
36351
36352     echo "$as_me:$LINENO: checking if iconv needs const" >&5
36353 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36354 if test "${wx_cv_func_iconv_const+set}" = set; then
36355   echo $ECHO_N "(cached) $ECHO_C" >&6
36356 else
36357   cat >conftest.$ac_ext <<_ACEOF
36358 /* confdefs.h.  */
36359 _ACEOF
36360 cat confdefs.h >>conftest.$ac_ext
36361 cat >>conftest.$ac_ext <<_ACEOF
36362 /* end confdefs.h.  */
36363
36364 #include <stdlib.h>
36365 #include <iconv.h>
36366 extern
36367 #ifdef __cplusplus
36368 "C"
36369 #endif
36370 #if defined(__STDC__) || defined(__cplusplus)
36371 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36372 #else
36373 size_t iconv();
36374 #endif
36375
36376 int
36377 main ()
36378 {
36379
36380   ;
36381   return 0;
36382 }
36383 _ACEOF
36384 rm -f conftest.$ac_objext
36385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36386   (eval $ac_compile) 2>conftest.er1
36387   ac_status=$?
36388   grep -v '^ *+' conftest.er1 >conftest.err
36389   rm -f conftest.er1
36390   cat conftest.err >&5
36391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392   (exit $ac_status); } &&
36393          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36395   (eval $ac_try) 2>&5
36396   ac_status=$?
36397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398   (exit $ac_status); }; } &&
36399          { ac_try='test -s conftest.$ac_objext'
36400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36401   (eval $ac_try) 2>&5
36402   ac_status=$?
36403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404   (exit $ac_status); }; }; then
36405   wx_cv_func_iconv_const="no"
36406 else
36407   echo "$as_me: failed program was:" >&5
36408 sed 's/^/| /' conftest.$ac_ext >&5
36409
36410 wx_cv_func_iconv_const="yes"
36411
36412 fi
36413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36414
36415 fi
36416 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36417 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36418
36419     iconv_const=
36420     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36421         iconv_const="const"
36422     fi
36423
36424
36425 cat >>confdefs.h <<_ACEOF
36426 #define ICONV_CONST $iconv_const
36427 _ACEOF
36428
36429   fi
36430   LIBICONV=
36431   if test "$am_cv_lib_iconv" = yes; then
36432     LIBICONV="-liconv"
36433   fi
36434
36435
36436 LIBS="$LIBICONV $LIBS"
36437
36438 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36439
36440 for ac_func in sigaction
36441 do
36442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36443 echo "$as_me:$LINENO: checking for $ac_func" >&5
36444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36445 if eval "test \"\${$as_ac_var+set}\" = set"; then
36446   echo $ECHO_N "(cached) $ECHO_C" >&6
36447 else
36448   cat >conftest.$ac_ext <<_ACEOF
36449 /* confdefs.h.  */
36450 _ACEOF
36451 cat confdefs.h >>conftest.$ac_ext
36452 cat >>conftest.$ac_ext <<_ACEOF
36453 /* end confdefs.h.  */
36454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36456 #define $ac_func innocuous_$ac_func
36457
36458 /* System header to define __stub macros and hopefully few prototypes,
36459     which can conflict with char $ac_func (); below.
36460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36461     <limits.h> exists even on freestanding compilers.  */
36462
36463 #ifdef __STDC__
36464 # include <limits.h>
36465 #else
36466 # include <assert.h>
36467 #endif
36468
36469 #undef $ac_func
36470
36471 /* Override any gcc2 internal prototype to avoid an error.  */
36472 #ifdef __cplusplus
36473 extern "C"
36474 {
36475 #endif
36476 /* We use char because int might match the return type of a gcc2
36477    builtin and then its argument prototype would still apply.  */
36478 char $ac_func ();
36479 /* The GNU C library defines this for functions which it implements
36480     to always fail with ENOSYS.  Some functions are actually named
36481     something starting with __ and the normal name is an alias.  */
36482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36483 choke me
36484 #else
36485 char (*f) () = $ac_func;
36486 #endif
36487 #ifdef __cplusplus
36488 }
36489 #endif
36490
36491 int
36492 main ()
36493 {
36494 return f != $ac_func;
36495   ;
36496   return 0;
36497 }
36498 _ACEOF
36499 rm -f conftest.$ac_objext conftest$ac_exeext
36500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36501   (eval $ac_link) 2>conftest.er1
36502   ac_status=$?
36503   grep -v '^ *+' conftest.er1 >conftest.err
36504   rm -f conftest.er1
36505   cat conftest.err >&5
36506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507   (exit $ac_status); } &&
36508          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36510   (eval $ac_try) 2>&5
36511   ac_status=$?
36512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513   (exit $ac_status); }; } &&
36514          { ac_try='test -s conftest$ac_exeext'
36515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36516   (eval $ac_try) 2>&5
36517   ac_status=$?
36518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519   (exit $ac_status); }; }; then
36520   eval "$as_ac_var=yes"
36521 else
36522   echo "$as_me: failed program was:" >&5
36523 sed 's/^/| /' conftest.$ac_ext >&5
36524
36525 eval "$as_ac_var=no"
36526 fi
36527 rm -f conftest.err conftest.$ac_objext \
36528       conftest$ac_exeext conftest.$ac_ext
36529 fi
36530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36532 if test `eval echo '${'$as_ac_var'}'` = yes; then
36533   cat >>confdefs.h <<_ACEOF
36534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36535 _ACEOF
36536
36537 fi
36538 done
36539
36540
36541     if test "$ac_cv_func_sigaction" = "no"; then
36542         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36543 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36544         wxUSE_ON_FATAL_EXCEPTION=no
36545     fi
36546
36547     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36548       echo "$as_me:$LINENO: checking for sa_handler type" >&5
36549 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36550 if test "${wx_cv_type_sa_handler+set}" = set; then
36551   echo $ECHO_N "(cached) $ECHO_C" >&6
36552 else
36553
36554         cat >conftest.$ac_ext <<_ACEOF
36555 /* confdefs.h.  */
36556 _ACEOF
36557 cat confdefs.h >>conftest.$ac_ext
36558 cat >>conftest.$ac_ext <<_ACEOF
36559 /* end confdefs.h.  */
36560 #include <signal.h>
36561 int
36562 main ()
36563 {
36564
36565                         extern void testSigHandler(int);
36566
36567                         struct sigaction sa;
36568                         sa.sa_handler = testSigHandler;
36569
36570   ;
36571   return 0;
36572 }
36573 _ACEOF
36574 rm -f conftest.$ac_objext
36575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36576   (eval $ac_compile) 2>conftest.er1
36577   ac_status=$?
36578   grep -v '^ *+' conftest.er1 >conftest.err
36579   rm -f conftest.er1
36580   cat conftest.err >&5
36581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582   (exit $ac_status); } &&
36583          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585   (eval $ac_try) 2>&5
36586   ac_status=$?
36587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588   (exit $ac_status); }; } &&
36589          { ac_try='test -s conftest.$ac_objext'
36590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591   (eval $ac_try) 2>&5
36592   ac_status=$?
36593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594   (exit $ac_status); }; }; then
36595
36596                         wx_cv_type_sa_handler=int
36597
36598 else
36599   echo "$as_me: failed program was:" >&5
36600 sed 's/^/| /' conftest.$ac_ext >&5
36601
36602
36603                         wx_cv_type_sa_handler=void
36604
36605 fi
36606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36607
36608 fi
36609 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36610 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36611
36612       cat >>confdefs.h <<_ACEOF
36613 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36614 _ACEOF
36615
36616     fi
36617 fi
36618
36619 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36620     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36621 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36622 if test "${wx_cv_func_backtrace+set}" = set; then
36623   echo $ECHO_N "(cached) $ECHO_C" >&6
36624 else
36625
36626             cat >conftest.$ac_ext <<_ACEOF
36627 /* confdefs.h.  */
36628 _ACEOF
36629 cat confdefs.h >>conftest.$ac_ext
36630 cat >>conftest.$ac_ext <<_ACEOF
36631 /* end confdefs.h.  */
36632 #include <execinfo.h>
36633 int
36634 main ()
36635 {
36636
36637                     void *trace[1];
36638                     char **messages;
36639
36640                     backtrace(trace, 1);
36641                     messages = backtrace_symbols(trace, 1);
36642
36643   ;
36644   return 0;
36645 }
36646 _ACEOF
36647 rm -f conftest.$ac_objext
36648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36649   (eval $ac_compile) 2>conftest.er1
36650   ac_status=$?
36651   grep -v '^ *+' conftest.er1 >conftest.err
36652   rm -f conftest.er1
36653   cat conftest.err >&5
36654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36655   (exit $ac_status); } &&
36656          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
36662          { ac_try='test -s conftest.$ac_objext'
36663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664   (eval $ac_try) 2>&5
36665   ac_status=$?
36666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667   (exit $ac_status); }; }; then
36668   wx_cv_func_backtrace=yes
36669 else
36670   echo "$as_me: failed program was:" >&5
36671 sed 's/^/| /' conftest.$ac_ext >&5
36672
36673 wx_cv_func_backtrace=no
36674
36675 fi
36676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36677
36678
36679 fi
36680 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36681 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36682
36683
36684     if test "$wx_cv_func_backtrace" = "no"; then
36685         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36686 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36687         wxUSE_STACKWALKER=no
36688     else
36689         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36690 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36691 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36692   echo $ECHO_N "(cached) $ECHO_C" >&6
36693 else
36694
36695                 cat >conftest.$ac_ext <<_ACEOF
36696 /* confdefs.h.  */
36697 _ACEOF
36698 cat confdefs.h >>conftest.$ac_ext
36699 cat >>conftest.$ac_ext <<_ACEOF
36700 /* end confdefs.h.  */
36701 #include <cxxabi.h>
36702 int
36703 main ()
36704 {
36705
36706                         int rc;
36707                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36708
36709   ;
36710   return 0;
36711 }
36712 _ACEOF
36713 rm -f conftest.$ac_objext conftest$ac_exeext
36714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36715   (eval $ac_link) 2>conftest.er1
36716   ac_status=$?
36717   grep -v '^ *+' conftest.er1 >conftest.err
36718   rm -f conftest.er1
36719   cat conftest.err >&5
36720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721   (exit $ac_status); } &&
36722          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36724   (eval $ac_try) 2>&5
36725   ac_status=$?
36726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727   (exit $ac_status); }; } &&
36728          { ac_try='test -s conftest$ac_exeext'
36729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36730   (eval $ac_try) 2>&5
36731   ac_status=$?
36732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733   (exit $ac_status); }; }; then
36734   wx_cv_func_cxa_demangle=yes
36735 else
36736   echo "$as_me: failed program was:" >&5
36737 sed 's/^/| /' conftest.$ac_ext >&5
36738
36739 wx_cv_func_cxa_demangle=no
36740
36741 fi
36742 rm -f conftest.err conftest.$ac_objext \
36743       conftest$ac_exeext conftest.$ac_ext
36744
36745
36746 fi
36747 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36748 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36749
36750         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36751             cat >>confdefs.h <<\_ACEOF
36752 #define HAVE_CXA_DEMANGLE 1
36753 _ACEOF
36754
36755         fi
36756     fi
36757 fi
36758
36759 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36760     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36761 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36762     wxUSE_STACKWALKER=no
36763 fi
36764
36765
36766
36767
36768 for ac_func in mkstemp mktemp
36769 do
36770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36771 echo "$as_me:$LINENO: checking for $ac_func" >&5
36772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36773 if eval "test \"\${$as_ac_var+set}\" = set"; then
36774   echo $ECHO_N "(cached) $ECHO_C" >&6
36775 else
36776   cat >conftest.$ac_ext <<_ACEOF
36777 /* confdefs.h.  */
36778 _ACEOF
36779 cat confdefs.h >>conftest.$ac_ext
36780 cat >>conftest.$ac_ext <<_ACEOF
36781 /* end confdefs.h.  */
36782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36784 #define $ac_func innocuous_$ac_func
36785
36786 /* System header to define __stub macros and hopefully few prototypes,
36787     which can conflict with char $ac_func (); below.
36788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36789     <limits.h> exists even on freestanding compilers.  */
36790
36791 #ifdef __STDC__
36792 # include <limits.h>
36793 #else
36794 # include <assert.h>
36795 #endif
36796
36797 #undef $ac_func
36798
36799 /* Override any gcc2 internal prototype to avoid an error.  */
36800 #ifdef __cplusplus
36801 extern "C"
36802 {
36803 #endif
36804 /* We use char because int might match the return type of a gcc2
36805    builtin and then its argument prototype would still apply.  */
36806 char $ac_func ();
36807 /* The GNU C library defines this for functions which it implements
36808     to always fail with ENOSYS.  Some functions are actually named
36809     something starting with __ and the normal name is an alias.  */
36810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36811 choke me
36812 #else
36813 char (*f) () = $ac_func;
36814 #endif
36815 #ifdef __cplusplus
36816 }
36817 #endif
36818
36819 int
36820 main ()
36821 {
36822 return f != $ac_func;
36823   ;
36824   return 0;
36825 }
36826 _ACEOF
36827 rm -f conftest.$ac_objext conftest$ac_exeext
36828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36829   (eval $ac_link) 2>conftest.er1
36830   ac_status=$?
36831   grep -v '^ *+' conftest.er1 >conftest.err
36832   rm -f conftest.er1
36833   cat conftest.err >&5
36834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835   (exit $ac_status); } &&
36836          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36838   (eval $ac_try) 2>&5
36839   ac_status=$?
36840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841   (exit $ac_status); }; } &&
36842          { ac_try='test -s conftest$ac_exeext'
36843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36844   (eval $ac_try) 2>&5
36845   ac_status=$?
36846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36847   (exit $ac_status); }; }; then
36848   eval "$as_ac_var=yes"
36849 else
36850   echo "$as_me: failed program was:" >&5
36851 sed 's/^/| /' conftest.$ac_ext >&5
36852
36853 eval "$as_ac_var=no"
36854 fi
36855 rm -f conftest.err conftest.$ac_objext \
36856       conftest$ac_exeext conftest.$ac_ext
36857 fi
36858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36860 if test `eval echo '${'$as_ac_var'}'` = yes; then
36861   cat >>confdefs.h <<_ACEOF
36862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36863 _ACEOF
36864  break
36865 fi
36866 done
36867
36868
36869 echo "$as_me:$LINENO: checking for statfs" >&5
36870 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36871 if test "${wx_cv_func_statfs+set}" = set; then
36872   echo $ECHO_N "(cached) $ECHO_C" >&6
36873 else
36874   cat >conftest.$ac_ext <<_ACEOF
36875 /* confdefs.h.  */
36876 _ACEOF
36877 cat confdefs.h >>conftest.$ac_ext
36878 cat >>conftest.$ac_ext <<_ACEOF
36879 /* end confdefs.h.  */
36880
36881              #if defined(__BSD__)
36882              #include <sys/param.h>
36883              #include <sys/mount.h>
36884              #else
36885              #include <sys/vfs.h>
36886              #endif
36887
36888 int
36889 main ()
36890 {
36891
36892              long l;
36893              struct statfs fs;
36894              statfs("/", &fs);
36895              l = fs.f_bsize;
36896              l += fs.f_blocks;
36897              l += fs.f_bavail;
36898
36899   ;
36900   return 0;
36901 }
36902 _ACEOF
36903 rm -f conftest.$ac_objext
36904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36905   (eval $ac_compile) 2>conftest.er1
36906   ac_status=$?
36907   grep -v '^ *+' conftest.er1 >conftest.err
36908   rm -f conftest.er1
36909   cat conftest.err >&5
36910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36911   (exit $ac_status); } &&
36912          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36914   (eval $ac_try) 2>&5
36915   ac_status=$?
36916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36917   (exit $ac_status); }; } &&
36918          { ac_try='test -s conftest.$ac_objext'
36919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36920   (eval $ac_try) 2>&5
36921   ac_status=$?
36922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923   (exit $ac_status); }; }; then
36924   wx_cv_func_statfs=yes
36925 else
36926   echo "$as_me: failed program was:" >&5
36927 sed 's/^/| /' conftest.$ac_ext >&5
36928
36929 wx_cv_func_statfs=no
36930
36931 fi
36932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36933
36934 fi
36935 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36936 echo "${ECHO_T}$wx_cv_func_statfs" >&6
36937
36938 if test "$wx_cv_func_statfs" = "yes"; then
36939         echo "$as_me:$LINENO: checking for statfs declaration" >&5
36940 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36941 if test "${wx_cv_func_statfs_decl+set}" = set; then
36942   echo $ECHO_N "(cached) $ECHO_C" >&6
36943 else
36944   cat >conftest.$ac_ext <<_ACEOF
36945 /* confdefs.h.  */
36946 _ACEOF
36947 cat confdefs.h >>conftest.$ac_ext
36948 cat >>conftest.$ac_ext <<_ACEOF
36949 /* end confdefs.h.  */
36950
36951                  #if defined(__BSD__)
36952                  #include <sys/param.h>
36953                  #include <sys/mount.h>
36954                  #else
36955                  #include <sys/vfs.h>
36956                  #endif
36957
36958 int
36959 main ()
36960 {
36961
36962                 struct statfs fs;
36963                 statfs("", &fs);
36964
36965   ;
36966   return 0;
36967 }
36968 _ACEOF
36969 rm -f conftest.$ac_objext
36970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36971   (eval $ac_compile) 2>conftest.er1
36972   ac_status=$?
36973   grep -v '^ *+' conftest.er1 >conftest.err
36974   rm -f conftest.er1
36975   cat conftest.err >&5
36976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977   (exit $ac_status); } &&
36978          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36980   (eval $ac_try) 2>&5
36981   ac_status=$?
36982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983   (exit $ac_status); }; } &&
36984          { ac_try='test -s conftest.$ac_objext'
36985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36986   (eval $ac_try) 2>&5
36987   ac_status=$?
36988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989   (exit $ac_status); }; }; then
36990   wx_cv_func_statfs_decl=yes
36991 else
36992   echo "$as_me: failed program was:" >&5
36993 sed 's/^/| /' conftest.$ac_ext >&5
36994
36995 wx_cv_func_statfs_decl=no
36996
36997 fi
36998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36999
37000 fi
37001 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37002 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
37003
37004     if test "$wx_cv_func_statfs_decl" = "yes"; then
37005         cat >>confdefs.h <<\_ACEOF
37006 #define HAVE_STATFS_DECL 1
37007 _ACEOF
37008
37009     fi
37010
37011     wx_cv_type_statvfs_t="struct statfs"
37012     cat >>confdefs.h <<\_ACEOF
37013 #define HAVE_STATFS 1
37014 _ACEOF
37015
37016 else
37017     echo "$as_me:$LINENO: checking for statvfs" >&5
37018 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37019 if test "${wx_cv_func_statvfs+set}" = set; then
37020   echo $ECHO_N "(cached) $ECHO_C" >&6
37021 else
37022   cat >conftest.$ac_ext <<_ACEOF
37023 /* confdefs.h.  */
37024 _ACEOF
37025 cat confdefs.h >>conftest.$ac_ext
37026 cat >>conftest.$ac_ext <<_ACEOF
37027 /* end confdefs.h.  */
37028
37029                 #include <stddef.h>
37030                 #include <sys/statvfs.h>
37031
37032 int
37033 main ()
37034 {
37035
37036                 statvfs("/", NULL);
37037
37038   ;
37039   return 0;
37040 }
37041 _ACEOF
37042 rm -f conftest.$ac_objext
37043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37044   (eval $ac_compile) 2>conftest.er1
37045   ac_status=$?
37046   grep -v '^ *+' conftest.er1 >conftest.err
37047   rm -f conftest.er1
37048   cat conftest.err >&5
37049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37050   (exit $ac_status); } &&
37051          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37053   (eval $ac_try) 2>&5
37054   ac_status=$?
37055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056   (exit $ac_status); }; } &&
37057          { ac_try='test -s conftest.$ac_objext'
37058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37059   (eval $ac_try) 2>&5
37060   ac_status=$?
37061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062   (exit $ac_status); }; }; then
37063   wx_cv_func_statvfs=yes
37064 else
37065   echo "$as_me: failed program was:" >&5
37066 sed 's/^/| /' conftest.$ac_ext >&5
37067
37068 wx_cv_func_statvfs=no
37069
37070 fi
37071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37072
37073 fi
37074 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37075 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37076
37077     if test "$wx_cv_func_statvfs" = "yes"; then
37078                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37079 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37080 if test "${wx_cv_type_statvfs_t+set}" = set; then
37081   echo $ECHO_N "(cached) $ECHO_C" >&6
37082 else
37083   cat >conftest.$ac_ext <<_ACEOF
37084 /* confdefs.h.  */
37085 _ACEOF
37086 cat confdefs.h >>conftest.$ac_ext
37087 cat >>conftest.$ac_ext <<_ACEOF
37088 /* end confdefs.h.  */
37089
37090                     #include <sys/statvfs.h>
37091
37092 int
37093 main ()
37094 {
37095
37096                     long l;
37097                     statvfs_t fs;
37098                     statvfs("/", &fs);
37099                     l = fs.f_bsize;
37100                     l += fs.f_blocks;
37101                     l += fs.f_bavail;
37102
37103   ;
37104   return 0;
37105 }
37106 _ACEOF
37107 rm -f conftest.$ac_objext
37108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37109   (eval $ac_compile) 2>conftest.er1
37110   ac_status=$?
37111   grep -v '^ *+' conftest.er1 >conftest.err
37112   rm -f conftest.er1
37113   cat conftest.err >&5
37114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115   (exit $ac_status); } &&
37116          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37118   (eval $ac_try) 2>&5
37119   ac_status=$?
37120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37121   (exit $ac_status); }; } &&
37122          { ac_try='test -s conftest.$ac_objext'
37123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37124   (eval $ac_try) 2>&5
37125   ac_status=$?
37126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127   (exit $ac_status); }; }; then
37128   wx_cv_type_statvfs_t=statvfs_t
37129 else
37130   echo "$as_me: failed program was:" >&5
37131 sed 's/^/| /' conftest.$ac_ext >&5
37132
37133
37134                     cat >conftest.$ac_ext <<_ACEOF
37135 /* confdefs.h.  */
37136 _ACEOF
37137 cat confdefs.h >>conftest.$ac_ext
37138 cat >>conftest.$ac_ext <<_ACEOF
37139 /* end confdefs.h.  */
37140
37141                             #include <sys/statvfs.h>
37142
37143 int
37144 main ()
37145 {
37146
37147                             long l;
37148                             struct statvfs fs;
37149                             statvfs("/", &fs);
37150                             l = fs.f_bsize;
37151                             l += fs.f_blocks;
37152                             l += fs.f_bavail;
37153
37154   ;
37155   return 0;
37156 }
37157 _ACEOF
37158 rm -f conftest.$ac_objext
37159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37160   (eval $ac_compile) 2>conftest.er1
37161   ac_status=$?
37162   grep -v '^ *+' conftest.er1 >conftest.err
37163   rm -f conftest.er1
37164   cat conftest.err >&5
37165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166   (exit $ac_status); } &&
37167          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37169   (eval $ac_try) 2>&5
37170   ac_status=$?
37171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37172   (exit $ac_status); }; } &&
37173          { ac_try='test -s conftest.$ac_objext'
37174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37175   (eval $ac_try) 2>&5
37176   ac_status=$?
37177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37178   (exit $ac_status); }; }; then
37179   wx_cv_type_statvfs_t="struct statvfs"
37180 else
37181   echo "$as_me: failed program was:" >&5
37182 sed 's/^/| /' conftest.$ac_ext >&5
37183
37184 wx_cv_type_statvfs_t="unknown"
37185
37186 fi
37187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37188
37189
37190 fi
37191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37192
37193 fi
37194 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37195 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37196
37197         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37198             cat >>confdefs.h <<\_ACEOF
37199 #define HAVE_STATVFS 1
37200 _ACEOF
37201
37202         fi
37203     else
37204                 wx_cv_type_statvfs_t="unknown"
37205     fi
37206 fi
37207
37208 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37209     cat >>confdefs.h <<_ACEOF
37210 #define WX_STATFS_T $wx_cv_type_statvfs_t
37211 _ACEOF
37212
37213 else
37214     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37215 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37216 fi
37217
37218 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37219
37220
37221 for ac_func in fcntl flock
37222 do
37223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37224 echo "$as_me:$LINENO: checking for $ac_func" >&5
37225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37226 if eval "test \"\${$as_ac_var+set}\" = set"; then
37227   echo $ECHO_N "(cached) $ECHO_C" >&6
37228 else
37229   cat >conftest.$ac_ext <<_ACEOF
37230 /* confdefs.h.  */
37231 _ACEOF
37232 cat confdefs.h >>conftest.$ac_ext
37233 cat >>conftest.$ac_ext <<_ACEOF
37234 /* end confdefs.h.  */
37235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37237 #define $ac_func innocuous_$ac_func
37238
37239 /* System header to define __stub macros and hopefully few prototypes,
37240     which can conflict with char $ac_func (); below.
37241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37242     <limits.h> exists even on freestanding compilers.  */
37243
37244 #ifdef __STDC__
37245 # include <limits.h>
37246 #else
37247 # include <assert.h>
37248 #endif
37249
37250 #undef $ac_func
37251
37252 /* Override any gcc2 internal prototype to avoid an error.  */
37253 #ifdef __cplusplus
37254 extern "C"
37255 {
37256 #endif
37257 /* We use char because int might match the return type of a gcc2
37258    builtin and then its argument prototype would still apply.  */
37259 char $ac_func ();
37260 /* The GNU C library defines this for functions which it implements
37261     to always fail with ENOSYS.  Some functions are actually named
37262     something starting with __ and the normal name is an alias.  */
37263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37264 choke me
37265 #else
37266 char (*f) () = $ac_func;
37267 #endif
37268 #ifdef __cplusplus
37269 }
37270 #endif
37271
37272 int
37273 main ()
37274 {
37275 return f != $ac_func;
37276   ;
37277   return 0;
37278 }
37279 _ACEOF
37280 rm -f conftest.$ac_objext conftest$ac_exeext
37281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37282   (eval $ac_link) 2>conftest.er1
37283   ac_status=$?
37284   grep -v '^ *+' conftest.er1 >conftest.err
37285   rm -f conftest.er1
37286   cat conftest.err >&5
37287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288   (exit $ac_status); } &&
37289          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37291   (eval $ac_try) 2>&5
37292   ac_status=$?
37293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294   (exit $ac_status); }; } &&
37295          { ac_try='test -s conftest$ac_exeext'
37296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37297   (eval $ac_try) 2>&5
37298   ac_status=$?
37299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300   (exit $ac_status); }; }; then
37301   eval "$as_ac_var=yes"
37302 else
37303   echo "$as_me: failed program was:" >&5
37304 sed 's/^/| /' conftest.$ac_ext >&5
37305
37306 eval "$as_ac_var=no"
37307 fi
37308 rm -f conftest.err conftest.$ac_objext \
37309       conftest$ac_exeext conftest.$ac_ext
37310 fi
37311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37313 if test `eval echo '${'$as_ac_var'}'` = yes; then
37314   cat >>confdefs.h <<_ACEOF
37315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37316 _ACEOF
37317  break
37318 fi
37319 done
37320
37321
37322     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37323         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37324 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37325         wxUSE_SNGLINST_CHECKER=no
37326     fi
37327 fi
37328
37329
37330 for ac_func in timegm
37331 do
37332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37333 echo "$as_me:$LINENO: checking for $ac_func" >&5
37334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37335 if eval "test \"\${$as_ac_var+set}\" = set"; then
37336   echo $ECHO_N "(cached) $ECHO_C" >&6
37337 else
37338   cat >conftest.$ac_ext <<_ACEOF
37339 /* confdefs.h.  */
37340 _ACEOF
37341 cat confdefs.h >>conftest.$ac_ext
37342 cat >>conftest.$ac_ext <<_ACEOF
37343 /* end confdefs.h.  */
37344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37346 #define $ac_func innocuous_$ac_func
37347
37348 /* System header to define __stub macros and hopefully few prototypes,
37349     which can conflict with char $ac_func (); below.
37350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37351     <limits.h> exists even on freestanding compilers.  */
37352
37353 #ifdef __STDC__
37354 # include <limits.h>
37355 #else
37356 # include <assert.h>
37357 #endif
37358
37359 #undef $ac_func
37360
37361 /* Override any gcc2 internal prototype to avoid an error.  */
37362 #ifdef __cplusplus
37363 extern "C"
37364 {
37365 #endif
37366 /* We use char because int might match the return type of a gcc2
37367    builtin and then its argument prototype would still apply.  */
37368 char $ac_func ();
37369 /* The GNU C library defines this for functions which it implements
37370     to always fail with ENOSYS.  Some functions are actually named
37371     something starting with __ and the normal name is an alias.  */
37372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37373 choke me
37374 #else
37375 char (*f) () = $ac_func;
37376 #endif
37377 #ifdef __cplusplus
37378 }
37379 #endif
37380
37381 int
37382 main ()
37383 {
37384 return f != $ac_func;
37385   ;
37386   return 0;
37387 }
37388 _ACEOF
37389 rm -f conftest.$ac_objext conftest$ac_exeext
37390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37391   (eval $ac_link) 2>conftest.er1
37392   ac_status=$?
37393   grep -v '^ *+' conftest.er1 >conftest.err
37394   rm -f conftest.er1
37395   cat conftest.err >&5
37396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37397   (exit $ac_status); } &&
37398          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37400   (eval $ac_try) 2>&5
37401   ac_status=$?
37402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403   (exit $ac_status); }; } &&
37404          { ac_try='test -s conftest$ac_exeext'
37405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37406   (eval $ac_try) 2>&5
37407   ac_status=$?
37408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37409   (exit $ac_status); }; }; then
37410   eval "$as_ac_var=yes"
37411 else
37412   echo "$as_me: failed program was:" >&5
37413 sed 's/^/| /' conftest.$ac_ext >&5
37414
37415 eval "$as_ac_var=no"
37416 fi
37417 rm -f conftest.err conftest.$ac_objext \
37418       conftest$ac_exeext conftest.$ac_ext
37419 fi
37420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37422 if test `eval echo '${'$as_ac_var'}'` = yes; then
37423   cat >>confdefs.h <<_ACEOF
37424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37425 _ACEOF
37426
37427 fi
37428 done
37429
37430
37431
37432
37433 for ac_func in putenv setenv
37434 do
37435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37436 echo "$as_me:$LINENO: checking for $ac_func" >&5
37437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37438 if eval "test \"\${$as_ac_var+set}\" = set"; then
37439   echo $ECHO_N "(cached) $ECHO_C" >&6
37440 else
37441   cat >conftest.$ac_ext <<_ACEOF
37442 /* confdefs.h.  */
37443 _ACEOF
37444 cat confdefs.h >>conftest.$ac_ext
37445 cat >>conftest.$ac_ext <<_ACEOF
37446 /* end confdefs.h.  */
37447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37449 #define $ac_func innocuous_$ac_func
37450
37451 /* System header to define __stub macros and hopefully few prototypes,
37452     which can conflict with char $ac_func (); below.
37453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37454     <limits.h> exists even on freestanding compilers.  */
37455
37456 #ifdef __STDC__
37457 # include <limits.h>
37458 #else
37459 # include <assert.h>
37460 #endif
37461
37462 #undef $ac_func
37463
37464 /* Override any gcc2 internal prototype to avoid an error.  */
37465 #ifdef __cplusplus
37466 extern "C"
37467 {
37468 #endif
37469 /* We use char because int might match the return type of a gcc2
37470    builtin and then its argument prototype would still apply.  */
37471 char $ac_func ();
37472 /* The GNU C library defines this for functions which it implements
37473     to always fail with ENOSYS.  Some functions are actually named
37474     something starting with __ and the normal name is an alias.  */
37475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37476 choke me
37477 #else
37478 char (*f) () = $ac_func;
37479 #endif
37480 #ifdef __cplusplus
37481 }
37482 #endif
37483
37484 int
37485 main ()
37486 {
37487 return f != $ac_func;
37488   ;
37489   return 0;
37490 }
37491 _ACEOF
37492 rm -f conftest.$ac_objext conftest$ac_exeext
37493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37494   (eval $ac_link) 2>conftest.er1
37495   ac_status=$?
37496   grep -v '^ *+' conftest.er1 >conftest.err
37497   rm -f conftest.er1
37498   cat conftest.err >&5
37499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37500   (exit $ac_status); } &&
37501          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37503   (eval $ac_try) 2>&5
37504   ac_status=$?
37505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506   (exit $ac_status); }; } &&
37507          { ac_try='test -s conftest$ac_exeext'
37508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37509   (eval $ac_try) 2>&5
37510   ac_status=$?
37511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512   (exit $ac_status); }; }; then
37513   eval "$as_ac_var=yes"
37514 else
37515   echo "$as_me: failed program was:" >&5
37516 sed 's/^/| /' conftest.$ac_ext >&5
37517
37518 eval "$as_ac_var=no"
37519 fi
37520 rm -f conftest.err conftest.$ac_objext \
37521       conftest$ac_exeext conftest.$ac_ext
37522 fi
37523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37525 if test `eval echo '${'$as_ac_var'}'` = yes; then
37526   cat >>confdefs.h <<_ACEOF
37527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37528 _ACEOF
37529  break
37530 fi
37531 done
37532
37533
37534 HAVE_SOME_SLEEP_FUNC=0
37535 if test "$USE_BEOS" = 1; then
37536             cat >>confdefs.h <<\_ACEOF
37537 #define HAVE_SLEEP 1
37538 _ACEOF
37539
37540     HAVE_SOME_SLEEP_FUNC=1
37541 fi
37542
37543 if test "$USE_DARWIN" = 1; then
37544             cat >>confdefs.h <<\_ACEOF
37545 #define HAVE_USLEEP 1
37546 _ACEOF
37547
37548     HAVE_SOME_SLEEP_FUNC=1
37549 fi
37550
37551 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37552         POSIX4_LINK=
37553
37554 for ac_func in nanosleep
37555 do
37556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37557 echo "$as_me:$LINENO: checking for $ac_func" >&5
37558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37559 if eval "test \"\${$as_ac_var+set}\" = set"; then
37560   echo $ECHO_N "(cached) $ECHO_C" >&6
37561 else
37562   cat >conftest.$ac_ext <<_ACEOF
37563 /* confdefs.h.  */
37564 _ACEOF
37565 cat confdefs.h >>conftest.$ac_ext
37566 cat >>conftest.$ac_ext <<_ACEOF
37567 /* end confdefs.h.  */
37568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37570 #define $ac_func innocuous_$ac_func
37571
37572 /* System header to define __stub macros and hopefully few prototypes,
37573     which can conflict with char $ac_func (); below.
37574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37575     <limits.h> exists even on freestanding compilers.  */
37576
37577 #ifdef __STDC__
37578 # include <limits.h>
37579 #else
37580 # include <assert.h>
37581 #endif
37582
37583 #undef $ac_func
37584
37585 /* Override any gcc2 internal prototype to avoid an error.  */
37586 #ifdef __cplusplus
37587 extern "C"
37588 {
37589 #endif
37590 /* We use char because int might match the return type of a gcc2
37591    builtin and then its argument prototype would still apply.  */
37592 char $ac_func ();
37593 /* The GNU C library defines this for functions which it implements
37594     to always fail with ENOSYS.  Some functions are actually named
37595     something starting with __ and the normal name is an alias.  */
37596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37597 choke me
37598 #else
37599 char (*f) () = $ac_func;
37600 #endif
37601 #ifdef __cplusplus
37602 }
37603 #endif
37604
37605 int
37606 main ()
37607 {
37608 return f != $ac_func;
37609   ;
37610   return 0;
37611 }
37612 _ACEOF
37613 rm -f conftest.$ac_objext conftest$ac_exeext
37614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37615   (eval $ac_link) 2>conftest.er1
37616   ac_status=$?
37617   grep -v '^ *+' conftest.er1 >conftest.err
37618   rm -f conftest.er1
37619   cat conftest.err >&5
37620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621   (exit $ac_status); } &&
37622          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37624   (eval $ac_try) 2>&5
37625   ac_status=$?
37626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627   (exit $ac_status); }; } &&
37628          { ac_try='test -s conftest$ac_exeext'
37629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37630   (eval $ac_try) 2>&5
37631   ac_status=$?
37632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37633   (exit $ac_status); }; }; then
37634   eval "$as_ac_var=yes"
37635 else
37636   echo "$as_me: failed program was:" >&5
37637 sed 's/^/| /' conftest.$ac_ext >&5
37638
37639 eval "$as_ac_var=no"
37640 fi
37641 rm -f conftest.err conftest.$ac_objext \
37642       conftest$ac_exeext conftest.$ac_ext
37643 fi
37644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37646 if test `eval echo '${'$as_ac_var'}'` = yes; then
37647   cat >>confdefs.h <<_ACEOF
37648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37649 _ACEOF
37650  cat >>confdefs.h <<\_ACEOF
37651 #define HAVE_NANOSLEEP 1
37652 _ACEOF
37653
37654 else
37655
37656             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37657 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37658 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37659   echo $ECHO_N "(cached) $ECHO_C" >&6
37660 else
37661   ac_check_lib_save_LIBS=$LIBS
37662 LIBS="-lposix4  $LIBS"
37663 cat >conftest.$ac_ext <<_ACEOF
37664 /* confdefs.h.  */
37665 _ACEOF
37666 cat confdefs.h >>conftest.$ac_ext
37667 cat >>conftest.$ac_ext <<_ACEOF
37668 /* end confdefs.h.  */
37669
37670 /* Override any gcc2 internal prototype to avoid an error.  */
37671 #ifdef __cplusplus
37672 extern "C"
37673 #endif
37674 /* We use char because int might match the return type of a gcc2
37675    builtin and then its argument prototype would still apply.  */
37676 char nanosleep ();
37677 int
37678 main ()
37679 {
37680 nanosleep ();
37681   ;
37682   return 0;
37683 }
37684 _ACEOF
37685 rm -f conftest.$ac_objext conftest$ac_exeext
37686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37687   (eval $ac_link) 2>conftest.er1
37688   ac_status=$?
37689   grep -v '^ *+' conftest.er1 >conftest.err
37690   rm -f conftest.er1
37691   cat conftest.err >&5
37692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693   (exit $ac_status); } &&
37694          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37696   (eval $ac_try) 2>&5
37697   ac_status=$?
37698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37699   (exit $ac_status); }; } &&
37700          { ac_try='test -s conftest$ac_exeext'
37701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37702   (eval $ac_try) 2>&5
37703   ac_status=$?
37704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37705   (exit $ac_status); }; }; then
37706   ac_cv_lib_posix4_nanosleep=yes
37707 else
37708   echo "$as_me: failed program was:" >&5
37709 sed 's/^/| /' conftest.$ac_ext >&5
37710
37711 ac_cv_lib_posix4_nanosleep=no
37712 fi
37713 rm -f conftest.err conftest.$ac_objext \
37714       conftest$ac_exeext conftest.$ac_ext
37715 LIBS=$ac_check_lib_save_LIBS
37716 fi
37717 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37718 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37719 if test $ac_cv_lib_posix4_nanosleep = yes; then
37720
37721                     cat >>confdefs.h <<\_ACEOF
37722 #define HAVE_NANOSLEEP 1
37723 _ACEOF
37724
37725                     POSIX4_LINK=" -lposix4"
37726
37727 else
37728
37729
37730 for ac_func in usleep
37731 do
37732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37733 echo "$as_me:$LINENO: checking for $ac_func" >&5
37734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37735 if eval "test \"\${$as_ac_var+set}\" = set"; then
37736   echo $ECHO_N "(cached) $ECHO_C" >&6
37737 else
37738   cat >conftest.$ac_ext <<_ACEOF
37739 /* confdefs.h.  */
37740 _ACEOF
37741 cat confdefs.h >>conftest.$ac_ext
37742 cat >>conftest.$ac_ext <<_ACEOF
37743 /* end confdefs.h.  */
37744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37746 #define $ac_func innocuous_$ac_func
37747
37748 /* System header to define __stub macros and hopefully few prototypes,
37749     which can conflict with char $ac_func (); below.
37750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37751     <limits.h> exists even on freestanding compilers.  */
37752
37753 #ifdef __STDC__
37754 # include <limits.h>
37755 #else
37756 # include <assert.h>
37757 #endif
37758
37759 #undef $ac_func
37760
37761 /* Override any gcc2 internal prototype to avoid an error.  */
37762 #ifdef __cplusplus
37763 extern "C"
37764 {
37765 #endif
37766 /* We use char because int might match the return type of a gcc2
37767    builtin and then its argument prototype would still apply.  */
37768 char $ac_func ();
37769 /* The GNU C library defines this for functions which it implements
37770     to always fail with ENOSYS.  Some functions are actually named
37771     something starting with __ and the normal name is an alias.  */
37772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37773 choke me
37774 #else
37775 char (*f) () = $ac_func;
37776 #endif
37777 #ifdef __cplusplus
37778 }
37779 #endif
37780
37781 int
37782 main ()
37783 {
37784 return f != $ac_func;
37785   ;
37786   return 0;
37787 }
37788 _ACEOF
37789 rm -f conftest.$ac_objext conftest$ac_exeext
37790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37791   (eval $ac_link) 2>conftest.er1
37792   ac_status=$?
37793   grep -v '^ *+' conftest.er1 >conftest.err
37794   rm -f conftest.er1
37795   cat conftest.err >&5
37796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797   (exit $ac_status); } &&
37798          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37800   (eval $ac_try) 2>&5
37801   ac_status=$?
37802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803   (exit $ac_status); }; } &&
37804          { ac_try='test -s conftest$ac_exeext'
37805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37806   (eval $ac_try) 2>&5
37807   ac_status=$?
37808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809   (exit $ac_status); }; }; then
37810   eval "$as_ac_var=yes"
37811 else
37812   echo "$as_me: failed program was:" >&5
37813 sed 's/^/| /' conftest.$ac_ext >&5
37814
37815 eval "$as_ac_var=no"
37816 fi
37817 rm -f conftest.err conftest.$ac_objext \
37818       conftest$ac_exeext conftest.$ac_ext
37819 fi
37820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37822 if test `eval echo '${'$as_ac_var'}'` = yes; then
37823   cat >>confdefs.h <<_ACEOF
37824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37825 _ACEOF
37826  cat >>confdefs.h <<\_ACEOF
37827 #define HAVE_USLEEP 1
37828 _ACEOF
37829
37830 else
37831   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37832 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37833
37834 fi
37835 done
37836
37837
37838
37839 fi
37840
37841
37842
37843 fi
37844 done
37845
37846 fi
37847
37848
37849
37850 for ac_func in uname gethostname
37851 do
37852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37853 echo "$as_me:$LINENO: checking for $ac_func" >&5
37854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37855 if eval "test \"\${$as_ac_var+set}\" = set"; then
37856   echo $ECHO_N "(cached) $ECHO_C" >&6
37857 else
37858   cat >conftest.$ac_ext <<_ACEOF
37859 /* confdefs.h.  */
37860 _ACEOF
37861 cat confdefs.h >>conftest.$ac_ext
37862 cat >>conftest.$ac_ext <<_ACEOF
37863 /* end confdefs.h.  */
37864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37866 #define $ac_func innocuous_$ac_func
37867
37868 /* System header to define __stub macros and hopefully few prototypes,
37869     which can conflict with char $ac_func (); below.
37870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37871     <limits.h> exists even on freestanding compilers.  */
37872
37873 #ifdef __STDC__
37874 # include <limits.h>
37875 #else
37876 # include <assert.h>
37877 #endif
37878
37879 #undef $ac_func
37880
37881 /* Override any gcc2 internal prototype to avoid an error.  */
37882 #ifdef __cplusplus
37883 extern "C"
37884 {
37885 #endif
37886 /* We use char because int might match the return type of a gcc2
37887    builtin and then its argument prototype would still apply.  */
37888 char $ac_func ();
37889 /* The GNU C library defines this for functions which it implements
37890     to always fail with ENOSYS.  Some functions are actually named
37891     something starting with __ and the normal name is an alias.  */
37892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37893 choke me
37894 #else
37895 char (*f) () = $ac_func;
37896 #endif
37897 #ifdef __cplusplus
37898 }
37899 #endif
37900
37901 int
37902 main ()
37903 {
37904 return f != $ac_func;
37905   ;
37906   return 0;
37907 }
37908 _ACEOF
37909 rm -f conftest.$ac_objext conftest$ac_exeext
37910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37911   (eval $ac_link) 2>conftest.er1
37912   ac_status=$?
37913   grep -v '^ *+' conftest.er1 >conftest.err
37914   rm -f conftest.er1
37915   cat conftest.err >&5
37916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917   (exit $ac_status); } &&
37918          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37920   (eval $ac_try) 2>&5
37921   ac_status=$?
37922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923   (exit $ac_status); }; } &&
37924          { ac_try='test -s conftest$ac_exeext'
37925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37926   (eval $ac_try) 2>&5
37927   ac_status=$?
37928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37929   (exit $ac_status); }; }; then
37930   eval "$as_ac_var=yes"
37931 else
37932   echo "$as_me: failed program was:" >&5
37933 sed 's/^/| /' conftest.$ac_ext >&5
37934
37935 eval "$as_ac_var=no"
37936 fi
37937 rm -f conftest.err conftest.$ac_objext \
37938       conftest$ac_exeext conftest.$ac_ext
37939 fi
37940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37942 if test `eval echo '${'$as_ac_var'}'` = yes; then
37943   cat >>confdefs.h <<_ACEOF
37944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37945 _ACEOF
37946  break
37947 fi
37948 done
37949
37950
37951
37952   for wx_func in strtok_r
37953   do
37954     echo "$as_me:$LINENO: checking for $wx_func" >&5
37955 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37956 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37957   echo $ECHO_N "(cached) $ECHO_C" >&6
37958 else
37959
37960         cat >conftest.$ac_ext <<_ACEOF
37961
37962             /* confdefs.h.  */
37963 _ACEOF
37964 cat confdefs.h >>conftest.$ac_ext
37965 cat >>conftest.$ac_ext <<_ACEOF
37966 /* end confdefs.h.  */
37967
37968                 #define _REENTRANT
37969                 $ac_includes_default
37970
37971 int
37972 main ()
37973 {
37974
37975                 #ifndef $wx_func
37976                   &$wx_func;
37977                 #endif
37978
37979
37980   ;
37981   return 0;
37982 }
37983
37984 _ACEOF
37985 rm -f conftest.$ac_objext conftest$ac_exeext
37986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37987   (eval $ac_link) 2>conftest.er1
37988   ac_status=$?
37989   grep -v '^ *+' conftest.er1 >conftest.err
37990   rm -f conftest.er1
37991   cat conftest.err >&5
37992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37993   (exit $ac_status); } &&
37994          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37996   (eval $ac_try) 2>&5
37997   ac_status=$?
37998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37999   (exit $ac_status); }; } &&
38000          { ac_try='test -s conftest$ac_exeext'
38001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38002   (eval $ac_try) 2>&5
38003   ac_status=$?
38004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38005   (exit $ac_status); }; }; then
38006   eval wx_cv_func_$wx_func=yes
38007 else
38008   echo "$as_me: failed program was:" >&5
38009 sed 's/^/| /' conftest.$ac_ext >&5
38010
38011 eval wx_cv_func_$wx_func=no
38012 fi
38013 rm -f conftest.err conftest.$ac_objext \
38014       conftest$ac_exeext conftest.$ac_ext
38015
38016 fi
38017 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38018 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38019
38020     if eval test \$wx_cv_func_$wx_func = yes
38021     then
38022       cat >>confdefs.h <<_ACEOF
38023 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38024 _ACEOF
38025
38026
38027     else
38028       :
38029
38030     fi
38031   done
38032
38033
38034 INET_LINK=
38035
38036 for ac_func in inet_addr
38037 do
38038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38039 echo "$as_me:$LINENO: checking for $ac_func" >&5
38040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38041 if eval "test \"\${$as_ac_var+set}\" = set"; then
38042   echo $ECHO_N "(cached) $ECHO_C" >&6
38043 else
38044   cat >conftest.$ac_ext <<_ACEOF
38045 /* confdefs.h.  */
38046 _ACEOF
38047 cat confdefs.h >>conftest.$ac_ext
38048 cat >>conftest.$ac_ext <<_ACEOF
38049 /* end confdefs.h.  */
38050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38052 #define $ac_func innocuous_$ac_func
38053
38054 /* System header to define __stub macros and hopefully few prototypes,
38055     which can conflict with char $ac_func (); below.
38056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38057     <limits.h> exists even on freestanding compilers.  */
38058
38059 #ifdef __STDC__
38060 # include <limits.h>
38061 #else
38062 # include <assert.h>
38063 #endif
38064
38065 #undef $ac_func
38066
38067 /* Override any gcc2 internal prototype to avoid an error.  */
38068 #ifdef __cplusplus
38069 extern "C"
38070 {
38071 #endif
38072 /* We use char because int might match the return type of a gcc2
38073    builtin and then its argument prototype would still apply.  */
38074 char $ac_func ();
38075 /* The GNU C library defines this for functions which it implements
38076     to always fail with ENOSYS.  Some functions are actually named
38077     something starting with __ and the normal name is an alias.  */
38078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38079 choke me
38080 #else
38081 char (*f) () = $ac_func;
38082 #endif
38083 #ifdef __cplusplus
38084 }
38085 #endif
38086
38087 int
38088 main ()
38089 {
38090 return f != $ac_func;
38091   ;
38092   return 0;
38093 }
38094 _ACEOF
38095 rm -f conftest.$ac_objext conftest$ac_exeext
38096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38097   (eval $ac_link) 2>conftest.er1
38098   ac_status=$?
38099   grep -v '^ *+' conftest.er1 >conftest.err
38100   rm -f conftest.er1
38101   cat conftest.err >&5
38102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103   (exit $ac_status); } &&
38104          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38106   (eval $ac_try) 2>&5
38107   ac_status=$?
38108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109   (exit $ac_status); }; } &&
38110          { ac_try='test -s conftest$ac_exeext'
38111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38112   (eval $ac_try) 2>&5
38113   ac_status=$?
38114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115   (exit $ac_status); }; }; then
38116   eval "$as_ac_var=yes"
38117 else
38118   echo "$as_me: failed program was:" >&5
38119 sed 's/^/| /' conftest.$ac_ext >&5
38120
38121 eval "$as_ac_var=no"
38122 fi
38123 rm -f conftest.err conftest.$ac_objext \
38124       conftest$ac_exeext conftest.$ac_ext
38125 fi
38126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38128 if test `eval echo '${'$as_ac_var'}'` = yes; then
38129   cat >>confdefs.h <<_ACEOF
38130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38131 _ACEOF
38132  cat >>confdefs.h <<\_ACEOF
38133 #define HAVE_INET_ADDR 1
38134 _ACEOF
38135
38136 else
38137
38138         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38139 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38140 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38141   echo $ECHO_N "(cached) $ECHO_C" >&6
38142 else
38143   ac_check_lib_save_LIBS=$LIBS
38144 LIBS="-lnsl  $LIBS"
38145 cat >conftest.$ac_ext <<_ACEOF
38146 /* confdefs.h.  */
38147 _ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h.  */
38151
38152 /* Override any gcc2 internal prototype to avoid an error.  */
38153 #ifdef __cplusplus
38154 extern "C"
38155 #endif
38156 /* We use char because int might match the return type of a gcc2
38157    builtin and then its argument prototype would still apply.  */
38158 char inet_addr ();
38159 int
38160 main ()
38161 {
38162 inet_addr ();
38163   ;
38164   return 0;
38165 }
38166 _ACEOF
38167 rm -f conftest.$ac_objext conftest$ac_exeext
38168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38169   (eval $ac_link) 2>conftest.er1
38170   ac_status=$?
38171   grep -v '^ *+' conftest.er1 >conftest.err
38172   rm -f conftest.er1
38173   cat conftest.err >&5
38174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175   (exit $ac_status); } &&
38176          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38178   (eval $ac_try) 2>&5
38179   ac_status=$?
38180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181   (exit $ac_status); }; } &&
38182          { ac_try='test -s conftest$ac_exeext'
38183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184   (eval $ac_try) 2>&5
38185   ac_status=$?
38186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187   (exit $ac_status); }; }; then
38188   ac_cv_lib_nsl_inet_addr=yes
38189 else
38190   echo "$as_me: failed program was:" >&5
38191 sed 's/^/| /' conftest.$ac_ext >&5
38192
38193 ac_cv_lib_nsl_inet_addr=no
38194 fi
38195 rm -f conftest.err conftest.$ac_objext \
38196       conftest$ac_exeext conftest.$ac_ext
38197 LIBS=$ac_check_lib_save_LIBS
38198 fi
38199 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38200 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38201 if test $ac_cv_lib_nsl_inet_addr = yes; then
38202   INET_LINK="nsl"
38203 else
38204
38205                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38206 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38207 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38208   echo $ECHO_N "(cached) $ECHO_C" >&6
38209 else
38210   ac_check_lib_save_LIBS=$LIBS
38211 LIBS="-lresolv  $LIBS"
38212 cat >conftest.$ac_ext <<_ACEOF
38213 /* confdefs.h.  */
38214 _ACEOF
38215 cat confdefs.h >>conftest.$ac_ext
38216 cat >>conftest.$ac_ext <<_ACEOF
38217 /* end confdefs.h.  */
38218
38219 /* Override any gcc2 internal prototype to avoid an error.  */
38220 #ifdef __cplusplus
38221 extern "C"
38222 #endif
38223 /* We use char because int might match the return type of a gcc2
38224    builtin and then its argument prototype would still apply.  */
38225 char inet_addr ();
38226 int
38227 main ()
38228 {
38229 inet_addr ();
38230   ;
38231   return 0;
38232 }
38233 _ACEOF
38234 rm -f conftest.$ac_objext conftest$ac_exeext
38235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38236   (eval $ac_link) 2>conftest.er1
38237   ac_status=$?
38238   grep -v '^ *+' conftest.er1 >conftest.err
38239   rm -f conftest.er1
38240   cat conftest.err >&5
38241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242   (exit $ac_status); } &&
38243          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38245   (eval $ac_try) 2>&5
38246   ac_status=$?
38247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248   (exit $ac_status); }; } &&
38249          { ac_try='test -s conftest$ac_exeext'
38250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38251   (eval $ac_try) 2>&5
38252   ac_status=$?
38253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254   (exit $ac_status); }; }; then
38255   ac_cv_lib_resolv_inet_addr=yes
38256 else
38257   echo "$as_me: failed program was:" >&5
38258 sed 's/^/| /' conftest.$ac_ext >&5
38259
38260 ac_cv_lib_resolv_inet_addr=no
38261 fi
38262 rm -f conftest.err conftest.$ac_objext \
38263       conftest$ac_exeext conftest.$ac_ext
38264 LIBS=$ac_check_lib_save_LIBS
38265 fi
38266 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38267 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38268 if test $ac_cv_lib_resolv_inet_addr = yes; then
38269   INET_LINK="resolv"
38270 else
38271
38272                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38273 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38274 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38275   echo $ECHO_N "(cached) $ECHO_C" >&6
38276 else
38277   ac_check_lib_save_LIBS=$LIBS
38278 LIBS="-lsocket  $LIBS"
38279 cat >conftest.$ac_ext <<_ACEOF
38280 /* confdefs.h.  */
38281 _ACEOF
38282 cat confdefs.h >>conftest.$ac_ext
38283 cat >>conftest.$ac_ext <<_ACEOF
38284 /* end confdefs.h.  */
38285
38286 /* Override any gcc2 internal prototype to avoid an error.  */
38287 #ifdef __cplusplus
38288 extern "C"
38289 #endif
38290 /* We use char because int might match the return type of a gcc2
38291    builtin and then its argument prototype would still apply.  */
38292 char inet_addr ();
38293 int
38294 main ()
38295 {
38296 inet_addr ();
38297   ;
38298   return 0;
38299 }
38300 _ACEOF
38301 rm -f conftest.$ac_objext conftest$ac_exeext
38302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38303   (eval $ac_link) 2>conftest.er1
38304   ac_status=$?
38305   grep -v '^ *+' conftest.er1 >conftest.err
38306   rm -f conftest.er1
38307   cat conftest.err >&5
38308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38309   (exit $ac_status); } &&
38310          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38312   (eval $ac_try) 2>&5
38313   ac_status=$?
38314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38315   (exit $ac_status); }; } &&
38316          { ac_try='test -s conftest$ac_exeext'
38317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38318   (eval $ac_try) 2>&5
38319   ac_status=$?
38320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321   (exit $ac_status); }; }; then
38322   ac_cv_lib_socket_inet_addr=yes
38323 else
38324   echo "$as_me: failed program was:" >&5
38325 sed 's/^/| /' conftest.$ac_ext >&5
38326
38327 ac_cv_lib_socket_inet_addr=no
38328 fi
38329 rm -f conftest.err conftest.$ac_objext \
38330       conftest$ac_exeext conftest.$ac_ext
38331 LIBS=$ac_check_lib_save_LIBS
38332 fi
38333 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38334 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38335 if test $ac_cv_lib_socket_inet_addr = yes; then
38336   INET_LINK="socket"
38337
38338 fi
38339
38340
38341
38342 fi
38343
38344
38345
38346 fi
38347
38348
38349
38350 fi
38351 done
38352
38353
38354
38355 for ac_func in inet_aton
38356 do
38357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38358 echo "$as_me:$LINENO: checking for $ac_func" >&5
38359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38360 if eval "test \"\${$as_ac_var+set}\" = set"; then
38361   echo $ECHO_N "(cached) $ECHO_C" >&6
38362 else
38363   cat >conftest.$ac_ext <<_ACEOF
38364 /* confdefs.h.  */
38365 _ACEOF
38366 cat confdefs.h >>conftest.$ac_ext
38367 cat >>conftest.$ac_ext <<_ACEOF
38368 /* end confdefs.h.  */
38369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38371 #define $ac_func innocuous_$ac_func
38372
38373 /* System header to define __stub macros and hopefully few prototypes,
38374     which can conflict with char $ac_func (); below.
38375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38376     <limits.h> exists even on freestanding compilers.  */
38377
38378 #ifdef __STDC__
38379 # include <limits.h>
38380 #else
38381 # include <assert.h>
38382 #endif
38383
38384 #undef $ac_func
38385
38386 /* Override any gcc2 internal prototype to avoid an error.  */
38387 #ifdef __cplusplus
38388 extern "C"
38389 {
38390 #endif
38391 /* We use char because int might match the return type of a gcc2
38392    builtin and then its argument prototype would still apply.  */
38393 char $ac_func ();
38394 /* The GNU C library defines this for functions which it implements
38395     to always fail with ENOSYS.  Some functions are actually named
38396     something starting with __ and the normal name is an alias.  */
38397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38398 choke me
38399 #else
38400 char (*f) () = $ac_func;
38401 #endif
38402 #ifdef __cplusplus
38403 }
38404 #endif
38405
38406 int
38407 main ()
38408 {
38409 return f != $ac_func;
38410   ;
38411   return 0;
38412 }
38413 _ACEOF
38414 rm -f conftest.$ac_objext conftest$ac_exeext
38415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38416   (eval $ac_link) 2>conftest.er1
38417   ac_status=$?
38418   grep -v '^ *+' conftest.er1 >conftest.err
38419   rm -f conftest.er1
38420   cat conftest.err >&5
38421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38422   (exit $ac_status); } &&
38423          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38425   (eval $ac_try) 2>&5
38426   ac_status=$?
38427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428   (exit $ac_status); }; } &&
38429          { ac_try='test -s conftest$ac_exeext'
38430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38431   (eval $ac_try) 2>&5
38432   ac_status=$?
38433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434   (exit $ac_status); }; }; then
38435   eval "$as_ac_var=yes"
38436 else
38437   echo "$as_me: failed program was:" >&5
38438 sed 's/^/| /' conftest.$ac_ext >&5
38439
38440 eval "$as_ac_var=no"
38441 fi
38442 rm -f conftest.err conftest.$ac_objext \
38443       conftest$ac_exeext conftest.$ac_ext
38444 fi
38445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38447 if test `eval echo '${'$as_ac_var'}'` = yes; then
38448   cat >>confdefs.h <<_ACEOF
38449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38450 _ACEOF
38451  cat >>confdefs.h <<\_ACEOF
38452 #define HAVE_INET_ATON 1
38453 _ACEOF
38454
38455 else
38456
38457                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38458 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38459 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38460 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38461   echo $ECHO_N "(cached) $ECHO_C" >&6
38462 else
38463   ac_check_lib_save_LIBS=$LIBS
38464 LIBS="-l$INET_LINK  $LIBS"
38465 cat >conftest.$ac_ext <<_ACEOF
38466 /* confdefs.h.  */
38467 _ACEOF
38468 cat confdefs.h >>conftest.$ac_ext
38469 cat >>conftest.$ac_ext <<_ACEOF
38470 /* end confdefs.h.  */
38471
38472 /* Override any gcc2 internal prototype to avoid an error.  */
38473 #ifdef __cplusplus
38474 extern "C"
38475 #endif
38476 /* We use char because int might match the return type of a gcc2
38477    builtin and then its argument prototype would still apply.  */
38478 char inet_aton ();
38479 int
38480 main ()
38481 {
38482 inet_aton ();
38483   ;
38484   return 0;
38485 }
38486 _ACEOF
38487 rm -f conftest.$ac_objext conftest$ac_exeext
38488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38489   (eval $ac_link) 2>conftest.er1
38490   ac_status=$?
38491   grep -v '^ *+' conftest.er1 >conftest.err
38492   rm -f conftest.er1
38493   cat conftest.err >&5
38494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38495   (exit $ac_status); } &&
38496          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38498   (eval $ac_try) 2>&5
38499   ac_status=$?
38500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38501   (exit $ac_status); }; } &&
38502          { ac_try='test -s conftest$ac_exeext'
38503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38504   (eval $ac_try) 2>&5
38505   ac_status=$?
38506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38507   (exit $ac_status); }; }; then
38508   eval "$as_ac_Lib=yes"
38509 else
38510   echo "$as_me: failed program was:" >&5
38511 sed 's/^/| /' conftest.$ac_ext >&5
38512
38513 eval "$as_ac_Lib=no"
38514 fi
38515 rm -f conftest.err conftest.$ac_objext \
38516       conftest$ac_exeext conftest.$ac_ext
38517 LIBS=$ac_check_lib_save_LIBS
38518 fi
38519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38520 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38521 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38522   cat >>confdefs.h <<\_ACEOF
38523 #define HAVE_INET_ATON 1
38524 _ACEOF
38525
38526 fi
38527
38528
38529 fi
38530 done
38531
38532
38533 if test "x$INET_LINK" != "x"; then
38534     cat >>confdefs.h <<\_ACEOF
38535 #define HAVE_INET_ADDR 1
38536 _ACEOF
38537
38538     INET_LINK=" -l$INET_LINK"
38539 fi
38540
38541 fi
38542
38543
38544
38545 EXTRALIBS_ESD=
38546 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38547 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38548 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38549   echo $ECHO_N "(cached) $ECHO_C" >&6
38550 else
38551   ac_check_lib_save_LIBS=$LIBS
38552 LIBS="-lesd  $LIBS"
38553 cat >conftest.$ac_ext <<_ACEOF
38554 /* confdefs.h.  */
38555 _ACEOF
38556 cat confdefs.h >>conftest.$ac_ext
38557 cat >>conftest.$ac_ext <<_ACEOF
38558 /* end confdefs.h.  */
38559
38560 /* Override any gcc2 internal prototype to avoid an error.  */
38561 #ifdef __cplusplus
38562 extern "C"
38563 #endif
38564 /* We use char because int might match the return type of a gcc2
38565    builtin and then its argument prototype would still apply.  */
38566 char esd_close ();
38567 int
38568 main ()
38569 {
38570 esd_close ();
38571   ;
38572   return 0;
38573 }
38574 _ACEOF
38575 rm -f conftest.$ac_objext conftest$ac_exeext
38576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38577   (eval $ac_link) 2>conftest.er1
38578   ac_status=$?
38579   grep -v '^ *+' conftest.er1 >conftest.err
38580   rm -f conftest.er1
38581   cat conftest.err >&5
38582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583   (exit $ac_status); } &&
38584          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38586   (eval $ac_try) 2>&5
38587   ac_status=$?
38588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589   (exit $ac_status); }; } &&
38590          { ac_try='test -s conftest$ac_exeext'
38591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38592   (eval $ac_try) 2>&5
38593   ac_status=$?
38594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595   (exit $ac_status); }; }; then
38596   ac_cv_lib_esd_esd_close=yes
38597 else
38598   echo "$as_me: failed program was:" >&5
38599 sed 's/^/| /' conftest.$ac_ext >&5
38600
38601 ac_cv_lib_esd_esd_close=no
38602 fi
38603 rm -f conftest.err conftest.$ac_objext \
38604       conftest$ac_exeext conftest.$ac_ext
38605 LIBS=$ac_check_lib_save_LIBS
38606 fi
38607 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38608 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38609 if test $ac_cv_lib_esd_esd_close = yes; then
38610
38611
38612 for ac_header in esd.h
38613 do
38614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38616   echo "$as_me:$LINENO: checking for $ac_header" >&5
38617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38619   echo $ECHO_N "(cached) $ECHO_C" >&6
38620 fi
38621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38623 else
38624   # Is the header compilable?
38625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38627 cat >conftest.$ac_ext <<_ACEOF
38628 /* confdefs.h.  */
38629 _ACEOF
38630 cat confdefs.h >>conftest.$ac_ext
38631 cat >>conftest.$ac_ext <<_ACEOF
38632 /* end confdefs.h.  */
38633 $ac_includes_default
38634 #include <$ac_header>
38635 _ACEOF
38636 rm -f conftest.$ac_objext
38637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38638   (eval $ac_compile) 2>conftest.er1
38639   ac_status=$?
38640   grep -v '^ *+' conftest.er1 >conftest.err
38641   rm -f conftest.er1
38642   cat conftest.err >&5
38643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644   (exit $ac_status); } &&
38645          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38647   (eval $ac_try) 2>&5
38648   ac_status=$?
38649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38650   (exit $ac_status); }; } &&
38651          { ac_try='test -s conftest.$ac_objext'
38652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38653   (eval $ac_try) 2>&5
38654   ac_status=$?
38655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656   (exit $ac_status); }; }; then
38657   ac_header_compiler=yes
38658 else
38659   echo "$as_me: failed program was:" >&5
38660 sed 's/^/| /' conftest.$ac_ext >&5
38661
38662 ac_header_compiler=no
38663 fi
38664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38666 echo "${ECHO_T}$ac_header_compiler" >&6
38667
38668 # Is the header present?
38669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38671 cat >conftest.$ac_ext <<_ACEOF
38672 /* confdefs.h.  */
38673 _ACEOF
38674 cat confdefs.h >>conftest.$ac_ext
38675 cat >>conftest.$ac_ext <<_ACEOF
38676 /* end confdefs.h.  */
38677 #include <$ac_header>
38678 _ACEOF
38679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38680   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38681   ac_status=$?
38682   grep -v '^ *+' conftest.er1 >conftest.err
38683   rm -f conftest.er1
38684   cat conftest.err >&5
38685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38686   (exit $ac_status); } >/dev/null; then
38687   if test -s conftest.err; then
38688     ac_cpp_err=$ac_cxx_preproc_warn_flag
38689     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
38690   else
38691     ac_cpp_err=
38692   fi
38693 else
38694   ac_cpp_err=yes
38695 fi
38696 if test -z "$ac_cpp_err"; then
38697   ac_header_preproc=yes
38698 else
38699   echo "$as_me: failed program was:" >&5
38700 sed 's/^/| /' conftest.$ac_ext >&5
38701
38702   ac_header_preproc=no
38703 fi
38704 rm -f conftest.err conftest.$ac_ext
38705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38706 echo "${ECHO_T}$ac_header_preproc" >&6
38707
38708 # So?  What about this header?
38709 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38710   yes:no: )
38711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38715     ac_header_preproc=yes
38716     ;;
38717   no:yes:* )
38718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38730     (
38731       cat <<\_ASBOX
38732 ## ----------------------------------------- ##
38733 ## Report this to wx-dev@lists.wxwidgets.org ##
38734 ## ----------------------------------------- ##
38735 _ASBOX
38736     ) |
38737       sed "s/^/$as_me: WARNING:     /" >&2
38738     ;;
38739 esac
38740 echo "$as_me:$LINENO: checking for $ac_header" >&5
38741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38743   echo $ECHO_N "(cached) $ECHO_C" >&6
38744 else
38745   eval "$as_ac_Header=\$ac_header_preproc"
38746 fi
38747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38749
38750 fi
38751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38752   cat >>confdefs.h <<_ACEOF
38753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38754 _ACEOF
38755
38756     EXTRALIBS_ESD="-lesd"
38757
38758 fi
38759
38760 done
38761
38762
38763 fi
38764
38765
38766
38767 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38768 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38769 cat >conftest.$ac_ext <<_ACEOF
38770 /* confdefs.h.  */
38771 _ACEOF
38772 cat confdefs.h >>conftest.$ac_ext
38773 cat >>conftest.$ac_ext <<_ACEOF
38774 /* end confdefs.h.  */
38775 #ifdef __linux__
38776                 #include <linux/cdrom.h>
38777                 #else
38778                 /* For Solaris */
38779                 #include <sys/cdio.h>
38780                 #endif
38781
38782 int
38783 main ()
38784 {
38785 struct cdrom_tocentry entry, old_entry;
38786   ;
38787   return 0;
38788 }
38789 _ACEOF
38790 rm -f conftest.$ac_objext
38791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38792   (eval $ac_compile) 2>conftest.er1
38793   ac_status=$?
38794   grep -v '^ *+' conftest.er1 >conftest.err
38795   rm -f conftest.er1
38796   cat conftest.err >&5
38797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798   (exit $ac_status); } &&
38799          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38801   (eval $ac_try) 2>&5
38802   ac_status=$?
38803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38804   (exit $ac_status); }; } &&
38805          { ac_try='test -s conftest.$ac_objext'
38806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38807   (eval $ac_try) 2>&5
38808   ac_status=$?
38809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38810   (exit $ac_status); }; }; then
38811   echo "$as_me:$LINENO: result: yes" >&5
38812 echo "${ECHO_T}yes" >&6
38813                 cat >>confdefs.h <<\_ACEOF
38814 #define HAVE_KNOWN_CDROM_INTERFACE 1
38815 _ACEOF
38816
38817 else
38818   echo "$as_me: failed program was:" >&5
38819 sed 's/^/| /' conftest.$ac_ext >&5
38820
38821 echo "$as_me:$LINENO: result: no" >&5
38822 echo "${ECHO_T}no" >&6
38823 fi
38824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38825
38826
38827 cat >confcache <<\_ACEOF
38828 # This file is a shell script that caches the results of configure
38829 # tests run on this system so they can be shared between configure
38830 # scripts and configure runs, see configure's option --config-cache.
38831 # It is not useful on other systems.  If it contains results you don't
38832 # want to keep, you may remove or edit it.
38833 #
38834 # config.status only pays attention to the cache file if you give it
38835 # the --recheck option to rerun configure.
38836 #
38837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38839 # following values.
38840
38841 _ACEOF
38842
38843 # The following way of writing the cache mishandles newlines in values,
38844 # but we know of no workaround that is simple, portable, and efficient.
38845 # So, don't put newlines in cache variables' values.
38846 # Ultrix sh set writes to stderr and can't be redirected directly,
38847 # and sets the high bit in the cache file unless we assign to the vars.
38848 {
38849   (set) 2>&1 |
38850     case `(ac_space=' '; set | grep ac_space) 2>&1` in
38851     *ac_space=\ *)
38852       # `set' does not quote correctly, so add quotes (double-quote
38853       # substitution turns \\\\ into \\, and sed turns \\ into \).
38854       sed -n \
38855         "s/'/'\\\\''/g;
38856           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38857       ;;
38858     *)
38859       # `set' quotes correctly as required by POSIX, so do not add quotes.
38860       sed -n \
38861         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
38862       ;;
38863     esac;
38864 } |
38865   sed '
38866      t clear
38867      : clear
38868      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38869      t end
38870      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38871      : end' >>confcache
38872 if diff $cache_file confcache >/dev/null 2>&1; then :; else
38873   if test -w $cache_file; then
38874     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38875     cat confcache >$cache_file
38876   else
38877     echo "not updating unwritable cache $cache_file"
38878   fi
38879 fi
38880 rm -f confcache
38881
38882
38883 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38884
38885
38886     THREADS_LINK=
38887     THREADS_CXXFLAGS=
38888
38889     if test "$wxUSE_THREADS" = "yes" ; then
38890         if test "$USE_BEOS" = 1; then
38891             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38892 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38893             wxUSE_THREADS="no"
38894         fi
38895     fi
38896
38897     if test "$wxUSE_THREADS" = "yes" ; then
38898
38899
38900                                 THREAD_OPTS="-pthread"
38901         case "${host}" in
38902           *-*-solaris2* | *-*-sunos4* )
38903                 if test "x$GCC" = "xyes"; then
38904                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38905                 else
38906                     THREAD_OPTS="-mt $THREAD_OPTS"
38907                 fi
38908                 ;;
38909           *-*-freebsd*)
38910                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38911                 ;;
38912           *-*-darwin* | *-*-cygwin* )
38913                                                 THREAD_OPTS=""
38914                 ;;
38915           *-*-aix*)
38916                                 THREAD_OPTS="pthreads"
38917                 ;;
38918           *-hp-hpux* )
38919                 if test "x$GCC" = "xyes"; then
38920                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38921                         THREAD_OPTS=""
38922                 else
38923                                                             THREAD_OPTS="-mt"
38924                 fi
38925                 ;;
38926
38927           *-*-irix* )
38928                                                                 if test "x$GCC" = "xyes"; then
38929                     THREAD_OPTS=""
38930                 fi
38931                 ;;
38932
38933           *-*-*UnixWare*)
38934                                 if test "x$GCC" != "xyes"; then
38935                     THREAD_OPTS="-Ethread"
38936                 fi
38937                 ;;
38938         esac
38939
38940                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38941
38942                 THREADS_OK=no
38943         for flag in $THREAD_OPTS; do
38944             case $flag in
38945                 none)
38946                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38947 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38948                     ;;
38949
38950                 -*)
38951                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38952 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
38953                     THREADS_CXXFLAGS="$flag"
38954                     ;;
38955
38956                 *)
38957                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38958 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38959                     THREADS_LINK="-l$flag"
38960                     ;;
38961               esac
38962
38963               save_LIBS="$LIBS"
38964               save_CXXFLAGS="$CXXFLAGS"
38965               LIBS="$THREADS_LINK $LIBS"
38966               CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
38967
38968               cat >conftest.$ac_ext <<_ACEOF
38969 /* confdefs.h.  */
38970 _ACEOF
38971 cat confdefs.h >>conftest.$ac_ext
38972 cat >>conftest.$ac_ext <<_ACEOF
38973 /* end confdefs.h.  */
38974 #include <pthread.h>
38975 int
38976 main ()
38977 {
38978 pthread_create(0,0,0,0);
38979   ;
38980   return 0;
38981 }
38982 _ACEOF
38983 rm -f conftest.$ac_objext conftest$ac_exeext
38984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38985   (eval $ac_link) 2>conftest.er1
38986   ac_status=$?
38987   grep -v '^ *+' conftest.er1 >conftest.err
38988   rm -f conftest.er1
38989   cat conftest.err >&5
38990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38991   (exit $ac_status); } &&
38992          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38994   (eval $ac_try) 2>&5
38995   ac_status=$?
38996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997   (exit $ac_status); }; } &&
38998          { ac_try='test -s conftest$ac_exeext'
38999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39000   (eval $ac_try) 2>&5
39001   ac_status=$?
39002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003   (exit $ac_status); }; }; then
39004   THREADS_OK=yes
39005 else
39006   echo "$as_me: failed program was:" >&5
39007 sed 's/^/| /' conftest.$ac_ext >&5
39008
39009 fi
39010 rm -f conftest.err conftest.$ac_objext \
39011       conftest$ac_exeext conftest.$ac_ext
39012
39013               LIBS="$save_LIBS"
39014               CXXFLAGS="$save_CXXFLAGS"
39015
39016               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39017 echo "${ECHO_T}$THREADS_OK" >&6
39018               if test "x$THREADS_OK" = "xyes"; then
39019                       break;
39020               fi
39021
39022               THREADS_LINK=""
39023               THREADS_CXXFLAGS=""
39024       done
39025
39026       if test "x$THREADS_OK" != "xyes"; then
39027           wxUSE_THREADS=no
39028           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39029 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39030       else
39031                               LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
39032           LIBS="$THREADS_LINK $LIBS"
39033
39034           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39035 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39036           flag=no
39037           case "${host}" in
39038             *-aix*)
39039                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39040                 flag="-D_THREAD_SAFE"
39041                 ;;
39042             *-freebsd*)
39043                 flag="-D_THREAD_SAFE"
39044                 ;;
39045             *-hp-hpux* )
39046                 flag="-D_REENTRANT"
39047                 if test "x$GCC" != "xyes"; then
39048                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39049                 fi
39050                 ;;
39051             *solaris* | alpha*-osf*)
39052                 flag="-D_REENTRANT"
39053                 ;;
39054           esac
39055           echo "$as_me:$LINENO: result: ${flag}" >&5
39056 echo "${ECHO_T}${flag}" >&6
39057           if test "x$flag" != xno; then
39058               THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
39059           fi
39060
39061                     WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
39062       fi
39063     fi
39064
39065         if test "$wxUSE_THREADS" = "yes" ; then
39066
39067 for ac_func in thr_setconcurrency
39068 do
39069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39070 echo "$as_me:$LINENO: checking for $ac_func" >&5
39071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39072 if eval "test \"\${$as_ac_var+set}\" = set"; then
39073   echo $ECHO_N "(cached) $ECHO_C" >&6
39074 else
39075   cat >conftest.$ac_ext <<_ACEOF
39076 /* confdefs.h.  */
39077 _ACEOF
39078 cat confdefs.h >>conftest.$ac_ext
39079 cat >>conftest.$ac_ext <<_ACEOF
39080 /* end confdefs.h.  */
39081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39083 #define $ac_func innocuous_$ac_func
39084
39085 /* System header to define __stub macros and hopefully few prototypes,
39086     which can conflict with char $ac_func (); below.
39087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39088     <limits.h> exists even on freestanding compilers.  */
39089
39090 #ifdef __STDC__
39091 # include <limits.h>
39092 #else
39093 # include <assert.h>
39094 #endif
39095
39096 #undef $ac_func
39097
39098 /* Override any gcc2 internal prototype to avoid an error.  */
39099 #ifdef __cplusplus
39100 extern "C"
39101 {
39102 #endif
39103 /* We use char because int might match the return type of a gcc2
39104    builtin and then its argument prototype would still apply.  */
39105 char $ac_func ();
39106 /* The GNU C library defines this for functions which it implements
39107     to always fail with ENOSYS.  Some functions are actually named
39108     something starting with __ and the normal name is an alias.  */
39109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39110 choke me
39111 #else
39112 char (*f) () = $ac_func;
39113 #endif
39114 #ifdef __cplusplus
39115 }
39116 #endif
39117
39118 int
39119 main ()
39120 {
39121 return f != $ac_func;
39122   ;
39123   return 0;
39124 }
39125 _ACEOF
39126 rm -f conftest.$ac_objext conftest$ac_exeext
39127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39128   (eval $ac_link) 2>conftest.er1
39129   ac_status=$?
39130   grep -v '^ *+' conftest.er1 >conftest.err
39131   rm -f conftest.er1
39132   cat conftest.err >&5
39133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39134   (exit $ac_status); } &&
39135          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39137   (eval $ac_try) 2>&5
39138   ac_status=$?
39139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140   (exit $ac_status); }; } &&
39141          { ac_try='test -s conftest$ac_exeext'
39142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39143   (eval $ac_try) 2>&5
39144   ac_status=$?
39145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146   (exit $ac_status); }; }; then
39147   eval "$as_ac_var=yes"
39148 else
39149   echo "$as_me: failed program was:" >&5
39150 sed 's/^/| /' conftest.$ac_ext >&5
39151
39152 eval "$as_ac_var=no"
39153 fi
39154 rm -f conftest.err conftest.$ac_objext \
39155       conftest$ac_exeext conftest.$ac_ext
39156 fi
39157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39159 if test `eval echo '${'$as_ac_var'}'` = yes; then
39160   cat >>confdefs.h <<_ACEOF
39161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39162 _ACEOF
39163
39164 fi
39165 done
39166
39167
39168                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39169 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39170 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39171   echo $ECHO_N "(cached) $ECHO_C" >&6
39172 else
39173
39174         cat >conftest.$ac_ext <<_ACEOF
39175 /* confdefs.h.  */
39176 _ACEOF
39177 cat confdefs.h >>conftest.$ac_ext
39178 cat >>conftest.$ac_ext <<_ACEOF
39179 /* end confdefs.h.  */
39180 #include <pthread.h>
39181                void ThreadCleanupFunc(void *p);
39182
39183 int
39184 main ()
39185 {
39186
39187                 void *p;
39188                 pthread_cleanup_push(ThreadCleanupFunc, p);
39189                 pthread_cleanup_pop(0);
39190
39191   ;
39192   return 0;
39193 }
39194 _ACEOF
39195 rm -f conftest.$ac_objext
39196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39197   (eval $ac_compile) 2>conftest.er1
39198   ac_status=$?
39199   grep -v '^ *+' conftest.er1 >conftest.err
39200   rm -f conftest.er1
39201   cat conftest.err >&5
39202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203   (exit $ac_status); } &&
39204          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39206   (eval $ac_try) 2>&5
39207   ac_status=$?
39208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39209   (exit $ac_status); }; } &&
39210          { ac_try='test -s conftest.$ac_objext'
39211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39212   (eval $ac_try) 2>&5
39213   ac_status=$?
39214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215   (exit $ac_status); }; }; then
39216
39217                wx_cv_func_pthread_cleanup=yes
39218
39219 else
39220   echo "$as_me: failed program was:" >&5
39221 sed 's/^/| /' conftest.$ac_ext >&5
39222
39223
39224                wx_cv_func_pthread_cleanup=no
39225
39226
39227 fi
39228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39229
39230 fi
39231 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39232 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39233       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39234         cat >>confdefs.h <<\_ACEOF
39235 #define wxHAVE_PTHREAD_CLEANUP 1
39236 _ACEOF
39237
39238       fi
39239
39240
39241 for ac_header in sched.h
39242 do
39243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39245   echo "$as_me:$LINENO: checking for $ac_header" >&5
39246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39248   echo $ECHO_N "(cached) $ECHO_C" >&6
39249 fi
39250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39252 else
39253   # Is the header compilable?
39254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39256 cat >conftest.$ac_ext <<_ACEOF
39257 /* confdefs.h.  */
39258 _ACEOF
39259 cat confdefs.h >>conftest.$ac_ext
39260 cat >>conftest.$ac_ext <<_ACEOF
39261 /* end confdefs.h.  */
39262 $ac_includes_default
39263 #include <$ac_header>
39264 _ACEOF
39265 rm -f conftest.$ac_objext
39266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39267   (eval $ac_compile) 2>conftest.er1
39268   ac_status=$?
39269   grep -v '^ *+' conftest.er1 >conftest.err
39270   rm -f conftest.er1
39271   cat conftest.err >&5
39272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273   (exit $ac_status); } &&
39274          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39276   (eval $ac_try) 2>&5
39277   ac_status=$?
39278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279   (exit $ac_status); }; } &&
39280          { ac_try='test -s conftest.$ac_objext'
39281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39282   (eval $ac_try) 2>&5
39283   ac_status=$?
39284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285   (exit $ac_status); }; }; then
39286   ac_header_compiler=yes
39287 else
39288   echo "$as_me: failed program was:" >&5
39289 sed 's/^/| /' conftest.$ac_ext >&5
39290
39291 ac_header_compiler=no
39292 fi
39293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39295 echo "${ECHO_T}$ac_header_compiler" >&6
39296
39297 # Is the header present?
39298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39300 cat >conftest.$ac_ext <<_ACEOF
39301 /* confdefs.h.  */
39302 _ACEOF
39303 cat confdefs.h >>conftest.$ac_ext
39304 cat >>conftest.$ac_ext <<_ACEOF
39305 /* end confdefs.h.  */
39306 #include <$ac_header>
39307 _ACEOF
39308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39310   ac_status=$?
39311   grep -v '^ *+' conftest.er1 >conftest.err
39312   rm -f conftest.er1
39313   cat conftest.err >&5
39314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315   (exit $ac_status); } >/dev/null; then
39316   if test -s conftest.err; then
39317     ac_cpp_err=$ac_cxx_preproc_warn_flag
39318     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
39319   else
39320     ac_cpp_err=
39321   fi
39322 else
39323   ac_cpp_err=yes
39324 fi
39325 if test -z "$ac_cpp_err"; then
39326   ac_header_preproc=yes
39327 else
39328   echo "$as_me: failed program was:" >&5
39329 sed 's/^/| /' conftest.$ac_ext >&5
39330
39331   ac_header_preproc=no
39332 fi
39333 rm -f conftest.err conftest.$ac_ext
39334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39335 echo "${ECHO_T}$ac_header_preproc" >&6
39336
39337 # So?  What about this header?
39338 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39339   yes:no: )
39340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39344     ac_header_preproc=yes
39345     ;;
39346   no:yes:* )
39347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39349     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39350 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39351     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39353     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39354 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39357     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39359     (
39360       cat <<\_ASBOX
39361 ## ----------------------------------------- ##
39362 ## Report this to wx-dev@lists.wxwidgets.org ##
39363 ## ----------------------------------------- ##
39364 _ASBOX
39365     ) |
39366       sed "s/^/$as_me: WARNING:     /" >&2
39367     ;;
39368 esac
39369 echo "$as_me:$LINENO: checking for $ac_header" >&5
39370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39372   echo $ECHO_N "(cached) $ECHO_C" >&6
39373 else
39374   eval "$as_ac_Header=\$ac_header_preproc"
39375 fi
39376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39378
39379 fi
39380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39381   cat >>confdefs.h <<_ACEOF
39382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39383 _ACEOF
39384
39385 fi
39386
39387 done
39388
39389       if test "$ac_cv_header_sched_h" = "yes"; then
39390           echo "$as_me:$LINENO: checking for sched_yield" >&5
39391 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39392 if test "${ac_cv_func_sched_yield+set}" = set; then
39393   echo $ECHO_N "(cached) $ECHO_C" >&6
39394 else
39395   cat >conftest.$ac_ext <<_ACEOF
39396 /* confdefs.h.  */
39397 _ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h.  */
39401 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39403 #define sched_yield innocuous_sched_yield
39404
39405 /* System header to define __stub macros and hopefully few prototypes,
39406     which can conflict with char sched_yield (); below.
39407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39408     <limits.h> exists even on freestanding compilers.  */
39409
39410 #ifdef __STDC__
39411 # include <limits.h>
39412 #else
39413 # include <assert.h>
39414 #endif
39415
39416 #undef sched_yield
39417
39418 /* Override any gcc2 internal prototype to avoid an error.  */
39419 #ifdef __cplusplus
39420 extern "C"
39421 {
39422 #endif
39423 /* We use char because int might match the return type of a gcc2
39424    builtin and then its argument prototype would still apply.  */
39425 char sched_yield ();
39426 /* The GNU C library defines this for functions which it implements
39427     to always fail with ENOSYS.  Some functions are actually named
39428     something starting with __ and the normal name is an alias.  */
39429 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39430 choke me
39431 #else
39432 char (*f) () = sched_yield;
39433 #endif
39434 #ifdef __cplusplus
39435 }
39436 #endif
39437
39438 int
39439 main ()
39440 {
39441 return f != sched_yield;
39442   ;
39443   return 0;
39444 }
39445 _ACEOF
39446 rm -f conftest.$ac_objext conftest$ac_exeext
39447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39448   (eval $ac_link) 2>conftest.er1
39449   ac_status=$?
39450   grep -v '^ *+' conftest.er1 >conftest.err
39451   rm -f conftest.er1
39452   cat conftest.err >&5
39453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39454   (exit $ac_status); } &&
39455          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39457   (eval $ac_try) 2>&5
39458   ac_status=$?
39459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39460   (exit $ac_status); }; } &&
39461          { ac_try='test -s conftest$ac_exeext'
39462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39463   (eval $ac_try) 2>&5
39464   ac_status=$?
39465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466   (exit $ac_status); }; }; then
39467   ac_cv_func_sched_yield=yes
39468 else
39469   echo "$as_me: failed program was:" >&5
39470 sed 's/^/| /' conftest.$ac_ext >&5
39471
39472 ac_cv_func_sched_yield=no
39473 fi
39474 rm -f conftest.err conftest.$ac_objext \
39475       conftest$ac_exeext conftest.$ac_ext
39476 fi
39477 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39478 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39479 if test $ac_cv_func_sched_yield = yes; then
39480   cat >>confdefs.h <<\_ACEOF
39481 #define HAVE_SCHED_YIELD 1
39482 _ACEOF
39483
39484 else
39485
39486                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39487 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39488 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39489   echo $ECHO_N "(cached) $ECHO_C" >&6
39490 else
39491   ac_check_lib_save_LIBS=$LIBS
39492 LIBS="-lposix4  $LIBS"
39493 cat >conftest.$ac_ext <<_ACEOF
39494 /* confdefs.h.  */
39495 _ACEOF
39496 cat confdefs.h >>conftest.$ac_ext
39497 cat >>conftest.$ac_ext <<_ACEOF
39498 /* end confdefs.h.  */
39499
39500 /* Override any gcc2 internal prototype to avoid an error.  */
39501 #ifdef __cplusplus
39502 extern "C"
39503 #endif
39504 /* We use char because int might match the return type of a gcc2
39505    builtin and then its argument prototype would still apply.  */
39506 char sched_yield ();
39507 int
39508 main ()
39509 {
39510 sched_yield ();
39511   ;
39512   return 0;
39513 }
39514 _ACEOF
39515 rm -f conftest.$ac_objext conftest$ac_exeext
39516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39517   (eval $ac_link) 2>conftest.er1
39518   ac_status=$?
39519   grep -v '^ *+' conftest.er1 >conftest.err
39520   rm -f conftest.er1
39521   cat conftest.err >&5
39522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523   (exit $ac_status); } &&
39524          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39526   (eval $ac_try) 2>&5
39527   ac_status=$?
39528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529   (exit $ac_status); }; } &&
39530          { ac_try='test -s conftest$ac_exeext'
39531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39532   (eval $ac_try) 2>&5
39533   ac_status=$?
39534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535   (exit $ac_status); }; }; then
39536   ac_cv_lib_posix4_sched_yield=yes
39537 else
39538   echo "$as_me: failed program was:" >&5
39539 sed 's/^/| /' conftest.$ac_ext >&5
39540
39541 ac_cv_lib_posix4_sched_yield=no
39542 fi
39543 rm -f conftest.err conftest.$ac_objext \
39544       conftest$ac_exeext conftest.$ac_ext
39545 LIBS=$ac_check_lib_save_LIBS
39546 fi
39547 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39548 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39549 if test $ac_cv_lib_posix4_sched_yield = yes; then
39550   cat >>confdefs.h <<\_ACEOF
39551 #define HAVE_SCHED_YIELD 1
39552 _ACEOF
39553  POSIX4_LINK=" -lposix4"
39554 else
39555   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39556 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39557
39558 fi
39559
39560
39561
39562 fi
39563
39564       fi
39565
39566                                           HAVE_PRIOR_FUNCS=0
39567       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39568 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39569 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39570   echo $ECHO_N "(cached) $ECHO_C" >&6
39571 else
39572   cat >conftest.$ac_ext <<_ACEOF
39573 /* confdefs.h.  */
39574 _ACEOF
39575 cat confdefs.h >>conftest.$ac_ext
39576 cat >>conftest.$ac_ext <<_ACEOF
39577 /* end confdefs.h.  */
39578 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39580 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39581
39582 /* System header to define __stub macros and hopefully few prototypes,
39583     which can conflict with char pthread_attr_getschedpolicy (); below.
39584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39585     <limits.h> exists even on freestanding compilers.  */
39586
39587 #ifdef __STDC__
39588 # include <limits.h>
39589 #else
39590 # include <assert.h>
39591 #endif
39592
39593 #undef pthread_attr_getschedpolicy
39594
39595 /* Override any gcc2 internal prototype to avoid an error.  */
39596 #ifdef __cplusplus
39597 extern "C"
39598 {
39599 #endif
39600 /* We use char because int might match the return type of a gcc2
39601    builtin and then its argument prototype would still apply.  */
39602 char pthread_attr_getschedpolicy ();
39603 /* The GNU C library defines this for functions which it implements
39604     to always fail with ENOSYS.  Some functions are actually named
39605     something starting with __ and the normal name is an alias.  */
39606 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39607 choke me
39608 #else
39609 char (*f) () = pthread_attr_getschedpolicy;
39610 #endif
39611 #ifdef __cplusplus
39612 }
39613 #endif
39614
39615 int
39616 main ()
39617 {
39618 return f != pthread_attr_getschedpolicy;
39619   ;
39620   return 0;
39621 }
39622 _ACEOF
39623 rm -f conftest.$ac_objext conftest$ac_exeext
39624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39625   (eval $ac_link) 2>conftest.er1
39626   ac_status=$?
39627   grep -v '^ *+' conftest.er1 >conftest.err
39628   rm -f conftest.er1
39629   cat conftest.err >&5
39630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631   (exit $ac_status); } &&
39632          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39634   (eval $ac_try) 2>&5
39635   ac_status=$?
39636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39637   (exit $ac_status); }; } &&
39638          { ac_try='test -s conftest$ac_exeext'
39639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39640   (eval $ac_try) 2>&5
39641   ac_status=$?
39642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39643   (exit $ac_status); }; }; then
39644   ac_cv_func_pthread_attr_getschedpolicy=yes
39645 else
39646   echo "$as_me: failed program was:" >&5
39647 sed 's/^/| /' conftest.$ac_ext >&5
39648
39649 ac_cv_func_pthread_attr_getschedpolicy=no
39650 fi
39651 rm -f conftest.err conftest.$ac_objext \
39652       conftest$ac_exeext conftest.$ac_ext
39653 fi
39654 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39655 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39656 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39657   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39658 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39659 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39660   echo $ECHO_N "(cached) $ECHO_C" >&6
39661 else
39662   cat >conftest.$ac_ext <<_ACEOF
39663 /* confdefs.h.  */
39664 _ACEOF
39665 cat confdefs.h >>conftest.$ac_ext
39666 cat >>conftest.$ac_ext <<_ACEOF
39667 /* end confdefs.h.  */
39668 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39670 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39671
39672 /* System header to define __stub macros and hopefully few prototypes,
39673     which can conflict with char pthread_attr_setschedparam (); below.
39674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39675     <limits.h> exists even on freestanding compilers.  */
39676
39677 #ifdef __STDC__
39678 # include <limits.h>
39679 #else
39680 # include <assert.h>
39681 #endif
39682
39683 #undef pthread_attr_setschedparam
39684
39685 /* Override any gcc2 internal prototype to avoid an error.  */
39686 #ifdef __cplusplus
39687 extern "C"
39688 {
39689 #endif
39690 /* We use char because int might match the return type of a gcc2
39691    builtin and then its argument prototype would still apply.  */
39692 char pthread_attr_setschedparam ();
39693 /* The GNU C library defines this for functions which it implements
39694     to always fail with ENOSYS.  Some functions are actually named
39695     something starting with __ and the normal name is an alias.  */
39696 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39697 choke me
39698 #else
39699 char (*f) () = pthread_attr_setschedparam;
39700 #endif
39701 #ifdef __cplusplus
39702 }
39703 #endif
39704
39705 int
39706 main ()
39707 {
39708 return f != pthread_attr_setschedparam;
39709   ;
39710   return 0;
39711 }
39712 _ACEOF
39713 rm -f conftest.$ac_objext conftest$ac_exeext
39714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39715   (eval $ac_link) 2>conftest.er1
39716   ac_status=$?
39717   grep -v '^ *+' conftest.er1 >conftest.err
39718   rm -f conftest.er1
39719   cat conftest.err >&5
39720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39721   (exit $ac_status); } &&
39722          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39724   (eval $ac_try) 2>&5
39725   ac_status=$?
39726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727   (exit $ac_status); }; } &&
39728          { ac_try='test -s conftest$ac_exeext'
39729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39730   (eval $ac_try) 2>&5
39731   ac_status=$?
39732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733   (exit $ac_status); }; }; then
39734   ac_cv_func_pthread_attr_setschedparam=yes
39735 else
39736   echo "$as_me: failed program was:" >&5
39737 sed 's/^/| /' conftest.$ac_ext >&5
39738
39739 ac_cv_func_pthread_attr_setschedparam=no
39740 fi
39741 rm -f conftest.err conftest.$ac_objext \
39742       conftest$ac_exeext conftest.$ac_ext
39743 fi
39744 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39745 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39746 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39747   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39748 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39749 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39750   echo $ECHO_N "(cached) $ECHO_C" >&6
39751 else
39752   cat >conftest.$ac_ext <<_ACEOF
39753 /* confdefs.h.  */
39754 _ACEOF
39755 cat confdefs.h >>conftest.$ac_ext
39756 cat >>conftest.$ac_ext <<_ACEOF
39757 /* end confdefs.h.  */
39758 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39760 #define sched_get_priority_max innocuous_sched_get_priority_max
39761
39762 /* System header to define __stub macros and hopefully few prototypes,
39763     which can conflict with char sched_get_priority_max (); below.
39764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39765     <limits.h> exists even on freestanding compilers.  */
39766
39767 #ifdef __STDC__
39768 # include <limits.h>
39769 #else
39770 # include <assert.h>
39771 #endif
39772
39773 #undef sched_get_priority_max
39774
39775 /* Override any gcc2 internal prototype to avoid an error.  */
39776 #ifdef __cplusplus
39777 extern "C"
39778 {
39779 #endif
39780 /* We use char because int might match the return type of a gcc2
39781    builtin and then its argument prototype would still apply.  */
39782 char sched_get_priority_max ();
39783 /* The GNU C library defines this for functions which it implements
39784     to always fail with ENOSYS.  Some functions are actually named
39785     something starting with __ and the normal name is an alias.  */
39786 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39787 choke me
39788 #else
39789 char (*f) () = sched_get_priority_max;
39790 #endif
39791 #ifdef __cplusplus
39792 }
39793 #endif
39794
39795 int
39796 main ()
39797 {
39798 return f != sched_get_priority_max;
39799   ;
39800   return 0;
39801 }
39802 _ACEOF
39803 rm -f conftest.$ac_objext conftest$ac_exeext
39804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39805   (eval $ac_link) 2>conftest.er1
39806   ac_status=$?
39807   grep -v '^ *+' conftest.er1 >conftest.err
39808   rm -f conftest.er1
39809   cat conftest.err >&5
39810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39811   (exit $ac_status); } &&
39812          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39814   (eval $ac_try) 2>&5
39815   ac_status=$?
39816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817   (exit $ac_status); }; } &&
39818          { ac_try='test -s conftest$ac_exeext'
39819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39820   (eval $ac_try) 2>&5
39821   ac_status=$?
39822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823   (exit $ac_status); }; }; then
39824   ac_cv_func_sched_get_priority_max=yes
39825 else
39826   echo "$as_me: failed program was:" >&5
39827 sed 's/^/| /' conftest.$ac_ext >&5
39828
39829 ac_cv_func_sched_get_priority_max=no
39830 fi
39831 rm -f conftest.err conftest.$ac_objext \
39832       conftest$ac_exeext conftest.$ac_ext
39833 fi
39834 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39835 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39836 if test $ac_cv_func_sched_get_priority_max = yes; then
39837   HAVE_PRIOR_FUNCS=1
39838 else
39839   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39840 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39841 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39842   echo $ECHO_N "(cached) $ECHO_C" >&6
39843 else
39844   ac_check_lib_save_LIBS=$LIBS
39845 LIBS="-lposix4  $LIBS"
39846 cat >conftest.$ac_ext <<_ACEOF
39847 /* confdefs.h.  */
39848 _ACEOF
39849 cat confdefs.h >>conftest.$ac_ext
39850 cat >>conftest.$ac_ext <<_ACEOF
39851 /* end confdefs.h.  */
39852
39853 /* Override any gcc2 internal prototype to avoid an error.  */
39854 #ifdef __cplusplus
39855 extern "C"
39856 #endif
39857 /* We use char because int might match the return type of a gcc2
39858    builtin and then its argument prototype would still apply.  */
39859 char sched_get_priority_max ();
39860 int
39861 main ()
39862 {
39863 sched_get_priority_max ();
39864   ;
39865   return 0;
39866 }
39867 _ACEOF
39868 rm -f conftest.$ac_objext conftest$ac_exeext
39869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39870   (eval $ac_link) 2>conftest.er1
39871   ac_status=$?
39872   grep -v '^ *+' conftest.er1 >conftest.err
39873   rm -f conftest.er1
39874   cat conftest.err >&5
39875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39876   (exit $ac_status); } &&
39877          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39879   (eval $ac_try) 2>&5
39880   ac_status=$?
39881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882   (exit $ac_status); }; } &&
39883          { ac_try='test -s conftest$ac_exeext'
39884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39885   (eval $ac_try) 2>&5
39886   ac_status=$?
39887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888   (exit $ac_status); }; }; then
39889   ac_cv_lib_posix4_sched_get_priority_max=yes
39890 else
39891   echo "$as_me: failed program was:" >&5
39892 sed 's/^/| /' conftest.$ac_ext >&5
39893
39894 ac_cv_lib_posix4_sched_get_priority_max=no
39895 fi
39896 rm -f conftest.err conftest.$ac_objext \
39897       conftest$ac_exeext conftest.$ac_ext
39898 LIBS=$ac_check_lib_save_LIBS
39899 fi
39900 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39901 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39902 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39903
39904                                 HAVE_PRIOR_FUNCS=1
39905                                 POSIX4_LINK=" -lposix4"
39906
39907 fi
39908
39909
39910 fi
39911
39912
39913 fi
39914
39915
39916 fi
39917
39918
39919       if test "$HAVE_PRIOR_FUNCS" = 1; then
39920         cat >>confdefs.h <<\_ACEOF
39921 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39922 _ACEOF
39923
39924       else
39925         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39926 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39927       fi
39928
39929       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39930 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39931 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39932   echo $ECHO_N "(cached) $ECHO_C" >&6
39933 else
39934   cat >conftest.$ac_ext <<_ACEOF
39935 /* confdefs.h.  */
39936 _ACEOF
39937 cat confdefs.h >>conftest.$ac_ext
39938 cat >>conftest.$ac_ext <<_ACEOF
39939 /* end confdefs.h.  */
39940 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39942 #define pthread_cancel innocuous_pthread_cancel
39943
39944 /* System header to define __stub macros and hopefully few prototypes,
39945     which can conflict with char pthread_cancel (); below.
39946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39947     <limits.h> exists even on freestanding compilers.  */
39948
39949 #ifdef __STDC__
39950 # include <limits.h>
39951 #else
39952 # include <assert.h>
39953 #endif
39954
39955 #undef pthread_cancel
39956
39957 /* Override any gcc2 internal prototype to avoid an error.  */
39958 #ifdef __cplusplus
39959 extern "C"
39960 {
39961 #endif
39962 /* We use char because int might match the return type of a gcc2
39963    builtin and then its argument prototype would still apply.  */
39964 char pthread_cancel ();
39965 /* The GNU C library defines this for functions which it implements
39966     to always fail with ENOSYS.  Some functions are actually named
39967     something starting with __ and the normal name is an alias.  */
39968 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39969 choke me
39970 #else
39971 char (*f) () = pthread_cancel;
39972 #endif
39973 #ifdef __cplusplus
39974 }
39975 #endif
39976
39977 int
39978 main ()
39979 {
39980 return f != pthread_cancel;
39981   ;
39982   return 0;
39983 }
39984 _ACEOF
39985 rm -f conftest.$ac_objext conftest$ac_exeext
39986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39987   (eval $ac_link) 2>conftest.er1
39988   ac_status=$?
39989   grep -v '^ *+' conftest.er1 >conftest.err
39990   rm -f conftest.er1
39991   cat conftest.err >&5
39992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993   (exit $ac_status); } &&
39994          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39996   (eval $ac_try) 2>&5
39997   ac_status=$?
39998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999   (exit $ac_status); }; } &&
40000          { ac_try='test -s conftest$ac_exeext'
40001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40002   (eval $ac_try) 2>&5
40003   ac_status=$?
40004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40005   (exit $ac_status); }; }; then
40006   ac_cv_func_pthread_cancel=yes
40007 else
40008   echo "$as_me: failed program was:" >&5
40009 sed 's/^/| /' conftest.$ac_ext >&5
40010
40011 ac_cv_func_pthread_cancel=no
40012 fi
40013 rm -f conftest.err conftest.$ac_objext \
40014       conftest$ac_exeext conftest.$ac_ext
40015 fi
40016 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40017 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40018 if test $ac_cv_func_pthread_cancel = yes; then
40019   cat >>confdefs.h <<\_ACEOF
40020 #define HAVE_PTHREAD_CANCEL 1
40021 _ACEOF
40022
40023 else
40024   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40025 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40026 fi
40027
40028
40029       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40030 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40031 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40032   echo $ECHO_N "(cached) $ECHO_C" >&6
40033 else
40034   cat >conftest.$ac_ext <<_ACEOF
40035 /* confdefs.h.  */
40036 _ACEOF
40037 cat confdefs.h >>conftest.$ac_ext
40038 cat >>conftest.$ac_ext <<_ACEOF
40039 /* end confdefs.h.  */
40040 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40042 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40043
40044 /* System header to define __stub macros and hopefully few prototypes,
40045     which can conflict with char pthread_attr_setstacksize (); below.
40046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40047     <limits.h> exists even on freestanding compilers.  */
40048
40049 #ifdef __STDC__
40050 # include <limits.h>
40051 #else
40052 # include <assert.h>
40053 #endif
40054
40055 #undef pthread_attr_setstacksize
40056
40057 /* Override any gcc2 internal prototype to avoid an error.  */
40058 #ifdef __cplusplus
40059 extern "C"
40060 {
40061 #endif
40062 /* We use char because int might match the return type of a gcc2
40063    builtin and then its argument prototype would still apply.  */
40064 char pthread_attr_setstacksize ();
40065 /* The GNU C library defines this for functions which it implements
40066     to always fail with ENOSYS.  Some functions are actually named
40067     something starting with __ and the normal name is an alias.  */
40068 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40069 choke me
40070 #else
40071 char (*f) () = pthread_attr_setstacksize;
40072 #endif
40073 #ifdef __cplusplus
40074 }
40075 #endif
40076
40077 int
40078 main ()
40079 {
40080 return f != pthread_attr_setstacksize;
40081   ;
40082   return 0;
40083 }
40084 _ACEOF
40085 rm -f conftest.$ac_objext conftest$ac_exeext
40086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40087   (eval $ac_link) 2>conftest.er1
40088   ac_status=$?
40089   grep -v '^ *+' conftest.er1 >conftest.err
40090   rm -f conftest.er1
40091   cat conftest.err >&5
40092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093   (exit $ac_status); } &&
40094          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096   (eval $ac_try) 2>&5
40097   ac_status=$?
40098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099   (exit $ac_status); }; } &&
40100          { ac_try='test -s conftest$ac_exeext'
40101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40102   (eval $ac_try) 2>&5
40103   ac_status=$?
40104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105   (exit $ac_status); }; }; then
40106   ac_cv_func_pthread_attr_setstacksize=yes
40107 else
40108   echo "$as_me: failed program was:" >&5
40109 sed 's/^/| /' conftest.$ac_ext >&5
40110
40111 ac_cv_func_pthread_attr_setstacksize=no
40112 fi
40113 rm -f conftest.err conftest.$ac_objext \
40114       conftest$ac_exeext conftest.$ac_ext
40115 fi
40116 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40117 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40118 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40119   cat >>confdefs.h <<\_ACEOF
40120 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40121 _ACEOF
40122
40123 fi
40124
40125
40126
40127       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40128 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40129 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40130   echo $ECHO_N "(cached) $ECHO_C" >&6
40131 else
40132
40133         cat >conftest.$ac_ext <<_ACEOF
40134 /* confdefs.h.  */
40135 _ACEOF
40136 cat confdefs.h >>conftest.$ac_ext
40137 cat >>conftest.$ac_ext <<_ACEOF
40138 /* end confdefs.h.  */
40139 #include <pthread.h>
40140 int
40141 main ()
40142 {
40143
40144                pthread_mutexattr_t attr;
40145                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40146
40147   ;
40148   return 0;
40149 }
40150 _ACEOF
40151 rm -f conftest.$ac_objext
40152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40153   (eval $ac_compile) 2>conftest.er1
40154   ac_status=$?
40155   grep -v '^ *+' conftest.er1 >conftest.err
40156   rm -f conftest.er1
40157   cat conftest.err >&5
40158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159   (exit $ac_status); } &&
40160          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40162   (eval $ac_try) 2>&5
40163   ac_status=$?
40164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40165   (exit $ac_status); }; } &&
40166          { ac_try='test -s conftest.$ac_objext'
40167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40168   (eval $ac_try) 2>&5
40169   ac_status=$?
40170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171   (exit $ac_status); }; }; then
40172   wx_cv_type_pthread_mutexattr_t=yes
40173 else
40174   echo "$as_me: failed program was:" >&5
40175 sed 's/^/| /' conftest.$ac_ext >&5
40176
40177 wx_cv_type_pthread_mutexattr_t=no
40178
40179 fi
40180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40181
40182 fi
40183 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40184 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40185
40186       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40187         cat >>confdefs.h <<\_ACEOF
40188 #define HAVE_PTHREAD_MUTEXATTR_T 1
40189 _ACEOF
40190
40191
40192                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40193 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40194 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40195   echo $ECHO_N "(cached) $ECHO_C" >&6
40196 else
40197
40198                        cat >conftest.$ac_ext <<_ACEOF
40199 /* confdefs.h.  */
40200 _ACEOF
40201 cat confdefs.h >>conftest.$ac_ext
40202 cat >>conftest.$ac_ext <<_ACEOF
40203 /* end confdefs.h.  */
40204 #include <pthread.h>
40205 int
40206 main ()
40207 {
40208
40209                                pthread_mutexattr_t attr;
40210                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40211
40212   ;
40213   return 0;
40214 }
40215 _ACEOF
40216 rm -f conftest.$ac_objext
40217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40218   (eval $ac_compile) 2>conftest.er1
40219   ac_status=$?
40220   grep -v '^ *+' conftest.er1 >conftest.err
40221   rm -f conftest.er1
40222   cat conftest.err >&5
40223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224   (exit $ac_status); } &&
40225          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40227   (eval $ac_try) 2>&5
40228   ac_status=$?
40229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230   (exit $ac_status); }; } &&
40231          { ac_try='test -s conftest.$ac_objext'
40232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40233   (eval $ac_try) 2>&5
40234   ac_status=$?
40235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236   (exit $ac_status); }; }; then
40237   wx_cv_func_pthread_mutexattr_settype_decl=yes
40238 else
40239   echo "$as_me: failed program was:" >&5
40240 sed 's/^/| /' conftest.$ac_ext >&5
40241
40242 wx_cv_func_pthread_mutexattr_settype_decl=no
40243
40244 fi
40245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40246
40247 fi
40248 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40249 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40250         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40251             cat >>confdefs.h <<\_ACEOF
40252 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40253 _ACEOF
40254
40255         fi
40256       else
40257                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40258 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40259 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40260   echo $ECHO_N "(cached) $ECHO_C" >&6
40261 else
40262
40263             cat >conftest.$ac_ext <<_ACEOF
40264 /* confdefs.h.  */
40265 _ACEOF
40266 cat confdefs.h >>conftest.$ac_ext
40267 cat >>conftest.$ac_ext <<_ACEOF
40268 /* end confdefs.h.  */
40269 #include <pthread.h>
40270 int
40271 main ()
40272 {
40273
40274                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40275
40276   ;
40277   return 0;
40278 }
40279 _ACEOF
40280 rm -f conftest.$ac_objext
40281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40282   (eval $ac_compile) 2>conftest.er1
40283   ac_status=$?
40284   grep -v '^ *+' conftest.er1 >conftest.err
40285   rm -f conftest.er1
40286   cat conftest.err >&5
40287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40288   (exit $ac_status); } &&
40289          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40291   (eval $ac_try) 2>&5
40292   ac_status=$?
40293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40294   (exit $ac_status); }; } &&
40295          { ac_try='test -s conftest.$ac_objext'
40296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40297   (eval $ac_try) 2>&5
40298   ac_status=$?
40299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40300   (exit $ac_status); }; }; then
40301
40302                     wx_cv_type_pthread_rec_mutex_init=yes
40303
40304 else
40305   echo "$as_me: failed program was:" >&5
40306 sed 's/^/| /' conftest.$ac_ext >&5
40307
40308
40309                     wx_cv_type_pthread_rec_mutex_init=no
40310
40311
40312 fi
40313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40314
40315 fi
40316 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40317 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40318         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40319           cat >>confdefs.h <<\_ACEOF
40320 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40321 _ACEOF
40322
40323         else
40324                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40325 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40326         fi
40327       fi
40328     fi
40329
40330 else
40331     if test "$wxUSE_THREADS" = "yes" ; then
40332       case "${host}" in
40333         *-*-mingw32* )
40334                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40335 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40336 if test "${wx_cv_cflags_mthread+set}" = set; then
40337   echo $ECHO_N "(cached) $ECHO_C" >&6
40338 else
40339
40340                     CXXFLAGS_OLD="$CXXFLAGS"
40341                     CXXFLAGS="-mthreads $CXXFLAGS"
40342                     cat >conftest.$ac_ext <<_ACEOF
40343 /* confdefs.h.  */
40344 _ACEOF
40345 cat confdefs.h >>conftest.$ac_ext
40346 cat >>conftest.$ac_ext <<_ACEOF
40347 /* end confdefs.h.  */
40348
40349 int
40350 main ()
40351 {
40352
40353   ;
40354   return 0;
40355 }
40356 _ACEOF
40357 rm -f conftest.$ac_objext
40358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40359   (eval $ac_compile) 2>conftest.er1
40360   ac_status=$?
40361   grep -v '^ *+' conftest.er1 >conftest.err
40362   rm -f conftest.er1
40363   cat conftest.err >&5
40364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365   (exit $ac_status); } &&
40366          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40368   (eval $ac_try) 2>&5
40369   ac_status=$?
40370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40371   (exit $ac_status); }; } &&
40372          { ac_try='test -s conftest.$ac_objext'
40373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40374   (eval $ac_try) 2>&5
40375   ac_status=$?
40376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377   (exit $ac_status); }; }; then
40378   wx_cv_cflags_mthread=yes
40379 else
40380   echo "$as_me: failed program was:" >&5
40381 sed 's/^/| /' conftest.$ac_ext >&5
40382
40383 wx_cv_cflags_mthread=no
40384
40385 fi
40386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40387
40388
40389 fi
40390 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40391 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40392
40393             if test "$wx_cv_cflags_mthread" = "yes"; then
40394                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
40395                 LDFLAGS="$LDFLAGS -mthreads"
40396             else
40397                                 CXXFLAGS="$CXXFLAGS_OLD"
40398             fi
40399         ;;
40400         *-pc-os2*emx )
40401             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40402             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
40403             LDFLAGS="$LDFLAGS -Zmt"
40404         ;;
40405       esac
40406     fi
40407 fi
40408
40409 echo "$as_me:$LINENO: checking for localtime_r" >&5
40410 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40411 if test "${ac_cv_func_localtime_r+set}" = set; then
40412   echo $ECHO_N "(cached) $ECHO_C" >&6
40413 else
40414   cat >conftest.$ac_ext <<_ACEOF
40415 /* confdefs.h.  */
40416 _ACEOF
40417 cat confdefs.h >>conftest.$ac_ext
40418 cat >>conftest.$ac_ext <<_ACEOF
40419 /* end confdefs.h.  */
40420 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40422 #define localtime_r innocuous_localtime_r
40423
40424 /* System header to define __stub macros and hopefully few prototypes,
40425     which can conflict with char localtime_r (); below.
40426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40427     <limits.h> exists even on freestanding compilers.  */
40428
40429 #ifdef __STDC__
40430 # include <limits.h>
40431 #else
40432 # include <assert.h>
40433 #endif
40434
40435 #undef localtime_r
40436
40437 /* Override any gcc2 internal prototype to avoid an error.  */
40438 #ifdef __cplusplus
40439 extern "C"
40440 {
40441 #endif
40442 /* We use char because int might match the return type of a gcc2
40443    builtin and then its argument prototype would still apply.  */
40444 char localtime_r ();
40445 /* The GNU C library defines this for functions which it implements
40446     to always fail with ENOSYS.  Some functions are actually named
40447     something starting with __ and the normal name is an alias.  */
40448 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
40449 choke me
40450 #else
40451 char (*f) () = localtime_r;
40452 #endif
40453 #ifdef __cplusplus
40454 }
40455 #endif
40456
40457 int
40458 main ()
40459 {
40460 return f != localtime_r;
40461   ;
40462   return 0;
40463 }
40464 _ACEOF
40465 rm -f conftest.$ac_objext conftest$ac_exeext
40466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40467   (eval $ac_link) 2>conftest.er1
40468   ac_status=$?
40469   grep -v '^ *+' conftest.er1 >conftest.err
40470   rm -f conftest.er1
40471   cat conftest.err >&5
40472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473   (exit $ac_status); } &&
40474          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476   (eval $ac_try) 2>&5
40477   ac_status=$?
40478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479   (exit $ac_status); }; } &&
40480          { ac_try='test -s conftest$ac_exeext'
40481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482   (eval $ac_try) 2>&5
40483   ac_status=$?
40484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485   (exit $ac_status); }; }; then
40486   ac_cv_func_localtime_r=yes
40487 else
40488   echo "$as_me: failed program was:" >&5
40489 sed 's/^/| /' conftest.$ac_ext >&5
40490
40491 ac_cv_func_localtime_r=no
40492 fi
40493 rm -f conftest.err conftest.$ac_objext \
40494       conftest$ac_exeext conftest.$ac_ext
40495 fi
40496 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40497 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40498 if test $ac_cv_func_localtime_r = yes; then
40499    cat >>confdefs.h <<\_ACEOF
40500 #define HAVE_LOCALTIME_R 1
40501 _ACEOF
40502
40503 fi
40504
40505 echo "$as_me:$LINENO: checking for gmtime_r" >&5
40506 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40507 if test "${ac_cv_func_gmtime_r+set}" = set; then
40508   echo $ECHO_N "(cached) $ECHO_C" >&6
40509 else
40510   cat >conftest.$ac_ext <<_ACEOF
40511 /* confdefs.h.  */
40512 _ACEOF
40513 cat confdefs.h >>conftest.$ac_ext
40514 cat >>conftest.$ac_ext <<_ACEOF
40515 /* end confdefs.h.  */
40516 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40518 #define gmtime_r innocuous_gmtime_r
40519
40520 /* System header to define __stub macros and hopefully few prototypes,
40521     which can conflict with char gmtime_r (); below.
40522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40523     <limits.h> exists even on freestanding compilers.  */
40524
40525 #ifdef __STDC__
40526 # include <limits.h>
40527 #else
40528 # include <assert.h>
40529 #endif
40530
40531 #undef gmtime_r
40532
40533 /* Override any gcc2 internal prototype to avoid an error.  */
40534 #ifdef __cplusplus
40535 extern "C"
40536 {
40537 #endif
40538 /* We use char because int might match the return type of a gcc2
40539    builtin and then its argument prototype would still apply.  */
40540 char gmtime_r ();
40541 /* The GNU C library defines this for functions which it implements
40542     to always fail with ENOSYS.  Some functions are actually named
40543     something starting with __ and the normal name is an alias.  */
40544 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40545 choke me
40546 #else
40547 char (*f) () = gmtime_r;
40548 #endif
40549 #ifdef __cplusplus
40550 }
40551 #endif
40552
40553 int
40554 main ()
40555 {
40556 return f != gmtime_r;
40557   ;
40558   return 0;
40559 }
40560 _ACEOF
40561 rm -f conftest.$ac_objext conftest$ac_exeext
40562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40563   (eval $ac_link) 2>conftest.er1
40564   ac_status=$?
40565   grep -v '^ *+' conftest.er1 >conftest.err
40566   rm -f conftest.er1
40567   cat conftest.err >&5
40568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569   (exit $ac_status); } &&
40570          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40572   (eval $ac_try) 2>&5
40573   ac_status=$?
40574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575   (exit $ac_status); }; } &&
40576          { ac_try='test -s conftest$ac_exeext'
40577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40578   (eval $ac_try) 2>&5
40579   ac_status=$?
40580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40581   (exit $ac_status); }; }; then
40582   ac_cv_func_gmtime_r=yes
40583 else
40584   echo "$as_me: failed program was:" >&5
40585 sed 's/^/| /' conftest.$ac_ext >&5
40586
40587 ac_cv_func_gmtime_r=no
40588 fi
40589 rm -f conftest.err conftest.$ac_objext \
40590       conftest$ac_exeext conftest.$ac_ext
40591 fi
40592 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40593 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40594 if test $ac_cv_func_gmtime_r = yes; then
40595    cat >>confdefs.h <<\_ACEOF
40596 #define HAVE_GMTIME_R 1
40597 _ACEOF
40598
40599 fi
40600
40601 echo "$as_me:$LINENO: checking for readdir_r" >&5
40602 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40603 if test "${ac_cv_func_readdir_r+set}" = set; then
40604   echo $ECHO_N "(cached) $ECHO_C" >&6
40605 else
40606   cat >conftest.$ac_ext <<_ACEOF
40607 /* confdefs.h.  */
40608 _ACEOF
40609 cat confdefs.h >>conftest.$ac_ext
40610 cat >>conftest.$ac_ext <<_ACEOF
40611 /* end confdefs.h.  */
40612 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40614 #define readdir_r innocuous_readdir_r
40615
40616 /* System header to define __stub macros and hopefully few prototypes,
40617     which can conflict with char readdir_r (); below.
40618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40619     <limits.h> exists even on freestanding compilers.  */
40620
40621 #ifdef __STDC__
40622 # include <limits.h>
40623 #else
40624 # include <assert.h>
40625 #endif
40626
40627 #undef readdir_r
40628
40629 /* Override any gcc2 internal prototype to avoid an error.  */
40630 #ifdef __cplusplus
40631 extern "C"
40632 {
40633 #endif
40634 /* We use char because int might match the return type of a gcc2
40635    builtin and then its argument prototype would still apply.  */
40636 char readdir_r ();
40637 /* The GNU C library defines this for functions which it implements
40638     to always fail with ENOSYS.  Some functions are actually named
40639     something starting with __ and the normal name is an alias.  */
40640 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40641 choke me
40642 #else
40643 char (*f) () = readdir_r;
40644 #endif
40645 #ifdef __cplusplus
40646 }
40647 #endif
40648
40649 int
40650 main ()
40651 {
40652 return f != readdir_r;
40653   ;
40654   return 0;
40655 }
40656 _ACEOF
40657 rm -f conftest.$ac_objext conftest$ac_exeext
40658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40659   (eval $ac_link) 2>conftest.er1
40660   ac_status=$?
40661   grep -v '^ *+' conftest.er1 >conftest.err
40662   rm -f conftest.er1
40663   cat conftest.err >&5
40664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665   (exit $ac_status); } &&
40666          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40668   (eval $ac_try) 2>&5
40669   ac_status=$?
40670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671   (exit $ac_status); }; } &&
40672          { ac_try='test -s conftest$ac_exeext'
40673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40674   (eval $ac_try) 2>&5
40675   ac_status=$?
40676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40677   (exit $ac_status); }; }; then
40678   ac_cv_func_readdir_r=yes
40679 else
40680   echo "$as_me: failed program was:" >&5
40681 sed 's/^/| /' conftest.$ac_ext >&5
40682
40683 ac_cv_func_readdir_r=no
40684 fi
40685 rm -f conftest.err conftest.$ac_objext \
40686       conftest$ac_exeext conftest.$ac_ext
40687 fi
40688 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40689 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40690 if test $ac_cv_func_readdir_r = yes; then
40691    cat >>confdefs.h <<\_ACEOF
40692 #define HAVE_READDIR_R 1
40693 _ACEOF
40694
40695 fi
40696
40697
40698
40699
40700     ac_ext=c
40701 ac_cpp='$CPP $CPPFLAGS'
40702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40705
40706     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40707 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40708
40709     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40710   echo $ECHO_N "(cached) $ECHO_C" >&6
40711 else
40712
40713
40714 ################################################################
40715
40716 ac_cv_func_which_gethostbyname_r=unknown
40717
40718 #
40719 # ONE ARGUMENT (sanity check)
40720 #
40721
40722 # This should fail, as there is no variant of gethostbyname_r() that takes
40723 # a single argument. If it actually compiles, then we can assume that
40724 # netdb.h is not declaring the function, and the compiler is thereby
40725 # assuming an implicit prototype. In which case, we're out of luck.
40726 #
40727 cat >conftest.$ac_ext <<_ACEOF
40728 /* confdefs.h.  */
40729 _ACEOF
40730 cat confdefs.h >>conftest.$ac_ext
40731 cat >>conftest.$ac_ext <<_ACEOF
40732 /* end confdefs.h.  */
40733 #include <netdb.h>
40734 int
40735 main ()
40736 {
40737
40738             char *name = "www.gnu.org";
40739             (void)gethostbyname_r(name) /* ; */
40740
40741   ;
40742   return 0;
40743 }
40744 _ACEOF
40745 rm -f conftest.$ac_objext
40746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40747   (eval $ac_compile) 2>conftest.er1
40748   ac_status=$?
40749   grep -v '^ *+' conftest.er1 >conftest.err
40750   rm -f conftest.er1
40751   cat conftest.err >&5
40752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753   (exit $ac_status); } &&
40754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40756   (eval $ac_try) 2>&5
40757   ac_status=$?
40758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40759   (exit $ac_status); }; } &&
40760          { ac_try='test -s conftest.$ac_objext'
40761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40762   (eval $ac_try) 2>&5
40763   ac_status=$?
40764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40765   (exit $ac_status); }; }; then
40766   ac_cv_func_which_gethostbyname_r=no
40767 else
40768   echo "$as_me: failed program was:" >&5
40769 sed 's/^/| /' conftest.$ac_ext >&5
40770
40771 fi
40772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40773
40774 #
40775 # SIX ARGUMENTS
40776 # (e.g. Linux)
40777 #
40778
40779 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40780
40781 cat >conftest.$ac_ext <<_ACEOF
40782 /* confdefs.h.  */
40783 _ACEOF
40784 cat confdefs.h >>conftest.$ac_ext
40785 cat >>conftest.$ac_ext <<_ACEOF
40786 /* end confdefs.h.  */
40787 #include <netdb.h>
40788 int
40789 main ()
40790 {
40791
40792             char *name = "www.gnu.org";
40793             struct hostent ret, *retp;
40794             char buf[1024];
40795             int buflen = 1024;
40796             int my_h_errno;
40797             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40798
40799   ;
40800   return 0;
40801 }
40802 _ACEOF
40803 rm -f conftest.$ac_objext
40804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40805   (eval $ac_compile) 2>conftest.er1
40806   ac_status=$?
40807   grep -v '^ *+' conftest.er1 >conftest.err
40808   rm -f conftest.er1
40809   cat conftest.err >&5
40810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40811   (exit $ac_status); } &&
40812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40814   (eval $ac_try) 2>&5
40815   ac_status=$?
40816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817   (exit $ac_status); }; } &&
40818          { ac_try='test -s conftest.$ac_objext'
40819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40820   (eval $ac_try) 2>&5
40821   ac_status=$?
40822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823   (exit $ac_status); }; }; then
40824   ac_cv_func_which_gethostbyname_r=six
40825 else
40826   echo "$as_me: failed program was:" >&5
40827 sed 's/^/| /' conftest.$ac_ext >&5
40828
40829 fi
40830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40831
40832 fi
40833
40834 #
40835 # FIVE ARGUMENTS
40836 # (e.g. Solaris)
40837 #
40838
40839 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40840
40841 cat >conftest.$ac_ext <<_ACEOF
40842 /* confdefs.h.  */
40843 _ACEOF
40844 cat confdefs.h >>conftest.$ac_ext
40845 cat >>conftest.$ac_ext <<_ACEOF
40846 /* end confdefs.h.  */
40847 #include <netdb.h>
40848 int
40849 main ()
40850 {
40851
40852             char *name = "www.gnu.org";
40853             struct hostent ret;
40854             char buf[1024];
40855             int buflen = 1024;
40856             int my_h_errno;
40857             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40858
40859   ;
40860   return 0;
40861 }
40862 _ACEOF
40863 rm -f conftest.$ac_objext
40864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40865   (eval $ac_compile) 2>conftest.er1
40866   ac_status=$?
40867   grep -v '^ *+' conftest.er1 >conftest.err
40868   rm -f conftest.er1
40869   cat conftest.err >&5
40870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40871   (exit $ac_status); } &&
40872          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40874   (eval $ac_try) 2>&5
40875   ac_status=$?
40876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877   (exit $ac_status); }; } &&
40878          { ac_try='test -s conftest.$ac_objext'
40879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40880   (eval $ac_try) 2>&5
40881   ac_status=$?
40882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40883   (exit $ac_status); }; }; then
40884   ac_cv_func_which_gethostbyname_r=five
40885 else
40886   echo "$as_me: failed program was:" >&5
40887 sed 's/^/| /' conftest.$ac_ext >&5
40888
40889 fi
40890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40891
40892 fi
40893
40894 #
40895 # THREE ARGUMENTS
40896 # (e.g. AIX, HP-UX, Tru64)
40897 #
40898
40899 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40900
40901 cat >conftest.$ac_ext <<_ACEOF
40902 /* confdefs.h.  */
40903 _ACEOF
40904 cat confdefs.h >>conftest.$ac_ext
40905 cat >>conftest.$ac_ext <<_ACEOF
40906 /* end confdefs.h.  */
40907 #include <netdb.h>
40908 int
40909 main ()
40910 {
40911
40912             char *name = "www.gnu.org";
40913             struct hostent ret;
40914             struct hostent_data data;
40915             (void)gethostbyname_r(name, &ret, &data) /* ; */
40916
40917   ;
40918   return 0;
40919 }
40920 _ACEOF
40921 rm -f conftest.$ac_objext
40922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40923   (eval $ac_compile) 2>conftest.er1
40924   ac_status=$?
40925   grep -v '^ *+' conftest.er1 >conftest.err
40926   rm -f conftest.er1
40927   cat conftest.err >&5
40928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40929   (exit $ac_status); } &&
40930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40932   (eval $ac_try) 2>&5
40933   ac_status=$?
40934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40935   (exit $ac_status); }; } &&
40936          { ac_try='test -s conftest.$ac_objext'
40937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40938   (eval $ac_try) 2>&5
40939   ac_status=$?
40940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40941   (exit $ac_status); }; }; then
40942   ac_cv_func_which_gethostbyname_r=three
40943 else
40944   echo "$as_me: failed program was:" >&5
40945 sed 's/^/| /' conftest.$ac_ext >&5
40946
40947 fi
40948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40949
40950 fi
40951
40952 ################################################################
40953
40954
40955 fi
40956
40957 case "$ac_cv_func_which_gethostbyname_r" in
40958     three)
40959     echo "$as_me:$LINENO: result: three" >&5
40960 echo "${ECHO_T}three" >&6
40961     cat >>confdefs.h <<\_ACEOF
40962 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40963 _ACEOF
40964
40965     ;;
40966
40967     five)
40968     echo "$as_me:$LINENO: result: five" >&5
40969 echo "${ECHO_T}five" >&6
40970     cat >>confdefs.h <<\_ACEOF
40971 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40972 _ACEOF
40973
40974     ;;
40975
40976     six)
40977     echo "$as_me:$LINENO: result: six" >&5
40978 echo "${ECHO_T}six" >&6
40979     cat >>confdefs.h <<\_ACEOF
40980 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40981 _ACEOF
40982
40983     ;;
40984
40985     no)
40986     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40987 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40988     ;;
40989
40990     unknown)
40991     echo "$as_me:$LINENO: result: can't tell" >&5
40992 echo "${ECHO_T}can't tell" >&6
40993     ;;
40994
40995     *)
40996     { { echo "$as_me:$LINENO: error: internal error" >&5
40997 echo "$as_me: error: internal error" >&2;}
40998    { (exit 1); exit 1; }; }
40999     ;;
41000 esac
41001
41002 ac_ext=cc
41003 ac_cpp='$CXXCPP $CPPFLAGS'
41004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41007
41008
41009
41010       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41011               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41012           echo "$as_me:$LINENO: checking for gethostbyname" >&5
41013 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41014 if test "${ac_cv_func_gethostbyname+set}" = set; then
41015   echo $ECHO_N "(cached) $ECHO_C" >&6
41016 else
41017   cat >conftest.$ac_ext <<_ACEOF
41018 /* confdefs.h.  */
41019 _ACEOF
41020 cat confdefs.h >>conftest.$ac_ext
41021 cat >>conftest.$ac_ext <<_ACEOF
41022 /* end confdefs.h.  */
41023 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41025 #define gethostbyname innocuous_gethostbyname
41026
41027 /* System header to define __stub macros and hopefully few prototypes,
41028     which can conflict with char gethostbyname (); below.
41029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41030     <limits.h> exists even on freestanding compilers.  */
41031
41032 #ifdef __STDC__
41033 # include <limits.h>
41034 #else
41035 # include <assert.h>
41036 #endif
41037
41038 #undef gethostbyname
41039
41040 /* Override any gcc2 internal prototype to avoid an error.  */
41041 #ifdef __cplusplus
41042 extern "C"
41043 {
41044 #endif
41045 /* We use char because int might match the return type of a gcc2
41046    builtin and then its argument prototype would still apply.  */
41047 char gethostbyname ();
41048 /* The GNU C library defines this for functions which it implements
41049     to always fail with ENOSYS.  Some functions are actually named
41050     something starting with __ and the normal name is an alias.  */
41051 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41052 choke me
41053 #else
41054 char (*f) () = gethostbyname;
41055 #endif
41056 #ifdef __cplusplus
41057 }
41058 #endif
41059
41060 int
41061 main ()
41062 {
41063 return f != gethostbyname;
41064   ;
41065   return 0;
41066 }
41067 _ACEOF
41068 rm -f conftest.$ac_objext conftest$ac_exeext
41069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41070   (eval $ac_link) 2>conftest.er1
41071   ac_status=$?
41072   grep -v '^ *+' conftest.er1 >conftest.err
41073   rm -f conftest.er1
41074   cat conftest.err >&5
41075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41076   (exit $ac_status); } &&
41077          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41079   (eval $ac_try) 2>&5
41080   ac_status=$?
41081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41082   (exit $ac_status); }; } &&
41083          { ac_try='test -s conftest$ac_exeext'
41084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41085   (eval $ac_try) 2>&5
41086   ac_status=$?
41087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41088   (exit $ac_status); }; }; then
41089   ac_cv_func_gethostbyname=yes
41090 else
41091   echo "$as_me: failed program was:" >&5
41092 sed 's/^/| /' conftest.$ac_ext >&5
41093
41094 ac_cv_func_gethostbyname=no
41095 fi
41096 rm -f conftest.err conftest.$ac_objext \
41097       conftest$ac_exeext conftest.$ac_ext
41098 fi
41099 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41100 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41101 if test $ac_cv_func_gethostbyname = yes; then
41102    cat >>confdefs.h <<\_ACEOF
41103 #define HAVE_GETHOSTBYNAME 1
41104 _ACEOF
41105
41106 fi
41107
41108       fi
41109
41110 echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41111 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41112 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41113   echo $ECHO_N "(cached) $ECHO_C" >&6
41114 else
41115
41116         cat >conftest.$ac_ext <<_ACEOF
41117 /* confdefs.h.  */
41118 _ACEOF
41119 cat confdefs.h >>conftest.$ac_ext
41120 cat >>conftest.$ac_ext <<_ACEOF
41121 /* end confdefs.h.  */
41122 #include <netdb.h>
41123 int
41124 main ()
41125 {
41126
41127                 char *name;
41128                 char *proto;
41129                 struct servent *se, *res;
41130                 char buffer[2048];
41131                 int buflen = 2048;
41132                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41133
41134   ;
41135   return 0;
41136 }
41137 _ACEOF
41138 rm -f conftest.$ac_objext
41139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41140   (eval $ac_compile) 2>conftest.er1
41141   ac_status=$?
41142   grep -v '^ *+' conftest.er1 >conftest.err
41143   rm -f conftest.er1
41144   cat conftest.err >&5
41145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41146   (exit $ac_status); } &&
41147          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41149   (eval $ac_try) 2>&5
41150   ac_status=$?
41151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41152   (exit $ac_status); }; } &&
41153          { ac_try='test -s conftest.$ac_objext'
41154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41155   (eval $ac_try) 2>&5
41156   ac_status=$?
41157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158   (exit $ac_status); }; }; then
41159   ac_cv_func_which_getservbyname_r=six
41160 else
41161   echo "$as_me: failed program was:" >&5
41162 sed 's/^/| /' conftest.$ac_ext >&5
41163
41164
41165                 cat >conftest.$ac_ext <<_ACEOF
41166 /* confdefs.h.  */
41167 _ACEOF
41168 cat confdefs.h >>conftest.$ac_ext
41169 cat >>conftest.$ac_ext <<_ACEOF
41170 /* end confdefs.h.  */
41171 #include <netdb.h>
41172 int
41173 main ()
41174 {
41175
41176                         char *name;
41177                         char *proto;
41178                         struct servent *se;
41179                         char buffer[2048];
41180                         int buflen = 2048;
41181                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41182
41183   ;
41184   return 0;
41185 }
41186 _ACEOF
41187 rm -f conftest.$ac_objext
41188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41189   (eval $ac_compile) 2>conftest.er1
41190   ac_status=$?
41191   grep -v '^ *+' conftest.er1 >conftest.err
41192   rm -f conftest.er1
41193   cat conftest.err >&5
41194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195   (exit $ac_status); } &&
41196          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41198   (eval $ac_try) 2>&5
41199   ac_status=$?
41200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41201   (exit $ac_status); }; } &&
41202          { ac_try='test -s conftest.$ac_objext'
41203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41204   (eval $ac_try) 2>&5
41205   ac_status=$?
41206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207   (exit $ac_status); }; }; then
41208   ac_cv_func_which_getservbyname_r=five
41209 else
41210   echo "$as_me: failed program was:" >&5
41211 sed 's/^/| /' conftest.$ac_ext >&5
41212
41213
41214                         cat >conftest.$ac_ext <<_ACEOF
41215 /* confdefs.h.  */
41216 _ACEOF
41217 cat confdefs.h >>conftest.$ac_ext
41218 cat >>conftest.$ac_ext <<_ACEOF
41219 /* end confdefs.h.  */
41220 #include <netdb.h>
41221 int
41222 main ()
41223 {
41224
41225                                 char *name;
41226                                 char *proto;
41227                                 struct servent *se;
41228                                 struct servent_data data;
41229                                 (void) getservbyname_r(name, proto, se, &data);
41230
41231   ;
41232   return 0;
41233 }
41234 _ACEOF
41235 rm -f conftest.$ac_objext
41236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41237   (eval $ac_compile) 2>conftest.er1
41238   ac_status=$?
41239   grep -v '^ *+' conftest.er1 >conftest.err
41240   rm -f conftest.er1
41241   cat conftest.err >&5
41242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41243   (exit $ac_status); } &&
41244          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41246   (eval $ac_try) 2>&5
41247   ac_status=$?
41248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249   (exit $ac_status); }; } &&
41250          { ac_try='test -s conftest.$ac_objext'
41251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41252   (eval $ac_try) 2>&5
41253   ac_status=$?
41254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41255   (exit $ac_status); }; }; then
41256   ac_cv_func_which_getservbyname_r=four
41257 else
41258   echo "$as_me: failed program was:" >&5
41259 sed 's/^/| /' conftest.$ac_ext >&5
41260
41261 ac_cv_func_which_getservbyname_r=no
41262
41263 fi
41264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41265
41266
41267 fi
41268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41269
41270
41271 fi
41272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41273
41274
41275 fi
41276 echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41277 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
41278
41279 if test $ac_cv_func_which_getservbyname_r = six; then
41280   cat >>confdefs.h <<\_ACEOF
41281 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41282 _ACEOF
41283
41284 elif test $ac_cv_func_which_getservbyname_r = five; then
41285   cat >>confdefs.h <<\_ACEOF
41286 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41287 _ACEOF
41288
41289 elif test $ac_cv_func_which_getservbyname_r = four; then
41290   cat >>confdefs.h <<\_ACEOF
41291 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41292 _ACEOF
41293
41294 fi
41295
41296
41297       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41298               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41299
41300 for ac_func in getservbyname
41301 do
41302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41303 echo "$as_me:$LINENO: checking for $ac_func" >&5
41304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41305 if eval "test \"\${$as_ac_var+set}\" = set"; then
41306   echo $ECHO_N "(cached) $ECHO_C" >&6
41307 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41316 #define $ac_func innocuous_$ac_func
41317
41318 /* System header to define __stub macros and hopefully few prototypes,
41319     which can conflict with char $ac_func (); below.
41320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41321     <limits.h> exists even on freestanding compilers.  */
41322
41323 #ifdef __STDC__
41324 # include <limits.h>
41325 #else
41326 # include <assert.h>
41327 #endif
41328
41329 #undef $ac_func
41330
41331 /* Override any gcc2 internal prototype to avoid an error.  */
41332 #ifdef __cplusplus
41333 extern "C"
41334 {
41335 #endif
41336 /* We use char because int might match the return type of a gcc2
41337    builtin and then its argument prototype would still apply.  */
41338 char $ac_func ();
41339 /* The GNU C library defines this for functions which it implements
41340     to always fail with ENOSYS.  Some functions are actually named
41341     something starting with __ and the normal name is an alias.  */
41342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41343 choke me
41344 #else
41345 char (*f) () = $ac_func;
41346 #endif
41347 #ifdef __cplusplus
41348 }
41349 #endif
41350
41351 int
41352 main ()
41353 {
41354 return f != $ac_func;
41355   ;
41356   return 0;
41357 }
41358 _ACEOF
41359 rm -f conftest.$ac_objext conftest$ac_exeext
41360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41361   (eval $ac_link) 2>conftest.er1
41362   ac_status=$?
41363   grep -v '^ *+' conftest.er1 >conftest.err
41364   rm -f conftest.er1
41365   cat conftest.err >&5
41366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41367   (exit $ac_status); } &&
41368          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41370   (eval $ac_try) 2>&5
41371   ac_status=$?
41372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373   (exit $ac_status); }; } &&
41374          { ac_try='test -s conftest$ac_exeext'
41375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41376   (eval $ac_try) 2>&5
41377   ac_status=$?
41378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41379   (exit $ac_status); }; }; then
41380   eval "$as_ac_var=yes"
41381 else
41382   echo "$as_me: failed program was:" >&5
41383 sed 's/^/| /' conftest.$ac_ext >&5
41384
41385 eval "$as_ac_var=no"
41386 fi
41387 rm -f conftest.err conftest.$ac_objext \
41388       conftest$ac_exeext conftest.$ac_ext
41389 fi
41390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41392 if test `eval echo '${'$as_ac_var'}'` = yes; then
41393   cat >>confdefs.h <<_ACEOF
41394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41395 _ACEOF
41396   cat >>confdefs.h <<\_ACEOF
41397 #define HAVE_GETSERVBYNAME 1
41398 _ACEOF
41399
41400 fi
41401 done
41402
41403       fi
41404
41405 if test "$wxUSE_THREADS" = "yes"; then
41406   cat >>confdefs.h <<\_ACEOF
41407 #define wxUSE_THREADS 1
41408 _ACEOF
41409
41410
41411   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41412 else
41413       if test "$wx_cv_func_strtok_r" = "yes"; then
41414     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41415 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41416     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41417         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41418         echo "$as_me:$LINENO: result: yes" >&5
41419 echo "${ECHO_T}yes" >&6
41420     else
41421         echo "$as_me:$LINENO: result: no" >&5
41422 echo "${ECHO_T}no" >&6
41423     fi
41424   fi
41425 fi
41426
41427 if test "$WXGTK20" = 1 ; then
41428   cat >>confdefs.h <<_ACEOF
41429 #define __WXGTK20__ $WXGTK20
41430 _ACEOF
41431
41432   WXGTK12=1
41433 fi
41434
41435 if test "$WXGTK12" = 1 ; then
41436   cat >>confdefs.h <<_ACEOF
41437 #define __WXGTK12__ $WXGTK12
41438 _ACEOF
41439
41440 fi
41441
41442 if test "$WXGTK127" = 1 ; then
41443   cat >>confdefs.h <<_ACEOF
41444 #define __WXGTK127__ $WXGTK127
41445 _ACEOF
41446
41447 fi
41448
41449 if test "$WXGPE" = 1 ; then
41450   cat >>confdefs.h <<_ACEOF
41451 #define __WXGPE__ $WXGPE
41452 _ACEOF
41453
41454 fi
41455
41456 DEBUG_CFLAGS=
41457 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41458     DEBUG_CFLAGS="-g"
41459     wxUSE_OPTIMISE=no
41460 fi
41461
41462 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41463     wxUSE_DEBUG_INFO=yes
41464     if test "$GCC" = yes; then
41465         DEBUG_CFLAGS="-ggdb"
41466     fi
41467 fi
41468
41469 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41470     cat >>confdefs.h <<\_ACEOF
41471 #define WXDEBUG 1
41472 _ACEOF
41473
41474     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41475 else
41476     if test "$wxUSE_GTK" = 1 ; then
41477         if test "x$wxGTK_VERSION" = "x1" ; then
41478             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41479         fi
41480     fi
41481 fi
41482
41483 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41484     cat >>confdefs.h <<\_ACEOF
41485 #define wxUSE_MEMORY_TRACING 1
41486 _ACEOF
41487
41488     cat >>confdefs.h <<\_ACEOF
41489 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41490 _ACEOF
41491
41492     cat >>confdefs.h <<\_ACEOF
41493 #define wxUSE_DEBUG_NEW_ALWAYS 1
41494 _ACEOF
41495
41496     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41497 fi
41498
41499 if test "$wxUSE_DMALLOC" = "yes" ; then
41500     DMALLOC_LIBS="-ldmallocthcxx"
41501 fi
41502
41503 PROFILE_FLAGS=
41504 if test "$wxUSE_PROFILE" = "yes" ; then
41505     PROFILE_FLAGS=" -pg"
41506 fi
41507
41508 if test "$GCC" = "yes" ; then
41509     if test "$wxUSE_NO_RTTI" = "yes" ; then
41510         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41511     fi
41512     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41513         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41514     fi
41515     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41516         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41517     fi
41518
41519                                                 case "${host}" in
41520       powerpc*-*-aix* )
41521         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41522         ;;
41523       *-hppa* )
41524         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41525         ;;
41526     esac
41527 fi
41528
41529 OPTIMISE_CFLAGS=
41530 if test "$wxUSE_OPTIMISE" = "no" ; then
41531     if test "$GCC" = yes ; then
41532                         OPTIMISE_CFLAGS="-O0"
41533     fi
41534 else
41535     if test "$GCC" = yes ; then
41536         case "${host}" in
41537             *-pc-os2_emx | *-pc-os2-emx )
41538                                                 OPTIMISE_CFLAGS="-O2"
41539             ;;
41540             *)
41541                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41542             ;;
41543         esac
41544     else
41545         OPTIMISE_CFLAGS="-O"
41546     fi
41547 fi
41548
41549
41550 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41551     cat >>confdefs.h <<\_ACEOF
41552 #define WXWIN_COMPATIBILITY_2_4 1
41553 _ACEOF
41554
41555
41556     WXWIN_COMPATIBILITY_2_6="yes"
41557 fi
41558
41559 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41560     cat >>confdefs.h <<\_ACEOF
41561 #define WXWIN_COMPATIBILITY_2_6 1
41562 _ACEOF
41563
41564 fi
41565
41566
41567 if test "$wxUSE_GUI" = "yes"; then
41568     cat >>confdefs.h <<\_ACEOF
41569 #define wxUSE_GUI 1
41570 _ACEOF
41571
41572
41573                                             fi
41574
41575
41576 if test "$wxUSE_UNIX" = "yes"; then
41577   cat >>confdefs.h <<\_ACEOF
41578 #define wxUSE_UNIX 1
41579 _ACEOF
41580
41581 fi
41582
41583
41584 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41585
41586     HAVE_DL_FUNCS=0
41587     HAVE_SHL_FUNCS=0
41588     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41589         if test "$USE_DARWIN" = 1; then
41590                         HAVE_DL_FUNCS=1
41591         elif test "$USE_DOS" = 1; then
41592             HAVE_DL_FUNCS=0
41593         else
41594
41595 for ac_func in dlopen
41596 do
41597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41598 echo "$as_me:$LINENO: checking for $ac_func" >&5
41599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41600 if eval "test \"\${$as_ac_var+set}\" = set"; then
41601   echo $ECHO_N "(cached) $ECHO_C" >&6
41602 else
41603   cat >conftest.$ac_ext <<_ACEOF
41604 /* confdefs.h.  */
41605 _ACEOF
41606 cat confdefs.h >>conftest.$ac_ext
41607 cat >>conftest.$ac_ext <<_ACEOF
41608 /* end confdefs.h.  */
41609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41611 #define $ac_func innocuous_$ac_func
41612
41613 /* System header to define __stub macros and hopefully few prototypes,
41614     which can conflict with char $ac_func (); below.
41615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41616     <limits.h> exists even on freestanding compilers.  */
41617
41618 #ifdef __STDC__
41619 # include <limits.h>
41620 #else
41621 # include <assert.h>
41622 #endif
41623
41624 #undef $ac_func
41625
41626 /* Override any gcc2 internal prototype to avoid an error.  */
41627 #ifdef __cplusplus
41628 extern "C"
41629 {
41630 #endif
41631 /* We use char because int might match the return type of a gcc2
41632    builtin and then its argument prototype would still apply.  */
41633 char $ac_func ();
41634 /* The GNU C library defines this for functions which it implements
41635     to always fail with ENOSYS.  Some functions are actually named
41636     something starting with __ and the normal name is an alias.  */
41637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41638 choke me
41639 #else
41640 char (*f) () = $ac_func;
41641 #endif
41642 #ifdef __cplusplus
41643 }
41644 #endif
41645
41646 int
41647 main ()
41648 {
41649 return f != $ac_func;
41650   ;
41651   return 0;
41652 }
41653 _ACEOF
41654 rm -f conftest.$ac_objext conftest$ac_exeext
41655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41656   (eval $ac_link) 2>conftest.er1
41657   ac_status=$?
41658   grep -v '^ *+' conftest.er1 >conftest.err
41659   rm -f conftest.er1
41660   cat conftest.err >&5
41661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41662   (exit $ac_status); } &&
41663          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41665   (eval $ac_try) 2>&5
41666   ac_status=$?
41667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41668   (exit $ac_status); }; } &&
41669          { ac_try='test -s conftest$ac_exeext'
41670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41671   (eval $ac_try) 2>&5
41672   ac_status=$?
41673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41674   (exit $ac_status); }; }; then
41675   eval "$as_ac_var=yes"
41676 else
41677   echo "$as_me: failed program was:" >&5
41678 sed 's/^/| /' conftest.$ac_ext >&5
41679
41680 eval "$as_ac_var=no"
41681 fi
41682 rm -f conftest.err conftest.$ac_objext \
41683       conftest$ac_exeext conftest.$ac_ext
41684 fi
41685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41687 if test `eval echo '${'$as_ac_var'}'` = yes; then
41688   cat >>confdefs.h <<_ACEOF
41689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41690 _ACEOF
41691
41692                 cat >>confdefs.h <<\_ACEOF
41693 #define HAVE_DLOPEN 1
41694 _ACEOF
41695
41696                 HAVE_DL_FUNCS=1
41697
41698 else
41699
41700                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41701 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41702 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41703   echo $ECHO_N "(cached) $ECHO_C" >&6
41704 else
41705   ac_check_lib_save_LIBS=$LIBS
41706 LIBS="-ldl  $LIBS"
41707 cat >conftest.$ac_ext <<_ACEOF
41708 /* confdefs.h.  */
41709 _ACEOF
41710 cat confdefs.h >>conftest.$ac_ext
41711 cat >>conftest.$ac_ext <<_ACEOF
41712 /* end confdefs.h.  */
41713
41714 /* Override any gcc2 internal prototype to avoid an error.  */
41715 #ifdef __cplusplus
41716 extern "C"
41717 #endif
41718 /* We use char because int might match the return type of a gcc2
41719    builtin and then its argument prototype would still apply.  */
41720 char dlopen ();
41721 int
41722 main ()
41723 {
41724 dlopen ();
41725   ;
41726   return 0;
41727 }
41728 _ACEOF
41729 rm -f conftest.$ac_objext conftest$ac_exeext
41730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41731   (eval $ac_link) 2>conftest.er1
41732   ac_status=$?
41733   grep -v '^ *+' conftest.er1 >conftest.err
41734   rm -f conftest.er1
41735   cat conftest.err >&5
41736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41737   (exit $ac_status); } &&
41738          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41740   (eval $ac_try) 2>&5
41741   ac_status=$?
41742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41743   (exit $ac_status); }; } &&
41744          { ac_try='test -s conftest$ac_exeext'
41745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41746   (eval $ac_try) 2>&5
41747   ac_status=$?
41748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41749   (exit $ac_status); }; }; then
41750   ac_cv_lib_dl_dlopen=yes
41751 else
41752   echo "$as_me: failed program was:" >&5
41753 sed 's/^/| /' conftest.$ac_ext >&5
41754
41755 ac_cv_lib_dl_dlopen=no
41756 fi
41757 rm -f conftest.err conftest.$ac_objext \
41758       conftest$ac_exeext conftest.$ac_ext
41759 LIBS=$ac_check_lib_save_LIBS
41760 fi
41761 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41762 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41763 if test $ac_cv_lib_dl_dlopen = yes; then
41764
41765                                 cat >>confdefs.h <<\_ACEOF
41766 #define HAVE_DLOPEN 1
41767 _ACEOF
41768
41769                                 HAVE_DL_FUNCS=1
41770                                 DL_LINK=" -ldl$DL_LINK"
41771
41772 else
41773
41774
41775 for ac_func in shl_load
41776 do
41777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41778 echo "$as_me:$LINENO: checking for $ac_func" >&5
41779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41780 if eval "test \"\${$as_ac_var+set}\" = set"; then
41781   echo $ECHO_N "(cached) $ECHO_C" >&6
41782 else
41783   cat >conftest.$ac_ext <<_ACEOF
41784 /* confdefs.h.  */
41785 _ACEOF
41786 cat confdefs.h >>conftest.$ac_ext
41787 cat >>conftest.$ac_ext <<_ACEOF
41788 /* end confdefs.h.  */
41789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41791 #define $ac_func innocuous_$ac_func
41792
41793 /* System header to define __stub macros and hopefully few prototypes,
41794     which can conflict with char $ac_func (); below.
41795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41796     <limits.h> exists even on freestanding compilers.  */
41797
41798 #ifdef __STDC__
41799 # include <limits.h>
41800 #else
41801 # include <assert.h>
41802 #endif
41803
41804 #undef $ac_func
41805
41806 /* Override any gcc2 internal prototype to avoid an error.  */
41807 #ifdef __cplusplus
41808 extern "C"
41809 {
41810 #endif
41811 /* We use char because int might match the return type of a gcc2
41812    builtin and then its argument prototype would still apply.  */
41813 char $ac_func ();
41814 /* The GNU C library defines this for functions which it implements
41815     to always fail with ENOSYS.  Some functions are actually named
41816     something starting with __ and the normal name is an alias.  */
41817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41818 choke me
41819 #else
41820 char (*f) () = $ac_func;
41821 #endif
41822 #ifdef __cplusplus
41823 }
41824 #endif
41825
41826 int
41827 main ()
41828 {
41829 return f != $ac_func;
41830   ;
41831   return 0;
41832 }
41833 _ACEOF
41834 rm -f conftest.$ac_objext conftest$ac_exeext
41835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41836   (eval $ac_link) 2>conftest.er1
41837   ac_status=$?
41838   grep -v '^ *+' conftest.er1 >conftest.err
41839   rm -f conftest.er1
41840   cat conftest.err >&5
41841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842   (exit $ac_status); } &&
41843          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41845   (eval $ac_try) 2>&5
41846   ac_status=$?
41847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41848   (exit $ac_status); }; } &&
41849          { ac_try='test -s conftest$ac_exeext'
41850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41851   (eval $ac_try) 2>&5
41852   ac_status=$?
41853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41854   (exit $ac_status); }; }; then
41855   eval "$as_ac_var=yes"
41856 else
41857   echo "$as_me: failed program was:" >&5
41858 sed 's/^/| /' conftest.$ac_ext >&5
41859
41860 eval "$as_ac_var=no"
41861 fi
41862 rm -f conftest.err conftest.$ac_objext \
41863       conftest$ac_exeext conftest.$ac_ext
41864 fi
41865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41867 if test `eval echo '${'$as_ac_var'}'` = yes; then
41868   cat >>confdefs.h <<_ACEOF
41869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41870 _ACEOF
41871
41872                                                 cat >>confdefs.h <<\_ACEOF
41873 #define HAVE_SHL_LOAD 1
41874 _ACEOF
41875
41876                                                 HAVE_SHL_FUNCS=1
41877
41878 else
41879
41880                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41881 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41882 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41883   echo $ECHO_N "(cached) $ECHO_C" >&6
41884 else
41885   ac_check_lib_save_LIBS=$LIBS
41886 LIBS="-lshl_load  $LIBS"
41887 cat >conftest.$ac_ext <<_ACEOF
41888 /* confdefs.h.  */
41889 _ACEOF
41890 cat confdefs.h >>conftest.$ac_ext
41891 cat >>conftest.$ac_ext <<_ACEOF
41892 /* end confdefs.h.  */
41893
41894 /* Override any gcc2 internal prototype to avoid an error.  */
41895 #ifdef __cplusplus
41896 extern "C"
41897 #endif
41898 /* We use char because int might match the return type of a gcc2
41899    builtin and then its argument prototype would still apply.  */
41900 char dld ();
41901 int
41902 main ()
41903 {
41904 dld ();
41905   ;
41906   return 0;
41907 }
41908 _ACEOF
41909 rm -f conftest.$ac_objext conftest$ac_exeext
41910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41911   (eval $ac_link) 2>conftest.er1
41912   ac_status=$?
41913   grep -v '^ *+' conftest.er1 >conftest.err
41914   rm -f conftest.er1
41915   cat conftest.err >&5
41916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41917   (exit $ac_status); } &&
41918          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41920   (eval $ac_try) 2>&5
41921   ac_status=$?
41922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923   (exit $ac_status); }; } &&
41924          { ac_try='test -s conftest$ac_exeext'
41925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41926   (eval $ac_try) 2>&5
41927   ac_status=$?
41928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41929   (exit $ac_status); }; }; then
41930   ac_cv_lib_shl_load_dld=yes
41931 else
41932   echo "$as_me: failed program was:" >&5
41933 sed 's/^/| /' conftest.$ac_ext >&5
41934
41935 ac_cv_lib_shl_load_dld=no
41936 fi
41937 rm -f conftest.err conftest.$ac_objext \
41938       conftest$ac_exeext conftest.$ac_ext
41939 LIBS=$ac_check_lib_save_LIBS
41940 fi
41941 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41942 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41943 if test $ac_cv_lib_shl_load_dld = yes; then
41944
41945                                                                 HAVE_SHL_FUNCS=1
41946                                                                 DL_LINK=" -ldld$DL_LINK"
41947
41948 fi
41949
41950
41951 fi
41952 done
41953
41954
41955 fi
41956
41957
41958 fi
41959 done
41960
41961
41962                 if test "$HAVE_DL_FUNCS" = 1; then
41963
41964 for ac_func in dlerror
41965 do
41966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41967 echo "$as_me:$LINENO: checking for $ac_func" >&5
41968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41969 if eval "test \"\${$as_ac_var+set}\" = set"; then
41970   echo $ECHO_N "(cached) $ECHO_C" >&6
41971 else
41972   cat >conftest.$ac_ext <<_ACEOF
41973 /* confdefs.h.  */
41974 _ACEOF
41975 cat confdefs.h >>conftest.$ac_ext
41976 cat >>conftest.$ac_ext <<_ACEOF
41977 /* end confdefs.h.  */
41978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41980 #define $ac_func innocuous_$ac_func
41981
41982 /* System header to define __stub macros and hopefully few prototypes,
41983     which can conflict with char $ac_func (); below.
41984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41985     <limits.h> exists even on freestanding compilers.  */
41986
41987 #ifdef __STDC__
41988 # include <limits.h>
41989 #else
41990 # include <assert.h>
41991 #endif
41992
41993 #undef $ac_func
41994
41995 /* Override any gcc2 internal prototype to avoid an error.  */
41996 #ifdef __cplusplus
41997 extern "C"
41998 {
41999 #endif
42000 /* We use char because int might match the return type of a gcc2
42001    builtin and then its argument prototype would still apply.  */
42002 char $ac_func ();
42003 /* The GNU C library defines this for functions which it implements
42004     to always fail with ENOSYS.  Some functions are actually named
42005     something starting with __ and the normal name is an alias.  */
42006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42007 choke me
42008 #else
42009 char (*f) () = $ac_func;
42010 #endif
42011 #ifdef __cplusplus
42012 }
42013 #endif
42014
42015 int
42016 main ()
42017 {
42018 return f != $ac_func;
42019   ;
42020   return 0;
42021 }
42022 _ACEOF
42023 rm -f conftest.$ac_objext conftest$ac_exeext
42024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42025   (eval $ac_link) 2>conftest.er1
42026   ac_status=$?
42027   grep -v '^ *+' conftest.er1 >conftest.err
42028   rm -f conftest.er1
42029   cat conftest.err >&5
42030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42031   (exit $ac_status); } &&
42032          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42034   (eval $ac_try) 2>&5
42035   ac_status=$?
42036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42037   (exit $ac_status); }; } &&
42038          { ac_try='test -s conftest$ac_exeext'
42039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42040   (eval $ac_try) 2>&5
42041   ac_status=$?
42042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42043   (exit $ac_status); }; }; then
42044   eval "$as_ac_var=yes"
42045 else
42046   echo "$as_me: failed program was:" >&5
42047 sed 's/^/| /' conftest.$ac_ext >&5
42048
42049 eval "$as_ac_var=no"
42050 fi
42051 rm -f conftest.err conftest.$ac_objext \
42052       conftest$ac_exeext conftest.$ac_ext
42053 fi
42054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42056 if test `eval echo '${'$as_ac_var'}'` = yes; then
42057   cat >>confdefs.h <<_ACEOF
42058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42059 _ACEOF
42060  cat >>confdefs.h <<\_ACEOF
42061 #define HAVE_DLERROR 1
42062 _ACEOF
42063
42064 else
42065
42066                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42067 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42068 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42069   echo $ECHO_N "(cached) $ECHO_C" >&6
42070 else
42071   ac_check_lib_save_LIBS=$LIBS
42072 LIBS="-ldl  $LIBS"
42073 cat >conftest.$ac_ext <<_ACEOF
42074 /* confdefs.h.  */
42075 _ACEOF
42076 cat confdefs.h >>conftest.$ac_ext
42077 cat >>conftest.$ac_ext <<_ACEOF
42078 /* end confdefs.h.  */
42079
42080 /* Override any gcc2 internal prototype to avoid an error.  */
42081 #ifdef __cplusplus
42082 extern "C"
42083 #endif
42084 /* We use char because int might match the return type of a gcc2
42085    builtin and then its argument prototype would still apply.  */
42086 char dlerror ();
42087 int
42088 main ()
42089 {
42090 dlerror ();
42091   ;
42092   return 0;
42093 }
42094 _ACEOF
42095 rm -f conftest.$ac_objext conftest$ac_exeext
42096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42097   (eval $ac_link) 2>conftest.er1
42098   ac_status=$?
42099   grep -v '^ *+' conftest.er1 >conftest.err
42100   rm -f conftest.er1
42101   cat conftest.err >&5
42102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42103   (exit $ac_status); } &&
42104          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42106   (eval $ac_try) 2>&5
42107   ac_status=$?
42108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42109   (exit $ac_status); }; } &&
42110          { ac_try='test -s conftest$ac_exeext'
42111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42112   (eval $ac_try) 2>&5
42113   ac_status=$?
42114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42115   (exit $ac_status); }; }; then
42116   ac_cv_lib_dl_dlerror=yes
42117 else
42118   echo "$as_me: failed program was:" >&5
42119 sed 's/^/| /' conftest.$ac_ext >&5
42120
42121 ac_cv_lib_dl_dlerror=no
42122 fi
42123 rm -f conftest.err conftest.$ac_objext \
42124       conftest$ac_exeext conftest.$ac_ext
42125 LIBS=$ac_check_lib_save_LIBS
42126 fi
42127 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42128 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42129 if test $ac_cv_lib_dl_dlerror = yes; then
42130   cat >>confdefs.h <<\_ACEOF
42131 #define HAVE_DLERROR 1
42132 _ACEOF
42133
42134 fi
42135
42136
42137
42138 fi
42139 done
42140
42141         fi
42142         fi
42143
42144         if test "$HAVE_DL_FUNCS" = 0; then
42145             if test "$HAVE_SHL_FUNCS" = 0; then
42146               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42147                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42148 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42149                   wxUSE_DYNAMIC_LOADER=no
42150                   wxUSE_DYNLIB_CLASS=no
42151               else
42152                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42153 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42154               fi
42155             fi
42156         fi
42157     fi
42158 fi
42159
42160 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42161     cat >>confdefs.h <<\_ACEOF
42162 #define wxUSE_DYNAMIC_LOADER 1
42163 _ACEOF
42164
42165 fi
42166 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42167     cat >>confdefs.h <<\_ACEOF
42168 #define wxUSE_DYNLIB_CLASS 1
42169 _ACEOF
42170
42171 fi
42172
42173
42174
42175 if test "$wxUSE_PLUGINS" = "yes" ; then
42176     if test "$wxUSE_SHARED" = "no" ; then
42177         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42178 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42179         wxUSE_PLUGINS=no
42180     fi
42181     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42182         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42183 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42184         wxUSE_PLUGINS=no
42185     fi
42186     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42187         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42188 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42189         wxUSE_PLUGINS=no
42190     fi
42191     if test "$wxUSE_PLUGINS" = "yes" ; then
42192         cat >>confdefs.h <<\_ACEOF
42193 #define wxUSE_PLUGINS 1
42194 _ACEOF
42195
42196     fi
42197 fi
42198
42199
42200 if test "$wxUSE_STL" = "yes"; then
42201   cat >>confdefs.h <<\_ACEOF
42202 #define wxUSE_STL 1
42203 _ACEOF
42204
42205 fi
42206
42207 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42208   cat >>confdefs.h <<\_ACEOF
42209 #define wxUSE_APPLE_IEEE 1
42210 _ACEOF
42211
42212 fi
42213
42214 if test "$wxUSE_TIMER" = "yes"; then
42215   cat >>confdefs.h <<\_ACEOF
42216 #define wxUSE_TIMER 1
42217 _ACEOF
42218
42219 fi
42220
42221 if test "$USE_UNIX" = "1" ; then
42222                 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42223 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
42224 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42225   echo $ECHO_N "(cached) $ECHO_C" >&6
42226 else
42227
42228         cat >conftest.$ac_ext <<_ACEOF
42229 /* confdefs.h.  */
42230 _ACEOF
42231 cat confdefs.h >>conftest.$ac_ext
42232 cat >>conftest.$ac_ext <<_ACEOF
42233 /* end confdefs.h.  */
42234
42235                 #include <sys/ioctl.h>
42236                 #include <sys/soundcard.h>
42237
42238 int
42239 main ()
42240 {
42241
42242                 ioctl(0, SNDCTL_DSP_SPEED, 0);
42243
42244   ;
42245   return 0;
42246 }
42247 _ACEOF
42248 rm -f conftest.$ac_objext conftest$ac_exeext
42249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42250   (eval $ac_link) 2>conftest.er1
42251   ac_status=$?
42252   grep -v '^ *+' conftest.er1 >conftest.err
42253   rm -f conftest.er1
42254   cat conftest.err >&5
42255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42256   (exit $ac_status); } &&
42257          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42259   (eval $ac_try) 2>&5
42260   ac_status=$?
42261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42262   (exit $ac_status); }; } &&
42263          { ac_try='test -s conftest$ac_exeext'
42264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42265   (eval $ac_try) 2>&5
42266   ac_status=$?
42267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42268   (exit $ac_status); }; }; then
42269   ac_cv_header_sys_soundcard=yes
42270 else
42271   echo "$as_me: failed program was:" >&5
42272 sed 's/^/| /' conftest.$ac_ext >&5
42273
42274
42275                 saveLibs="$LIBS"
42276                 LIBS="$saveLibs -lossaudio"
42277                 cat >conftest.$ac_ext <<_ACEOF
42278 /* confdefs.h.  */
42279 _ACEOF
42280 cat confdefs.h >>conftest.$ac_ext
42281 cat >>conftest.$ac_ext <<_ACEOF
42282 /* end confdefs.h.  */
42283
42284                         #include <sys/ioctl.h>
42285                         #include <sys/soundcard.h>
42286
42287 int
42288 main ()
42289 {
42290
42291                         ioctl(0, SNDCTL_DSP_SPEED, 0);
42292
42293   ;
42294   return 0;
42295 }
42296 _ACEOF
42297 rm -f conftest.$ac_objext conftest$ac_exeext
42298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42299   (eval $ac_link) 2>conftest.er1
42300   ac_status=$?
42301   grep -v '^ *+' conftest.er1 >conftest.err
42302   rm -f conftest.er1
42303   cat conftest.err >&5
42304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42305   (exit $ac_status); } &&
42306          { ac_try='test -z "$ac_cxx_werror_flag"                         || 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_header_sys_soundcard=yes
42319 else
42320   echo "$as_me: failed program was:" >&5
42321 sed 's/^/| /' conftest.$ac_ext >&5
42322
42323
42324                         LIBS="$saveLibs"
42325                         ac_cv_header_sys_soundcard=no
42326
42327
42328 fi
42329 rm -f conftest.err conftest.$ac_objext \
42330       conftest$ac_exeext conftest.$ac_ext
42331
42332
42333 fi
42334 rm -f conftest.err conftest.$ac_objext \
42335       conftest$ac_exeext conftest.$ac_ext
42336
42337 fi
42338 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42339 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
42340
42341     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42342         cat >>confdefs.h <<\_ACEOF
42343 #define HAVE_SYS_SOUNDCARD_H 1
42344 _ACEOF
42345
42346     else
42347         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42348     fi
42349 fi
42350 WITH_PLUGIN_SDL=0
42351 if test "$wxUSE_SOUND" = "yes"; then
42352   if test "$USE_UNIX" = "1" ; then
42353     if test "$wxUSE_LIBSDL" != "no"; then
42354
42355 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42356 if test "${with_sdl_prefix+set}" = set; then
42357   withval="$with_sdl_prefix"
42358   sdl_prefix="$withval"
42359 else
42360   sdl_prefix=""
42361 fi;
42362
42363 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42364 if test "${with_sdl_exec_prefix+set}" = set; then
42365   withval="$with_sdl_exec_prefix"
42366   sdl_exec_prefix="$withval"
42367 else
42368   sdl_exec_prefix=""
42369 fi;
42370 # Check whether --enable-sdltest or --disable-sdltest was given.
42371 if test "${enable_sdltest+set}" = set; then
42372   enableval="$enable_sdltest"
42373
42374 else
42375   enable_sdltest=yes
42376 fi;
42377
42378   if test x$sdl_exec_prefix != x ; then
42379     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42380     if test x${SDL_CONFIG+set} != xset ; then
42381       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42382     fi
42383   fi
42384   if test x$sdl_prefix != x ; then
42385     sdl_args="$sdl_args --prefix=$sdl_prefix"
42386     if test x${SDL_CONFIG+set} != xset ; then
42387       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42388     fi
42389   fi
42390
42391   if test "x$prefix" != xNONE; then
42392     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42393   fi
42394   # Extract the first word of "sdl-config", so it can be a program name with args.
42395 set dummy sdl-config; ac_word=$2
42396 echo "$as_me:$LINENO: checking for $ac_word" >&5
42397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42398 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42399   echo $ECHO_N "(cached) $ECHO_C" >&6
42400 else
42401   case $SDL_CONFIG in
42402   [\\/]* | ?:[\\/]*)
42403   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42404   ;;
42405   *)
42406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42407 for as_dir in $PATH
42408 do
42409   IFS=$as_save_IFS
42410   test -z "$as_dir" && as_dir=.
42411   for ac_exec_ext in '' $ac_executable_extensions; do
42412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42413     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42415     break 2
42416   fi
42417 done
42418 done
42419
42420   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42421   ;;
42422 esac
42423 fi
42424 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42425
42426 if test -n "$SDL_CONFIG"; then
42427   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42428 echo "${ECHO_T}$SDL_CONFIG" >&6
42429 else
42430   echo "$as_me:$LINENO: result: no" >&5
42431 echo "${ECHO_T}no" >&6
42432 fi
42433
42434   min_sdl_version=1.2.0
42435   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42436 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42437   no_sdl=""
42438   if test "$SDL_CONFIG" = "no" ; then
42439     no_sdl=yes
42440   else
42441     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42442     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42443
42444     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42445            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42446     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42447            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42448     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42449            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42450     if test "x$enable_sdltest" = "xyes" ; then
42451       ac_save_CFLAGS="$CFLAGS"
42452       ac_save_CXXFLAGS="$CXXFLAGS"
42453       ac_save_LIBS="$LIBS"
42454       CFLAGS="$CFLAGS $SDL_CFLAGS"
42455       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42456       LIBS="$LIBS $SDL_LIBS"
42457       rm -f conf.sdltest
42458       if test "$cross_compiling" = yes; then
42459   echo $ac_n "cross compiling; assumed OK... $ac_c"
42460 else
42461   cat >conftest.$ac_ext <<_ACEOF
42462 /* confdefs.h.  */
42463 _ACEOF
42464 cat confdefs.h >>conftest.$ac_ext
42465 cat >>conftest.$ac_ext <<_ACEOF
42466 /* end confdefs.h.  */
42467
42468 #include <stdio.h>
42469 #include <stdlib.h>
42470 #include <string.h>
42471 #include "SDL.h"
42472
42473 char*
42474 my_strdup (char *str)
42475 {
42476   char *new_str;
42477
42478   if (str)
42479     {
42480       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42481       strcpy (new_str, str);
42482     }
42483   else
42484     new_str = NULL;
42485
42486   return new_str;
42487 }
42488
42489 int main (int argc, char *argv[])
42490 {
42491   int major, minor, micro;
42492   char *tmp_version;
42493
42494   /* This hangs on some systems (?)
42495   system ("touch conf.sdltest");
42496   */
42497   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42498
42499   /* HP/UX 9 (%@#!) writes to sscanf strings */
42500   tmp_version = my_strdup("$min_sdl_version");
42501   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42502      printf("%s, bad version string\n", "$min_sdl_version");
42503      exit(1);
42504    }
42505
42506    if (($sdl_major_version > major) ||
42507       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42508       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42509     {
42510       return 0;
42511     }
42512   else
42513     {
42514       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42515       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42516       printf("*** best to upgrade to the required version.\n");
42517       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42518       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42519       printf("*** config.cache before re-running configure\n");
42520       return 1;
42521     }
42522 }
42523
42524
42525 _ACEOF
42526 rm -f conftest$ac_exeext
42527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42528   (eval $ac_link) 2>&5
42529   ac_status=$?
42530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42533   (eval $ac_try) 2>&5
42534   ac_status=$?
42535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42536   (exit $ac_status); }; }; then
42537   :
42538 else
42539   echo "$as_me: program exited with status $ac_status" >&5
42540 echo "$as_me: failed program was:" >&5
42541 sed 's/^/| /' conftest.$ac_ext >&5
42542
42543 ( exit $ac_status )
42544 no_sdl=yes
42545 fi
42546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42547 fi
42548        CFLAGS="$ac_save_CFLAGS"
42549        CXXFLAGS="$ac_save_CXXFLAGS"
42550        LIBS="$ac_save_LIBS"
42551      fi
42552   fi
42553   if test "x$no_sdl" = x ; then
42554      echo "$as_me:$LINENO: result: yes" >&5
42555 echo "${ECHO_T}yes" >&6
42556
42557                     EXTRALIBS_SDL="$SDL_LIBS"
42558                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42559                     cat >>confdefs.h <<\_ACEOF
42560 #define wxUSE_LIBSDL 1
42561 _ACEOF
42562
42563
42564   else
42565      echo "$as_me:$LINENO: result: no" >&5
42566 echo "${ECHO_T}no" >&6
42567      if test "$SDL_CONFIG" = "no" ; then
42568        echo "*** The sdl-config script installed by SDL could not be found"
42569        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42570        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42571        echo "*** full path to sdl-config."
42572      else
42573        if test -f conf.sdltest ; then
42574         :
42575        else
42576           echo "*** Could not run SDL test program, checking why..."
42577           CFLAGS="$CFLAGS $SDL_CFLAGS"
42578           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42579           LIBS="$LIBS $SDL_LIBS"
42580           cat >conftest.$ac_ext <<_ACEOF
42581 /* confdefs.h.  */
42582 _ACEOF
42583 cat confdefs.h >>conftest.$ac_ext
42584 cat >>conftest.$ac_ext <<_ACEOF
42585 /* end confdefs.h.  */
42586
42587 #include <stdio.h>
42588 #include "SDL.h"
42589
42590 int main(int argc, char *argv[])
42591 { return 0; }
42592 #undef  main
42593 #define main K_and_R_C_main
42594
42595 int
42596 main ()
42597 {
42598  return 0;
42599   ;
42600   return 0;
42601 }
42602 _ACEOF
42603 rm -f conftest.$ac_objext conftest$ac_exeext
42604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42605   (eval $ac_link) 2>conftest.er1
42606   ac_status=$?
42607   grep -v '^ *+' conftest.er1 >conftest.err
42608   rm -f conftest.er1
42609   cat conftest.err >&5
42610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42611   (exit $ac_status); } &&
42612          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42614   (eval $ac_try) 2>&5
42615   ac_status=$?
42616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42617   (exit $ac_status); }; } &&
42618          { ac_try='test -s conftest$ac_exeext'
42619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42620   (eval $ac_try) 2>&5
42621   ac_status=$?
42622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42623   (exit $ac_status); }; }; then
42624    echo "*** The test program compiled, but did not run. This usually means"
42625           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42626           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42627           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42628           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42629           echo "*** is required on your system"
42630           echo "***"
42631           echo "*** If you have an old version installed, it is best to remove it, although"
42632           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42633 else
42634   echo "$as_me: failed program was:" >&5
42635 sed 's/^/| /' conftest.$ac_ext >&5
42636
42637  echo "*** The test program failed to compile or link. See the file config.log for the"
42638           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42639           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42640           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42641 fi
42642 rm -f conftest.err conftest.$ac_objext \
42643       conftest$ac_exeext conftest.$ac_ext
42644           CFLAGS="$ac_save_CFLAGS"
42645           CXXFLAGS="$ac_save_CXXFLAGS"
42646           LIBS="$ac_save_LIBS"
42647        fi
42648      fi
42649      SDL_CFLAGS=""
42650      SDL_LIBS=""
42651      wxUSE_LIBSDL="no"
42652   fi
42653
42654
42655   rm -f conf.sdltest
42656
42657       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42658         WITH_PLUGIN_SDL=1
42659       fi
42660     fi
42661   fi
42662
42663   cat >>confdefs.h <<\_ACEOF
42664 #define wxUSE_SOUND 1
42665 _ACEOF
42666
42667   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42668 fi
42669
42670 if test "$WXGTK20" = 1; then
42671     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42672         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42673
42674
42675 pkg_failed=no
42676 echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42677 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
42678
42679 if test -n "$PKG_CONFIG"; then
42680     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42681         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42682     else
42683         if test -n "$PKG_CONFIG" && \
42684     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42685   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42686   ac_status=$?
42687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42688   (exit $ac_status); }; then
42689   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42690 else
42691   pkg_failed=yes
42692 fi
42693     fi
42694 else
42695         pkg_failed=untried
42696 fi
42697 if test -n "$PKG_CONFIG"; then
42698     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42699         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42700     else
42701         if test -n "$PKG_CONFIG" && \
42702     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42703   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42704   ac_status=$?
42705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706   (exit $ac_status); }; then
42707   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42708 else
42709   pkg_failed=yes
42710 fi
42711     fi
42712 else
42713         pkg_failed=untried
42714 fi
42715
42716
42717
42718 if test $pkg_failed = yes; then
42719
42720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42721         _pkg_short_errors_supported=yes
42722 else
42723         _pkg_short_errors_supported=no
42724 fi
42725         if test $_pkg_short_errors_supported = yes; then
42726                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42727         else
42728                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42729         fi
42730         # Put the nasty error message in config.log where it belongs
42731         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42732
42733
42734                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42735 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42736                         wxUSE_LIBGNOMEPRINT="no"
42737
42738
42739 elif test $pkg_failed = untried; then
42740
42741                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42742 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42743                         wxUSE_LIBGNOMEPRINT="no"
42744
42745
42746 else
42747         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42748         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42749         echo "$as_me:$LINENO: result: yes" >&5
42750 echo "${ECHO_T}yes" >&6
42751
42752                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42753                         cat >>confdefs.h <<\_ACEOF
42754 #define wxUSE_LIBGNOMEPRINT 1
42755 _ACEOF
42756
42757
42758 fi
42759         fi
42760     fi
42761 fi
42762
42763 if test "$WXGTK20" = 1; then
42764     if test "$wxUSE_MIMETYPE" = "yes" ; then
42765         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42766
42767
42768 pkg_failed=no
42769 echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42770 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
42771
42772 if test -n "$PKG_CONFIG"; then
42773     if test -n "$GNOMEVFS_CFLAGS"; then
42774         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42775     else
42776         if test -n "$PKG_CONFIG" && \
42777     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42778   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42779   ac_status=$?
42780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42781   (exit $ac_status); }; then
42782   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42783 else
42784   pkg_failed=yes
42785 fi
42786     fi
42787 else
42788         pkg_failed=untried
42789 fi
42790 if test -n "$PKG_CONFIG"; then
42791     if test -n "$GNOMEVFS_LIBS"; then
42792         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42793     else
42794         if test -n "$PKG_CONFIG" && \
42795     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42796   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42797   ac_status=$?
42798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799   (exit $ac_status); }; then
42800   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42801 else
42802   pkg_failed=yes
42803 fi
42804     fi
42805 else
42806         pkg_failed=untried
42807 fi
42808
42809
42810
42811 if test $pkg_failed = yes; then
42812
42813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42814         _pkg_short_errors_supported=yes
42815 else
42816         _pkg_short_errors_supported=no
42817 fi
42818         if test $_pkg_short_errors_supported = yes; then
42819                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42820         else
42821                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42822         fi
42823         # Put the nasty error message in config.log where it belongs
42824         echo "$GNOMEVFS_PKG_ERRORS" >&5
42825
42826
42827                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42828 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42829                         wxUSE_LIBGNOMEVFS="no"
42830
42831
42832 elif test $pkg_failed = untried; then
42833
42834                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42835 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42836                         wxUSE_LIBGNOMEVFS="no"
42837
42838
42839 else
42840         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42841         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42842         echo "$as_me:$LINENO: result: yes" >&5
42843 echo "${ECHO_T}yes" >&6
42844
42845                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42846                         cat >>confdefs.h <<\_ACEOF
42847 #define wxUSE_LIBGNOMEVFS 1
42848 _ACEOF
42849
42850
42851 fi
42852         fi
42853     fi
42854 fi
42855
42856 if test "$WXGTK20" = 1; then
42857     if test "$wxUSE_LIBHILDON" = "yes" ; then
42858
42859 pkg_failed=no
42860 echo "$as_me:$LINENO: checking for HILDON" >&5
42861 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
42862
42863 if test -n "$PKG_CONFIG"; then
42864     if test -n "$HILDON_CFLAGS"; then
42865         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42866     else
42867         if test -n "$PKG_CONFIG" && \
42868     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42869   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42870   ac_status=$?
42871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42872   (exit $ac_status); }; then
42873   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42874 else
42875   pkg_failed=yes
42876 fi
42877     fi
42878 else
42879         pkg_failed=untried
42880 fi
42881 if test -n "$PKG_CONFIG"; then
42882     if test -n "$HILDON_LIBS"; then
42883         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42884     else
42885         if test -n "$PKG_CONFIG" && \
42886     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42887   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42888   ac_status=$?
42889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42890   (exit $ac_status); }; then
42891   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42892 else
42893   pkg_failed=yes
42894 fi
42895     fi
42896 else
42897         pkg_failed=untried
42898 fi
42899
42900
42901
42902 if test $pkg_failed = yes; then
42903
42904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42905         _pkg_short_errors_supported=yes
42906 else
42907         _pkg_short_errors_supported=no
42908 fi
42909         if test $_pkg_short_errors_supported = yes; then
42910                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42911         else
42912                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42913         fi
42914         # Put the nasty error message in config.log where it belongs
42915         echo "$HILDON_PKG_ERRORS" >&5
42916
42917
42918                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42919 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42920                         wxUSE_LIBHILDON="no"
42921
42922
42923 elif test $pkg_failed = untried; then
42924
42925                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42926 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42927                         wxUSE_LIBHILDON="no"
42928
42929
42930 else
42931         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42932         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42933         echo "$as_me:$LINENO: result: yes" >&5
42934 echo "${ECHO_T}yes" >&6
42935
42936                 EXTRALIBS_HILDON="$HILDON_LIBS"
42937                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42938                 cat >>confdefs.h <<\_ACEOF
42939 #define wxUSE_LIBHILDON 1
42940 _ACEOF
42941
42942
42943 fi
42944     fi
42945 fi
42946
42947 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42948   cat >>confdefs.h <<\_ACEOF
42949 #define wxUSE_CMDLINE_PARSER 1
42950 _ACEOF
42951
42952 fi
42953
42954 if test "$wxUSE_STOPWATCH" = "yes"; then
42955   cat >>confdefs.h <<\_ACEOF
42956 #define wxUSE_STOPWATCH 1
42957 _ACEOF
42958
42959 fi
42960
42961 if test "$wxUSE_DATETIME" = "yes"; then
42962   cat >>confdefs.h <<\_ACEOF
42963 #define wxUSE_DATETIME 1
42964 _ACEOF
42965
42966 fi
42967
42968 if test "$wxUSE_FILE" = "yes"; then
42969   cat >>confdefs.h <<\_ACEOF
42970 #define wxUSE_FILE 1
42971 _ACEOF
42972
42973 fi
42974
42975 if test "$wxUSE_FFILE" = "yes"; then
42976   cat >>confdefs.h <<\_ACEOF
42977 #define wxUSE_FFILE 1
42978 _ACEOF
42979
42980 fi
42981
42982 if test "$wxUSE_FILESYSTEM" = "yes"; then
42983   cat >>confdefs.h <<\_ACEOF
42984 #define wxUSE_FILESYSTEM 1
42985 _ACEOF
42986
42987 fi
42988
42989 if test "$wxUSE_FS_ZIP" = "yes"; then
42990   cat >>confdefs.h <<\_ACEOF
42991 #define wxUSE_FS_ZIP 1
42992 _ACEOF
42993
42994 fi
42995
42996 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42997   cat >>confdefs.h <<\_ACEOF
42998 #define wxUSE_ARCHIVE_STREAMS 1
42999 _ACEOF
43000
43001 fi
43002
43003 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43004   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43005     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43006 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43007   elif test "$wxUSE_ZLIB" = "no"; then
43008     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43009 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43010   else
43011     cat >>confdefs.h <<\_ACEOF
43012 #define wxUSE_ZIPSTREAM 1
43013 _ACEOF
43014
43015   fi
43016 fi
43017
43018 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43019   if test "$USE_UNIX" != 1; then
43020     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43021 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43022     wxUSE_ON_FATAL_EXCEPTION=no
43023   else
43024     cat >>confdefs.h <<\_ACEOF
43025 #define wxUSE_ON_FATAL_EXCEPTION 1
43026 _ACEOF
43027
43028   fi
43029 fi
43030
43031 if test "$wxUSE_STACKWALKER" = "yes"; then
43032     cat >>confdefs.h <<\_ACEOF
43033 #define wxUSE_STACKWALKER 1
43034 _ACEOF
43035
43036 fi
43037
43038 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43039     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43040         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43041 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43042         wxUSE_DEBUGREPORT=no
43043     else
43044         cat >>confdefs.h <<\_ACEOF
43045 #define wxUSE_DEBUGREPORT 1
43046 _ACEOF
43047
43048         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43049             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43050         fi
43051     fi
43052 fi
43053
43054 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43055   cat >>confdefs.h <<\_ACEOF
43056 #define wxUSE_SNGLINST_CHECKER 1
43057 _ACEOF
43058
43059 fi
43060
43061 if test "$wxUSE_BUSYINFO" = "yes"; then
43062   cat >>confdefs.h <<\_ACEOF
43063 #define wxUSE_BUSYINFO 1
43064 _ACEOF
43065
43066 fi
43067
43068 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43069   cat >>confdefs.h <<\_ACEOF
43070 #define wxUSE_STD_IOSTREAM 1
43071 _ACEOF
43072
43073 fi
43074
43075 if test "$wxUSE_STD_STRING" = "yes"; then
43076   cat >>confdefs.h <<\_ACEOF
43077 #define wxUSE_STD_STRING 1
43078 _ACEOF
43079
43080 fi
43081
43082 if test "$wxUSE_STDPATHS" = "yes"; then
43083   cat >>confdefs.h <<\_ACEOF
43084 #define wxUSE_STDPATHS 1
43085 _ACEOF
43086
43087 fi
43088
43089 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43090     cat >>confdefs.h <<\_ACEOF
43091 #define wxUSE_TEXTBUFFER 1
43092 _ACEOF
43093
43094 fi
43095
43096 if test "$wxUSE_TEXTFILE" = "yes"; then
43097   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43098     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43099 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43100   else
43101     cat >>confdefs.h <<\_ACEOF
43102 #define wxUSE_TEXTFILE 1
43103 _ACEOF
43104
43105   fi
43106 fi
43107
43108 if test "$wxUSE_CONFIG" = "yes" ; then
43109   if test "$wxUSE_TEXTFILE" != "yes"; then
43110     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43111 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43112   else
43113     cat >>confdefs.h <<\_ACEOF
43114 #define wxUSE_CONFIG 1
43115 _ACEOF
43116
43117     cat >>confdefs.h <<\_ACEOF
43118 #define wxUSE_CONFIG_NATIVE 1
43119 _ACEOF
43120
43121     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43122   fi
43123 fi
43124
43125 if test "$wxUSE_INTL" = "yes" ; then
43126   if test "$wxUSE_FILE" != "yes"; then
43127     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43128 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43129   else
43130     cat >>confdefs.h <<\_ACEOF
43131 #define wxUSE_INTL 1
43132 _ACEOF
43133
43134     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43135     GUIDIST="$GUIDIST INTL_DIST"
43136   fi
43137 fi
43138
43139 if test "$wxUSE_LOG" = "yes"; then
43140   cat >>confdefs.h <<\_ACEOF
43141 #define wxUSE_LOG 1
43142 _ACEOF
43143
43144
43145     if test "$wxUSE_LOGGUI" = "yes"; then
43146       cat >>confdefs.h <<\_ACEOF
43147 #define wxUSE_LOGGUI 1
43148 _ACEOF
43149
43150     fi
43151
43152     if test "$wxUSE_LOGWINDOW" = "yes"; then
43153       cat >>confdefs.h <<\_ACEOF
43154 #define wxUSE_LOGWINDOW 1
43155 _ACEOF
43156
43157     fi
43158
43159     if test "$wxUSE_LOGDIALOG" = "yes"; then
43160       cat >>confdefs.h <<\_ACEOF
43161 #define wxUSE_LOG_DIALOG 1
43162 _ACEOF
43163
43164     fi
43165
43166         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43167 fi
43168
43169 if test "$wxUSE_LONGLONG" = "yes"; then
43170   cat >>confdefs.h <<\_ACEOF
43171 #define wxUSE_LONGLONG 1
43172 _ACEOF
43173
43174 fi
43175
43176 if test "$wxUSE_GEOMETRY" = "yes"; then
43177   cat >>confdefs.h <<\_ACEOF
43178 #define wxUSE_GEOMETRY 1
43179 _ACEOF
43180
43181 fi
43182
43183 if test "$wxUSE_STREAMS" = "yes" ; then
43184   cat >>confdefs.h <<\_ACEOF
43185 #define wxUSE_STREAMS 1
43186 _ACEOF
43187
43188 fi
43189
43190 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43191   cat >>confdefs.h <<\_ACEOF
43192 #define wxUSE_PRINTF_POS_PARAMS 1
43193 _ACEOF
43194
43195 fi
43196
43197
43198
43199 if test "$wxUSE_DATETIME" = "yes"; then
43200
43201 for ac_func in strptime
43202 do
43203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43204 echo "$as_me:$LINENO: checking for $ac_func" >&5
43205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43206 if eval "test \"\${$as_ac_var+set}\" = set"; then
43207   echo $ECHO_N "(cached) $ECHO_C" >&6
43208 else
43209   cat >conftest.$ac_ext <<_ACEOF
43210 /* confdefs.h.  */
43211 _ACEOF
43212 cat confdefs.h >>conftest.$ac_ext
43213 cat >>conftest.$ac_ext <<_ACEOF
43214 /* end confdefs.h.  */
43215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43217 #define $ac_func innocuous_$ac_func
43218
43219 /* System header to define __stub macros and hopefully few prototypes,
43220     which can conflict with char $ac_func (); below.
43221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43222     <limits.h> exists even on freestanding compilers.  */
43223
43224 #ifdef __STDC__
43225 # include <limits.h>
43226 #else
43227 # include <assert.h>
43228 #endif
43229
43230 #undef $ac_func
43231
43232 /* Override any gcc2 internal prototype to avoid an error.  */
43233 #ifdef __cplusplus
43234 extern "C"
43235 {
43236 #endif
43237 /* We use char because int might match the return type of a gcc2
43238    builtin and then its argument prototype would still apply.  */
43239 char $ac_func ();
43240 /* The GNU C library defines this for functions which it implements
43241     to always fail with ENOSYS.  Some functions are actually named
43242     something starting with __ and the normal name is an alias.  */
43243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43244 choke me
43245 #else
43246 char (*f) () = $ac_func;
43247 #endif
43248 #ifdef __cplusplus
43249 }
43250 #endif
43251
43252 int
43253 main ()
43254 {
43255 return f != $ac_func;
43256   ;
43257   return 0;
43258 }
43259 _ACEOF
43260 rm -f conftest.$ac_objext conftest$ac_exeext
43261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43262   (eval $ac_link) 2>conftest.er1
43263   ac_status=$?
43264   grep -v '^ *+' conftest.er1 >conftest.err
43265   rm -f conftest.er1
43266   cat conftest.err >&5
43267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43268   (exit $ac_status); } &&
43269          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43271   (eval $ac_try) 2>&5
43272   ac_status=$?
43273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43274   (exit $ac_status); }; } &&
43275          { ac_try='test -s conftest$ac_exeext'
43276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43277   (eval $ac_try) 2>&5
43278   ac_status=$?
43279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43280   (exit $ac_status); }; }; then
43281   eval "$as_ac_var=yes"
43282 else
43283   echo "$as_me: failed program was:" >&5
43284 sed 's/^/| /' conftest.$ac_ext >&5
43285
43286 eval "$as_ac_var=no"
43287 fi
43288 rm -f conftest.err conftest.$ac_objext \
43289       conftest$ac_exeext conftest.$ac_ext
43290 fi
43291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43293 if test `eval echo '${'$as_ac_var'}'` = yes; then
43294   cat >>confdefs.h <<_ACEOF
43295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43296 _ACEOF
43297
43298 fi
43299 done
43300
43301     if test "$ac_cv_func_strptime" = "yes"; then
43302         echo "$as_me:$LINENO: checking for strptime declaration" >&5
43303 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43304 if test "${wx_cv_func_strptime_decl+set}" = set; then
43305   echo $ECHO_N "(cached) $ECHO_C" >&6
43306 else
43307
43308                 cat >conftest.$ac_ext <<_ACEOF
43309 /* confdefs.h.  */
43310 _ACEOF
43311 cat confdefs.h >>conftest.$ac_ext
43312 cat >>conftest.$ac_ext <<_ACEOF
43313 /* end confdefs.h.  */
43314
43315                         #include <time.h>
43316
43317 int
43318 main ()
43319 {
43320
43321                         struct tm t;
43322                         strptime("foo", "bar", &t);
43323
43324   ;
43325   return 0;
43326 }
43327 _ACEOF
43328 rm -f conftest.$ac_objext
43329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43330   (eval $ac_compile) 2>conftest.er1
43331   ac_status=$?
43332   grep -v '^ *+' conftest.er1 >conftest.err
43333   rm -f conftest.er1
43334   cat conftest.err >&5
43335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43336   (exit $ac_status); } &&
43337          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43339   (eval $ac_try) 2>&5
43340   ac_status=$?
43341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342   (exit $ac_status); }; } &&
43343          { ac_try='test -s conftest.$ac_objext'
43344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43345   (eval $ac_try) 2>&5
43346   ac_status=$?
43347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348   (exit $ac_status); }; }; then
43349   wx_cv_func_strptime_decl=yes
43350 else
43351   echo "$as_me: failed program was:" >&5
43352 sed 's/^/| /' conftest.$ac_ext >&5
43353
43354 wx_cv_func_strptime_decl=no
43355
43356 fi
43357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43358
43359
43360 fi
43361 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43362 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43363     fi
43364     if test "$wx_cv_func_strptime_decl" = "yes"; then
43365         cat >>confdefs.h <<\_ACEOF
43366 #define HAVE_STRPTIME_DECL 1
43367 _ACEOF
43368
43369     fi
43370
43371             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43372 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43373 if test "${wx_cv_var_timezone+set}" = set; then
43374   echo $ECHO_N "(cached) $ECHO_C" >&6
43375 else
43376
43377                         cat >conftest.$ac_ext <<_ACEOF
43378 /* confdefs.h.  */
43379 _ACEOF
43380 cat confdefs.h >>conftest.$ac_ext
43381 cat >>conftest.$ac_ext <<_ACEOF
43382 /* end confdefs.h.  */
43383
43384                                 #include <time.h>
43385
43386 int
43387 main ()
43388 {
43389
43390                                 int tz;
43391                                 tz = timezone;
43392
43393   ;
43394   return 0;
43395 }
43396 _ACEOF
43397 rm -f conftest.$ac_objext
43398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43399   (eval $ac_compile) 2>conftest.er1
43400   ac_status=$?
43401   grep -v '^ *+' conftest.er1 >conftest.err
43402   rm -f conftest.er1
43403   cat conftest.err >&5
43404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43405   (exit $ac_status); } &&
43406          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43408   (eval $ac_try) 2>&5
43409   ac_status=$?
43410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411   (exit $ac_status); }; } &&
43412          { ac_try='test -s conftest.$ac_objext'
43413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43414   (eval $ac_try) 2>&5
43415   ac_status=$?
43416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417   (exit $ac_status); }; }; then
43418
43419                                 wx_cv_var_timezone=timezone
43420
43421 else
43422   echo "$as_me: failed program was:" >&5
43423 sed 's/^/| /' conftest.$ac_ext >&5
43424
43425
43426                                 cat >conftest.$ac_ext <<_ACEOF
43427 /* confdefs.h.  */
43428 _ACEOF
43429 cat confdefs.h >>conftest.$ac_ext
43430 cat >>conftest.$ac_ext <<_ACEOF
43431 /* end confdefs.h.  */
43432
43433                                         #include <time.h>
43434
43435 int
43436 main ()
43437 {
43438
43439                                         int tz;
43440                                         tz = _timezone;
43441
43442   ;
43443   return 0;
43444 }
43445 _ACEOF
43446 rm -f conftest.$ac_objext
43447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43448   (eval $ac_compile) 2>conftest.er1
43449   ac_status=$?
43450   grep -v '^ *+' conftest.er1 >conftest.err
43451   rm -f conftest.er1
43452   cat conftest.err >&5
43453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43454   (exit $ac_status); } &&
43455          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43457   (eval $ac_try) 2>&5
43458   ac_status=$?
43459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43460   (exit $ac_status); }; } &&
43461          { ac_try='test -s conftest.$ac_objext'
43462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43463   (eval $ac_try) 2>&5
43464   ac_status=$?
43465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43466   (exit $ac_status); }; }; then
43467
43468                                         wx_cv_var_timezone=_timezone
43469
43470 else
43471   echo "$as_me: failed program was:" >&5
43472 sed 's/^/| /' conftest.$ac_ext >&5
43473
43474
43475                                         cat >conftest.$ac_ext <<_ACEOF
43476 /* confdefs.h.  */
43477 _ACEOF
43478 cat confdefs.h >>conftest.$ac_ext
43479 cat >>conftest.$ac_ext <<_ACEOF
43480 /* end confdefs.h.  */
43481
43482                                                 #include <time.h>
43483
43484 int
43485 main ()
43486 {
43487
43488                                                 int tz;
43489                                                 tz = __timezone;
43490
43491   ;
43492   return 0;
43493 }
43494 _ACEOF
43495 rm -f conftest.$ac_objext
43496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43497   (eval $ac_compile) 2>conftest.er1
43498   ac_status=$?
43499   grep -v '^ *+' conftest.er1 >conftest.err
43500   rm -f conftest.er1
43501   cat conftest.err >&5
43502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43503   (exit $ac_status); } &&
43504          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43506   (eval $ac_try) 2>&5
43507   ac_status=$?
43508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43509   (exit $ac_status); }; } &&
43510          { ac_try='test -s conftest.$ac_objext'
43511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43512   (eval $ac_try) 2>&5
43513   ac_status=$?
43514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43515   (exit $ac_status); }; }; then
43516
43517                                                 wx_cv_var_timezone=__timezone
43518
43519 else
43520   echo "$as_me: failed program was:" >&5
43521 sed 's/^/| /' conftest.$ac_ext >&5
43522
43523
43524                                                 if test "$USE_DOS" = 0 ; then
43525                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43526 echo "$as_me: WARNING: no timezone variable" >&2;}
43527                                                 fi
43528
43529
43530 fi
43531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43532
43533
43534 fi
43535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43536
43537
43538 fi
43539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43540
43541
43542 fi
43543 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43544 echo "${ECHO_T}$wx_cv_var_timezone" >&6
43545
43546         if test "x$wx_cv_var_timezone" != x ; then
43547         cat >>confdefs.h <<_ACEOF
43548 #define WX_TIMEZONE $wx_cv_var_timezone
43549 _ACEOF
43550
43551     fi
43552
43553
43554 for ac_func in localtime
43555 do
43556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43557 echo "$as_me:$LINENO: checking for $ac_func" >&5
43558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43559 if eval "test \"\${$as_ac_var+set}\" = set"; then
43560   echo $ECHO_N "(cached) $ECHO_C" >&6
43561 else
43562   cat >conftest.$ac_ext <<_ACEOF
43563 /* confdefs.h.  */
43564 _ACEOF
43565 cat confdefs.h >>conftest.$ac_ext
43566 cat >>conftest.$ac_ext <<_ACEOF
43567 /* end confdefs.h.  */
43568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43570 #define $ac_func innocuous_$ac_func
43571
43572 /* System header to define __stub macros and hopefully few prototypes,
43573     which can conflict with char $ac_func (); below.
43574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43575     <limits.h> exists even on freestanding compilers.  */
43576
43577 #ifdef __STDC__
43578 # include <limits.h>
43579 #else
43580 # include <assert.h>
43581 #endif
43582
43583 #undef $ac_func
43584
43585 /* Override any gcc2 internal prototype to avoid an error.  */
43586 #ifdef __cplusplus
43587 extern "C"
43588 {
43589 #endif
43590 /* We use char because int might match the return type of a gcc2
43591    builtin and then its argument prototype would still apply.  */
43592 char $ac_func ();
43593 /* The GNU C library defines this for functions which it implements
43594     to always fail with ENOSYS.  Some functions are actually named
43595     something starting with __ and the normal name is an alias.  */
43596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43597 choke me
43598 #else
43599 char (*f) () = $ac_func;
43600 #endif
43601 #ifdef __cplusplus
43602 }
43603 #endif
43604
43605 int
43606 main ()
43607 {
43608 return f != $ac_func;
43609   ;
43610   return 0;
43611 }
43612 _ACEOF
43613 rm -f conftest.$ac_objext conftest$ac_exeext
43614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43615   (eval $ac_link) 2>conftest.er1
43616   ac_status=$?
43617   grep -v '^ *+' conftest.er1 >conftest.err
43618   rm -f conftest.er1
43619   cat conftest.err >&5
43620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43621   (exit $ac_status); } &&
43622          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43624   (eval $ac_try) 2>&5
43625   ac_status=$?
43626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43627   (exit $ac_status); }; } &&
43628          { ac_try='test -s conftest$ac_exeext'
43629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43630   (eval $ac_try) 2>&5
43631   ac_status=$?
43632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43633   (exit $ac_status); }; }; then
43634   eval "$as_ac_var=yes"
43635 else
43636   echo "$as_me: failed program was:" >&5
43637 sed 's/^/| /' conftest.$ac_ext >&5
43638
43639 eval "$as_ac_var=no"
43640 fi
43641 rm -f conftest.err conftest.$ac_objext \
43642       conftest$ac_exeext conftest.$ac_ext
43643 fi
43644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43646 if test `eval echo '${'$as_ac_var'}'` = yes; then
43647   cat >>confdefs.h <<_ACEOF
43648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43649 _ACEOF
43650
43651 fi
43652 done
43653
43654
43655     if test "$ac_cv_func_localtime" = "yes"; then
43656         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43657 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43658 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43659   echo $ECHO_N "(cached) $ECHO_C" >&6
43660 else
43661
43662             cat >conftest.$ac_ext <<_ACEOF
43663 /* confdefs.h.  */
43664 _ACEOF
43665 cat confdefs.h >>conftest.$ac_ext
43666 cat >>conftest.$ac_ext <<_ACEOF
43667 /* end confdefs.h.  */
43668
43669                     #include <time.h>
43670
43671 int
43672 main ()
43673 {
43674
43675                     struct tm tm;
43676                     tm.tm_gmtoff++;
43677
43678   ;
43679   return 0;
43680 }
43681 _ACEOF
43682 rm -f conftest.$ac_objext
43683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43684   (eval $ac_compile) 2>conftest.er1
43685   ac_status=$?
43686   grep -v '^ *+' conftest.er1 >conftest.err
43687   rm -f conftest.er1
43688   cat conftest.err >&5
43689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43690   (exit $ac_status); } &&
43691          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43693   (eval $ac_try) 2>&5
43694   ac_status=$?
43695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43696   (exit $ac_status); }; } &&
43697          { ac_try='test -s conftest.$ac_objext'
43698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43699   (eval $ac_try) 2>&5
43700   ac_status=$?
43701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43702   (exit $ac_status); }; }; then
43703
43704                     wx_cv_struct_tm_has_gmtoff=yes
43705
43706 else
43707   echo "$as_me: failed program was:" >&5
43708 sed 's/^/| /' conftest.$ac_ext >&5
43709
43710 wx_cv_struct_tm_has_gmtoff=no
43711
43712 fi
43713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43714
43715 fi
43716 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43717 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43718     fi
43719
43720     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43721         cat >>confdefs.h <<\_ACEOF
43722 #define WX_GMTOFF_IN_TM 1
43723 _ACEOF
43724
43725     fi
43726
43727
43728
43729 for ac_func in gettimeofday ftime
43730 do
43731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43732 echo "$as_me:$LINENO: checking for $ac_func" >&5
43733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43734 if eval "test \"\${$as_ac_var+set}\" = set"; then
43735   echo $ECHO_N "(cached) $ECHO_C" >&6
43736 else
43737   cat >conftest.$ac_ext <<_ACEOF
43738 /* confdefs.h.  */
43739 _ACEOF
43740 cat confdefs.h >>conftest.$ac_ext
43741 cat >>conftest.$ac_ext <<_ACEOF
43742 /* end confdefs.h.  */
43743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43745 #define $ac_func innocuous_$ac_func
43746
43747 /* System header to define __stub macros and hopefully few prototypes,
43748     which can conflict with char $ac_func (); below.
43749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43750     <limits.h> exists even on freestanding compilers.  */
43751
43752 #ifdef __STDC__
43753 # include <limits.h>
43754 #else
43755 # include <assert.h>
43756 #endif
43757
43758 #undef $ac_func
43759
43760 /* Override any gcc2 internal prototype to avoid an error.  */
43761 #ifdef __cplusplus
43762 extern "C"
43763 {
43764 #endif
43765 /* We use char because int might match the return type of a gcc2
43766    builtin and then its argument prototype would still apply.  */
43767 char $ac_func ();
43768 /* The GNU C library defines this for functions which it implements
43769     to always fail with ENOSYS.  Some functions are actually named
43770     something starting with __ and the normal name is an alias.  */
43771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43772 choke me
43773 #else
43774 char (*f) () = $ac_func;
43775 #endif
43776 #ifdef __cplusplus
43777 }
43778 #endif
43779
43780 int
43781 main ()
43782 {
43783 return f != $ac_func;
43784   ;
43785   return 0;
43786 }
43787 _ACEOF
43788 rm -f conftest.$ac_objext conftest$ac_exeext
43789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43790   (eval $ac_link) 2>conftest.er1
43791   ac_status=$?
43792   grep -v '^ *+' conftest.er1 >conftest.err
43793   rm -f conftest.er1
43794   cat conftest.err >&5
43795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43796   (exit $ac_status); } &&
43797          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43799   (eval $ac_try) 2>&5
43800   ac_status=$?
43801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43802   (exit $ac_status); }; } &&
43803          { ac_try='test -s conftest$ac_exeext'
43804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43805   (eval $ac_try) 2>&5
43806   ac_status=$?
43807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43808   (exit $ac_status); }; }; then
43809   eval "$as_ac_var=yes"
43810 else
43811   echo "$as_me: failed program was:" >&5
43812 sed 's/^/| /' conftest.$ac_ext >&5
43813
43814 eval "$as_ac_var=no"
43815 fi
43816 rm -f conftest.err conftest.$ac_objext \
43817       conftest$ac_exeext conftest.$ac_ext
43818 fi
43819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43821 if test `eval echo '${'$as_ac_var'}'` = yes; then
43822   cat >>confdefs.h <<_ACEOF
43823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43824 _ACEOF
43825  break
43826 fi
43827 done
43828
43829
43830     if test "$ac_cv_func_gettimeofday" = "yes"; then
43831         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43832 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43833 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43834   echo $ECHO_N "(cached) $ECHO_C" >&6
43835 else
43836
43837                         cat >conftest.$ac_ext <<_ACEOF
43838 /* confdefs.h.  */
43839 _ACEOF
43840 cat confdefs.h >>conftest.$ac_ext
43841 cat >>conftest.$ac_ext <<_ACEOF
43842 /* end confdefs.h.  */
43843
43844                     #include <sys/time.h>
43845                     #include <unistd.h>
43846
43847 int
43848 main ()
43849 {
43850
43851                     struct timeval tv;
43852                     gettimeofday(&tv, NULL);
43853
43854   ;
43855   return 0;
43856 }
43857 _ACEOF
43858 rm -f conftest.$ac_objext
43859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43860   (eval $ac_compile) 2>conftest.er1
43861   ac_status=$?
43862   grep -v '^ *+' conftest.er1 >conftest.err
43863   rm -f conftest.er1
43864   cat conftest.err >&5
43865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43866   (exit $ac_status); } &&
43867          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43869   (eval $ac_try) 2>&5
43870   ac_status=$?
43871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43872   (exit $ac_status); }; } &&
43873          { ac_try='test -s conftest.$ac_objext'
43874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43875   (eval $ac_try) 2>&5
43876   ac_status=$?
43877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43878   (exit $ac_status); }; }; then
43879   wx_cv_func_gettimeofday_has_2_args=yes
43880 else
43881   echo "$as_me: failed program was:" >&5
43882 sed 's/^/| /' conftest.$ac_ext >&5
43883
43884 cat >conftest.$ac_ext <<_ACEOF
43885 /* confdefs.h.  */
43886 _ACEOF
43887 cat confdefs.h >>conftest.$ac_ext
43888 cat >>conftest.$ac_ext <<_ACEOF
43889 /* end confdefs.h.  */
43890
43891                         #include <sys/time.h>
43892                         #include <unistd.h>
43893
43894 int
43895 main ()
43896 {
43897
43898                         struct timeval tv;
43899                         gettimeofday(&tv);
43900
43901   ;
43902   return 0;
43903 }
43904 _ACEOF
43905 rm -f conftest.$ac_objext
43906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43907   (eval $ac_compile) 2>conftest.er1
43908   ac_status=$?
43909   grep -v '^ *+' conftest.er1 >conftest.err
43910   rm -f conftest.er1
43911   cat conftest.err >&5
43912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43913   (exit $ac_status); } &&
43914          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43916   (eval $ac_try) 2>&5
43917   ac_status=$?
43918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43919   (exit $ac_status); }; } &&
43920          { ac_try='test -s conftest.$ac_objext'
43921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43922   (eval $ac_try) 2>&5
43923   ac_status=$?
43924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43925   (exit $ac_status); }; }; then
43926   wx_cv_func_gettimeofday_has_2_args=no
43927 else
43928   echo "$as_me: failed program was:" >&5
43929 sed 's/^/| /' conftest.$ac_ext >&5
43930
43931
43932                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43933 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43934                         wx_cv_func_gettimeofday_has_2_args=unknown
43935
43936
43937 fi
43938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43939
43940 fi
43941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43942
43943 fi
43944 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43945 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43946
43947         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43948             cat >>confdefs.h <<\_ACEOF
43949 #define WX_GETTIMEOFDAY_NO_TZ 1
43950 _ACEOF
43951
43952         fi
43953     fi
43954
43955     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43956 fi
43957
43958
43959 if test "$wxUSE_SOCKETS" = "yes"; then
43960     if test "$wxUSE_MGL" = "1"; then
43961         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43962 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43963         wxUSE_SOCKETS="no"
43964     fi
43965 fi
43966
43967 if test "$wxUSE_SOCKETS" = "yes"; then
43968         if test "$TOOLKIT" != "MSW"; then
43969                 echo "$as_me:$LINENO: checking for socket" >&5
43970 echo $ECHO_N "checking for socket... $ECHO_C" >&6
43971 if test "${ac_cv_func_socket+set}" = set; then
43972   echo $ECHO_N "(cached) $ECHO_C" >&6
43973 else
43974   cat >conftest.$ac_ext <<_ACEOF
43975 /* confdefs.h.  */
43976 _ACEOF
43977 cat confdefs.h >>conftest.$ac_ext
43978 cat >>conftest.$ac_ext <<_ACEOF
43979 /* end confdefs.h.  */
43980 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
43981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43982 #define socket innocuous_socket
43983
43984 /* System header to define __stub macros and hopefully few prototypes,
43985     which can conflict with char socket (); below.
43986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43987     <limits.h> exists even on freestanding compilers.  */
43988
43989 #ifdef __STDC__
43990 # include <limits.h>
43991 #else
43992 # include <assert.h>
43993 #endif
43994
43995 #undef socket
43996
43997 /* Override any gcc2 internal prototype to avoid an error.  */
43998 #ifdef __cplusplus
43999 extern "C"
44000 {
44001 #endif
44002 /* We use char because int might match the return type of a gcc2
44003    builtin and then its argument prototype would still apply.  */
44004 char socket ();
44005 /* The GNU C library defines this for functions which it implements
44006     to always fail with ENOSYS.  Some functions are actually named
44007     something starting with __ and the normal name is an alias.  */
44008 #if defined (__stub_socket) || defined (__stub___socket)
44009 choke me
44010 #else
44011 char (*f) () = socket;
44012 #endif
44013 #ifdef __cplusplus
44014 }
44015 #endif
44016
44017 int
44018 main ()
44019 {
44020 return f != socket;
44021   ;
44022   return 0;
44023 }
44024 _ACEOF
44025 rm -f conftest.$ac_objext conftest$ac_exeext
44026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44027   (eval $ac_link) 2>conftest.er1
44028   ac_status=$?
44029   grep -v '^ *+' conftest.er1 >conftest.err
44030   rm -f conftest.er1
44031   cat conftest.err >&5
44032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44033   (exit $ac_status); } &&
44034          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44036   (eval $ac_try) 2>&5
44037   ac_status=$?
44038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039   (exit $ac_status); }; } &&
44040          { ac_try='test -s conftest$ac_exeext'
44041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44042   (eval $ac_try) 2>&5
44043   ac_status=$?
44044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44045   (exit $ac_status); }; }; then
44046   ac_cv_func_socket=yes
44047 else
44048   echo "$as_me: failed program was:" >&5
44049 sed 's/^/| /' conftest.$ac_ext >&5
44050
44051 ac_cv_func_socket=no
44052 fi
44053 rm -f conftest.err conftest.$ac_objext \
44054       conftest$ac_exeext conftest.$ac_ext
44055 fi
44056 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44057 echo "${ECHO_T}$ac_cv_func_socket" >&6
44058 if test $ac_cv_func_socket = yes; then
44059   :
44060 else
44061
44062                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44063 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44064 if test "${ac_cv_lib_socket_socket+set}" = set; then
44065   echo $ECHO_N "(cached) $ECHO_C" >&6
44066 else
44067   ac_check_lib_save_LIBS=$LIBS
44068 LIBS="-lsocket  $LIBS"
44069 cat >conftest.$ac_ext <<_ACEOF
44070 /* confdefs.h.  */
44071 _ACEOF
44072 cat confdefs.h >>conftest.$ac_ext
44073 cat >>conftest.$ac_ext <<_ACEOF
44074 /* end confdefs.h.  */
44075
44076 /* Override any gcc2 internal prototype to avoid an error.  */
44077 #ifdef __cplusplus
44078 extern "C"
44079 #endif
44080 /* We use char because int might match the return type of a gcc2
44081    builtin and then its argument prototype would still apply.  */
44082 char socket ();
44083 int
44084 main ()
44085 {
44086 socket ();
44087   ;
44088   return 0;
44089 }
44090 _ACEOF
44091 rm -f conftest.$ac_objext conftest$ac_exeext
44092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44093   (eval $ac_link) 2>conftest.er1
44094   ac_status=$?
44095   grep -v '^ *+' conftest.er1 >conftest.err
44096   rm -f conftest.er1
44097   cat conftest.err >&5
44098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44099   (exit $ac_status); } &&
44100          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44102   (eval $ac_try) 2>&5
44103   ac_status=$?
44104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44105   (exit $ac_status); }; } &&
44106          { ac_try='test -s conftest$ac_exeext'
44107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44108   (eval $ac_try) 2>&5
44109   ac_status=$?
44110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44111   (exit $ac_status); }; }; then
44112   ac_cv_lib_socket_socket=yes
44113 else
44114   echo "$as_me: failed program was:" >&5
44115 sed 's/^/| /' conftest.$ac_ext >&5
44116
44117 ac_cv_lib_socket_socket=no
44118 fi
44119 rm -f conftest.err conftest.$ac_objext \
44120       conftest$ac_exeext conftest.$ac_ext
44121 LIBS=$ac_check_lib_save_LIBS
44122 fi
44123 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44124 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44125 if test $ac_cv_lib_socket_socket = yes; then
44126   if test "$INET_LINK" != " -lsocket"; then
44127                         INET_LINK="$INET_LINK -lsocket"
44128                     fi
44129 else
44130
44131                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44132 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44133                         wxUSE_SOCKETS=no
44134
44135
44136 fi
44137
44138
44139
44140 fi
44141
44142     fi
44143 fi
44144
44145 if test "$wxUSE_SOCKETS" = "yes" ; then
44146                 if test "$TOOLKIT" != "MSW"; then
44147                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44148 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44149 if test "${wx_cv_type_getsockname3+set}" = set; then
44150   echo $ECHO_N "(cached) $ECHO_C" >&6
44151 else
44152
44153                 cat >conftest.$ac_ext <<_ACEOF
44154 /* confdefs.h.  */
44155 _ACEOF
44156 cat confdefs.h >>conftest.$ac_ext
44157 cat >>conftest.$ac_ext <<_ACEOF
44158 /* end confdefs.h.  */
44159
44160                         #include <sys/types.h>
44161                         #include <sys/socket.h>
44162
44163 int
44164 main ()
44165 {
44166
44167                         socklen_t len;
44168                         getsockname(0, 0, &len);
44169
44170   ;
44171   return 0;
44172 }
44173 _ACEOF
44174 rm -f conftest.$ac_objext
44175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44176   (eval $ac_compile) 2>conftest.er1
44177   ac_status=$?
44178   grep -v '^ *+' conftest.er1 >conftest.err
44179   rm -f conftest.er1
44180   cat conftest.err >&5
44181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44182   (exit $ac_status); } &&
44183          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44185   (eval $ac_try) 2>&5
44186   ac_status=$?
44187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44188   (exit $ac_status); }; } &&
44189          { ac_try='test -s conftest.$ac_objext'
44190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44191   (eval $ac_try) 2>&5
44192   ac_status=$?
44193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44194   (exit $ac_status); }; }; then
44195   wx_cv_type_getsockname3=socklen_t
44196 else
44197   echo "$as_me: failed program was:" >&5
44198 sed 's/^/| /' conftest.$ac_ext >&5
44199
44200
44201                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
44202                         if test "$GCC" = yes ; then
44203                             CXXFLAGS="-Werror $CXXFLAGS"
44204                         fi
44205
44206                         cat >conftest.$ac_ext <<_ACEOF
44207 /* confdefs.h.  */
44208 _ACEOF
44209 cat confdefs.h >>conftest.$ac_ext
44210 cat >>conftest.$ac_ext <<_ACEOF
44211 /* end confdefs.h.  */
44212
44213                                 #include <sys/types.h>
44214                                 #include <sys/socket.h>
44215
44216 int
44217 main ()
44218 {
44219
44220                                 size_t len;
44221                                 getsockname(0, 0, &len);
44222
44223   ;
44224   return 0;
44225 }
44226 _ACEOF
44227 rm -f conftest.$ac_objext
44228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44229   (eval $ac_compile) 2>conftest.er1
44230   ac_status=$?
44231   grep -v '^ *+' conftest.er1 >conftest.err
44232   rm -f conftest.er1
44233   cat conftest.err >&5
44234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235   (exit $ac_status); } &&
44236          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44238   (eval $ac_try) 2>&5
44239   ac_status=$?
44240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44241   (exit $ac_status); }; } &&
44242          { ac_try='test -s conftest.$ac_objext'
44243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44244   (eval $ac_try) 2>&5
44245   ac_status=$?
44246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44247   (exit $ac_status); }; }; then
44248   wx_cv_type_getsockname3=size_t
44249 else
44250   echo "$as_me: failed program was:" >&5
44251 sed 's/^/| /' conftest.$ac_ext >&5
44252
44253 cat >conftest.$ac_ext <<_ACEOF
44254 /* confdefs.h.  */
44255 _ACEOF
44256 cat confdefs.h >>conftest.$ac_ext
44257 cat >>conftest.$ac_ext <<_ACEOF
44258 /* end confdefs.h.  */
44259
44260                                     #include <sys/types.h>
44261                                     #include <sys/socket.h>
44262
44263 int
44264 main ()
44265 {
44266
44267                                     int len;
44268                                     getsockname(0, 0, &len);
44269
44270   ;
44271   return 0;
44272 }
44273 _ACEOF
44274 rm -f conftest.$ac_objext
44275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44276   (eval $ac_compile) 2>conftest.er1
44277   ac_status=$?
44278   grep -v '^ *+' conftest.er1 >conftest.err
44279   rm -f conftest.er1
44280   cat conftest.err >&5
44281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44282   (exit $ac_status); } &&
44283          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44285   (eval $ac_try) 2>&5
44286   ac_status=$?
44287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44288   (exit $ac_status); }; } &&
44289          { ac_try='test -s conftest.$ac_objext'
44290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44291   (eval $ac_try) 2>&5
44292   ac_status=$?
44293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44294   (exit $ac_status); }; }; then
44295   wx_cv_type_getsockname3=int
44296 else
44297   echo "$as_me: failed program was:" >&5
44298 sed 's/^/| /' conftest.$ac_ext >&5
44299
44300 wx_cv_type_getsockname3=unknown
44301
44302 fi
44303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44304
44305 fi
44306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44307
44308                         CXXFLAGS="$CXXFLAGS_OLD"
44309
44310
44311 fi
44312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44313
44314 fi
44315 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44316 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44317
44318         if test "$wx_cv_type_getsockname3" = "unknown"; then
44319             wxUSE_SOCKETS=no
44320             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44321 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44322         else
44323             cat >>confdefs.h <<_ACEOF
44324 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44325 _ACEOF
44326
44327         fi
44328                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44329 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44330 if test "${wx_cv_type_getsockopt5+set}" = set; then
44331   echo $ECHO_N "(cached) $ECHO_C" >&6
44332 else
44333
44334                 cat >conftest.$ac_ext <<_ACEOF
44335 /* confdefs.h.  */
44336 _ACEOF
44337 cat confdefs.h >>conftest.$ac_ext
44338 cat >>conftest.$ac_ext <<_ACEOF
44339 /* end confdefs.h.  */
44340
44341                         #include <sys/types.h>
44342                         #include <sys/socket.h>
44343
44344 int
44345 main ()
44346 {
44347
44348                         socklen_t len;
44349                         getsockopt(0, 0, 0, 0, &len);
44350
44351   ;
44352   return 0;
44353 }
44354 _ACEOF
44355 rm -f conftest.$ac_objext
44356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44357   (eval $ac_compile) 2>conftest.er1
44358   ac_status=$?
44359   grep -v '^ *+' conftest.er1 >conftest.err
44360   rm -f conftest.er1
44361   cat conftest.err >&5
44362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44363   (exit $ac_status); } &&
44364          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44366   (eval $ac_try) 2>&5
44367   ac_status=$?
44368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44369   (exit $ac_status); }; } &&
44370          { ac_try='test -s conftest.$ac_objext'
44371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44372   (eval $ac_try) 2>&5
44373   ac_status=$?
44374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44375   (exit $ac_status); }; }; then
44376   wx_cv_type_getsockopt5=socklen_t
44377 else
44378   echo "$as_me: failed program was:" >&5
44379 sed 's/^/| /' conftest.$ac_ext >&5
44380
44381
44382                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
44383                         if test "$GCC" = yes ; then
44384                             CXXFLAGS="-Werror $CXXFLAGS"
44385                         fi
44386
44387                         cat >conftest.$ac_ext <<_ACEOF
44388 /* confdefs.h.  */
44389 _ACEOF
44390 cat confdefs.h >>conftest.$ac_ext
44391 cat >>conftest.$ac_ext <<_ACEOF
44392 /* end confdefs.h.  */
44393
44394                                 #include <sys/types.h>
44395                                 #include <sys/socket.h>
44396
44397 int
44398 main ()
44399 {
44400
44401                                 size_t len;
44402                                 getsockopt(0, 0, 0, 0, &len);
44403
44404   ;
44405   return 0;
44406 }
44407 _ACEOF
44408 rm -f conftest.$ac_objext
44409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44410   (eval $ac_compile) 2>conftest.er1
44411   ac_status=$?
44412   grep -v '^ *+' conftest.er1 >conftest.err
44413   rm -f conftest.er1
44414   cat conftest.err >&5
44415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44416   (exit $ac_status); } &&
44417          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44419   (eval $ac_try) 2>&5
44420   ac_status=$?
44421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44422   (exit $ac_status); }; } &&
44423          { ac_try='test -s conftest.$ac_objext'
44424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44425   (eval $ac_try) 2>&5
44426   ac_status=$?
44427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44428   (exit $ac_status); }; }; then
44429   wx_cv_type_getsockopt5=size_t
44430 else
44431   echo "$as_me: failed program was:" >&5
44432 sed 's/^/| /' conftest.$ac_ext >&5
44433
44434 cat >conftest.$ac_ext <<_ACEOF
44435 /* confdefs.h.  */
44436 _ACEOF
44437 cat confdefs.h >>conftest.$ac_ext
44438 cat >>conftest.$ac_ext <<_ACEOF
44439 /* end confdefs.h.  */
44440
44441                                     #include <sys/types.h>
44442                                     #include <sys/socket.h>
44443
44444 int
44445 main ()
44446 {
44447
44448                                     int len;
44449                                     getsockopt(0, 0, 0, 0, &len);
44450
44451   ;
44452   return 0;
44453 }
44454 _ACEOF
44455 rm -f conftest.$ac_objext
44456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44457   (eval $ac_compile) 2>conftest.er1
44458   ac_status=$?
44459   grep -v '^ *+' conftest.er1 >conftest.err
44460   rm -f conftest.er1
44461   cat conftest.err >&5
44462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44463   (exit $ac_status); } &&
44464          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44466   (eval $ac_try) 2>&5
44467   ac_status=$?
44468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44469   (exit $ac_status); }; } &&
44470          { ac_try='test -s conftest.$ac_objext'
44471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44472   (eval $ac_try) 2>&5
44473   ac_status=$?
44474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44475   (exit $ac_status); }; }; then
44476   wx_cv_type_getsockopt5=int
44477 else
44478   echo "$as_me: failed program was:" >&5
44479 sed 's/^/| /' conftest.$ac_ext >&5
44480
44481 wx_cv_type_getsockopt5=unknown
44482
44483 fi
44484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44485
44486 fi
44487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44488
44489                         CXXFLAGS="$CXXFLAGS_OLD"
44490
44491
44492 fi
44493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44494
44495 fi
44496 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44497 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44498
44499         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44500             wxUSE_SOCKETS=no
44501             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44502 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44503         else
44504             cat >>confdefs.h <<_ACEOF
44505 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44506 _ACEOF
44507
44508         fi
44509     fi
44510 fi
44511
44512 if test "$wxUSE_SOCKETS" = "yes" ; then
44513     cat >>confdefs.h <<\_ACEOF
44514 #define wxUSE_SOCKETS 1
44515 _ACEOF
44516
44517     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44518 fi
44519
44520 if test "$wxUSE_PROTOCOL" = "yes"; then
44521     if test "$wxUSE_SOCKETS" != "yes"; then
44522         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44523 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44524         wxUSE_PROTOCOL=no
44525     fi
44526 fi
44527
44528 if test "$wxUSE_PROTOCOL" = "yes"; then
44529     cat >>confdefs.h <<\_ACEOF
44530 #define wxUSE_PROTOCOL 1
44531 _ACEOF
44532
44533
44534     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44535         cat >>confdefs.h <<\_ACEOF
44536 #define wxUSE_PROTOCOL_HTTP 1
44537 _ACEOF
44538
44539     fi
44540     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44541         cat >>confdefs.h <<\_ACEOF
44542 #define wxUSE_PROTOCOL_FTP 1
44543 _ACEOF
44544
44545     fi
44546     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44547         cat >>confdefs.h <<\_ACEOF
44548 #define wxUSE_PROTOCOL_FILE 1
44549 _ACEOF
44550
44551     fi
44552 else
44553     if test "$wxUSE_FS_INET" = "yes"; then
44554         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44555 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44556         wxUSE_FS_INET="no"
44557     fi
44558 fi
44559
44560 if test "$wxUSE_URL" = "yes"; then
44561     if test "$wxUSE_PROTOCOL" != "yes"; then
44562         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44563 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44564         wxUSE_URL=no
44565     fi
44566     if test "$wxUSE_URL" = "yes"; then
44567         cat >>confdefs.h <<\_ACEOF
44568 #define wxUSE_URL 1
44569 _ACEOF
44570
44571     fi
44572 fi
44573
44574 if test "$wxUSE_VARIANT" = "yes"; then
44575     cat >>confdefs.h <<\_ACEOF
44576 #define wxUSE_VARIANT 1
44577 _ACEOF
44578
44579 fi
44580
44581 if test "$wxUSE_FS_INET" = "yes"; then
44582   cat >>confdefs.h <<\_ACEOF
44583 #define wxUSE_FS_INET 1
44584 _ACEOF
44585
44586 fi
44587
44588
44589 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44590     wxUSE_JOYSTICK=no
44591
44592         if test "$TOOLKIT" = "MSW"; then
44593         wxUSE_JOYSTICK=yes
44594
44595         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44596         if test "$USE_DARWIN" = 1; then
44597                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44598 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
44599             cat >conftest.$ac_ext <<_ACEOF
44600 /* confdefs.h.  */
44601 _ACEOF
44602 cat confdefs.h >>conftest.$ac_ext
44603 cat >>conftest.$ac_ext <<_ACEOF
44604 /* end confdefs.h.  */
44605  #include <IOKit/hid/IOHIDLib.h>
44606 int
44607 main ()
44608 {
44609  IOHIDQueueInterface *qi = NULL;
44610                               IOHIDCallbackFunction cb = NULL;
44611                               qi->setEventCallout(NULL, cb, NULL, NULL);
44612   ;
44613   return 0;
44614 }
44615 _ACEOF
44616 rm -f conftest.$ac_objext
44617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44618   (eval $ac_compile) 2>conftest.er1
44619   ac_status=$?
44620   grep -v '^ *+' conftest.er1 >conftest.err
44621   rm -f conftest.er1
44622   cat conftest.err >&5
44623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44624   (exit $ac_status); } &&
44625          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44627   (eval $ac_try) 2>&5
44628   ac_status=$?
44629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44630   (exit $ac_status); }; } &&
44631          { ac_try='test -s conftest.$ac_objext'
44632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44633   (eval $ac_try) 2>&5
44634   ac_status=$?
44635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44636   (exit $ac_status); }; }; then
44637    wxUSE_JOYSTICK=yes
44638
44639 else
44640   echo "$as_me: failed program was:" >&5
44641 sed 's/^/| /' conftest.$ac_ext >&5
44642
44643 fi
44644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44645             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44646 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44647         fi
44648
44649         else
44650
44651 for ac_header in linux/joystick.h
44652 do
44653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44655   echo "$as_me:$LINENO: checking for $ac_header" >&5
44656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44658   echo $ECHO_N "(cached) $ECHO_C" >&6
44659 fi
44660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44662 else
44663   # Is the header compilable?
44664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44666 cat >conftest.$ac_ext <<_ACEOF
44667 /* confdefs.h.  */
44668 _ACEOF
44669 cat confdefs.h >>conftest.$ac_ext
44670 cat >>conftest.$ac_ext <<_ACEOF
44671 /* end confdefs.h.  */
44672 $ac_includes_default
44673 #include <$ac_header>
44674 _ACEOF
44675 rm -f conftest.$ac_objext
44676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44677   (eval $ac_compile) 2>conftest.er1
44678   ac_status=$?
44679   grep -v '^ *+' conftest.er1 >conftest.err
44680   rm -f conftest.er1
44681   cat conftest.err >&5
44682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44683   (exit $ac_status); } &&
44684          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44686   (eval $ac_try) 2>&5
44687   ac_status=$?
44688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44689   (exit $ac_status); }; } &&
44690          { ac_try='test -s conftest.$ac_objext'
44691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44692   (eval $ac_try) 2>&5
44693   ac_status=$?
44694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44695   (exit $ac_status); }; }; then
44696   ac_header_compiler=yes
44697 else
44698   echo "$as_me: failed program was:" >&5
44699 sed 's/^/| /' conftest.$ac_ext >&5
44700
44701 ac_header_compiler=no
44702 fi
44703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44705 echo "${ECHO_T}$ac_header_compiler" >&6
44706
44707 # Is the header present?
44708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44710 cat >conftest.$ac_ext <<_ACEOF
44711 /* confdefs.h.  */
44712 _ACEOF
44713 cat confdefs.h >>conftest.$ac_ext
44714 cat >>conftest.$ac_ext <<_ACEOF
44715 /* end confdefs.h.  */
44716 #include <$ac_header>
44717 _ACEOF
44718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44720   ac_status=$?
44721   grep -v '^ *+' conftest.er1 >conftest.err
44722   rm -f conftest.er1
44723   cat conftest.err >&5
44724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44725   (exit $ac_status); } >/dev/null; then
44726   if test -s conftest.err; then
44727     ac_cpp_err=$ac_cxx_preproc_warn_flag
44728     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
44729   else
44730     ac_cpp_err=
44731   fi
44732 else
44733   ac_cpp_err=yes
44734 fi
44735 if test -z "$ac_cpp_err"; then
44736   ac_header_preproc=yes
44737 else
44738   echo "$as_me: failed program was:" >&5
44739 sed 's/^/| /' conftest.$ac_ext >&5
44740
44741   ac_header_preproc=no
44742 fi
44743 rm -f conftest.err conftest.$ac_ext
44744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44745 echo "${ECHO_T}$ac_header_preproc" >&6
44746
44747 # So?  What about this header?
44748 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
44749   yes:no: )
44750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44754     ac_header_preproc=yes
44755     ;;
44756   no:yes:* )
44757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44769     (
44770       cat <<\_ASBOX
44771 ## ----------------------------------------- ##
44772 ## Report this to wx-dev@lists.wxwidgets.org ##
44773 ## ----------------------------------------- ##
44774 _ASBOX
44775     ) |
44776       sed "s/^/$as_me: WARNING:     /" >&2
44777     ;;
44778 esac
44779 echo "$as_me:$LINENO: checking for $ac_header" >&5
44780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44782   echo $ECHO_N "(cached) $ECHO_C" >&6
44783 else
44784   eval "$as_ac_Header=\$ac_header_preproc"
44785 fi
44786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44788
44789 fi
44790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44791   cat >>confdefs.h <<_ACEOF
44792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44793 _ACEOF
44794  wxUSE_JOYSTICK=yes
44795 fi
44796
44797 done
44798
44799     fi
44800
44801     if test "$wxUSE_JOYSTICK" = "yes"; then
44802         cat >>confdefs.h <<\_ACEOF
44803 #define wxUSE_JOYSTICK 1
44804 _ACEOF
44805
44806         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44807     else
44808         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44809 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44810     fi
44811 fi
44812
44813
44814
44815 if test "$wxUSE_FONTMAP" = "yes" ; then
44816   cat >>confdefs.h <<\_ACEOF
44817 #define wxUSE_FONTMAP 1
44818 _ACEOF
44819
44820 fi
44821
44822 if test "$wxUSE_UNICODE" = "yes" ; then
44823   cat >>confdefs.h <<\_ACEOF
44824 #define wxUSE_UNICODE 1
44825 _ACEOF
44826
44827
44828   if test "$USE_WIN32" != 1; then
44829       wxUSE_UNICODE_MSLU=no
44830   fi
44831
44832   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44833         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44834 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44835 if test "${ac_cv_lib_unicows_main+set}" = set; then
44836   echo $ECHO_N "(cached) $ECHO_C" >&6
44837 else
44838   ac_check_lib_save_LIBS=$LIBS
44839 LIBS="-lunicows  $LIBS"
44840 cat >conftest.$ac_ext <<_ACEOF
44841 /* confdefs.h.  */
44842 _ACEOF
44843 cat confdefs.h >>conftest.$ac_ext
44844 cat >>conftest.$ac_ext <<_ACEOF
44845 /* end confdefs.h.  */
44846
44847
44848 int
44849 main ()
44850 {
44851 main ();
44852   ;
44853   return 0;
44854 }
44855 _ACEOF
44856 rm -f conftest.$ac_objext conftest$ac_exeext
44857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44858   (eval $ac_link) 2>conftest.er1
44859   ac_status=$?
44860   grep -v '^ *+' conftest.er1 >conftest.err
44861   rm -f conftest.er1
44862   cat conftest.err >&5
44863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44864   (exit $ac_status); } &&
44865          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44867   (eval $ac_try) 2>&5
44868   ac_status=$?
44869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44870   (exit $ac_status); }; } &&
44871          { ac_try='test -s conftest$ac_exeext'
44872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44873   (eval $ac_try) 2>&5
44874   ac_status=$?
44875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44876   (exit $ac_status); }; }; then
44877   ac_cv_lib_unicows_main=yes
44878 else
44879   echo "$as_me: failed program was:" >&5
44880 sed 's/^/| /' conftest.$ac_ext >&5
44881
44882 ac_cv_lib_unicows_main=no
44883 fi
44884 rm -f conftest.err conftest.$ac_objext \
44885       conftest$ac_exeext conftest.$ac_ext
44886 LIBS=$ac_check_lib_save_LIBS
44887 fi
44888 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44889 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44890 if test $ac_cv_lib_unicows_main = yes; then
44891
44892                 cat >>confdefs.h <<\_ACEOF
44893 #define wxUSE_UNICODE_MSLU 1
44894 _ACEOF
44895
44896
44897 else
44898
44899                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44900                              Applications will only run on Windows NT/2000/XP!" >&5
44901 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44902                              Applications will only run on Windows NT/2000/XP!" >&2;}
44903                 wxUSE_UNICODE_MSLU=no
44904
44905 fi
44906
44907     fi
44908 fi
44909
44910 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44911   cat >>confdefs.h <<\_ACEOF
44912 #define wxUSE_EXPERIMENTAL_PRINTF 1
44913 _ACEOF
44914
44915 fi
44916
44917
44918 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44919   cat >>confdefs.h <<\_ACEOF
44920 #define wxUSE_POSTSCRIPT 1
44921 _ACEOF
44922
44923 fi
44924
44925 cat >>confdefs.h <<\_ACEOF
44926 #define wxUSE_AFM_FOR_POSTSCRIPT 1
44927 _ACEOF
44928
44929
44930 cat >>confdefs.h <<\_ACEOF
44931 #define wxUSE_NORMALIZED_PS_FONTS 1
44932 _ACEOF
44933
44934
44935
44936 if test "$wxUSE_CONSTRAINTS" = "yes"; then
44937     cat >>confdefs.h <<\_ACEOF
44938 #define wxUSE_CONSTRAINTS 1
44939 _ACEOF
44940
44941     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44942 fi
44943
44944 if test "$wxUSE_MDI" = "yes"; then
44945     cat >>confdefs.h <<\_ACEOF
44946 #define wxUSE_MDI 1
44947 _ACEOF
44948
44949
44950     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44951         cat >>confdefs.h <<\_ACEOF
44952 #define wxUSE_MDI_ARCHITECTURE 1
44953 _ACEOF
44954
44955         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44956     fi
44957 fi
44958
44959 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44960     cat >>confdefs.h <<\_ACEOF
44961 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
44962 _ACEOF
44963
44964     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44965     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44966         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44967     fi
44968 fi
44969
44970 if test "$wxUSE_HELP" = "yes"; then
44971     cat >>confdefs.h <<\_ACEOF
44972 #define wxUSE_HELP 1
44973 _ACEOF
44974
44975     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44976
44977     if test "$wxUSE_MSW" = 1; then
44978       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44979         cat >>confdefs.h <<\_ACEOF
44980 #define wxUSE_MS_HTML_HELP 1
44981 _ACEOF
44982
44983       fi
44984     fi
44985
44986     if test "$wxUSE_WXHTML_HELP" = "yes"; then
44987       if test "$wxUSE_HTML" = "yes"; then
44988         cat >>confdefs.h <<\_ACEOF
44989 #define wxUSE_WXHTML_HELP 1
44990 _ACEOF
44991
44992       else
44993         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44994 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44995         wxUSE_WXHTML_HELP=no
44996       fi
44997     fi
44998 fi
44999
45000 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45001     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45002         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45003 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45004     else
45005         cat >>confdefs.h <<\_ACEOF
45006 #define wxUSE_PRINTING_ARCHITECTURE 1
45007 _ACEOF
45008
45009     fi
45010     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45011 fi
45012
45013 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
45014     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45015 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45016    { (exit 1); exit 1; }; }
45017 fi
45018
45019
45020 if test "$wxUSE_METAFILE" = "yes"; then
45021     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45022         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45023 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45024         wxUSE_METAFILE=no
45025     fi
45026 fi
45027
45028
45029 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45030                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45031                           -o "$wxUSE_OLE"     = "yes" \
45032                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45033
45034 for ac_header in ole2.h
45035 do
45036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45038   echo "$as_me:$LINENO: checking for $ac_header" >&5
45039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45041   echo $ECHO_N "(cached) $ECHO_C" >&6
45042 fi
45043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45045 else
45046   # Is the header compilable?
45047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45049 cat >conftest.$ac_ext <<_ACEOF
45050 /* confdefs.h.  */
45051 _ACEOF
45052 cat confdefs.h >>conftest.$ac_ext
45053 cat >>conftest.$ac_ext <<_ACEOF
45054 /* end confdefs.h.  */
45055 $ac_includes_default
45056 #include <$ac_header>
45057 _ACEOF
45058 rm -f conftest.$ac_objext
45059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45060   (eval $ac_compile) 2>conftest.er1
45061   ac_status=$?
45062   grep -v '^ *+' conftest.er1 >conftest.err
45063   rm -f conftest.er1
45064   cat conftest.err >&5
45065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45066   (exit $ac_status); } &&
45067          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45069   (eval $ac_try) 2>&5
45070   ac_status=$?
45071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45072   (exit $ac_status); }; } &&
45073          { ac_try='test -s conftest.$ac_objext'
45074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45075   (eval $ac_try) 2>&5
45076   ac_status=$?
45077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45078   (exit $ac_status); }; }; then
45079   ac_header_compiler=yes
45080 else
45081   echo "$as_me: failed program was:" >&5
45082 sed 's/^/| /' conftest.$ac_ext >&5
45083
45084 ac_header_compiler=no
45085 fi
45086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45088 echo "${ECHO_T}$ac_header_compiler" >&6
45089
45090 # Is the header present?
45091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45093 cat >conftest.$ac_ext <<_ACEOF
45094 /* confdefs.h.  */
45095 _ACEOF
45096 cat confdefs.h >>conftest.$ac_ext
45097 cat >>conftest.$ac_ext <<_ACEOF
45098 /* end confdefs.h.  */
45099 #include <$ac_header>
45100 _ACEOF
45101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45103   ac_status=$?
45104   grep -v '^ *+' conftest.er1 >conftest.err
45105   rm -f conftest.er1
45106   cat conftest.err >&5
45107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45108   (exit $ac_status); } >/dev/null; then
45109   if test -s conftest.err; then
45110     ac_cpp_err=$ac_cxx_preproc_warn_flag
45111     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
45112   else
45113     ac_cpp_err=
45114   fi
45115 else
45116   ac_cpp_err=yes
45117 fi
45118 if test -z "$ac_cpp_err"; then
45119   ac_header_preproc=yes
45120 else
45121   echo "$as_me: failed program was:" >&5
45122 sed 's/^/| /' conftest.$ac_ext >&5
45123
45124   ac_header_preproc=no
45125 fi
45126 rm -f conftest.err conftest.$ac_ext
45127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45128 echo "${ECHO_T}$ac_header_preproc" >&6
45129
45130 # So?  What about this header?
45131 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
45132   yes:no: )
45133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45137     ac_header_preproc=yes
45138     ;;
45139   no:yes:* )
45140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45142     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45143 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45144     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45146     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45147 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45150     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45152     (
45153       cat <<\_ASBOX
45154 ## ----------------------------------------- ##
45155 ## Report this to wx-dev@lists.wxwidgets.org ##
45156 ## ----------------------------------------- ##
45157 _ASBOX
45158     ) |
45159       sed "s/^/$as_me: WARNING:     /" >&2
45160     ;;
45161 esac
45162 echo "$as_me:$LINENO: checking for $ac_header" >&5
45163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45165   echo $ECHO_N "(cached) $ECHO_C" >&6
45166 else
45167   eval "$as_ac_Header=\$ac_header_preproc"
45168 fi
45169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45171
45172 fi
45173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45174   cat >>confdefs.h <<_ACEOF
45175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45176 _ACEOF
45177
45178 fi
45179
45180 done
45181
45182
45183     if test "$ac_cv_header_ole2_h" = "yes" ; then
45184         if test "$GCC" = yes ; then
45185             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45186 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45187             cat >conftest.$ac_ext <<_ACEOF
45188 /* confdefs.h.  */
45189 _ACEOF
45190 cat confdefs.h >>conftest.$ac_ext
45191 cat >>conftest.$ac_ext <<_ACEOF
45192 /* end confdefs.h.  */
45193 #include <windows.h>
45194                             #include <ole2.h>
45195 int
45196 main ()
45197 {
45198
45199   ;
45200   return 0;
45201 }
45202 _ACEOF
45203 rm -f conftest.$ac_objext
45204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45205   (eval $ac_compile) 2>conftest.er1
45206   ac_status=$?
45207   grep -v '^ *+' conftest.er1 >conftest.err
45208   rm -f conftest.er1
45209   cat conftest.err >&5
45210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45211   (exit $ac_status); } &&
45212          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45214   (eval $ac_try) 2>&5
45215   ac_status=$?
45216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45217   (exit $ac_status); }; } &&
45218          { ac_try='test -s conftest.$ac_objext'
45219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45220   (eval $ac_try) 2>&5
45221   ac_status=$?
45222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45223   (exit $ac_status); }; }; then
45224   echo "$as_me:$LINENO: result: no" >&5
45225 echo "${ECHO_T}no" >&6
45226 else
45227   echo "$as_me: failed program was:" >&5
45228 sed 's/^/| /' conftest.$ac_ext >&5
45229
45230 echo "$as_me:$LINENO: result: yes" >&5
45231 echo "${ECHO_T}yes" >&6
45232                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45233 fi
45234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45235             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45236             if test "$wxUSE_OLE" = "yes" ; then
45237                 cat >>confdefs.h <<\_ACEOF
45238 #define wxUSE_OLE 1
45239 _ACEOF
45240
45241                 cat >>confdefs.h <<\_ACEOF
45242 #define wxUSE_OLE_AUTOMATION 1
45243 _ACEOF
45244
45245                 cat >>confdefs.h <<\_ACEOF
45246 #define wxUSE_OLE_ACTIVEX 1
45247 _ACEOF
45248
45249                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45250             fi
45251         fi
45252
45253                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45254             cat >>confdefs.h <<\_ACEOF
45255 #define wxUSE_DATAOBJ 1
45256 _ACEOF
45257
45258         fi
45259     else
45260         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45261 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45262
45263         wxUSE_CLIPBOARD=no
45264         wxUSE_DRAG_AND_DROP=no
45265         wxUSE_DATAOBJ=no
45266         wxUSE_OLE=no
45267     fi
45268
45269     if test "$wxUSE_METAFILE" = "yes"; then
45270         cat >>confdefs.h <<\_ACEOF
45271 #define wxUSE_METAFILE 1
45272 _ACEOF
45273
45274
45275                 cat >>confdefs.h <<\_ACEOF
45276 #define wxUSE_ENH_METAFILE 1
45277 _ACEOF
45278
45279     fi
45280 fi
45281
45282 if test "$wxUSE_IPC" = "yes"; then
45283     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45284         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45285 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45286         wxUSE_IPC=no
45287     fi
45288
45289     if test "$wxUSE_IPC" = "yes"; then
45290         cat >>confdefs.h <<\_ACEOF
45291 #define wxUSE_IPC 1
45292 _ACEOF
45293
45294         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45295     fi
45296 fi
45297
45298 if test "$wxUSE_DATAOBJ" = "yes"; then
45299     if test "$wxUSE_MGL" = 1; then
45300         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45301 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45302         wxUSE_DATAOBJ=no
45303     else
45304         cat >>confdefs.h <<\_ACEOF
45305 #define wxUSE_DATAOBJ 1
45306 _ACEOF
45307
45308     fi
45309 else
45310     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45311 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45312     wxUSE_CLIPBOARD=no
45313     wxUSE_DRAG_AND_DROP=no
45314 fi
45315
45316 if test "$wxUSE_CLIPBOARD" = "yes"; then
45317     if test "$wxUSE_MGL" = 1; then
45318         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45319 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45320         wxUSE_CLIPBOARD=no
45321     fi
45322
45323     if test "$wxUSE_CLIPBOARD" = "yes"; then
45324         cat >>confdefs.h <<\_ACEOF
45325 #define wxUSE_CLIPBOARD 1
45326 _ACEOF
45327
45328     fi
45329 fi
45330
45331 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45332     if test "$wxUSE_GTK" = 1; then
45333         if test "$WXGTK12" != 1; then
45334             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45335 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45336             wxUSE_DRAG_AND_DROP=no
45337         fi
45338     fi
45339
45340     if test "$wxUSE_MOTIF" = 1; then
45341         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45342 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45343         wxUSE_DRAG_AND_DROP=no
45344     fi
45345
45346     if test "$wxUSE_X11" = 1; then
45347         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45348 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45349         wxUSE_DRAG_AND_DROP=no
45350     fi
45351
45352     if test "$wxUSE_MGL" = 1; then
45353         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45354 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45355         wxUSE_DRAG_AND_DROP=no
45356     fi
45357
45358     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45359         cat >>confdefs.h <<\_ACEOF
45360 #define wxUSE_DRAG_AND_DROP 1
45361 _ACEOF
45362
45363     fi
45364
45365 fi
45366
45367 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45368     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45369 fi
45370
45371 if test "$wxUSE_SPLINES" = "yes" ; then
45372   cat >>confdefs.h <<\_ACEOF
45373 #define wxUSE_SPLINES 1
45374 _ACEOF
45375
45376 fi
45377
45378 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45379   cat >>confdefs.h <<\_ACEOF
45380 #define wxUSE_MOUSEWHEEL 1
45381 _ACEOF
45382
45383 fi
45384
45385
45386 USES_CONTROLS=0
45387 if test "$wxUSE_CONTROLS" = "yes"; then
45388   USES_CONTROLS=1
45389 fi
45390
45391 if test "$wxUSE_ACCEL" = "yes"; then
45392   cat >>confdefs.h <<\_ACEOF
45393 #define wxUSE_ACCEL 1
45394 _ACEOF
45395
45396   USES_CONTROLS=1
45397 fi
45398
45399 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45400   cat >>confdefs.h <<\_ACEOF
45401 #define wxUSE_ANIMATIONCTRL 1
45402 _ACEOF
45403
45404   USES_CONTROLS=1
45405   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45406 fi
45407
45408 if test "$wxUSE_BUTTON" = "yes"; then
45409   cat >>confdefs.h <<\_ACEOF
45410 #define wxUSE_BUTTON 1
45411 _ACEOF
45412
45413   USES_CONTROLS=1
45414 fi
45415
45416 if test "$wxUSE_BMPBUTTON" = "yes"; then
45417   cat >>confdefs.h <<\_ACEOF
45418 #define wxUSE_BMPBUTTON 1
45419 _ACEOF
45420
45421   USES_CONTROLS=1
45422 fi
45423
45424 if test "$wxUSE_CALCTRL" = "yes"; then
45425   cat >>confdefs.h <<\_ACEOF
45426 #define wxUSE_CALENDARCTRL 1
45427 _ACEOF
45428
45429   USES_CONTROLS=1
45430   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45431 fi
45432
45433 if test "$wxUSE_CARET" = "yes"; then
45434   cat >>confdefs.h <<\_ACEOF
45435 #define wxUSE_CARET 1
45436 _ACEOF
45437
45438   USES_CONTROLS=1
45439   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45440 fi
45441
45442 if test "$wxUSE_COMBOBOX" = "yes"; then
45443   cat >>confdefs.h <<\_ACEOF
45444 #define wxUSE_COMBOBOX 1
45445 _ACEOF
45446
45447   USES_CONTROLS=1
45448 fi
45449
45450 if test "$wxUSE_COMBOCTRL" = "yes"; then
45451   cat >>confdefs.h <<\_ACEOF
45452 #define wxUSE_COMBOCTRL 1
45453 _ACEOF
45454
45455   USES_CONTROLS=1
45456 fi
45457
45458 if test "$wxUSE_CHOICE" = "yes"; then
45459   cat >>confdefs.h <<\_ACEOF
45460 #define wxUSE_CHOICE 1
45461 _ACEOF
45462
45463   USES_CONTROLS=1
45464 fi
45465
45466 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45467     cat >>confdefs.h <<\_ACEOF
45468 #define wxUSE_CHOICEBOOK 1
45469 _ACEOF
45470
45471     USES_CONTROLS=1
45472 fi
45473
45474 if test "$wxUSE_CHECKBOX" = "yes"; then
45475   cat >>confdefs.h <<\_ACEOF
45476 #define wxUSE_CHECKBOX 1
45477 _ACEOF
45478
45479   USES_CONTROLS=1
45480 fi
45481
45482 if test "$wxUSE_CHECKLST" = "yes"; then
45483   cat >>confdefs.h <<\_ACEOF
45484 #define wxUSE_CHECKLISTBOX 1
45485 _ACEOF
45486
45487   USES_CONTROLS=1
45488   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45489 fi
45490
45491 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45492   cat >>confdefs.h <<\_ACEOF
45493 #define wxUSE_COLOURPICKERCTRL 1
45494 _ACEOF
45495
45496   USES_CONTROLS=1
45497 fi
45498
45499 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45500   cat >>confdefs.h <<\_ACEOF
45501 #define wxUSE_DATEPICKCTRL 1
45502 _ACEOF
45503
45504   USES_CONTROLS=1
45505 fi
45506
45507 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45508   cat >>confdefs.h <<\_ACEOF
45509 #define wxUSE_DIRPICKERCTRL 1
45510 _ACEOF
45511
45512   USES_CONTROLS=1
45513 fi
45514
45515 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45516   cat >>confdefs.h <<\_ACEOF
45517 #define wxUSE_FILEPICKERCTRL 1
45518 _ACEOF
45519
45520   USES_CONTROLS=1
45521 fi
45522
45523 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45524   cat >>confdefs.h <<\_ACEOF
45525 #define wxUSE_FONTPICKERCTRL 1
45526 _ACEOF
45527
45528   USES_CONTROLS=1
45529 fi
45530
45531 if test "$wxUSE_DISPLAY" = "yes"; then
45532     cat >>confdefs.h <<\_ACEOF
45533 #define wxUSE_DISPLAY 1
45534 _ACEOF
45535
45536     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
45537 fi
45538
45539 if test "$wxUSE_DETECT_SM" = "yes"; then
45540     cat >>confdefs.h <<\_ACEOF
45541 #define wxUSE_DETECT_SM 1
45542 _ACEOF
45543
45544 fi
45545
45546 if test "$wxUSE_GAUGE" = "yes"; then
45547   cat >>confdefs.h <<\_ACEOF
45548 #define wxUSE_GAUGE 1
45549 _ACEOF
45550
45551   USES_CONTROLS=1
45552 fi
45553
45554 if test "$wxUSE_GRID" = "yes"; then
45555   cat >>confdefs.h <<\_ACEOF
45556 #define wxUSE_GRID 1
45557 _ACEOF
45558
45559   USES_CONTROLS=1
45560   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45561 fi
45562
45563 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45564   cat >>confdefs.h <<\_ACEOF
45565 #define wxUSE_HYPERLINKCTRL 1
45566 _ACEOF
45567
45568   USES_CONTROLS=1
45569 fi
45570
45571 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45572   cat >>confdefs.h <<\_ACEOF
45573 #define wxUSE_BITMAPCOMBOBOX 1
45574 _ACEOF
45575
45576   USES_CONTROLS=1
45577 fi
45578
45579 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45580   cat >>confdefs.h <<\_ACEOF
45581 #define wxUSE_DATAVIEWCTRL 1
45582 _ACEOF
45583
45584   USES_CONTROLS=1
45585   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45586 fi
45587
45588 if test "$wxUSE_IMAGLIST" = "yes"; then
45589     cat >>confdefs.h <<\_ACEOF
45590 #define wxUSE_IMAGLIST 1
45591 _ACEOF
45592
45593 fi
45594
45595 if test "$wxUSE_LISTBOOK" = "yes"; then
45596     cat >>confdefs.h <<\_ACEOF
45597 #define wxUSE_LISTBOOK 1
45598 _ACEOF
45599
45600     USES_CONTROLS=1
45601 fi
45602
45603 if test "$wxUSE_LISTBOX" = "yes"; then
45604     cat >>confdefs.h <<\_ACEOF
45605 #define wxUSE_LISTBOX 1
45606 _ACEOF
45607
45608     USES_CONTROLS=1
45609     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
45610 fi
45611
45612 if test "$wxUSE_LISTCTRL" = "yes"; then
45613     if test "$wxUSE_IMAGLIST" = "yes"; then
45614         cat >>confdefs.h <<\_ACEOF
45615 #define wxUSE_LISTCTRL 1
45616 _ACEOF
45617
45618         USES_CONTROLS=1
45619         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45620     else
45621         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45622 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45623     fi
45624 fi
45625
45626 if test "$wxUSE_NOTEBOOK" = "yes"; then
45627     cat >>confdefs.h <<\_ACEOF
45628 #define wxUSE_NOTEBOOK 1
45629 _ACEOF
45630
45631     USES_CONTROLS=1
45632     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45633 fi
45634
45635 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45636   cat >>confdefs.h <<\_ACEOF
45637 #define wxUSE_ODCOMBOBOX 1
45638 _ACEOF
45639
45640   USES_CONTROLS=1
45641   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45642 fi
45643
45644
45645 if test "$wxUSE_RADIOBOX" = "yes"; then
45646     cat >>confdefs.h <<\_ACEOF
45647 #define wxUSE_RADIOBOX 1
45648 _ACEOF
45649
45650     USES_CONTROLS=1
45651 fi
45652
45653 if test "$wxUSE_RADIOBTN" = "yes"; then
45654     cat >>confdefs.h <<\_ACEOF
45655 #define wxUSE_RADIOBTN 1
45656 _ACEOF
45657
45658     USES_CONTROLS=1
45659 fi
45660
45661 if test "$wxUSE_SASH" = "yes"; then
45662     cat >>confdefs.h <<\_ACEOF
45663 #define wxUSE_SASH 1
45664 _ACEOF
45665
45666     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45667 fi
45668
45669 if test "$wxUSE_SCROLLBAR" = "yes"; then
45670     cat >>confdefs.h <<\_ACEOF
45671 #define wxUSE_SCROLLBAR 1
45672 _ACEOF
45673
45674     USES_CONTROLS=1
45675     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45676 fi
45677
45678 if test "$wxUSE_SLIDER" = "yes"; then
45679     cat >>confdefs.h <<\_ACEOF
45680 #define wxUSE_SLIDER 1
45681 _ACEOF
45682
45683     USES_CONTROLS=1
45684 fi
45685
45686 if test "$wxUSE_SPINBTN" = "yes"; then
45687     cat >>confdefs.h <<\_ACEOF
45688 #define wxUSE_SPINBTN 1
45689 _ACEOF
45690
45691     USES_CONTROLS=1
45692 fi
45693
45694 if test "$wxUSE_SPINCTRL" = "yes"; then
45695     cat >>confdefs.h <<\_ACEOF
45696 #define wxUSE_SPINCTRL 1
45697 _ACEOF
45698
45699     USES_CONTROLS=1
45700 fi
45701
45702 if test "$wxUSE_SPLITTER" = "yes"; then
45703     cat >>confdefs.h <<\_ACEOF
45704 #define wxUSE_SPLITTER 1
45705 _ACEOF
45706
45707     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45708 fi
45709
45710 if test "$wxUSE_STATBMP" = "yes"; then
45711     cat >>confdefs.h <<\_ACEOF
45712 #define wxUSE_STATBMP 1
45713 _ACEOF
45714
45715     USES_CONTROLS=1
45716 fi
45717
45718 if test "$wxUSE_STATBOX" = "yes"; then
45719     cat >>confdefs.h <<\_ACEOF
45720 #define wxUSE_STATBOX 1
45721 _ACEOF
45722
45723     USES_CONTROLS=1
45724 fi
45725
45726 if test "$wxUSE_STATTEXT" = "yes"; then
45727     cat >>confdefs.h <<\_ACEOF
45728 #define wxUSE_STATTEXT 1
45729 _ACEOF
45730
45731     USES_CONTROLS=1
45732 fi
45733
45734 if test "$wxUSE_STATLINE" = "yes"; then
45735     cat >>confdefs.h <<\_ACEOF
45736 #define wxUSE_STATLINE 1
45737 _ACEOF
45738
45739     USES_CONTROLS=1
45740 fi
45741
45742 if test "$wxUSE_STATUSBAR" = "yes"; then
45743         cat >>confdefs.h <<\_ACEOF
45744 #define wxUSE_NATIVE_STATUSBAR 1
45745 _ACEOF
45746
45747     cat >>confdefs.h <<\_ACEOF
45748 #define wxUSE_STATUSBAR 1
45749 _ACEOF
45750
45751     USES_CONTROLS=1
45752
45753     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45754 fi
45755
45756 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45757     cat >>confdefs.h <<\_ACEOF
45758 #define wxUSE_TAB_DIALOG 1
45759 _ACEOF
45760
45761 fi
45762
45763 if test "$wxUSE_TEXTCTRL" = "yes"; then
45764     cat >>confdefs.h <<\_ACEOF
45765 #define wxUSE_TEXTCTRL 1
45766 _ACEOF
45767
45768     USES_CONTROLS=1
45769     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45770 fi
45771
45772 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45773     if test "$wxUSE_COCOA" = 1 ; then
45774         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45775 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45776         wxUSE_TOGGLEBTN=no
45777     fi
45778
45779     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45780         cat >>confdefs.h <<\_ACEOF
45781 #define wxUSE_TOGGLEBTN 1
45782 _ACEOF
45783
45784         USES_CONTROLS=1
45785     fi
45786 fi
45787
45788 if test "$wxUSE_TOOLBAR" = "yes"; then
45789     cat >>confdefs.h <<\_ACEOF
45790 #define wxUSE_TOOLBAR 1
45791 _ACEOF
45792
45793     USES_CONTROLS=1
45794
45795     if test "$wxUSE_UNIVERSAL" = "yes"; then
45796         wxUSE_TOOLBAR_NATIVE="no"
45797     else
45798         wxUSE_TOOLBAR_NATIVE="yes"
45799         cat >>confdefs.h <<\_ACEOF
45800 #define wxUSE_TOOLBAR_NATIVE 1
45801 _ACEOF
45802
45803     fi
45804
45805     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45806 fi
45807
45808 if test "$wxUSE_TOOLTIPS" = "yes"; then
45809     if test "$wxUSE_MOTIF" = 1; then
45810         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45811 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45812     else
45813         if test "$wxUSE_UNIVERSAL" = "yes"; then
45814             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45815 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45816         else
45817             cat >>confdefs.h <<\_ACEOF
45818 #define wxUSE_TOOLTIPS 1
45819 _ACEOF
45820
45821         fi
45822     fi
45823 fi
45824
45825 if test "$wxUSE_TREEBOOK" = "yes"; then
45826     cat >>confdefs.h <<\_ACEOF
45827 #define wxUSE_TREEBOOK 1
45828 _ACEOF
45829
45830     USES_CONTROLS=1
45831 fi
45832
45833 if test "$wxUSE_TOOLBOOK" = "yes"; then
45834     cat >>confdefs.h <<\_ACEOF
45835 #define wxUSE_TOOLBOOK 1
45836 _ACEOF
45837
45838     USES_CONTROLS=1
45839 fi
45840
45841 if test "$wxUSE_TREECTRL" = "yes"; then
45842     if test "$wxUSE_IMAGLIST" = "yes"; then
45843         cat >>confdefs.h <<\_ACEOF
45844 #define wxUSE_TREECTRL 1
45845 _ACEOF
45846
45847         USES_CONTROLS=1
45848         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45849     else
45850         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45851 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45852     fi
45853 fi
45854
45855 if test "$wxUSE_POPUPWIN" = "yes"; then
45856     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45857         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45858 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45859     else
45860         if test "$wxUSE_PM" = 1; then
45861             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45862 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45863         else
45864             cat >>confdefs.h <<\_ACEOF
45865 #define wxUSE_POPUPWIN 1
45866 _ACEOF
45867
45868             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45869
45870             USES_CONTROLS=1
45871         fi
45872     fi
45873 fi
45874
45875 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
45876     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45877         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45878 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45879     else
45880         cat >>confdefs.h <<\_ACEOF
45881 #define wxUSE_DIALUP_MANAGER 1
45882 _ACEOF
45883
45884         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45885     fi
45886 fi
45887
45888 if test "$wxUSE_TIPWINDOW" = "yes"; then
45889     if test "$wxUSE_PM" = 1; then
45890         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45891 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45892     else
45893         cat >>confdefs.h <<\_ACEOF
45894 #define wxUSE_TIPWINDOW 1
45895 _ACEOF
45896
45897     fi
45898 fi
45899
45900 if test "$USES_CONTROLS" = 1; then
45901     cat >>confdefs.h <<\_ACEOF
45902 #define wxUSE_CONTROLS 1
45903 _ACEOF
45904
45905 fi
45906
45907
45908 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45909     cat >>confdefs.h <<\_ACEOF
45910 #define wxUSE_ACCESSIBILITY 1
45911 _ACEOF
45912
45913     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45914 fi
45915
45916 if test "$wxUSE_DC_CACHEING" = "yes"; then
45917     cat >>confdefs.h <<\_ACEOF
45918 #define wxUSE_DC_CACHEING 1
45919 _ACEOF
45920
45921 fi
45922
45923 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45924     cat >>confdefs.h <<\_ACEOF
45925 #define wxUSE_DRAGIMAGE 1
45926 _ACEOF
45927
45928     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45929 fi
45930
45931 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45932     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45933         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45934 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45935     else
45936         cat >>confdefs.h <<\_ACEOF
45937 #define wxUSE_EXCEPTIONS 1
45938 _ACEOF
45939
45940         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45941     fi
45942 fi
45943
45944 USE_HTML=0
45945 if test "$wxUSE_HTML" = "yes"; then
45946     cat >>confdefs.h <<\_ACEOF
45947 #define wxUSE_HTML 1
45948 _ACEOF
45949
45950     USE_HTML=1
45951     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
45952     if test "$wxUSE_MAC" = 1; then
45953         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45954     fi
45955 fi
45956 if test "$wxUSE_WEBKIT" = "yes"; then
45957     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
45958         old_CPPFLAGS="$CPPFLAGS"
45959         CPPFLAGS="-x objective-c++ $CPPFLAGS"
45960         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45961 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45962 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45963   echo $ECHO_N "(cached) $ECHO_C" >&6
45964 else
45965   cat >conftest.$ac_ext <<_ACEOF
45966 /* confdefs.h.  */
45967 _ACEOF
45968 cat confdefs.h >>conftest.$ac_ext
45969 cat >>conftest.$ac_ext <<_ACEOF
45970 /* end confdefs.h.  */
45971 #include <Carbon/Carbon.h>
45972
45973 #include <WebKit/HIWebView.h>
45974 _ACEOF
45975 rm -f conftest.$ac_objext
45976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45977   (eval $ac_compile) 2>conftest.er1
45978   ac_status=$?
45979   grep -v '^ *+' conftest.er1 >conftest.err
45980   rm -f conftest.er1
45981   cat conftest.err >&5
45982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45983   (exit $ac_status); } &&
45984          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45986   (eval $ac_try) 2>&5
45987   ac_status=$?
45988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45989   (exit $ac_status); }; } &&
45990          { ac_try='test -s conftest.$ac_objext'
45991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45992   (eval $ac_try) 2>&5
45993   ac_status=$?
45994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45995   (exit $ac_status); }; }; then
45996   ac_cv_header_WebKit_HIWebView_h=yes
45997 else
45998   echo "$as_me: failed program was:" >&5
45999 sed 's/^/| /' conftest.$ac_ext >&5
46000
46001 ac_cv_header_WebKit_HIWebView_h=no
46002 fi
46003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46004 fi
46005 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46006 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46007 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46008
46009                            cat >>confdefs.h <<\_ACEOF
46010 #define wxUSE_WEBKIT 1
46011 _ACEOF
46012
46013                            WEBKIT_LINK="-framework WebKit"
46014
46015 else
46016
46017                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46018 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46019                            wxUSE_WEBKIT=no
46020
46021 fi
46022
46023
46024         CPPFLAGS="$old_CPPFLAGS"
46025     elif test "$wxUSE_COCOA" = 1; then
46026         cat >>confdefs.h <<\_ACEOF
46027 #define wxUSE_WEBKIT 1
46028 _ACEOF
46029
46030     else
46031         wxUSE_WEBKIT=no
46032     fi
46033 fi
46034
46035 USE_XRC=0
46036 if test "$wxUSE_XRC" = "yes"; then
46037     if test "$wxUSE_XML" != "yes"; then
46038         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46039 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46040         wxUSE_XRC=no
46041     else
46042         cat >>confdefs.h <<\_ACEOF
46043 #define wxUSE_XRC 1
46044 _ACEOF
46045
46046         USE_XRC=1
46047         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46048     fi
46049 fi
46050
46051 USE_AUI=0
46052 if test "$wxUSE_AUI" = "yes"; then
46053    cat >>confdefs.h <<\_ACEOF
46054 #define wxUSE_AUI 1
46055 _ACEOF
46056
46057    USE_AUI=1
46058    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46059 fi
46060
46061 if test "$wxUSE_MENUS" = "yes"; then
46062     cat >>confdefs.h <<\_ACEOF
46063 #define wxUSE_MENUS 1
46064 _ACEOF
46065
46066     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46067 fi
46068
46069 if test "$wxUSE_METAFILE" = "yes"; then
46070     cat >>confdefs.h <<\_ACEOF
46071 #define wxUSE_METAFILE 1
46072 _ACEOF
46073
46074 fi
46075
46076 if test "$wxUSE_MIMETYPE" = "yes"; then
46077     cat >>confdefs.h <<\_ACEOF
46078 #define wxUSE_MIMETYPE 1
46079 _ACEOF
46080
46081 fi
46082
46083 if test "$wxUSE_MINIFRAME" = "yes"; then
46084     cat >>confdefs.h <<\_ACEOF
46085 #define wxUSE_MINIFRAME 1
46086 _ACEOF
46087
46088     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46089 fi
46090
46091 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46092     cat >>confdefs.h <<\_ACEOF
46093 #define wxUSE_SYSTEM_OPTIONS 1
46094 _ACEOF
46095
46096     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
46097         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
46098         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46099     fi
46100 fi
46101
46102
46103 if test "$wxUSE_VALIDATORS" = "yes"; then
46104     cat >>confdefs.h <<\_ACEOF
46105 #define wxUSE_VALIDATORS 1
46106 _ACEOF
46107
46108     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46109 fi
46110
46111 if test "$wxUSE_PALETTE" = "yes" ; then
46112   cat >>confdefs.h <<\_ACEOF
46113 #define wxUSE_PALETTE 1
46114 _ACEOF
46115
46116 fi
46117
46118 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46119     LIBS=" -lunicows $LIBS"
46120 fi
46121
46122 USE_RICHTEXT=0
46123 if test "$wxUSE_RICHTEXT" = "yes"; then
46124     cat >>confdefs.h <<\_ACEOF
46125 #define wxUSE_RICHTEXT 1
46126 _ACEOF
46127
46128     USE_RICHTEXT=1
46129     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46130 fi
46131
46132
46133 if test "$wxUSE_IMAGE" = "yes" ; then
46134     cat >>confdefs.h <<\_ACEOF
46135 #define wxUSE_IMAGE 1
46136 _ACEOF
46137
46138
46139     if test "$wxUSE_GIF" = "yes" ; then
46140       cat >>confdefs.h <<\_ACEOF
46141 #define wxUSE_GIF 1
46142 _ACEOF
46143
46144     fi
46145
46146     if test "$wxUSE_PCX" = "yes" ; then
46147       cat >>confdefs.h <<\_ACEOF
46148 #define wxUSE_PCX 1
46149 _ACEOF
46150
46151     fi
46152
46153     if test "$wxUSE_IFF" = "yes" ; then
46154       cat >>confdefs.h <<\_ACEOF
46155 #define wxUSE_IFF 1
46156 _ACEOF
46157
46158     fi
46159
46160     if test "$wxUSE_PNM" = "yes" ; then
46161       cat >>confdefs.h <<\_ACEOF
46162 #define wxUSE_PNM 1
46163 _ACEOF
46164
46165     fi
46166
46167     if test "$wxUSE_XPM" = "yes" ; then
46168       cat >>confdefs.h <<\_ACEOF
46169 #define wxUSE_XPM 1
46170 _ACEOF
46171
46172     fi
46173
46174     if test "$wxUSE_ICO_CUR" = "yes" ; then
46175       cat >>confdefs.h <<\_ACEOF
46176 #define wxUSE_ICO_CUR 1
46177 _ACEOF
46178
46179     fi
46180 fi
46181
46182
46183 if test "$wxUSE_ABOUTDLG" = "yes"; then
46184     cat >>confdefs.h <<\_ACEOF
46185 #define wxUSE_ABOUTDLG 1
46186 _ACEOF
46187
46188 fi
46189
46190 if test "$wxUSE_CHOICEDLG" = "yes"; then
46191     cat >>confdefs.h <<\_ACEOF
46192 #define wxUSE_CHOICEDLG 1
46193 _ACEOF
46194
46195 fi
46196
46197 if test "$wxUSE_COLOURDLG" = "yes"; then
46198     cat >>confdefs.h <<\_ACEOF
46199 #define wxUSE_COLOURDLG 1
46200 _ACEOF
46201
46202 fi
46203
46204 if test "$wxUSE_FILEDLG" = "yes"; then
46205     cat >>confdefs.h <<\_ACEOF
46206 #define wxUSE_FILEDLG 1
46207 _ACEOF
46208
46209 fi
46210
46211 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46212     cat >>confdefs.h <<\_ACEOF
46213 #define wxUSE_FINDREPLDLG 1
46214 _ACEOF
46215
46216 fi
46217
46218 if test "$wxUSE_FONTDLG" = "yes"; then
46219     cat >>confdefs.h <<\_ACEOF
46220 #define wxUSE_FONTDLG 1
46221 _ACEOF
46222
46223 fi
46224
46225 if test "$wxUSE_DIRDLG" = "yes"; then
46226     if test "$wxUSE_TREECTRL" != "yes"; then
46227         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46228 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46229     else
46230         cat >>confdefs.h <<\_ACEOF
46231 #define wxUSE_DIRDLG 1
46232 _ACEOF
46233
46234     fi
46235 fi
46236
46237 if test "$wxUSE_MSGDLG" = "yes"; then
46238     cat >>confdefs.h <<\_ACEOF
46239 #define wxUSE_MSGDLG 1
46240 _ACEOF
46241
46242 fi
46243
46244 if test "$wxUSE_NUMBERDLG" = "yes"; then
46245     cat >>confdefs.h <<\_ACEOF
46246 #define wxUSE_NUMBERDLG 1
46247 _ACEOF
46248
46249 fi
46250
46251 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46252     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46253        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46254 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46255     else
46256         cat >>confdefs.h <<\_ACEOF
46257 #define wxUSE_PROGRESSDLG 1
46258 _ACEOF
46259
46260     fi
46261 fi
46262
46263 if test "$wxUSE_SPLASH" = "yes"; then
46264     cat >>confdefs.h <<\_ACEOF
46265 #define wxUSE_SPLASH 1
46266 _ACEOF
46267
46268     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46269 fi
46270
46271 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46272     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46273        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46274 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46275     else
46276         cat >>confdefs.h <<\_ACEOF
46277 #define wxUSE_STARTUP_TIPS 1
46278 _ACEOF
46279
46280     fi
46281 fi
46282
46283 if test "$wxUSE_TEXTDLG" = "yes"; then
46284     cat >>confdefs.h <<\_ACEOF
46285 #define wxUSE_TEXTDLG 1
46286 _ACEOF
46287
46288 fi
46289
46290 if test "$wxUSE_WIZARDDLG" = "yes"; then
46291     cat >>confdefs.h <<\_ACEOF
46292 #define wxUSE_WIZARDDLG 1
46293 _ACEOF
46294
46295     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46296 fi
46297
46298
46299 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46300    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46301       cat >>confdefs.h <<\_ACEOF
46302 #define wxUSE_GRAPHICS_CONTEXT 1
46303 _ACEOF
46304
46305    elif test "$wxUSE_GTK" != 1; then
46306             cat >>confdefs.h <<\_ACEOF
46307 #define wxUSE_GRAPHICS_CONTEXT 1
46308 _ACEOF
46309
46310    else
46311
46312 pkg_failed=no
46313 echo "$as_me:$LINENO: checking for CAIRO" >&5
46314 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46315
46316 if test -n "$PKG_CONFIG"; then
46317     if test -n "$CAIRO_CFLAGS"; then
46318         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46319     else
46320         if test -n "$PKG_CONFIG" && \
46321     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46322   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46323   ac_status=$?
46324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46325   (exit $ac_status); }; then
46326   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46327 else
46328   pkg_failed=yes
46329 fi
46330     fi
46331 else
46332         pkg_failed=untried
46333 fi
46334 if test -n "$PKG_CONFIG"; then
46335     if test -n "$CAIRO_LIBS"; then
46336         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46337     else
46338         if test -n "$PKG_CONFIG" && \
46339     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46340   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46341   ac_status=$?
46342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46343   (exit $ac_status); }; then
46344   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46345 else
46346   pkg_failed=yes
46347 fi
46348     fi
46349 else
46350         pkg_failed=untried
46351 fi
46352
46353
46354
46355 if test $pkg_failed = yes; then
46356
46357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46358         _pkg_short_errors_supported=yes
46359 else
46360         _pkg_short_errors_supported=no
46361 fi
46362         if test $_pkg_short_errors_supported = yes; then
46363                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46364         else
46365                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46366         fi
46367         # Put the nasty error message in config.log where it belongs
46368         echo "$CAIRO_PKG_ERRORS" >&5
46369
46370
46371                 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46372 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46373
46374
46375 elif test $pkg_failed = untried; then
46376
46377                 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46378 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46379
46380
46381 else
46382         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46383         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46384         echo "$as_me:$LINENO: result: yes" >&5
46385 echo "${ECHO_T}yes" >&6
46386
46387                 cat >>confdefs.h <<\_ACEOF
46388 #define wxUSE_GRAPHICS_CONTEXT 1
46389 _ACEOF
46390
46391
46392 fi
46393    fi
46394 fi
46395
46396
46397 USE_MEDIA=0
46398
46399 if test "$wxUSE_MEDIACTRL" = "yes"; then
46400     USE_MEDIA=1
46401
46402                 if test "$wxUSE_GTK" = 1; then
46403         wxUSE_GSTREAMER="no"
46404
46405                                                                 GST_VERSION_MAJOR=0
46406         GST_VERSION_MINOR=10
46407         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46408
46409         if test "$wxUSE_GSTREAMER8" = "no"; then
46410
46411 pkg_failed=no
46412 echo "$as_me:$LINENO: checking for GST" >&5
46413 echo $ECHO_N "checking for GST... $ECHO_C" >&6
46414
46415 if test -n "$PKG_CONFIG"; then
46416     if test -n "$GST_CFLAGS"; then
46417         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46418     else
46419         if test -n "$PKG_CONFIG" && \
46420     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46421   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46422   ac_status=$?
46423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46424   (exit $ac_status); }; then
46425   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46426 else
46427   pkg_failed=yes
46428 fi
46429     fi
46430 else
46431         pkg_failed=untried
46432 fi
46433 if test -n "$PKG_CONFIG"; then
46434     if test -n "$GST_LIBS"; then
46435         pkg_cv_GST_LIBS="$GST_LIBS"
46436     else
46437         if test -n "$PKG_CONFIG" && \
46438     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46439   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46440   ac_status=$?
46441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46442   (exit $ac_status); }; then
46443   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46444 else
46445   pkg_failed=yes
46446 fi
46447     fi
46448 else
46449         pkg_failed=untried
46450 fi
46451
46452
46453
46454 if test $pkg_failed = yes; then
46455
46456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46457         _pkg_short_errors_supported=yes
46458 else
46459         _pkg_short_errors_supported=no
46460 fi
46461         if test $_pkg_short_errors_supported = yes; then
46462                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46463         else
46464                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46465         fi
46466         # Put the nasty error message in config.log where it belongs
46467         echo "$GST_PKG_ERRORS" >&5
46468
46469
46470                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46471 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46472                     GST_VERSION_MINOR=8
46473
46474
46475 elif test $pkg_failed = untried; then
46476
46477                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46478 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46479                     GST_VERSION_MINOR=8
46480
46481
46482 else
46483         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46484         GST_LIBS=$pkg_cv_GST_LIBS
46485         echo "$as_me:$LINENO: result: yes" >&5
46486 echo "${ECHO_T}yes" >&6
46487
46488                     wxUSE_GSTREAMER="yes"
46489                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46490
46491 fi
46492         else
46493                         GST_VERSION_MINOR=8
46494         fi
46495
46496         if test $GST_VERSION_MINOR = "8"; then
46497             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46498
46499 pkg_failed=no
46500 echo "$as_me:$LINENO: checking for GST" >&5
46501 echo $ECHO_N "checking for GST... $ECHO_C" >&6
46502
46503 if test -n "$PKG_CONFIG"; then
46504     if test -n "$GST_CFLAGS"; then
46505         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46506     else
46507         if test -n "$PKG_CONFIG" && \
46508     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46509   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46510   ac_status=$?
46511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46512   (exit $ac_status); }; then
46513   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46514 else
46515   pkg_failed=yes
46516 fi
46517     fi
46518 else
46519         pkg_failed=untried
46520 fi
46521 if test -n "$PKG_CONFIG"; then
46522     if test -n "$GST_LIBS"; then
46523         pkg_cv_GST_LIBS="$GST_LIBS"
46524     else
46525         if test -n "$PKG_CONFIG" && \
46526     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46527   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46528   ac_status=$?
46529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46530   (exit $ac_status); }; then
46531   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46532 else
46533   pkg_failed=yes
46534 fi
46535     fi
46536 else
46537         pkg_failed=untried
46538 fi
46539
46540
46541
46542 if test $pkg_failed = yes; then
46543
46544 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46545         _pkg_short_errors_supported=yes
46546 else
46547         _pkg_short_errors_supported=no
46548 fi
46549         if test $_pkg_short_errors_supported = yes; then
46550                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46551         else
46552                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46553         fi
46554         # Put the nasty error message in config.log where it belongs
46555         echo "$GST_PKG_ERRORS" >&5
46556
46557
46558                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46559 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46560
46561 elif test $pkg_failed = untried; then
46562
46563                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46564 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46565
46566 else
46567         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46568         GST_LIBS=$pkg_cv_GST_LIBS
46569         echo "$as_me:$LINENO: result: yes" >&5
46570 echo "${ECHO_T}yes" >&6
46571         wxUSE_GSTREAMER="yes"
46572 fi
46573         fi
46574
46575
46576         if test "$wxUSE_GSTREAMER" = "yes"; then
46577                                     case "${host}" in
46578                 *-*-solaris2* )
46579                     if "$GCC" = yes; then
46580                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46581                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46582                     fi
46583             esac
46584
46585             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46586             LIBS="$GST_LIBS $LIBS"
46587
46588             cat >>confdefs.h <<\_ACEOF
46589 #define wxUSE_GSTREAMER 1
46590 _ACEOF
46591
46592         else
46593             USE_MEDIA=0
46594         fi
46595     fi
46596
46597     if test $USE_MEDIA = 1; then
46598         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46599         cat >>confdefs.h <<\_ACEOF
46600 #define wxUSE_MEDIACTRL 1
46601 _ACEOF
46602
46603     fi
46604 fi
46605
46606
46607 if test "$cross_compiling" = "yes"; then
46608         OSINFO="\"$host\""
46609 else
46610         OSINFO=`uname -s -r -m`
46611     OSINFO="\"$OSINFO\""
46612 fi
46613
46614 cat >>confdefs.h <<_ACEOF
46615 #define WXWIN_OS_DESCRIPTION $OSINFO
46616 _ACEOF
46617
46618
46619
46620 if test "x$prefix" != "xNONE"; then
46621     wxPREFIX=$prefix
46622 else
46623     wxPREFIX=$ac_default_prefix
46624 fi
46625
46626 cat >>confdefs.h <<_ACEOF
46627 #define wxINSTALL_PREFIX "$wxPREFIX"
46628 _ACEOF
46629
46630
46631
46632
46633 CORE_BASE_LIBS="net base"
46634 CORE_GUI_LIBS="adv core"
46635
46636 if test "$wxUSE_XML" = "yes" ; then
46637     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46638 fi
46639 if test "$wxUSE_ODBC" != "no" ; then
46640     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46641     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46642 fi
46643 if test "$wxUSE_HTML" = "yes" ; then
46644     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46645 fi
46646 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46647     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46648 fi
46649 if test "$wxUSE_XRC" = "yes" ; then
46650     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46651 fi
46652 if test "$wxUSE_AUI" = "yes" ; then
46653     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46654 fi
46655
46656 if test "$wxUSE_GUI" != "yes"; then
46657     CORE_GUI_LIBS=""
46658 fi
46659
46660
46661
46662
46663
46664 ac_ext=c
46665 ac_cpp='$CPP $CPPFLAGS'
46666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46669
46670
46671
46672 if test "$wxUSE_MAC" = 1 ; then
46673     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46674         if test "$USE_DARWIN" = 1; then
46675             LDFLAGS="$LDFLAGS -framework QuickTime"
46676         else
46677             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46678         fi
46679     fi
46680     if test "$USE_DARWIN" = 1; then
46681         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46682     else
46683         LDFLAGS="$LDFLAGS -lCarbonLib"
46684     fi
46685 fi
46686 if test "$wxUSE_COCOA" = 1 ; then
46687     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46688     if test "$wxUSE_MEDIACTRL" = "yes"; then
46689         LDFLAGS="$LDFLAGS -framework QuickTime"
46690     fi
46691 fi
46692 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46693     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46694 fi
46695
46696 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46697
46698 if test "$wxUSE_GUI" = "yes"; then
46699
46700
46701         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46702                      dynamic erase event exec font image minimal mobile \
46703                      mobile/wxedit mobile/styles propsize render \
46704                      rotate shaped vscroll widgets"
46705
46706     if test "$wxUSE_MONOLITHIC" != "yes"; then
46707         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46708     fi
46709     if test "$TOOLKIT" = "MSW"; then
46710         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46711         if test "$wxUSE_UNIVERSAL" != "yes"; then
46712             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46713         fi
46714     fi
46715     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46716         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46717     fi
46718 else
46719     SAMPLES_SUBDIRS="console"
46720 fi
46721
46722
46723 if test "x$INTELCC" = "xyes" ; then
46724                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46725 elif test "$GCC" = yes ; then
46726     CWARNINGS="-Wall -Wundef"
46727 fi
46728
46729 if test "x$INTELCXX" = "xyes" ; then
46730                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46731 elif test "$GXX" = yes ; then
46732         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
46733 fi
46734
46735
46736 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46737 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46738
46739
46740 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46741  -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
46742  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46743  $CPPFLAGS `
46744
46745 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46746 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46747 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
46748
46749 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46750
46751
46752 if test "x$MWCC" = "xyes"; then
46753
46754             CC="$CC -cwd source -I-"
46755     CXX="$CXX -cwd source -I-"
46756 fi
46757
46758
46759 LIBS=`echo $LIBS`
46760 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46761 EXTRALIBS_XML="$EXPAT_LINK"
46762 EXTRALIBS_HTML="$MSPACK_LINK"
46763 EXTRALIBS_ODBC="$ODBC_LINK"
46764 if test "$wxUSE_GUI" = "yes"; then
46765     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46766 fi
46767 if test "$wxUSE_OPENGL" = "yes"; then
46768     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46769 fi
46770
46771 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46772
46773 WXCONFIG_LIBS="$LIBS"
46774
46775 if test "$wxUSE_REGEX" = "builtin" ; then
46776     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46777 fi
46778 if test "$wxUSE_EXPAT" = "builtin" ; then
46779     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46780 fi
46781 if test "$wxUSE_ODBC" = "builtin" ; then
46782     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
46783 fi
46784 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46785     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46786 fi
46787 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46788     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46789 fi
46790 if test "$wxUSE_LIBPNG" = "builtin" ; then
46791     wxconfig_3rdparty="png $wxconfig_3rdparty"
46792 fi
46793 if test "$wxUSE_ZLIB" = "builtin" ; then
46794     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
46795 fi
46796
46797 for i in $wxconfig_3rdparty ; do
46798     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
46799 done
46800
46801
46802 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46803     WXUNIV=1
46804
46805     case "$wxUNIV_THEMES" in
46806         ''|all)
46807             cat >>confdefs.h <<\_ACEOF
46808 #define wxUSE_ALL_THEMES 1
46809 _ACEOF
46810
46811             ;;
46812
46813         *)
46814             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46815                 cat >>confdefs.h <<_ACEOF
46816 #define wxUSE_THEME_$t 1
46817 _ACEOF
46818
46819             done
46820     esac
46821 else
46822     WXUNIV=0
46823 fi
46824
46825
46826
46827
46828
46829
46830
46831
46832
46833 if test $wxUSE_MONOLITHIC = "yes" ; then
46834     MONOLITHIC=1
46835 else
46836     MONOLITHIC=0
46837 fi
46838
46839 if test $wxUSE_PLUGINS = "yes" ; then
46840     USE_PLUGINS=1
46841 else
46842     USE_PLUGINS=0
46843 fi
46844
46845 if test $wxUSE_ODBC != "no" ; then
46846     USE_ODBC=1
46847 else
46848     USE_ODBC=0
46849 fi
46850
46851 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46852     USE_QA=1
46853 else
46854     USE_QA=0
46855 fi
46856
46857 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46858     OFFICIAL_BUILD=1
46859 else
46860     OFFICIAL_BUILD=0
46861 fi
46862
46863
46864
46865
46866
46867
46868
46869
46870
46871
46872
46873
46874
46875
46876
46877
46878
46879
46880
46881
46882
46883
46884
46885
46886
46887 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46888
46889
46890
46891
46892
46893
46894
46895
46896 case "$TOOLKIT" in
46897     GTK)
46898         TOOLKIT_DESC="GTK+"
46899         if test "$WXGTK20" = 1; then
46900             TOOLKIT_DESC="$TOOLKIT_DESC 2"
46901             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46902                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46903             fi
46904             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46905                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46906             fi
46907             if test "$wxUSE_LIBHILDON" = "yes"; then
46908                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46909             fi
46910
46911             if test "$TOOLKIT_EXTRA" != ""; then
46912                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46913             fi
46914         fi
46915         ;;
46916
46917     ?*)
46918         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46919         ;;
46920
46921     *)
46922         TOOLKIT_DESC="base only"
46923         ;;
46924 esac
46925
46926 if test "$wxUSE_WINE" = "yes"; then
46927     BAKEFILE_FORCE_PLATFORM=win32
46928 fi
46929
46930 if test "$wxUSE_MAC" = 1 ; then
46931     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46932                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46933             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46934         else
46935                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46936         fi
46937         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46938         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46939         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46940         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
46941         bk_use_pch=no
46942     fi
46943     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46944     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
46945 fi
46946
46947
46948
46949
46950     if test "x$BAKEFILE_HOST" = "x"; then
46951                if test "x${host}" = "x" ; then
46952                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46953 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46954    { (exit 1); exit 1; }; }
46955                fi
46956
46957         BAKEFILE_HOST="${host}"
46958     fi
46959
46960     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46961
46962     if test -n "$ac_tool_prefix"; then
46963   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46965 echo "$as_me:$LINENO: checking for $ac_word" >&5
46966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46967 if test "${ac_cv_prog_RANLIB+set}" = set; then
46968   echo $ECHO_N "(cached) $ECHO_C" >&6
46969 else
46970   if test -n "$RANLIB"; then
46971   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46972 else
46973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46974 for as_dir in $PATH
46975 do
46976   IFS=$as_save_IFS
46977   test -z "$as_dir" && as_dir=.
46978   for ac_exec_ext in '' $ac_executable_extensions; do
46979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46980     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46982     break 2
46983   fi
46984 done
46985 done
46986
46987 fi
46988 fi
46989 RANLIB=$ac_cv_prog_RANLIB
46990 if test -n "$RANLIB"; then
46991   echo "$as_me:$LINENO: result: $RANLIB" >&5
46992 echo "${ECHO_T}$RANLIB" >&6
46993 else
46994   echo "$as_me:$LINENO: result: no" >&5
46995 echo "${ECHO_T}no" >&6
46996 fi
46997
46998 fi
46999 if test -z "$ac_cv_prog_RANLIB"; then
47000   ac_ct_RANLIB=$RANLIB
47001   # Extract the first word of "ranlib", so it can be a program name with args.
47002 set dummy ranlib; ac_word=$2
47003 echo "$as_me:$LINENO: checking for $ac_word" >&5
47004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47005 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47006   echo $ECHO_N "(cached) $ECHO_C" >&6
47007 else
47008   if test -n "$ac_ct_RANLIB"; then
47009   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47010 else
47011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47012 for as_dir in $PATH
47013 do
47014   IFS=$as_save_IFS
47015   test -z "$as_dir" && as_dir=.
47016   for ac_exec_ext in '' $ac_executable_extensions; do
47017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47018     ac_cv_prog_ac_ct_RANLIB="ranlib"
47019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47020     break 2
47021   fi
47022 done
47023 done
47024
47025   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47026 fi
47027 fi
47028 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47029 if test -n "$ac_ct_RANLIB"; then
47030   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47031 echo "${ECHO_T}$ac_ct_RANLIB" >&6
47032 else
47033   echo "$as_me:$LINENO: result: no" >&5
47034 echo "${ECHO_T}no" >&6
47035 fi
47036
47037   RANLIB=$ac_ct_RANLIB
47038 else
47039   RANLIB="$ac_cv_prog_RANLIB"
47040 fi
47041
47042     # Find a good install program.  We prefer a C program (faster),
47043 # so one script is as good as another.  But avoid the broken or
47044 # incompatible versions:
47045 # SysV /etc/install, /usr/sbin/install
47046 # SunOS /usr/etc/install
47047 # IRIX /sbin/install
47048 # AIX /bin/install
47049 # AmigaOS /C/install, which installs bootblocks on floppy discs
47050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47053 # OS/2's system install, which has a completely different semantic
47054 # ./install, which can be erroneously created by make from ./install.sh.
47055 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47056 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47057 if test -z "$INSTALL"; then
47058 if test "${ac_cv_path_install+set}" = set; then
47059   echo $ECHO_N "(cached) $ECHO_C" >&6
47060 else
47061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47062 for as_dir in $PATH
47063 do
47064   IFS=$as_save_IFS
47065   test -z "$as_dir" && as_dir=.
47066   # Account for people who put trailing slashes in PATH elements.
47067 case $as_dir/ in
47068   ./ | .// | /cC/* | \
47069   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47070   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47071   /usr/ucb/* ) ;;
47072   *)
47073     # OSF1 and SCO ODT 3.0 have their own names for install.
47074     # Don't use installbsd from OSF since it installs stuff as root
47075     # by default.
47076     for ac_prog in ginstall scoinst install; do
47077       for ac_exec_ext in '' $ac_executable_extensions; do
47078         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47079           if test $ac_prog = install &&
47080             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47081             # AIX install.  It has an incompatible calling convention.
47082             :
47083           elif test $ac_prog = install &&
47084             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47085             # program-specific install script used by HP pwplus--don't use.
47086             :
47087           else
47088             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47089             break 3
47090           fi
47091         fi
47092       done
47093     done
47094     ;;
47095 esac
47096 done
47097
47098
47099 fi
47100   if test "${ac_cv_path_install+set}" = set; then
47101     INSTALL=$ac_cv_path_install
47102   else
47103     # As a last resort, use the slow shell script.  We don't cache a
47104     # path for INSTALL within a source directory, because that will
47105     # break other packages using the cache if that directory is
47106     # removed, or if the path is relative.
47107     INSTALL=$ac_install_sh
47108   fi
47109 fi
47110 echo "$as_me:$LINENO: result: $INSTALL" >&5
47111 echo "${ECHO_T}$INSTALL" >&6
47112
47113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47114 # It thinks the first close brace ends the variable substitution.
47115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47116
47117 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47118
47119 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47120
47121     echo "$as_me:$LINENO: checking whether ln -s works" >&5
47122 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47123 LN_S=$as_ln_s
47124 if test "$LN_S" = "ln -s"; then
47125   echo "$as_me:$LINENO: result: yes" >&5
47126 echo "${ECHO_T}yes" >&6
47127 else
47128   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47129 echo "${ECHO_T}no, using $LN_S" >&6
47130 fi
47131
47132
47133     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47134 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
47135 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
47136 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47137   echo $ECHO_N "(cached) $ECHO_C" >&6
47138 else
47139   cat >conftest.make <<\_ACEOF
47140 all:
47141         @echo 'ac_maketemp="$(MAKE)"'
47142 _ACEOF
47143 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47144 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47145 if test -n "$ac_maketemp"; then
47146   eval ac_cv_prog_make_${ac_make}_set=yes
47147 else
47148   eval ac_cv_prog_make_${ac_make}_set=no
47149 fi
47150 rm -f conftest.make
47151 fi
47152 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47153   echo "$as_me:$LINENO: result: yes" >&5
47154 echo "${ECHO_T}yes" >&6
47155   SET_MAKE=
47156 else
47157   echo "$as_me:$LINENO: result: no" >&5
47158 echo "${ECHO_T}no" >&6
47159   SET_MAKE="MAKE=${MAKE-make}"
47160 fi
47161
47162
47163
47164     if test -n "$ac_tool_prefix"; then
47165   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47166 set dummy ${ac_tool_prefix}ar; ac_word=$2
47167 echo "$as_me:$LINENO: checking for $ac_word" >&5
47168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47169 if test "${ac_cv_prog_AR+set}" = set; then
47170   echo $ECHO_N "(cached) $ECHO_C" >&6
47171 else
47172   if test -n "$AR"; then
47173   ac_cv_prog_AR="$AR" # Let the user override the test.
47174 else
47175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47176 for as_dir in $PATH
47177 do
47178   IFS=$as_save_IFS
47179   test -z "$as_dir" && as_dir=.
47180   for ac_exec_ext in '' $ac_executable_extensions; do
47181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47182     ac_cv_prog_AR="${ac_tool_prefix}ar"
47183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47184     break 2
47185   fi
47186 done
47187 done
47188
47189 fi
47190 fi
47191 AR=$ac_cv_prog_AR
47192 if test -n "$AR"; then
47193   echo "$as_me:$LINENO: result: $AR" >&5
47194 echo "${ECHO_T}$AR" >&6
47195 else
47196   echo "$as_me:$LINENO: result: no" >&5
47197 echo "${ECHO_T}no" >&6
47198 fi
47199
47200 fi
47201 if test -z "$ac_cv_prog_AR"; then
47202   ac_ct_AR=$AR
47203   # Extract the first word of "ar", so it can be a program name with args.
47204 set dummy ar; ac_word=$2
47205 echo "$as_me:$LINENO: checking for $ac_word" >&5
47206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47207 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47208   echo $ECHO_N "(cached) $ECHO_C" >&6
47209 else
47210   if test -n "$ac_ct_AR"; then
47211   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47212 else
47213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47214 for as_dir in $PATH
47215 do
47216   IFS=$as_save_IFS
47217   test -z "$as_dir" && as_dir=.
47218   for ac_exec_ext in '' $ac_executable_extensions; do
47219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47220     ac_cv_prog_ac_ct_AR="ar"
47221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47222     break 2
47223   fi
47224 done
47225 done
47226
47227   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47228 fi
47229 fi
47230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47231 if test -n "$ac_ct_AR"; then
47232   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47233 echo "${ECHO_T}$ac_ct_AR" >&6
47234 else
47235   echo "$as_me:$LINENO: result: no" >&5
47236 echo "${ECHO_T}no" >&6
47237 fi
47238
47239   AR=$ac_ct_AR
47240 else
47241   AR="$ac_cv_prog_AR"
47242 fi
47243
47244     if test -n "$ac_tool_prefix"; then
47245   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47246 set dummy ${ac_tool_prefix}strip; ac_word=$2
47247 echo "$as_me:$LINENO: checking for $ac_word" >&5
47248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47249 if test "${ac_cv_prog_STRIP+set}" = set; then
47250   echo $ECHO_N "(cached) $ECHO_C" >&6
47251 else
47252   if test -n "$STRIP"; then
47253   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47254 else
47255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47256 for as_dir in $PATH
47257 do
47258   IFS=$as_save_IFS
47259   test -z "$as_dir" && as_dir=.
47260   for ac_exec_ext in '' $ac_executable_extensions; do
47261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47262     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47264     break 2
47265   fi
47266 done
47267 done
47268
47269 fi
47270 fi
47271 STRIP=$ac_cv_prog_STRIP
47272 if test -n "$STRIP"; then
47273   echo "$as_me:$LINENO: result: $STRIP" >&5
47274 echo "${ECHO_T}$STRIP" >&6
47275 else
47276   echo "$as_me:$LINENO: result: no" >&5
47277 echo "${ECHO_T}no" >&6
47278 fi
47279
47280 fi
47281 if test -z "$ac_cv_prog_STRIP"; then
47282   ac_ct_STRIP=$STRIP
47283   # Extract the first word of "strip", so it can be a program name with args.
47284 set dummy strip; ac_word=$2
47285 echo "$as_me:$LINENO: checking for $ac_word" >&5
47286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47288   echo $ECHO_N "(cached) $ECHO_C" >&6
47289 else
47290   if test -n "$ac_ct_STRIP"; then
47291   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47292 else
47293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47294 for as_dir in $PATH
47295 do
47296   IFS=$as_save_IFS
47297   test -z "$as_dir" && as_dir=.
47298   for ac_exec_ext in '' $ac_executable_extensions; do
47299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47300     ac_cv_prog_ac_ct_STRIP="strip"
47301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47302     break 2
47303   fi
47304 done
47305 done
47306
47307   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47308 fi
47309 fi
47310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47311 if test -n "$ac_ct_STRIP"; then
47312   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47313 echo "${ECHO_T}$ac_ct_STRIP" >&6
47314 else
47315   echo "$as_me:$LINENO: result: no" >&5
47316 echo "${ECHO_T}no" >&6
47317 fi
47318
47319   STRIP=$ac_ct_STRIP
47320 else
47321   STRIP="$ac_cv_prog_STRIP"
47322 fi
47323
47324     if test -n "$ac_tool_prefix"; then
47325   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47326 set dummy ${ac_tool_prefix}nm; ac_word=$2
47327 echo "$as_me:$LINENO: checking for $ac_word" >&5
47328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47329 if test "${ac_cv_prog_NM+set}" = set; then
47330   echo $ECHO_N "(cached) $ECHO_C" >&6
47331 else
47332   if test -n "$NM"; then
47333   ac_cv_prog_NM="$NM" # Let the user override the test.
47334 else
47335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47336 for as_dir in $PATH
47337 do
47338   IFS=$as_save_IFS
47339   test -z "$as_dir" && as_dir=.
47340   for ac_exec_ext in '' $ac_executable_extensions; do
47341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47342     ac_cv_prog_NM="${ac_tool_prefix}nm"
47343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47344     break 2
47345   fi
47346 done
47347 done
47348
47349 fi
47350 fi
47351 NM=$ac_cv_prog_NM
47352 if test -n "$NM"; then
47353   echo "$as_me:$LINENO: result: $NM" >&5
47354 echo "${ECHO_T}$NM" >&6
47355 else
47356   echo "$as_me:$LINENO: result: no" >&5
47357 echo "${ECHO_T}no" >&6
47358 fi
47359
47360 fi
47361 if test -z "$ac_cv_prog_NM"; then
47362   ac_ct_NM=$NM
47363   # Extract the first word of "nm", so it can be a program name with args.
47364 set dummy nm; ac_word=$2
47365 echo "$as_me:$LINENO: checking for $ac_word" >&5
47366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47367 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47368   echo $ECHO_N "(cached) $ECHO_C" >&6
47369 else
47370   if test -n "$ac_ct_NM"; then
47371   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47372 else
47373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47374 for as_dir in $PATH
47375 do
47376   IFS=$as_save_IFS
47377   test -z "$as_dir" && as_dir=.
47378   for ac_exec_ext in '' $ac_executable_extensions; do
47379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47380     ac_cv_prog_ac_ct_NM="nm"
47381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47382     break 2
47383   fi
47384 done
47385 done
47386
47387   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47388 fi
47389 fi
47390 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47391 if test -n "$ac_ct_NM"; then
47392   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47393 echo "${ECHO_T}$ac_ct_NM" >&6
47394 else
47395   echo "$as_me:$LINENO: result: no" >&5
47396 echo "${ECHO_T}no" >&6
47397 fi
47398
47399   NM=$ac_ct_NM
47400 else
47401   NM="$ac_cv_prog_NM"
47402 fi
47403
47404
47405     case ${BAKEFILE_HOST} in
47406         *-hp-hpux* )
47407                                     INSTALL_DIR="mkdir -p"
47408             ;;
47409         *)  INSTALL_DIR="$INSTALL -d"
47410             ;;
47411     esac
47412
47413
47414     LDFLAGS_GUI=
47415     case ${BAKEFILE_HOST} in
47416         *-*-cygwin* | *-*-mingw32* )
47417         LDFLAGS_GUI="-mwindows"
47418     esac
47419
47420
47421     fi
47422
47423         echo "$as_me:$LINENO: checking if make is GNU make" >&5
47424 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47425 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47426   echo $ECHO_N "(cached) $ECHO_C" >&6
47427 else
47428
47429         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47430                 egrep -s GNU > /dev/null); then
47431             bakefile_cv_prog_makeisgnu="yes"
47432         else
47433             bakefile_cv_prog_makeisgnu="no"
47434         fi
47435
47436 fi
47437 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47438 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47439
47440     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47441         IF_GNU_MAKE=""
47442     else
47443         IF_GNU_MAKE="#"
47444     fi
47445
47446
47447
47448     PLATFORM_UNIX=0
47449     PLATFORM_WIN32=0
47450     PLATFORM_MSDOS=0
47451     PLATFORM_MAC=0
47452     PLATFORM_MACOS=0
47453     PLATFORM_MACOSX=0
47454     PLATFORM_OS2=0
47455     PLATFORM_BEOS=0
47456
47457     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47458         case "${BAKEFILE_HOST}" in
47459             *-*-mingw32* )
47460                 PLATFORM_WIN32=1
47461             ;;
47462             *-pc-msdosdjgpp )
47463                 PLATFORM_MSDOS=1
47464             ;;
47465             *-pc-os2_emx | *-pc-os2-emx )
47466                 PLATFORM_OS2=1
47467             ;;
47468             *-*-darwin* )
47469                 PLATFORM_MAC=1
47470                 PLATFORM_MACOSX=1
47471             ;;
47472             *-*-beos* )
47473                 PLATFORM_BEOS=1
47474             ;;
47475             powerpc-apple-macos* )
47476                 PLATFORM_MAC=1
47477                 PLATFORM_MACOS=1
47478             ;;
47479             * )
47480                 PLATFORM_UNIX=1
47481             ;;
47482         esac
47483     else
47484         case "$BAKEFILE_FORCE_PLATFORM" in
47485             win32 )
47486                 PLATFORM_WIN32=1
47487             ;;
47488             msdos )
47489                 PLATFORM_MSDOS=1
47490             ;;
47491             os2 )
47492                 PLATFORM_OS2=1
47493             ;;
47494             darwin )
47495                 PLATFORM_MAC=1
47496                 PLATFORM_MACOSX=1
47497             ;;
47498             unix )
47499                 PLATFORM_UNIX=1
47500             ;;
47501             beos )
47502                 PLATFORM_BEOS=1
47503             ;;
47504             * )
47505                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47506 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47507    { (exit 1); exit 1; }; }
47508             ;;
47509         esac
47510     fi
47511
47512
47513
47514
47515
47516
47517
47518
47519
47520
47521
47522     # Check whether --enable-omf or --disable-omf was given.
47523 if test "${enable_omf+set}" = set; then
47524   enableval="$enable_omf"
47525   bk_os2_use_omf="$enableval"
47526 fi;
47527
47528     case "${BAKEFILE_HOST}" in
47529       *-*-darwin* )
47530                         if test "x$GCC" = "xyes"; then
47531             CFLAGS="$CFLAGS -fno-common"
47532             CXXFLAGS="$CXXFLAGS -fno-common"
47533         fi
47534         if test "x$XLCC" = "xyes"; then
47535             CFLAGS="$CFLAGS -qnocommon"
47536             CXXFLAGS="$CXXFLAGS -qnocommon"
47537         fi
47538         ;;
47539
47540       *-pc-os2_emx | *-pc-os2-emx )
47541         if test "x$bk_os2_use_omf" = "xyes" ; then
47542             AR=emxomfar
47543             RANLIB=:
47544             LDFLAGS="-Zomf $LDFLAGS"
47545             CFLAGS="-Zomf $CFLAGS"
47546             CXXFLAGS="-Zomf $CXXFLAGS"
47547             OS2_LIBEXT="lib"
47548         else
47549             OS2_LIBEXT="a"
47550         fi
47551         ;;
47552
47553       i*86-*-beos* )
47554         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47555         ;;
47556     esac
47557
47558
47559     SO_SUFFIX="so"
47560     SO_SUFFIX_MODULE="so"
47561     EXEEXT=""
47562     LIBPREFIX="lib"
47563     LIBEXT=".a"
47564     DLLPREFIX="lib"
47565     DLLPREFIX_MODULE=""
47566     DLLIMP_SUFFIX=""
47567     dlldir="$libdir"
47568
47569     case "${BAKEFILE_HOST}" in
47570         *-hp-hpux* )
47571             SO_SUFFIX="sl"
47572             SO_SUFFIX_MODULE="sl"
47573         ;;
47574         *-*-aix* )
47575                                                                         SO_SUFFIX="a"
47576             SO_SUFFIX_MODULE="a"
47577         ;;
47578         *-*-cygwin* )
47579             SO_SUFFIX="dll"
47580             SO_SUFFIX_MODULE="dll"
47581             DLLIMP_SUFFIX="dll.a"
47582             EXEEXT=".exe"
47583             DLLPREFIX="cyg"
47584             dlldir="$bindir"
47585         ;;
47586         *-*-mingw32* )
47587             SO_SUFFIX="dll"
47588             SO_SUFFIX_MODULE="dll"
47589             DLLIMP_SUFFIX="dll.a"
47590             EXEEXT=".exe"
47591             DLLPREFIX=""
47592             dlldir="$bindir"
47593         ;;
47594         *-pc-msdosdjgpp )
47595             EXEEXT=".exe"
47596             DLLPREFIX=""
47597             dlldir="$bindir"
47598         ;;
47599         *-pc-os2_emx | *-pc-os2-emx )
47600             SO_SUFFIX="dll"
47601             SO_SUFFIX_MODULE="dll"
47602             DLLIMP_SUFFIX=$OS2_LIBEXT
47603             EXEEXT=".exe"
47604             DLLPREFIX=""
47605             LIBPREFIX=""
47606             LIBEXT=".$OS2_LIBEXT"
47607             dlldir="$bindir"
47608         ;;
47609         *-*-darwin* )
47610             SO_SUFFIX="dylib"
47611             SO_SUFFIX_MODULE="bundle"
47612         ;;
47613     esac
47614
47615     if test "x$DLLIMP_SUFFIX" = "x" ; then
47616         DLLIMP_SUFFIX="$SO_SUFFIX"
47617     fi
47618
47619
47620
47621
47622
47623
47624
47625
47626
47627
47628
47629
47630         PIC_FLAG=""
47631     if test "x$GCC" = "xyes"; then
47632                 PIC_FLAG="-fPIC"
47633     fi
47634
47635         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47636     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47637     WINDOWS_IMPLIB=0
47638
47639     case "${BAKEFILE_HOST}" in
47640       *-hp-hpux* )
47641                 if test "x$GCC" != "xyes"; then
47642                         LDFLAGS="$LDFLAGS -L/usr/lib"
47643
47644             SHARED_LD_CC="${CC} -b -o"
47645             SHARED_LD_CXX="${CXX} -b -o"
47646             PIC_FLAG="+Z"
47647         fi
47648       ;;
47649
47650       *-*-linux* )
47651         if test "x$GCC" != "xyes"; then
47652             echo "$as_me:$LINENO: checking for Intel compiler" >&5
47653 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47654 if test "${bakefile_cv_prog_icc+set}" = set; then
47655   echo $ECHO_N "(cached) $ECHO_C" >&6
47656 else
47657
47658                 cat >conftest.$ac_ext <<_ACEOF
47659 /* confdefs.h.  */
47660 _ACEOF
47661 cat confdefs.h >>conftest.$ac_ext
47662 cat >>conftest.$ac_ext <<_ACEOF
47663 /* end confdefs.h.  */
47664
47665 int
47666 main ()
47667 {
47668
47669                         #ifndef __INTEL_COMPILER
47670                         This is not ICC
47671                         #endif
47672
47673   ;
47674   return 0;
47675 }
47676 _ACEOF
47677 rm -f conftest.$ac_objext
47678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47679   (eval $ac_compile) 2>conftest.er1
47680   ac_status=$?
47681   grep -v '^ *+' conftest.er1 >conftest.err
47682   rm -f conftest.er1
47683   cat conftest.err >&5
47684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47685   (exit $ac_status); } &&
47686          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47688   (eval $ac_try) 2>&5
47689   ac_status=$?
47690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47691   (exit $ac_status); }; } &&
47692          { ac_try='test -s conftest.$ac_objext'
47693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47694   (eval $ac_try) 2>&5
47695   ac_status=$?
47696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47697   (exit $ac_status); }; }; then
47698   bakefile_cv_prog_icc=yes
47699 else
47700   echo "$as_me: failed program was:" >&5
47701 sed 's/^/| /' conftest.$ac_ext >&5
47702
47703 bakefile_cv_prog_icc=no
47704
47705 fi
47706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47707
47708 fi
47709 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47710 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47711             if test "$bakefile_cv_prog_icc" = "yes"; then
47712                 PIC_FLAG="-KPIC"
47713             fi
47714         fi
47715       ;;
47716
47717       *-*-solaris2* )
47718         if test "x$GCC" != xyes ; then
47719             SHARED_LD_CC="${CC} -G -o"
47720             SHARED_LD_CXX="${CXX} -G -o"
47721             PIC_FLAG="-KPIC"
47722         fi
47723       ;;
47724
47725       *-*-darwin* )
47726
47727 D='$'
47728 cat <<EOF >shared-ld-sh
47729 #!/bin/sh
47730 #-----------------------------------------------------------------------------
47731 #-- Name:        distrib/mac/shared-ld-sh
47732 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47733 #-- Author:      Gilles Depeyrot
47734 #-- Copyright:   (c) 2002 Gilles Depeyrot
47735 #-- Licence:     any use permitted
47736 #-----------------------------------------------------------------------------
47737
47738 verbose=0
47739 args=""
47740 objects=""
47741 linking_flag="-dynamiclib"
47742 ldargs="-r -keep_private_externs -nostdlib"
47743
47744 while test ${D}# -gt 0; do
47745     case ${D}1 in
47746
47747        -v)
47748         verbose=1
47749         ;;
47750
47751        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47752         # collect these options and values
47753         args="${D}{args} ${D}1 ${D}2"
47754         shift
47755         ;;
47756
47757        -s|-Wl,*)
47758         # collect these load args
47759         ldargs="${D}{ldargs} ${D}1"
47760         ;;
47761
47762        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
47763         # collect these options
47764         args="${D}{args} ${D}1"
47765         ;;
47766
47767        -dynamiclib|-bundle)
47768         linking_flag="${D}1"
47769         ;;
47770
47771        -*)
47772         echo "shared-ld: unhandled option '${D}1'"
47773         exit 1
47774         ;;
47775
47776         *.o | *.a | *.dylib)
47777         # collect object files
47778         objects="${D}{objects} ${D}1"
47779         ;;
47780
47781         *)
47782         echo "shared-ld: unhandled argument '${D}1'"
47783         exit 1
47784         ;;
47785
47786     esac
47787     shift
47788 done
47789
47790 status=0
47791
47792 #
47793 # Link one module containing all the others
47794 #
47795 if test ${D}{verbose} = 1; then
47796     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
47797 fi
47798 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
47799 status=${D}?
47800
47801 #
47802 # Link the shared library from the single module created, but only if the
47803 # previous command didn't fail:
47804 #
47805 if test ${D}{status} = 0; then
47806     if test ${D}{verbose} = 1; then
47807         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47808     fi
47809     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47810     status=${D}?
47811 fi
47812
47813 #
47814 # Remove intermediate module
47815 #
47816 rm -f master.${D}${D}.o
47817
47818 exit ${D}status
47819 EOF
47820
47821         chmod +x shared-ld-sh
47822
47823         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47824         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47825
47826
47827                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47828 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47829 if test "${bakefile_cv_gcc31+set}" = set; then
47830   echo $ECHO_N "(cached) $ECHO_C" >&6
47831 else
47832
47833            cat >conftest.$ac_ext <<_ACEOF
47834 /* confdefs.h.  */
47835 _ACEOF
47836 cat confdefs.h >>conftest.$ac_ext
47837 cat >>conftest.$ac_ext <<_ACEOF
47838 /* end confdefs.h.  */
47839
47840 int
47841 main ()
47842 {
47843
47844                    #if (__GNUC__ < 3) || \
47845                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
47846                        This is old gcc
47847                    #endif
47848
47849   ;
47850   return 0;
47851 }
47852 _ACEOF
47853 rm -f conftest.$ac_objext
47854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47855   (eval $ac_compile) 2>conftest.er1
47856   ac_status=$?
47857   grep -v '^ *+' conftest.er1 >conftest.err
47858   rm -f conftest.er1
47859   cat conftest.err >&5
47860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47861   (exit $ac_status); } &&
47862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47864   (eval $ac_try) 2>&5
47865   ac_status=$?
47866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47867   (exit $ac_status); }; } &&
47868          { ac_try='test -s conftest.$ac_objext'
47869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47870   (eval $ac_try) 2>&5
47871   ac_status=$?
47872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47873   (exit $ac_status); }; }; then
47874
47875                    bakefile_cv_gcc31=yes
47876
47877 else
47878   echo "$as_me: failed program was:" >&5
47879 sed 's/^/| /' conftest.$ac_ext >&5
47880
47881
47882                    bakefile_cv_gcc31=no
47883
47884
47885 fi
47886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47887
47888 fi
47889 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47890 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47891         if test "$bakefile_cv_gcc31" = "no"; then
47892                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
47893             SHARED_LD_CXX="$SHARED_LD_CC"
47894         else
47895                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
47896             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
47897         fi
47898
47899         if test "x$GCC" == "xyes"; then
47900             PIC_FLAG="-dynamic -fPIC"
47901         fi
47902         if test "x$XLCC" = "xyes"; then
47903             PIC_FLAG="-dynamic -DPIC"
47904         fi
47905       ;;
47906
47907       *-*-aix* )
47908         if test "x$GCC" = "xyes"; then
47909                                                             PIC_FLAG=""
47910
47911                                                                                     case "${BAKEFILE_HOST}" in
47912                 *-*-aix5* )
47913                     LD_EXPFULL="-Wl,-bexpfull"
47914                     ;;
47915             esac
47916
47917             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47918             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47919         else
47920                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
47921 set dummy makeC++SharedLib; ac_word=$2
47922 echo "$as_me:$LINENO: checking for $ac_word" >&5
47923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47924 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47925   echo $ECHO_N "(cached) $ECHO_C" >&6
47926 else
47927   if test -n "$AIX_CXX_LD"; then
47928   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47929 else
47930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47931 for as_dir in $PATH
47932 do
47933   IFS=$as_save_IFS
47934   test -z "$as_dir" && as_dir=.
47935   for ac_exec_ext in '' $ac_executable_extensions; do
47936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47937     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47939     break 2
47940   fi
47941 done
47942 done
47943
47944   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47945 fi
47946 fi
47947 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47948 if test -n "$AIX_CXX_LD"; then
47949   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47950 echo "${ECHO_T}$AIX_CXX_LD" >&6
47951 else
47952   echo "$as_me:$LINENO: result: no" >&5
47953 echo "${ECHO_T}no" >&6
47954 fi
47955
47956             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
47957             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47958         fi
47959       ;;
47960
47961       *-*-beos* )
47962                         SHARED_LD_CC="${LD} -nostart -o"
47963         SHARED_LD_CXX="${LD} -nostart -o"
47964       ;;
47965
47966       *-*-irix* )
47967                 if test "x$GCC" != "xyes"; then
47968             PIC_FLAG="-KPIC"
47969         fi
47970       ;;
47971
47972       *-*-cygwin* | *-*-mingw32* )
47973         PIC_FLAG=""
47974         SHARED_LD_CC="\$(CC) -shared -o"
47975         SHARED_LD_CXX="\$(CXX) -shared -o"
47976         WINDOWS_IMPLIB=1
47977       ;;
47978
47979       *-pc-os2_emx | *-pc-os2-emx )
47980         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47981         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47982         PIC_FLAG=""
47983
47984 D='$'
47985 cat <<EOF >dllar.sh
47986 #!/bin/sh
47987 #
47988 # dllar - a tool to build both a .dll and an .a file
47989 # from a set of object (.o) files for EMX/OS2.
47990 #
47991 #  Written by Andrew Zabolotny, bit@freya.etu.ru
47992 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47993 #
47994 #  This script will accept a set of files on the command line.
47995 #  All the public symbols from the .o files will be exported into
47996 #  a .DEF file, then linker will be run (through gcc) against them to
47997 #  build a shared library consisting of all given .o files. All libraries
47998 #  (.a) will be first decompressed into component .o files then act as
47999 #  described above. You can optionally give a description (-d "description")
48000 #  which will be put into .DLL. To see the list of accepted options (as well
48001 #  as command-line format) simply run this program without options. The .DLL
48002 #  is built to be imported by name (there is no guarantee that new versions
48003 #  of the library you build will have same ordinals for same symbols).
48004 #
48005 #  dllar is free software; you can redistribute it and/or modify
48006 #  it under the terms of the GNU General Public License as published by
48007 #  the Free Software Foundation; either version 2, or (at your option)
48008 #  any later version.
48009 #
48010 #  dllar is distributed in the hope that it will be useful,
48011 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48012 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48013 #  GNU General Public License for more details.
48014 #
48015 #  You should have received a copy of the GNU General Public License
48016 #  along with dllar; see the file COPYING.  If not, write to the Free
48017 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48018 #  02111-1307, USA.
48019
48020 # To successfuly run this program you will need:
48021 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48022 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48023 #  - gcc
48024 #    (used to build the .dll)
48025 #  - emxexp
48026 #    (used to create .def file from .o files)
48027 #  - emximp
48028 #    (used to create .a file from .def file)
48029 #  - GNU text utilites (cat, sort, uniq)
48030 #    used to process emxexp output
48031 #  - GNU file utilities (mv, rm)
48032 #  - GNU sed
48033 #  - lxlite (optional, see flag below)
48034 #    (used for general .dll cleanup)
48035 #
48036
48037 flag_USE_LXLITE=1;
48038
48039 #
48040 # helper functions
48041 # basnam, variant of basename, which does _not_ remove the path, _iff_
48042 #                              second argument (suffix to remove) is given
48043 basnam(){
48044     case ${D}# in
48045     1)
48046         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48047         ;;
48048     2)
48049         echo ${D}1 | sed 's/'${D}2'${D}//'
48050         ;;
48051     *)
48052         echo "error in basnam ${D}*"
48053         exit 8
48054         ;;
48055     esac
48056 }
48057
48058 # Cleanup temporary files and output
48059 CleanUp() {
48060     cd ${D}curDir
48061     for i in ${D}inputFiles ; do
48062         case ${D}i in
48063         *!)
48064             rm -rf \`basnam ${D}i !\`
48065             ;;
48066         *)
48067             ;;
48068         esac
48069     done
48070
48071     # Kill result in case of failure as there is just to many stupid make/nmake
48072     # things out there which doesn't do this.
48073     if [ ${D}# -eq 0 ]; then
48074         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48075     fi
48076 }
48077
48078 # Print usage and exit script with rc=1.
48079 PrintHelp() {
48080  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48081  echo '       [-name-mangler-script script.sh]'
48082  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48083  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48084  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48085  echo '       [*.o] [*.a]'
48086  echo '*> "output_file" should have no extension.'
48087  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48088  echo '   The import library name is derived from this and is set to "name".a,'
48089  echo '   unless overridden by -import'
48090  echo '*> "importlib_name" should have no extension.'
48091  echo '   If it has the .o, or .a extension, it is automatically removed.'
48092  echo '   This name is used as the import library name and may be longer and'
48093  echo '   more descriptive than the DLL name which has to follow the old '
48094  echo '   8.3 convention of FAT.'
48095  echo '*> "script.sh may be given to override the output_file name by a'
48096  echo '   different name. It is mainly useful if the regular make process'
48097  echo '   of some package does not take into account OS/2 restriction of'
48098  echo '   DLL name lengths. It takes the importlib name as input and is'
48099  echo '   supposed to procude a shorter name as output. The script should'
48100  echo '   expect to get importlib_name without extension and should produce'
48101  echo '   a (max.) 8 letter name without extension.'
48102  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48103  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48104  echo '   These flags will be put at the start of GCC command line.'
48105  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48106  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48107  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48108  echo '   If the last character of a symbol is "*", all symbols beginning'
48109  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48110  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48111  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48112  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48113  echo '   C runtime DLLs.'
48114  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48115  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48116  echo '   unchanged to GCC at the end of command line.'
48117  echo '*> If you create a DLL from a library and you do not specify -o,'
48118  echo '   the basename for DLL and import library will be set to library name,'
48119  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48120  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48121  echo '   library will be renamed into gcc_s.a.'
48122  echo '--------'
48123  echo 'Example:'
48124  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48125  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48126  CleanUp
48127  exit 1
48128 }
48129
48130 # Execute a command.
48131 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48132 # @Uses    Whatever CleanUp() uses.
48133 doCommand() {
48134     echo "${D}*"
48135     eval ${D}*
48136     rcCmd=${D}?
48137
48138     if [ ${D}rcCmd -ne 0 ]; then
48139         echo "command failed, exit code="${D}rcCmd
48140         CleanUp
48141         exit ${D}rcCmd
48142     fi
48143 }
48144
48145 # main routine
48146 # setup globals
48147 cmdLine=${D}*
48148 outFile=""
48149 outimpFile=""
48150 inputFiles=""
48151 renameScript=""
48152 description=""
48153 CC=gcc.exe
48154 CFLAGS="-s -Zcrtdll"
48155 EXTRA_CFLAGS=""
48156 EXPORT_BY_ORDINALS=0
48157 exclude_symbols=""
48158 library_flags=""
48159 curDir=\`pwd\`
48160 curDirS=curDir
48161 case ${D}curDirS in
48162 */)
48163   ;;
48164 *)
48165   curDirS=${D}{curDirS}"/"
48166   ;;
48167 esac
48168 # Parse commandline
48169 libsToLink=0
48170 omfLinking=0
48171 while [ ${D}1 ]; do
48172     case ${D}1 in
48173     -ord*)
48174         EXPORT_BY_ORDINALS=1;
48175         ;;
48176     -o*)
48177         shift
48178         outFile=${D}1
48179         ;;
48180     -i*)
48181         shift
48182         outimpFile=${D}1
48183         ;;
48184     -name-mangler-script)
48185         shift
48186         renameScript=${D}1
48187         ;;
48188     -d*)
48189         shift
48190         description=${D}1
48191         ;;
48192     -f*)
48193         shift
48194         CFLAGS=${D}1
48195         ;;
48196     -c*)
48197         shift
48198         CC=${D}1
48199         ;;
48200     -h*)
48201         PrintHelp
48202         ;;
48203     -ex*)
48204         shift
48205         exclude_symbols=${D}{exclude_symbols}${D}1" "
48206         ;;
48207     -libf*)
48208         shift
48209         library_flags=${D}{library_flags}${D}1" "
48210         ;;
48211     -nocrt*)
48212         CFLAGS="-s"
48213         ;;
48214     -nolxl*)
48215         flag_USE_LXLITE=0
48216         ;;
48217     -* | /*)
48218         case ${D}1 in
48219         -L* | -l*)
48220             libsToLink=1
48221             ;;
48222         -Zomf)
48223             omfLinking=1
48224             ;;
48225         *)
48226             ;;
48227         esac
48228         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48229         ;;
48230     *.dll)
48231         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48232         if [ ${D}omfLinking -eq 1 ]; then
48233             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48234         else
48235             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48236         fi
48237         ;;
48238     *)
48239         found=0;
48240         if [ ${D}libsToLink -ne 0 ]; then
48241             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48242         else
48243             for file in ${D}1 ; do
48244                 if [ -f ${D}file ]; then
48245                     inputFiles="${D}{inputFiles} ${D}file"
48246                     found=1
48247                 fi
48248             done
48249             if [ ${D}found -eq 0 ]; then
48250                 echo "ERROR: No file(s) found: "${D}1
48251                 exit 8
48252             fi
48253         fi
48254       ;;
48255     esac
48256     shift
48257 done # iterate cmdline words
48258
48259 #
48260 if [ -z "${D}inputFiles" ]; then
48261     echo "dllar: no input files"
48262     PrintHelp
48263 fi
48264
48265 # Now extract all .o files from .a files
48266 newInputFiles=""
48267 for file in ${D}inputFiles ; do
48268     case ${D}file in
48269     *.a | *.lib)
48270         case ${D}file in
48271         *.a)
48272             suffix=".a"
48273             AR="ar"
48274             ;;
48275         *.lib)
48276             suffix=".lib"
48277             AR="emxomfar"
48278             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48279             ;;
48280         *)
48281             ;;
48282         esac
48283         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48284         mkdir ${D}dirname
48285         if [ ${D}? -ne 0 ]; then
48286             echo "Failed to create subdirectory ./${D}dirname"
48287             CleanUp
48288             exit 8;
48289         fi
48290         # Append '!' to indicate archive
48291         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48292         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48293         cd ${D}curDir
48294         found=0;
48295         for subfile in ${D}dirname/*.o* ; do
48296             if [ -f ${D}subfile ]; then
48297                 found=1
48298                 if [ -s ${D}subfile ]; then
48299                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48300                     newInputFiles="${D}newInputFiles ${D}subfile"
48301                 fi
48302             fi
48303         done
48304         if [ ${D}found -eq 0 ]; then
48305             echo "WARNING: there are no files in archive \\'${D}file\\'"
48306         fi
48307         ;;
48308     *)
48309         newInputFiles="${D}{newInputFiles} ${D}file"
48310         ;;
48311     esac
48312 done
48313 inputFiles="${D}newInputFiles"
48314
48315 # Output filename(s).
48316 do_backup=0;
48317 if [ -z ${D}outFile ]; then
48318     do_backup=1;
48319     set outFile ${D}inputFiles; outFile=${D}2
48320 fi
48321
48322 # If it is an archive, remove the '!' and the '_%' suffixes
48323 case ${D}outFile in
48324 *_%!)
48325     outFile=\`basnam ${D}outFile _%!\`
48326     ;;
48327 *)
48328     ;;
48329 esac
48330 case ${D}outFile in
48331 *.dll)
48332     outFile=\`basnam ${D}outFile .dll\`
48333     ;;
48334 *.DLL)
48335     outFile=\`basnam ${D}outFile .DLL\`
48336     ;;
48337 *.o)
48338     outFile=\`basnam ${D}outFile .o\`
48339     ;;
48340 *.obj)
48341     outFile=\`basnam ${D}outFile .obj\`
48342     ;;
48343 *.a)
48344     outFile=\`basnam ${D}outFile .a\`
48345     ;;
48346 *.lib)
48347     outFile=\`basnam ${D}outFile .lib\`
48348     ;;
48349 *)
48350     ;;
48351 esac
48352 case ${D}outimpFile in
48353 *.a)
48354     outimpFile=\`basnam ${D}outimpFile .a\`
48355     ;;
48356 *.lib)
48357     outimpFile=\`basnam ${D}outimpFile .lib\`
48358     ;;
48359 *)
48360     ;;
48361 esac
48362 if [ -z ${D}outimpFile ]; then
48363     outimpFile=${D}outFile
48364 fi
48365 defFile="${D}{outFile}.def"
48366 arcFile="${D}{outimpFile}.a"
48367 arcFile2="${D}{outimpFile}.lib"
48368
48369 #create ${D}dllFile as something matching 8.3 restrictions,
48370 if [ -z ${D}renameScript ] ; then
48371     dllFile="${D}outFile"
48372 else
48373     dllFile=\`${D}renameScript ${D}outimpFile\`
48374 fi
48375
48376 if [ ${D}do_backup -ne 0 ] ; then
48377     if [ -f ${D}arcFile ] ; then
48378         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48379     fi
48380     if [ -f ${D}arcFile2 ] ; then
48381         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48382     fi
48383 fi
48384
48385 # Extract public symbols from all the object files.
48386 tmpdefFile=${D}{defFile}_%
48387 rm -f ${D}tmpdefFile
48388 for file in ${D}inputFiles ; do
48389     case ${D}file in
48390     *!)
48391         ;;
48392     *)
48393         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48394         ;;
48395     esac
48396 done
48397
48398 # Create the def file.
48399 rm -f ${D}defFile
48400 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48401 dllFile="${D}{dllFile}.dll"
48402 if [ ! -z ${D}description ]; then
48403     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48404 fi
48405 echo "EXPORTS" >> ${D}defFile
48406
48407 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48408 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48409
48410 # Checks if the export is ok or not.
48411 for word in ${D}exclude_symbols; do
48412     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48413     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48414 done
48415
48416
48417 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48418     sed "=" < ${D}tmpdefFile | \\
48419     sed '
48420       N
48421       : loop
48422       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48423       t loop
48424     ' > ${D}{tmpdefFile}%
48425     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48426 else
48427     rm -f ${D}{tmpdefFile}%
48428 fi
48429 cat ${D}tmpdefFile >> ${D}defFile
48430 rm -f ${D}tmpdefFile
48431
48432 # Do linking, create implib, and apply lxlite.
48433 gccCmdl="";
48434 for file in ${D}inputFiles ; do
48435     case ${D}file in
48436     *!)
48437         ;;
48438     *)
48439         gccCmdl="${D}gccCmdl ${D}file"
48440         ;;
48441     esac
48442 done
48443 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48444 touch "${D}{outFile}.dll"
48445
48446 doCommand "emximp -o ${D}arcFile ${D}defFile"
48447 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48448     add_flags="";
48449     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48450         add_flags="-ynd"
48451     fi
48452     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48453 fi
48454 doCommand "emxomf -s -l ${D}arcFile"
48455
48456 # Successful exit.
48457 CleanUp 1
48458 exit 0
48459 EOF
48460
48461         chmod +x dllar.sh
48462       ;;
48463
48464       powerpc-apple-macos* | \
48465       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48466       *-*-sunos4* | \
48467       *-*-osf* | \
48468       *-*-dgux5* | \
48469       *-*-sysv5* | \
48470       *-pc-msdosdjgpp )
48471               ;;
48472
48473       *)
48474                     esac
48475
48476     if test "x$PIC_FLAG" != "x" ; then
48477         PIC_FLAG="$PIC_FLAG -DPIC"
48478     fi
48479
48480     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48481         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48482     fi
48483     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48484         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48485     fi
48486
48487
48488
48489
48490
48491
48492
48493
48494
48495     USE_SOVERSION=0
48496     USE_SOVERLINUX=0
48497     USE_SOVERSOLARIS=0
48498     USE_SOVERCYGWIN=0
48499     USE_SOSYMLINKS=0
48500     USE_MACVERSION=0
48501     SONAME_FLAG=
48502
48503     case "${BAKEFILE_HOST}" in
48504       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
48505         SONAME_FLAG="-Wl,-soname,"
48506         USE_SOVERSION=1
48507         USE_SOVERLINUX=1
48508         USE_SOSYMLINKS=1
48509       ;;
48510
48511       *-*-solaris2* )
48512         SONAME_FLAG="-h "
48513         USE_SOVERSION=1
48514         USE_SOVERSOLARIS=1
48515         USE_SOSYMLINKS=1
48516       ;;
48517
48518       *-*-darwin* )
48519         USE_MACVERSION=1
48520         USE_SOVERSION=1
48521         USE_SOSYMLINKS=1
48522       ;;
48523
48524       *-*-cygwin* )
48525         USE_SOVERSION=1
48526         USE_SOVERCYGWIN=1
48527       ;;
48528     esac
48529
48530
48531
48532
48533
48534
48535
48536
48537
48538
48539     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48540 if test "${enable_dependency_tracking+set}" = set; then
48541   enableval="$enable_dependency_tracking"
48542   bk_use_trackdeps="$enableval"
48543 fi;
48544
48545     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48546 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
48547
48548     if test "x$bk_use_trackdeps" = "xno" ; then
48549         DEPS_TRACKING=0
48550         echo "$as_me:$LINENO: result: disabled" >&5
48551 echo "${ECHO_T}disabled" >&6
48552     else
48553         DEPS_TRACKING=1
48554
48555         if test "x$GCC" = "xyes"; then
48556             DEPSMODE=gcc
48557             case "${BAKEFILE_HOST}" in
48558                 *-*-darwin* )
48559                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48560                 ;;
48561                 * )
48562                     DEPSFLAG="-MMD"
48563                 ;;
48564             esac
48565             echo "$as_me:$LINENO: result: gcc" >&5
48566 echo "${ECHO_T}gcc" >&6
48567         elif test "x$MWCC" = "xyes"; then
48568             DEPSMODE=mwcc
48569             DEPSFLAG="-MM"
48570             echo "$as_me:$LINENO: result: mwcc" >&5
48571 echo "${ECHO_T}mwcc" >&6
48572         elif test "x$SUNCC" = "xyes"; then
48573             DEPSMODE=unixcc
48574             DEPSFLAG="-xM1"
48575             echo "$as_me:$LINENO: result: Sun cc" >&5
48576 echo "${ECHO_T}Sun cc" >&6
48577         elif test "x$SGICC" = "xyes"; then
48578             DEPSMODE=unixcc
48579             DEPSFLAG="-M"
48580             echo "$as_me:$LINENO: result: SGI cc" >&5
48581 echo "${ECHO_T}SGI cc" >&6
48582         elif test "x$HPCC" = "xyes"; then
48583             DEPSMODE=unixcc
48584             DEPSFLAG="+make"
48585             echo "$as_me:$LINENO: result: HP cc" >&5
48586 echo "${ECHO_T}HP cc" >&6
48587         elif test "x$COMPAQCC" = "xyes"; then
48588             DEPSMODE=gcc
48589             DEPSFLAG="-MD"
48590             echo "$as_me:$LINENO: result: Compaq cc" >&5
48591 echo "${ECHO_T}Compaq cc" >&6
48592         else
48593             DEPS_TRACKING=0
48594             echo "$as_me:$LINENO: result: none" >&5
48595 echo "${ECHO_T}none" >&6
48596         fi
48597
48598         if test $DEPS_TRACKING = 1 ; then
48599
48600 D='$'
48601 cat <<EOF >bk-deps
48602 #!/bin/sh
48603
48604 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48605 # script. It is used to track C/C++ files dependencies in portable way.
48606 #
48607 # Permission is given to use this file in any way.
48608
48609 DEPSMODE=${DEPSMODE}
48610 DEPSDIR=.deps
48611 DEPSFLAG="${DEPSFLAG}"
48612
48613 mkdir -p ${D}DEPSDIR
48614
48615 if test ${D}DEPSMODE = gcc ; then
48616     ${D}* ${D}{DEPSFLAG}
48617     status=${D}?
48618     if test ${D}{status} != 0 ; then
48619         exit ${D}{status}
48620     fi
48621     # move created file to the location we want it in:
48622     while test ${D}# -gt 0; do
48623         case "${D}1" in
48624             -o )
48625                 shift
48626                 objfile=${D}1
48627             ;;
48628             -* )
48629             ;;
48630             * )
48631                 srcfile=${D}1
48632             ;;
48633         esac
48634         shift
48635     done
48636     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48637     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48638     if test -f ${D}depfile ; then
48639         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48640         rm -f ${D}depfile
48641     else
48642         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48643         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48644         if test ! -f ${D}depfile ; then
48645             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48646             depfile="${D}objfile.d"
48647         fi
48648         if test -f ${D}depfile ; then
48649             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48650             rm -f ${D}depfile
48651         fi
48652     fi
48653     exit 0
48654 elif test ${D}DEPSMODE = mwcc ; then
48655     ${D}* || exit ${D}?
48656     # Run mwcc again with -MM and redirect into the dep file we want
48657     # NOTE: We can't use shift here because we need ${D}* to be valid
48658     prevarg=
48659     for arg in ${D}* ; do
48660         if test "${D}prevarg" = "-o"; then
48661             objfile=${D}arg
48662         else
48663             case "${D}arg" in
48664                 -* )
48665                 ;;
48666                 * )
48667                     srcfile=${D}arg
48668                 ;;
48669             esac
48670         fi
48671         prevarg="${D}arg"
48672     done
48673     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48674     exit 0
48675 elif test ${D}DEPSMODE = unixcc; then
48676     ${D}* || exit ${D}?
48677     # Run compiler again with deps flag and redirect into the dep file.
48678     # It doesn't work if the '-o FILE' option is used, but without it the
48679     # dependency file will contain the wrong name for the object. So it is
48680     # removed from the command line, and the dep file is fixed with sed.
48681     cmd=""
48682     while test ${D}# -gt 0; do
48683         case "${D}1" in
48684             -o )
48685                 shift
48686                 objfile=${D}1
48687             ;;
48688             * )
48689                 eval arg${D}#=\\${D}1
48690                 cmd="${D}cmd \\${D}arg${D}#"
48691             ;;
48692         esac
48693         shift
48694     done
48695     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48696     exit 0
48697 else
48698     ${D}*
48699     exit ${D}?
48700 fi
48701 EOF
48702
48703             chmod +x bk-deps
48704         fi
48705     fi
48706
48707
48708
48709
48710     case ${BAKEFILE_HOST} in
48711         *-*-cygwin* | *-*-mingw32* )
48712                         if test -n "$ac_tool_prefix"; then
48713   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48714 set dummy ${ac_tool_prefix}windres; ac_word=$2
48715 echo "$as_me:$LINENO: checking for $ac_word" >&5
48716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48717 if test "${ac_cv_prog_WINDRES+set}" = set; then
48718   echo $ECHO_N "(cached) $ECHO_C" >&6
48719 else
48720   if test -n "$WINDRES"; then
48721   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48722 else
48723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48724 for as_dir in $PATH
48725 do
48726   IFS=$as_save_IFS
48727   test -z "$as_dir" && as_dir=.
48728   for ac_exec_ext in '' $ac_executable_extensions; do
48729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48730     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48732     break 2
48733   fi
48734 done
48735 done
48736
48737 fi
48738 fi
48739 WINDRES=$ac_cv_prog_WINDRES
48740 if test -n "$WINDRES"; then
48741   echo "$as_me:$LINENO: result: $WINDRES" >&5
48742 echo "${ECHO_T}$WINDRES" >&6
48743 else
48744   echo "$as_me:$LINENO: result: no" >&5
48745 echo "${ECHO_T}no" >&6
48746 fi
48747
48748 fi
48749 if test -z "$ac_cv_prog_WINDRES"; then
48750   ac_ct_WINDRES=$WINDRES
48751   # Extract the first word of "windres", so it can be a program name with args.
48752 set dummy windres; ac_word=$2
48753 echo "$as_me:$LINENO: checking for $ac_word" >&5
48754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48755 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
48756   echo $ECHO_N "(cached) $ECHO_C" >&6
48757 else
48758   if test -n "$ac_ct_WINDRES"; then
48759   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
48760 else
48761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48762 for as_dir in $PATH
48763 do
48764   IFS=$as_save_IFS
48765   test -z "$as_dir" && as_dir=.
48766   for ac_exec_ext in '' $ac_executable_extensions; do
48767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48768     ac_cv_prog_ac_ct_WINDRES="windres"
48769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48770     break 2
48771   fi
48772 done
48773 done
48774
48775 fi
48776 fi
48777 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48778 if test -n "$ac_ct_WINDRES"; then
48779   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48780 echo "${ECHO_T}$ac_ct_WINDRES" >&6
48781 else
48782   echo "$as_me:$LINENO: result: no" >&5
48783 echo "${ECHO_T}no" >&6
48784 fi
48785
48786   WINDRES=$ac_ct_WINDRES
48787 else
48788   WINDRES="$ac_cv_prog_WINDRES"
48789 fi
48790
48791          ;;
48792
48793       *-*-darwin* | powerpc-apple-macos* )
48794             # Extract the first word of "Rez", so it can be a program name with args.
48795 set dummy Rez; ac_word=$2
48796 echo "$as_me:$LINENO: checking for $ac_word" >&5
48797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48798 if test "${ac_cv_prog_REZ+set}" = set; then
48799   echo $ECHO_N "(cached) $ECHO_C" >&6
48800 else
48801   if test -n "$REZ"; then
48802   ac_cv_prog_REZ="$REZ" # Let the user override the test.
48803 else
48804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48805 for as_dir in $PATH
48806 do
48807   IFS=$as_save_IFS
48808   test -z "$as_dir" && as_dir=.
48809   for ac_exec_ext in '' $ac_executable_extensions; do
48810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48811     ac_cv_prog_REZ="Rez"
48812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48813     break 2
48814   fi
48815 done
48816 done
48817
48818   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
48819 fi
48820 fi
48821 REZ=$ac_cv_prog_REZ
48822 if test -n "$REZ"; then
48823   echo "$as_me:$LINENO: result: $REZ" >&5
48824 echo "${ECHO_T}$REZ" >&6
48825 else
48826   echo "$as_me:$LINENO: result: no" >&5
48827 echo "${ECHO_T}no" >&6
48828 fi
48829
48830             # Extract the first word of "SetFile", so it can be a program name with args.
48831 set dummy SetFile; ac_word=$2
48832 echo "$as_me:$LINENO: checking for $ac_word" >&5
48833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48834 if test "${ac_cv_prog_SETFILE+set}" = set; then
48835   echo $ECHO_N "(cached) $ECHO_C" >&6
48836 else
48837   if test -n "$SETFILE"; then
48838   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48839 else
48840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48841 for as_dir in $PATH
48842 do
48843   IFS=$as_save_IFS
48844   test -z "$as_dir" && as_dir=.
48845   for ac_exec_ext in '' $ac_executable_extensions; do
48846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48847     ac_cv_prog_SETFILE="SetFile"
48848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48849     break 2
48850   fi
48851 done
48852 done
48853
48854   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48855 fi
48856 fi
48857 SETFILE=$ac_cv_prog_SETFILE
48858 if test -n "$SETFILE"; then
48859   echo "$as_me:$LINENO: result: $SETFILE" >&5
48860 echo "${ECHO_T}$SETFILE" >&6
48861 else
48862   echo "$as_me:$LINENO: result: no" >&5
48863 echo "${ECHO_T}no" >&6
48864 fi
48865
48866         ;;
48867     esac
48868
48869
48870
48871
48872
48873
48874     BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
48875
48876
48877 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
48878
48879
48880
48881     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48882 if test "${enable_precomp_headers+set}" = set; then
48883   enableval="$enable_precomp_headers"
48884   bk_use_pch="$enableval"
48885 fi;
48886
48887     GCC_PCH=0
48888     ICC_PCH=0
48889     USE_PCH=0
48890
48891     case ${BAKEFILE_HOST} in
48892         *-*-cygwin* )
48893                                                 bk_use_pch="no"
48894             ;;
48895     esac
48896
48897     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48898         if test "x$GCC" = "xyes"; then
48899                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48900 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48901             cat >conftest.$ac_ext <<_ACEOF
48902 /* confdefs.h.  */
48903 _ACEOF
48904 cat confdefs.h >>conftest.$ac_ext
48905 cat >>conftest.$ac_ext <<_ACEOF
48906 /* end confdefs.h.  */
48907
48908 int
48909 main ()
48910 {
48911
48912                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
48913                         There is no PCH support
48914                     #endif
48915                     #if (__GNUC__ < 3)
48916                         There is no PCH support
48917                     #endif
48918                     #if (__GNUC__ == 3) && \
48919                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
48920                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48921                        ( defined(__INTEL_COMPILER) )
48922                         There is no PCH support
48923                     #endif
48924
48925   ;
48926   return 0;
48927 }
48928 _ACEOF
48929 rm -f conftest.$ac_objext
48930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48931   (eval $ac_compile) 2>conftest.er1
48932   ac_status=$?
48933   grep -v '^ *+' conftest.er1 >conftest.err
48934   rm -f conftest.er1
48935   cat conftest.err >&5
48936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48937   (exit $ac_status); } &&
48938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
48939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48940   (eval $ac_try) 2>&5
48941   ac_status=$?
48942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48943   (exit $ac_status); }; } &&
48944          { ac_try='test -s conftest.$ac_objext'
48945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48946   (eval $ac_try) 2>&5
48947   ac_status=$?
48948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48949   (exit $ac_status); }; }; then
48950
48951                     echo "$as_me:$LINENO: result: yes" >&5
48952 echo "${ECHO_T}yes" >&6
48953                     GCC_PCH=1
48954
48955 else
48956   echo "$as_me: failed program was:" >&5
48957 sed 's/^/| /' conftest.$ac_ext >&5
48958
48959
48960                     cat >conftest.$ac_ext <<_ACEOF
48961 /* confdefs.h.  */
48962 _ACEOF
48963 cat confdefs.h >>conftest.$ac_ext
48964 cat >>conftest.$ac_ext <<_ACEOF
48965 /* end confdefs.h.  */
48966
48967 int
48968 main ()
48969 {
48970
48971                             #if !defined(__INTEL_COMPILER) || \
48972                                 (__INTEL_COMPILER < 800)
48973                                 There is no PCH support
48974                             #endif
48975
48976   ;
48977   return 0;
48978 }
48979 _ACEOF
48980 rm -f conftest.$ac_objext
48981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48982   (eval $ac_compile) 2>conftest.er1
48983   ac_status=$?
48984   grep -v '^ *+' conftest.er1 >conftest.err
48985   rm -f conftest.er1
48986   cat conftest.err >&5
48987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48988   (exit $ac_status); } &&
48989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
48990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48991   (eval $ac_try) 2>&5
48992   ac_status=$?
48993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48994   (exit $ac_status); }; } &&
48995          { ac_try='test -s conftest.$ac_objext'
48996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48997   (eval $ac_try) 2>&5
48998   ac_status=$?
48999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49000   (exit $ac_status); }; }; then
49001
49002                             echo "$as_me:$LINENO: result: yes" >&5
49003 echo "${ECHO_T}yes" >&6
49004                             ICC_PCH=1
49005
49006 else
49007   echo "$as_me: failed program was:" >&5
49008 sed 's/^/| /' conftest.$ac_ext >&5
49009
49010
49011                             echo "$as_me:$LINENO: result: no" >&5
49012 echo "${ECHO_T}no" >&6
49013
49014 fi
49015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49016
49017 fi
49018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49019             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49020                 USE_PCH=1
49021
49022 D='$'
49023 cat <<EOF >bk-make-pch
49024 #!/bin/sh
49025
49026 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49027 # script. It is used to generated precompiled headers.
49028 #
49029 # Permission is given to use this file in any way.
49030
49031 outfile="${D}{1}"
49032 header="${D}{2}"
49033 shift
49034 shift
49035
49036 compiler=""
49037 headerfile=""
49038
49039 while test ${D}{#} -gt 0; do
49040     add_to_cmdline=1
49041     case "${D}{1}" in
49042         -I* )
49043             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49044             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49045                 headerfile="${D}{incdir}/${D}{header}"
49046             fi
49047         ;;
49048         -use-pch|-use_pch )
49049             shift
49050             add_to_cmdline=0
49051         ;;
49052     esac
49053     if test ${D}add_to_cmdline = 1 ; then
49054         compiler="${D}{compiler} ${D}{1}"
49055     fi
49056     shift
49057 done
49058
49059 if test "x${D}{headerfile}" = "x" ; then
49060     echo "error: can't find header ${D}{header} in include paths" >&2
49061 else
49062     if test -f ${D}{outfile} ; then
49063         rm -f ${D}{outfile}
49064     else
49065         mkdir -p \`dirname ${D}{outfile}\`
49066     fi
49067     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49068     mkdir -p .deps
49069     if test "x${GCC_PCH}" = "x1" ; then
49070         # can do this because gcc is >= 3.4:
49071         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49072     elif test "x${ICC_PCH}" = "x1" ; then
49073         filename=pch_gen-${D}${D}
49074         file=${D}{filename}.c
49075         dfile=${D}{filename}.d
49076         cat > ${D}file <<EOT
49077 #include "${D}header"
49078 EOT
49079         # using -MF icc complains about differing command lines in creation/use
49080         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49081           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49082           rm -f ${D}file ${D}dfile ${D}{filename}.o
49083     fi
49084     exit ${D}{?}
49085 fi
49086 EOF
49087
49088                 chmod +x bk-make-pch
49089             fi
49090         fi
49091     fi
49092
49093
49094
49095
49096     COND_BUILD_DEBUG="#"
49097     if test "x$BUILD" = "xdebug" ; then
49098         COND_BUILD_DEBUG=""
49099     fi
49100
49101     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49102     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49103         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49104     fi
49105
49106     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49107     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49108         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49109     fi
49110
49111     COND_BUILD_DEBUG_UNICODE_0="#"
49112     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49113         COND_BUILD_DEBUG_UNICODE_0=""
49114     fi
49115
49116     COND_BUILD_DEBUG_UNICODE_1="#"
49117     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49118         COND_BUILD_DEBUG_UNICODE_1=""
49119     fi
49120
49121     COND_BUILD_RELEASE="#"
49122     if test "x$BUILD" = "xrelease" ; then
49123         COND_BUILD_RELEASE=""
49124     fi
49125
49126     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49127     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49128         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49129     fi
49130
49131     COND_BUILD_RELEASE_UNICODE_0="#"
49132     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49133         COND_BUILD_RELEASE_UNICODE_0=""
49134     fi
49135
49136     COND_BUILD_RELEASE_UNICODE_1="#"
49137     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49138         COND_BUILD_RELEASE_UNICODE_1=""
49139     fi
49140
49141     COND_DEBUG_FLAG_1="#"
49142     if test "x$DEBUG_FLAG" = "x1" ; then
49143         COND_DEBUG_FLAG_1=""
49144     fi
49145
49146     COND_DEBUG_INFO_0="#"
49147     if test "x$DEBUG_INFO" = "x0" ; then
49148         COND_DEBUG_INFO_0=""
49149     fi
49150
49151     COND_DEBUG_INFO_1="#"
49152     if test "x$DEBUG_INFO" = "x1" ; then
49153         COND_DEBUG_INFO_1=""
49154     fi
49155
49156     COND_DEPS_TRACKING_0="#"
49157     if test "x$DEPS_TRACKING" = "x0" ; then
49158         COND_DEPS_TRACKING_0=""
49159     fi
49160
49161     COND_DEPS_TRACKING_1="#"
49162     if test "x$DEPS_TRACKING" = "x1" ; then
49163         COND_DEPS_TRACKING_1=""
49164     fi
49165
49166     COND_GCC_PCH_1="#"
49167     if test "x$GCC_PCH" = "x1" ; then
49168         COND_GCC_PCH_1=""
49169     fi
49170
49171     COND_ICC_PCH_1="#"
49172     if test "x$ICC_PCH" = "x1" ; then
49173         COND_ICC_PCH_1=""
49174     fi
49175
49176     COND_MONOLITHIC_0="#"
49177     if test "x$MONOLITHIC" = "x0" ; then
49178         COND_MONOLITHIC_0=""
49179     fi
49180
49181     COND_MONOLITHIC_0_SHARED_0="#"
49182     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49183         COND_MONOLITHIC_0_SHARED_0=""
49184     fi
49185
49186     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49187     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49188         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49189     fi
49190
49191     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49192     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49193         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49194     fi
49195
49196     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49197     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49198         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49199     fi
49200
49201     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49202     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49203         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49204     fi
49205
49206     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49207     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49208         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49209     fi
49210
49211     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49212     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49213         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49214     fi
49215
49216     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49217     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49218         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49219     fi
49220
49221     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49222     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49223         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49224     fi
49225
49226     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49227     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49228         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49229     fi
49230
49231     COND_MONOLITHIC_0_SHARED_1="#"
49232     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49233         COND_MONOLITHIC_0_SHARED_1=""
49234     fi
49235
49236     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49237     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49238         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49239     fi
49240
49241     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49242     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49243         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49244     fi
49245
49246     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49247     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49248         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49249     fi
49250
49251     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49252     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49253         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49254     fi
49255
49256     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49257     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49258         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49259     fi
49260
49261     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49262     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49263         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49264     fi
49265
49266     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49267     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49268         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49269     fi
49270
49271     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49272     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49273         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49274     fi
49275
49276     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49277     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49278         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49279     fi
49280
49281     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49282     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49283         COND_MONOLITHIC_0_USE_MEDIA_1=""
49284     fi
49285
49286     COND_MONOLITHIC_0_USE_ODBC_1="#"
49287     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49288         COND_MONOLITHIC_0_USE_ODBC_1=""
49289     fi
49290
49291     COND_MONOLITHIC_1="#"
49292     if test "x$MONOLITHIC" = "x1" ; then
49293         COND_MONOLITHIC_1=""
49294     fi
49295
49296     COND_MONOLITHIC_1_SHARED_0="#"
49297     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49298         COND_MONOLITHIC_1_SHARED_0=""
49299     fi
49300
49301     COND_MONOLITHIC_1_SHARED_1="#"
49302     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49303         COND_MONOLITHIC_1_SHARED_1=""
49304     fi
49305
49306     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49307     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49308         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49309     fi
49310
49311     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49312     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49313         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49314     fi
49315
49316     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49317     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49318         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49319     fi
49320
49321     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49322     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49323         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49324     fi
49325
49326     COND_PLATFORM_MACOSX_1="#"
49327     if test "x$PLATFORM_MACOSX" = "x1" ; then
49328         COND_PLATFORM_MACOSX_1=""
49329     fi
49330
49331     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49332     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49333         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49334     fi
49335
49336     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49337     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49338         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49339     fi
49340
49341     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49342     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49343         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49344     fi
49345
49346     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49347     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49348         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49349     fi
49350
49351     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49352     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49353         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49354     fi
49355
49356     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49357     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49358         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49359     fi
49360
49361     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49362     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49363         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49364     fi
49365
49366     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49367     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49368         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49369     fi
49370
49371     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49372     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49373         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49374     fi
49375
49376     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49377     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49378         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49379     fi
49380
49381     COND_PLATFORM_MACOS_1="#"
49382     if test "x$PLATFORM_MACOS" = "x1" ; then
49383         COND_PLATFORM_MACOS_1=""
49384     fi
49385
49386     COND_PLATFORM_MAC_1="#"
49387     if test "x$PLATFORM_MAC" = "x1" ; then
49388         COND_PLATFORM_MAC_1=""
49389     fi
49390
49391     COND_PLATFORM_MSDOS_0="#"
49392     if test "x$PLATFORM_MSDOS" = "x0" ; then
49393         COND_PLATFORM_MSDOS_0=""
49394     fi
49395
49396     COND_PLATFORM_MSDOS_1="#"
49397     if test "x$PLATFORM_MSDOS" = "x1" ; then
49398         COND_PLATFORM_MSDOS_1=""
49399     fi
49400
49401     COND_PLATFORM_OS2_1="#"
49402     if test "x$PLATFORM_OS2" = "x1" ; then
49403         COND_PLATFORM_OS2_1=""
49404     fi
49405
49406     COND_PLATFORM_UNIX_0="#"
49407     if test "x$PLATFORM_UNIX" = "x0" ; then
49408         COND_PLATFORM_UNIX_0=""
49409     fi
49410
49411     COND_PLATFORM_UNIX_1="#"
49412     if test "x$PLATFORM_UNIX" = "x1" ; then
49413         COND_PLATFORM_UNIX_1=""
49414     fi
49415
49416     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49417     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49418         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49419     fi
49420
49421     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49422     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49423         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49424     fi
49425
49426     COND_PLATFORM_WIN32_0="#"
49427     if test "x$PLATFORM_WIN32" = "x0" ; then
49428         COND_PLATFORM_WIN32_0=""
49429     fi
49430
49431     COND_PLATFORM_WIN32_1="#"
49432     if test "x$PLATFORM_WIN32" = "x1" ; then
49433         COND_PLATFORM_WIN32_1=""
49434     fi
49435
49436     COND_SHARED_0="#"
49437     if test "x$SHARED" = "x0" ; then
49438         COND_SHARED_0=""
49439     fi
49440
49441     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49442     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49443         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49444     fi
49445
49446     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49447     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49448         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49449     fi
49450
49451     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49452     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49453         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49454     fi
49455
49456     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49457     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49458         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49459     fi
49460
49461     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49462     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49463         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49464     fi
49465
49466     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49467     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49468         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49469     fi
49470
49471     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49472     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49473         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49474     fi
49475
49476     COND_SHARED_0_USE_XRC_1="#"
49477     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49478         COND_SHARED_0_USE_XRC_1=""
49479     fi
49480
49481     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49482     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49483         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49484     fi
49485
49486     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49487     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49488         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49489     fi
49490
49491     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49492     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49493         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49494     fi
49495
49496     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49497     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49498         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49499     fi
49500
49501     COND_SHARED_1="#"
49502     if test "x$SHARED" = "x1" ; then
49503         COND_SHARED_1=""
49504     fi
49505
49506     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49507     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49508         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49509     fi
49510
49511     COND_SHARED_1_USE_XRC_1="#"
49512     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49513         COND_SHARED_1_USE_XRC_1=""
49514     fi
49515
49516     COND_TOOLKIT_="#"
49517     if test "x$TOOLKIT" = "x" ; then
49518         COND_TOOLKIT_=""
49519     fi
49520
49521     COND_TOOLKIT_COCOA="#"
49522     if test "x$TOOLKIT" = "xCOCOA" ; then
49523         COND_TOOLKIT_COCOA=""
49524     fi
49525
49526     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49527     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49528         COND_TOOLKIT_COCOA_USE_GUI_1=""
49529     fi
49530
49531     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49532     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49533         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49534     fi
49535
49536     COND_TOOLKIT_DFB="#"
49537     if test "x$TOOLKIT" = "xDFB" ; then
49538         COND_TOOLKIT_DFB=""
49539     fi
49540
49541     COND_TOOLKIT_DFB_USE_GUI_1="#"
49542     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49543         COND_TOOLKIT_DFB_USE_GUI_1=""
49544     fi
49545
49546     COND_TOOLKIT_GTK="#"
49547     if test "x$TOOLKIT" = "xGTK" ; then
49548         COND_TOOLKIT_GTK=""
49549     fi
49550
49551     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49552     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49553         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49554     fi
49555
49556     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49557     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49558         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49559     fi
49560
49561     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49562     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49563         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49564     fi
49565
49566     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49567     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49568         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49569     fi
49570
49571     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49572     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49573         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49574     fi
49575
49576     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49577     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49578         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49579     fi
49580
49581     COND_TOOLKIT_GTK_USE_GUI_1="#"
49582     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49583         COND_TOOLKIT_GTK_USE_GUI_1=""
49584     fi
49585
49586     COND_TOOLKIT_MAC="#"
49587     if test "x$TOOLKIT" = "xMAC" ; then
49588         COND_TOOLKIT_MAC=""
49589     fi
49590
49591     COND_TOOLKIT_MAC_USE_GUI_1="#"
49592     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49593         COND_TOOLKIT_MAC_USE_GUI_1=""
49594     fi
49595
49596     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49597     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49598         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49599     fi
49600
49601     COND_TOOLKIT_MGL="#"
49602     if test "x$TOOLKIT" = "xMGL" ; then
49603         COND_TOOLKIT_MGL=""
49604     fi
49605
49606     COND_TOOLKIT_MGL_USE_GUI_1="#"
49607     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49608         COND_TOOLKIT_MGL_USE_GUI_1=""
49609     fi
49610
49611     COND_TOOLKIT_MOTIF="#"
49612     if test "x$TOOLKIT" = "xMOTIF" ; then
49613         COND_TOOLKIT_MOTIF=""
49614     fi
49615
49616     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49617     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49618         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49619     fi
49620
49621     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49622     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49623         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49624     fi
49625
49626     COND_TOOLKIT_MSW="#"
49627     if test "x$TOOLKIT" = "xMSW" ; then
49628         COND_TOOLKIT_MSW=""
49629     fi
49630
49631     COND_TOOLKIT_MSW_USE_GUI_1="#"
49632     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49633         COND_TOOLKIT_MSW_USE_GUI_1=""
49634     fi
49635
49636     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49637     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49638         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49639     fi
49640
49641     COND_TOOLKIT_MSW_WXUNIV_0="#"
49642     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49643         COND_TOOLKIT_MSW_WXUNIV_0=""
49644     fi
49645
49646     COND_TOOLKIT_PM="#"
49647     if test "x$TOOLKIT" = "xPM" ; then
49648         COND_TOOLKIT_PM=""
49649     fi
49650
49651     COND_TOOLKIT_PM_USE_GUI_1="#"
49652     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49653         COND_TOOLKIT_PM_USE_GUI_1=""
49654     fi
49655
49656     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49657     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49658         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49659     fi
49660
49661     COND_TOOLKIT_WINCE="#"
49662     if test "x$TOOLKIT" = "xWINCE" ; then
49663         COND_TOOLKIT_WINCE=""
49664     fi
49665
49666     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49667     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49668         COND_TOOLKIT_WINCE_USE_GUI_1=""
49669     fi
49670
49671     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49672     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49673         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49674     fi
49675
49676     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49677     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49678         COND_TOOLKIT_WINCE_WXUNIV_0=""
49679     fi
49680
49681     COND_TOOLKIT_X11="#"
49682     if test "x$TOOLKIT" = "xX11" ; then
49683         COND_TOOLKIT_X11=""
49684     fi
49685
49686     COND_TOOLKIT_X11_USE_GUI_1="#"
49687     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49688         COND_TOOLKIT_X11_USE_GUI_1=""
49689     fi
49690
49691     COND_UNICODE_1="#"
49692     if test "x$UNICODE" = "x1" ; then
49693         COND_UNICODE_1=""
49694     fi
49695
49696     COND_USE_EXCEPTIONS_0="#"
49697     if test "x$USE_EXCEPTIONS" = "x0" ; then
49698         COND_USE_EXCEPTIONS_0=""
49699     fi
49700
49701     COND_USE_EXCEPTIONS_1="#"
49702     if test "x$USE_EXCEPTIONS" = "x1" ; then
49703         COND_USE_EXCEPTIONS_1=""
49704     fi
49705
49706     COND_USE_GUI_0="#"
49707     if test "x$USE_GUI" = "x0" ; then
49708         COND_USE_GUI_0=""
49709     fi
49710
49711     COND_USE_GUI_1="#"
49712     if test "x$USE_GUI" = "x1" ; then
49713         COND_USE_GUI_1=""
49714     fi
49715
49716     COND_USE_GUI_1_WXUNIV_0="#"
49717     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49718         COND_USE_GUI_1_WXUNIV_0=""
49719     fi
49720
49721     COND_USE_GUI_1_WXUNIV_1="#"
49722     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49723         COND_USE_GUI_1_WXUNIV_1=""
49724     fi
49725
49726     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49727     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49728         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49729     fi
49730
49731     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49732     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49733         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49734     fi
49735
49736     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49737     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49738         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49739     fi
49740
49741     COND_USE_ODBC_1="#"
49742     if test "x$USE_ODBC" = "x1" ; then
49743         COND_USE_ODBC_1=""
49744     fi
49745
49746     COND_USE_OPENGL_1="#"
49747     if test "x$USE_OPENGL" = "x1" ; then
49748         COND_USE_OPENGL_1=""
49749     fi
49750
49751     COND_USE_PCH_1="#"
49752     if test "x$USE_PCH" = "x1" ; then
49753         COND_USE_PCH_1=""
49754     fi
49755
49756     COND_USE_PLUGINS_0="#"
49757     if test "x$USE_PLUGINS" = "x0" ; then
49758         COND_USE_PLUGINS_0=""
49759     fi
49760
49761     COND_USE_RTTI_0="#"
49762     if test "x$USE_RTTI" = "x0" ; then
49763         COND_USE_RTTI_0=""
49764     fi
49765
49766     COND_USE_RTTI_1="#"
49767     if test "x$USE_RTTI" = "x1" ; then
49768         COND_USE_RTTI_1=""
49769     fi
49770
49771     COND_USE_SOSYMLINKS_1="#"
49772     if test "x$USE_SOSYMLINKS" = "x1" ; then
49773         COND_USE_SOSYMLINKS_1=""
49774     fi
49775
49776     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49777     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49778         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49779     fi
49780
49781     COND_USE_SOVERLINUX_1="#"
49782     if test "x$USE_SOVERLINUX" = "x1" ; then
49783         COND_USE_SOVERLINUX_1=""
49784     fi
49785
49786     COND_USE_SOVERSION_0="#"
49787     if test "x$USE_SOVERSION" = "x0" ; then
49788         COND_USE_SOVERSION_0=""
49789     fi
49790
49791     COND_USE_SOVERSOLARIS_1="#"
49792     if test "x$USE_SOVERSOLARIS" = "x1" ; then
49793         COND_USE_SOVERSOLARIS_1=""
49794     fi
49795
49796     COND_USE_THREADS_0="#"
49797     if test "x$USE_THREADS" = "x0" ; then
49798         COND_USE_THREADS_0=""
49799     fi
49800
49801     COND_USE_THREADS_1="#"
49802     if test "x$USE_THREADS" = "x1" ; then
49803         COND_USE_THREADS_1=""
49804     fi
49805
49806     COND_USE_XRC_1="#"
49807     if test "x$USE_XRC" = "x1" ; then
49808         COND_USE_XRC_1=""
49809     fi
49810
49811     COND_WINDOWS_IMPLIB_1="#"
49812     if test "x$WINDOWS_IMPLIB" = "x1" ; then
49813         COND_WINDOWS_IMPLIB_1=""
49814     fi
49815
49816     COND_WITH_PLUGIN_SDL_1="#"
49817     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49818         COND_WITH_PLUGIN_SDL_1=""
49819     fi
49820
49821     COND_WXUNIV_0="#"
49822     if test "x$WXUNIV" = "x0" ; then
49823         COND_WXUNIV_0=""
49824     fi
49825
49826     COND_WXUNIV_1="#"
49827     if test "x$WXUNIV" = "x1" ; then
49828         COND_WXUNIV_1=""
49829     fi
49830
49831     COND_WXUSE_EXPAT_BUILTIN="#"
49832     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49833         COND_WXUSE_EXPAT_BUILTIN=""
49834     fi
49835
49836     COND_WXUSE_LIBJPEG_BUILTIN="#"
49837     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49838         COND_WXUSE_LIBJPEG_BUILTIN=""
49839     fi
49840
49841     COND_WXUSE_LIBPNG_BUILTIN="#"
49842     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49843         COND_WXUSE_LIBPNG_BUILTIN=""
49844     fi
49845
49846     COND_WXUSE_LIBTIFF_BUILTIN="#"
49847     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49848         COND_WXUSE_LIBTIFF_BUILTIN=""
49849     fi
49850
49851     COND_WXUSE_ODBC_BUILTIN="#"
49852     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49853         COND_WXUSE_ODBC_BUILTIN=""
49854     fi
49855
49856     COND_WXUSE_REGEX_BUILTIN="#"
49857     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49858         COND_WXUSE_REGEX_BUILTIN=""
49859     fi
49860
49861     COND_WXUSE_ZLIB_BUILTIN="#"
49862     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49863         COND_WXUSE_ZLIB_BUILTIN=""
49864     fi
49865
49866
49867
49868     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49869         { { 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
49870 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;}
49871    { (exit 1); exit 1; }; }
49872     fi
49873
49874     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49875         { { 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
49876 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;}
49877    { (exit 1); exit 1; }; }
49878     fi
49879
49880
49881
49882 if test "$wxUSE_MAC" = 1 ; then
49883     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
49884         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49885         mv temp bk-deps
49886         chmod +x bk-deps
49887     fi
49888 fi
49889
49890 if test "$wxUSE_SHARED" = "yes"; then
49891
49892                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49893     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49894
49895                 case "${host}" in
49896       *-pc-os2_emx | *-pc-os2-emx )
49897         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49898         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49899         cp -p ${srcdir}/src/os2/dllnames.sh .
49900         cp -p ${srcdir}/src/os2/dllar.sh .
49901       ;;
49902     esac
49903 else
49904
49905         EXE_LINKER="$CXX -o"
49906
49907 fi
49908 if test "$wxUSE_OMF" = "yes"; then
49909     case "${host}" in
49910       *-pc-os2_emx | *-pc-os2-emx )
49911         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49912         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49913         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49914       ;;
49915     esac
49916 fi
49917
49918 if test $GCC_PCH = 1 ; then
49919     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
49920 fi
49921
49922 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
49923
49924 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49925
49926
49927
49928
49929
49930
49931
49932
49933
49934
49935
49936
49937
49938
49939
49940
49941
49942
49943
49944
49945
49946
49947
49948
49949
49950
49951
49952
49953
49954
49955
49956
49957
49958
49959
49960
49961
49962
49963
49964
49965
49966
49967
49968
49969
49970
49971
49972
49973
49974
49975
49976
49977
49978
49979
49980
49981
49982
49983
49984
49985
49986 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49987 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
49988 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
49989 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49990   echo $ECHO_N "(cached) $ECHO_C" >&6
49991 else
49992   cat >conftest.make <<\_ACEOF
49993 all:
49994         @echo 'ac_maketemp="$(MAKE)"'
49995 _ACEOF
49996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49997 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49998 if test -n "$ac_maketemp"; then
49999   eval ac_cv_prog_make_${ac_make}_set=yes
50000 else
50001   eval ac_cv_prog_make_${ac_make}_set=no
50002 fi
50003 rm -f conftest.make
50004 fi
50005 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50006   echo "$as_me:$LINENO: result: yes" >&5
50007 echo "${ECHO_T}yes" >&6
50008   SET_MAKE=
50009 else
50010   echo "$as_me:$LINENO: result: no" >&5
50011 echo "${ECHO_T}no" >&6
50012   SET_MAKE="MAKE=${MAKE-make}"
50013 fi
50014
50015
50016
50017           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50018
50019
50020 if test "$USE_WIN32" = 1; then
50021               ac_config_commands="$ac_config_commands
50022             rcdefs.h
50023         "
50024
50025 fi
50026
50027           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50028
50029
50030           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50031
50032
50033                     ac_config_files="$ac_config_files version-script Makefile"
50034
50035
50036           ac_config_commands="$ac_config_commands wx-config"
50037
50038
50039
50040 if test "$wxWITH_SUBDIRS" != "no"; then
50041 if test "$wxUSE_GUI" = "yes"; then
50042     SUBDIRS="samples demos utils contrib"
50043 else         SUBDIRS="samples utils"
50044 fi
50045
50046
50047
50048 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50049 if test "${with_cppunit_prefix+set}" = set; then
50050   withval="$with_cppunit_prefix"
50051   cppunit_config_prefix="$withval"
50052 else
50053   cppunit_config_prefix=""
50054 fi;
50055
50056 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50057 if test "${with_cppunit_exec_prefix+set}" = set; then
50058   withval="$with_cppunit_exec_prefix"
50059   cppunit_config_exec_prefix="$withval"
50060 else
50061   cppunit_config_exec_prefix=""
50062 fi;
50063
50064   if test x$cppunit_config_exec_prefix != x ; then
50065      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50066      if test x${CPPUNIT_CONFIG+set} != xset ; then
50067         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50068      fi
50069   fi
50070   if test x$cppunit_config_prefix != x ; then
50071      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50072      if test x${CPPUNIT_CONFIG+set} != xset ; then
50073         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50074      fi
50075   fi
50076
50077   # Extract the first word of "cppunit-config", so it can be a program name with args.
50078 set dummy cppunit-config; ac_word=$2
50079 echo "$as_me:$LINENO: checking for $ac_word" >&5
50080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50081 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50082   echo $ECHO_N "(cached) $ECHO_C" >&6
50083 else
50084   case $CPPUNIT_CONFIG in
50085   [\\/]* | ?:[\\/]*)
50086   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50087   ;;
50088   *)
50089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50090 for as_dir in $PATH
50091 do
50092   IFS=$as_save_IFS
50093   test -z "$as_dir" && as_dir=.
50094   for ac_exec_ext in '' $ac_executable_extensions; do
50095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50096     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50098     break 2
50099   fi
50100 done
50101 done
50102
50103   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50104   ;;
50105 esac
50106 fi
50107 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50108
50109 if test -n "$CPPUNIT_CONFIG"; then
50110   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50111 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50112 else
50113   echo "$as_me:$LINENO: result: no" >&5
50114 echo "${ECHO_T}no" >&6
50115 fi
50116
50117   cppunit_version_min=1.8.0
50118
50119   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50120 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50121   no_cppunit=""
50122   if test "$CPPUNIT_CONFIG" = "no" ; then
50123     echo "$as_me:$LINENO: result: no" >&5
50124 echo "${ECHO_T}no" >&6
50125     no_cppunit=yes
50126   else
50127     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50128     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50129     cppunit_version=`$CPPUNIT_CONFIG --version`
50130
50131     cppunit_major_version=`echo $cppunit_version | \
50132            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50133     cppunit_minor_version=`echo $cppunit_version | \
50134            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50135     cppunit_micro_version=`echo $cppunit_version | \
50136            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50137
50138     cppunit_major_min=`echo $cppunit_version_min | \
50139            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50140     cppunit_minor_min=`echo $cppunit_version_min | \
50141            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50142     cppunit_micro_min=`echo $cppunit_version_min | \
50143            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50144
50145     cppunit_version_proper=`expr \
50146         $cppunit_major_version \> $cppunit_major_min \| \
50147         $cppunit_major_version \= $cppunit_major_min \& \
50148         $cppunit_minor_version \> $cppunit_minor_min \| \
50149         $cppunit_major_version \= $cppunit_major_min \& \
50150         $cppunit_minor_version \= $cppunit_minor_min \& \
50151         $cppunit_micro_version \>= $cppunit_micro_min `
50152
50153     if test "$cppunit_version_proper" = "1" ; then
50154       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50155 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50156     else
50157       echo "$as_me:$LINENO: result: no" >&5
50158 echo "${ECHO_T}no" >&6
50159       no_cppunit=yes
50160     fi
50161   fi
50162
50163   if test "x$no_cppunit" = x ; then
50164      SUBDIRS="$SUBDIRS tests"
50165   else
50166      CPPUNIT_CFLAGS=""
50167      CPPUNIT_LIBS=""
50168      :
50169   fi
50170
50171
50172
50173
50174
50175 for subdir in `echo $SUBDIRS`; do
50176     if test -d ${srcdir}/${subdir} ; then
50177         if test "$wxUSE_GUI" = "yes"; then
50178             if test ${subdir} = "samples"; then
50179                                                 makefiles="samples/Makefile.in $makefiles"
50180                 for sample in `echo $SAMPLES_SUBDIRS`; do
50181                     if test -d $srcdir/samples/$sample; then
50182                         makefiles="samples/$sample/Makefile.in $makefiles"
50183                     fi
50184                 done
50185             else
50186                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50187                 eval "disabled=\$$disabled_var"
50188                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50189                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
50190             fi
50191         else                                     if test ${subdir} = "samples"; then
50192                 makefiles="samples/Makefile.in samples/console/Makefile.in"
50193             elif test ${subdir} = "utils"; then
50194                 makefiles=""
50195                 for util in HelpGen tex2rtf ; do
50196                     if test -d $srcdir/utils/$util ; then
50197                         makefiles="utils/$util/Makefile.in \
50198                                    utils/$util/src/Makefile.in \
50199                                    $makefiles"
50200                     fi
50201                 done
50202             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50203             fi
50204         fi
50205
50206         for mkin in $makefiles ; do
50207             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50208                       ac_config_files="$ac_config_files $mk"
50209
50210         done
50211     fi
50212 done
50213 fi
50214 cat >confcache <<\_ACEOF
50215 # This file is a shell script that caches the results of configure
50216 # tests run on this system so they can be shared between configure
50217 # scripts and configure runs, see configure's option --config-cache.
50218 # It is not useful on other systems.  If it contains results you don't
50219 # want to keep, you may remove or edit it.
50220 #
50221 # config.status only pays attention to the cache file if you give it
50222 # the --recheck option to rerun configure.
50223 #
50224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50226 # following values.
50227
50228 _ACEOF
50229
50230 # The following way of writing the cache mishandles newlines in values,
50231 # but we know of no workaround that is simple, portable, and efficient.
50232 # So, don't put newlines in cache variables' values.
50233 # Ultrix sh set writes to stderr and can't be redirected directly,
50234 # and sets the high bit in the cache file unless we assign to the vars.
50235 {
50236   (set) 2>&1 |
50237     case `(ac_space=' '; set | grep ac_space) 2>&1` in
50238     *ac_space=\ *)
50239       # `set' does not quote correctly, so add quotes (double-quote
50240       # substitution turns \\\\ into \\, and sed turns \\ into \).
50241       sed -n \
50242         "s/'/'\\\\''/g;
50243           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50244       ;;
50245     *)
50246       # `set' quotes correctly as required by POSIX, so do not add quotes.
50247       sed -n \
50248         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
50249       ;;
50250     esac;
50251 } |
50252   sed '
50253      t clear
50254      : clear
50255      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50256      t end
50257      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50258      : end' >>confcache
50259 if diff $cache_file confcache >/dev/null 2>&1; then :; else
50260   if test -w $cache_file; then
50261     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50262     cat confcache >$cache_file
50263   else
50264     echo "not updating unwritable cache $cache_file"
50265   fi
50266 fi
50267 rm -f confcache
50268
50269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50270 # Let make expand exec_prefix.
50271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50272
50273 # VPATH may cause trouble with some makes, so we remove $(srcdir),
50274 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50275 # trailing colons and then remove the whole line if VPATH becomes empty
50276 # (actually we leave an empty line to preserve line numbers).
50277 if test "x$srcdir" = x.; then
50278   ac_vpsub='/^[  ]*VPATH[        ]*=/{
50279 s/:*\$(srcdir):*/:/;
50280 s/:*\${srcdir}:*/:/;
50281 s/:*@srcdir@:*/:/;
50282 s/^\([^=]*=[     ]*\):*/\1/;
50283 s/:*$//;
50284 s/^[^=]*=[       ]*$//;
50285 }'
50286 fi
50287
50288 DEFS=-DHAVE_CONFIG_H
50289
50290 ac_libobjs=
50291 ac_ltlibobjs=
50292 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50293   # 1. Remove the extension, and $U if already installed.
50294   ac_i=`echo "$ac_i" |
50295          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
50296   # 2. Add them.
50297   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50298   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50299 done
50300 LIBOBJS=$ac_libobjs
50301
50302 LTLIBOBJS=$ac_ltlibobjs
50303
50304
50305
50306 : ${CONFIG_STATUS=./config.status}
50307 ac_clean_files_save=$ac_clean_files
50308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50309 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50310 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50311 cat >$CONFIG_STATUS <<_ACEOF
50312 #! $SHELL
50313 # Generated by $as_me.
50314 # Run this file to recreate the current configuration.
50315 # Compiler output produced by configure, useful for debugging
50316 # configure, is in config.log if it exists.
50317
50318 debug=false
50319 ac_cs_recheck=false
50320 ac_cs_silent=false
50321 SHELL=\${CONFIG_SHELL-$SHELL}
50322 _ACEOF
50323
50324 cat >>$CONFIG_STATUS <<\_ACEOF
50325 ## --------------------- ##
50326 ## M4sh Initialization.  ##
50327 ## --------------------- ##
50328
50329 # Be Bourne compatible
50330 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50331   emulate sh
50332   NULLCMD=:
50333   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50334   # is contrary to our usage.  Disable this feature.
50335   alias -g '${1+"$@"}'='"$@"'
50336 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50337   set -o posix
50338 fi
50339 DUALCASE=1; export DUALCASE # for MKS sh
50340
50341 # Support unset when possible.
50342 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50343   as_unset=unset
50344 else
50345   as_unset=false
50346 fi
50347
50348
50349 # Work around bugs in pre-3.0 UWIN ksh.
50350 $as_unset ENV MAIL MAILPATH
50351 PS1='$ '
50352 PS2='> '
50353 PS4='+ '
50354
50355 # NLS nuisances.
50356 for as_var in \
50357   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50358   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50359   LC_TELEPHONE LC_TIME
50360 do
50361   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50362     eval $as_var=C; export $as_var
50363   else
50364     $as_unset $as_var
50365   fi
50366 done
50367
50368 # Required to use basename.
50369 if expr a : '\(a\)' >/dev/null 2>&1; then
50370   as_expr=expr
50371 else
50372   as_expr=false
50373 fi
50374
50375 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50376   as_basename=basename
50377 else
50378   as_basename=false
50379 fi
50380
50381
50382 # Name of the executable.
50383 as_me=`$as_basename "$0" ||
50384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50385          X"$0" : 'X\(//\)$' \| \
50386          X"$0" : 'X\(/\)$' \| \
50387          .     : '\(.\)' 2>/dev/null ||
50388 echo X/"$0" |
50389     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50390           /^X\/\(\/\/\)$/{ s//\1/; q; }
50391           /^X\/\(\/\).*/{ s//\1/; q; }
50392           s/.*/./; q'`
50393
50394
50395 # PATH needs CR, and LINENO needs CR and PATH.
50396 # Avoid depending upon Character Ranges.
50397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50400 as_cr_digits='0123456789'
50401 as_cr_alnum=$as_cr_Letters$as_cr_digits
50402
50403 # The user is always right.
50404 if test "${PATH_SEPARATOR+set}" != set; then
50405   echo "#! /bin/sh" >conf$$.sh
50406   echo  "exit 0"   >>conf$$.sh
50407   chmod +x conf$$.sh
50408   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50409     PATH_SEPARATOR=';'
50410   else
50411     PATH_SEPARATOR=:
50412   fi
50413   rm -f conf$$.sh
50414 fi
50415
50416
50417   as_lineno_1=$LINENO
50418   as_lineno_2=$LINENO
50419   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50420   test "x$as_lineno_1" != "x$as_lineno_2" &&
50421   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
50422   # Find who we are.  Look in the path if we contain no path at all
50423   # relative or not.
50424   case $0 in
50425     *[\\/]* ) as_myself=$0 ;;
50426     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50427 for as_dir in $PATH
50428 do
50429   IFS=$as_save_IFS
50430   test -z "$as_dir" && as_dir=.
50431   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50432 done
50433
50434        ;;
50435   esac
50436   # We did not find ourselves, most probably we were run as `sh COMMAND'
50437   # in which case we are not to be found in the path.
50438   if test "x$as_myself" = x; then
50439     as_myself=$0
50440   fi
50441   if test ! -f "$as_myself"; then
50442     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50443 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50444    { (exit 1); exit 1; }; }
50445   fi
50446   case $CONFIG_SHELL in
50447   '')
50448     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50449 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50450 do
50451   IFS=$as_save_IFS
50452   test -z "$as_dir" && as_dir=.
50453   for as_base in sh bash ksh sh5; do
50454          case $as_dir in
50455          /*)
50456            if ("$as_dir/$as_base" -c '
50457   as_lineno_1=$LINENO
50458   as_lineno_2=$LINENO
50459   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50460   test "x$as_lineno_1" != "x$as_lineno_2" &&
50461   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
50462              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50463              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50464              CONFIG_SHELL=$as_dir/$as_base
50465              export CONFIG_SHELL
50466              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50467            fi;;
50468          esac
50469        done
50470 done
50471 ;;
50472   esac
50473
50474   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50475   # uniformly replaced by the line number.  The first 'sed' inserts a
50476   # line-number line before each line; the second 'sed' does the real
50477   # work.  The second script uses 'N' to pair each line-number line
50478   # with the numbered line, and appends trailing '-' during
50479   # substitution so that $LINENO is not a special case at line end.
50480   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50481   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
50482   sed '=' <$as_myself |
50483     sed '
50484       N
50485       s,$,-,
50486       : loop
50487       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50488       t loop
50489       s,-$,,
50490       s,^['$as_cr_digits']*\n,,
50491     ' >$as_me.lineno &&
50492   chmod +x $as_me.lineno ||
50493     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50494 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50495    { (exit 1); exit 1; }; }
50496
50497   # Don't try to exec as it changes $[0], causing all sort of problems
50498   # (the dirname of $[0] is not the place where we might find the
50499   # original and so on.  Autoconf is especially sensible to this).
50500   . ./$as_me.lineno
50501   # Exit status is that of the last command.
50502   exit
50503 }
50504
50505
50506 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50507   *c*,-n*) ECHO_N= ECHO_C='
50508 ' ECHO_T='      ' ;;
50509   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50510   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
50511 esac
50512
50513 if expr a : '\(a\)' >/dev/null 2>&1; then
50514   as_expr=expr
50515 else
50516   as_expr=false
50517 fi
50518
50519 rm -f conf$$ conf$$.exe conf$$.file
50520 echo >conf$$.file
50521 if ln -s conf$$.file conf$$ 2>/dev/null; then
50522   # We could just check for DJGPP; but this test a) works b) is more generic
50523   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50524   if test -f conf$$.exe; then
50525     # Don't use ln at all; we don't have any links
50526     as_ln_s='cp -p'
50527   else
50528     as_ln_s='ln -s'
50529   fi
50530 elif ln conf$$.file conf$$ 2>/dev/null; then
50531   as_ln_s=ln
50532 else
50533   as_ln_s='cp -p'
50534 fi
50535 rm -f conf$$ conf$$.exe conf$$.file
50536
50537 if mkdir -p . 2>/dev/null; then
50538   as_mkdir_p=:
50539 else
50540   test -d ./-p && rmdir ./-p
50541   as_mkdir_p=false
50542 fi
50543
50544 as_executable_p="test -f"
50545
50546 # Sed expression to map a string onto a valid CPP name.
50547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50548
50549 # Sed expression to map a string onto a valid variable name.
50550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50551
50552
50553 # IFS
50554 # We need space, tab and new line, in precisely that order.
50555 as_nl='
50556 '
50557 IFS="   $as_nl"
50558
50559 # CDPATH.
50560 $as_unset CDPATH
50561
50562 exec 6>&1
50563
50564 # Open the log real soon, to keep \$[0] and so on meaningful, and to
50565 # report actual input values of CONFIG_FILES etc. instead of their
50566 # values after options handling.  Logging --version etc. is OK.
50567 exec 5>>config.log
50568 {
50569   echo
50570   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50571 ## Running $as_me. ##
50572 _ASBOX
50573 } >&5
50574 cat >&5 <<_CSEOF
50575
50576 This file was extended by wxWidgets $as_me 2.7.1, which was
50577 generated by GNU Autoconf 2.59.  Invocation command line was
50578
50579   CONFIG_FILES    = $CONFIG_FILES
50580   CONFIG_HEADERS  = $CONFIG_HEADERS
50581   CONFIG_LINKS    = $CONFIG_LINKS
50582   CONFIG_COMMANDS = $CONFIG_COMMANDS
50583   $ $0 $@
50584
50585 _CSEOF
50586 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50587 echo >&5
50588 _ACEOF
50589
50590 # Files that config.status was made for.
50591 if test -n "$ac_config_files"; then
50592   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50593 fi
50594
50595 if test -n "$ac_config_headers"; then
50596   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50597 fi
50598
50599 if test -n "$ac_config_links"; then
50600   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50601 fi
50602
50603 if test -n "$ac_config_commands"; then
50604   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50605 fi
50606
50607 cat >>$CONFIG_STATUS <<\_ACEOF
50608
50609 ac_cs_usage="\
50610 \`$as_me' instantiates files from templates according to the
50611 current configuration.
50612
50613 Usage: $0 [OPTIONS] [FILE]...
50614
50615   -h, --help       print this help, then exit
50616   -V, --version    print version number, then exit
50617   -q, --quiet      do not print progress messages
50618   -d, --debug      don't remove temporary files
50619       --recheck    update $as_me by reconfiguring in the same conditions
50620   --file=FILE[:TEMPLATE]
50621                    instantiate the configuration file FILE
50622   --header=FILE[:TEMPLATE]
50623                    instantiate the configuration header FILE
50624
50625 Configuration files:
50626 $config_files
50627
50628 Configuration headers:
50629 $config_headers
50630
50631 Configuration commands:
50632 $config_commands
50633
50634 Report bugs to <bug-autoconf@gnu.org>."
50635 _ACEOF
50636
50637 cat >>$CONFIG_STATUS <<_ACEOF
50638 ac_cs_version="\\
50639 wxWidgets config.status 2.7.1
50640 configured by $0, generated by GNU Autoconf 2.59,
50641   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50642
50643 Copyright (C) 2003 Free Software Foundation, Inc.
50644 This config.status script is free software; the Free Software Foundation
50645 gives unlimited permission to copy, distribute and modify it."
50646 srcdir=$srcdir
50647 INSTALL="$INSTALL"
50648 _ACEOF
50649
50650 cat >>$CONFIG_STATUS <<\_ACEOF
50651 # If no file are specified by the user, then we need to provide default
50652 # value.  By we need to know if files were specified by the user.
50653 ac_need_defaults=:
50654 while test $# != 0
50655 do
50656   case $1 in
50657   --*=*)
50658     ac_option=`expr "x$1" : 'x\([^=]*\)='`
50659     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50660     ac_shift=:
50661     ;;
50662   -*)
50663     ac_option=$1
50664     ac_optarg=$2
50665     ac_shift=shift
50666     ;;
50667   *) # This is not an option, so the user has probably given explicit
50668      # arguments.
50669      ac_option=$1
50670      ac_need_defaults=false;;
50671   esac
50672
50673   case $ac_option in
50674   # Handling of the options.
50675 _ACEOF
50676 cat >>$CONFIG_STATUS <<\_ACEOF
50677   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50678     ac_cs_recheck=: ;;
50679   --version | --vers* | -V )
50680     echo "$ac_cs_version"; exit 0 ;;
50681   --he | --h)
50682     # Conflict between --help and --header
50683     { { echo "$as_me:$LINENO: error: ambiguous option: $1
50684 Try \`$0 --help' for more information." >&5
50685 echo "$as_me: error: ambiguous option: $1
50686 Try \`$0 --help' for more information." >&2;}
50687    { (exit 1); exit 1; }; };;
50688   --help | --hel | -h )
50689     echo "$ac_cs_usage"; exit 0 ;;
50690   --debug | --d* | -d )
50691     debug=: ;;
50692   --file | --fil | --fi | --f )
50693     $ac_shift
50694     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50695     ac_need_defaults=false;;
50696   --header | --heade | --head | --hea )
50697     $ac_shift
50698     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50699     ac_need_defaults=false;;
50700   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50701   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50702     ac_cs_silent=: ;;
50703
50704   # This is an error.
50705   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50706 Try \`$0 --help' for more information." >&5
50707 echo "$as_me: error: unrecognized option: $1
50708 Try \`$0 --help' for more information." >&2;}
50709    { (exit 1); exit 1; }; } ;;
50710
50711   *) ac_config_targets="$ac_config_targets $1" ;;
50712
50713   esac
50714   shift
50715 done
50716
50717 ac_configure_extra_args=
50718
50719 if $ac_cs_silent; then
50720   exec 6>/dev/null
50721   ac_configure_extra_args="$ac_configure_extra_args --silent"
50722 fi
50723
50724 _ACEOF
50725 cat >>$CONFIG_STATUS <<_ACEOF
50726 if \$ac_cs_recheck; then
50727   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50728   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50729 fi
50730
50731 _ACEOF
50732
50733 cat >>$CONFIG_STATUS <<_ACEOF
50734 #
50735 # INIT-COMMANDS section.
50736 #
50737
50738
50739             CPP="$CPP"
50740             infile="$srcdir/include/wx/msw/genrcdefs.h"
50741             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50742
50743
50744  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50745  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50746  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50747                      LN_S="${LN_S}"
50748
50749
50750 _ACEOF
50751
50752
50753
50754 cat >>$CONFIG_STATUS <<\_ACEOF
50755 for ac_config_target in $ac_config_targets
50756 do
50757   case "$ac_config_target" in
50758   # Handling of arguments.
50759   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50760   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
50761   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50762   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50763   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
50764   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
50765   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50766   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
50767   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50768 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50769    { (exit 1); exit 1; }; };;
50770   esac
50771 done
50772
50773 # If the user did not use the arguments to specify the items to instantiate,
50774 # then the envvar interface is used.  Set only those that are not.
50775 # We use the long form for the default assignment because of an extremely
50776 # bizarre bug on SunOS 4.1.3.
50777 if $ac_need_defaults; then
50778   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50779   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50780   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50781 fi
50782
50783 # Have a temporary directory for convenience.  Make it in the build tree
50784 # simply because there is no reason to put it here, and in addition,
50785 # creating and moving files from /tmp can sometimes cause problems.
50786 # Create a temporary directory, and hook for its removal unless debugging.
50787 $debug ||
50788 {
50789   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50790   trap '{ (exit 1); exit 1; }' 1 2 13 15
50791 }
50792
50793 # Create a (secure) tmp directory for tmp files.
50794
50795 {
50796   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50797   test -n "$tmp" && test -d "$tmp"
50798 }  ||
50799 {
50800   tmp=./confstat$$-$RANDOM
50801   (umask 077 && mkdir $tmp)
50802 } ||
50803 {
50804    echo "$me: cannot create a temporary directory in ." >&2
50805    { (exit 1); exit 1; }
50806 }
50807
50808 _ACEOF
50809
50810 cat >>$CONFIG_STATUS <<_ACEOF
50811
50812 #
50813 # CONFIG_FILES section.
50814 #
50815
50816 # No need to generate the scripts if there are no CONFIG_FILES.
50817 # This happens for instance when ./config.status config.h
50818 if test -n "\$CONFIG_FILES"; then
50819   # Protect against being on the right side of a sed subst in config.status.
50820   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50821    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50822 s,@SHELL@,$SHELL,;t t
50823 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50824 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50825 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50826 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50827 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50828 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50829 s,@exec_prefix@,$exec_prefix,;t t
50830 s,@prefix@,$prefix,;t t
50831 s,@program_transform_name@,$program_transform_name,;t t
50832 s,@bindir@,$bindir,;t t
50833 s,@sbindir@,$sbindir,;t t
50834 s,@libexecdir@,$libexecdir,;t t
50835 s,@datadir@,$datadir,;t t
50836 s,@sysconfdir@,$sysconfdir,;t t
50837 s,@sharedstatedir@,$sharedstatedir,;t t
50838 s,@localstatedir@,$localstatedir,;t t
50839 s,@libdir@,$libdir,;t t
50840 s,@includedir@,$includedir,;t t
50841 s,@oldincludedir@,$oldincludedir,;t t
50842 s,@infodir@,$infodir,;t t
50843 s,@mandir@,$mandir,;t t
50844 s,@build_alias@,$build_alias,;t t
50845 s,@host_alias@,$host_alias,;t t
50846 s,@target_alias@,$target_alias,;t t
50847 s,@DEFS@,$DEFS,;t t
50848 s,@ECHO_C@,$ECHO_C,;t t
50849 s,@ECHO_N@,$ECHO_N,;t t
50850 s,@ECHO_T@,$ECHO_T,;t t
50851 s,@LIBS@,$LIBS,;t t
50852 s,@build@,$build,;t t
50853 s,@build_cpu@,$build_cpu,;t t
50854 s,@build_vendor@,$build_vendor,;t t
50855 s,@build_os@,$build_os,;t t
50856 s,@host@,$host,;t t
50857 s,@host_cpu@,$host_cpu,;t t
50858 s,@host_vendor@,$host_vendor,;t t
50859 s,@host_os@,$host_os,;t t
50860 s,@target@,$target,;t t
50861 s,@target_cpu@,$target_cpu,;t t
50862 s,@target_vendor@,$target_vendor,;t t
50863 s,@target_os@,$target_os,;t t
50864 s,@CC@,$CC,;t t
50865 s,@CFLAGS@,$CFLAGS,;t t
50866 s,@LDFLAGS@,$LDFLAGS,;t t
50867 s,@CPPFLAGS@,$CPPFLAGS,;t t
50868 s,@ac_ct_CC@,$ac_ct_CC,;t t
50869 s,@EXEEXT@,$EXEEXT,;t t
50870 s,@OBJEXT@,$OBJEXT,;t t
50871 s,@CPP@,$CPP,;t t
50872 s,@EGREP@,$EGREP,;t t
50873 s,@CXX@,$CXX,;t t
50874 s,@CXXFLAGS@,$CXXFLAGS,;t t
50875 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50876 s,@RANLIB@,$RANLIB,;t t
50877 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50878 s,@AR@,$AR,;t t
50879 s,@ac_ct_AR@,$ac_ct_AR,;t t
50880 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50881 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50882 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50883 s,@STRIP@,$STRIP,;t t
50884 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
50885 s,@WINDRES@,$WINDRES,;t t
50886 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
50887 s,@DLLTOOL@,$DLLTOOL,;t t
50888 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
50889 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50890 s,@LN_S@,$LN_S,;t t
50891 s,@CXXCPP@,$CXXCPP,;t t
50892 s,@subdirs@,$subdirs,;t t
50893 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50894 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50895 s,@GTK_LIBS@,$GTK_LIBS,;t t
50896 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
50897 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50898 s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50899 s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
50900 s,@X_CFLAGS@,$X_CFLAGS,;t t
50901 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50902 s,@X_LIBS@,$X_LIBS,;t t
50903 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50904 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50905 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
50906 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50907 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
50908 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50909 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
50910 s,@REZ@,$REZ,;t t
50911 s,@DEREZ@,$DEREZ,;t t
50912 s,@SETFILE@,$SETFILE,;t t
50913 s,@LIBICONV@,$LIBICONV,;t t
50914 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50915 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50916 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50917 s,@SDL_LIBS@,$SDL_LIBS,;t t
50918 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50919 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
50920 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50921 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
50922 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50923 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
50924 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
50925 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
50926 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50927 s,@GST_LIBS@,$GST_LIBS,;t t
50928 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50929 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50930 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50931 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50932 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50933 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50934 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50935 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50936 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50937 s,@VENDOR@,$VENDOR,;t t
50938 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
50939 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50940 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
50941 s,@WXUNIV@,$WXUNIV,;t t
50942 s,@MONOLITHIC@,$MONOLITHIC,;t t
50943 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50944 s,@EXTRALIBS@,$EXTRALIBS,;t t
50945 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50946 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50947 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50948 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50949 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50950 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50951 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
50952 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
50953 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
50954 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
50955 s,@UNICODE@,$UNICODE,;t t
50956 s,@BUILD@,$BUILD,;t t
50957 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50958 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
50959 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50960 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50961 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50962 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50963 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50964 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50965 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50966 s,@SET_MAKE@,$SET_MAKE,;t t
50967 s,@MAKE_SET@,$MAKE_SET,;t t
50968 s,@NM@,$NM,;t t
50969 s,@ac_ct_NM@,$ac_ct_NM,;t t
50970 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50971 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50972 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50973 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50974 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50975 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
50976 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
50977 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50978 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
50979 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
50980 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50981 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50982 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50983 s,@LIBPREFIX@,$LIBPREFIX,;t t
50984 s,@LIBEXT@,$LIBEXT,;t t
50985 s,@DLLPREFIX@,$DLLPREFIX,;t t
50986 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
50987 s,@dlldir@,$dlldir,;t t
50988 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50989 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50990 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50991 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50992 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50993 s,@PIC_FLAG@,$PIC_FLAG,;t t
50994 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
50995 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50996 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50997 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
50998 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
50999 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51000 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51001 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51002 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51003 s,@GCC_PCH@,$GCC_PCH,;t t
51004 s,@ICC_PCH@,$ICC_PCH,;t t
51005 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51006 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51007 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51008 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51009 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51010 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51011 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51012 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51013 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51014 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51015 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51016 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51017 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51018 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51019 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
51020 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
51021 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51022 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
51023 s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
51024 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
51025 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
51026 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
51027 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
51028 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
51029 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
51030 s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
51031 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
51032 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
51033 s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
51034 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
51035 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
51036 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
51037 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
51038 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
51039 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
51040 s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
51041 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
51042 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
51043 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51044 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51045 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51046 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51047 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51048 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
51049 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
51050 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51051 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
51052 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
51053 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51054 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51055 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
51056 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
51057 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
51058 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51059 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
51060 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51061 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
51062 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
51063 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
51064 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
51065 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
51066 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51067 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51068 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51069 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51070 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51071 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51072 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51073 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
51074 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51075 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51076 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
51077 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51078 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51079 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51080 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
51081 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
51082 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51083 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51084 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51085 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51086 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51087 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
51088 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
51089 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
51090 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
51091 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
51092 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
51093 s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51094 s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
51095 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
51096 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51097 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51098 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51099 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
51100 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51101 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
51102 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
51103 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51104 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51105 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51106 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51107 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51108 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51109 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51110 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51111 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51112 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51113 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
51114 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
51115 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51116 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51117 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
51118 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51119 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51120 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
51121 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
51122 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51123 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51124 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51125 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51126 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51127 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51128 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51129 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51130 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51131 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51132 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51133 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
51134 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51135 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
51136 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
51137 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
51138 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51139 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
51140 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
51141 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
51142 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51143 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51144 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
51145 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51146 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
51147 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
51148 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
51149 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
51150 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
51151 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51152 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51153 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51154 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51155 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51156 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51157 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51158 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
51159 s,@SHARED@,$SHARED,;t t
51160 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51161 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
51162 s,@USE_GUI@,$USE_GUI,;t t
51163 s,@AFMINSTALL@,$AFMINSTALL,;t t
51164 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51165 s,@TOOLKIT@,$TOOLKIT,;t t
51166 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
51167 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
51168 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
51169 s,@cross_compiling@,$cross_compiling,;t t
51170 s,@WIDGET_SET@,$WIDGET_SET,;t t
51171 s,@WX_RELEASE@,$WX_RELEASE,;t t
51172 s,@WX_VERSION@,$WX_VERSION,;t t
51173 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51174 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51175 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
51176 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51177 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51178 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51179 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
51180 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51181 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
51182 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
51183 s,@EXE_LINKER@,$EXE_LINKER,;t t
51184 s,@GUIDIST@,$GUIDIST,;t t
51185 s,@DISTDIR@,$DISTDIR,;t t
51186 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51187 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
51188 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51189 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51190 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
51191 s,@RESCOMP@,$RESCOMP,;t t
51192 s,@RESFLAGS@,$RESFLAGS,;t t
51193 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51194 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51195 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51196 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
51197 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
51198 s,@MACSETFILE@,$MACSETFILE,;t t
51199 s,@GCC@,$GCC,;t t
51200 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51201 s,@LIBOBJS@,$LIBOBJS,;t t
51202 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51203 CEOF
51204
51205 _ACEOF
51206
51207   cat >>$CONFIG_STATUS <<\_ACEOF
51208   # Split the substitutions into bite-sized pieces for seds with
51209   # small command number limits, like on Digital OSF/1 and HP-UX.
51210   ac_max_sed_lines=48
51211   ac_sed_frag=1 # Number of current file.
51212   ac_beg=1 # First line for current file.
51213   ac_end=$ac_max_sed_lines # Line after last line for current file.
51214   ac_more_lines=:
51215   ac_sed_cmds=
51216   while $ac_more_lines; do
51217     if test $ac_beg -gt 1; then
51218       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51219     else
51220       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51221     fi
51222     if test ! -s $tmp/subs.frag; then
51223       ac_more_lines=false
51224     else
51225       # The purpose of the label and of the branching condition is to
51226       # speed up the sed processing (if there are no `@' at all, there
51227       # is no need to browse any of the substitutions).
51228       # These are the two extra sed commands mentioned above.
51229       (echo ':t
51230   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51231       if test -z "$ac_sed_cmds"; then
51232         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
51233       else
51234         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
51235       fi
51236       ac_sed_frag=`expr $ac_sed_frag + 1`
51237       ac_beg=$ac_end
51238       ac_end=`expr $ac_end + $ac_max_sed_lines`
51239     fi
51240   done
51241   if test -z "$ac_sed_cmds"; then
51242     ac_sed_cmds=cat
51243   fi
51244 fi # test -n "$CONFIG_FILES"
51245
51246 _ACEOF
51247 cat >>$CONFIG_STATUS <<\_ACEOF
51248 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51249   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51250   case $ac_file in
51251   - | *:- | *:-:* ) # input from stdin
51252         cat >$tmp/stdin
51253         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51254         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51255   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51256         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51257   * )   ac_file_in=$ac_file.in ;;
51258   esac
51259
51260   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51261   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51263          X"$ac_file" : 'X\(//\)[^/]' \| \
51264          X"$ac_file" : 'X\(//\)$' \| \
51265          X"$ac_file" : 'X\(/\)' \| \
51266          .     : '\(.\)' 2>/dev/null ||
51267 echo X"$ac_file" |
51268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51269           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51270           /^X\(\/\/\)$/{ s//\1/; q; }
51271           /^X\(\/\).*/{ s//\1/; q; }
51272           s/.*/./; q'`
51273   { if $as_mkdir_p; then
51274     mkdir -p "$ac_dir"
51275   else
51276     as_dir="$ac_dir"
51277     as_dirs=
51278     while test ! -d "$as_dir"; do
51279       as_dirs="$as_dir $as_dirs"
51280       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51282          X"$as_dir" : 'X\(//\)[^/]' \| \
51283          X"$as_dir" : 'X\(//\)$' \| \
51284          X"$as_dir" : 'X\(/\)' \| \
51285          .     : '\(.\)' 2>/dev/null ||
51286 echo X"$as_dir" |
51287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51288           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51289           /^X\(\/\/\)$/{ s//\1/; q; }
51290           /^X\(\/\).*/{ s//\1/; q; }
51291           s/.*/./; q'`
51292     done
51293     test ! -n "$as_dirs" || mkdir $as_dirs
51294   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51295 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51296    { (exit 1); exit 1; }; }; }
51297
51298   ac_builddir=.
51299
51300 if test "$ac_dir" != .; then
51301   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51302   # A "../" for each directory in $ac_dir_suffix.
51303   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51304 else
51305   ac_dir_suffix= ac_top_builddir=
51306 fi
51307
51308 case $srcdir in
51309   .)  # No --srcdir option.  We are building in place.
51310     ac_srcdir=.
51311     if test -z "$ac_top_builddir"; then
51312        ac_top_srcdir=.
51313     else
51314        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51315     fi ;;
51316   [\\/]* | ?:[\\/]* )  # Absolute path.
51317     ac_srcdir=$srcdir$ac_dir_suffix;
51318     ac_top_srcdir=$srcdir ;;
51319   *) # Relative path.
51320     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51321     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51322 esac
51323
51324 # Do not use `cd foo && pwd` to compute absolute paths, because
51325 # the directories may not exist.
51326 case `pwd` in
51327 .) ac_abs_builddir="$ac_dir";;
51328 *)
51329   case "$ac_dir" in
51330   .) ac_abs_builddir=`pwd`;;
51331   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51332   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51333   esac;;
51334 esac
51335 case $ac_abs_builddir in
51336 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51337 *)
51338   case ${ac_top_builddir}. in
51339   .) ac_abs_top_builddir=$ac_abs_builddir;;
51340   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51341   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51342   esac;;
51343 esac
51344 case $ac_abs_builddir in
51345 .) ac_abs_srcdir=$ac_srcdir;;
51346 *)
51347   case $ac_srcdir in
51348   .) ac_abs_srcdir=$ac_abs_builddir;;
51349   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51350   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51351   esac;;
51352 esac
51353 case $ac_abs_builddir in
51354 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51355 *)
51356   case $ac_top_srcdir in
51357   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51358   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51359   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51360   esac;;
51361 esac
51362
51363
51364   case $INSTALL in
51365   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51366   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51367   esac
51368
51369   # Let's still pretend it is `configure' which instantiates (i.e., don't
51370   # use $as_me), people would be surprised to read:
51371   #    /* config.h.  Generated by config.status.  */
51372   if test x"$ac_file" = x-; then
51373     configure_input=
51374   else
51375     configure_input="$ac_file.  "
51376   fi
51377   configure_input=$configure_input"Generated from `echo $ac_file_in |
51378                                      sed 's,.*/,,'` by configure."
51379
51380   # First look for the input files in the build tree, otherwise in the
51381   # src tree.
51382   ac_file_inputs=`IFS=:
51383     for f in $ac_file_in; do
51384       case $f in
51385       -) echo $tmp/stdin ;;
51386       [\\/$]*)
51387          # Absolute (can't be DOS-style, as IFS=:)
51388          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51389 echo "$as_me: error: cannot find input file: $f" >&2;}
51390    { (exit 1); exit 1; }; }
51391          echo "$f";;
51392       *) # Relative
51393          if test -f "$f"; then
51394            # Build tree
51395            echo "$f"
51396          elif test -f "$srcdir/$f"; then
51397            # Source tree
51398            echo "$srcdir/$f"
51399          else
51400            # /dev/null tree
51401            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51402 echo "$as_me: error: cannot find input file: $f" >&2;}
51403    { (exit 1); exit 1; }; }
51404          fi;;
51405       esac
51406     done` || { (exit 1); exit 1; }
51407
51408   if test x"$ac_file" != x-; then
51409     { echo "$as_me:$LINENO: creating $ac_file" >&5
51410 echo "$as_me: creating $ac_file" >&6;}
51411     rm -f "$ac_file"
51412   fi
51413 _ACEOF
51414 cat >>$CONFIG_STATUS <<_ACEOF
51415   sed "$ac_vpsub
51416 $extrasub
51417 _ACEOF
51418 cat >>$CONFIG_STATUS <<\_ACEOF
51419 :t
51420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51421 s,@configure_input@,$configure_input,;t t
51422 s,@srcdir@,$ac_srcdir,;t t
51423 s,@abs_srcdir@,$ac_abs_srcdir,;t t
51424 s,@top_srcdir@,$ac_top_srcdir,;t t
51425 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51426 s,@builddir@,$ac_builddir,;t t
51427 s,@abs_builddir@,$ac_abs_builddir,;t t
51428 s,@top_builddir@,$ac_top_builddir,;t t
51429 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51430 s,@INSTALL@,$ac_INSTALL,;t t
51431 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51432   rm -f $tmp/stdin
51433   if test x"$ac_file" != x-; then
51434     mv $tmp/out $ac_file
51435   else
51436     cat $tmp/out
51437     rm -f $tmp/out
51438   fi
51439
51440   # Run the commands associated with the file.
51441   case $ac_file in
51442     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
51443     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
51444   esac
51445 done
51446 _ACEOF
51447 cat >>$CONFIG_STATUS <<\_ACEOF
51448
51449 #
51450 # CONFIG_HEADER section.
51451 #
51452
51453 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51454 # NAME is the cpp macro being defined and VALUE is the value it is being given.
51455 #
51456 # ac_d sets the value in "#define NAME VALUE" lines.
51457 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
51458 ac_dB='[         ].*$,\1#\2'
51459 ac_dC=' '
51460 ac_dD=',;t'
51461 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
51462 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
51463 ac_uB='$,\1#\2define\3'
51464 ac_uC=' '
51465 ac_uD=',;t'
51466
51467 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51468   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51469   case $ac_file in
51470   - | *:- | *:-:* ) # input from stdin
51471         cat >$tmp/stdin
51472         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51473         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51474   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51475         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51476   * )   ac_file_in=$ac_file.in ;;
51477   esac
51478
51479   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51480 echo "$as_me: creating $ac_file" >&6;}
51481
51482   # First look for the input files in the build tree, otherwise in the
51483   # src tree.
51484   ac_file_inputs=`IFS=:
51485     for f in $ac_file_in; do
51486       case $f in
51487       -) echo $tmp/stdin ;;
51488       [\\/$]*)
51489          # Absolute (can't be DOS-style, as IFS=:)
51490          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51491 echo "$as_me: error: cannot find input file: $f" >&2;}
51492    { (exit 1); exit 1; }; }
51493          # Do quote $f, to prevent DOS paths from being IFS'd.
51494          echo "$f";;
51495       *) # Relative
51496          if test -f "$f"; then
51497            # Build tree
51498            echo "$f"
51499          elif test -f "$srcdir/$f"; then
51500            # Source tree
51501            echo "$srcdir/$f"
51502          else
51503            # /dev/null tree
51504            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51505 echo "$as_me: error: cannot find input file: $f" >&2;}
51506    { (exit 1); exit 1; }; }
51507          fi;;
51508       esac
51509     done` || { (exit 1); exit 1; }
51510   # Remove the trailing spaces.
51511   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
51512
51513 _ACEOF
51514
51515 # Transform confdefs.h into two sed scripts, `conftest.defines' and
51516 # `conftest.undefs', that substitutes the proper values into
51517 # config.h.in to produce config.h.  The first handles `#define'
51518 # templates, and the second `#undef' templates.
51519 # And first: Protect against being on the right side of a sed subst in
51520 # config.status.  Protect against being in an unquoted here document
51521 # in config.status.
51522 rm -f conftest.defines conftest.undefs
51523 # Using a here document instead of a string reduces the quoting nightmare.
51524 # Putting comments in sed scripts is not portable.
51525 #
51526 # `end' is used to avoid that the second main sed command (meant for
51527 # 0-ary CPP macros) applies to n-ary macro definitions.
51528 # See the Autoconf documentation for `clear'.
51529 cat >confdef2sed.sed <<\_ACEOF
51530 s/[\\&,]/\\&/g
51531 s,[\\$`],\\&,g
51532 t clear
51533 : clear
51534 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
51535 t end
51536 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
51537 : end
51538 _ACEOF
51539 # If some macros were called several times there might be several times
51540 # the same #defines, which is useless.  Nevertheless, we may not want to
51541 # sort them, since we want the *last* AC-DEFINE to be honored.
51542 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51543 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51544 rm -f confdef2sed.sed
51545
51546 # This sed command replaces #undef with comments.  This is necessary, for
51547 # example, in the case of _POSIX_SOURCE, which is predefined and required
51548 # on some systems where configure will not decide to define it.
51549 cat >>conftest.undefs <<\_ACEOF
51550 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
51551 _ACEOF
51552
51553 # Break up conftest.defines because some shells have a limit on the size
51554 # of here documents, and old seds have small limits too (100 cmds).
51555 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
51556 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
51557 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51558 echo '  :' >>$CONFIG_STATUS
51559 rm -f conftest.tail
51560 while grep . conftest.defines >/dev/null
51561 do
51562   # Write a limited-size here document to $tmp/defines.sed.
51563   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51564   # Speed up: don't consider the non `#define' lines.
51565   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
51566   # Work around the forget-to-reset-the-flag bug.
51567   echo 't clr' >>$CONFIG_STATUS
51568   echo ': clr' >>$CONFIG_STATUS
51569   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51570   echo 'CEOF
51571   sed -f $tmp/defines.sed $tmp/in >$tmp/out
51572   rm -f $tmp/in
51573   mv $tmp/out $tmp/in
51574 ' >>$CONFIG_STATUS
51575   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51576   rm -f conftest.defines
51577   mv conftest.tail conftest.defines
51578 done
51579 rm -f conftest.defines
51580 echo '  fi # grep' >>$CONFIG_STATUS
51581 echo >>$CONFIG_STATUS
51582
51583 # Break up conftest.undefs because some shells have a limit on the size
51584 # of here documents, and old seds have small limits too (100 cmds).
51585 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
51586 rm -f conftest.tail
51587 while grep . conftest.undefs >/dev/null
51588 do
51589   # Write a limited-size here document to $tmp/undefs.sed.
51590   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51591   # Speed up: don't consider the non `#undef'
51592   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
51593   # Work around the forget-to-reset-the-flag bug.
51594   echo 't clr' >>$CONFIG_STATUS
51595   echo ': clr' >>$CONFIG_STATUS
51596   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51597   echo 'CEOF
51598   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51599   rm -f $tmp/in
51600   mv $tmp/out $tmp/in
51601 ' >>$CONFIG_STATUS
51602   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51603   rm -f conftest.undefs
51604   mv conftest.tail conftest.undefs
51605 done
51606 rm -f conftest.undefs
51607
51608 cat >>$CONFIG_STATUS <<\_ACEOF
51609   # Let's still pretend it is `configure' which instantiates (i.e., don't
51610   # use $as_me), people would be surprised to read:
51611   #    /* config.h.  Generated by config.status.  */
51612   if test x"$ac_file" = x-; then
51613     echo "/* Generated by configure.  */" >$tmp/config.h
51614   else
51615     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
51616   fi
51617   cat $tmp/in >>$tmp/config.h
51618   rm -f $tmp/in
51619   if test x"$ac_file" != x-; then
51620     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51621       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51622 echo "$as_me: $ac_file is unchanged" >&6;}
51623     else
51624       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51626          X"$ac_file" : 'X\(//\)[^/]' \| \
51627          X"$ac_file" : 'X\(//\)$' \| \
51628          X"$ac_file" : 'X\(/\)' \| \
51629          .     : '\(.\)' 2>/dev/null ||
51630 echo X"$ac_file" |
51631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51632           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51633           /^X\(\/\/\)$/{ s//\1/; q; }
51634           /^X\(\/\).*/{ s//\1/; q; }
51635           s/.*/./; q'`
51636       { if $as_mkdir_p; then
51637     mkdir -p "$ac_dir"
51638   else
51639     as_dir="$ac_dir"
51640     as_dirs=
51641     while test ! -d "$as_dir"; do
51642       as_dirs="$as_dir $as_dirs"
51643       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51645          X"$as_dir" : 'X\(//\)[^/]' \| \
51646          X"$as_dir" : 'X\(//\)$' \| \
51647          X"$as_dir" : 'X\(/\)' \| \
51648          .     : '\(.\)' 2>/dev/null ||
51649 echo X"$as_dir" |
51650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51651           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51652           /^X\(\/\/\)$/{ s//\1/; q; }
51653           /^X\(\/\).*/{ s//\1/; q; }
51654           s/.*/./; q'`
51655     done
51656     test ! -n "$as_dirs" || mkdir $as_dirs
51657   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51658 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51659    { (exit 1); exit 1; }; }; }
51660
51661       rm -f $ac_file
51662       mv $tmp/config.h $ac_file
51663     fi
51664   else
51665     cat $tmp/config.h
51666     rm -f $tmp/config.h
51667   fi
51668 done
51669 _ACEOF
51670 cat >>$CONFIG_STATUS <<\_ACEOF
51671
51672 #
51673 # CONFIG_COMMANDS section.
51674 #
51675 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51676   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51677   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51678   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51679 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51680          X"$ac_dest" : 'X\(//\)[^/]' \| \
51681          X"$ac_dest" : 'X\(//\)$' \| \
51682          X"$ac_dest" : 'X\(/\)' \| \
51683          .     : '\(.\)' 2>/dev/null ||
51684 echo X"$ac_dest" |
51685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51686           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51687           /^X\(\/\/\)$/{ s//\1/; q; }
51688           /^X\(\/\).*/{ s//\1/; q; }
51689           s/.*/./; q'`
51690   { if $as_mkdir_p; then
51691     mkdir -p "$ac_dir"
51692   else
51693     as_dir="$ac_dir"
51694     as_dirs=
51695     while test ! -d "$as_dir"; do
51696       as_dirs="$as_dir $as_dirs"
51697       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51699          X"$as_dir" : 'X\(//\)[^/]' \| \
51700          X"$as_dir" : 'X\(//\)$' \| \
51701          X"$as_dir" : 'X\(/\)' \| \
51702          .     : '\(.\)' 2>/dev/null ||
51703 echo X"$as_dir" |
51704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51705           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51706           /^X\(\/\/\)$/{ s//\1/; q; }
51707           /^X\(\/\).*/{ s//\1/; q; }
51708           s/.*/./; q'`
51709     done
51710     test ! -n "$as_dirs" || mkdir $as_dirs
51711   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51713    { (exit 1); exit 1; }; }; }
51714
51715   ac_builddir=.
51716
51717 if test "$ac_dir" != .; then
51718   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51719   # A "../" for each directory in $ac_dir_suffix.
51720   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51721 else
51722   ac_dir_suffix= ac_top_builddir=
51723 fi
51724
51725 case $srcdir in
51726   .)  # No --srcdir option.  We are building in place.
51727     ac_srcdir=.
51728     if test -z "$ac_top_builddir"; then
51729        ac_top_srcdir=.
51730     else
51731        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51732     fi ;;
51733   [\\/]* | ?:[\\/]* )  # Absolute path.
51734     ac_srcdir=$srcdir$ac_dir_suffix;
51735     ac_top_srcdir=$srcdir ;;
51736   *) # Relative path.
51737     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51738     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51739 esac
51740
51741 # Do not use `cd foo && pwd` to compute absolute paths, because
51742 # the directories may not exist.
51743 case `pwd` in
51744 .) ac_abs_builddir="$ac_dir";;
51745 *)
51746   case "$ac_dir" in
51747   .) ac_abs_builddir=`pwd`;;
51748   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51749   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51750   esac;;
51751 esac
51752 case $ac_abs_builddir in
51753 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51754 *)
51755   case ${ac_top_builddir}. in
51756   .) ac_abs_top_builddir=$ac_abs_builddir;;
51757   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51758   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51759   esac;;
51760 esac
51761 case $ac_abs_builddir in
51762 .) ac_abs_srcdir=$ac_srcdir;;
51763 *)
51764   case $ac_srcdir in
51765   .) ac_abs_srcdir=$ac_abs_builddir;;
51766   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51767   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51768   esac;;
51769 esac
51770 case $ac_abs_builddir in
51771 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51772 *)
51773   case $ac_top_srcdir in
51774   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51775   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51776   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51777   esac;;
51778 esac
51779
51780
51781   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51782 echo "$as_me: executing $ac_dest commands" >&6;}
51783   case $ac_dest in
51784     rcdefs.h )
51785             mkdir -p $outdir &&
51786             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51787          ;;
51788     wx-config )  rm -f wx-config
51789                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51790                     ;;
51791   esac
51792 done
51793 _ACEOF
51794
51795 cat >>$CONFIG_STATUS <<\_ACEOF
51796
51797 { (exit 0); exit 0; }
51798 _ACEOF
51799 chmod +x $CONFIG_STATUS
51800 ac_clean_files=$ac_clean_files_save
51801
51802
51803 # configure is writing to config.log, and then calls config.status.
51804 # config.status does its own redirection, appending to config.log.
51805 # Unfortunately, on DOS this fails, as config.log is still kept open
51806 # by configure, so config.status won't be able to write to it; its
51807 # output is simply discarded.  So we exec the FD to /dev/null,
51808 # effectively closing config.log, so it can be properly (re)opened and
51809 # appended to by config.status.  When coming back to configure, we
51810 # need to make the FD available again.
51811 if test "$no_create" != yes; then
51812   ac_cs_success=:
51813   ac_config_status_args=
51814   test "$silent" = yes &&
51815     ac_config_status_args="$ac_config_status_args --quiet"
51816   exec 5>/dev/null
51817   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51818   exec 5>>config.log
51819   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51820   # would make configure fail if this is the last instruction.
51821   $ac_cs_success || { (exit 1); exit 1; }
51822 fi
51823
51824 #
51825 # CONFIG_SUBDIRS section.
51826 #
51827 if test "$no_recursion" != yes; then
51828
51829   # Remove --cache-file and --srcdir arguments so they do not pile up.
51830   ac_sub_configure_args=
51831   ac_prev=
51832   for ac_arg in $ac_configure_args; do
51833     if test -n "$ac_prev"; then
51834       ac_prev=
51835       continue
51836     fi
51837     case $ac_arg in
51838     -cache-file | --cache-file | --cache-fil | --cache-fi \
51839     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51840       ac_prev=cache_file ;;
51841     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51842     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51843     | --c=*)
51844       ;;
51845     --config-cache | -C)
51846       ;;
51847     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51848       ac_prev=srcdir ;;
51849     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51850       ;;
51851     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51852       ac_prev=prefix ;;
51853     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51854       ;;
51855     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51856     esac
51857   done
51858
51859   # Always prepend --prefix to ensure using the same prefix
51860   # in subdir configurations.
51861   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51862
51863   ac_popdir=`pwd`
51864   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51865
51866     # Do not complain, so a configure script can configure whichever
51867     # parts of a large source tree are present.
51868     test -d $srcdir/$ac_dir || continue
51869
51870     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51871 echo "$as_me: configuring in $ac_dir" >&6;}
51872     { if $as_mkdir_p; then
51873     mkdir -p "$ac_dir"
51874   else
51875     as_dir="$ac_dir"
51876     as_dirs=
51877     while test ! -d "$as_dir"; do
51878       as_dirs="$as_dir $as_dirs"
51879       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51881          X"$as_dir" : 'X\(//\)[^/]' \| \
51882          X"$as_dir" : 'X\(//\)$' \| \
51883          X"$as_dir" : 'X\(/\)' \| \
51884          .     : '\(.\)' 2>/dev/null ||
51885 echo X"$as_dir" |
51886     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51887           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51888           /^X\(\/\/\)$/{ s//\1/; q; }
51889           /^X\(\/\).*/{ s//\1/; q; }
51890           s/.*/./; q'`
51891     done
51892     test ! -n "$as_dirs" || mkdir $as_dirs
51893   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51894 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51895    { (exit 1); exit 1; }; }; }
51896
51897     ac_builddir=.
51898
51899 if test "$ac_dir" != .; then
51900   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51901   # A "../" for each directory in $ac_dir_suffix.
51902   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51903 else
51904   ac_dir_suffix= ac_top_builddir=
51905 fi
51906
51907 case $srcdir in
51908   .)  # No --srcdir option.  We are building in place.
51909     ac_srcdir=.
51910     if test -z "$ac_top_builddir"; then
51911        ac_top_srcdir=.
51912     else
51913        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51914     fi ;;
51915   [\\/]* | ?:[\\/]* )  # Absolute path.
51916     ac_srcdir=$srcdir$ac_dir_suffix;
51917     ac_top_srcdir=$srcdir ;;
51918   *) # Relative path.
51919     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51920     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51921 esac
51922
51923 # Do not use `cd foo && pwd` to compute absolute paths, because
51924 # the directories may not exist.
51925 case `pwd` in
51926 .) ac_abs_builddir="$ac_dir";;
51927 *)
51928   case "$ac_dir" in
51929   .) ac_abs_builddir=`pwd`;;
51930   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51931   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51932   esac;;
51933 esac
51934 case $ac_abs_builddir in
51935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51936 *)
51937   case ${ac_top_builddir}. in
51938   .) ac_abs_top_builddir=$ac_abs_builddir;;
51939   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51940   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51941   esac;;
51942 esac
51943 case $ac_abs_builddir in
51944 .) ac_abs_srcdir=$ac_srcdir;;
51945 *)
51946   case $ac_srcdir in
51947   .) ac_abs_srcdir=$ac_abs_builddir;;
51948   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51949   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51950   esac;;
51951 esac
51952 case $ac_abs_builddir in
51953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51954 *)
51955   case $ac_top_srcdir in
51956   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51957   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51958   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51959   esac;;
51960 esac
51961
51962
51963     cd $ac_dir
51964
51965     # Check for guested configure; otherwise get Cygnus style configure.
51966     if test -f $ac_srcdir/configure.gnu; then
51967       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51968     elif test -f $ac_srcdir/configure; then
51969       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51970     elif test -f $ac_srcdir/configure.in; then
51971       ac_sub_configure=$ac_configure
51972     else
51973       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51975       ac_sub_configure=
51976     fi
51977
51978     # The recursion is here.
51979     if test -n "$ac_sub_configure"; then
51980       # Make the cache file name correct relative to the subdirectory.
51981       case $cache_file in
51982       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51983       *) # Relative path.
51984         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
51985       esac
51986
51987       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51988 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51989       # The eval makes quoting arguments work.
51990       eval $ac_sub_configure $ac_sub_configure_args \
51991            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51992         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
51993 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51994    { (exit 1); exit 1; }; }
51995     fi
51996
51997     cd "$ac_popdir"
51998   done
51999 fi
52000
52001
52002 echo
52003 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52004 echo ""
52005 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52006 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52007
52008 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52009 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52010 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
52011
52012 echo "  What level of wxWidgets compatibility should be enabled?"
52013 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
52014 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
52015
52016 echo "  Which libraries should wxWidgets use?"
52017 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52018 echo "                                       png                ${wxUSE_LIBPNG-none}"
52019 echo "                                       regex              ${wxUSE_REGEX}"
52020 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52021 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52022 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52023 fi
52024 echo "                                       zlib               ${wxUSE_ZLIB}"
52025 echo "                                       odbc               ${wxUSE_ODBC}"
52026 echo "                                       expat              ${wxUSE_EXPAT}"
52027 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52028 echo "                                       sdl                ${wxUSE_LIBSDL}"
52029
52030 echo ""
52031